/* ============================================================
   Light Agency
   Aesthetic: editorial, warm, modern
   Type: Fraunces (display) · Instrument Sans (body) · JetBrains Mono (labels)
   Palette: warm cream + ink + toned-down terracotta accent
   (metallic silver arrow logo mark provides the cool brand accent)
   ============================================================ */

:root {
  /* Color — warm cream + ink + a toned-down terracotta accent */
  --cream: #F2EDE3;
  --cream-warm: #ECE6D8;
  --cream-deep: #E0D8C5;
  --ink: #18160F;
  --ink-soft: #3A352B;
  --ink-mute: #8A8377;
  --rule: #D9D2C2;
  --accent: #D75E3C;      /* softer burnt-orange (toned down from #E54A2E) */
  --accent-deep: #B5482B;
  --accent-glow: #F2A074;

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --pad-x: clamp(20px, 5vw, 80px);
  --max: 1440px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 900px) {
  body { cursor: auto; }
}

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

a { color: inherit; }

/* Subtle paper-texture noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0   0 0 0 0 0   0 0 0 0 0   0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease);
  mix-blend-mode: difference;
  border-color: white;
}
.cursor.is-hover {
  width: 48px; height: 48px;
  background: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 900px) {
  .cursor { display: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--pad-x);
  z-index: 100;
  color: var(--cream);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}
.nav__logo {
  width: 42px;
  height: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.nav__brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 14;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}
.nav__brand-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.78;
  transform: translateY(-2px);
}

.nav__menu {
  display: flex;
  gap: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__menu a {
  text-decoration: none;
  position: relative;
  color: var(--cream);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav__menu a:hover { color: var(--accent-glow); }
.nav__cta { color: var(--accent-glow) !important; }

/* Scrolled past hero: dark text on cream background */
.nav { transition: background 0.4s var(--ease); }
.nav__brand, .nav__menu a { transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease); }
.nav--dark {
  background: rgba(242, 237, 227, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav--dark .nav__brand,
.nav--dark .nav__menu a {
  color: var(--ink);
  text-shadow: none;
}
.nav--dark .nav__brand-name { text-shadow: none; }
.nav--dark .nav__logo { filter: none; }
.nav--dark .nav__menu a:hover { color: var(--accent); }
.nav--dark .nav__cta { color: var(--accent) !important; }

@media (max-width: 760px) {
  .nav {
    padding: 16px var(--pad-x);
  }
  .nav__brand { gap: 9px; }
  .nav__logo { width: 28px; }
  .nav__brand-name { font-size: 22px; gap: 8px; }
  .nav__brand-sub { font-size: 10px; letter-spacing: 0.16em; }
  .nav__menu {
    gap: 18px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 460px) {
  .nav__logo { width: 24px; }
  .nav__brand-name { font-size: 18px; }
  .nav__brand-sub { display: none; }
  .nav__menu { gap: 14px; font-size: 9px; }
}

/* ============================================================
   SECTION HEADS
   ============================================================ */
.section-head {
  padding: 0 var(--pad-x);
  margin-bottom: 64px;
  display: grid;
  gap: 32px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 130px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.92;
  font-variation-settings: 'opsz' 144;
}
.section-head h2 em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'wght' 300;
  color: var(--accent);
}

/* ============================================================
   HERO — depth gallery with mix-blend title
   Photos fly toward camera through 3D space, title overlays with
   mix-blend-mode: difference so it inverts against whatever's behind.
   ============================================================ */
/* Hero — full-bleed photo background with dark scrim. Photo adds life
   without competing; scrim keeps cream/coral text fully legible. */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink) url('sequence2.JPG') center 20% / cover no-repeat;
  color: var(--cream);
}

/* Dark cinematic scrim */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 78% 62% at 50% 48%,
      rgba(10, 8, 5, 0.58) 0%,
      rgba(10, 8, 5, 0.28) 45%,
      rgba(10, 8, 5, 0) 72%
    ),
    linear-gradient(
      160deg,
      rgba(10, 8, 5, 0.70) 0%,
      rgba(10, 8, 5, 0.46) 50%,
      rgba(10, 8, 5, 0.66) 100%
    );
  pointer-events: none;
}

/* Centered text column */
.hero__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding: 80px var(--pad-x);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* Eyebrow above the title — matches the section-num pattern used elsewhere */
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1;
}

