/* ============================================================
   Manon Pietri — Portfolio
   System: black & white, uppercase sans (Geist)
   Micro accents only: #A39EFF · #FFD88B · #FF7495
============================================================ */

:root {
  --bg:        #ffffff;
  --fg:        #0a0a0a;
  --muted:     #888880;
  --line:      rgba(10, 10, 10, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);

  /* micro accents — used sparingly */
  --purple: #A39EFF;
  --yellow: #FFD88B;
  --pink:   #FF7495;

  --ease:      cubic-bezier(0.2, 0.7, 0.2, 1);
  --maxw:      1480px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); color: var(--fg); }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}
::selection { background: var(--fg); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Type roles ---------- */
.display {
  font-family: 'Geist', system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Light/dark theme blocks ---------- */
.is-dark { background: #0a0a0a; color: #fafafa; --fg: #fafafa; --bg: #0a0a0a; --line: var(--line-dark); --muted: #6e6e6a; }
.is-light { background: #ffffff; color: #0a0a0a; }

/* ---------- Top chrome ---------- */
.chrome {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff;
}
.chrome > * { pointer-events: auto; }
.chrome .brand {
  font-family: 'Geist', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
}
.chrome .brand .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--pink); margin-right: 8px; vertical-align: middle;
}
.chrome nav { display: flex; gap: 24px; }
.chrome nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  position: relative; padding-bottom: 2px;
}
.chrome nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.chrome nav a:hover::after { transform: scaleX(1); }

/* progress rail */
.progress-rail {
  position: fixed; left: 24px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 12px;
  pointer-events: none;
  mix-blend-mode: difference;
}
.progress-rail .dot {
  width: 5px; height: 5px; border-radius: 999px;
  background: #fff; opacity: 0.25;
  transition: opacity 0.4s, width 0.4s, transform 0.4s;
}
.progress-rail .dot.active { opacity: 1; width: 18px; border-radius: 4px; }

/* ============================================================
   SCROLL STAGE
============================================================ */
.scroll-stage { position: relative; }
.act { position: relative; width: 100%; }
.sticky-frame {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  overflow: hidden;
  display: grid; place-items: center;
}

/* ============================================================
   ACT 1 — HERO
   Phase A (p 0→0.5): name + intro sub
   Phase B (p 0.5→1): name shrinks/fades, "AVAILABLE FOR HIRE" + disciplines reveal
============================================================ */
.act-hero { height: 200vh; }
.act-hero .sticky-frame { background: #0a0a0a; color: #fafafa; }

.hero-grid {
  position: relative;
  width: 100%; height: 100%;
  padding: 90px 32px 64px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}

/* top meta row */
.hero-meta-top {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em; color: #6e6e6a;
  opacity: clamp(0, calc(1 - var(--p, 0) * 1.6), 1);
}
.hero-meta-top .left { text-align: left; max-width: 32ch; }
.hero-meta-top .center { text-align: center; }
.hero-meta-top .right { text-align: right; }
.hero-meta-top .pink { color: var(--pink); }
.hero-meta-top .yellow { color: var(--yellow); }

/* main headline area */
.hero-main {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  position: relative;
}

.hero-name {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(48px, 13vw, 220px);
  letter-spacing: -0.045em;
  line-height: 0.84;
  /* Phase A: fully visible 0—0.30, then ramp to 0 by 0.50 */
  transform: scale(calc(1 - var(--p, 0) * 0.12)) translateY(calc(var(--p, 0) * -32px));
  opacity: clamp(0, calc(1 - max(var(--p, 0) - 0.30, 0) * 6), 1);
  text-align: center;
  word-break: keep-all;
}
.hero-name .pink-dot {
  display: inline-block; width: 0.14em; height: 0.14em;
  border-radius: 50%; background: var(--pink);
  margin-left: 0.06em; vertical-align: 0.18em;
}

.hero-sub {
  margin-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: #b8b8b3;
  opacity: clamp(0, calc(1 - max(var(--p, 0) - 0.30, 0) * 6), 1);
}
.hero-sub .sep { color: var(--purple); margin: 0 8px; }

/* phase B — appears AFTER phase A is fully gone (p > 0.55) */
.hero-phase-b {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  pointer-events: none;
  opacity: clamp(0, calc(max(var(--p, 0) - 0.55, 0) * 5), 1);
  transform: translateY(calc((1 - clamp(0, calc(max(var(--p, 0) - 0.55, 0) * 5), 1)) * 30px));
}
.hero-phase-b .label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 24px;
}
.hero-phase-b .big {
  font-family: 'Geist', sans-serif; font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(48px, 9vw, 140px);
  letter-spacing: -0.035em; line-height: 0.88;
}
.hero-phase-b .big .accent { color: var(--pink); }
.hero-phase-b .small {
  margin-top: 32px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #888880;
}

/* bottom row — disciplines tickerlist (always visible) */
.hero-disciplines {
  display: flex; justify-content: center; align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #b8b8b3;
}
.hero-disciplines .item { position: relative; padding-left: 14px; }
.hero-disciplines .item::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  transform: translateY(-50%);
  background: currentColor;
}
.hero-disciplines .item:nth-child(1)::before { background: var(--pink); }
.hero-disciplines .item:nth-child(3)::before { background: var(--yellow); }
.hero-disciplines .item:nth-child(5)::before { background: var(--purple); }

