

:root {
  /* ---- palette ---- */
  --bg: #ece7dd;          /* warm paper */
  --bg-2: #e3ddd0;        /* slightly deeper paper */
  --ink: #14110d;         /* near-black */
  --ink-soft: #4a443b;    /* muted text */
  --line: #c8c0b1;        /* hairlines */
  --accent: #d8492b;      /* warm vermillion */
  --dark: #14110d;        /* dark sections bg */
  --dark-fg: #ece7dd;     /* text on dark */

  /* ---- type ---- */
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* ---- spacing ---- */
  --pad: clamp(1.25rem, 4vw, 4rem);
  --gap: clamp(2rem, 6vw, 7rem);

  --ease: cubic-bezier(0.65, 0.05, 0, 1);
}

/* ---------------- dark theme: flip the tokens, everything follows ---------------- */
html[data-theme="dark"] {
  --bg: #14110d;          /* page goes dark */
  --bg-2: #1c1813;
  --ink: #ece7dd;         /* text goes light */
  --ink-soft: #a39a8b;
  --line: #322c23;        /* subtle light-on-dark hairline */
  --accent: #e2573a;      /* a touch brighter for dark backgrounds */
  --dark: #211c16;        /* "dark sections" become raised panels */
  --dark-fg: #ece7dd;
}
html { transition: background-color .5s var(--ease); }
body { transition: background-color .5s var(--ease), color .5s var(--ease); }