/* Big editorial display title — cream on photo, italic coral accents */
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 10vw, 148px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 144;
  color: var(--cream);
  margin: 0;
  /* Soft shadow lifts the serif off the busy photo without a visible box */
  text-shadow:
    0 1px 2px rgba(10, 8, 5, 0.45),
    0 2px 30px rgba(10, 8, 5, 0.55);
}
.hero__title-line1,
.hero__title-line2 {
  display: block;
}
.hero__title em {
  font-style: italic;
  color: var(--cream); /* base; inline-highlight animates to coral */
  font-variation-settings: 'opsz' 144, 'wght' 300;
}

/* Force each title line onto a single visual line at wide viewports only */
@media (min-width: 980px) {
  .hero__title-line1,
  .hero__title-line2 { white-space: nowrap; }
}

/* Description — soft cream on photo background */
.hero__desc {
  max-width: none;
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: rgba(242, 237, 227, 0.82);
  margin: 0;
  text-shadow: 0 1px 18px rgba(10, 8, 5, 0.5);
  white-space: nowrap;
}
/* Re-enable wrapping on narrower screens */
@media (max-width: 860px) {
  .hero__desc {
    white-space: normal;
    max-width: 520px;
    font-size: clamp(17px, 3.5vw, 21px);
  }
}

/* Coral pill CTA — same energy as the contact email pill */
.hero__cta--solid {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 15px 32px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.005em;
  cursor: pointer;
  box-shadow:
    0 12px 28px rgba(215, 94, 60, 0.28),
    0 3px 6px   rgba(215, 94, 60, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    background 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.hero__cta--solid:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow:
    0 16px 32px rgba(215, 94, 60, 0.36),
    0 5px 10px  rgba(215, 94, 60, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
.hero__cta--solid:active { transform: translateY(0); }
.hero__cta--solid:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 4px;
}

/* Small italic "available" note — feels like a magazine masthead */
.hero__note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.005em;
  color: var(--ink-mute);
  margin: 4px 0 0;
  font-variation-settings: 'opsz' 144, 'wght' 400;
}

/* Scroll cue anchored to the bottom of the hero */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-mute);
  cursor: pointer;
  z-index: 1;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero__scroll:hover {
  color: var(--accent);
  transform: translateX(-50%) translateY(2px);
}
.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--ink-mute) 0%, transparent 100%);
  display: block;
}

/* Standard underline-on-hover link */
.link {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.link:hover { color: var(--accent); }

/* Fade-up entrance: each child stagger-delays via --fade-i */
.hero__fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s cubic-bezier(0.25, 0.4, 0.25, 1) forwards;
  animation-delay: calc(0.15s + var(--fade-i, 0) * 0.12s);
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero__overlay { gap: 22px; padding-top: 100px; }
  .hero__scroll { bottom: 24px; }
}

@media (max-width: 600px) {
  .hero__overlay { gap: 20px; }
  .hero__note { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__fade-up { opacity: 1; transform: none; animation: none; }
}

/* Hide any legacy hero layers if old markup is still around */
.hero__bg, .hero__scrim, .hero__sub, .hero__wash, .hero__center,
.hero__gallery, .hero__plane, .hero__shapes, .hero__shape,
.hero__vignette, .hero__bottom-fade, .hero__bg-glow,
.hero__badge { display: none; }

/* ============================================================
   WORK
   ============================================================ */
.work {
  /* Reduced top padding because stats section now sits directly above
     and already provides ~80px of buffer at its bottom. */
  padding: 100px 0 60px;
  position: relative;
}

/* 3 independent flex columns — items inside stack with their own
   aspect ratios so column heights stagger (true masonry feel). */
.work__grid {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 0 var(--pad-x);
  max-width: 1140px;
  margin: 0 auto;
}
.work__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.work__item { /* no grid-column needed in flex layout */ }

/* Aspect-ratio variants drive the staggered heights */
.work__item--tall   .work__visual { aspect-ratio: 9 / 16; }   /* ~1.78 */
.work__item--mid    .work__visual { aspect-ratio: 4 / 5;  }   /* ~1.25 */
.work__item--square .work__visual { aspect-ratio: 1 / 1;  }
/* Default if no modifier */
.work__item .work__visual:not([class*="aspect-"]) {
  /* fall through to one of the modifiers above */
}

.work__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16; /* fallback if no modifier */
  overflow: hidden;
  background: #000;
}

/* (Featured PSA / divider styles removed — work section is now 6 tiles only) */

.section-head--work {
  position: relative;
}
.work .section-head h2 {
  font-size: clamp(38px, 6.5vw, 96px);
}
.work-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-top: -16px;
}

.work__feature-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.work__feature-visual iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.work__feature-caption {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}
.work__feature-text {
  display: block;
  flex: 1;
  min-width: 0;
}
.work__feature-text h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144;
  line-height: 1.05;
  margin-bottom: 6px;
}
.work__feature-text p {
  font-size: 14px;
  color: var(--ink-mute);
}

