/* ============================================================
   CULT VARN - Editorial film-studio site
   ============================================================ */

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

:root {
  --ink:    #15120e;
  --ink-2:  #1d1914;
  --ink-3:  #292319;
  --paper:  #f1ece1;
  --paper-2:#e6dfcf;
  --accent: #dd4d2c;

  /* contextual tokens - overridden per section */
  --bg:   var(--ink);
  --tx:   #ece6d9;
  --mut:  #968d7c;
  --ln:   rgba(236,230,217,.15);

  --maxw: 1340px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --snap: cubic-bezier(.16,1,.3,1);

  --f-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --f-body:    "Inter", "Segoe UI", sans-serif;
  --f-mono:    "Space Mono", "Courier New", monospace;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--tx);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; }

/* ---------- Section context ---------- */
.section { padding: clamp(70px,11vw,140px) 0; position: relative; }
.section--ink   { --bg:var(--ink);    --tx:#ece6d9; --mut:#968d7c; --ln:rgba(236,230,217,.15); background:var(--ink);   color:var(--tx); }
.section--ink2  { --bg:var(--ink-2);  --tx:#ece6d9; --mut:#968d7c; --ln:rgba(236,230,217,.15); background:var(--ink-2); color:var(--tx); }
.section--paper { --bg:var(--paper);  --tx:#1a160f; --mut:#6c6354; --ln:rgba(26,22,15,.16);    background:var(--paper); color:var(--tx); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- Type helpers ---------- */
.label {
  font-family: var(--f-mono); font-size: .73rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  display: inline-flex; align-items: baseline; gap: 10px;
}
.label .ix { color: var(--accent); }
.label--mut { color: var(--mut); }

.display-xl { font-size: clamp(2.9rem, 8.6vw, 8.4rem); line-height: 1.16; }
.display-l  { font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 1.14; }
.display-m  { font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.18; }

.lede { font-size: clamp(1.1rem,1.7vw,1.42rem); line-height: 1.5; }
.muted { color: var(--mut); }
.accent-tx { color: var(--accent); }
.mark { color: var(--accent); }

/* ---------- Links & buttons ---------- */
.arrow-link {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--f-mono); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid currentColor;
  transition: gap .25s var(--ease), color .2s;
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.arrow-link:hover { color: var(--accent); }
.arrow-link:hover svg { transform: translate(3px,-3px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 19px 32px; border-radius: 2px; cursor: pointer;
  border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--snap), box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255,255,255,.24) 48%, transparent 62% 100%);
  transform: translateX(-130%);
  transition: transform .65s var(--snap);
}
.btn:hover::before { transform: translateX(130%); }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 15px; height: 15px; }
.btn-fill { background: var(--tx); color: var(--bg); }
.btn-fill:hover { background: var(--accent); color: #fff; }
.btn-line { border-color: var(--ln); color: var(--tx); }
.btn-line:hover { border-color: var(--tx); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 18px 50px -28px rgba(221,77,44,.9); }
.btn-accent:hover { background: var(--tx); color: var(--bg); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(21,18,14,.92);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(236,230,217,.12);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { font-family: var(--f-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 4px; color: #ece6d9; }
.brand .dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-left: 3px; margin-bottom: 3px; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--f-mono); font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #ece6d9;
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .28s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-contact {
  font-family: var(--f-mono); font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(236,230,217,.28); padding: 12px 20px; border-radius: 2px;
  color: #ece6d9; transition: background .25s, color .25s;
}
.nav-contact:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(236,230,217,.28);
  width: 46px; height: 46px; border-radius: 2px; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 18px; height: 2px; background: #ece6d9; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Media treatment ---------- */
.media { overflow: hidden; position: relative; background: var(--ink-3); isolation: isolate; }
.media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(236,230,217,.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, transparent 0 72%, rgba(10,9,7,.45) 100%);
  background-size: 64px 100%, 100% 100%;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.media:hover::after { opacity: 1; }
.media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.92);
  transition: transform 1s var(--snap), filter .6s var(--ease);
}
.media--reveal img { filter: grayscale(1) contrast(1.08) brightness(.86); }
.media--reveal:hover img { filter: grayscale(0) contrast(1.02) brightness(1); transform: scale(1.04); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 130px 0 46px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(236,230,217,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(236,230,217,.028) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 76%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.014) 0 1px, transparent 1px 6px);
  opacity: .28;
}
.hero-bg { position: absolute; top: 0; left: 0; right: 0; height: 100%; z-index: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(.3) saturate(.9); transform: scale(1.03); }
.hero-motion {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 74%, rgba(221,77,44,.24), transparent 30%),
    radial-gradient(circle at 76% 24%, rgba(35,168,158,.16), transparent 28%),
    linear-gradient(135deg, #0e0b08 0%, #19140f 48%, #090806 100%);
}
.hero-motion::before {
  content: "";
  position: absolute;
  inset: -8%;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(236,230,217,.055) 36%, transparent 42% 100%),
    repeating-linear-gradient(90deg, transparent 0 110px, rgba(236,230,217,.035) 110px 111px, transparent 111px 220px);
  transform: rotate(-8deg);
}
.hero-motion::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 1px, transparent 1px 6px),
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(0,0,0,.45) 100%);
  opacity: .55;
}
.hm-glow,
.hm-frame,
.hm-strip,
.hm-playhead {
  position: absolute;
  display: block;
}
.hm-glow {
  width: 28vw;
  height: 28vw;
  border-radius: 50%;
  filter: blur(24px);
  opacity: .32;
  mix-blend-mode: screen;
}
.hm-glow-a {
  left: -7vw;
  bottom: -10vw;
  background: rgba(221,77,44,.8);
}
.hm-glow-b {
  right: 2vw;
  top: -11vw;
  background: rgba(35,168,158,.62);
}
.hm-frame {
  width: clamp(130px, 12vw, 230px);
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(236,230,217,.14);
  background:
    linear-gradient(160deg, rgba(236,230,217,.14), transparent 48%),
    linear-gradient(180deg, rgba(221,77,44,.16), rgba(35,168,158,.08));
  box-shadow: 0 40px 90px -55px rgba(0,0,0,.9);
  opacity: .46;
  transform: rotate(-7deg);
}
.hm-frame-a { left: 10vw; top: 18vh; }
.hm-frame-b { left: 29vw; top: 8vh; animation-delay: .7s; opacity: .3; transform: rotate(5deg); }
.hm-frame-c { right: 13vw; bottom: 13vh; animation-delay: 1.4s; opacity: .36; transform: rotate(8deg); }
.hm-strip {
  left: 8vw;
  right: 8vw;
  height: 54px;
  border: 1px solid rgba(236,230,217,.12);
  background:
    repeating-linear-gradient(90deg, rgba(221,77,44,.82) 0 8%, rgba(35,168,158,.72) 8% 18%, rgba(136,105,218,.68) 18% 31%, rgba(224,173,62,.72) 31% 42%, rgba(236,230,217,.1) 42% 45%);
  background-size: 420px 100%;
  opacity: .28;
  filter: saturate(1.05);
}
.hm-strip-a { bottom: 20vh; }
.hm-strip-b { bottom: 13vh; left: 14vw; right: 18vw; animation-duration: 9s; opacity: .2; }
.hm-strip-c { bottom: 6vh; left: 20vw; right: 10vw; animation-duration: 6.6s; opacity: .16; }
.hm-playhead {
  top: 0;
  bottom: 0;
  left: 12%;
  width: 2px;
  background: rgba(236,230,217,.85);
  box-shadow: 0 0 24px rgba(236,230,217,.5);
  opacity: .42;
  animation: hmPlayhead 8s cubic-bezier(.45,0,.55,1) infinite alternate;
}
@keyframes hmDrift { to { transform: translate3d(-8%, 4%, 0) rotate(-8deg); } }
@keyframes hmScan { to { background-position: 0 32px, 0 0; } }
@keyframes hmFloatA { to { transform: translate3d(10vw,-5vh,0) scale(1.12); } }
@keyframes hmFloatB { to { transform: translate3d(-9vw,7vh,0) scale(1.08); } }
@keyframes hmFrame { to { transform: translate3d(1.8vw,-2vh,0) rotate(-2deg); opacity: .55; } }
@keyframes hmClips { to { background-position: 420px 0; } }
@keyframes hmPlayhead { from { transform: translate3d(0,0,0); } to { transform: translate3d(76vw,0,0); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 64% at 28% 76%, rgba(221,77,44,.24), transparent 58%),
    radial-gradient(82% 70% at 80% 28%, rgba(35,168,158,.16), transparent 60%),
    linear-gradient(180deg, rgba(21,18,14,.62) 0%, rgba(21,18,14,.58) 45%, rgba(21,18,14,.96) 100%);
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-top {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: 38px;
}
.hero-top .meta { max-width: 340px; color: #cfc8b8; font-size: .96rem; }
.hero h1 { color: #fff; max-width: min(820px, 60vw); }
.hero h1 .row { display: block; }
.hero h1 .row .em { color: var(--accent); }
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 30px; flex-wrap: wrap; margin-top: 40px;
  padding-top: 32px; border-top: 1px solid rgba(236,230,217,.2);
}
.hero-foot .btn-row { margin: 0; }
.scroll-tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #cfc8b8; display: flex; align-items: center; gap: 12px; }
.scroll-tag .ln { width: 46px; height: 1px; background: var(--accent); }
@keyframes scanlines { to { background-position: 0 32px; } }

.hero-edit-panel {
  position: absolute;
  right: 32px;
  top: clamp(130px, 20vh, 210px);
  width: min(390px, 30vw);
  min-width: 290px;
  z-index: 2;
  border: 1px solid rgba(236,230,217,.16);
  background: rgba(12,10,7,.52);
  backdrop-filter: blur(6px);
  box-shadow: 0 28px 80px -38px rgba(0,0,0,.9);
}
.hep-top {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(236,230,217,.14);
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: #cfc8b8;
}
.hep-top span:last-child { color: var(--accent); }
.hep-view {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  padding: 12px; background: rgba(236,230,217,.04);
}
.hep-frame {
  aspect-ratio: 9/14;
  display: grid; place-items: end start;
  padding: 8px;
  background:
    linear-gradient(145deg, rgba(221,77,44,.35), transparent 42%),
    linear-gradient(180deg, rgba(236,230,217,.16), rgba(236,230,217,.04));
  font-family: var(--f-mono); font-size: .58rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #ece6d9;
}
.hep-frame:nth-child(2) { animation-delay: .35s; background: linear-gradient(145deg, rgba(35,168,158,.33), transparent 42%), linear-gradient(180deg, rgba(236,230,217,.15), rgba(236,230,217,.04)); }
.hep-frame:nth-child(3) { animation-delay: .7s; background: linear-gradient(145deg, rgba(136,105,218,.34), transparent 42%), linear-gradient(180deg, rgba(236,230,217,.15), rgba(236,230,217,.04)); }
.hep-frame:nth-child(4) { animation-delay: 1.05s; background: linear-gradient(145deg, rgba(224,173,62,.35), transparent 42%), linear-gradient(180deg, rgba(236,230,217,.15), rgba(236,230,217,.04)); }
.hep-track {
  position: relative; height: 62px; margin: 0 12px 14px;
  border-top: 1px solid rgba(236,230,217,.14);
  display: flex; align-items: center; gap: 7px;
  overflow: hidden;
}
.hep-clip { height: 22px; border-radius: 2px; transform-origin: left; }
.clip-a { width: 30%; background: var(--accent); }
.clip-b { width: 24%; background: #23a89e; animation-delay: .18s; }
.clip-c { width: 34%; background: #8869da; animation-delay: .36s; }
.hep-play {
  position: absolute; top: 9px; bottom: 8px; left: 8%;
  width: 2px; background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,.75);
  animation: heroplay 7s cubic-bezier(.45,0,.55,1) infinite alternate;
}
@keyframes heroplay { from { transform: translate3d(0,0,0); } to { transform: translate3d(25vw,0,0); } }
@keyframes clipgrow { from { transform: scaleX(.78); } to { transform: scaleX(1); } }
@keyframes framepulse { 0%, 100% { filter: brightness(.82); } 50% { filter: brightness(1.2); } }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--ln); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; gap: 0; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--f-mono); font-size: .82rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mut);
  padding: 0 26px; display: flex; align-items: center; gap: 52px;
}
.ticker-track span::after { content: "*"; color: var(--accent); font-size: .7rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Editorial section header ---------- */
.ed-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-bottom: clamp(40px,6vw,76px); }
.ed-head .lede { color: var(--mut); }
.ed-head h2 { margin-top: 18px; }

