:root {
  --bg: #f4f1ec;
  --fg: #111111;
  --muted: #6d6a66;
  --accent: #e9643e;
  --accent-ink: #ffffff;
  --line: #e4dfd6;
  --card: #ffffff;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px clamp(14px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(244, 241, 236, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  z-index: 10;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.logo__mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.4s var(--ease) infinite;
}
.logo__text { font-size: 18px; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.7); opacity: .7; }
}

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav__link {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
  font-size: 15px;
}
.nav__link:hover { background: var(--line); color: var(--fg); }

@media (max-width: 520px) {
  .site-header { gap: 8px; padding: 12px 14px; }
  .nav { width: 100%; justify-content: flex-start; gap: 2px; }
  .nav__link { padding: 8px 10px; font-size: 13px; }
  .logo__text { font-size: 16px; }
}

/* main container */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 80px) clamp(14px, 4vw, 64px);
}

/* hero */
.hero { padding: clamp(24px, 7vw, 120px) 0; }

.hero__eyebrow {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.hero__title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(40px, 9vw, 112px);
  line-height: .95;
  letter-spacing: -.03em;
  margin: 0 0 28px;
  overflow-wrap: break-word;
}
.hero__title > span {
  display: inline-block;
  margin-right: .2em;
}
.hero__title--accent {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.hero__lead {
  max-width: 580px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  margin: 0 0 28px;
}

.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__actions .btn { flex: auto; min-width: 0; }
@media (min-width: 600px) {
  .hero__actions .btn { flex: none; }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease);
  text-decoration: none;
  font-size: 15px;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }

/* marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  margin: 32px 0;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  animation: slide 50s linear infinite;
  font-family: "Fraunces", serif;
  font-size: clamp(22px, 5vw, 56px);
  font-style: italic;
}
.marquee__item { display: inline-block; }
.marquee__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* section eyebrow */
.section__eyebrow {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 24px;
}

/* about */
.about { padding: clamp(40px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.about__lead {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  margin: 0;
}
.about__text {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--muted);
  margin: 0;
  max-width: 520px;
}
@media (max-width: 720px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* stack */
.stack { padding: clamp(40px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 15px;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* projects */
.projects { padding: clamp(40px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--fg);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .2);
  color: var(--fg);
}
.card__body { padding: 24px; }
.card__tag {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.card__title {
  margin: 0 0 10px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.02em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.card__arrow {
  font-size: 20px;
  color: var(--muted);
  transition: transform .25s var(--ease), color .25s var(--ease);
  font-style: normal;
}
.card:hover .card__arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}
.card__badge {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  align-self: center;
}
.card--soon { cursor: default; }
.card--soon:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}
.card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* contacts */
.contacts { padding: clamp(40px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.socials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.social {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
  min-height: 64px;
}
.social:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
  color: var(--fg);
}
.social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  flex: none;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.social__icon svg { width: 20px; height: 20px; display: block; }
.social:hover .social__icon { background: var(--accent); color: var(--accent-ink); }
.social__platform { font-size: 16px; font-weight: 500; flex: 1; }
.social__arrow {
  font-size: 20px;
  color: var(--muted);
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.social:hover .social__arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(16px, 5vw, 64px);
  margin-top: 64px;
}
.site-footer__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  max-width: 1280px;
  margin: 0 auto;
}
.muted { color: var(--muted); }

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .logo__mark, .marquee__track, .card, .social, .btn, .chip {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
