/* ============================================================
   VIVID VAULT — v2 "editorial maximal"
   Loud type, overlap, marquees, grain, cursor. Tokens unchanged.
   ============================================================ */

:root {
  --primary: #FF5629;
  --primary-hot: #ff6b42;
  --ink: #0A0A0A;
  --ink-soft: #5A544E;
  --charcoal: #211C17;
  --cream: #F4ECDD;
  --cream-lt: #FBF5EA;
  --line: #E3D9C6;
  --line-dark: rgba(244, 236, 221, 0.13);
  --cream-soft: rgba(244, 236, 221, 0.6);

  --font-display: 'Anton', 'Arial Black', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --pad: clamp(20px, 4vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* spacing scale (8px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  /* radius scale */
  --r-sm: 5px; --r-md: 8px; --r-lg: 10px;
  /* type scale (display) */
  --t-hero: clamp(4.4rem, 15.5vw, 15rem);
  --t-h1: clamp(3.2rem, 11vw, 10.5rem);
  --t-h2: clamp(2.6rem, 7vw, 6.2rem);
  --t-h3: clamp(2rem, 5.5vw, 4.6rem);
  --t-statement: clamp(2.4rem, 6.5vw, 5.8rem);
  --t-body: 1rem;
  --t-small: 0.95rem;
  --t-mono: 0.75rem;
  /* z-index scale */
  --z-content: 1; --z-tile-label: 3; --z-nav: 60; --z-progress: 100;
  --z-grain: 9998; --z-cursor: 9999;
  /* durations */
  --d-snap: 0.2s; --d-move: 0.35s; --d-reveal: 0.9s; --d-settle: 1s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--cream);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (pointer: fine) { body { cursor: none; } body a, body button, body input, body select, body textarea, body label { cursor: none; } }

::selection { background: var(--primary); color: var(--ink); }

/* ---------- grain overlay ---------- */
body::after {
  content: "";
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 9998;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-5%,-6%); }
  20% { transform: translate(-12%,4%); } 30% { transform: translate(6%,-14%); }
  40% { transform: translate(-4%,14%); } 50% { transform: translate(-12%,8%); }
  60% { transform: translate(12%,0%); } 70% { transform: translate(0%,10%); }
  80% { transform: translate(-14%,0%); } 90% { transform: translate(10%,6%); }
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; }
.cursor-dot { width: 8px; height: 8px; background: var(--primary); transform: translate(-50%, -50%); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(255, 86, 41, 0.7);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}
.cursor-ring.hovering { width: 64px; height: 64px; background: rgba(255,86,41,0.12); border-color: var(--primary); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--primary); width: 0; z-index: 100; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: 0.005em;
}
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.accent { color: var(--primary); }
.muted { color: var(--cream-soft); }
.stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cream);
}
.stroke-orange { color: transparent; -webkit-text-stroke: 1.5px var(--primary); }
.light .stroke { -webkit-text-stroke-color: var(--ink); }
p { max-width: none; } /* system rule: body text fills its container; only headings break early */

/* line reveal (weighty) */
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; transform: translateY(112%); transition: transform 1s var(--ease); }
.in .line-mask > span, .line-mask.in > span { transform: none; }
.line-mask:nth-child(2) > span { transition-delay: 0.08s; }
.line-mask:nth-child(3) > span { transition-delay: 0.16s; }
.line-mask:nth-child(4) > span { transition-delay: 0.24s; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .line-mask > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  body::after { animation: none; }
  .marquee-track { animation: none !important; }
}

