/* ============================================================
   Landing page — hero, marquee, work grid, about teaser, contact.
   IMPORTANT: All "hidden-until-JS-runs" initial states are scoped
   under `.js` so that if JS fails the content is still visible.
   ============================================================ */

/* ============= HERO ============= */
.hero {
  position: relative;
  /* Signature removed — bottom padding tightened. Still generous so the
     marquee strip below has breathing room and the scroll cue sits nicely. */
  padding: clamp(6rem, 14vh, 10rem) var(--pad-x) clamp(6rem, 12vh, 9rem);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vh, 4rem);
  overflow: hidden;
  isolation: isolate;
}

/* --- Swiss baseline-grid overlay (faint vertical rules) --- */
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  opacity: 0.85;
}
@media (max-width: 760px) {
  .hero__grid { background-size: calc(100% / 6) 100%; opacity: 0.7; }
}

/* --- Top meta row --- */
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__top-right { display: inline-flex; gap: var(--space-3); align-items: center; }
.hero__top-right .sep { width: 28px; height: 1px; background: var(--line-strong); display: inline-block; }
.hero__live-time { color: var(--fg); font-variant-numeric: tabular-nums; }
.hero__live-time::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
  /* No blink — the static dot is enough signal; reduces idle motion noise. */
}

/* --- Tagline (centerpiece) --- */
.hero__title {
  font-family: var(--font-sans);
  font-weight: 600;
  /* line-height: 1 so descenders (the "g" in Design) sit inside the line-box
     instead of being clipped by the .line's overflow:hidden. */
  line-height: 1;
  letter-spacing: -0.045em;
  /* Shallower vw slope so 1280–1700px viewports keep right-side negative
     space; 1920+ still caps at 9rem to match the 2K/big-monitor look. */
  font-size: clamp(2.2rem, 7.5vw, 9rem);
  margin: auto 0 0;
  color: var(--fg-soft);
  display: flex;
  flex-direction: column;
  gap: 0.18em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  /* Pad so descenders + below-baseline glyphs aren't clipped by overflow. */
  padding-bottom: 0.2em;
  /* Keep each line atomic — prevents the second line from wrapping
     and leaving "God." orphaned on a third line. */
  white-space: nowrap;
}
.hero__title .line-inner {
  display: inline-block;
  will-change: transform;
}
/* Initial-hidden state is set by JS (gsap.fromTo) — if JS fails, the text is visible by default. */

/* "God" — the "o" renders plain (ring removed per request); only the period accents. */
.word-god { display: inline-flex; align-items: baseline; color: var(--fg); }
.word-god .o-ring { display: inline-block; color: inherit; }
.word-god .stop {
  color: var(--accent-2);
  display: inline-block;
  font-style: normal;
  animation: pulseDot 3.6s var(--ease-in-out) infinite;
}
@keyframes pulseDot {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.2); }
}

/* --- Word-swap pill (the "language" hover-swap, inspired by the ref) --- */
.word-pill {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  padding: 0.16em 0.45em 0.3em;
  border: 0;
  background: transparent;
  font: inherit;
  /* Locked dark ink regardless of theme — reads cleanly on both the vibrant
     orange default and the neon green hover. */
  color: #0f0f0e;
  cursor: pointer;
  vertical-align: baseline;
  margin: 0 0.12em 0 0.04em;
  -webkit-tap-highlight-color: transparent;
}
.word-pill__bg {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  /* Default = vibrant orange (single orange shade across the whole site). */
  background: var(--accent-2);
  z-index: 0;
  transform-origin: left center;
  transition: background 0.4s var(--ease-out);
}
.word-pill__text {
  position: relative;
  z-index: 1;
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  /* Taller line-height so italic descenders ("g" in "language") have
     room below the baseline before the slot's overflow:hidden clips them. */
  line-height: 1.3;
}
/* DEFAULT layer = in-flow inline-block. This is what gives the slot its
   intrinsic size AND a real baseline; the surrounding "of God." aligns to
   this baseline, so the words sit on one horizontal line. */
.word-pill__layer {
  display: inline-block;
  text-align: center;
  line-height: 1.3;
  will-change: transform, opacity;
}
.word-pill__layer em {
  display: inline-block;
  line-height: 1.3;
  /* Italic glyphs lean right at their terminals — small right pad so the
     last "e" of "language" doesn't kiss the slot's clip edge. */
  padding-right: 0.06em;
}