/* generic two-column editorial split */
.split { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(36px,6vw,86px); align-items: center; }
.split--top { align-items: start; }

/* ---------- Intro statement ---------- */
.statement h2 { max-width: 17ch; }
.statement .by {
  margin-top: 36px; display: flex; gap: 16px; align-items: baseline;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mut);
}
.statement .by .rule { flex: 0 0 60px; height: 1px; background: var(--accent); transform: translateY(-4px); }

/* ---------- Services index (numbered list) ---------- */
.svc-index { border-top: 1px solid var(--ln); }
.svc-row {
  display: grid; grid-template-columns: 82px 1fr 1.45fr minmax(130px,.42fr) auto; gap: 28px;
  align-items: center; padding: clamp(26px,3.4vw,42px) 8px;
  border-bottom: 1px solid var(--ln); transition: background .3s, padding .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.svc-row::before,
.work-item::before,
.client-card::before,
.post-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(236,230,217,.12), transparent 30%);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.svc-row:hover::before,
.work-item:hover::before,
.client-card:hover::before,
.post-card:hover::before { opacity: 1; }
.work-item, .client-card, .post-card { position: relative; }
.work-item > *, .client-card > *, .post-card > *, .svc-row > * { position: relative; z-index: 1; }
.svc-row:hover { background: rgba(221,77,44,.05); }
.svc-row .svc-no { font-family: var(--f-mono); font-size: .9rem; font-weight: 700; color: var(--accent); }
.svc-row h3 { font-size: clamp(1.45rem,2.55vw,2.35rem); max-width: 11ch; transition: transform .3s var(--ease); }
.svc-row:hover h3 { transform: translateX(8px); }
.svc-row .svc-desc { color: var(--mut); font-size: .98rem; max-width: 48ch; }
.svc-row .svc-meta {
  justify-self: start;
  border: 1px solid var(--ln);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--tx);
  white-space: nowrap;
}
.svc-row .svc-go {
  width: 52px; height: 52px; border: 1px solid var(--ln); border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0; transition: .3s var(--ease);
}
.svc-row .svc-go svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.svc-row:hover .svc-go { background: var(--accent); border-color: var(--accent); }
.svc-row:hover .svc-go svg { transform: translate(3px,-3px); stroke: #fff; }

/* ---------- New client help ---------- */
.client-help { overflow: hidden; }
.client-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  border-top: 1px solid var(--ln);
  border-left: 1px solid var(--ln);
}
.client-card {
  min-height: 320px;
  padding: clamp(26px,3.4vw,42px);
  border-right: 1px solid var(--ln);
  border-bottom: 1px solid var(--ln);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(221,77,44,.08), transparent 46%),
    rgba(255,255,255,.018);
  transition: transform .45s var(--snap), background .35s var(--ease), border-color .35s var(--ease);
}
.client-card:hover {
  transform: translateY(-8px);
  background:
    linear-gradient(145deg, rgba(221,77,44,.16), transparent 50%),
    rgba(255,255,255,.04);
  border-bottom-color: rgba(221,77,44,.38);
}
.client-k {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.client-card h3 {
  font-size: clamp(1.55rem,2.6vw,2.55rem);
  max-width: 10ch;
  margin-top: auto;
}
.client-card p {
  color: var(--mut);
  margin-top: 22px;
  max-width: 34ch;
}
.client-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ln);
}
.client-strip span,
.client-strip strong {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.client-strip span { color: var(--mut); margin-right: 8px; }
.client-strip strong {
  color: var(--tx);
  border: 1px solid var(--ln);
  border-radius: 999px;
  padding: 8px 12px;
}

/* ---------- Post-production packages ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--ln);
  border-left: 1px solid var(--ln);
}
.post-card {
  min-height: 300px;
  padding: clamp(24px,3vw,36px);
  border-right: 1px solid var(--ln);
  border-bottom: 1px solid var(--ln);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(221,77,44,.05), transparent 48%),
    rgba(255,255,255,.02);
  transition: transform .45s var(--snap), background .35s var(--ease), border-color .35s var(--ease);
}
.post-card:hover {
  transform: translateY(-8px);
  border-bottom-color: rgba(221,77,44,.45);
  background:
    linear-gradient(180deg, rgba(221,77,44,.13), transparent 54%),
    rgba(255,255,255,.045);
}
.post-card .post-no {
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
}
.post-card h3 {
  font-size: clamp(1.35rem,2vw,2rem);
  line-height: 1.04;
  margin-top: 44px;
}
.post-card p {
  color: var(--mut);
  font-size: .96rem;
  margin-top: 22px;
}

/* ---------- Work / portfolio editorial grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(28px,3.6vw,54px) 28px; }
.work-item { grid-column: span 6; }
.work-item.wide   { grid-column: span 7; }
.work-item.narrow { grid-column: span 5; }
.work-item.full   { grid-column: span 12; }
.work-item .media { aspect-ratio: 4/3; border-radius: 3px; }
.work-item.full .media { aspect-ratio: 21/9; }
.work-cap { display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; align-items: baseline; }
.work-cap h3 { font-size: 1.5rem; transition: color .2s, transform .3s var(--snap); }
.work-item:hover .work-cap h3 { color: var(--accent); }
.work-item:hover .work-cap h3 { transform: translateX(4px); }
.work-cap .yr { font-family: var(--f-mono); font-size: .78rem; color: var(--mut); white-space: nowrap; }
.work-tags { margin-top: 7px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }

/* ---------- Healthcare proof cards ---------- */
.case-feature {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(360px,.74fr);
  border: 1px solid var(--ln);
  background:
    linear-gradient(135deg, rgba(221,77,44,.09), transparent 42%),
    rgba(255,255,255,.018);
}
.case-media {
  min-height: clamp(420px,42vw,620px);
  border-radius: 0;
}
.case-media img { filter: grayscale(.82) contrast(1.08) brightness(.76); }
.case-badge {
  position: absolute;
  left: clamp(20px,3vw,42px);
  bottom: clamp(20px,3vw,42px);
  z-index: 2;
  border: 1px solid rgba(236,230,217,.2);
  background: rgba(10,9,7,.58);
  backdrop-filter: blur(10px);
  padding: 14px 16px;
}
.case-badge span,
.case-stats span {
  display: block;
  font-family: var(--f-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mut);
}
.case-badge strong {
  display: block;
  color: var(--tx);
  font-family: var(--f-display);
  font-size: 1.4rem;
  line-height: 1.05;
  margin-top: 5px;
}
.case-copy {
  padding: clamp(30px,4.6vw,62px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.case-copy h3 {
  font-size: clamp(2.05rem,4vw,4rem);
  line-height: 1.02;
  max-width: 9ch;
  margin-top: clamp(54px,8vw,120px);
}
.case-copy p {
  color: var(--mut);
  margin-top: 24px;
  max-width: 45ch;
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  margin-top: clamp(36px,5vw,70px);
  border-top: 1px solid var(--ln);
}
.case-stats div {
  padding: 20px 16px 0 0;
  border-right: 1px solid var(--ln);
}
.case-stats div:last-child { border-right: none; }
.case-stats b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2.2rem,4vw,3.8rem);
  line-height: 1;
}

.work-lanes {
  margin-top: clamp(30px,5vw,64px);
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(28px,5vw,64px);
  align-items: start;
  border-top: 1px solid var(--ln);
  padding-top: clamp(26px,4vw,48px);
}
.lane-head p {
  color: var(--mut);
  max-width: 36ch;
  margin-top: 18px;
}
.lane-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  border-top: 1px solid var(--ln);
  border-left: 1px solid var(--ln);
}
.lane-card {
  min-height: 220px;
  padding: clamp(22px,3vw,34px);
  border-right: 1px solid var(--ln);
  border-bottom: 1px solid var(--ln);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(145deg, rgba(236,230,217,.045), transparent 52%),
    rgba(255,255,255,.014);
}
.lane-card span {
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.lane-card strong {
  font-family: var(--f-display);
  font-size: clamp(1.35rem,2.1vw,2rem);
  line-height: 1.08;
  margin-top: 28px;
  max-width: 13ch;
}
.lane-card em {
  color: var(--mut);
  font-style: normal;
  margin-top: auto;
  padding-top: 28px;
  display: block;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  border-top: 1px solid var(--ln);
  border-left: 1px solid var(--ln);
}
.proof-card {
  position: relative;
  min-height: 430px;
  padding: clamp(24px,3vw,38px);
  border-right: 1px solid var(--ln);
  border-bottom: 1px solid var(--ln);
  background:
    linear-gradient(145deg, rgba(221,77,44,.08), transparent 46%),
    rgba(255,255,255,.018);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform .45s var(--snap), background .35s var(--ease), border-color .35s var(--ease);
}
.proof-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(236,230,217,.12), transparent 32%);
  opacity: 0; transition: opacity .25s var(--ease);
}
.proof-card:hover::before { opacity: 1; }
.proof-card:hover {
  transform: translateY(-8px);
  border-bottom-color: rgba(221,77,44,.45);
  background:
    linear-gradient(145deg, rgba(221,77,44,.15), transparent 52%),
    rgba(255,255,255,.04);
}
.proof-card > * { position: relative; z-index: 1; }
.proof-card--image { padding: 0; }
.proof-card--image .media { aspect-ratio: auto; min-height: 290px; height: 60%; }
.proof-body { padding: clamp(24px,3vw,38px); }
.proof-k,
.proof-no {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
}
.proof-card h3 {
  font-size: clamp(1.45rem,2.2vw,2.35rem);
  line-height: 1.08;
  margin-top: auto;
  max-width: 11ch;
}
.proof-card p {
  color: var(--mut);
  margin-top: 20px;
}
.proof-card ul {
  margin-top: 28px;
  border-top: 1px solid var(--ln);
}
.proof-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--ln);
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tx);
}

