/* ============================================================
   Shruti Seetharaman — blush & berry, page-to-page
   Opening beat: berry curtain → blush stage → portrait → typed line.
   Everything after that is a page swap, driven by .wipe.
   ============================================================ */

:root {
  --blush:      #FDEBE7;   /* page */
  --blush-deep: #F8D8D2;   /* recessed panels */
  --rose:       #EFB9B4;   /* the blob, tags, quiet fills */
  --berry:      #8E2A4E;   /* primary — buttons, accents, the curtain */
  --berry-deep: #5F1733;   /* pressed / gradient floor */
  --ink:        #33191F;
  --ink-soft:   #7A5860;
  --error:      #9B2D2D;

  /* the same colours as r,g,b triplets, for translucent fills and lines */
  --berry-rgb:  142, 42, 78;
  --blush-rgb:  253, 235, 231;
  --rose-rgb:   239, 185, 180;
  --panel-rgb:  255, 255, 255;

  /* the opening curtain and nav wipe stay brand berry in both themes */
  --curtain:      #8E2A4E;
  --curtain-deep: #5F1733;
  --curtain-ink:  #FDEBE7;

  color-scheme: light;

  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  --shadow-card: 0 26px 60px -22px rgba(95, 23, 51, .38);
  --pad: clamp(1.25rem, 5vw, 6rem);

  /* one place to re-time the page transition — main.js reads these */
  --wipe-in:   .55s;
  --wipe-hold: .10s;
  --wipe-out:  .60s;
}

/* ── Dark theme ────────────────────────────────────────────────────
   Deep plum page, berry lifted to a readable pink. --blush is both the
   page and the text on buttons, so flipping it keeps buttons legible.
   Follows the OS unless the visitor picks one with the toggle. */
:root[data-theme="dark"] {
  --blush:      #1D0F14;
  --blush-deep: #2A161D;
  --rose:       #5A2A3A;
  --berry:      #E7849F;
  --berry-deep: #3A1724;
  --ink:        #F6E6E2;
  --ink-soft:   #C7A3AC;
  --error:      #FF9C9C;
  --berry-rgb:  231, 132, 159;
  --blush-rgb:  29, 15, 20;
  --rose-rgb:   110, 50, 70;
  --panel-rgb:  58, 30, 40;
  --shadow-card: 0 26px 60px -22px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blush:      #1D0F14;
    --blush-deep: #2A161D;
    --rose:       #5A2A3A;
    --berry:      #E7849F;
    --berry-deep: #3A1724;
    --ink:        #F6E6E2;
    --ink-soft:   #C7A3AC;
    --error:      #FF9C9C;
    --berry-rgb:  231, 132, 159;
    --blush-rgb:  29, 15, 20;
    --rose-rgb:   110, 50, 70;
    --panel-rgb:  58, 30, 40;
    --shadow-card: 0 26px 60px -22px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Keep the horizontal clip on <html>, not <body>. overflow-x:hidden on body
   propagates to the viewport and makes body the scroll container, which kills
   touch scrolling on mobile once there are position:fixed children. */
html { overflow-x: hidden; }

body {
  background: var(--blush);
  color: var(--ink);
  font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(var(--panel-rgb), .55), transparent 55%),
              radial-gradient(90% 70% at 50% 110%, rgba(var(--rose-rgb), .5), transparent 62%);
}

/* height:auto so the width/height attributes only supply the ratio —
   without it they act as a presentational hint and stretch the image */
img { display: block; max-width: 100%; height: auto; }

em { font-style: normal; color: var(--berry); }

::selection { background: var(--berry); color: var(--blush); }

a { color: inherit; }

/* one focus ring for everything, in the brand colour rather than the UA blue */
:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 3px;
  border-radius: 4px;
}

/* rows and cards whose destination we're still waiting on */
[data-pending] { cursor: default; }

.skip {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 110;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: var(--berry);
  color: var(--blush);
  font-size: .82rem;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus-visible { transform: none; }


/* ── Signature preloader ───────────────────────────────────────────
   One motion, start to finish: the name writes itself, the rule draws
   under it, the role line settles, the whole field lifts away. Every
   number below is in this one block so the beat can be re-timed here
   and nowhere else.

     0.15s  nib appears, ink starts flowing
     1.50s  name finished
     1.55s  rule draws, role line rises
     2.10s  field lifts
     2.90s  gone
   ------------------------------------------------------------------ */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--curtain-deep);
  background-image: radial-gradient(75% 60% at 50% 45%, var(--curtain), var(--curtain-deep) 82%);
  animation: curtain .8s var(--ease-out) 2.1s forwards;
}

@keyframes curtain { to { transform: translateY(-101%); } }

.intro__mark {
  position: relative;
  width: min(88vw, 52rem);
  text-align: center;
  color: var(--curtain-ink);
}