/* HOVER layer = absolute overlay above the in-flow default. */
.word-pill__layer--hover {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover layer renders a smaller sans-serif question so a two-line phrase
   fits inside the same fixed-width pill as "language". */
.word-pill__layer--hover {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  font-size: clamp(0.95rem, 2.4vw, 1.6rem);
  line-height: 1.1;
  /* Locked dark so the phrase is legible on the neon green hover bg. */
  color: #0f0f0e;
  /* Hidden at rest by opacity only — let GSAP fully own the transform so
     its `yPercent` register doesn't fight a hard-coded CSS translate. */
  opacity: 0;
  pointer-events: none;
}
.word-pill__text em { font-style: italic; font-weight: 500; }
.word-pill .swap-old,
.word-pill .swap-new {
  display: inline-block;
  will-change: transform, opacity;
}
/* Hover flips the pill from vibrant orange to neon green. Background-only;
   pill width stays locked to the default ("language") measurement. */
.word-pill:hover .word-pill__bg,
.word-pill:focus-visible .word-pill__bg { background: var(--neon); }

/* --- Hero bottom (sub + cta) --- */
.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: end;
  margin-top: auto;
}
@media (max-width: 760px) {
  .hero__bottom { grid-template-columns: 1fr; gap: var(--space-4); }
}

.hero__sub {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.45;
  color: var(--fg-soft);
  max-width: 42ch;
  font-family: var(--font-sans);
}
.hero__sub strong { font-weight: 500; color: var(--fg); }
.hero__sub .accent-2 { color: var(--accent-2); font-weight: 500; }

.hero__cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}
@media (max-width: 760px) { .hero__cta-stack { align-items: flex-start; } }

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.hero__cta:hover { background: var(--accent-2); color: var(--accent-2-ink); }
.hero__cta .arrow { transition: transform 0.35s var(--ease-out); }
/* Down-arrow drifts further down on hover — clearer "scroll to selected work below"
   than the previous 45° diagonal rotation. */
.hero__cta:hover .arrow { transform: translateY(4px); }

/* ============= STATUS PILL ("Available for new work") ============= */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-soft);
  white-space: nowrap;
}
.pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--available);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--available) 25%, transparent);
  animation: pillDotPulse 2.2s var(--ease-in-out) infinite;
  flex: 0 0 auto;
}
@keyframes pillDotPulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--available) 25%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--available) 5%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .pill__dot { animation: none; }
}