.work__placeholder {
  position: absolute;
  inset: 0;
  transition: transform 1s var(--ease);
}

.work__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  transition: transform 1s var(--ease);
}
.work__item:hover .work__video {
  transform: scale(1.02);
}

/* Color variants — subtle gradient placeholders that look like film stills */
.work__visual[data-color="orange"] .work__placeholder {
  background:
    radial-gradient(circle at 30% 20%, rgba(242,160,116,0.4), transparent 50%),
    linear-gradient(135deg, #3B4452 0%, #4A5568 60%, #9AA4B2 100%);
}
.work__visual[data-color="orange-deep"] .work__placeholder {
  background:
    radial-gradient(circle at 70% 80%, rgba(24,22,15,0.4), transparent 60%),
    linear-gradient(160deg, #262B34 0%, #3B4452 100%);
}
.work__visual[data-color="cream"] .work__placeholder {
  background:
    radial-gradient(circle at 25% 35%, rgba(215,94,60,0.15), transparent 55%),
    linear-gradient(140deg, #DADCE1 0%, #AEB5C0 100%);
}
.work__visual[data-color="cream-warm"] .work__placeholder {
  background:
    radial-gradient(circle at 65% 30%, rgba(255,255,255,0.5), transparent 50%),
    linear-gradient(125deg, #E7E9ED 0%, #BFC5CF 100%);
}
.work__visual[data-color="ink"] .work__placeholder {
  background:
    radial-gradient(circle at 20% 80%, rgba(215,94,60,0.25), transparent 55%),
    linear-gradient(135deg, #14161B 0%, #2E323A 100%);
}

/* film grain on placeholders */
.work__placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23g)' opacity='0.5'/></svg>");
  opacity: 0.18;
  mix-blend-mode: overlay;
}

.work__item:hover .work__placeholder {
  transform: scale(1.04);
}

.work__runtime {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cream);
  background: rgba(24, 22, 15, 0.55);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 100px;
  z-index: 2;
}

.work__hover {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) translateY(8px);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--cream);
  background: var(--accent);
  padding: 12px 22px;
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: 2;
  font-variation-settings: 'opsz' 144;
  white-space: nowrap;
}
.work__item:hover .work__hover {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.work__caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.work__caption-left {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 4px 8px;
  align-items: baseline;
}
.work__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  grid-row: 1;
}
.work__caption h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144;
  grid-row: 1;
  line-height: 1.05;
}
.work__caption p {
  font-size: 14px;
  color: var(--ink-mute);
  grid-column: 2;
  grid-row: 2;
}
.work__year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  flex-shrink: 0;
  padding-top: 6px;
}

.work__more {
  display: block;
  text-align: center;
  margin-top: 100px;
  padding: 0 var(--pad-x);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  text-decoration: none;
  font-variation-settings: 'opsz' 144;
  transition: color 0.3s var(--ease);
}
.work__more:hover { color: var(--accent); }

@media (max-width: 900px) {
  /* Tablet: 2 cols by wrapping flex columns. Third col flows beneath. */
  .work__grid { flex-wrap: wrap; gap: 16px; }
  .work__col  { flex: 1 1 calc(50% - 8px); gap: 16px; }
  .work__feature { margin-top: 80px; }
}

@media (max-width: 600px) {
  /* Phone: 2-up grid so videos are smaller. Flatten the col wrappers
     with display:contents so all 6 tiles grid directly into 2 columns. */
  .work__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
  }
  .work__col { display: contents; }
}

/* ============================================================
   APPROACH (dark section)
   ============================================================ */
.approach {
  background: var(--ink);
  color: var(--cream);
  padding: 160px 0;
  margin: 60px 0 0;
  position: relative;
  overflow: hidden;
}
.approach::before {
  content: "Approach · Approach · Approach · Approach · Approach ·";
  position: absolute;
  top: 60px;
  left: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 24vw;
  font-style: italic;
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  color: rgba(242, 237, 227, 0.04);
  pointer-events: none;
  letter-spacing: -0.04em;
  line-height: 1;
}
.approach .section-num { color: rgba(242, 237, 227, 0.72); font-weight: 500; position: relative; }
.approach .section-head h2 { color: var(--cream); position: relative; }

.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 48px;
  row-gap: 0;
  padding: 0 var(--pad-x);
  position: relative;
}