/* Real Caveat outlines, so the name is correct on first paint even if the
   webfont hasn't arrived — and the dots sit on the i's because they are
   the font's own dots, not a floating element. */
.sig {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.sig__ink { fill: var(--curtain-ink); }

/* the mask edge is the pen: everything left of it has been written */
.sig__wipe {
  transform: scaleX(0);
  transform-box: view-box;
  transform-origin: 0 0;
  animation: sigWrite 1.35s cubic-bezier(.62, .03, .35, 1) .15s forwards;
}

@keyframes sigWrite { to { transform: scaleX(1); } }

/* the nib rides that same edge, on the same curve, so they stay together */
.sig__nib {
  fill: var(--curtain-ink);
  opacity: 0;
  animation: sigNib 1.35s cubic-bezier(.62, .03, .35, 1) .15s forwards,
             sigNibFade .3s var(--ease-out) 1.4s forwards;
}

/* travels the full ink width, in viewBox units */
@keyframes sigNib {
  0%   { opacity: 1; transform: translateX(0); }
  100% { opacity: 1; transform: translateX(7173px); }
}

@keyframes sigNibFade { to { opacity: 0; } }

.intro__rule {
  display: block;
  width: 0;
  height: 1px;
  margin: .7rem auto .55rem;
  background: rgba(var(--blush-rgb), .55);
  animation: rule .55s var(--ease-out) 1.55s forwards;
}

@keyframes rule { to { width: 62%; } }

.intro__sub {
  display: block;
  font-size: clamp(.6rem, 1.6vw, .72rem);
  font-weight: 300;
  letter-spacing: .36em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp .55s var(--ease-out) 1.7s forwards;
}


/* ── Page-transition overlay ───────────────────────────────────────
   .is-in  → panel covers the screen (page you're leaving disappears under it)
   .is-out → panel lifts off the top, uncovering the page that slid in
   The word rides the panel and fades out as it goes. */

.wipe {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--curtain);
  background-image: radial-gradient(75% 60% at 50% 45%, #A03559, var(--curtain-deep) 85%);
  transform: translateY(100%);
  pointer-events: none;
}

.wipe.is-in {
  animation: wipeIn var(--wipe-in) var(--ease-out) forwards;
  pointer-events: all;
}

.wipe.is-out {
  animation: wipeOut var(--wipe-out) var(--ease-out) forwards;
}

@keyframes wipeIn  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes wipeOut { from { transform: translateY(0); }    to { transform: translateY(-100%); } }

.wipe__word {
  font-family: 'Caveat', cursive;
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 1;
  color: var(--curtain-ink);
  opacity: 0;
  transform: translateY(18px);
}

.wipe.is-in .wipe__word  { animation: wordUp   .45s var(--ease-out) .12s forwards; }
.wipe.is-out .wipe__word { animation: wordAway .38s var(--ease-out) forwards; }

@keyframes wordUp   { to { opacity: 1; transform: none; } }
@keyframes wordAway { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-22px); } }


/* ── Topbar ────────────────────────────────────────────────────── */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--pad);
  opacity: 0;
  animation: fadeUp .6s var(--ease-out) 2.4s forwards;
  background: linear-gradient(var(--blush) 55%, transparent);
}

.topbar__mark {
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .16em;
  color: var(--berry);
  text-decoration: none;
}

.topbar__nav {
  display: flex;
  gap: clamp(.9rem, 2.4vw, 2rem);
}

.topbar__nav a {
  position: relative;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 3px;
  transition: color .3s var(--ease-out);
}

.topbar__nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--berry);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}

.topbar__nav a:hover,
.topbar__nav a.is-current { color: var(--berry); }

.topbar__nav a:hover::after,
.topbar__nav a.is-current::after { transform: scaleX(1); transform-origin: left; }


/* ── Sections ──────────────────────────────────────────────────────
   One continuous scroll. Nothing is hidden; each section just gets
   enough room to read as its own screen. */

.section {
  position: relative;
  z-index: 1;
  padding: clamp(4.5rem, 11vh, 8rem) var(--pad);
  scroll-margin-top: 4.5rem;   /* so anchors clear the fixed topbar */
}

.section--home,
.section--contact { min-height: 100svh; }


/* ── HOME ──────────────────────────────────────────────────────── */

.section--home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.4rem, 3.5vh, 2.4rem);
  text-align: center;
  padding-top: clamp(6rem, 13vh, 8rem);
  padding-bottom: clamp(4rem, 9vh, 6rem);
  overflow: hidden;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem 1rem;
  border-radius: 999px;
  background: rgba(var(--berry-rgb), .07);
  border: 1px solid rgba(var(--berry-rgb), .13);
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: 0;
  animation: fadeUp .6s var(--ease-out) 2.5s forwards;
}