/* ---------- nav ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
  mix-blend-mode: normal;
  transition: background 0.3s ease, padding 0.3s ease;
}
header.nav.scrolled { background: rgba(10,10,10,0.88); backdrop-filter: blur(14px); padding: 12px var(--pad); border-bottom: 1px solid var(--line-dark); }
.nav-logo { font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; color: var(--cream); text-decoration: none; line-height: 0.88; letter-spacing: 0.02em; }
.nav-logo span { color: var(--primary); }
nav.links { display: flex; gap: 30px; align-items: center; }
nav.links a { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-soft); text-decoration: none; position: relative; padding: 4px 0; transition: color 0.2s; }
nav.links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--primary); transition: width 0.3s var(--ease); }
nav.links a:hover { color: var(--cream); }
nav.links a:hover::after, nav.links a[aria-current="page"]::after { width: 100%; }
nav.links a[aria-current="page"] { color: var(--primary); }
nav.links a.nav-cta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; background: var(--primary); color: var(--ink); padding: 9px 18px; border-radius: 5px; text-decoration: none; display: inline-block; }
nav.links a.nav-cta::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); font-size: 1.8rem; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  nav.links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: rgba(10,10,10,0.97); padding: 10px 0 22px; border-bottom: 1px solid var(--line-dark); }
  nav.links.open { display: flex; }
  nav.links a { padding: 14px var(--pad); font-size: 0.9rem; }
  nav.links a.nav-cta { margin: 10px var(--pad) 0; align-self: flex-start; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; position: relative; }
.marquee-track { display: inline-flex; align-items: center; gap: 3rem; padding-right: 3rem; animation: mq 22s linear infinite; will-change: transform; }
@keyframes mq { to { transform: translateX(-50%); } }
.marquee .display { font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.1; }
.marquee-band { background: var(--primary); color: var(--ink); padding: 14px 0; transform: rotate(-1.6deg); margin: 0 -2vw; width: 104vw; }
.marquee-band .cube-glyph { color: var(--ink); }
.marquee-ghost { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 18px 0; }
.marquee-ghost .display { color: transparent; -webkit-text-stroke: 1px rgba(244,236,221,0.35); }
.cube-glyph { display: inline-block; width: 0.7em; height: 0.7em; background: currentColor; transform: rotate(45deg); flex: none; }

/* ---------- layout ---------- */
.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { position: relative; padding: clamp(80px, 12vw, 170px) 0; }
.light { background: var(--cream); color: var(--ink); }
.light .muted { color: var(--ink-soft); }
.light ::selection { background: var(--ink); color: var(--cream); }

/* ghost numerals behind sections */
.ghost {
  position: absolute;
  top: -0.05em;
  right: -0.06em;
  font-family: var(--font-display);
  font-size: clamp(8rem, 26vw, 24rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 236, 221, 0.12);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.light .ghost { -webkit-text-stroke-color: rgba(10, 10, 10, 0.09); }
section > .wrap { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; padding: 0; display: grid; align-items: end; overflow: visible; }
#cube-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 130px var(--pad) 120px clamp(36px, 4.5vw, 90px); pointer-events: none; }
.hero-inner a { pointer-events: auto; }
.hero-title { font-size: clamp(3rem, 12.5vw, 12rem); position: relative; }
.hero-title .row2 { display: flex; align-items: baseline; gap: 0.3em; flex-wrap: nowrap; white-space: nowrap; }
.hero-kicker { margin-bottom: 22px; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.hero-kicker::before { content: ""; width: 42px; height: 2px; background: var(--primary); }
.hero-tag { font-size: clamp(0.95rem, 1.4vw, 1.15rem); color: var(--cream-soft); max-width: 44ch; margin-top: 30px; }
.hero-tag strong { color: var(--cream); font-weight: 600; }
.hero-cta-row { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero-marquee { position: relative; z-index: 3; margin-top: -8px; }
.hero-meta {
  position: absolute; right: var(--pad); bottom: 130px; z-index: 2;
  display: none; text-align: right; color: var(--cream-soft);
}
@media (min-width: 1000px) { .hero-meta { display: block; } }

/* rotating sticker */
.sticker { position: absolute; z-index: 3; width: 130px; height: 130px; pointer-events: none; }
.sticker svg { width: 100%; height: 100%; animation: spin 16s linear infinite; }
.sticker text { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase; fill: var(--cream-soft); }
.sticker .core { fill: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .sticker { right: calc(var(--pad) + 10px); top: 130px; }
@media (max-width: 780px) { .hero .sticker { display: none; } }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; padding: 17px 30px; border-radius: 5px; display: inline-block; position: relative; overflow: hidden;
  transition: transform 0.2s var(--ease-snap), color 0.25s ease, border-color 0.2s;
  will-change: transform;
}
.btn-primary { background: var(--primary); color: var(--ink); }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform 0.3s var(--ease); z-index: 0; }
.btn-primary:hover::before { transform: none; }
.btn-primary:hover { color: var(--primary); }
.btn-primary > span { position: relative; z-index: 1; }
.btn-ghost { border: 1px solid rgba(244,236,221,0.3); color: var(--cream); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.light .btn-ghost { border-color: rgba(10,10,10,0.3); color: var(--ink); }
.light .btn-ghost:hover { border-color: var(--primary); color: var(--ink); background: rgba(255,86,41,0.08); }
.on-orange .btn-ghost { border-color: rgba(10,10,10,0.4); color: var(--ink); }
.on-orange .btn-ghost:hover { background: var(--ink); color: var(--primary); border-color: var(--ink); }
.btn .arrow { display: inline-block; transition: transform 0.25s var(--ease-snap); margin-left: 8px; }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- section headers ---------- */
.sec-tag { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.sec-tag .num { color: var(--primary); font-weight: 700; }
.sec-tag::after { content: ""; height: 1px; flex: 1; background: var(--line-dark); }
.light .sec-tag::after { background: var(--line); }
.sec-head { margin-bottom: clamp(34px, 5vw, 70px); }
.sec-head h2 { font-size: clamp(2.6rem, 7vw, 6.2rem); }
.sec-head p { margin-top: 22px; }

/* ---------- statement ---------- */
.statement { font-family: var(--font-display); text-transform: uppercase; line-height: 0.92; font-size: clamp(2.4rem, 6.5vw, 5.8rem); max-width: none; }
.statement .indent { display: inline-block; width: 2.2em; }

/* ---------- editorial rows (replaces cards) ---------- */
.ed-row {
  display: grid; grid-template-columns: 90px 1fr 1.2fr; gap: clamp(16px, 3vw, 48px);
  padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line-dark); align-items: start;
  transition: background 0.3s ease, padding-left 0.3s var(--ease);
  position: relative;
}
.ed-row:last-child { border-bottom: 1px solid var(--line-dark); }
.light .ed-row, .light .ed-row:last-child { border-color: var(--line); }
.ed-row .idx { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--primary); line-height: 1; }
.ed-row h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 3.2vw, 2.8rem); line-height: 0.95; }
.ed-row:hover { padding-left: 14px; }
.ed-row p { font-size: 0.98rem; }
.ed-row ul.plain { margin-top: 14px; }
@media (max-width: 720px) { .ed-row { grid-template-columns: 60px 1fr; } .ed-row > p, .ed-row > div:last-child { grid-column: 1 / -1; } }

