/* ============================================================
   FLYWHEEL × SAMSUNG — Credentials pitch experience
   Scroll-driven cinematic narrative. Consumes the design system tokens.
   ============================================================ */

:root {
  --samsung-blue: #1428A0;
  --ink: #101010;
  --panel: #14171c;          /* deep near-black for dramatic sections */
  --panel-2: #1c1f24;
  --lime: #91d10b;
  --lime-deep: #437810;
  --max: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--lime); color: var(--ink); }

/* Hide scrollbar but keep scroll */
body::-webkit-scrollbar { width: 0; }

img { display: block; max-width: 100%; }

/* ---------- Layout primitives ---------- */
.section { position: relative; padding: clamp(80px, 13vh, 180px) var(--gutter); }
.wrap { max-width: var(--max); margin: 0 auto; width: 100%; }
.section.dark { background: var(--panel); color: #fff; }
.section.ink  { background: var(--ink); color: #fff; }
.section.warm { background: var(--tan); }
.section.full { min-height: 100vh; display: flex; align-items: center; }

/* ---------- Per-slide page numbers ---------- */
main { counter-reset: slide; }
.section { counter-increment: slide; }
.section::after {
  content: counter(slide, decimal-leading-zero);
  position: absolute; bottom: clamp(16px, 2.4vh, 30px); right: clamp(18px, 2.4vw, 40px);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  color: rgba(16,16,16,0.32); z-index: 3; pointer-events: none;
}
.section.dark::after, .section.ink::after { color: rgba(255,255,255,0.34); }

/* ---------- Type ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime-deep);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
}
.dark .kicker, .ink .kicker { color: var(--lime); }
.kicker::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6;
}
.kicker.nolead::before { display: none; }

.display {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  font-size: clamp(40px, 7vw, 104px);
}
.display.sm { font-size: clamp(34px, 5vw, 68px); }
h2.head {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 5vw, 64px);
  margin: 0;
}
h3.sub {
  font-family: var(--font-serif);
  font-weight: 500; letter-spacing: -0.015em;
  font-size: clamp(24px, 3vw, 38px); margin: 0;
}
.lead {
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.5; color: var(--text-muted); max-width: 60ch; margin: 0;
  font-weight: 400;
}
.dark .lead, .ink .lead { color: rgba(255,255,255,0.72); }
.body { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; color: var(--text-body); }
.dark .body, .ink .body { color: rgba(255,255,255,0.7); }
.hl { color: var(--lime-deep); }
.dark .hl, .ink .hl { color: var(--lime); }
.serif-it { font-style: italic; }

/* Giant graphic numerals for chapters */
.bignum {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(120px, 24vw, 360px);
  line-height: 1;
  padding-top: 0.08em;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.22);
}
.bignum.solid { color: var(--lime); -webkit-text-stroke: 0; }
.agenda-n {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1;
  color: var(--lime);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(500ms + var(--d, 0ms)); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal-cl { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-out); transition-delay: calc(500ms + var(--d, 0ms)); }
.reveal-cl.in { clip-path: inset(0 0 0 0); }
.reveal-sc { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(500ms + var(--d, 0ms)); }
.reveal-sc.in { opacity: 1; transform: none; }

/* word-stagger */
.split .w { display: inline-block; opacity: 0; transform: translateY(0.5em) rotate(2deg); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(500ms + var(--d, 0ms) + var(--i) * 55ms); }
.split.in .w { opacity: 1; transform: none; }

/* Settle failsafe — snaps to final visible state (no transition) so content is
   guaranteed legible even if the compositor pauses transitions mid-tween. */
.reveal.settled, .reveal-sc.settled { opacity: 1 !important; transform: none !important; transition: none !important; }
.reveal-cl.settled { clip-path: inset(0 0 0 0) !important; transition: none !important; }
.split.settled .w { opacity: 1 !important; transform: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-cl, .reveal-sc, .split .w { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .orbit-spin { animation: none !important; }
}

/* Tweak: "still" entrance mode — content present, no animation */
html.tw-still .reveal, html.tw-still .reveal-cl, html.tw-still .reveal-sc, html.tw-still .split .w { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
html.tw-still .orbit-spin { animation: none !important; }
html.tw-still .scrollcue span { animation: none !important; }

/* ---------- Orbit mark ---------- */
.orbit-spin { animation: spin 44s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }

/* ---------- Header wayfinding (ticks + active label) ---------- */
.topnav {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 9px; position: relative; align-self: stretch;
}
.topnav button {
  position: relative; background: none; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; width: 12px; height: 100%;
}
.topnav .tick {
  width: 2px; height: 11px; border-radius: 2px; background: currentColor;
  color: var(--gray-icon); opacity: .4;
  transition: height .3s ease, opacity .3s ease, background .3s ease;
}
.topnav button:hover .tick { opacity: .85; height: 15px; }
.topnav button.active .tick { height: 20px; opacity: 1; background: var(--lime-deep); }
.topnav .label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, 16px);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap; color: var(--ink); opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.topnav button.active .label { opacity: 1; }
.topnav button:hover { z-index: 5; }
.topnav button:hover .label { opacity: 1; }
.topnav.on-dark .tick { color: rgba(255,255,255,0.4); }
.topnav.on-dark button.active .tick { background: var(--lime); }
.topnav.on-dark .label { color: #fff; }
@media (max-width: 680px) { .topnav { display: none; } }

/* ---------- Top bar (persistent co-brand) ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;  padding: 16px var(--gutter);
  transition: background .4s ease, border-color .4s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
}
.topbar.solid { background: rgba(253,253,253,0.82); backdrop-filter: blur(14px); border-color: var(--border-subtle); }
.topbar.on-dark.solid { background: rgba(20,23,28,0.7); border-color: rgba(255,255,255,0.08); }
.topbar { transition: transform .4s cubic-bezier(.4,0,.2,1); }
.topbar.idle-hide { transform: translateY(-110%); pointer-events: none; }
.topbar .fw { height: 36px; }
.topbar .cobrand { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-text); }
.topbar.on-dark .cobrand { color: rgba(255,255,255,0.6); }
.topbar .samsung-wm { color: var(--ink); }
.topbar.on-dark .samsung-wm { color: #fff; }
.samsung-wm { font-family: Arial, Helvetica, sans-serif; font-weight: 800; letter-spacing: 0.04em; }
.topbar .sam { height: 20px; width: auto; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 10px; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-dark { background: var(--ink); color: #fff; }

/* ---------- Video frame ---------- */
.videoframe {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--panel-2); aspect-ratio: 16 / 9; width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 90px rgba(16,16,16,0.30);
}
.videoframe.light { border-color: var(--border-subtle); box-shadow: var(--shadow-lg); }
.videoframe video, .videoframe img { width: 100%; height: 100%; object-fit: cover; }
.videoframe .poster {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(145,209,11,0.10), transparent 60%),
    var(--panel-2);
}
.vf-play {
  width: 84px; height: 84px; border-radius: 999px; background: var(--lime);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(145,209,11,0.5); animation: pulse 2.6s infinite;
  transition: transform .2s ease;
}
.vf-play:hover { transform: scale(1.06); }
.vf-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; background: linear-gradient(180deg, rgba(16,16,16,0.10), rgba(16,16,16,0.34)); transition: background .2s ease; }
.vf-overlay:hover { background: linear-gradient(180deg, rgba(16,16,16,0.06), rgba(16,16,16,0.28)); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(145,209,11,0.45);} 70% { box-shadow: 0 0 0 26px rgba(145,209,11,0);} 100% { box-shadow: 0 0 0 0 rgba(145,209,11,0);} }
.vf-meta { position: absolute; left: 22px; bottom: 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 10px; }
.vf-badge { position: absolute; right: 22px; top: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); border: 1px solid rgba(145,209,11,0.4); border-radius: 999px; padding: 5px 12px; background: rgba(145,209,11,0.08); }