.pill__led {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--berry);
  animation: led 3.4s ease-out infinite 3s;
}

@keyframes led {
  0%        { box-shadow: 0 0 0 0 rgba(var(--berry-rgb), .5); }
  55%, 100% { box-shadow: 0 0 0 9px rgba(var(--berry-rgb), 0); }
}

.hero__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  flex-wrap: wrap;
}

.hero__avatar {
  position: relative;
  flex: none;
  width: clamp(10rem, 20vw, 15.5rem);
  aspect-ratio: 1;
}

.hero__blob {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--rose);
  transform: scale(0);
  animation: blobIn .7s var(--ease-back) 2.15s forwards;
}

@keyframes blobIn { to { transform: scale(1); } }

.hero__avatar img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.82);
  /* the photo's background is near-white, so a rose ring keeps the circle
     from dissolving into the blush page */
  box-shadow: 0 0 0 7px rgba(var(--rose-rgb), .55),
              0 18px 44px -18px rgba(95, 23, 51, .5);
  animation: avatarIn .7s var(--ease-out) 2.25s forwards;
}

@keyframes avatarIn { to { opacity: 1; transform: scale(1); } }

.hero__copy { text-align: left; }

@media (max-width: 720px) { .hero__copy { text-align: center; } }

.hero__title {
  font-size: clamp(2rem, 5.6vw, 3.6rem);   /* "Seetharaman" is the long word — sized so it holds two lines max */
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
}

/* each word rises in on its own beat — no blur: filter forces a GPU
   re-raster every frame, and with 40 word-spans on the page it was the
   main source of stutter */
.hero__title .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.36em);
  animation: wordIn .55s var(--ease-out) forwards;
  animation-delay: calc(2.4s + var(--i) * .08s);
}

@keyframes wordIn { to { opacity: 1; transform: none; } }

.hero__title .comma { margin: 0 .1em 0 .14em; }
.hero__title .accent { color: var(--berry); }

.hero__role {
  margin-top: .55rem;
  max-width: 34ch;
  font-size: clamp(.92rem, 1.8vw, 1.08rem);
  font-weight: 300;
  color: var(--ink-soft);
  letter-spacing: .04em;
  min-height: 1.6em;
}

@media (max-width: 720px) { .hero__role { margin-inline: auto; } }

.hero__role.is-typing::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 2px;
  translate: 0 .16em;
  background: var(--ink-soft);
  animation: caret .8s steps(1) infinite;
}

@keyframes caret { 50% { opacity: 0; } }

.hero__line {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  color: var(--berry);
  opacity: 0;
  animation: fadeUp .65s var(--ease-out) 3.1s forwards;
}



/* dashed ring that turns slowly behind the portrait, and one dot riding it */

.hero__ring {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  border: 1px dashed rgba(var(--berry-rgb), .3);
  opacity: 0;
  animation: ringIn .8s var(--ease-out) 2.5s forwards,
             spin 48s linear infinite;
}

@keyframes ringIn { to { opacity: 1; } }
@keyframes spin   { to { rotate: 360deg; } }

.hero__orbit {
  position: absolute;
  inset: -14%;
  opacity: 0;
  animation: ringIn .8s var(--ease-out) 2.6s forwards,
             spin 20s linear infinite reverse;
}

.hero__orbit::before {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--berry);
  box-shadow: 0 0 0 5px rgba(var(--berry-rgb), .12);
}

.hero__lede {
  margin-top: 1rem;
  max-width: 30ch;
  font-size: clamp(.95rem, 1.7vw, 1.08rem);
  font-weight: 300;
  color: var(--ink-soft);
  opacity: 0;
  animation: fadeUp .65s var(--ease-out) 2.8s forwards;
}

@media (max-width: 720px) { .hero__lede { margin-inline: auto; } }

.hero__actions {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) { .hero__actions { justify-content: center; } }

.btn--ghost {
  background: transparent;
  color: var(--berry);
  border: 1px solid rgba(var(--berry-rgb), .35);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(var(--berry-rgb), .07);
  border-color: var(--berry);
  box-shadow: none;
}

/* the drifting blush shapes behind the hero */

.deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

/* Three big blurred circles drifting forever. The blur is baked into a
   static layer (it never animates), but the drift kept compositing them,
   so the durations are now long enough to read as ambient rather than
   as motion competing with the content. */
.deco__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .42;
  will-change: transform;
}

.deco__blob--1 {
  width: 30vw; height: 30vw;
  top: 8%; left: -6%;
  background: rgba(var(--rose-rgb), .85);
  animation: drift1 38s ease-in-out infinite;
}

.deco__blob--2 {
  width: 24vw; height: 24vw;
  bottom: 12%; right: -4%;
  background: var(--blush-deep);
  animation: drift2 46s ease-in-out infinite;
}