/* --- Massive name signature (bottom of hero) --- */
.hero__signature {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 var(--pad-x) clamp(1.4rem, 3vh, 2.4rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr auto;
  align-items: end;
  pointer-events: none;
  z-index: 0;
  isolation: isolate;
}
.hero__sig-name {
  grid-row: 1 / 2;
  font-family: var(--font-sans);
  font-weight: 700;
  /* Smaller max so it doesn't dominate; descenders ("p" in Spandan) fit cleanly
     within line-height: 1 + padding-bottom — no more bottom-clip. */
  font-size: clamp(2.5rem, 10vw, 8rem);
  line-height: 1;
  padding-bottom: 0.08em;
  letter-spacing: -0.05em;
  color: var(--accent-2);
  opacity: 0.95;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.hero__sig-name:first-of-type { grid-column: 1 / 2; justify-self: start; }
.hero__sig-name--right { grid-column: 3 / 4; justify-self: end; }
.hero__sig-meta {
  grid-row: 2 / 3;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: var(--space-3);
}
.hero__sig-meta--left  { grid-column: 1 / 2; justify-self: start; }
.hero__sig-meta--right { grid-column: 3 / 4; justify-self: end; }
.hero__signature { overflow: hidden; }

/* ============= HERO MOBILE OVERRIDES ============= */
@media (max-width: 760px) {
  .hero {
    padding-top: clamp(5rem, 12vh, 8rem);
    padding-bottom: clamp(9rem, 18vh, 12rem);
    gap: var(--space-4);
    min-height: auto;             /* don't force 100svh on small screens */
  }
  .hero__title {
    font-size: clamp(2.4rem, 11vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.04em;
    max-width: none;
  }
  .hero__sub { font-size: 0.95rem; line-height: 1.5; max-width: 38ch; }
  .hero__sig-name {
    font-size: clamp(2.2rem, 14vw, 5rem);
    padding-bottom: 0.06em;
  }
  .hero__sig-meta {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    margin-top: var(--space-2);
  }
  .hero__signature { padding-bottom: clamp(0.6rem, 2vh, 1.2rem); }
  .hero__scroll { display: none; }   /* free up bottom-left for signature meta */
  .word-pill {
    padding: 0.1em 0.45em 0.22em;
    margin: 0 0.1em;
  }
  .hero__top { font-size: 10px; letter-spacing: 0.08em; }
  .hero__top-right .sep { width: 16px; }
}
@media (max-width: 420px) {
  .hero__sig-meta--left,
  .hero__sig-meta--right { font-size: 0.55rem; }
  .hero__top { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* --- Draggable floater (desktop only) — pure chaos energy --- */
.hero__floater {
  position: absolute;
  top: 36vh;
  right: 8vw;
  z-index: 3;
  /* Dynamic color set per-throw via JS */
  --floater-bg: var(--accent);
  --floater-fg: var(--accent-ink);
  --floater-glow: var(--floater-bg);
  padding: 10px 18px;
  border-radius: 999px;
  background-color: var(--floater-bg);
  color: var(--floater-fg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: grab;
  user-select: none;
  touch-action: none;
  white-space: nowrap;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.20),
    0 0 0 0 color-mix(in srgb, var(--floater-glow) 30%, transparent);
  /* Idle wiggle invites discovery */
  animation: floaterIdle 4.5s var(--ease-in-out) infinite;
  transition:
    background-color 0.45s var(--ease-out),
    color 0.45s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
  will-change: transform;
}
.hero__floater:hover {
  /* Neon glow ring on hover — color matches whatever's currently set */
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.22),
    0 0 0 6px color-mix(in srgb, var(--floater-glow) 25%, transparent),
    0 0 32px color-mix(in srgb, var(--floater-glow) 50%, transparent);
  animation-play-state: paused;
}
.hero__floater.is-engaged { animation: none; }
.hero__floater.is-dragging {
  cursor: grabbing;
  animation: none;
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.30),
    0 0 0 10px color-mix(in srgb, var(--floater-glow) 30%, transparent),
    0 0 50px color-mix(in srgb, var(--floater-glow) 60%, transparent);
}
@keyframes floaterIdle {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg); }
  25%      { transform: translate3d(-8px, -4px, 0) rotate(-1deg) scale(1.02); }
  50%      { transform: translate3d(4px, 6px, 0) rotate(2deg); }
  75%      { transform: translate3d(8px, -2px, 0) rotate(4deg) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__floater { animation: none; }
}
@media (pointer: coarse), (max-width: 760px) {
  .hero__floater { display: none; }
}

/* --- Scroll cue (absolute, bottom-left of hero) --- */
.hero__scroll {
  position: absolute;
  left: var(--pad-x);
  bottom: clamp(1rem, 2vh, 1.5rem);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  z-index: 2;
}
.hero__scroll .arrow {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--accent-2), transparent);
  animation: scrollDown 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollDown {
  0%   { transform: translateY(-50%) scaleY(0); transform-origin: top; }
  50%  { transform: translateY(0) scaleY(1); transform-origin: top; }
  100% { transform: translateY(50%) scaleY(0); transform-origin: bottom; }
}

/* ============= MARQUEE STRIP ============= */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: var(--space-3) 0;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.marquee__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  width: max-content;
  /* Locks a consistent line-box height so italic + roman items share a baseline. */
  line-height: 1;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  padding: 0 1.4rem;
  color: var(--fg-soft);
  flex: 0 0 auto;
  line-height: 1;
  transition: color var(--dur) var(--ease-out);
}
.marquee__item:hover { color: var(--accent-2); }
.marquee__item .accent { color: var(--accent-2); font-style: normal; font-weight: 400; }
.marquee__sep {
  display: inline-block;
  width: 9px; height: 9px;
  margin: 0 0.7rem;
  border-radius: 50%;
  background: var(--accent-2);
  flex: 0 0 auto;
  /* Optical alignment with the visual x-height of the italic text. */
  align-self: center;
  transform: translateY(-0.05em);
}