/* ---------- Cards / chips ---------- */
.fcard { background: var(--card-bg); border: 1px solid var(--border-subtle); border-radius: 18px; box-shadow: var(--shadow-xs); }
.dark .fcard, .ink .fcard { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.10); }
.chip-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-subtle); color: var(--text-muted); background: var(--card-bg); }
.dark .chip-pill, .ink .chip-pill { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.75); }

/* utility */
.grid { display: grid; gap: clamp(18px, 2.4vw, 34px); }
.center { text-align: center; }
.mauto { margin-left: auto; margin-right: auto; }
.dim { color: var(--text-muted); }
.dark .dim, .ink .dim { color: rgba(255,255,255,0.55); }

/* ---------- TD → Samsung bridge table ---------- */
.bridge { display: flex; flex-direction: column; }
.bridge-row { display: grid; grid-template-columns: 0.7fr 1.15fr 1.15fr; gap: clamp(16px,2.4vw,40px); padding: clamp(16px,2.2vh,22px) 0; border-top: 1px solid rgba(255,255,255,0.12); align-items: start; }
.bridge-row .bridge-k { font-family: var(--font-serif); font-size: clamp(18px,1.6vw,24px); color: #fff; font-weight: 500; }
.bridge-row .bridge-td { color: rgba(255,255,255,0.62); font-size: clamp(14px,1.15vw,16px); line-height: 1.45; }
.bridge-row .bridge-rdy { color: #fff; font-size: clamp(14px,1.15vw,16px); line-height: 1.45; }
.bridge-head { border-top: none; }
.bridge-head span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.bridge-head .bridge-rdy { color: var(--lime); }
.bridge-row .bridge-rdy { position: relative; }
.bridge-row:not(.bridge-head) .bridge-rdy { padding-left: 16px; border-left: 2px solid var(--lime); }

.logochip { background: #fff; border-radius: 14px; height: clamp(70px,8vh,88px); display: flex; align-items: center; justify-content: center; padding: 0 clamp(20px,2.4vw,30px); box-shadow: 0 20px 44px rgba(0,0,0,0.34); }
.logochip img { height: clamp(40px,4.6vh,52px); width: auto; object-fit: contain; display: block; }

/* ============================================================
   TD CASE STUDY — closed loop, velocity, the work, transfer
   ============================================================ */

/* Reusable mono eyebrow inside dark sections */
.td-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* Slide 1 — the 3 → 300 demand jump */
.td-jump { display: flex; align-items: baseline; gap: clamp(14px,2vw,30px); }
.td-jump .from { font-family: var(--font-serif); font-weight: 500; font-size: clamp(56px,8vw,120px); line-height: 0.9; color: rgba(255,255,255,0.34); letter-spacing: -0.02em; }
.td-jump .arrow { color: var(--lime); font-size: clamp(34px,5vw,72px); line-height: 1; transform: translateY(-0.08em); }
.td-jump .to { font-family: var(--font-serif); font-weight: 500; font-size: clamp(90px,15vw,220px); line-height: 0.86; color: var(--lime); letter-spacing: -0.03em; }
.td-unit { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 14px; }

/* Slide 2 — closed loop diagram */
.loopwrap { position: relative; width: 100%; max-width: 500px; margin: 0 auto; aspect-ratio: 1 / 1; }
.loopwrap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loopnode { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; width: max-content; }
.loopnode:not(.above) { transform: translate(-50%, -6px); }
.loopnode.above { transform: translate(-50%, calc(-100% + 6px)); }
.loopnode .dot { width: 13px; height: 13px; border-radius: 999px; background: var(--lime); box-shadow: 0 0 0 5px rgba(145,209,11,0.14); }
.loopnode .lbl { background: var(--panel); padding: 3px 9px; border-radius: 7px; }
.loopnode .nk { font-family: var(--font-serif); font-weight: 500; font-size: clamp(15px,1.4vw,19px); color: #fff; line-height: 1.05; letter-spacing: -0.01em; }
.loopnode .nd { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 3px; line-height: 1.35; white-space: nowrap; }
.loopnode.lead .dot { background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,0.12); }
.loop-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: clamp(86px,12vw,120px); height: clamp(86px,12vw,120px); opacity: 0.5; }
.loop-handoff { position: absolute; z-index: 3; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); border: 1px solid rgba(145,209,11,0.5); background: var(--panel); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }

/* Slide 3 — velocity meter + gates */
.vmeter { border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: clamp(24px,3vw,40px); background: rgba(255,255,255,0.03); }
.vtrack { position: relative; height: 12px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.vtrack .fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, rgba(145,209,11,0.45), var(--lime)); transition: width 1.6s var(--ease-out); }
.vtrack.in .fill { width: 100%; }
.gate { display: flex; align-items: flex-start; gap: 11px; }
.gate .gicon { width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(145,209,11,0.12); border: 1px solid rgba(145,209,11,0.4); }
.gate .gk { font-weight: 600; font-size: 14px; color: #fff; }
.gate .gd { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 3px; }
.cadence { display: flex; gap: 8px; }
.cadence .q { flex: 1; text-align: center; }
.cadence .q .bar { height: 40px; border-radius: 5px; background: rgba(145,209,11,0.14); border: 1px solid rgba(145,209,11,0.32); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.03em; color: var(--lime); }
.cadence .q .ql { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-top: 7px; }

/* Slide 4 — the work panels */
.workpanel { background: var(--card-bg); border-radius: 14px; border: 1px solid var(--border-subtle); overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.35); }
.wp-head { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-text); padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; }
.skline { height: 8px; border-radius: 4px; background: var(--gray-200); }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; font-weight: 600; font-size: 14px; color: var(--ink); }
.faq-a { font-size: 13px; line-height: 1.55; color: var(--text-body); padding: 0 0 14px; }
.codeblk { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7; color: #c7d59a; background: #14171c; padding: 16px; white-space: pre; overflow-x: auto; }
.codeblk .k { color: #91d10b; } .codeblk .s { color: #e8e2cf; } .codeblk .p { color: rgba(255,255,255,0.4); }
.aicard { border: 1px solid rgba(145,209,11,0.4); border-radius: 14px; background: linear-gradient(180deg, rgba(145,209,11,0.06), rgba(255,255,255,0.02)); padding: clamp(18px,2.2vw,26px); }
.cite-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--lime); border: 1px solid rgba(145,209,11,0.4); border-radius: 999px; padding: 5px 11px; background: rgba(145,209,11,0.08); }