/* ---------- work tiles v2 ---------- */
.work-strip { display: grid; gap: clamp(40px, 6vw, 90px); }
.work-item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; text-decoration: none; color: inherit; position: relative; }
.work-item:nth-child(even) .work-visual { order: 2; }
@media (max-width: 860px) { .work-item { grid-template-columns: 1fr; } .work-item:nth-child(even) .work-visual { order: 0; } }
.work-visual {
  aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; position: relative;
  display: grid; place-items: center;
}
.work-visual .inner { position: absolute; inset: 0; display: grid; place-items: center; transition: transform 0.7s var(--ease); }
.work-item:hover .work-visual .inner { transform: scale(1.06); }
.work-visual .ph { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2rem, 4.5vw, 3.6rem); letter-spacing: 0.01em; }
.work-info .idx {
  font-family: var(--font-display); font-size: clamp(3.4rem, 8vw, 7rem); line-height: 0.9;
  color: transparent; -webkit-text-stroke: 1.5px var(--primary); display: block; margin-bottom: 10px;
}
.work-info h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 0.94; }
.work-info .mono { display: block; margin: 14px 0 12px; color: var(--primary); }
.work-info p { font-size: 0.98rem; }
.work-link { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 18px; display: inline-block; color: inherit; }
.work-link .arrow { display: inline-block; transition: transform 0.25s var(--ease-snap); }
.work-item:hover .work-link .arrow { transform: translateX(6px); }

.badge { display: inline-block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 12px; border-radius: 3px; vertical-align: middle; }
.badge-live { background: rgba(47,163,107,0.16); color: #4CC98A; }
.light .badge-live { background: rgba(47,163,107,0.15); color: #16663f; }
.badge-concept { background: rgba(255,86,41,0.16); color: var(--primary); }
.light .badge-concept { background: rgba(255,86,41,0.13); color: #b03310; }

/* ---------- big list (experience) ---------- */
.exp-row { display: grid; grid-template-columns: 1fr; padding: 30px 0; border-top: 1px solid var(--line-dark); transition: padding-left 0.3s var(--ease); }
.exp-row:hover { padding-left: 12px; }
.exp-row:last-child { border-bottom: 1px solid var(--line-dark); }
.light .exp-row, .light .exp-row:last-child { border-color: var(--line); }
.exp-row h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.9rem, 4.5vw, 3.6rem); line-height: 0.92; }
.exp-row p { font-size: 0.98rem; margin-top: 10px; }
@media (max-width: 640px) { .exp-row { padding: 24px 0; } }

/* ---------- process ---------- */
.process-step { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 30px 0; border-top: 1px solid var(--line-dark); }
.process-step:last-child { border-bottom: 1px solid var(--line-dark); }
.light .process-step, .light .process-step:last-child { border-color: var(--line); }
.process-step .num { font-family: var(--font-display); font-size: 2.6rem; line-height: 0.9; color: transparent; -webkit-text-stroke: 1.2px var(--primary); }
.process-step h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; margin-bottom: 8px; }
.process-step p { font-size: 0.96rem; }

/* ---------- orange band ---------- */
.cta-band { background: var(--primary); color: var(--ink); overflow: hidden; }
.cta-band .statement { color: var(--ink); }
.cta-band .mono { color: rgba(10,10,10,0.6); }
.cta-band ::selection { background: var(--ink); color: var(--primary); }
.cta-band .ghost { -webkit-text-stroke-color: rgba(10,10,10,0.14); }