/* ============= SECTION HEAD ============= */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
  flex-wrap: wrap;
}
.section-head__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  letter-spacing: -0.025em;
  line-height: var(--lh-tight);
  font-weight: 400;
  max-width: 16ch;
}
.section-head__title em { font-style: italic; color: var(--muted); }
.section-head__count {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ============= WORK GRID ============= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.project-tile { display: block; position: relative; isolation: isolate; }
/* Strict zig-zag: every right-column tile drops by the same amount,
   producing a consistent 2-column rhythm instead of the previous
   irregular pattern. */
.project-tile:nth-child(2n) { transform: translateY(clamp(1.5rem, 4vw, 3rem)); }
@media (max-width: 760px) { .project-tile { transform: none !important; } }

.project-tile__media {
  position: relative;
  /* Landscape ratio matches Behance cover crops — preserves most of the original composition. */
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.project-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 0.9s var(--ease-out);
}

.project-tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-5);
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.65) 100%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  color: #ffffff;
}
.project-tile:hover .project-tile__overlay { opacity: 1; }
.project-tile__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-2xl);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent-2);
  align-self: flex-end;
  transform: translateY(10px);
  transition: transform 0.5s var(--ease-out);
}
.project-tile:hover .project-tile__num { transform: translateY(0); }
.project-tile__view {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transform: translateY(12px);
  transition: transform 0.5s var(--ease-out);
}
.project-tile:hover .project-tile__view { transform: translateY(0); }
.project-tile__view svg { transition: transform 0.4s var(--ease-out); }
.project-tile:hover .project-tile__view svg { transform: translate(4px, -4px); }

.project-tile__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-4);
  gap: var(--space-4);
}
.project-tile__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  font-weight: 400;
  transition: color var(--dur) var(--ease-out);
}
.project-tile__title em { font-style: italic; color: var(--muted); }
.project-tile:hover .project-tile__title { color: var(--accent-2); }
.project-tile__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.project-tile__desc {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--fs-sm);
  max-width: 42ch;
}

/* ============= ABOUT TEASER ============= */
.about-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}
@media (max-width: 760px) { .about-teaser { grid-template-columns: 1fr; } }

.about-teaser__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  max-width: 460px;
}
.about-teaser__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* SD monogram pseudo retired now that the portrait is in place. */
.about-teaser__photo::after { display: none; }
.about-teaser__body p {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
  color: var(--fg-soft);
  max-width: 28ch;
  margin-bottom: var(--space-5);
}
.about-teaser__body p:last-of-type { margin-bottom: var(--space-7); }
.about-teaser__body p em { font-style: italic; color: var(--accent-2); }

/* ============= CONTACT ============= */
.contact {
  border-top: 1px solid var(--line);
  /* Larger block padding so the giant contact CTA has room to breathe. */
  padding-block: var(--space-10);
  text-align: center;
}
.contact .eyebrow { justify-content: center; margin-inline: auto; margin-bottom: var(--space-5); }
.contact__line {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: var(--lh-tight);
  color: var(--muted);
  max-width: 18ch;
  margin: 0 auto var(--space-5);
}
.contact__line em {
  font-style: italic;
  color: var(--accent-2);
  /* Italic "build" leans into the "?" — small right margin to keep them apart. */
  margin-right: 0.08em;
  padding-right: 0.04em;
}
.contact__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 4rem);
  letter-spacing: -0.035em;
  color: var(--fg);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  word-break: break-all;
}
.contact__cta:hover { color: var(--accent-2); border-color: var(--accent-2); }
.contact__cta .arrow { transition: transform var(--dur) var(--ease-out); display: inline-block; }
.contact__cta:hover .arrow { transform: translate(6px, -6px); }
.contact__socials {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
  font-size: var(--fs-sm);
  color: var(--muted);
  flex-wrap: wrap;
}