/* Slide 5 — benefit tiles, shared engine, NF teaser */
.benetile { border-top: 1px solid rgba(255,255,255,0.16); padding-top: 18px; }
.benetile .bmark { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(145,209,11,0.4); background: rgba(145,209,11,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.engine-band { border: 1px solid rgba(255,255,255,0.14); border-radius: 18px; padding: clamp(24px,3vw,40px); background: rgba(255,255,255,0.03); }
.engine-pill { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); border: 1px solid rgba(145,209,11,0.45); border-radius: 999px; padding: 9px 16px; background: rgba(145,209,11,0.08); }
.expand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.expand-grid .cell { aspect-ratio: 1.4 / 1; border-radius: 6px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); }
.expand-grid .cell.on { background: rgba(145,209,11,0.16); border-color: rgba(145,209,11,0.45); }
.nfteaser { display: flex; align-items: center; gap: clamp(18px,2.4vw,32px); border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; padding: clamp(20px,2.6vw,30px); background: rgba(255,255,255,0.03); transition: border-color .25s ease, transform .25s ease; text-decoration: none; }
.nfteaser:hover { border-color: rgba(145,209,11,0.5); transform: translateY(-2px); }
.nfteaser .nflogo { background: #fff; border-radius: 12px; padding: 14px 20px; flex-shrink: 0; }
.nfteaser .nflogo img { height: 34px; width: auto; }

/* Case-study divider — equal proof cards */
.casecard { background: #fff; border-radius: 18px; padding: clamp(22px,2.4vw,32px); display: flex; flex-direction: column; box-shadow: 0 20px 44px rgba(0,0,0,0.34); }
.casecard .cc-logo { height: clamp(38px,5vh,52px); display: flex; align-items: center; }
.casecard .cc-logo img { height: clamp(28px,3.6vh,40px); width: auto; }
.casecard .cc-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime-deep); margin: 18px 0 12px; }
.casecard .cc-sum { font-size: clamp(14px,1.15vw,16px); line-height: 1.55; color: var(--text-body); margin: 0; }