.work-method {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(32px,6vw,88px);
  align-items: start;
}
.method-lines {
  border-top: 1px solid var(--ln);
}
.method-lines div {
  display: grid;
  grid-template-columns: 70px minmax(160px,.44fr) 1fr;
  gap: 24px;
  align-items: start;
  padding: clamp(26px,3.2vw,42px) 0;
  border-bottom: 1px solid var(--ln);
}
.method-lines span {
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
}
.method-lines strong {
  font-family: var(--f-display);
  font-size: clamp(1.45rem,2.4vw,2.25rem);
  line-height: 1.08;
}
.method-lines p {
  color: var(--mut);
  max-width: 58ch;
}

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(36px,5vw,60px); }
.filter-btn {
  background: none; border: 1px solid var(--ln); color: var(--mut);
  font-family: var(--f-mono); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 11px 20px; border-radius: 2px; cursor: pointer; transition: .25s var(--ease);
}
.filter-btn:hover { color: var(--tx); border-color: var(--tx); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Approach / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top: 1px solid var(--ln); }
.step { padding: 40px 26px 40px 0; border-right: 1px solid var(--ln); }
.step:last-child { border-right: none; padding-right: 0; }
.step .s-no { font-family: var(--f-mono); font-size: .8rem; font-weight: 700; color: var(--accent); }
.step h3 { font-size: 1.4rem; margin: 16px 0 10px; }
.step p { color: var(--mut); font-size: .95rem; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 14px 28px; border-left: 1px solid var(--ln); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .n { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem,5vw,4.4rem); line-height: 1; letter-spacing: -.03em; }
.stat .k { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); margin-top: 12px; }