/* ============= BIG SECTION DIVIDERS ============= */
.divider {
  position: relative;
  padding: clamp(4rem, 9vh, 7rem) 0 clamp(2rem, 4vh, 3rem);
  padding-inline: var(--pad-x);
  border-top: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.divider__num {
  position: absolute;
  top: clamp(1.5rem, 4vh, 2.4rem);
  right: var(--pad-x);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.divider__title {
  font-family: var(--font-sans);
  font-weight: 700;
  /* Huge by design — meant to feel like a wall before the section. */
  font-size: clamp(5rem, 24vw, 22rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--fg);
  margin: 0;
  white-space: nowrap;
  will-change: transform;
}
.divider__title em {
  font-style: italic;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
}
.divider__stop { color: var(--accent-2); }
.divider__sub {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  gap: var(--space-4);
  flex-wrap: wrap;
}
.divider__sub strong { color: var(--fg); font-weight: 500; }
@media (max-width: 760px) {
  .divider { padding-block: clamp(3rem, 7vh, 5rem) clamp(1.5rem, 3vh, 2.2rem); }
  .divider__title { font-size: clamp(4rem, 26vw, 9rem); }
}

/* ============= ATMOSPHERIC FOOTER ============= */
.ftr {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-top: clamp(4rem, 10vh, 8rem);
  overflow: hidden;
  isolation: isolate;
}
.ftr__top {
  padding-inline: var(--pad-x);
  padding-bottom: var(--space-7);
  max-width: var(--maxw);
  margin: 0 auto;
}
.ftr__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: var(--space-4);
  display: inline-block;
}
.ftr__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(3.5rem, 13vw, 13rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--fg);
  margin: 0;
}
.ftr__title em {
  font-style: italic;
  color: var(--accent-2);
  font-family: var(--font-display);
  font-weight: 500;
}
.ftr__sub {
  margin-top: var(--space-4);
  font-size: var(--fs-md);
  color: var(--fg-soft);
  max-width: 44ch;
}
.ftr__sub a { color: var(--accent-2); }

.ftr__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  padding: var(--space-7) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .ftr__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-4); }
}
@media (max-width: 420px) {
  .ftr__grid { grid-template-columns: 1fr; }
}
.ftr__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--fg-soft);
}
.ftr__col-label {
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.ftr__col a {
  position: relative;
  display: inline-block;
  width: fit-content;
  transition: color var(--dur) var(--ease-out);
}
.ftr__col a:hover { color: var(--accent-2); }
.ftr__col .pill { margin-top: var(--space-2); }

/* ----- Interactive farewell — magnetic letters that lift as cursor passes ----- */
.ftr__farewell {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 6vh, 5rem) var(--pad-x) clamp(1rem, 2vh, 1.5rem);
  user-select: none;
  -webkit-user-select: none;
  overflow: visible;
}
.ftr__farewell-line {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(3rem, 14vw, 14rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--accent-2);
  white-space: nowrap;
}
.ftr__char {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1), color 0.5s var(--ease-out);
  will-change: transform;
}
.ftr__char--space { width: 0.28em; }
.ftr__char--accent { color: var(--fg); }
.ftr__char.is-near { transform: translateY(-0.18em) rotate(-3deg); color: var(--fg); }
.ftr__char--accent.is-near { color: var(--accent-2); }

@media (max-width: 760px) {
  .ftr__farewell-line {
    /* On mobile, drop to a comfortable size that fits 17 chars + space without overflow */
    font-size: clamp(2rem, 11vw, 4rem);
    white-space: normal;     /* allow wrap on very narrow screens */
  }
}
@media (prefers-reduced-motion: reduce) {
  .ftr__char { transition: color 0.3s var(--ease-out); }
  .ftr__char.is-near { transform: none; }
}

.ftr__strip {
  padding: var(--space-4) var(--pad-x) var(--space-5);
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============= WORK — FOLDER SECTION ============= */
.work-section {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) var(--pad-x) clamp(5rem, 10vh, 8rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vh, 3rem);
  overflow: hidden;
  isolation: isolate;
  min-height: 80vh;
}

/* Huge faded "Work" wordmark sitting behind the folder */
.work-section__bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(14rem, 42vw, 52rem);
  line-height: 0.85;
  letter-spacing: -0.075em;
  color: var(--accent-2);
  opacity: 0.16;
  margin: 0;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: -1;
}
[data-theme="dark"] .work-section__bg { opacity: 0.18; }