.deco__blob--3 {
  width: 16vw; height: 16vw;
  top: 52%; left: 62%;
  background: rgba(var(--berry-rgb), .1);
  animation: drift1 54s ease-in-out infinite reverse;
}

@keyframes drift1 {
  50% { transform: translate(5vw, 4vh) scale(1.14); }
}

@keyframes drift2 {
  50% { transform: translate(-4vw, -5vh) scale(1.1); }
}

/* the hero's own strip sits tighter and quieter than the one in Work */

.marquee--hero {
  width: 100vw;
  margin: clamp(1rem, 3vh, 2rem) 0 0;
  border-block-color: rgba(var(--berry-rgb), .12);
}

.marquee--hero .marquee__item {
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: rgba(var(--berry-rgb), .58);
}

.marquee--hero .marquee__track { animation-duration: 58s; }

/* ── Buttons ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.6rem;
  padding: .78rem 1.7rem;
  border-radius: 999px;
  background: var(--berry);
  color: var(--blush);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 12px 26px -12px rgba(95, 23, 51, .75);
  transition: background .35s var(--ease-out),
              transform .35s var(--ease-out),
              box-shadow .35s var(--ease-out);
}

.btn:hover {
  background: var(--berry-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(95, 23, 51, .8);
}

.btn__arrow { transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.section--home .btn { opacity: 0; animation: fadeUp .6s var(--ease-out) 2.95s forwards; }


/* ── Section heads ─────────────────────────────────────────────── */

.section-head { margin-bottom: clamp(2rem, 5vh, 3.25rem); text-align: center; }

.section-head__kicker {
  display: block;
  margin-bottom: .7rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section-head__title {
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.015em;
}

.section-head__sub {
  margin: .9rem auto 0;
  max-width: 34rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.section-head__title em,
.about__copy h2 em,
.contact__title em {
  font-family: 'Caveat', cursive;
  font-size: 1.28em;
  line-height: .8;
}


/* ── WORK ──────────────────────────────────────────────────────── */

/* four cards: 4-up on a wide screen, 2×2 as it narrows, a swipe strip on
   a phone (see the 640px query). A grid rather than wrapping flex so the
   fourth card never orphans onto its own row. */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: clamp(.85rem, 2.2vw, 1.75rem);
  max-width: 78rem;
  margin: 0 auto;
  perspective: 1400px;
}

.project {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: opacity .65s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--i) * .07s);
}

/* was translateY(78px) scale(.93) rotateX(14deg) over 1.15s — a 3D tumble
   on four cards at once. A plain rise reads more confident and costs less. */
.js .project { opacity: 0; transform: translateY(32px); }
.js .project.is-in { opacity: 1; transform: none; }

.project__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: clamp(.9rem, 1.6vw, 1.5rem);
  overflow: hidden;
  background: var(--berry-deep);
  box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}

.project:hover .project__frame {
  transform: translateY(-8px) scale(1.022);
  box-shadow: 0 34px 70px -22px rgba(95, 23, 51, .5);
}

/* :not(.project__logo) matters — the logo chip is also an <img> inside the
   frame, and without this it gets stretched to fill the whole card */
.project__frame img:not(.project__logo),
.project__frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.1s var(--ease-out);
}

.project:hover .project__frame img:not(.project__logo),
.project:hover .project__frame video { transform: scale(1); }

.project__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(95, 23, 51, .5), rgba(95, 23, 51, .05) 55%);
  opacity: .85;
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
}

.project:hover .project__frame::after { opacity: .3; }

.project__tag {
  position: absolute;
  left: .7rem; bottom: .7rem;
  z-index: 2;
  padding: .28rem .68rem;
  border-radius: 999px;
  background: rgba(var(--blush-rgb), .93);
  color: var(--berry);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project__body { padding: 1rem .2rem 0; text-align: left; }

.project__meta {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.project__title {
  margin: .3rem 0 .4rem;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--berry);
}

.project__role {
  margin: -.2rem 0 .5rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink);
}

.project__desc {
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* the card's "button" — a span, because the whole card is already the link */
.project__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding-top: .9rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--berry);
}

.project__cta-arrow { transition: transform .35s var(--ease-out); }
.project:hover .project__cta-arrow { transform: translate(2px, -2px); }
.project[data-pending] .project__cta { opacity: .55; }

/* A venture's mark, in a blush chip so it reads on any photo — the logos
   are full-colour with dark elements, and a bare mark over the card's
   gradient would disappear on a dark image. Same chip language as the tag. */
.project__logo {
  position: absolute;
  left: .7rem; top: .7rem;
  z-index: 2;
  box-sizing: content-box;
  height: 1.4rem;
  width: auto;
  max-width: 4.5rem;
  padding: .34rem .5rem;
  border-radius: .6rem;
  background: rgba(253, 235, 231, .94);   /* stays light in dark mode — the marks are dark */
  object-fit: contain;
  transition: transform .5s var(--ease-out);
}