/* ---------- Values list ---------- */
.value-row {
  display: grid; grid-template-columns: 64px 1fr 2fr; gap: 30px;
  padding: 34px 0; border-top: 1px solid var(--ln); align-items: start;
}
.value-row:last-child { border-bottom: 1px solid var(--ln); }
.value-row .v-no { font-family: var(--f-mono); font-size: .85rem; color: var(--accent); }
.value-row h3 { font-size: 1.55rem; }
.value-row p { color: var(--mut); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.team-card .media { aspect-ratio: 3/4; border-radius: 3px; }
.team-card h3 { font-size: 1.35rem; margin-top: 18px; }
.team-card .role { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
.team-card p { color: var(--mut); font-size: .93rem; margin-top: 10px; }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding: 168px 0 clamp(50px,7vw,90px); position: relative; }
.page-hero .crumb { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero h1 { margin: 22px 0 0; }
.page-hero .ph-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-top: 34px; }
.page-hero .ph-foot p { color: var(--mut); max-width: 44ch; }
.work-hero-strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  margin-top: clamp(38px,6vw,74px);
  border-top: 1px solid var(--ln);
  border-left: 1px solid var(--ln);
}
.work-hero-strip span {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-right: 1px solid var(--ln);
  border-bottom: 1px solid var(--ln);
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx);
}
.work-hero-strip b { color: var(--accent); font-weight: 700; }