.work-section__caption,
.work-section__hint {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  position: relative;
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
/* Stack barely moves on hover now (real reveal is the front-pocket tilt),
   so the caption only needs a small lift. */
.work-section:has(.folder:hover) .work-section__caption,
.work-section:has(.folder:focus-visible) .work-section__caption,
.work-section:has(.folder[data-open="true"]) .work-section__caption {
  transform: translateY(-1.5rem);
}
.work-section__caption em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1em;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.work-section__hint a { color: var(--fg-soft); }
.work-section__hint a:hover { color: var(--accent-2); }

/* --- The folder itself --- */
.folder {
  position: relative;
  width: clamp(280px, 32vw, 460px);
  aspect-ratio: 5 / 4;
  perspective: 1400px;
  perspective-origin: 50% 35%;
  cursor: pointer;
  z-index: 1;
}

/* Tab — the small flap on top of the folder back */
.folder__tab {
  position: absolute;
  top: -8.5%;
  left: 6%;
  width: 38%;
  height: 14%;
  background: var(--accent-2);
  border-radius: 10px 10px 0 0;
  z-index: 1;
}
.folder__tab::after {
  /* small curve to suggest the tab notch on the right side */
  content: "";
  position: absolute;
  right: -6%;
  top: 0; bottom: 0;
  width: 14%;
  background: var(--accent-2);
  border-radius: 0 14px 0 0;
  transform: skewX(18deg);
  transform-origin: bottom right;
}

/* Back — full folder shape; z-index 2 so it sits above the tab join */
.folder__back {
  position: absolute;
  inset: 0;
  background: var(--accent-2);
  border-radius: 14px;
  z-index: 2;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.18),
    0 4px 14px rgba(0, 0, 0, 0.10);
}

/* Papers — stacked between back (z2) and front (z4).
   Each paper is a thin slice above the next, like documents inside a file:
     --i:7 (DOM first, lowest stack) sits highest with top at 0%
     --i:0 (DOM last, top of stack)   sits lowest, prominent above the pocket
   Front pocket lives at top:56% so it covers the bottom half of every paper. */
.folder__paper {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 0;
  height: 50%;
  border-radius: 6px;
  overflow: hidden;
  z-index: 3;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  /* Stack cascade: 4% strip per paper. --i:0 sits at 28% (top paper, most
     visible). --i:1..7 stack up above it, each peeking a 4% slice. */
  transform: translateY(calc((7 - var(--i, 0)) * 4%));
  transition: transform 0.75s cubic-bezier(0.2, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}
.folder__paper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.folder__paper-tag {
  position: absolute;
  /* Top so the tag rides the visible top edge of each paper —
     even at rest, the labels stack above the folder front like file tabs. */
  top: 6px;
  left: 8px;
  padding: 3px 8px;
  background: rgba(15, 15, 14, 0.88);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
  white-space: nowrap;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

/* Front pocket — z-index 4, on top of papers; rotates open on hover.
   Sits lower (top:56%) so the whole stack of paper-tabs is visible above it. */
.folder__front {
  position: absolute;
  left: 0;
  right: 0;
  top: 56%;
  bottom: 0;
  background: var(--accent-2);
  border-radius: 8px 8px 14px 14px;
  z-index: 4;
  transform-origin: 50% 100%;
  transform: rotateX(0deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  /* Subtle "paper grain" highlight at the top edge */
  background-image: linear-gradient(180deg,
    color-mix(in srgb, var(--accent-2) 85%, white 6%) 0%,
    var(--accent-2) 16%);
}

.folder__label {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.94);
}
.folder__monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.18);
  user-select: none;
}

/* ----- OPEN state (on hover or keyboard focus) ----- */
.folder:hover .folder__front,
.folder:focus-visible .folder__front,
.folder[data-open="true"] .folder__front {
  transform: rotateX(-34deg);
}

/* On hover, the stack rises a touch (2%) and strips widen slightly — the
   real "opening" happens via the front-pocket tilt, which exposes the rest
   of the top paper. */
.folder:hover .folder__paper,
.folder:focus-visible .folder__paper,
.folder[data-open="true"] .folder__paper {
  transform: translateY(calc((7 - var(--i, 0)) * 4.5% - 3%));
  transition-delay: calc(var(--i, 0) * 0.03s);
}