.project:hover .project__logo { transform: translateY(-2px); }

.project__go {
  position: absolute;
  top: .9rem; right: .9rem;
  z-index: 2;
  width: 2rem; height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--blush-rgb), .9);
  color: var(--berry);
  font-size: .9rem;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-back);
}

.project:hover .project__go { opacity: 1; transform: none; }

/* what-I-do card */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(.75rem, 1.6vw, 1.1rem);
  max-width: 68rem;
  margin: clamp(2.5rem, 7vh, 4.5rem) auto 0;
}

.tile {
  position: relative;
  display: block;
  padding: 1.5rem 1.4rem 1.6rem;
  border-radius: 1.1rem;
  background: rgba(var(--panel-rgb), .5);
  border: 1px solid rgba(var(--berry-rgb), .1);
  text-decoration: none;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out),
              background .4s var(--ease-out), border-color .4s var(--ease-out);
  transition-delay: calc(var(--i) * .09s);
}

.js .tile { opacity: 0; transform: translateY(30px); }
.js .tile.is-in { opacity: 1; transform: none; }

.tile__meta {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tile--plain { background: rgba(var(--rose-rgb), .3); }

.tile__list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .9rem;
  list-style: none;
}

.tile__list li {
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(var(--panel-rgb), .7);
  font-size: .78rem;
  color: var(--ink);
}


/* ── WATCH: Instagram + TikTok ─────────────────────────────────────
   Vertical 9:16 cards. Each is a thumbnail and a play button until it's
   clicked, at which point main.js swaps in the real embed iframe — so
   the platforms' scripts never load unless someone actually wants one. */

.reels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: clamp(.85rem, 2.2vw, 1.6rem);
  max-width: 72rem;
  margin: 0 auto;
}

.reel {
  display: flex;
  flex-direction: column;
  transition: opacity .65s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--i) * .07s);
}

.js .reel { opacity: 0; transform: translateY(32px); }
.js .reel.is-in { opacity: 1; transform: none; }

.reel__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: clamp(.9rem, 1.6vw, 1.4rem);
  overflow: hidden;
  background: var(--berry-deep);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}

.reel__frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 70px -22px rgba(95, 23, 51, .5);
}

.reel__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1s var(--ease-out);
}

.reel__frame:hover .reel__thumb { transform: scale(1); }

.reel__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(95, 23, 51, .55), rgba(95, 23, 51, .05) 60%);
  opacity: .8;
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
}

.reel__frame:hover::after { opacity: .45; }

.reel__badge {
  position: absolute;
  left: .7rem; top: .7rem;
  z-index: 2;
  padding: .26rem .6rem;
  border-radius: 999px;
  background: rgba(var(--blush-rgb), .93);
  color: var(--berry);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reel__play {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  background: rgba(var(--blush-rgb), .92);
  box-shadow: 0 10px 24px -10px rgba(95, 23, 51, .7);
  transition: transform .4s var(--ease-back), background .3s var(--ease-out);
}

.reel__play svg { width: 1.8rem; height: 1.8rem; fill: var(--berry); }
.reel__frame:hover .reel__play { transform: scale(1.1); background: var(--blush); }

/* once swapped, the iframe fills the same box the facade occupied */
.reel__frame--live {
  cursor: default;
  background: var(--berry-deep);
}

.reel__frame--live::after { content: none; }

.reel__frame--live iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.reel__body { padding: .85rem .2rem 0; text-align: left; }

.reel__stats {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  font-size: .76rem;
  color: var(--ink-soft);
}

.reel__stat b {
  font-weight: 600;
  color: var(--berry);
}

.reel__caption {
  margin-top: .4rem;
  font-size: .84rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reel__link {
  display: inline-block;
  margin-top: .5rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--berry);
  text-decoration: none;
}

.reel__link:hover { text-decoration: underline; }

.reels__note {
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  text-align: center;
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .reels { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .reel__play { width: 2.6rem; height: 2.6rem; }
  .reel__play svg { width: 1.4rem; height: 1.4rem; }
}


/* ── ABOUT ─────────────────────────────────────────────────────── */

/* Five paragraphs of story beside one photo: the text column is the
   tall one, so the photo sticks and rides alongside it rather than
   floating alone in the middle of a long column. */
.section--about {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(1.75rem, 5vw, 4.5rem);
  max-width: 78rem;
  margin: 0 auto;
}

.about__media {
  position: sticky;
  top: clamp(5rem, 12vh, 7rem);
}

.about__media img {
  width: 100%;
  border-radius: clamp(1rem, 2vw, 1.75rem);
  box-shadow: var(--shadow-card);
}

/* The script <em> runs at 1.28em on a .8 line-height, so its glyphs sit
   below their own line box. On this heading the em lands on the last
   line, so the extra bottom margin is what keeps it off the paragraph. */
.about__copy h2 {
  margin: .3rem 0 2.2rem;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -.015em;
}

.about__copy p {
  margin-bottom: 1rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 58ch;
}


/* ── ELSEWHERE ─────────────────────────────────────────────────── */

.links {
  max-width: 46rem;
  margin: 0 auto;
  list-style: none;
}

.links li {
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--i) * .1s);
}