/* ---------------- reset ---------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.4;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
em { font-style: italic; }

::selection { background: var(--accent); color: var(--bg); }

/* ---------------- shared bits ---------------- */
.eyebrow,
.section-label,
.work__count,
.menu__links span,
.service__no {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.section-label i { color: var(--accent); font-style: normal; }
.section-label--light { color: rgba(236,231,221,0.6); }
.section-label--light i { color: var(--accent); }

/* ===================== PRELOADER (minimal: lines + a drawn ring) ===================== */
.preloader { position: fixed; inset: 0; z-index: 999; overflow: hidden; }
/* backdrop = two panels that split apart (top up / bottom down) on exit */
.preloader__panels { position: absolute; inset: 0; }
.pl-panel { position: absolute; left: 0; width: 100%; height: 50.5%; background: var(--dark); will-change: transform; }
.pl-panel--top { top: 0; }
.pl-panel--bottom { bottom: 0; }
.preloader__content { position: absolute; inset: 0; z-index: 1; color: var(--dark-fg); padding: var(--pad); }
.preloader__tag {
  position: absolute; top: var(--pad); left: var(--pad);
  font-family: var(--mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(236,231,221,0.55);
}
.preloader__tag--right { left: auto; right: var(--pad); }

/* registration crosshair lines through the centre */
.pl-line { position: absolute; background: rgba(236, 231, 221, 0.16); }
.pl-line--h { left: 0; top: 50%; width: 100%; height: 1px; transform: scaleX(0); transform-origin: center; }
.pl-line--v { top: 0; left: 50%; width: 1px; height: 100%; transform: scaleY(0); transform-origin: center; }

/* centre mark: a ring that draws as it loads, the count inside, and the name
   set as rotating circular text around it */
.pl-mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(190px, 27vw, 310px); aspect-ratio: 1; display: grid; place-items: center;
}
.pl-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pl-ring__circles { transform: rotate(-90deg); transform-origin: 100px 100px; transform-box: view-box; }
.pl-ring__track { fill: none; stroke: rgba(236, 231, 221, 0.14); stroke-width: 1.5; }
.pl-ring__draw { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.pl-ring__text {
  font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.22em; text-transform: uppercase;
  fill: rgba(236, 231, 221, 0.75);
  transform-box: view-box; transform-origin: 100px 100px;
  animation: badge-spin 20s linear infinite;
}
.pl-num { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; }

/* ===================== CURSOR ===================== */
/* A capsule: a small vertical "pill bar" that morphs as it meets things —
   a wide pill over links, a rounded slab over big titles, a labelled pill
   over tagged elements. Position is driven by GSAP transforms; only width/
   height/radius transition in CSS (never transform) so it never lags. */
.cursor { position: fixed; top: 0; left: 0; z-index: 900; pointer-events: none; }
/* the small leading dot — the precise pointer the cat trails behind */
.cursor__dot {
  position: fixed; top: 0; left: 0; z-index: 903; pointer-events: none; opacity: 0;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  will-change: transform;
}
.cursor__capsule {
  position: fixed; top: 0; left: 0; z-index: 902; pointer-events: none; box-sizing: border-box;
  width: 46px; height: 46px; border-radius: 50%;        /* default: circular avatar */
  background: transparent; overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  display: grid; place-items: center; opacity: 0; will-change: transform;
  transition: width .4s var(--ease), height .4s var(--ease),
              border-radius .4s var(--ease), background-color .4s var(--ease),
              border-color .4s var(--ease);
}
/* the cat profile picture shown in the default state */
.cursor__cat {
  position: absolute; inset: 0; border-radius: inherit;
  background: url("../assets/cat-pfp.jpg") center / cover no-repeat;
  transition: opacity .25s var(--ease);
}
.cursor__label {
  font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: #14110d; white-space: nowrap;
  opacity: 0; transform: scale(.5); transition: opacity .25s, transform .25s;
}
/* the cat hides whenever the cursor morphs into one of its hover shapes */
.cursor__capsule.is-hover .cursor__cat,
.cursor__capsule.is-big .cursor__cat,
.cursor__capsule.is-label .cursor__cat,
.cursor__capsule.is-wrap .cursor__cat { opacity: 0; }

/* link / button → a CLEAR outline pill that frames the link.
   No fill, no blur → the text underneath stays fully readable. */
.cursor__capsule.is-hover {
  width: 64px; height: 26px;
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1.5px solid var(--accent);
  box-shadow: none;
}
/* big titles / headings → frosted slab is fine (text is huge underneath) */
.cursor__capsule.is-big {
  width: 90px; height: 90px; border-radius: 26px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(7px) saturate(1.6); -webkit-backdrop-filter: blur(7px) saturate(1.6);
  border-color: rgba(255, 255, 255, 0.5);
}
/* wrap → snaps around the whole element as an accent outline with a "jerk".
   Light tint + outline, no blur → the element's text stays readable. */
.cursor__capsule.is-wrap {
  background: rgba(216, 73, 43, 0.1);
  border: 1.5px solid var(--accent);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: width .55s cubic-bezier(.34, 1.56, .64, 1),
              height .55s cubic-bezier(.34, 1.56, .64, 1),
              border-radius .4s var(--ease),
              background-color .4s var(--ease), border-color .4s var(--ease);
}
/* data-cursor text (the big Email link) → solid labelled pill */
.cursor__capsule.is-label {
  width: auto; min-width: 60px; height: 34px; padding: 0 1rem; border-radius: 100px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-color: rgba(255,255,255,0.6);
}
.cursor__capsule.is-label .cursor__label { opacity: 1; transform: scale(1); }

/* wrapped block titles size to their text so the outline hugs them */
.service h3[data-cursor="wrap"], .card h4[data-cursor="wrap"] { width: fit-content; }

/* ---- rotating circular text badge ---- */
.cursor__badge {
  position: fixed; top: 0; left: 0; width: 116px; height: 116px; z-index: 901;
  pointer-events: none; opacity: 0; color: var(--bg);
  /* opacity / scale / position all driven by GSAP — no CSS transition on transform */
}
.cursor__badge-disc { fill: var(--accent); }
.cursor__badge text {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; fill: var(--bg);
}
.cursor__badge svg { fill: none; }
.cursor__badge-arrow { color: var(--bg); }
.cursor__badge text {
  transform-box: view-box; transform-origin: 60px 60px;
  animation: badge-spin 7s linear infinite;
}
@keyframes badge-spin { to { transform: rotate(360deg); } }
@media (hover: none) { .cursor { display: none; } }

/* ===================== GRAIN OVERLAY ===================== */
/* static grain — one composited layer, ~zero runtime cost */
.grain {
  position: fixed; inset: 0; z-index: 950; pointer-events: none;
  opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: 0.035; }
@media (hover: none) { .grain { display: none; } }

/* ===================== SCROLL PROGRESS ===================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--accent); z-index: 800;
  transform: scaleX(0); transform-origin: left; will-change: transform;
}

/* ===================== NAV ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 700;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--pad);
  mix-blend-mode: difference; color: #fff;
  transition: padding .4s var(--ease), background-color .4s var(--ease),
              border-color .4s var(--ease), color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* difference blend keeps nav legible on light & dark sections */
.nav a { color: #fff; }

/* once past the hero: a frosted bar so the nav reads as its own layer */
.nav.is-scrolled {
  mix-blend-mode: normal; color: var(--ink);
  background: rgba(236, 231, 221, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  padding-top: 1rem; padding-bottom: 1rem;
}
.nav.is-scrolled a { color: var(--ink); }
.nav.is-scrolled .nav__cta { border-color: rgba(20, 17, 13, 0.22); }
.nav.is-scrolled .nav__burger span { background: var(--ink); }

/* dark theme: the frosted scrolled bar goes dark */
html[data-theme="dark"] .nav.is-scrolled {
  background: rgba(20, 17, 13, 0.7); border-bottom-color: var(--line);
}
html[data-theme="dark"] .nav.is-scrolled .nav__cta { border-color: rgba(236, 231, 221, 0.25); }

/* theme toggle */
.nav__right { display: flex; align-items: center; gap: 1.1rem; }
.theme-toggle {
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  width: 34px; height: 34px; display: grid; place-items: center;
}
.theme-toggle__icon { width: 20px; height: 20px; transition: transform .55s var(--ease); }
html[data-theme="dark"] .theme-toggle__icon { transform: rotate(180deg); }
@media (max-width: 760px) { .nav__right { gap: 0; } }
.nav__brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 500; }
.nav__mark { color: var(--accent); font-size: 1.1rem; animation: spin 8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav__name { font-size: 0.95rem; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font-size: 0.9rem; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 1px;
  background: currentColor; transition: width .4s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 100px;
  padding: 0.5rem 1.1rem; font-size: 0.85rem;
}
.nav__cta-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; }
.nav__burger span { width: 26px; height: 2px; background: #fff; transition: .3s var(--ease); }
body.menu-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { 
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ===================== MOBILE MENU ===================== */
.menu {
  position: fixed; inset: 0; z-index: 690; background: var(--dark); color: var(--dark-fg);
  padding: var(--pad); display: flex; flex-direction: column; justify-content: center;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
  pointer-events: none;
}
body.menu-open .menu { clip-path: inset(0 0 0% 0); pointer-events: auto; }
.menu__links { display: flex; flex-direction: column; gap: 0.3rem; }
.menu__links a {
  font-family: var(--serif); font-size: clamp(2.6rem, 12vw, 5rem); line-height: 1.05;
  display: flex; align-items: baseline; gap: 1rem;
}
.menu__links a span { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.menu__foot { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.4rem; color: rgba(236,231,221,0.6); font-size: 0.9rem; }

/* ===================== HERO ===================== */
.hero {
  min-height: 100svh; padding: 0 var(--pad);
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: clamp(7rem, 14vh, 10rem); padding-bottom: var(--pad);
}
.hero__top { display: flex; justify-content: space-between; gap: 1rem; }
.eyebrow--right { text-align: right; }

.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.2rem, 13vw, 13rem); line-height: 0.92;
  letter-spacing: -0.02em; margin: auto 0;
}
.hero__title .line { display: block; overflow: hidden; width: fit-content; }
.hero__title .line--indent { margin-left: clamp(2rem, 12vw, 14rem); }
.hero__title em { color: var(--accent); }

.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.hero__lead { max-width: 42ch; font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--ink-soft); }
.hero__lead strong { color: var(--ink); font-weight: 500; }
/* rotating circular "scroll to explore" badge */
.hero__badge { position: relative; width: clamp(96px, 12vw, 128px); aspect-ratio: 1; display: grid; place-items: center; }
.hero__badge-ring { width: 100%; height: 100%; animation: badge-spin 12s linear infinite; }
.hero__badge-ring text { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; fill: var(--ink); }
.hero__badge-arrow {
  position: absolute; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--bg);
  display: grid; place-items: center; font-size: 1.1rem; animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ===================== MARQUEE ===================== */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.3rem 0; margin-top: var(--gap);
  display: flex; flex-direction: column; gap: 0.2rem;
}
.marquee__row { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__track span {
  font-family: var(--serif); font-size: clamp(2rem, 5.5vw, 4.4rem);
  padding-right: 0.4rem; color: var(--ink); line-height: 1.12;
}
.marquee__track .ac { font-style: normal; color: var(--accent); }
.marquee__track--outline span {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}
.marquee__track--outline .ac { -webkit-text-stroke: 0; color: var(--accent); }

/* ===================== STATEMENT / ABOUT ===================== */
.statement { padding: var(--gap) var(--pad); }
.statement__text {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 4.2rem); line-height: 1.12; letter-spacing: -0.01em;
  max-width: 22ch; width: fit-content; margin-bottom: clamp(3rem, 7vw, 6rem);
}
.statement__text .word { display: inline-block; }
.statement__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.statement__col h4 { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 1rem; font-weight: 500; }
.statement__col li { font-size: 1.05rem; padding: 0.35rem 0; border-bottom: 1px solid transparent; transition: border-color .3s; }
.statement__col li:hover { border-color: var(--line); }
@media (max-width: 700px) { .statement__meta { grid-template-columns: 1fr; gap: 2rem; } }

/* ===================== WORK ===================== */
.work { padding: var(--gap) var(--pad); position: relative; }
.work__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.work__head .section-label { margin-bottom: 0; }

.work__list { border-top: 1px solid var(--line); }
.work__item { border-bottom: 1px solid var(--line); }
.work__item a {
  display: grid; grid-template-columns: 4rem 1fr auto auto; align-items: center; gap: 1.5rem;
  padding: clamp(1.4rem, 3.5vw, 2.6rem) 1rem; position: relative;
  transition: padding .55s var(--ease), background-color .55s var(--ease);
}
.work__index { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); transition: color .4s; }
.work__name { font-family: var(--serif); font-size: clamp(2rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.01em; transition: transform .5s var(--ease), color .5s var(--ease); transform-origin: left; }
.work__tags { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); justify-self: end; transition: opacity .4s; }
.work__year { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); justify-self: end; min-width: 3rem; text-align: right; }