/* ---------- Big quote ---------- */
.bigquote { max-width: 22ch; }
.bigquote .q-mark { color: var(--accent); }

/* ---------- Service detail rows ---------- */
.svc-detail { border-top: 1px solid var(--ln); }
.svc-block {
  display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(34px,5vw,72px);
  align-items: center; padding: clamp(44px,6vw,90px) 0; border-bottom: 1px solid var(--ln);
}
.svc-block.flip .svc-media { order: -1; }
.svc-media { aspect-ratio: 5/4; border-radius: 3px; }
.svc-block .svc-no-lg { font-family: var(--f-mono); font-size: .85rem; font-weight: 700; color: var(--accent); }
.svc-block h2 { font-size: clamp(2rem,3.6vw,3.1rem); margin: 14px 0 16px; }
.svc-block p { color: var(--mut); }
.svc-feat { margin-top: 26px; display: grid; gap: 0; }
.svc-feat li {
  display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--ln);
  font-size: .98rem;
}
.svc-feat li:last-child { border-bottom: 1px solid var(--ln); }
.svc-feat li .fx { font-family: var(--f-mono); color: var(--accent); font-size: .8rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px,6vw,80px); align-items: start; }
.field { margin-bottom: 30px; }
.field label {
  display: block; font-family: var(--f-mono); font-size: .73rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--ln); border-radius: 0;
  padding: 11px 2px; font-size: 1.02rem; transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field select { color: var(--tx); }
.field select option { background: var(--ink-2); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--mut); opacity: .65; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.form-note { font-family: var(--f-mono); font-size: .72rem; color: var(--mut); margin-top: 20px; }
.form-status { margin-top: 16px; font-size: .95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #e0ad3e; }

.contact-line { padding: 26px 0; border-top: 1px solid var(--ln); }
.contact-line:last-of-type { border-bottom: 1px solid var(--ln); }
.contact-line .k { font-family: var(--f-mono); font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.contact-line .v { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; margin-top: 8px; display: block; }
.contact-line a.v:hover { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--ln); }
.faq-item:last-child { border-bottom: 1px solid var(--ln); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 4px; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.1rem,1.8vw,1.5rem);
  color: var(--tx);
}
.faq-q .pm { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--accent); left: 50%; top: 50%; transition: transform .3s var(--ease); }
.faq-q .pm::before { width: 14px; height: 2px; transform: translate(-50%,-50%); }
.faq-q .pm::after  { width: 2px; height: 14px; transform: translate(-50%,-50%); }
.faq-item.open .pm::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { color: var(--mut); padding: 0 4px 28px; max-width: 70ch; }

/* ---------- CTA ---------- */
.cta-huge h2 { font-size: clamp(2.35rem,5.2vw,5rem); max-width: 13ch; }
.cta-huge .lede { max-width: 44ch; margin-top: 22px; }
.cta-huge .btn-row { margin-top: 34px; }
.cta-split {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(320px,.72fr);
  gap: clamp(36px,7vw,100px);
  align-items: end;
}
.cta-action {
  border-top: 1px solid var(--ln);
  padding-top: 28px;
}
.cta-points {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--ln);
}
.cta-points li {
  display: flex;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--ln);
  color: var(--tx);
}
.cta-points span {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--accent);
  flex: 0 0 auto;
}