.js .links li { opacity: 0; transform: translateX(-46px); }
.js .links li.is-in { opacity: 1; transform: none; }

/* One rule, one transition list. The berry rule under each row draws
   across as the row lands — the static border is the resting state. */
.links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem .4rem;
  border-bottom: 1px solid rgba(var(--berry-rgb), .16);
  text-decoration: none;
  background-image: linear-gradient(var(--berry), var(--berry));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .9s var(--ease-out) .25s,
              padding-left .4s var(--ease-out);
}

.js .links li.is-in a { background-size: 100% 1px; }

.links a:not([data-pending]):hover { padding-left: 1.1rem; }

.links__label {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 500;
  color: var(--ink);
  transition: color .3s var(--ease-out);
}

/* the channel's own mark, set beside the name and sized to its cap height */
.links__mark {
  height: clamp(1.7rem, 3.6vw, 2.5rem);
  width: auto;
  max-width: 3.4rem;
  flex: none;
  object-fit: contain;
  transition: transform .4s var(--ease-out);
}

.links a:hover .links__mark { transform: scale(1.06); }

.links a:hover .links__label { color: var(--berry); }

.links__hint {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.links__go {
  margin-left: auto;
  color: var(--berry);
  opacity: .45;
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
}

.links a:hover .links__go { opacity: 1; transform: translate(3px, -3px); }


/* ── CONTACT ───────────────────────────────────────────────────── */

/* No longer a full-viewport centred block — the form gives it enough
   height on its own, and the old centring left a screen of blush above
   the heading ("reduce the empty space above by ~20%"). */
.section--contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 0;
  padding-top: clamp(3.5rem, 8vh, 6rem);
}

.contact__title {
  margin: .2rem 0 1.6rem;
  max-width: 20ch;   /* "Let's Create Something / Meaningful." — two lines */
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.contact__label {
  margin-bottom: .35rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact__mail {
  font-size: clamp(1.05rem, 3vw, 1.6rem);
  font-weight: 400;
  color: var(--berry);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--berry-rgb), .35);
  padding-bottom: 2px;
  transition: border-color .35s var(--ease-out);
}

.contact__mail:hover { border-color: var(--berry); }

.contact__note {
  margin-top: 1.4rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 30rem;
}

/* ── Enquiry form ──────────────────────────────────────────────── */

.enquiry {
  width: min(100%, 36rem);
  margin-top: 2.6rem;
  text-align: left;
}

.enquiry__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }

.field__label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field__input {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: .8rem;
  border: 1px solid rgba(var(--berry-rgb), .2);
  background: rgba(var(--panel-rgb), .6);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}

.field__input:focus {
  outline: none;
  border-color: var(--berry);
  background: rgba(var(--panel-rgb), .9);
}

textarea.field__input { resize: vertical; min-height: 7rem; }

select.field__input {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%238E2A4E' stroke-width='1.6'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

/* honeypot — present in the DOM for bots, never shown or focusable */
.enquiry__trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.enquiry__submit { margin-top: 1.2rem; cursor: pointer; border: 0; font: inherit; font-weight: 500; }
.enquiry__submit:disabled { opacity: .6; cursor: wait; transform: none; }

.enquiry__status {
  min-height: 1.4em;
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--ink-soft);
}

.enquiry__status[data-kind="ok"]    { color: var(--berry); }
.enquiry__status[data-kind="error"] { color: var(--error); }

@media (max-width: 560px) {
  .enquiry__grid { grid-template-columns: 1fr; }
}


/* ── Social row ────────────────────────────────────────────────── */

.socials {
  display: flex;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 3.5rem);    /* wider than before, per the client */
  margin-top: 3.2rem;
  flex-wrap: wrap;
}

/* a real logo needs a touch more room than a line icon to read at this size */
.socials__icon--img {
  width: auto;
  height: 1.3rem;
  stroke: none;
}

.socials__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 3px;
  transition: color .3s var(--ease-out);
}

.socials a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--berry);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}

.socials a:hover { color: var(--berry); }
.socials a:hover::after { transform: scaleX(1); transform-origin: left; }


/* ── Footer line ───────────────────────────────────────────────── */

.legal {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad) 2rem;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--ink-soft);   /* solid — the old 70% tint fell to 2.7:1 contrast */
}


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}