.work__item a:hover {
  padding-left: 2.2rem;
  background: linear-gradient(90deg, rgba(216,73,43,0.08), rgba(216,73,43,0));
}
.work__item a:hover .work__name { color: var(--accent); transform: translateX(8px); }
.work__item a:hover .work__index { color: var(--accent); }
.work__item a:hover .work__tags { opacity: 0.4; }

/* floating preview image */
.work__preview {
  position: fixed; top: 0; left: 0; width: 260px; height: 330px; border-radius: 8px;
  background-size: cover; background-position: center; pointer-events: none; z-index: 600;
  opacity: 0; overflow: hidden; will-change: transform;
  /* NB: no CSS transition on transform — GSAP drives x/y/scale every frame */
}
@media (max-width: 760px) { .work__preview { display: none; } }

/* ===================== SERVICES (dark) ===================== */
.services { background: var(--dark); color: var(--dark-fg); padding: var(--gap) var(--pad); }
.services__list { border-top: 1px solid rgba(236,231,221,0.15); }
.service {
  display: grid; grid-template-columns: 5rem 1fr 1.6fr; gap: 2rem; align-items: start;
  padding: clamp(2rem, 5vw, 3.5rem) 0; border-bottom: 1px solid rgba(236,231,221,0.15);
}
.service__no { font-family: var(--mono); font-size: 0.75rem; color: rgba(236,231,221,0.5); padding-top: 0.5rem; }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3.5vw, 2.8rem); line-height: 1.05; }
.service p { color: rgba(236,231,221,0.65); max-width: 50ch; font-size: clamp(0.95rem, 1.2vw, 1.1rem); }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 0.8rem; } }