/* Make the tag area higher-contrast on hover so labels read against the fan. */
.folder:hover .folder__paper-tag,
.folder:focus-visible .folder__paper-tag,
.folder[data-open="true"] .folder__paper-tag {
  background: var(--accent-2);
  color: #0f0f0e;
}

/* Mobile: shrink the folder and let the bg wordmark wrap larger. */
@media (max-width: 760px) {
  .folder { width: min(85vw, 360px); }
  .work-section__bg { font-size: clamp(8rem, 36vw, 22rem); }
}

/* ============= FEATURED OVERLAY (cardstack) ============= */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(120%);
  backdrop-filter: blur(28px) saturate(120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vh, 4rem) var(--pad-x);
  overflow-y: auto;
  isolation: isolate;
}
.overlay[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.overlay__bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(6rem, 24vw, 24rem);
  color: var(--accent-2);
  opacity: 0.10;
  line-height: 0.85;
  letter-spacing: -0.07em;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  margin: 0;
  white-space: nowrap;
}
[data-theme="dark"] .overlay__bg { opacity: 0.16; }

.overlay__close {
  position: absolute;
  top: clamp(1rem, 3vh, 2rem);
  right: var(--pad-x);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elev);
  color: var(--fg);
  z-index: 10;
  transition: transform 0.35s var(--ease-out), border-color var(--dur), background var(--dur);
}
.overlay__close:hover {
  transform: rotate(90deg);
  border-color: var(--fg);
}

.overlay__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vh, 2rem);
  width: 100%;
  max-width: 560px;
}

.overlay__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* --- Card stack --- */
.cardstack {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 64vh;
  perspective: 1400px;
}

.cardstack__card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22), 0 8px 22px rgba(0, 0, 0, 0.12);
  transform-origin: 50% 0%;
  will-change: transform, opacity;
}

.cardstack__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.cardstack__card img {
  width: 100%;
  height: 56%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--surface-2);
}

.cardstack__body {
  padding: clamp(1rem, 3vw, 1.4rem) clamp(1.1rem, 3vw, 1.6rem) clamp(1.1rem, 3vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.cardstack__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-2);
}

.cardstack__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 400;
  margin: 0;
}
.cardstack__title em { font-style: italic; color: var(--muted); }

.cardstack__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}

.cardstack__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg);
  margin-top: 6px;
}
.cardstack__cta svg { transition: transform var(--dur) var(--ease-out); }
.cardstack__link:hover .cardstack__cta svg { transform: translate(3px, -3px); }

.cardstack__nav {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}

.cardstack__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform var(--dur);
}
.cardstack__btn:hover {
  background: var(--accent-2);
  color: var(--accent-2-ink);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.cardstack__counter {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  min-width: 4.5ch;
  text-align: center;
}

.overlay__seeall {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  transition: color var(--dur);
}
.overlay__seeall:hover { color: var(--accent-2); }

@media (max-width: 640px) {
  .overlay__close { top: 1rem; right: 1rem; width: 40px; height: 40px; }
  .cardstack { max-height: 70vh; }
  .cardstack__card { border-radius: var(--radius); }
}

/* ============= SCROLL-TEXT COLOR BREAK =============
   Full-bleed orange band that interrupts the dark/neutral flow. The section
   is tall (220vh) so the inner sticky div stays pinned for a long scroll
   distance, during which the words illuminate one-by-one. */
.scroll-text {
  position: relative;
  background: var(--accent-2);
  color: #0f0f0e;
  min-height: 220vh;
  isolation: isolate;
  overflow: hidden;
}
.scroll-text::before,
.scroll-text::after {
  /* Decorative top/bottom rules in dark ink to feel like a magazine spread */
  content: "";
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  height: 1px;
  background: rgba(15, 15, 14, 0.18);
}
.scroll-text::before { top: 0; }
.scroll-text::after  { bottom: 0; }

/* No longer uses CSS `position: sticky` — Lenis smooth-scroll plus
   `overflow: hidden` on the parent was preventing it from holding.
   GSAP ScrollTrigger's pin (set in JS) does the job reliably instead. */
.scroll-text__sticky {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-x);
}

.scroll-text__inner {
  width: 100%;
  max-width: 1180px;
  text-align: center;
}