/* ---------- Footer ---------- */
.site-footer { background: #100d0a; border-top: 1px solid rgba(236,230,217,.13); padding: clamp(56px,7vw,96px) 0 34px; }
.footer-word {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(3.4rem,15vw,12rem); line-height: 1.12; color: #ece6d9;
  display: flex; align-items: center;
  padding-block: .06em;
}
.footer-word .dot { width: .14em; height: .14em; background: var(--accent); border-radius: 50%; margin-top: .12em; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-top: clamp(44px,6vw,80px); }
.footer-cols h4 { font-family: var(--f-mono); font-size: .73rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #968d7c; margin-bottom: 20px; }
.footer-cols p { color: #968d7c; font-size: .95rem; max-width: 30ch; }
.footer-cols a { display: block; color: #cfc8b8; padding: 6px 0; font-size: .96rem; transition: color .2s; }
.footer-cols a:hover { color: var(--accent); }
.socials { display: flex; gap: 22px; margin-top: 16px; }
.socials a { font-family: var(--f-mono); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #cfc8b8; padding: 4px 0; }
.socials a:hover { color: var(--accent); }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(40px,5vw,68px); padding-top: 26px; border-top: 1px solid rgba(236,230,217,.13);
  font-family: var(--f-mono); font-size: .73rem; letter-spacing: .06em; text-transform: uppercase; color: #6f6757;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; }
.reveal.d4 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .ed-head { grid-template-columns: 1fr; gap: 16px; }
  .split, .split--top, .contact-grid, .svc-block, .svc-block.flip,
  .page-hero .ph-foot, .statement-grid, .cta-split { grid-template-columns: 1fr; }
  .svc-block.flip .svc-media { order: 0; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .client-grid { grid-template-columns: 1fr; }
  .client-card { min-height: 240px; }
  .post-grid { grid-template-columns: repeat(2,1fr); }
  .work-hero-strip { grid-template-columns: 1fr 1fr; }
  .case-feature, .work-method, .work-lanes { grid-template-columns: 1fr; }
  .case-copy h3 { max-width: 12ch; margin-top: 20px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-card--image { grid-column: 1 / -1; }
  .svc-row { grid-template-columns: 54px 1fr auto; gap: 20px; }
  .svc-row .svc-desc, .svc-row .svc-meta { grid-column: 2 / 3; }
  .svc-row .svc-go { grid-column: 3 / 4; grid-row: 1 / 4; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; padding-right: 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .nav-links {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: rgba(21,18,14,.98); backdrop-filter: blur(14px);
    padding: 14px 22px 26px; border-bottom: 1px solid var(--ln);
    transform: translateY(-130%); transition: transform .4s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--ln); font-size: .92rem; }
  .nav-toggle { display: flex; }
  .nav-contact { display: none; }
  .svc-row { grid-template-columns: 40px 1fr auto; gap: 16px; padding-left: 0; padding-right: 0; }
  .svc-row h3 { max-width: none; }
  .svc-row .svc-desc { display: block; font-size: .9rem; }
  .svc-row .svc-meta { font-size: .62rem; white-space: normal; }
  .work-item, .work-item.wide, .work-item.narrow, .work-item.full { grid-column: span 12; }
  .post-grid { grid-template-columns: 1fr; }
  .work-hero-strip { grid-template-columns: 1fr; }
  .work-hero-strip span { min-height: 64px; }
  .case-media { min-height: 320px; }
  .case-stats { grid-template-columns: 1fr; }
  .case-stats div { border-right: none; border-bottom: 1px solid var(--ln); padding-bottom: 16px; }
  .lane-grid { grid-template-columns: 1fr; }
  .lane-card { min-height: 190px; }
  .method-lines div { grid-template-columns: 1fr; gap: 10px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-card { min-height: 300px; }
  .proof-card--image { grid-column: auto; }
  .client-card h3 { max-width: 14ch; }
  .client-strip { align-items: flex-start; }
  .post-card { min-height: 240px; }
  .work-item .media, .work-item.full .media { aspect-ratio: 4/3; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; padding: 30px 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .stat { border-left: none; padding: 0 0 0 22px; border-left: 1px solid var(--ln); }
  .value-row { grid-template-columns: 40px 1fr; }
  .value-row p { grid-column: 1 / -1; }
  .team-grid, .field-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .hero-foot { gap: 22px; }
  .cta-huge h2 { font-size: clamp(2.25rem,12vw,4rem); max-width: 10ch; }
  .cta-action { padding-top: 22px; }
}

/* ============================================================
   MOTION SYSTEM
   ============================================================ */

/* ---- Preloader ---- */
#loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: transform .85s cubic-bezier(.76,0,.24,1);
}
#loader.done { transform: translateY(-101%); transition-duration: .42s; }
.loader-brand { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem,6vw,3.4rem); letter-spacing: -.03em; color: #ece6d9; display: flex; align-items: center; gap: 6px; }
.loader-brand .dot { width: .15em; height: .15em; background: var(--accent); border-radius: 50%; }
.loader-bar { width: min(280px,56vw); height: 2px; background: rgba(236,230,217,.16); overflow: hidden; }
.loader-bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.loader-num { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .2em; color: var(--mut); }

/* ---- Scroll progress ---- */
.scroll-prog {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 101;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}

/* ---- Custom cursor ---- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; border-radius: 50%; display: none; }
.cursor-dot { width: 7px; height: 7px; background: var(--accent); }
.cursor-ring {
  width: 42px; height: 42px; border: 1px solid rgba(236,230,217,.55);
  transition: width .26s var(--ease), height .26s var(--ease), background .26s, border-color .26s, opacity .26s;
}
.cursor-ring.hover { width: 66px; height: 66px; background: rgba(221,77,44,.12); border-color: var(--accent); }
.cursor-ring.down { width: 32px; height: 32px; }
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { display: block; }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .magnetic, body.has-cursor input, body.has-cursor textarea, body.has-cursor select { cursor: none; }

/* ---- Magnetic ---- */
.magnetic { transition: transform .35s var(--ease); will-change: transform; }

/* ---- Kinetic split text ---- */
[data-split] { }
.w { display: inline-block; overflow: visible; vertical-align: bottom; }
.w-i {
  display: inline-block;
  opacity: 0;
  transform: scale(.985);
  transform-origin: left bottom;
  transition: opacity .55s ease, transform 1s cubic-bezier(.16,.84,.34,1);
  will-change: transform, opacity;
}
[data-split].in .w-i { transform: scale(1); }
[data-split].in .w-i { opacity: 1; }

/* ---- Hero load sequence ---- */
.hl { display: block; overflow: hidden; padding: .08em 0 .24em; margin: -.08em 0 -.18em; }
.hl-i { display: block; transform: translateY(142%); transition: transform 1.1s cubic-bezier(.16,.84,.34,1); }
.hl-i.em { color: var(--accent); }
body.loaded .hl-i { transform: translateY(0); }
body.loaded .hl { overflow: hidden; }
body.loaded .hero .hl { padding: .08em 0 .24em; margin: -.08em 0 -.18em; }
.hl:nth-child(1) .hl-i { transition-delay: .08s; }
.hl:nth-child(2) .hl-i { transition-delay: .19s; }
.hl:nth-child(3) .hl-i { transition-delay: .30s; }

.hero-rise { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
body.loaded .hero-rise { opacity: 1; transform: none; }
.hero-rise.r1 { transition-delay: .42s; }
.hero-rise.r2 { transition-delay: .52s; }
.hero-rise.r3 { transition-delay: .62s; }
.hero-rise.r4 { transition-delay: .72s; }

/* ---- Parallax ---- */
[data-parallax] { will-change: transform; }
.px-img { height: 100%; }
.media.media--px { overflow: hidden; }
.media--px .px-img { height: 132%; margin-top: -16%; }

/* ---- Rotating showreel badge ---- */
.reel-badge {
  position: absolute; right: 44px; bottom: 220px; z-index: 3;
  width: 128px; height: 128px; display: grid; place-items: center;
}
.reel-badge .badge-spin { position: absolute; inset: 0; width: 100%; height: 100%; }
.reel-badge .badge-spin text { font-family: var(--f-mono); font-size: 9.2px; font-weight: 700; letter-spacing: .14em; fill: #ece6d9; text-transform: uppercase; }
.reel-badge .badge-core {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; position: relative; z-index: 2;
}
.reel-badge .badge-core svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reel-badge .badge-spin { animation: none; } }

/* ---- Showreel section ---- */
.reel-wrap { position: relative; }
.reel-meta-top, .reel-meta-bot {
  display: flex; justify-content: space-between; gap: 20px;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mut);
}
.reel-meta-top { margin-bottom: 16px; }
.reel-meta-bot { margin-top: 16px; }
.reel-frame {
  position: relative; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden;
  background: #000; border: 1px solid var(--ln);
}
.healthcare-frame { background: #0d100d; }
.reel-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.reel-poster { position: absolute; inset: 0; z-index: 2; transition: opacity .6s var(--ease); }
.reel-poster img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.52); }
.reel-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,7,.25), rgba(10,9,7,.55)); }
.healthcare-frame .reel-poster { opacity: 1; }
.healthcare-frame .reel-poster img {
  filter: grayscale(.85) contrast(1.08) brightness(.58);
  transform: scale(1.02);
}
.healthcare-frame .reel-poster::after {
  background:
    radial-gradient(circle at 76% 20%, rgba(35,168,158,.22), transparent 34%),
    radial-gradient(circle at 18% 84%, rgba(221,77,44,.22), transparent 28%),
    linear-gradient(90deg, rgba(10,9,7,.82), rgba(10,9,7,.34) 54%, rgba(10,9,7,.78));
}
.showreel.playing .reel-poster, .showreel.playing .reel-play-wrap { opacity: 0; pointer-events: none; }
.reel-play-wrap { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 3; transition: opacity .4s var(--ease); }
.reel-play {
  position: relative; width: clamp(88px,11vw,128px); height: clamp(88px,11vw,128px);
  border-radius: 50%; background: var(--accent); border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff;
}
.reel-play svg { width: 28%; height: 28%; fill: #fff; margin-left: 8%; }
.reel-play-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); }
.reel-play-ring::before, .reel-play-ring::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent);
  animation: reelpulse 2.6s cubic-bezier(.2,.6,.3,1) infinite;
}
.reel-play-ring::after { animation-delay: 1.3s; }
@keyframes reelpulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .reel-play-ring::before, .reel-play-ring::after { animation: none; } }
.reel-runtime {
  position: absolute; left: 22px; bottom: 20px; z-index: 3;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; color: #ece6d9;
  background: rgba(10,9,7,.5); backdrop-filter: blur(4px);
  padding: 7px 13px; border-radius: 2px; border: 1px solid rgba(236,230,217,.18);
}
.showreel.playing .reel-runtime { opacity: 0; }