/* ===================== CONTACT ===================== */
.contact { background: var(--dark); color: var(--dark-fg); padding: var(--gap) var(--pad) var(--pad); }
.contact__big {
  display: block; text-align: center; font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 13vw, 12rem); line-height: 0.92; letter-spacing: -0.02em;
  margin-bottom: clamp(4rem, 9vw, 8rem);
}
.contact__big .line { display: block; overflow: hidden; }
.contact__big em { color: var(--accent); }
.contact__big:hover em { font-style: italic; }

.contact__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid rgba(236,231,221,0.15); padding-top: 3rem; margin-bottom: 4rem; }
.contact__block h4 { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(236,231,221,0.5); margin-bottom: 1rem; font-weight: 500; }
.contact__block a { display: block; font-size: 1.15rem; padding: 0.3rem 0; width: fit-content; position: relative; }
.contact__block a::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 1px; background: var(--accent); transition: width .4s var(--ease); }
.contact__block a:hover::after { width: 100%; }
@media (max-width: 700px) { .contact__row { grid-template-columns: 1fr; gap: 2rem; } }

/* giant name across the foot of the page */
.contact__mega {
  font-family: var(--serif); font-weight: 400; line-height: 0.82;
  font-size: clamp(4rem, 22vw, 22rem); letter-spacing: -0.02em;
  white-space: nowrap; text-align: center; margin: clamp(2rem, 6vw, 5rem) 0;
  color: var(--dark-fg);
}
.contact__mega .mega-mask { display: inline-block; overflow: hidden; vertical-align: top; }
.contact__mega .mega-char { display: inline-block; transition: color .4s; }
.contact__mega:hover .mega-char { color: var(--accent); }