/* ---------- forms ---------- */
form.contact { display: grid; gap: 0; }
.field { border-top: 1px solid var(--line); padding: 22px 0; }
.field:last-of-type { border-bottom: 1px solid var(--line); }
.field label { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1.15rem;
  border: 0; background: transparent; color: var(--ink); padding: 4px 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.field:focus-within label { color: var(--primary); }
.field textarea { min-height: 120px; resize: vertical; }
form.contact button {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--primary); color: var(--ink); border: 0; border-radius: 5px; padding: 18px 34px;
  justify-self: start; margin-top: 28px; transition: transform 0.2s var(--ease-snap);
}
form.contact button:hover { transform: translateY(-2px); }
form.contact button:active { transform: scale(0.97); }

/* ---------- footer ---------- */
footer { padding: clamp(60px, 8vw, 110px) 0 0; border-top: 1px solid var(--line-dark); overflow: hidden; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 0 var(--pad); max-width: 1440px; margin: 0 auto 60px; }
footer nav { display: flex; gap: 26px; flex-wrap: wrap; }
footer nav a { color: var(--cream-soft); text-decoration: none; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
footer nav a:hover { color: var(--primary); }
.foot-word {
  font-family: var(--font-display); text-transform: uppercase; text-align: center;
  font-size: clamp(3.6rem, 15vw, 15rem); line-height: 0.9; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(244,236,221,0.22);
  user-select: none; padding: 10px 0 26px;
  transition: -webkit-text-stroke-color 0.4s ease;
}
.foot-word:hover { -webkit-text-stroke-color: var(--primary); }
.foot-line { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px var(--pad) 22px; color: var(--cream-soft); font-size: 0.78rem; max-width: 1440px; margin: 0 auto; }

/* ---------- page hero (inner) ---------- */
.page-hero { padding: clamp(150px, 22vh, 240px) 0 clamp(30px, 5vw, 70px); }
.page-hero h1 { font-size: clamp(3.2rem, 11vw, 10.5rem); }
.page-hero p { margin-top: 26px; }

/* ---------- misc ---------- */
ul.plain { list-style: none; }
ul.plain li { padding: 7px 0; font-size: 0.95rem; display: flex; gap: 10px; align-items: baseline; }
.tick { color: var(--primary); flex: none; font-weight: 700; }
hr.rule { border: 0; border-top: 1px solid var(--line-dark); margin: 44px 0; }
.light hr.rule { border-color: var(--line); }
.parallax-slow { will-change: transform; }

/* ============ v2.1 — visual-first tiles & scenes ============ */
.scene { display: block; width: 100%; height: 100%; }

/* full-bleed work tile with live scene */
.tile {
  position: relative; display: block; border-radius: 10px; overflow: hidden;
  text-decoration: none; color: var(--cream);
  aspect-ratio: 16 / 9; min-height: 320px;
  transition: transform 0.5s var(--ease);
}
.tile:hover { transform: scale(0.988); }
.tile .scene { position: absolute; inset: 0; transition: transform 0.9s var(--ease); }
.tile:hover .scene { transform: scale(1.05); }
.tile-label {
  position: absolute; left: clamp(18px, 3vw, 40px); bottom: clamp(16px, 3vw, 36px); z-index: 2;
  display: flex; flex-direction: column; gap: 6px; pointer-events: none;
}
.tile-label h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 3.2rem); line-height: 0.92; }
.tile-label .mono { opacity: 0.85; }
.tile-corner { position: absolute; top: clamp(16px, 3vw, 32px); right: clamp(16px, 3vw, 32px); z-index: 2; }
.tile-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .tile-grid .tile-wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
}
/* mobile: min-height transfers into min-width via aspect-ratio and blows out the grid;
   kill it and let a squarer ratio provide the height instead */
@media (max-width: 767px) {
  .tile { min-height: 0; aspect-ratio: 4 / 3; }
}
.tile-ink { color: var(--ink); }

/* service row, condensed: title + one line + scene chip */
.svc-row {
  display: grid; grid-template-columns: 1fr minmax(180px, 300px); gap: clamp(18px, 4vw, 60px);
  align-items: center; padding: clamp(26px, 4vw, 46px) 0; border-top: 1px solid var(--line-dark);
  text-decoration: none; color: inherit; transition: padding-left 0.35s var(--ease);
}
.svc-row:last-of-type { border-bottom: 1px solid var(--line-dark); }
.light .svc-row, .light .svc-row:last-of-type { border-color: var(--line); }
.svc-row:hover { padding-left: 16px; }
.svc-row h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 5.5vw, 4.6rem); line-height: 0.9; }
.svc-row h3 .idx { color: var(--primary); font-size: 0.4em; vertical-align: super; margin-right: 10px; }
.svc-row p { margin-top: 10px; font-size: 0.95rem; }
.svc-chip { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; position: relative; }
.svc-chip .scene { position: absolute; inset: 0; }
@media (max-width: 700px) { .svc-row { grid-template-columns: 1fr; } .svc-chip { max-width: 340px; } }

/* stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-strip .stat { border: 1px solid var(--line-dark); border-radius: 8px; padding: 22px; }
.light .stat-strip .stat { border-color: var(--line); }
.stat .big { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 0.9; color: var(--primary); display: block; margin-bottom: 6px; }
.stat .mono { opacity: 0.7; }

/* ============ v3.1 — real media tiles ============ */
.tile .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tile:hover .media { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.12) 42%, transparent 65%); pointer-events: none; }
.tile.no-scrim::after { display: none; }
.tile-label, .tile-corner { z-index: 3; }
.svc-chip .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nav-cube { width: 40px; height: 40px; object-fit: contain; transition: transform 0.5s var(--ease-snap); }
.nav-logo:hover .nav-cube { transform: rotate(-12deg) scale(1.08); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-word { font-family: var(--font-display); text-transform: uppercase; line-height: 0.88; letter-spacing: 0.02em; }
.nav-word span { color: var(--primary); }

/* ============ v3.3 — footer columns + UI mock components ============ */
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col .mono.head { color: var(--primary); margin-bottom: 4px; }
.foot-grid { align-items: flex-start; }

/* --- shared mini UI mock language (tiles & chips) --- */
.uim { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.uim-card { background: var(--cream); color: var(--ink); border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,0.35); width: min(78%, 340px); overflow: hidden; font-size: 11px; }
.uim-bar { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--cream-lt); }
.uim-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.uim-bar i:first-child { background: var(--primary); }
.uim-pad { padding: 12px 14px; }
.uim-h { font-family: var(--font-display); text-transform: uppercase; font-size: 1rem; line-height: 1; }
.uim-mono { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.uim-btn { display: inline-block; background: var(--primary); color: var(--ink); font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; margin-top: 10px; }
.uim-line { height: 6px; border-radius: 3px; background: var(--line); margin-top: 8px; }
.uim-line.w60 { width: 60%; } .uim-line.w80 { width: 80%; } .uim-line.w40 { width: 40%; }
.uim-fill { background: var(--primary); height: 100%; border-radius: 3px; animation: uimfill 2.6s var(--ease) infinite alternate; }
@keyframes uimfill { from { width: 24%; } to { width: 82%; } }
.uim-tilt { transform: rotate(-3deg); transition: transform 0.5s var(--ease); }
.tile:hover .uim-tilt, .svc-chip:hover .uim-tilt { transform: rotate(0deg) scale(1.03); }
.uim-chiprow { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.uim-chip { font-family: var(--font-mono); font-size: 0.48rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; color: var(--ink-soft); }
.uim-chip.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
/* pipeline mock nodes */
.uim-flow { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.uim-node { width: 34px; height: 34px; border-radius: 7px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.5rem; background: var(--cream-lt); }
.uim-node.hot { background: var(--primary); border-color: var(--primary); color: var(--ink); }
.uim-wire { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.uim-wire::after { content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: var(--primary); animation: wire 1.8s linear infinite; }
@keyframes wire { to { left: 105%; } }
/* kpi pulse for dashboards */
.uim-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.uim-kpi { border: 1px solid var(--line); border-radius: 6px; padding: 8px; background: var(--cream-lt); }
.uim-kpi b { font-family: var(--font-display); font-weight: 400; font-size: 0.95rem; display: block; }
.uim-kpi.hot b { color: var(--primary); }
/* browser frame for site mockups */
.uim-browser { width: min(86%, 460px); }
.uim-shot { position: relative; aspect-ratio: 16/10; background-size: cover; background-position: center; display: grid; place-items: center; text-align: center; }
.uim-shot::after { content: ""; position: absolute; inset: 0; background: rgba(20,12,10,0.45); }
.uim-shot > * { position: relative; z-index: 1; }
.uim-serif { font-family: Georgia, 'Times New Roman', serif; color: #fff; font-size: clamp(1rem, 2.4vw, 1.6rem); letter-spacing: 0.06em; }
.uim-shot .uim-mono { color: rgba(255,255,255,0.85); }
.uim-shot img { height: 34px; width: auto; }

/* ============ v3.4 — service chips as full browser/terminal mocks ============ */
.svc-chip { aspect-ratio: 4 / 3; }
.uim-full { width: 88%; }
.uim-hero { background: var(--charcoal); color: var(--cream); padding: 16px 14px 18px; text-align: center; }
.uim-hero .uim-h { color: var(--cream); font-size: 1.15rem; }
.uim-hero .uim-mono { color: var(--cream-soft); }
.uim-statrow { display: flex; justify-content: center; gap: 14px; margin-top: 10px; }
.uim-stat b { font-family: var(--font-display); font-weight: 400; font-size: 0.9rem; color: var(--primary); display: block; }
.uim-stat { font-family: var(--font-mono); font-size: 0.45rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-soft); }
.uim-dash { display: grid; grid-template-columns: 64px 1fr; }
.uim-dash .side { border-right: 1px solid var(--line); padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.uim-dash .side i { display: block; height: 6px; border-radius: 3px; background: var(--line); }
.uim-dash .side i.on { background: var(--primary); }
.uim-bars { display: flex; align-items: flex-end; gap: 5px; height: 52px; margin-top: 10px; }
.uim-bars i { flex: 1; background: var(--line); border-radius: 2px 2px 0 0; animation: rise2 1.4s var(--ease) both; transform-origin: bottom; }
.uim-bars i.hot { background: var(--primary); }
@keyframes rise2 { from { transform: scaleY(0.15); } }
.uim-term { background: var(--ink); color: var(--cream); font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.04em; padding: 12px 14px; min-height: 120px; }
.uim-term p { margin: 0 0 7px; opacity: 0; animation: termline 6s linear infinite; white-space: nowrap; overflow: hidden; }
.uim-term p:nth-child(1) { animation-delay: 0s; }
.uim-term p:nth-child(2) { animation-delay: 1s; }
.uim-term p:nth-child(3) { animation-delay: 2s; }
.uim-term p:nth-child(4) { animation-delay: 3s; }
.uim-term p:nth-child(5) { animation-delay: 4s; }
.uim-term .ok { color: #4CC98A; }
.uim-term .hot { color: var(--primary); }
@keyframes termline { 0% { opacity: 0; } 6% { opacity: 1; } 88% { opacity: 1; } 96% { opacity: 0.25; } 100% { opacity: 0.25; } }


/* ============ v3.5 — centred section titles (homepage hero excluded) ============ */
.sec-head { text-align: center; }
.sec-head p { margin-left: auto; margin-right: auto; }
.page-hero .wrap { text-align: center; }
.cta-band .wrap { text-align: center; }
.cta-band .hero-cta-row, .page-hero .hero-cta-row { justify-content: center; }
/* ghost numerals retired from the system */
.ghost { display: none; }


/* ============================================================
   v4.0 — responsive layer
   Breakpoints from current device data:
   1280-1536 laptop · 1024-1194 tablet landscape · 768-834 tablet
   portrait · 360-430 mobile · 320 floor (SE).
   ============================================================ */

/* --- tablet landscape / small laptop (<=1194px) --- */
@media (max-width: 1194px) {
  .hero-inner { padding-top: 116px; }
}

/* --- tablet portrait (<=834px): hamburger nav already active at 820 --- */
@media (max-width: 834px) {
  .ed-row:hover, .exp-row:hover { padding-left: 0; }   /* hover nudges are pointer-only */
  .svc-row { grid-template-columns: 1fr minmax(160px, 240px); }
}

/* --- large phones (<=700px) --- */
@media (max-width: 700px) {
  .hero { min-height: 92svh; }
  .hero-inner { padding: 104px var(--pad) 72px; }      /* uniform gutters, no wide left pad */
  .hero-title { font-size: clamp(2.5rem, 12vw, 5rem); }
  .hero-cta-row { gap: 12px; }
  .btn { padding: 15px 22px; font-size: 0.76rem; }
  .marquee .display { font-size: clamp(1.2rem, 4.5vw, 1.8rem); }
  .marquee-track { gap: 1.6rem; padding-right: 1.6rem; }
  .tile { min-height: 0; }
  .uim-card { width: 86%; }
  .uim-kpi b { font-size: 0.85rem; }
  .statement { font-size: clamp(1.9rem, 8vw, 3rem); }
  .sec-head h2 { font-size: clamp(2.1rem, 9vw, 3.6rem); }
  .page-hero { padding-top: clamp(120px, 18vh, 170px); }
  .page-hero h1 { font-size: clamp(2.7rem, 12vw, 5rem); }
  .foot-word { font-size: clamp(2.9rem, 14.5vw, 5rem); }
  section { padding: clamp(56px, 11vw, 90px) 0; }
  .field input, .field select, .field textarea { font-size: 1.05rem; }
}

/* --- standard phones (<=480px) --- */
@media (max-width: 480px) {
  .svc-row { grid-template-columns: 1fr; }
  .svc-chip { max-width: 100%; }
  .svc-row h3 { font-size: clamp(1.7rem, 8.5vw, 2.4rem); }
  .ed-row { grid-template-columns: 44px 1fr; gap: 12px; }
  .ed-row > p { grid-column: 1 / -1; }
  .ed-row h3 { font-size: clamp(1.3rem, 6.5vw, 1.8rem); }
  .process-step { grid-template-columns: 56px 1fr; }
  .stat-strip { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .work-visual .ph { font-size: 1.6rem; }
  .tile-label h3 { font-size: 1.35rem; }
  .foot-grid { gap: 26px; }
  .cursor-dot, .cursor-ring { display: none; }         /* belt and braces on hybrid devices */
}

/* --- small phones / SE floor (<=380px) --- */
@media (max-width: 380px) {
  .hero-title { font-size: clamp(2.1rem, 12.5vw, 2.7rem); }
  .hero-tag { font-size: 0.92rem; }
  .uim-chiprow { gap: 4px; }
  .uim-chip { padding: 3px 6px; }
  .uim-kpis { gap: 4px; }
  .nav-word { display: none; }                          /* cube alone carries the mark */
}

/* --- touch targets: mobile menu links and CTA meet 44px minimum --- */
@media (max-width: 820px) {
  nav.links a { min-height: 44px; display: flex; align-items: center; }
  nav.links a.nav-cta { padding: 12px 28px; justify-content: center; }
}

/* --- coarse pointers: kill hover-dependent motion, keep taps snappy --- */
@media (pointer: coarse) {
  .tile:hover, .tile:hover .media, .tile:hover .scene { transform: none; }
  .uim-tilt { transform: rotate(-2deg); }
}

/* --- very wide screens (>=1920px): keep the stage composed --- */
@media (min-width: 1920px) {
  .hero-inner { padding-left: clamp(90px, 8vw, 160px); }
  .foot-word { font-size: 15rem; }
}

/* light FdM mock: black logo mark on cream, no photo/scrim */
.uim-shot.shot-light { background: var(--cream-lt); }
.uim-shot.shot-light::after { display: none; }
.uim-shot.shot-light img { height: clamp(96px, 46%, 190px); width: auto; }

/* FdM card: the logo IS the card */
.fdm-card { position: absolute; inset: 0; background: var(--cream-lt); display: flex; align-items: center; justify-content: center; }
.fdm-card img { height: 76%; max-width: 84%; width: auto; object-fit: contain; }

/* ---- animated service mocks: report readiness + doc intake ---- */
.uim-rrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 0.62rem; font-weight: 600; }
.uim-rrow:last-of-type { border-bottom: 0; }
.uim-rrow b { font-weight: 700; }
.uim-st { font-family: var(--font-mono); font-size: 0.46rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 3px 7px; color: var(--ink-soft); white-space: nowrap; }
.uim-st.ok { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.uim-st.hot { background: var(--primary); color: var(--ink); border-color: var(--primary); }
.uim-doc { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; padding: 10px 10px 4px; background: var(--cream-lt); margin-bottom: 8px; }
.uim-doc .uim-line { margin-top: 0; margin-bottom: 6px; }
.uim-doc::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 26%; background: linear-gradient(to bottom, transparent, rgba(255,86,41,0.22), transparent); animation: uimscan 7s linear infinite; }
@keyframes uimscan { 0% { top: -30%; } 42% { top: 105%; } 100% { top: 105%; } }
.uim-anim { opacity: 0; animation: uimstep 7s var(--ease) infinite; }
.uim-anim.ad1 { animation-delay: 0.4s; } .uim-anim.ad2 { animation-delay: 1s; }
.uim-anim.ad3 { animation-delay: 1.6s; } .uim-anim.ad4 { animation-delay: 2.4s; }
@keyframes uimstep { 0%, 5% { opacity: 0; transform: translateY(4px); } 13%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .uim-anim { animation: none; opacity: 1; } .uim-doc::after { animation: none; } }

/* flat mock: fills the chip edge to edge (like the FdM card) */
.uim-flat { position: absolute; inset: 0; width: 100%; max-width: none; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
.uim-flat .uim-pad { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* ---- v3.4 service mocks rebuilt on the real motion logic ---- */
/* report card: chart grows, approval pops, reviewers slide in */
.vv-rc { }
.rc-head { display: flex; align-items: center; gap: 7px; }
.rc-logo { width: 20px; height: 20px; border-radius: 5px; background: var(--ink); color: var(--cream); display: grid; place-items: center; font: 700 7px var(--font-mono); letter-spacing: 0.02em; flex: none; }
.rc-chip { font-family: var(--font-mono); font-size: 0.4rem; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(10,10,10,0.07); border-radius: 999px; padding: 3px 7px; color: var(--ink-soft); white-space: nowrap; }
.rc-title { font-weight: 700; font-size: 0.72rem; margin-top: 7px; }
.rc-chart { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; align-items: end; height: 62px; margin-top: 8px; background: var(--cream-lt); border: 1px solid var(--line); border-radius: 6px; padding: 7px; }
.rc-col { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; transform-origin: bottom; animation: vvgrow 8s var(--ease) infinite; }
.rc-col i { display: block; }
.rc-col i:first-child { background: var(--primary); border-radius: 2px 2px 0 0; }
.rc-col i:nth-child(2) { background: var(--charcoal); }
.rc-col i:last-child { background: var(--line); }
@keyframes vvgrow { 0%, 6% { transform: scaleY(0); } 26%, 90% { transform: scaleY(1); } 98%, 100% { transform: scaleY(0); } }
.rc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; }
.vvpop { animation: vvpop 8s var(--ease) infinite; opacity: 0; }
@keyframes vvpop { 0%, 46% { opacity: 0; transform: scale(0.6); } 54% { opacity: 1; transform: scale(1.1); } 58%, 90% { opacity: 1; transform: scale(1); } 98%, 100% { opacity: 0; } }
.rc-avs { display: flex; align-items: center; animation: vvslide 8s var(--ease) infinite; opacity: 0; }
.rc-av { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--cream); display: grid; place-items: center; font: 700 6px var(--font-mono); color: var(--cream); font-style: normal; }
.rc-av + .rc-av { margin-left: -5px; }
@keyframes vvslide { 0%, 58% { opacity: 0; transform: translateX(-6px); } 68%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
/* extraction replay: doc left, highlight walks the fields, values type in right */
.vv-ex { display: flex; gap: 8px; flex: 1; min-height: 0; }
.ex-doc { flex: 0 0 44%; position: relative; background: var(--cream-lt); border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; overflow: hidden; min-height: 82px; align-self: stretch; }
.ex-hi { position: absolute; border: 1.5px solid var(--primary); background: rgba(255,86,41,0.14); border-radius: 3px; animation: vvhi 8s var(--ease) infinite; }
@keyframes vvhi {
  0%, 10%  { top: 5px;  left: 5px; width: 72%; height: 12px; opacity: 1; }
  24%, 34% { top: 18px; left: 5px; width: 46%; height: 10px; opacity: 1; }
  44%, 54% { top: 32px; left: 5px; width: 60%; height: 9px;  opacity: 1; }
  62%, 74% { top: 54px; left: 5px; width: 88%; height: 12px; opacity: 1; }
  86%, 100% { top: 54px; left: 5px; width: 88%; height: 12px; opacity: 0; }
}
.ex-fields { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ex-fld { padding: 4px 0; border-bottom: 1px solid var(--line); }
.ex-fld:last-child { border-bottom: 0; }
.ex-fld .k { font-family: var(--font-mono); font-size: 0.38rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.ex-fld .v { font-weight: 700; font-size: 0.6rem; margin-top: 2px; white-space: nowrap; animation-duration: 8s; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes vvt1 { 0%, 6%  { opacity: 0.25; clip-path: inset(0 100% 0 0); } 12% { opacity: 1; } 18% { clip-path: inset(0 0 0 0); } 92% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0.25; clip-path: inset(0 100% 0 0); } }
@keyframes vvt2 { 0%, 26% { opacity: 0.25; clip-path: inset(0 100% 0 0); } 32% { opacity: 1; } 38% { clip-path: inset(0 0 0 0); } 92% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0.25; clip-path: inset(0 100% 0 0); } }
@keyframes vvt3 { 0%, 46% { opacity: 0.25; clip-path: inset(0 100% 0 0); } 52% { opacity: 1; } 58% { clip-path: inset(0 0 0 0); } 92% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0.25; clip-path: inset(0 100% 0 0); } }
@keyframes vvt4 { 0%, 64% { opacity: 0.25; clip-path: inset(0 100% 0 0); } 70% { opacity: 1; } 76% { clip-path: inset(0 0 0 0); } 92% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0.25; clip-path: inset(0 100% 0 0); } }
.ex-read { display: flex; align-items: center; gap: 7px; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); }
.ex-bar { flex: 1; height: 3px; background: var(--line); border-radius: 99px; overflow: hidden; }
.ex-bar i { display: block; height: 100%; background: var(--primary); animation: vvread 8s linear infinite; }
@keyframes vvread { 0% { width: 0; } 78%, 100% { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .rc-col, .vvpop, .rc-avs, .ex-hi, .ex-fld .v, .ex-bar i { animation: none; opacity: 1; transform: none; clip-path: none; }
  .ex-bar i { width: 100%; }
}