.healthcare-overlay {
  position: absolute;
  inset: clamp(18px,3vw,44px);
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(210px,.46fr) minmax(220px,.42fr);
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  pointer-events: none;
}
.hc-phone {
  width: min(250px, 34vw);
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(236,230,217,.18);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(236,230,217,.08), rgba(10,9,7,.38)),
    radial-gradient(circle at 70% 18%, rgba(35,168,158,.28), transparent 34%);
  box-shadow: 0 28px 80px -42px rgba(0,0,0,.95);
  animation: hcFloat 5.5s var(--snap) infinite alternate;
}
.hc-status,
.hc-caption,
.hc-content-list span {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hc-status { color: var(--accent); font-weight: 700; margin-bottom: auto; }
.hc-phone strong {
  font-family: var(--f-display);
  font-size: clamp(1.5rem,2.4vw,2.55rem);
  line-height: 1.02;
  color: #fff;
  max-width: 9ch;
}
.hc-caption {
  color: #cfc8b8;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: .02em;
  margin-top: 14px;
}
.hc-content-list {
  justify-self: end;
  width: min(380px, 38vw);
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(236,230,217,.2);
  background: rgba(10,9,7,.28);
  backdrop-filter: blur(8px);
}
.hc-content-list span {
  display: flex;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(236,230,217,.2);
  color: #ece6d9;
}
.hc-content-list b {
  color: var(--accent);
  font-weight: 700;
}
@keyframes hcFloat { to { transform: translate3d(0,-14px,0) rotate(-1.5deg); } }

/* ---- Section transition cue ---- */
.reveal[data-anim="mask"] { clip-path: inset(0 0 100% 0); opacity: 1; transform: none; transition: clip-path 1s var(--ease); }
.reveal[data-anim="mask"].in { clip-path: inset(0 0 0 0); }

@media (max-width: 980px) {
  .reel-badge { right: 24px; bottom: 250px; width: 104px; height: 104px; }
  .reel-badge .badge-core { width: 42px; height: 42px; }
}
@media (max-width: 1240px) {
  .hero-edit-panel { display: none; }
  .hero h1 { max-width: none; }
}
@media (max-width: 720px) {
  .reel-badge { display: none; }
  .hero { min-height: 100svh; padding: 104px 0 30px; }
  .hero-top { padding-bottom: 22px; }
  .hero-foot { margin-top: 24px; padding-top: 24px; }
  .hero .btn { width: 100%; }
  .healthcare-overlay {
    inset: 18px;
    grid-template-columns: 1fr;
    align-items: end;
  }
  .hc-phone { width: min(180px, 50vw); border-radius: 14px; padding: 14px; }
  .hc-content-list { display: none; }
  .hc-phone strong { font-size: 1.35rem; }
  .reel-meta-top, .reel-meta-bot { flex-direction: column; gap: 8px; }
}

/* ---- Brand logo ---- */
.brand-logo { height: 54px; width: auto; display: block; }
.brand-txt { font-family: var(--f-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; align-items: center; gap: 2px; color: #ece6d9; }
.loader-logo { height: clamp(82px,13vw,116px); width: auto; display: block; }
.loader-txt { align-items: center; gap: 5px; }
@media (max-width: 720px) { .brand-logo { height: 44px; } }

/* ============================================================
   EDITING TIMELINE
   ============================================================ */
.edit-timeline {
  --clip-teal: #23a89e; --clip-orange: var(--accent);
  --clip-purple: #8869da; --clip-yellow: #e0ad3e;
  background: #0c0a07; border: 1px solid var(--ln); border-radius: 6px;
  padding: 0 0 22px; overflow: hidden; box-shadow: var(--shadow, 0 30px 60px -30px rgba(0,0,0,.7));
}
.tl-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--ln);
  font-family: var(--f-mono); font-size: .74rem; color: var(--mut);
}
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(236,230,217,.2); }
.tl-dot:nth-child(1) { background: #e0553c; }
.tl-dot:nth-child(2) { background: #e0ad3e; }
.tl-dot:nth-child(3) { background: #23a89e; }
.tl-title { margin-left: 8px; color: #c9c2b2; }
.tl-time { margin-left: auto; color: var(--accent); }
.tl-ruler {
  display: flex; justify-content: space-between;
  padding: 9px 18px; border-bottom: 1px solid var(--ln);
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; color: var(--mut);
}
.tl-tracks { position: relative; padding: 16px 18px 4px; display: grid; gap: 11px; }
.tl-row { display: flex; align-items: center; gap: 12px; }
.tl-tag {
  flex: 0 0 30px; font-family: var(--f-mono); font-size: .68rem; font-weight: 700;
  color: var(--mut); text-align: center;
}
.tl-lane {
  flex: 1; display: flex; align-items: center; height: 34px;
  background: rgba(236,230,217,.04); border-radius: 4px; padding: 0 4px;
}
.tl-clip {
  height: 24px; border-radius: 3px; flex-shrink: 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
}
.edit-timeline.in .tl-clip { transform: scaleX(1); }
.tl-row:nth-child(1) .tl-clip:nth-child(1) { transition-delay: .05s; }
.tl-row:nth-child(1) .tl-clip:nth-child(2) { transition-delay: .13s; }
.tl-row:nth-child(1) .tl-clip:nth-child(3) { transition-delay: .21s; }
.tl-row:nth-child(2) .tl-clip:nth-child(1) { transition-delay: .12s; }
.tl-row:nth-child(2) .tl-clip:nth-child(2) { transition-delay: .2s; }
.tl-row:nth-child(2) .tl-clip:nth-child(3) { transition-delay: .28s; }
.tl-row:nth-child(3) .tl-clip:nth-child(1) { transition-delay: .22s; }
.tl-row:nth-child(3) .tl-clip:nth-child(2) { transition-delay: .3s; }
.tl-row:nth-child(4) .tl-clip:nth-child(1) { transition-delay: .32s; }
.c-teal { background: var(--clip-teal); }
.c-orange { background: var(--clip-orange); }
.c-purple { background: var(--clip-purple); }
.c-yellow { background: var(--clip-yellow); }
.tl-clip.tl-audio {
  background:
    repeating-linear-gradient(90deg, rgba(35,168,158,.85) 0 2px, transparent 2px 5px),
    linear-gradient(rgba(35,168,158,.16), rgba(35,168,158,.16));
  border: 1px solid rgba(35,168,158,.4);
}
.tl-playhead {
  position: absolute; top: 8px; bottom: 4px; left: 4%; width: 2px;
  background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.6); z-index: 3;
}
.tl-playhead::before {
  content: ""; position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 8px solid #fff;
}
.edit-timeline.in .tl-playhead { animation: tlsweep 4.6s cubic-bezier(.45,0,.55,1) infinite alternate; }
@keyframes tlsweep { from { left: 5%; } to { left: 95%; } }
@media (prefers-reduced-motion: reduce) { .edit-timeline.in .tl-playhead { animation: none; } }

/* editing feature list */
.edit-feats { margin-top: 26px; display: grid; gap: 0; }
.edit-feats li {
  display: flex; align-items: center; gap: 14px; padding: 15px 0;
  border-top: 1px solid var(--ln); font-size: 1rem;
}
.edit-feats li:last-child { border-bottom: 1px solid var(--ln); }
.edit-feats .ef-no { font-family: var(--f-mono); font-size: .76rem; color: var(--accent); }
.edit-feats .ef-dot { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; }