.contact__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.72rem; color: rgba(236,231,221,0.5); border-top: 1px solid rgba(236,231,221,0.15); padding-top: 1.5rem; }

/* ===================== STATS ===================== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  padding: clamp(3rem, 7vw, 6rem) var(--pad);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat__num {
  font-family: var(--serif); font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.9;
  display: inline-flex; align-items: flex-start;
}
.stat__num i { font-style: normal; font-size: 0.4em; color: var(--accent); margin-top: 0.25em; }
.stat__label {
  display: block; margin-top: 0.9rem; font-family: var(--mono);
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft);
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; } }

/* ===================== EXPERIENCE ===================== */
.experience { padding: var(--gap) var(--pad); border-bottom: 1px solid var(--line); }
.experience__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.experience__note { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }

.exp {
  display: grid; grid-template-columns: minmax(160px, 260px) 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: start; position: relative;
  border-top: 1px solid var(--line); padding-top: clamp(2rem, 4vw, 3rem);
}
.exp__period { display: flex; flex-direction: column; gap: 0.8rem; }
.exp__dates { font-family: var(--mono); font-size: 0.95rem; }
.exp__len { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 0.6rem; }
.exp__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.exp__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(3.2); opacity: 0; } }

.exp__role { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 0.98; letter-spacing: -0.01em; width: fit-content; }
.exp__role em { color: var(--accent); }
.exp__company {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 1.2rem 0 1.8rem;
}
.exp__arrow { transition: transform .4s var(--ease); display: inline-block; }
.exp__company:hover .exp__arrow { transform: translate(4px, -4px); }
.exp__desc { max-width: 54ch; color: var(--ink-soft); font-size: clamp(1rem, 1.3vw, 1.15rem); margin-bottom: 2rem; line-height: 1.55; }
.exp__tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.exp__tags li {
  font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em;
  border: 1px solid var(--line); border-radius: 100px; padding: 0.5rem 0.95rem;
  transition: border-color .3s, color .3s, background-color .3s;
}
.exp__tags li:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) { .exp { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ===================== HORIZONTAL GALLERY ===================== */
.gallery { background: var(--dark); color: var(--dark-fg); padding: var(--gap) 0; overflow: hidden; }
.gallery__intro {
  padding: 0 var(--pad) clamp(2rem, 4vw, 3rem);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap;
}
.gallery__intro .section-label { color: rgba(236,231,221,0.6); margin-bottom: 0; }
.gallery__intro p { color: rgba(236,231,221,0.55); max-width: 32ch; }
.gallery__viewport { width: 100%; }
.gallery__track { display: flex; gap: clamp(1rem, 2vw, 2rem); padding: 0 var(--pad); width: max-content; will-change: transform; }
.card {
  width: clamp(240px, 32vw, 420px); aspect-ratio: 3 / 4; border-radius: 10px;
  background: linear-gradient(150deg, var(--c, #b9a98e), rgba(20,17,13,0.55));
  position: relative; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between;
  color: #14110d; overflow: hidden;
}
.card__no { font-family: var(--mono); font-size: 0.8rem; }
.card h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1; }
.card__tag { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 760px) { .gallery__viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* ===================== PROCESS ===================== */
.process { padding: var(--gap) var(--pad); }
.process__list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.step { background: var(--bg); padding: clamp(1.8rem, 4vw, 3.2rem); transition: background-color .4s; }
.step:hover { background: var(--bg-2); }
.step__no { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 4vw, 3rem); margin: 0.6rem 0 1rem; }
.step p { color: var(--ink-soft); max-width: 44ch; }
@media (max-width: 700px) { .process__list { grid-template-columns: 1fr; } }

/* ===================== TESTIMONIAL ===================== */
.quote { background: var(--dark); color: var(--dark-fg); padding: var(--gap) var(--pad); }
.quote__text {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 5vw, 4.2rem);
  line-height: 1.14; letter-spacing: -0.01em; max-width: 24ch; width: fit-content; margin: clamp(1.5rem, 4vw, 3rem) 0;
}
.quote__cite { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(236,231,221,0.55); font-style: normal; }

/* ===================== REVEAL HELPERS ===================== */
[data-reveal] { will-change: transform, opacity; }
.split-line { display: block; overflow: hidden; }
.split-line > .split-inner { display: block; }
.word-mask { display: inline-block; overflow: hidden; vertical-align: top; }
.word-mask .word { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