/* ── Scroll reveals ────────────────────────────────────────────────
   Everything below the fold arrives on its own beat. main.js adds
   .is-in when the element reaches the viewport and numbers the
   siblings in --r, which cascades the delay down a section.
   The hidden states are scoped to html.js so the page is still fully
   readable if the script never runs. */

/* No blur, no will-change. Both were costing far more than they gave:
   blur re-rasterizes every frame, and will-change held a compositor
   layer on 15 elements for the life of the page. A shorter rise with a
   tighter stagger reads calmer and runs on the compositor alone. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out),
              transform .7s var(--ease-out);
  transition-delay: calc(var(--r, 0) * .06s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Headings arrive word by word. Capped stagger: a 23-word heading at the
   old .07s took 1.6s to assemble, which read as the page struggling —
   .035s keeps even the longest one under half a second. */
.js .split .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.4em);
  transition: opacity .5s var(--ease-out),
              transform .55s var(--ease-out);
  transition-delay: calc(var(--w) * .035s);
}

.js .split.is-in .word {
  opacity: 1;
  transform: none;
}

/* The About headline is her whole first paragraph — 23 words. Per-word is
   wrong at that length, so it rises as one block. */
.js .about__copy h2.split .word {
  transition-delay: 0s;
  transform: translateY(20px);
}

/* the about photo un-crops outward and settles out of a push-in */
.about__media.reveal { transform: none; filter: none; }

.js .about__media img {
  clip-path: inset(18% 14% round clamp(1rem, 2vw, 1.75rem));
  transform: scale(1.18);
  transition: clip-path 1.5s var(--ease-out), transform 1.7s var(--ease-out);
}

.js .about__media.is-in img {
  clip-path: inset(0% 0% round clamp(1rem, 2vw, 1.75rem));
  transform: none;
}

/* slow drift as it passes through the viewport — main.js writes --par */
.about__media { --par: 0; }
.about__media img { translate: 0 calc(var(--par) * 1px); }


/* ── Scroll progress ───────────────────────────────────────────── */

.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 95;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  background: linear-gradient(90deg, var(--rose), var(--berry));
  pointer-events: none;
}


/* ── Marquee ───────────────────────────────────────────────────────
   A continuous strip of the disciplines running under the work row.
   Two identical tracks, the second sitting exactly one track-width
   behind, so the loop has no seam. */

.marquee {
  position: relative;
  margin: clamp(2.5rem, 7vh, 4.5rem) calc(var(--pad) * -1) 0;
  padding: .9rem 0;
  overflow: hidden;
  border-block: 1px solid rgba(var(--berry-rgb), .16);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  /* phrases now, not single words — the track is ~2× longer, so the
     duration is too, to keep the same px/s pace */
  animation: marquee 45s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-50%); } }

.marquee__item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1;
  color: var(--berry);
  white-space: nowrap;
}

.marquee__item::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rose);
}


/* ── Scroll cue ────────────────────────────────────────────────── */

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  translate: -50% 0;
  width: 22px;
  height: 34px;
  opacity: 0;
  animation: fadeUp .65s var(--ease-out) 3.25s forwards;
}

.scroll-cue__line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(var(--ink-soft), transparent);
  transform-origin: top;
  animation: cue 1.9s var(--ease-out) infinite;
}

@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: .8; }
  100% { transform: scaleY(1) translateY(100%); opacity: 0; }
}


/* ── Skipping the curtain ──────────────────────────────────────────
   main.js adds html.no-intro on a repeat visit, a deep link, or reduced
   motion, and removes the curtain. Every opening delay above was timed
   from the curtain lifting at 2.15s — without it, they'd leave the hero
   empty for four seconds. Re-timed here to a short cascade from zero. */

.no-intro .topbar          { animation-delay: 0s; }
.no-intro .pill            { animation-delay: .08s; }
.no-intro .hero__blob      { animation-delay: 0s; }
.no-intro .hero__avatar img{ animation-delay: .08s; }
.no-intro .hero__title .w  { animation-delay: calc(.16s + var(--i) * .07s); }
.no-intro .hero__ring      { animation-delay: .3s, 0s; }
.no-intro .hero__orbit     { animation-delay: .38s, 0s; }
.no-intro .hero__lede      { animation-delay: .46s; }
.no-intro .section--home .btn { animation-delay: .56s; }
.no-intro .hero__line      { animation-delay: .64s; }
.no-intro .scroll-cue      { animation-delay: .78s; }
.no-intro .pill__led       { animation-delay: 1.2s; }


/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .section--about { grid-template-columns: 1fr; }
  .about__media { position: static; }
  .about__copy p { max-width: none; }
}