.approach__col {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  border-top: 1px solid rgba(242, 237, 227, 0.18);
  padding-top: 32px;
}
.approach__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  color: var(--accent);
  display: block;
  margin-bottom: 28px;
  font-variation-settings: 'opsz' 144;
}
.approach__col h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  line-height: 1.05;
  font-variation-settings: 'opsz' 144;
}
.approach__col p {
  color: rgba(242, 237, 227, 0.72);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .approach__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    column-gap: 0;
    row-gap: 40px;
  }
  .approach__col {
    display: block;
    grid-row: auto;
  }
  .approach { padding: 100px 0; }
}

/* ============================================================
   STUDIES
   ============================================================ */
.studies {
  padding: 140px 0 100px;
}

.study {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  padding: 70px var(--pad-x);
  border-top: 1px solid var(--rule);
}
.study:last-child { border-bottom: 1px solid var(--rule); }

.study__meta {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px 14px;
  align-content: start;
  font-size: 14px;
  position: sticky;
  top: 100px;
  align-self: start;
  height: max-content;
}

.study__body h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 28px;
  font-variation-settings: 'opsz' 144;
}
.study__body h3 em {
  font-style: italic;
  color: var(--accent);
}

.study__intro {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 40px;
  max-width: 660px;
}
.study__intro em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  font-variation-settings: 'opsz' 14;
}

.study__results {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  max-width: 660px;
}
.study__results li {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
}
.study__results strong {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-variation-settings: 'opsz' 144;
}

@media (max-width: 900px) {
  .study {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 50px var(--pad-x);
  }
  .study__meta { position: static; }
  .study__results { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ============================================================
   ABOUT — editorial profile spread
   Text and photo are co-equal. Either could stand alone.
   ============================================================ */
.about {
  padding: 140px 0 150px;
}

.about__head {
  max-width: 1400px;
  margin: 0 auto 80px;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 20px;
}

.about__spread {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  gap: 80px;
  align-items: center;
}

/* ---------- Portrait (right) — refined editorial plate ---------- */
.about__portrait {
  margin: 0;
  position: relative;
  isolation: isolate;
  align-self: center;
  transform: translate(-40px, 48px);
  /* Layered drop-shadow for editorial depth */
  filter:
    drop-shadow(0 22px 40px rgba(24, 22, 15, 0.22))
    drop-shadow(0 6px 14px rgba(24, 22, 15, 0.14))
    drop-shadow(0 2px 4px  rgba(24, 22, 15, 0.10));
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}
.about__portrait:hover {
  filter:
    drop-shadow(0 28px 48px rgba(24, 22, 15, 0.28))
    drop-shadow(0 10px 18px rgba(215, 94, 60, 0.16))
    drop-shadow(0 2px 4px   rgba(24, 22, 15, 0.10));
  transform: translateY(-2px);
}

/* Aspect-ratio box + cream fallback (prevents layout shift if image is slow) */
.about__portrait::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(140deg, var(--cream-deep) 0%, var(--cream-warm) 100%);
  border-radius: 28px;
}

.about__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(1.02) contrast(1.04) brightness(1.01);
  display: block;
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 1px rgba(242, 237, 227, 0.18),
    inset 0 -90px 130px -70px rgba(18, 14, 10, 0.55);
}

.about__portrait figcaption {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 12px;
}
.about__portrait figcaption::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- Text panel (right) ---------- */
.about__copy {
  position: relative;
}

.about__name {
  font-family: var(--font-display);
  font-size: clamp(56px, 7.8vw, 116px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 144;
  margin-bottom: 24px;
}
.about__name em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: 'opsz' 144, 'wght' 300;
  display: inline-block;
}

.about__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  margin-bottom: 40px;
}

/* Lead line: large display serif (kept) */
.about__bio-lead {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144;
  color: var(--ink);
  max-width: 540px;
  margin-bottom: 48px;
}