/* ---------- TD work wall (film strips, Slide 1) ---------- */
.workwall { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px,1vw,14px); height: clamp(440px, 80vh, 780px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.wwcol { display: flex; flex-direction: column; gap: clamp(8px,1vw,14px); will-change: transform; }
.wwcol.up { animation: wwmarq 46s linear infinite; }
.wwcol.up2 { animation: wwmarq 64s linear infinite; }
.wwcol.down { animation: wwmarq 56s linear infinite reverse; }
@keyframes wwmarq { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.wwcard { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); background: #0c0c0c; box-shadow: 0 14px 34px rgba(0,0,0,0.42); flex-shrink: 0; }
.wwcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) { .wwcol { animation: none !important; } }
html.tw-still .wwcol { animation: none !important; }
@media (max-width: 900px) { .workwall { grid-template-columns: repeat(2, 1fr); height: 62vh; } }

/* ---------- AI-journey meter (Slide 3) ---------- */
.jtrack { position: relative; height: 12px; border-radius: 999px; background: rgba(255,255,255,0.08); }
.jtrack .jfill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, rgba(145,209,11,0.45), var(--lime)); transition: width 1.6s var(--ease-out); }
.jtrack.in .jfill { width: 40%; }
.jtrack .jmark { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.14); z-index: 2; }