/* mobile-only project strip — hidden on desktop */
.hero-work-strip { display: none; }

/* corner crosshair marks */
.crosshair { position: absolute; width: 14px; height: 14px; opacity: 0.4; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: currentColor; }
.crosshair::before { left: 6px; top: 0; bottom: 0; width: 1px; }
.crosshair::after  { top: 6px; left: 0; right: 0; height: 1px; }
.crosshair.tl { top: 24px; left: 24px; }
.crosshair.tr { top: 24px; right: 24px; }
.crosshair.bl { bottom: 24px; left: 24px; }
.crosshair.br { bottom: 24px; right: 24px; }

/* ============================================================
   ACT 2 — MOTION / MODJO
   Light section showing product motion DNA via floating cards
============================================================ */
.act-motion { height: 220vh; }
.act-motion .sticky-frame { background: #ffffff; color: #0a0a0a; }

.motion-stage { position: relative; width: 100%; height: 100%; }

.motion-headline {
  position: absolute;
  top: 12vh; left: 50%;
  transform: translateX(-50%) translateY(calc((1 - min(var(--p2, 0) * 10, 1)) * 14px));
  text-align: center;
  opacity: min(var(--p2, 0) * 10, 1);
  width: min(94vw, 1200px);
  z-index: 5;
}
.motion-headline .eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.25em; text-transform: uppercase; color: #888880;
}
.motion-headline .eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--pink); margin-right: 10px; vertical-align: middle;
}
.motion-headline h2 {
  margin-top: 18px;
  font-family: 'Geist', sans-serif; font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(40px, 7.2vw, 110px);
  line-height: 0.92; letter-spacing: -0.03em;
  color: #0a0a0a;
}
.motion-headline h2 .accent { color: #0a0a0a; background: var(--yellow); padding: 0 0.08em; }
/* tweakable highlight variants */
.motion-headline h2 .accent.hl-yellow-box { color: #0a0a0a; background: var(--yellow); padding: 0 0.08em; }
.motion-headline h2 .accent.hl-purple-box { color: #0a0a0a; background: var(--purple); padding: 0 0.08em; }
.motion-headline h2 .accent.hl-pink-box   { color: #0a0a0a; background: var(--pink);   padding: 0 0.08em; }
.motion-headline h2 .accent.hl-pink-text   { color: var(--pink);   background: transparent; padding: 0; }
.motion-headline h2 .accent.hl-purple-text { color: var(--purple); background: transparent; padding: 0; }
.motion-headline h2 .accent.hl-underline   { color: #0a0a0a; background: transparent; padding: 0; box-shadow: inset 0 -0.12em 0 var(--pink); }
.motion-headline h2 .accent.hl-none        { color: inherit; background: transparent; padding: 0; }

/* minimal tag (single text) */
.motion-tag[data-tag-style="minimal"] {
  border: none;
}
.motion-tag[data-tag-style="minimal"] .part-dark { display: none; }
.motion-tag[data-tag-style="minimal"] .part-light {
  border: none;
  background: transparent;
  padding: 8px 0;
  color: #0a0a0a;
}

/* floating cards composition */
.motion-comp {
  position: absolute;
  left: 50%; top: 64%;
  transform: translate(-50%, -50%);
  width: min(96vw, 1300px);
  /* aspect ratio of the Lottie source (1401:415) */
  aspect-ratio: 1401 / 415;
  pointer-events: none;
}

/* "one example" tag sitting between headline and lottie */
.motion-tag {
  position: absolute;
  top: 38vh;
  left: 50%;
  transform: translateX(-50%) translateY(calc((1 - min(max((var(--p2, 0) - 0.02) * 8, 0), 1)) * 14px));
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: min(max((var(--p2, 0) - 0.02) * 8, 0), 1);
  z-index: 6;
  max-width: 92vw;
}
.motion-tag .part { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; }
.motion-tag .part-dark { background: #0a0a0a; color: #fff; }
.motion-tag .part-dark .tdot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--pink);
}
.motion-tag .part-light {
  background: transparent; color: #0a0a0a;
  border: 1px solid #0a0a0a; border-left: none;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12px;
}
.motion-tag .part-light a { text-decoration: underline; font-weight: 600; }
.motion-tag .part-light a:hover { color: var(--pink); }

/* Lottie container */
.modjo-lottie {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.modjo-lottie svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.lottie-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #888880;
  background: repeating-linear-gradient(135deg, #fafafa 0 12px, #f4f4f0 12px 24px);
  border-radius: 12px;
  transition: opacity 0.5s var(--ease);
}
.modjo-lottie.is-ready .lottie-fallback { opacity: 0; pointer-events: none; }

.fcard {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(10, 10, 10, 0.18), 0 2px 8px rgba(0,0,0,0.04);
  padding: 14px 16px;
  font-size: 13px;
  color: #0a0a0a;
  font-family: 'Geist', sans-serif;
}

/* card 1: search bar */
.fcard.c1 {
  left: 4%; top: 38%;
  width: 360px;
  --enter: calc(min(max((var(--p2, 0) - 0.05) * 4, 0), 1));
  opacity: var(--enter);
  transform: translateY(calc((1 - var(--enter)) * 30px)) rotate(-3deg);
}
.fcard.c1 .pill {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid #eee; border-radius: 999px;
}
.fcard.c1 .pill .ic { width: 14px; height: 14px; border-radius: 4px; background: var(--purple); }
.fcard.c1 .pill .ic.pink { background: var(--pink); }
.fcard.c1 .pill .text { color: #888880; font-size: 13px; }

/* card 2: CRM update */
.fcard.c2 {
  right: 4%; top: 6%;
  width: 320px;
  --enter: calc(min(max((var(--p2, 0) - 0.12) * 4, 0), 1));
  opacity: var(--enter);
  transform: translateY(calc((1 - var(--enter)) * 30px)) rotate(2deg);
}
.fcard.c2 .head {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 12px; font-weight: 600;
}
.fcard.c2 .head .av { width: 22px; height: 22px; border-radius: 50%; background: #0a0a0a; display: inline-block; }
.fcard.c2 .row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 999px;
  background: #fafaf8; border: 1px solid #f0f0ec;
}
.fcard.c2 .check {
  width: 18px; height: 18px;
  background: var(--purple);
  border-radius: 4px;
  display: grid; place-items: center;
  color: #0a0a0a; font-size: 12px; font-weight: 600;
}

/* card 3: AI button */
.fcard.c3 {
  left: 28%; top: 64%;
  width: 280px;
  --enter: calc(min(max((var(--p2, 0) - 0.2) * 4, 0), 1));
  opacity: var(--enter);
  transform: translateY(calc((1 - var(--enter)) * 30px)) rotate(-2deg);
  background: #0a0a0a;
  color: #fff;
  text-align: center;
}
.fcard.c3 .btn {
  padding: 14px 0; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px;
}
.fcard.c3 .sparkle {
  display: inline-block; width: 8px; height: 8px;
  transform: rotate(45deg); background: var(--yellow);
}

/* card 4: deal summary */
.fcard.c4 {
  right: 10%; top: 46%;
  width: 380px;
  --enter: calc(min(max((var(--p2, 0) - 0.26) * 4, 0), 1));
  opacity: var(--enter);
  transform: translateY(calc((1 - var(--enter)) * 30px)) rotate(1deg);
  padding: 18px;
}
.fcard.c4 .deal-head { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #888880; }
.fcard.c4 .deal-head .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--purple); }
.fcard.c4 .deal-head .dot.pink { background: var(--pink); }
.fcard.c4 h4 { margin-top: 6px; font-size: 14px; font-weight: 600; }
.fcard.c4 .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.fcard.c4 .grid .label {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  color: #888880; text-transform: uppercase; letter-spacing: 0.08em;
}
.fcard.c4 .grid .val { font-size: 12px; color: #0a0a0a; margin-top: 6px; line-height: 1.45; }
.fcard.c4 .tag {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 8.5px;
  background: var(--purple); color: #0a0a0a; border-radius: 3px; padding: 2px 5px;
  margin-left: 4px; vertical-align: middle; letter-spacing: 0.05em;
}

/* card 5: data detected */
.fcard.c5 {
  left: 44%; top: 8%;
  width: 190px;
  border-radius: 999px;
  padding: 12px 16px;
  --enter: calc(min(max((var(--p2, 0) - 0.3) * 4, 0), 1));
  opacity: var(--enter);
  transform: translateY(calc((1 - var(--enter)) * 30px));
  display: flex; align-items: center; gap: 8px; font-size: 12px;
}
.fcard.c5 .check-mini {
  width: 16px; height: 16px; background: var(--purple);
  border-radius: 4px; display: grid; place-items: center;
  font-size: 10px; color: #0a0a0a; font-weight: 600;
}

/* connector + sparks */
.connector {
  position: absolute;
  left: 50%; top: 8%; width: 1px; height: 70%;
  background: linear-gradient(to bottom, transparent 0%, #0a0a0a 30%, #0a0a0a 70%, transparent 100%);
  transform: scaleY(calc(min(max((var(--p2, 0) - 0.05) * 2, 0), 1)));
  transform-origin: top;
  z-index: 1;
}
.spark {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow);
  opacity: calc(min(max((var(--p2, 0) - 0.35) * 4, 0), 1));
}
.spark.s1 { left: calc(50% - 3px); top: 20%; background: var(--pink); }
.spark.s2 { left: calc(50% - 3px); top: 45%; }

/* caption — appears late */
.motion-caption {
  position: absolute; bottom: 7vh; left: 50%;
  display: flex; align-items: center; gap: 18px;
  background: #0a0a0a; color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  opacity: calc(min(max((var(--p2, 0) - 0.55) * 4, 0), 1));
  transform: translateX(-50%) translateY(calc((1 - min(max((var(--p2, 0) - 0.55) * 4, 0), 1)) * 24px));
  z-index: 6;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.motion-caption .live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--pink);
  animation: pulse 1.8s infinite ease-in-out;
}
.motion-caption .yellow { color: var(--yellow); }
.motion-caption a { text-decoration: underline; }

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

/* ============================================================
   ACT 3 — DISCIPLINES
============================================================ */
.act-disciplines { height: 240vh; }
.act-disciplines .sticky-frame { background: #0a0a0a; color: #fafafa; }

.disc-stage { width: 100%; height: 100%; padding: 90px 32px 60px; position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; }
.disc-top {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  gap: 24px;
}
.disc-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: #6e6e6a;
}
.disc-eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: #6e6e6a; vertical-align: middle; margin-right: 12px;
}
.disc-counter {
  text-align: right;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.1em; color: #6e6e6a;
}

.disc-headline {
  font-family: 'Geist', sans-serif; font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(40px, 7.4vw, 130px);
  line-height: 0.9; letter-spacing: -0.035em;
  max-width: 20ch;
  align-self: end;
  opacity: min(var(--p3, 0) * 3, 1);
  transform: translateY(calc((1 - min(var(--p3, 0) * 3, 1)) * 24px));
}
.disc-headline .accent-y { background: var(--yellow); color: #0a0a0a; padding: 0 0.06em; }
.disc-headline .accent-p { color: var(--pink); }

.disc-list { display: flex; flex-direction: column; }
.disc-row {
  display: grid;
  grid-template-columns: 60px 1fr 240px 60px;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line-dark);
  font-family: 'Geist', sans-serif; font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1; letter-spacing: -0.02em;
  --t: 0.25;
  --e: calc(min(max((var(--p3, 0) - var(--t)) * 4, 0), 1));
  opacity: var(--e);
  transform: translateX(calc((1 - var(--e)) * -24px));
}
.disc-row:last-child { border-bottom: 1px solid var(--line-dark); }
.disc-row:nth-child(1) { --t: 0.18; }
.disc-row:nth-child(2) { --t: 0.26; }
.disc-row:nth-child(3) { --t: 0.34; }
.disc-row:nth-child(4) { --t: 0.42; }
.disc-row:nth-child(5) { --t: 0.50; }
.disc-row:nth-child(6) { --t: 0.58; }

.disc-row .num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #6e6e6a; font-weight: 400; letter-spacing: 0.08em; }
.disc-row .name { display: flex; align-items: center; gap: 16px; }
.disc-row .name .badge {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em;
  padding: 4px 8px; border-radius: 3px;
  background: var(--yellow); color: #0a0a0a;
}
.disc-row .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #888880; text-align: right; font-weight: 400;
}
.disc-row .arr { font-family: 'JetBrains Mono', monospace; color: #888880; text-align: right; font-size: 18px; font-weight: 400; }

/* ============================================================
   ACT 4 — SELECTED WORK
============================================================ */
.act-work { height: 420vh; }
.act-work .sticky-frame { background: #ffffff; color: #0a0a0a; }

.work-stage { width: 100%; height: 100%; position: relative; }
.work-heading {
  position: absolute; top: 90px; left: 32px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: #888880;
}
.work-heading::before { content: ""; display: inline-block; width: 22px; height: 1px; background: #888880; vertical-align: middle; margin-right: 12px; }
.work-counter {
  position: absolute; top: 90px; right: 32px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.1em; color: #888880;
}
.work-counter .pink { color: var(--pink); }

.work-track {
  position: absolute; top: 50%; left: 0;
  transform: translateY(-50%) translateX(calc(var(--p4, 0) * -86%));
  display: flex; gap: 24px;
  padding: 0 32px;
  will-change: transform;
}
.work-card {
  flex-shrink: 0;
  width: 54vw; max-width: 720px;
  height: 62vh;
  background: #f5f5f2;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: border-color 0.4s var(--ease);
  text-decoration: none; color: inherit;
}
.work-card:hover { border-color: #0a0a0a; }
.work-card .vis {
  flex: 1; position: relative; overflow: hidden;
  display: grid; place-items: center;
  background: #f0f0ec;
}
.work-card .vis img { width: 100%; height: 100%; object-fit: cover; }
.work-card .vis.placeholder {
  background: repeating-linear-gradient(135deg, #f5f5f2 0 12px, #ececea 12px 24px);
  color: #888880;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.work-card .info {
  padding: 20px 22px;
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid var(--line);
  background: #fff;
}
.work-card .info .mono { color: #888880; }
.work-card .info h3 {
  font-family: 'Geist', sans-serif; font-weight: 700;
  text-transform: uppercase;
  font-size: 22px; line-height: 1; margin-top: 8px; letter-spacing: -0.015em;
}
.work-card .info .right { text-align: right; }
.work-card .info .right .arrow { font-size: 18px; margin-top: 8px; font-family: 'JetBrains Mono', monospace; }
.work-card .info .tag-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
  background: var(--purple);
}
.work-card:nth-child(1) .tag-dot { background: var(--pink); }
.work-card:nth-child(2) .tag-dot { background: var(--purple); }
.work-card:nth-child(3) .tag-dot { background: var(--yellow); }
.work-card:nth-child(4) .tag-dot { background: var(--pink); }
.work-card:nth-child(5) .tag-dot { background: var(--purple); }
.work-card:nth-child(6) .tag-dot { background: var(--yellow); }

.work-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: #888880;
}
.work-hint .bar { width: 90px; height: 2px; background: #eee; position: relative; overflow: hidden; }
.work-hint .bar::after {
  content:""; position: absolute; left: 0; top: 0; height: 100%; width: 100%;
  background: #0a0a0a;
  transform: translateX(calc(-100% + var(--p4, 0) * 100%));
}

/* ============================================================
   ACT 5 — PORTFOLIOS / PDFs
============================================================ */
.act-portfolios { height: auto; }
.act-portfolios .sticky-frame { position: static; height: auto; min-height: 100vh; overflow: visible; background: #0a0a0a; color: #fafafa; }

.pf-stage { width: 100%; min-height: 100vh; padding: 120px 32px 70px; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.pf-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.pf-top .eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: #888880;
}
.pf-top .eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1px; background: #888880; vertical-align: middle; margin-right: 12px; }
.pf-top h2 {
  font-family: 'Geist', sans-serif; font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(44px, 8vw, 130px);
  line-height: 0.9; letter-spacing: -0.035em;
  margin-top: 14px;
  max-width: 16ch;
}
.pf-top h2 .accent-y { background: var(--yellow); color: #0a0a0a; padding: 0 0.06em; }
.pf-top h2 .accent-p { color: var(--pink); }
.pf-top .side { font-size: 14px; line-height: 1.55; color: #b8b8b3; max-width: 40ch; }

.pf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.pf-card {
  background: #fff;
  color: #0a0a0a;
  padding: 26px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  transition: transform 0.5s var(--ease);
  text-decoration: none;
}
.pf-card:hover { transform: translateY(-6px); }
.pf-card:hover .pf-cta { background: #0a0a0a; color: #fff; }
.pf-card .pf-num {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; color: #888880;
}
.pf-card .pf-num .marker {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 8px; vertical-align: middle;
}
.pf-card:nth-child(1) .pf-num .marker { background: var(--pink); }
.pf-card:nth-child(2) .pf-num .marker { background: var(--purple); }
.pf-card:nth-child(3) .pf-num .marker { background: var(--yellow); }
.pf-card .pf-title {
  font-family: 'Geist', sans-serif; font-weight: 700;
  text-transform: uppercase;
  font-size: 26px; line-height: 0.95; margin-top: 14px; letter-spacing: -0.02em;
}
.pf-card .pf-desc { margin-top: 14px; font-size: 13px; line-height: 1.55; color: #555; max-width: 32ch; }
.pf-card .pf-spec {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: #888880;
}
.pf-card .pf-mock {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
  height: 40px;
}
.pf-card .pf-mock div {
  background: #f0f0ec;
  border-radius: 1px;
}
.pf-card:nth-child(1) .pf-mock div:nth-child(2) { background: var(--pink); }
.pf-card:nth-child(2) .pf-mock div:nth-child(4) { background: var(--purple); }
.pf-card:nth-child(3) .pf-mock div:nth-child(1) { background: var(--yellow); }

.pf-card .pf-cta {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 12px 18px;
  border: 1px solid #0a0a0a;
  border-radius: 999px;
  background: transparent; color: #0a0a0a;
  transition: background 0.3s, color 0.3s;
}

.pf-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase; color: #6e6e6a;
  padding-top: 20px; border-top: 1px solid var(--line-dark);
}

/* ============================================================
   FOOTER / CONTACT
============================================================ */
.contact-section {
  background: #ffffff; color: #0a0a0a;
  padding: 110px 32px 36px;
  position: relative;
  overflow: hidden;
}
.contact-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }
.contact-mono {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: #888880;
}
.contact-mono::before { content: ""; display: inline-block; width: 22px; height: 1px; background: #888880; vertical-align: middle; margin-right: 12px; }
.contact-headline {
  font-family: 'Geist', sans-serif; font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(54px, 11vw, 200px);
  line-height: 0.88; letter-spacing: -0.04em;
  margin: 28px 0 56px;
  max-width: 12ch;
}
.contact-headline .accent-y { background: var(--yellow); padding: 0 0.06em; }
.contact-headline .accent-p { color: var(--pink); }

.contact-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px;
  border-top: 1px solid var(--line); padding-top: 40px;
}
.contact-grid .col h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #888880; margin-bottom: 16px; font-weight: 400;
}
.contact-grid a {
  display: block;
  font-family: 'Geist', sans-serif; font-weight: 700;
  text-transform: uppercase;
  font-size: 18px; line-height: 1.2; letter-spacing: -0.01em;
  padding: 8px 0;
  transition: padding-left 0.3s var(--ease), color 0.3s;
  position: relative;
}
.contact-grid a::before {
  content: ""; position: absolute; left: -14px; top: 50%;
  transform: translateY(-50%) scale(0);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pink);
  transition: transform 0.3s var(--ease);
}
.contact-grid a:hover { padding-left: 14px; }
.contact-grid a:hover::before { transform: translateY(-50%) scale(1); }
.contact-grid .col ul { list-style: none; }

.contact-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 90px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase; color: #888880;
}

/* short-viewport adjustments to prevent clipping */
@media (max-height: 800px) {
  .disc-row { padding: 12px 0; font-size: clamp(20px, 2.6vw, 36px); }
  .disc-headline { font-size: clamp(36px, 6.2vw, 100px); }
  .disc-stage { padding: 80px 32px 40px; gap: 16px; }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .chrome { padding: 14px 16px; }
  .progress-rail { display: none; }
  .hero-grid { padding: 70px 16px 50px; }
  .hero-meta-top { grid-template-columns: 1fr; gap: 6px; text-align: left !important; }
  .hero-meta-top .center, .hero-meta-top .right { text-align: left; }
  .hero-disciplines { flex-wrap: wrap; gap: 10px 14px; font-size: 9px; }
  .motion-comp { aspect-ratio: 1401/415; height: auto; }
  .motion-tag {
    flex-direction: column;
    border-radius: 14px;
    top: 30vh;
    font-size: 10px;
    width: min(92vw, 420px);
  }
  .motion-tag .part-light { border-left: 1px solid #0a0a0a; border-top: none; font-size: 11px; }
  .disc-stage { padding: 70px 16px 40px; }
  .disc-row { grid-template-columns: 44px 1fr 50px; font-size: 22px; gap: 12px; }
  .disc-row .meta { display: none; }
  .work-heading, .work-counter { top: 68px; left: 16px; right: 16px; }
  .work-card { width: 80vw; height: 56vh; }
  .work-track { padding: 0 16px; }
  .pf-stage { padding: 70px 16px 32px; }
  .pf-cards { grid-template-columns: 1fr; gap: 12px; }
  .pf-top { grid-template-columns: 1fr; }
  .contact-section { padding: 70px 16px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   MOBILE — full flow rebuild (≤768px)
   Sticky + scroll-driven system disabled: every act becomes a
   normal stacked block; entrances handled by IntersectionObserver
   (.io-fade / .io-in classes added by JS on mobile only).
============================================================ */
@media (max-width: 768px) {

  /* ---- kill the sticky / scroll-progress system ---- */
  .act { height: auto !important; }
  .sticky-frame {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    display: block !important;
  }
  /* neutralize every --p driven opacity / transform */
  .hero-meta-top, .hero-name, .hero-sub, .hero-phase-b,
  .motion-headline, .motion-tag, .motion-comp, .motion-caption,
  .disc-headline, .disc-row, .work-track {
    opacity: 1 !important;
    transform: none !important;
  }

  /* ---- top chrome ---- */
  .chrome { padding: 14px 16px; }
  .chrome .brand { font-size: 11px; letter-spacing: 0.06em; padding: 8px 0; }
  .chrome nav { gap: 16px; }
  .chrome nav a { font-size: 9px; letter-spacing: 0.06em; padding: 10px 0; }
  .progress-rail { display: none; }
  .crosshair { display: none; }

  /* ---- HERO — stacked flow ---- */
  .hero-grid {
    display: flex; flex-direction: column;
    height: auto;
    padding: 88px 18px 52px;
    gap: 44px;
  }
  .hero-meta-top { display: flex; flex-direction: column; gap: 6px; }
  .hero-meta-top .center, .hero-meta-top .right { text-align: left; }
  .hero-main { position: static; }
  .hero-name { font-size: min(11.5vw, 80px); letter-spacing: -0.03em; }
  .hero-sub {
    margin-top: 16px;
    font-size: clamp(8px, 2.5vw, 10px);
    letter-spacing: 0.08em; line-height: 1.7;
    padding: 0 6px;
  }
  .hero-sub .sep { margin: 0 6px; }
  .hero-phase-b { display: none !important; }
  .hero-work-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 4px -18px 0;
    padding: 4px 18px;
  }
  .hero-work-strip::-webkit-scrollbar { display: none; }
  .hero-work-strip a {
    flex: 0 0 auto;
    width: 104px;
    height: 76px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #141414;
  }
  .hero-work-strip img { width: 100%; height: 100%; object-fit: cover; }
  .hero-disciplines { gap: 8px 12px; font-size: 9px; }

  /* ---- ACT 2 · MOTION — stacked, portrait lottie ---- */
  .motion-stage {
    height: auto;
    display: flex; flex-direction: column; align-items: center;
    gap: 28px;
    padding: 76px 18px 60px;
  }
  .motion-headline,
  .motion-tag,
  .motion-comp,
  .motion-caption {
    position: static !important;
    top: auto; left: auto; right: auto; bottom: auto;
  }
  .motion-headline { width: 100%; text-align: center; }
  .motion-headline .eyebrow { font-size: 10px; letter-spacing: 0.18em; }
  .motion-headline h2 {
    height: auto !important;
    margin-top: 12px;
    font-size: clamp(30px, 8.6vw, 44px) !important;
    line-height: 0.98;
  }
  .motion-tag { flex-direction: column; border-radius: 14px; font-size: 10px; width: min(88vw, 360px); }
  .motion-tag:empty { display: none; }
  .motion-tag .part { padding: 10px 16px; justify-content: center; }
  .motion-tag .part-light { border-left: 1px solid #0a0a0a; border-top: none; font-size: 11px; text-align: center; }
  .motion-comp {
    width: min(78vw, 320px) !important;
    aspect-ratio: 570 / 726;   /* portrait mobile lottie */
    height: auto;
    margin: 0 auto;
  }
  .motion-caption { gap: 12px; padding: 10px 16px; font-size: 10px; }

  /* ---- ACT 3 · DISCIPLINES — stacked ---- */
  .disc-stage {
    height: auto;
    display: flex; flex-direction: column;
    gap: 26px;
    padding: 64px 16px 52px;
  }
  .disc-top { display: flex; flex-direction: column; gap: 8px; }
  .disc-counter { text-align: left; }
  .disc-headline { font-size: clamp(34px, 11vw, 58px); max-width: none; align-self: auto; }
  .disc-row { grid-template-columns: 40px 1fr 40px; font-size: clamp(19px, 5.4vw, 28px); gap: 10px; padding: 16px 0; }
  .disc-row .meta { display: none; }
  .disc-row .num { font-size: 10px; }

  /* ---- ACT 4 · SELECTED WORK — vertical card list ---- */
  .work-stage {
    height: auto;
    display: flex; flex-direction: column;
    gap: 18px;
    padding: 64px 16px 44px;
  }
  .work-heading { position: static; }
  .work-counter { display: none; }
  .work-hint { display: none; }
  .work-track {
    position: static !important;
    flex-direction: column;
    gap: 18px;
    padding: 0;
  }
  .work-card { width: 100%; max-width: none; height: auto; }
  .work-card .vis { flex: none; aspect-ratio: 4 / 3; }
  .work-card .info { padding: 14px 16px; }
  .work-card .info h3 { font-size: 17px; }
  .work-card .info .mono { font-size: 9px; }

  /* ---- ACT 5 · PORTFOLIOS ---- */
  .pf-stage {
    min-height: 0;
    justify-content: flex-start;
    padding: 72px 16px 48px;
    gap: 26px;
  }
  .pf-top { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
  .pf-top h2 { font-size: clamp(40px, 13vw, 72px); }
  .pf-top .side { font-size: 13px; max-width: none; }
  .pf-cards { grid-template-columns: 1fr; gap: 12px; }
  .pf-card { min-height: 0; padding: 22px; }
  .pf-card .pf-cta { width: 100%; justify-content: center; padding: 15px 18px; }
  .pf-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* ---- CONTACT ---- */
  .contact-section { padding: 64px 16px 24px; }
  .contact-headline { font-size: clamp(48px, 15vw, 90px); margin: 22px 0 40px; }
  .contact-grid { display: flex; flex-direction: column; gap: 26px; }
  .contact-grid a { font-size: 16px; padding: 10px 0; }
  .contact-foot { flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 56px; }

  /* ---- IntersectionObserver entrances (classes added by JS) ----
     Placed last so they win over the neutralize block above. */
  .io-fade {
    opacity: 0 !important;
    transform: translateY(18px) !important;
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .io-fade.io-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   PROJECT DETAIL PAGES (used by projects.html overlay)
============================================================ */
.proj-page { padding: 90px 32px 70px; max-width: 1180px; margin: 0 auto; color: var(--fg); }
.proj-back {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.proj-back:hover { color: var(--pink); }
.proj-title {
  font-family: 'Geist', sans-serif; font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.9; letter-spacing: -0.04em;
  margin: 28px 0 14px;
}
.proj-title .accent-y { background: var(--yellow); color: #0a0a0a; padding: 0 0.06em; }
.proj-title .accent-p { color: var(--pink); }
.proj-sub { font-size: 16px; color: var(--muted); max-width: 64ch; line-height: 1.55; }
.proj-meta-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 56px; padding: 24px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.proj-meta-row .meta-cell .mono { color: var(--muted); display: block; margin-bottom: 8px; }
.proj-meta-row .meta-cell .val {
  font-family: 'Geist', sans-serif; font-weight: 700;
  text-transform: uppercase;
  font-size: 18px; letter-spacing: -0.01em;
}
.proj-image-wrap { margin-top: 50px; overflow: hidden; background: #f5f5f2; }
.proj-image-wrap img { width: 100%; height: auto; display: block; }
.proj-body { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; margin-top: 50px; }
.proj-body h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px; font-weight: 400;
}
.proj-body p { font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.proj-body p strong { font-weight: 600; }
.proj-cta {
  margin-top: 50px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.proj-cta:hover { background: var(--fg); color: var(--bg); }
.proj-cta .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }

@media (max-width: 900px) {
  .proj-page { padding: 70px 16px 50px; }
  .proj-meta-row { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .proj-body { grid-template-columns: 1fr; gap: 18px; }
}