/* Vertical spec list */
.about__specs {
  display: flex;
  flex-direction: column;
  max-width: 540px;
}
.about__spec {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.about__spec:last-child {
  border-bottom: 1px solid var(--rule);
}
.about__spec dt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.about__spec dd {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 900px) {
  .about { padding: 90px 0 100px; }
  .about__head { margin-bottom: 50px; padding-bottom: 14px; }
  .about__spread { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .about__name { font-size: clamp(48px, 14vw, 76px); margin-bottom: 18px; }
  .about__role { margin-bottom: 28px; }
  .about__bio-lead { font-size: 22px; margin-bottom: 36px; }
  .about__spec { grid-template-columns: 110px 1fr; gap: 18px; }
  .about__spec dd { font-size: 16px; }
  .about__portrait { max-width: 360px; }
  .about__portrait::before { aspect-ratio: 3 / 4; border-radius: 22px; }
  .about__portrait img { border-radius: 22px; }
}

/* Mobile only: compact spec list + tighter spacing so the
   portrait sits higher up the page. */
@media (max-width: 600px) {
  .about__spread { gap: 24px; }
  .about__bio-lead { margin-bottom: 26px; }
  .about__spec {
    grid-template-columns: 84px 1fr;
    gap: 12px;
    padding: 11px 0;
  }
  .about__spec dt { font-size: 9.5px; letter-spacing: 0.1em; }
  .about__spec dd { font-size: 13.5px; line-height: 1.35; }
  /* Smaller portrait on phones */
  .about__portrait { max-width: 240px; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 160px var(--pad-x) 50px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contact .section-num { display: block; margin-bottom: 20px; }

.contact__heading {
  font-family: var(--font-display);
  font-size: clamp(60px, 11vw, 160px);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0 0 60px;
  font-variation-settings: 'opsz' 144;
}
.contact__heading em {
  font-style: italic;
  color: var(--accent);
}

.contact__email {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 400;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  font-variation-settings: 'opsz' 144;
}
.contact__email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact__links {
  display: flex;
  gap: 36px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
}
.contact__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s var(--ease);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.contact__links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 120px;
  padding-top: 40px;
  padding-bottom: 56px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.footer > span:first-child { text-align: left; }
.footer > span:last-child { text-align: right; }
.footer .link { border-color: var(--ink-mute); }
.footer .link:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    gap: 14px;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 44px;
  }
  .footer > span:first-child,
  .footer > span:last-child { text-align: center; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger child reveals */
.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.stagger.is-visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 0.24s; opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 0.36s; opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 0.48s; opacity: 1; transform: none; }

/* Hero title staggered fade */
.hero__title .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero__title .reveal:nth-child(2) { transition-delay: 0.18s; }
.hero__title .reveal:nth-child(3) { transition-delay: 0.32s; }

/* About section — staggered entrance */
.about__copy .reveal:nth-child(1) { transition-delay: 0.05s; }
.about__copy .reveal:nth-child(2) { transition-delay: 0.15s; }
.about__bio .reveal:nth-child(1) { transition-delay: 0.25s; }
.about__bio .reveal:nth-child(2) { transition-delay: 0.35s; }
.about__portrait.reveal { transition-delay: 0.1s; }

/* Portrait: subtle zoom on hover, plus a refined image reveal */
.about__portrait img {
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}
.about__portrait:hover img {
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.05);
}

/* Work tiles: lift slightly on hover */
.work__item {
  transition: transform 0.5s var(--ease);
}
.work__item:hover {
  transform: translateY(-6px);
}

/* Reveal variant: portrait scales in from a clip */
.about__portrait.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.about__portrait.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Section headings: accent underline draws in when revealed */
.section-head h2 .reveal,
.section-head h2 {
  position: relative;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .stagger > * { opacity: 1; transform: none; }
  .hero__bg img { animation: none; transform: scale(1); }
}

/* ============================================================
   SVG DEFS — hidden filter container
   ============================================================ */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ============================================================
   GRADIENT TEXT — animated multi-stop gradient clipped to glyphs
   Uses the site's accent palette (coral / deep coral / warm glow)
   plus a soft cream highlight so the motion reads against any bg.
   ============================================================ */
.gradient-text {
  position: relative;
  display: inline-block;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'wght' 300;
  /* Extend the paint box past italic glyph overhang so background-clip: text
     doesn't slice ascenders/descenders. Negative margin keeps layout neutral. */
  padding: 0.22em 0.12em 0.18em;
  margin: -0.22em -0.12em -0.18em;
  line-height: 1.1;
  /* Animated warm gradient — toned-down coral → peach */
  background:
    linear-gradient(
      100deg,
      var(--accent-deep) 0%,
      var(--accent) 22%,
      var(--accent-glow) 42%,
      #FFCBA0 58%,
      var(--accent-glow) 74%,
      var(--accent) 90%,
      var(--accent-deep) 100%
    );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: gradientShift 9s ease-in-out infinite;
  will-change: background-position;
}

/* Soft drifting highlight bloom behind the text */
.gradient-text::before {
  content: "";
  position: absolute;
  inset: -10% -6%;
  z-index: -1;
  background:
    radial-gradient(40% 70% at 20% 50%, rgba(242, 160, 116, 0.32), transparent 70%),
    radial-gradient(40% 70% at 80% 50%, rgba(215, 94, 60, 0.26), transparent 70%);
  filter: blur(14px);
  opacity: 0.55;
  pointer-events: none;
  animation: gradientBloom 7s ease-in-out infinite alternate;
}

/* Variant for the dark approach section — brighter warm stops */
.gradient-text--on-dark {
  background:
    linear-gradient(
      100deg,
      var(--accent) 0%,
      var(--accent-glow) 28%,
      #FFD9B6 50%,
      var(--accent-glow) 72%,
      var(--accent) 100%
    );
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.gradient-text--on-dark::before {
  background:
    radial-gradient(40% 70% at 20% 50%, rgba(255, 210, 160, 0.35), transparent 70%),
    radial-gradient(40% 70% at 80% 50%, rgba(215, 94, 60, 0.32), transparent 70%);
}

@keyframes gradientShift {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
@keyframes gradientBloom {
  0%   { transform: translate3d(-3%, 0, 0) scale(1);     opacity: 0.45; }
  100% { transform: translate3d( 3%, 0, 0) scale(1.04);  opacity: 0.65; }
}

/* Ensure the italic styling still inherits font sizing from the parent heading */
.hero__title .gradient-text,
.section-head h2 .gradient-text,
.about__name .gradient-text,
.contact__heading .gradient-text {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

/* Work, about, contact: suppress the bloom glow */
.work .gradient-text::before,
.about .gradient-text::before,
.approach .gradient-text::before,
.contact .gradient-text::before { content: none; }

/* ============================================================
   INLINE HIGHLIGHT — hero title words ("move", "brands.")
   Ports the Remotion InlineHighlight component to vanilla CSS.
   The word starts dark (ink), interpolates to coral (accent),
   holds there, then fades back — matching the frame interpolation
   logic: 0–20% dark, 20–70% ramp, 70–100% coral, then loops.
   Each word can stagger via --hl-delay custom property.
   ============================================================ */
.inline-highlight {
  position: relative;
  display: inline-block;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'wght' 300;
  line-height: inherit;
  /* Extend the paint box past italic glyph overhang so background-clip:text
     doesn't slice ascenders/descenders. Negative margin keeps layout neutral. */
  padding: 0.18em 0.1em 0.16em;
  margin: -0.18em -0.1em -0.16em;
  /* Warm coral→peach gradient on the dark photo — no glow */
  background:
    linear-gradient(
      100deg,
      var(--accent-deep) 0%,
      var(--accent) 22%,
      var(--accent-glow) 42%,
      #FFCBA0 58%,
      var(--accent-glow) 74%,
      var(--accent) 90%,
      var(--accent-deep) 100%
    );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  /* Start cream over the photo; the reveal animation dissolves this to
     transparent to "fade in" the gradient underneath. */
  color: rgb(242, 237, 227);
  -webkit-text-fill-color: rgb(242, 237, 227);
  animation:
    gradientShift 9s ease-in-out infinite,
    inlineReveal 14s ease-in-out infinite;
  animation-delay: var(--hl-delay, 0s);
  will-change: background-position, color;
}

/* Cream → transparent (reveals gradient) → long hold → fade back to cream.
   Alpha-only interpolation (same RGB) avoids a muddy mid-fade.
   Wider fade-in/out bands so each transition is slow and gradual. */
@keyframes inlineReveal {
  0%, 5% {
    color: rgb(242, 237, 227);
    -webkit-text-fill-color: rgb(242, 237, 227);
  }
  22% {
    color: rgba(242, 237, 227, 0);
    -webkit-text-fill-color: rgba(242, 237, 227, 0);
  }
  82% {
    color: rgba(242, 237, 227, 0);
    -webkit-text-fill-color: rgba(242, 237, 227, 0);
  }
  98%, 100% {
    color: rgb(242, 237, 227);
    -webkit-text-fill-color: rgb(242, 237, 227);
  }
}

/* Reduced-motion: gradient revealed, static */
@media (prefers-reduced-motion: reduce) {
  .inline-highlight {
    animation: none;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* ============================================================
   LIQUID GLASS BUTTON
   Backdrop blur + inset shadow stack + SVG displacement filter
   ============================================================ */
.liquid-btn {
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.liquid-btn__glass {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.18) 100%);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow:
    inset 0  1px 0   rgba(255,255,255,0.65),
    inset 0 -1px 0   rgba(24, 22, 15, 0.18),
    inset  1px  0 0  rgba(255,255,255,0.35),
    inset -1px  0 0  rgba(24, 22, 15, 0.12),
    0 6px 18px rgba(24, 22, 15, 0.12),
    0 1px 2px  rgba(24, 22, 15, 0.10);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}
.liquid-btn__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  filter: url(#liquid-glass);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(120% 80% at 80% 100%, rgba(215, 94, 60, 0.10), transparent 60%);
  opacity: 0.7;
  mix-blend-mode: screen;
}
.liquid-btn__label {
  position: relative;
  z-index: 1;
}
.liquid-btn:hover .liquid-btn__glass {
  box-shadow:
    inset 0  1px 0   rgba(255,255,255,0.85),
    inset 0 -1px 0   rgba(24, 22, 15, 0.22),
    inset  1px  0 0  rgba(255,255,255,0.45),
    inset -1px  0 0  rgba(24, 22, 15, 0.16),
    0 10px 28px rgba(24, 22, 15, 0.18),
    0 2px 4px   rgba(24, 22, 15, 0.12);
  transform: translateY(-1px);
}

/* Hero CTA: bigger pill, frosted glass tuned for dark photo background */
.hero__cta.liquid-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 18px 48px;
  border-radius: 100px;
  background: transparent;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.hero__cta.liquid-btn:hover {
  background: transparent;
  transform: translateY(-2px) scale(1.03);
}
/* Glass layer: light frost on dark — subtle white sheen, no heavy whiteness */
.hero__cta.liquid-btn .liquid-btn__glass {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow:
    inset 0  1px 0   rgba(255, 255, 255, 0.35),
    inset 0 -1px 0   rgba(0, 0, 0, 0.25),
    inset  1px 0 0   rgba(255, 255, 255, 0.18),
    inset -1px 0 0   rgba(0, 0, 0, 0.18),
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 2px 6px  rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.hero__cta.liquid-btn:hover .liquid-btn__glass {
  box-shadow:
    inset 0  1px 0   rgba(255, 255, 255, 0.50),
    inset 0 -1px 0   rgba(0, 0, 0, 0.30),
    inset  1px 0 0   rgba(255, 255, 255, 0.28),
    inset -1px 0 0   rgba(0, 0, 0, 0.22),
    0 14px 36px rgba(0, 0, 0, 0.45),
    0 4px 10px  rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.32);
}
.hero__cta.liquid-btn:hover .liquid-btn__label {
  color: var(--accent-glow);
}
.hero__cta.liquid-btn:focus-visible {
  outline: 2px solid var(--accent-glow);
  outline-offset: 4px;
}

/* Contact email pill */
.contact__email.liquid-btn--pill {
  border-bottom: none;
  padding: 13px 26px;
  border-radius: 100px;
  background: transparent;
  display: inline-block;
}
.contact__email.liquid-btn--pill:hover {
  color: var(--accent);
  border-bottom: none;
}
.contact__email.liquid-btn--pill .liquid-btn__glass {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.25) 100%);
}

/* (Removed: .hero__mesh + blob layers were for the old photo-bg hero.
    The new marquee hero uses .hero__wash with a static radial wash.) */

/* (Custom .vp video player removed — work videos now play silently
    inside the masonry gallery with no overlay controls.) */

/* ============================================================
   WHISPER TEXT — word-by-word reveal on scroll
   Words are wrapped in <span class="whisper-word"> at runtime
   by script.js for any element with [data-whisper].
   ============================================================ */
[data-whisper] {
  /* Container needs to allow inline-block words to wrap naturally */
  overflow: visible;
}
.whisper-word {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(-14px, 0, 0);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
  will-change: opacity, transform;
}
.whisper-word.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
/* Tiny inter-word space so layout isn't bunched */
.whisper-word + .whisper-word { margin-left: 0.28em; }

/* When inside a heading that already uses a tighter rhythm, smaller gap */
.about__bio-lead .whisper-word + .whisper-word,
.contact__heading .whisper-word + .whisper-word {
  margin-left: 0.24em;
}

/* ============================================================
   GALLERY TREATMENT — apply to work tiles
   Rounded corners, soft border, slow staggered fade-in
   ============================================================ */
.work__visual {
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--cream-warm);
  box-shadow: 0 1px 2px rgba(24, 22, 15, 0.04);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.work__item:hover .work__visual {
  box-shadow:
    0 18px 36px rgba(24, 22, 15, 0.16),
    0 4px 8px   rgba(24, 22, 15, 0.10);
  border-color: rgba(215, 94, 60, 0.35);
}

/* Ensure the bare <video> inside a tile inherits the rounded corners */
.work__visual { overflow: hidden; }
.work__visual .work__video {
  border-radius: inherit;
}

/* ============================================================
   STATS — dot-card row showing video performance
   ============================================================ */
.stats {
  /* Top padding clears the hero's 120px bottom-fade so the dot-cards
     don't feel crammed against the dark hero edge. */
  padding: 140px var(--pad-x) 80px;
  background: var(--cream);
}

/* When stats sits directly under about, tight spacing — pulls up into
   about's bottom padding so it reads as a continuation rather than a
   separate floating section. */
.stats--after-about {
  padding: 0 var(--pad-x) 40px;
  margin-top: -90px;
}
.stats--after-about .section-num {
  margin-bottom: 20px;
}
.stats__inner {
  max-width: 1140px;
  margin: 0 auto;
}
.stats .section-num {
  display: block;
  margin-bottom: 28px;
  color: var(--ink-mute);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .stats { padding: 70px var(--pad-x) 40px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stats__grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .stats__grid { grid-template-columns: 1fr; gap: 12px; }
  .stats__grid > :last-child { grid-column: auto; }
  /* Compact dot-cards on phones — much shorter, smaller numerals */
  .dot-card { padding: 5px; }
  .dot-card__card {
    padding: 18px 20px 16px;
    min-height: 88px;
    border-radius: 14px;
  }
  .dot-card__value { font-size: 32px; }
  .dot-card__label { font-size: 9.5px; margin-top: 6px; }
  .dot-card__dot { width: 7px; height: 7px; }
}

/* ---------- dot-card (orbiting dot around a stat tile) ---------- */
.dot-card {
  position: relative;
  padding: 6px;       /* room for orbiting dot outside the card */
  isolation: isolate;
}

/* The orbiting dot — moves around the outer perimeter */
.dot-card__dot {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 12px rgba(215, 94, 60, 0.85),
    0 0 22px rgba(215, 94, 60, 0.5);
  z-index: 2;
  animation: dotOrbit 8s ease-in-out infinite;
  animation-delay: var(--dot-delay, 0s);
}

@keyframes dotOrbit {
  0%, 100% { top: 10%;                   right: 10%; }
  25%      { top: 10%;                   right: calc(100% - 35px); }
  50%      { top: calc(100% - 30px);     right: calc(100% - 35px); }
  75%      { top: calc(100% - 30px);     right: 10%; }
}

/* The card itself */
.dot-card__card {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  border-radius: 18px;
  padding: 36px 28px 28px;
  min-height: 180px;
  overflow: hidden;
  box-shadow:
    0 18px 36px rgba(24, 22, 15, 0.16),
    0 4px 8px   rgba(24, 22, 15, 0.10),
    inset 0 0 0 1px rgba(242, 237, 227, 0.06);
}

/* Soft inner radial glow */
.dot-card__ray {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(215, 94, 60, 0.22), transparent 65%),
    radial-gradient(50% 40% at 20% 90%, rgba(242, 160, 116, 0.12), transparent 65%);
  z-index: 0;
}

/* Big counter value */
.dot-card__value {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 144;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.dot-card__label {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 237, 227, 0.65);
}

/* Edge lines — subtle gradients on each side that hint at the dot's path */
.dot-card__line {
  position: absolute;
  pointer-events: none;
  background: linear-gradient(var(--line-dir, 90deg),
    transparent 0%,
    rgba(215, 94, 60, 0.55) 50%,
    transparent 100%);
  opacity: 0.5;
  z-index: 1;
}
.dot-card__line--top    { top: 0; left: 10%; right: 10%; height: 1px; --line-dir: 90deg; }
.dot-card__line--bottom { bottom: 0; left: 10%; right: 10%; height: 1px; --line-dir: 90deg; }
.dot-card__line--left   { left: 0; top: 15%; bottom: 15%; width: 1px; --line-dir: 180deg; }
.dot-card__line--right  { right: 0; top: 15%; bottom: 15%; width: 1px; --line-dir: 180deg; }

/* Slow, staggered gallery fade — first item in each column fades in,
   then the second item in each column follows. The columns themselves
   start at the same scroll position so the cascade lands diagonally. */
.work__col .work__item.reveal {
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.1s var(--ease-out);
}
.work__col .work__item.reveal:nth-child(1) { transition-delay: 0.00s; }
.work__col .work__item.reveal:nth-child(2) { transition-delay: 0.18s; }
/* Cascade across columns: 2nd col delays a touch, 3rd col more */
.work__col:nth-child(2) .work__item.reveal:nth-child(1) { transition-delay: 0.08s; }
.work__col:nth-child(2) .work__item.reveal:nth-child(2) { transition-delay: 0.26s; }
.work__col:nth-child(3) .work__item.reveal:nth-child(1) { transition-delay: 0.16s; }
.work__col:nth-child(3) .work__item.reveal:nth-child(2) { transition-delay: 0.34s; }