@media (max-width: 640px) {
  .hero__row { flex-direction: column; gap: 1.5rem; }
  .topbar__nav { gap: .85rem; }
  .topbar__nav a { font-size: .68rem; letter-spacing: .08em; }

  /* three cards won't sit side by side on a phone, and 2 + 1 orphans the
     third — so the row becomes a swipeable strip that bleeds off both edges */
  .projects {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: .75rem;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    padding-bottom: .5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* let a vertical drag that starts on the strip still scroll the page */
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
  }

  .projects::-webkit-scrollbar { display: none; }

  .project { flex: 0 0 74%; scroll-snap-align: center; }

  /* the hints are three-word phrases now — on a phone they'd wrap the
     label instead, so the hint drops to its own line under it */
  .sig__nib { display: none; }   /* too small to read at phone scale */
  .links a { flex-wrap: wrap; gap: .2rem 1rem; }
  .links__label { white-space: nowrap; }
  .links__go   { order: 2; }
  .links__hint { order: 3; flex-basis: 100%; }
}


/* ── Reduced motion: everything visible, nothing moves ─────────── */

/* ── Theme toggle ──────────────────────────────────────────────── */

.topbar__nav { margin-left: auto; }

.theme-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  border: 1px solid rgba(var(--berry-rgb), .25);
  background: rgba(var(--panel-rgb), .45);
  color: var(--berry);
  cursor: pointer;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), transform .4s var(--ease-back);
}
.theme-toggle:hover { border-color: var(--berry); transform: rotate(-15deg); }
.theme-toggle svg {
  grid-area: 1 / 1;
  width: 1.05rem; height: 1.05rem;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
/* show the moon in light mode (click → dark), the sun in dark mode */
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
}

/* the theme change itself cross-fades instead of snapping */
html.theme-fading, html.theme-fading * {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease !important;
}

@media (max-width: 640px) {
  .topbar__nav-wide { display: none; }   /* still reachable by scrolling */
  .theme-toggle { width: 1.9rem; height: 1.9rem; }
}


/* ── In numbers ───────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: clamp(.75rem, 1.6vw, 1.1rem);
  max-width: 68rem;
  margin: clamp(2.5rem, 7vh, 4rem) auto 0;
  text-align: center;
}
.stats[hidden] { display: none; }
/* dt must come first in a dl, but the number should read on top */
.stat {
  display: flex;
  flex-direction: column-reverse;
  padding: 1.4rem 1rem;
  border-radius: 1.1rem;
  background: rgba(var(--panel-rgb), .5);
  border: 1px solid rgba(var(--berry-rgb), .1);
}
.stat__value {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--berry);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: .35rem;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}


/* ── Speaking ─────────────────────────────────────────────────── */

.talks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  gap: clamp(.75rem, 1.6vw, 1.1rem);
  max-width: 72rem;
  margin: 0 auto;
}
.talk { background: rgba(var(--panel-rgb), .55); }
.talk:hover { border-color: rgba(var(--berry-rgb), .35); }
.talk__num {
  font-family: 'Caveat', cursive;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--berry);
}
.talk__title {
  margin-top: .6rem;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
}
.talk__desc {
  margin-top: .5rem;
  font-size: .9rem;
  font-weight: 300;
  color: var(--ink-soft);
}
.formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: clamp(1.75rem, 4vh, 2.5rem) auto 0;
  list-style: none;
}
.formats li {
  padding: .4rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--berry-rgb), .22);
  font-size: .8rem;
  color: var(--ink);
}
.speaking__cta { text-align: center; }


/* ── Scroll-driven motion (2026+ browsers; others simply skip it) ──
   Pure CSS, tied to scroll position: the hero settles back as you
   leave it, and the marquee strips drift in from the side. */

@supports (animation-timeline: view()) {
  .hero__row {
    animation: heroLeave linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 80%;
  }
  @keyframes heroLeave {
    to { opacity: .25; transform: translateY(-6vh) scale(.96); }
  }

  .talks, .stats {
    animation: riseIn linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  @keyframes riseIn {
    from { transform: translateY(5vh); }
    to   { transform: none; }
  }
}


@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }

  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }

  .topbar, .pill, .btn, .hero__line, .scroll-cue,
  .hero__avatar img, .hero__title .w, .split .word,
  .reveal, .project, .tile, .links li, .reel {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .about__media img { clip-path: none !important; translate: none !important; }
  .marquee__track, .deco__blob, .hero__ring, .hero__orbit { animation: none !important; }
  .sig__wipe { transform: none !important; }
  .sig__nib  { display: none !important; }
  .hero__ring, .hero__orbit, .hero__lede { opacity: 1 !important; }
  .progress { display: none !important; }
  .hero__blob { transform: scale(1) !important; }
  .wipe { display: none !important; }
  .hero__row, .talks, .stats { opacity: 1 !important; transform: none !important; }
}