/* ---------- Nature Fresh collage: monitor hero + flanking phones ---------- */
.collstage { position: relative; width: 100%; max-width: 1040px; margin: 0 auto; height: clamp(430px, 64vh, 660px); }
.colltag { position: absolute; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); white-space: nowrap; z-index: 6; }
.collmonitor { position: static; width: 100%; }
.collmon-screen { position: relative; aspect-ratio: 16 / 10; background: #0c0c0c; border: 12px solid #34383f; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,0.2), inset 0 0 0 1px rgba(255,255,255,0.06), 0 44px 100px rgba(0,0,0,0.6); }
.collmon-screen image-slot, .collmon-screen img:not(.collmon-nav) { width: 100%; height: 100%; display: block; object-fit: cover; }
.collmon-stand { width: 12%; height: clamp(30px,5vh,52px); margin: -2px auto 0; background: linear-gradient(180deg,#3c4048,#24282f); }
.collmon-base { width: 34%; height: 13px; margin: 0 auto; border-radius: 8px; background: #3c4048; box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 18px 34px rgba(0,0,0,0.45); }
.collphone { position: static; width: 100%; }
.collphone-left { left: 0; bottom: 9%; transform: rotate(-5deg); z-index: 4; }
.collphone-frame { position: relative; background: linear-gradient(158deg,#454951,#1f222a); border: 2px solid #4c505a; border-radius: 30px; padding: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 36px 74px rgba(0,0,0,0.62); }
.collphone-frame::before { content: ""; position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 32%; height: 6px; border-radius: 999px; background: #14161b; z-index: 4; }
.collphone-screen { position: relative; aspect-ratio: 9 / 19; background: #fff; border-radius: 22px; overflow: hidden; }
.collphone-screen .emailimg { position: absolute; top: 0; left: 0; width: 106%; max-width: none; height: auto; display: block; animation: emailscroll 5.85s ease-in-out infinite; }
@keyframes emailscroll { 0%,7% { transform: translateY(0); } 48%,55% { transform: translateY(-57%); } 96%,100% { transform: translateY(0); } }
.collphone-mock { position: absolute; z-index: 3; width: clamp(150px, 15vw, 208px); right: 1%; bottom: 0; transform: rotate(4deg); border-radius: 24px; overflow: hidden; box-shadow: 0 36px 74px rgba(0,0,0,0.62); }
.collphone-mock img { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: reduce) { .collphone-screen .emailimg { animation: none !important; } }
html.tw-still .collphone-screen .emailimg { animation: none !important; }
@media (max-width: 820px) {
  .collstage { height: auto; display: flex; flex-direction: column; align-items: center; gap: 36px; }
  .colldevice { position: static; transform: none; }
  .cd-monitor { width: 100%; }
  .cd-phone { width: 62%; }
}
.collphone-right { right: 1%; bottom: 5%; transform: rotate(4deg); z-index: 5; }
/* Instagram carousel (paid social phone) */
.igpost { display: flex; flex-direction: column; height: 100%; background: #fff; }
.ig-head { display: flex; align-items: center; gap: 7px; padding: 8px 9px; }
.ig-av { width: 20px; height: 20px; border-radius: 999px; background: linear-gradient(135deg,#e1306c,#f77737); flex-shrink: 0; }
.ig-name { font-family: var(--font-sans); font-weight: 600; font-size: 11px; color: #111; }
.ig-media { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #c8102e; }
.ig-track { display: flex; width: 400%; height: 100%; animation: igcarousel 15s ease-in-out infinite; }
.ig-track img { width: 25%; height: 100%; object-fit: cover; display: block; }
@keyframes igcarousel { 0%,19% { transform: translateX(0); } 25%,44% { transform: translateX(-25%); } 50%,69% { transform: translateX(-50%); } 75%,94% { transform: translateX(-75%); } 100% { transform: translateX(0); } }
.ig-multi { position: absolute; top: 8px; right: 8px; width: 15px; height: 15px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)); }
.ig-actions { display: flex; align-items: center; gap: 12px; padding: 9px 10px 5px; }
.ig-dots { position: relative; height: 5px; width: 32px; margin: 3px auto 7px; }
.ig-dots i { position: absolute; top: 0; width: 5px; height: 5px; border-radius: 999px; background: #cfd3d8; }
.ig-dots i:nth-child(1) { left: 0; } .ig-dots i:nth-child(2) { left: 9px; } .ig-dots i:nth-child(3) { left: 18px; } .ig-dots i:nth-child(4) { left: 27px; }
.ig-dots i.on { background: #3897f0; animation: igdotmove 15s ease-in-out infinite; }
@keyframes igdotmove { 0%,19% { left: 0; } 25%,44% { left: 9px; } 50%,69% { left: 18px; } 75%,94% { left: 27px; } 100% { left: 0; } }
.ig-cap { padding: 0 10px 8px; font-family: var(--font-sans); font-size: 10.5px; line-height: 1.35; color: #111; }
@media (prefers-reduced-motion: reduce) { .ig-track, .ig-dots i.on { animation: none !important; } }
html.tw-still .ig-track, html.tw-still .ig-dots i.on { animation: none !important; }
.collphone-center { left: 50%; bottom: -2%; transform: translateX(-50%) rotate(-2deg); z-index: 5; }
.collmockframe { border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,0.16), 0 36px 74px rgba(0,0,0,0.62); }
.collmockframe img { width: 100%; height: auto; display: block; }
.collstage::before { content: ""; position: absolute; inset: -8% -4% -2%; background: radial-gradient(62% 55% at 50% 40%, rgba(255,255,255,0.06), transparent 72%); pointer-events: none; z-index: 0; }
@media (max-width: 760px) { .collphone-center { position: static; transform: none; width: 62%; } }
.collphone-left2 { left: 12%; bottom: 0; transform: rotate(3deg); z-index: 3; }
.collscreenfill { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transform: scale(1.08); }
.collmon-nav { position: absolute; top: 0; left: 0; width: 100%; height: auto; display: block; z-index: 2; box-shadow: 0 3px 12px rgba(0,0,0,0.14); }
.colldevice { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cd-monitor { right: 4%; top: 50%; transform: translateY(-50%); width: clamp(520px, 60vw, 780px); z-index: 1; }
.cd-phone { width: clamp(150px, 15vw, 196px); }
.cd-left-top { left: 1%; top: 2%; z-index: 3; }
.cd-left-bot { left: 14%; bottom: 2%; z-index: 4; }
.cd-right { right: 0; top: 50%; transform: translateY(calc(-50% + 60px)); z-index: 5; }
.colllabel { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
.collphone-row { display: flex; justify-content: center; align-items: flex-start; gap: clamp(20px,3vw,48px); flex-wrap: wrap; }
/* Upscaler before/after scrubber */
.upscale-compare { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 40px 90px rgba(0,0,0,0.5); }
.upscale-compare > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.uc-after { z-index: 2; clip-path: inset(0 50% 0 0); will-change: clip-path; }
@keyframes ucclip { 0%,100% { clip-path: inset(0 70% 0 0); } 50% { clip-path: inset(0 30% 0 0); } }
.uc-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; z-index: 3; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
@keyframes ucdiv { 0%,100% { left: 30%; } 50% { left: 70%; } }
.uc-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 34px; height: 34px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(0,0,0,0.45); }
.uc-cursor { position: absolute; top: calc(50% + 30px); left: 50%; transform: translate(-20%, 0); filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }
.uc-tag { position: absolute; top: 12px; z-index: 4; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.5); padding: 5px 9px; border-radius: 999px; }
.uc-tag-l { left: 12px; }
.uc-tag-r { right: 12px; }
@media (prefers-reduced-motion: reduce) { .uc-after { clip-path: inset(0 50% 0 0) !important; animation: none !important; } .uc-divider { left: 50% !important; animation: none !important; } }
html.tw-still .uc-after { clip-path: inset(0 50% 0 0) !important; animation: none !important; }
html.tw-still .uc-divider { left: 50% !important; animation: none !important; }
@media (max-width: 900px) { #cases-nf-upscale .splitgrid { grid-template-columns: 1fr !important; } }

@media (max-width: 900px) {
  .tdsplit { grid-template-columns: 1fr !important; }
  .workgrid { grid-template-columns: 1fr !important; }
  .benegrid, .vgates { grid-template-columns: 1fr !important; }
  .nfteaser { flex-direction: column; align-items: flex-start; }
  .casecards { grid-template-columns: 1fr !important; }
  .loopwrap { max-width: 380px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .whatgrid, .splitgrid, .toolsgrid, .trailgrid { grid-template-columns: 1fr !important; }
  .agenda { grid-template-columns: 1fr !important; }
  .advrow { grid-template-columns: 1fr !important; min-height: 0 !important; gap: 18px !important; }
  .advrow .advnum { order: 1 !important; }
  .advrow > div:last-child { order: 2 !important; }
  .casecol { grid-column: 1 / -1; }
  .fcard[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .tdloop { grid-template-columns: 1fr !important; }
  .tdstats { grid-template-columns: repeat(2, 1fr) !important; }
  .ttgrid { grid-template-columns: 1fr !important; gap: 30px !important; }
  .ttloop { flex-direction: column !important; }
  .ttloop .ttarrow { align-self: center !important; transform: rotate(90deg); }
  .bridge-row { grid-template-columns: 1fr !important; gap: 6px !important; }
  .bridge-head { display: none !important; }
  .bridge-row:not(.bridge-head) .bridge-rdy { margin-top: 4px; }
}
@media (max-width: 620px) {
  .roomgrid { grid-template-columns: 1fr !important; }
  .bignum { font-size: clamp(96px, 30vw, 160px); }
}

/* ============================================================
   MOBILE ROADBLOCK — desktop-only experience gate
   Hidden on wide screens; takes over on phones / very small screens.
   ============================================================ */
#mobile-roadblock { display: none; }

@media (max-width: 768px) {
  #mobile-roadblock {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    background:
      radial-gradient(120% 90% at 50% 0%, rgba(145,209,11,0.10), transparent 62%),
      var(--panel);
    color: #fff;
  }
  /* The deck itself is not built for small screens — hide it entirely. */
  #root, .topbar { display: none !important; }
  html, body { overflow: hidden; }

  .mrb-inner {
    max-width: 420px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .mrb-logo { height: 52px; width: auto; margin: 0 auto 34px; }
  .mrb-kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lime);
    margin: 0 0 18px;
  }
  .mrb-headline {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -0.02em;
    font-size: clamp(25px, 8vw, 34px);
    margin: 0;
    color: #fff;
    text-wrap: balance;
  }
  .mrb-sub {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,0.62);
    margin: 20px 0 0;
  }
}

/* Very small screens — tighten spacing so nothing clips */
@media (max-width: 380px) {
  #mobile-roadblock { padding: 28px 20px; }
  .mrb-logo { height: 44px; margin-bottom: 26px; }
  .mrb-headline { font-size: clamp(22px, 8.4vw, 28px); }
  .mrb-sub { font-size: 13px; }
}