.scroll-text__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(15, 15, 14, 0.5);
  margin-bottom: clamp(1.4rem, 4vh, 2.4rem);
}

.scroll-text__line {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}

.scroll-text__word {
  display: inline-block;
  margin: 0 0.08em;
  /* Muted on dark side of the orange — readable, but clearly "off" until lit. */
  color: rgba(15, 15, 14, 0.22);
  transition: color 0.35s var(--ease-out);
  will-change: color;
}
.scroll-text__word.is-active { color: #0f0f0e; }
.scroll-text__word--accent {
  /* The final word: italic Fraunces flourish in white for punch. */
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
}
.scroll-text__word--accent.is-active {
  color: #ffffff;
}

.scroll-text__caption {
  display: block;
  margin-top: clamp(2rem, 5vh, 3rem);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(15, 15, 14, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  /* Without scroll-driven animation, just show all words in full ink so the
     statement is readable in a single state. */
  .scroll-text__word { color: #0f0f0e; }
  .scroll-text__word--accent { color: #ffffff; }
}

/* ============= MOBILE — tighter spacing across sections ============= */
@media (max-width: 760px) {
  .hero {
    padding-top: clamp(4rem, 10vh, 7rem);
    padding-bottom: clamp(5rem, 10vh, 7rem);
    /* Full viewport on mobile so first fold = hero only, like desktop. */
    min-height: 100vh;
    min-height: 100svh;
    gap: var(--space-4);
  }
  /* Hero title must fit the second line (pill + " of God.") inside the viewport.
     Reduced font scale here keeps "God." readable. */
  .hero__title { font-size: clamp(2rem, 9.2vw, 4rem); }
  .word-pill { padding: 0.12em 0.35em 0.24em; margin: 0 0.08em; }
  .divider {
    padding-block: clamp(2.5rem, 6vh, 4rem) clamp(1.2rem, 3vh, 2rem);
  }
  .divider__title { font-size: clamp(3.5rem, 22vw, 7rem); }
  .divider__num { top: 1.25rem; }
  .work-section {
    min-height: auto;
    padding: clamp(3rem, 8vh, 5rem) var(--pad-x);
    gap: clamp(1.4rem, 3vh, 2rem);
  }
  .scroll-text {
    min-height: 160vh;
  }
  .scroll-text__line { font-size: clamp(1.8rem, 7vw, 3rem); }
  .contact {
    padding-block: clamp(3rem, 8vh, 5rem);
  }
  .contact__line { font-size: clamp(1.5rem, 5vw, 2.4rem); }
  .contact__cta { font-size: clamp(1.5rem, 6vw, 2.6rem); }
  .ftr {
    padding-top: clamp(2.5rem, 7vh, 5rem);
  }
  .ftr__title { font-size: clamp(2.6rem, 12vw, 7rem); }
  .section { padding-block: clamp(3rem, 7vh, 5rem); }
  .about-teaser { gap: clamp(1.5rem, 4vw, 3rem); }
  .about-teaser__body p { font-size: var(--fs-md); }
}

@media (max-width: 540px) {
  .hero__title { font-size: clamp(1.6rem, 8.5vw, 2.8rem); }
  .word-pill { padding: 0.1em 0.32em 0.22em; }
  .section-head { gap: var(--space-3); }
  .section-head__title { font-size: clamp(1.5rem, 6vw, 2.2rem); }
}
@media (max-width: 380px) {
  /* Very narrow phones — drop the title another notch so "[pill] of God." fits cleanly */
  .hero__title { font-size: clamp(1.4rem, 7.8vw, 2.2rem); }
}

/* Mobile drawer — base.css handles the frosted-blur surface; nothing
   to override here. (Previous opaque-bg fallback removed so it doesn't
   defeat the backdrop-filter blur.) */

/* ============= [data-reveal] base (only hidden when JS runs) ============= */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }

/* ============= PAGE TRANSITION =============
   Body no longer fades in from opacity:0 — the 500ms loader covers the
   initial paint instead (parent opacity would otherwise hide the loader too).
   Only the LEAVING transition still uses opacity for page-to-page fade-out. */
.js body { transition: opacity 320ms var(--ease-out); }
.js body.is-loaded { opacity: 1; }
.js body.is-leaving { opacity: 0; }
