@font-face { font-family: "Inter Tight"; src: url("../assets/fonts/InterTight.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/Fraunces-Italic.ttf") format("truetype"); font-style: italic; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }

:root {
  --floor: #2D1911; --floor-2: #351D12; --stage: #4B2B19; --umber: #7A4D2F; --copper: #AB764C; --glow: #D29A68;
  --cream: #F6EDE3; --cream-hi: #FFF8EC; --dim: #D2B3A0;
  --paper: #F6F5F1; --paper-shade: #E9E5E1; --ink: #1B1916; --ink-soft: #4A4642;
  --ember: #F2903A; --ember-hi: #FFB56B; --ember-deep: #D9651A;
  --sans: "Inter Tight", system-ui, sans-serif; --serif: "Fraunces", Georgia, serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);       /* exponential settle, no overshoot */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --pad: clamp(20px, 5vw, 72px);
  --line: rgba(246,237,227,.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; overflow-x: clip; }
html.native-smooth { scroll-behavior: smooth; }
body { background: var(--floor); color: var(--cream); font-family: var(--sans); font-size: 17px; line-height: 1.55; letter-spacing: -0.01em; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
html.is-loading body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -0.02em; font-variation-settings: "SOFT" 50, "WONK" 1; color: var(--ember); }
.mono, .hud { font-family: var(--mono); text-transform: uppercase; letter-spacing: .22em; font-size: 11px; }
.dim { color: var(--dim); }
::selection { background: var(--ember); color: var(--ink); }

/* the WebGL stage behind everything */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
html.no-gl body { background: radial-gradient(180% 72% at 92% -4%, #DCA26E, #B07A4E 22%, #7A4D2F 45%, #4B2B19 70%, transparent) fixed, linear-gradient(#351D12, #2D1911) fixed; }
main, .foot { position: relative; z-index: 1; }

/* grain over everything (brand rule) */
.grain { position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(12) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-4%)} 75%{transform:translate(-4%,-1%)} 100%{transform:translate(1%,3%)} }

/* LOADER */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 26px; animation: ldFail .01s 6s forwards; }
.loader::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 45%, #3a2216, #1f110b); transition: opacity 1s var(--ease) .1s; }
.loader.out { pointer-events: none; }
.loader.out::before { opacity: 0; }
@keyframes ldFail { to { opacity: 0; visibility: hidden; } }
.ld-ring { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.ld-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; }
.ld-track { fill: none; stroke: rgba(246,237,227,.12); stroke-width: 1.5; }
.ld-arc { fill: none; stroke: var(--ember); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; filter: drop-shadow(0 0 6px rgba(242,144,58,.7)); }
.ld-mark { font-family: var(--mono); font-size: 18px; letter-spacing: .12em; color: var(--cream); }
.ld-meta { display: flex; gap: 18px; color: var(--dim); font-size: 10.5px; }
.ld-meta span:last-child { color: var(--cream); min-width: 3ch; }
.loader.out .ld-meta { opacity: 0; transition: opacity .3s; }

/* CURSOR (desktop) */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(246,237,227,.75); display: grid; place-items: center; opacity: 0;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .4s, border-color .4s, opacity .3s; }
.cursor span { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; }
.cursor.show { opacity: 1; }
.cursor.big { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: rgba(246,237,227,.94); border-color: transparent; }
.cursor.big span { opacity: 1; }
.cursor.link { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-color: rgba(246,237,227,.35); }
@media not all and (hover: hover) and (pointer: fine) { .cursor { display: none; } }

/* glass panel: frosted over the stream, a light rim that follows the pointer */
.glass { position: relative; background: linear-gradient(165deg, rgba(246,237,227,.075), rgba(246,237,227,.018) 55%, rgba(30,16,10,.25));
  -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,232,210,.12), 0 30px 70px -30px rgba(8,3,1,.75); }
.glass::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255,214,170,.75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.glass:hover::before { opacity: 1; }

/* HUD line */
.hud { display: flex; align-items: center; gap: 14px; color: var(--dim); }
.hud i { flex: 0 0 34px; height: 1px; background: currentColor; opacity: .45; }
.hud-ink { color: var(--ink-soft); }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--pad); transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s, transform .6s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(37, 21, 14, .5); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); padding-block: 12px; border-color: rgba(246,237,227,.08); }
.nav.hide { transform: translateY(-110%); }
.nav.on-paper { background: rgba(246,245,241,.72); color: var(--ink); border-color: rgba(27,25,22,.08); }
.nav.on-paper .nav-links { color: var(--ink-soft); } .nav.on-paper .nav-links a:hover { color: var(--ink); }
.nav.on-paper .mono-badge { border-color: rgba(27,25,22,.35); }
.nav.on-paper .pill { background: var(--ink); color: var(--cream); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.02em; }
.mono-badge { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(246,237,227,.35); border-radius: 50%; flex: none; }
html.is-loading #badge { opacity: 0; }
.nav-links { display: flex; gap: 34px; font-size: 14px; color: var(--dim); }
.nav-links a { position: relative; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover { color: var(--cream); } .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* buttons */
.pill { position: relative; display: inline-flex; align-items: center; gap: 10px; background: var(--cream); color: var(--ink); border-radius: 999px; padding: 16px 26px; overflow: hidden; isolation: isolate;
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6), inset 0 -2px 0 rgba(0,0,0,.08);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s; }
.pill::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.pill:hover::after { transform: translateX(120%); }
.pill b { font-weight: 700; }
.pill:hover { transform: translateY(-2px); background: var(--cream-hi); box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); }
.pill .arrow { transition: transform .5s var(--ease); } .pill:hover .arrow { transform: translateX(4px); }
.pill-sm { padding: 10px 18px; font-size: 11px; }
.pill-lg { padding: 20px 34px; font-size: 14px; }
.pill-ink { background: var(--ink); color: var(--cream); }
.pill-ink:hover { background: #2a2622; }
.pill-ink::after { background: linear-gradient(110deg, transparent 30%, rgba(255,220,190,.25) 50%, transparent 70%); }
.ghost { font-size: 15px; color: var(--cream); border-bottom: 1px solid rgba(246,237,227,.35); padding-bottom: 3px; transition: border-color .3s; }
.ghost:hover { border-color: var(--cream); }
.ghost-ink { color: var(--ink); border-color: rgba(27,25,22,.4); } .ghost-ink:hover { border-color: var(--ink); }
.cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* HERO */
.hero { position: relative; overflow-x: clip; min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: 120px var(--pad) 80px; }
.dotgrid { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(246,237,227,.22) 1px, transparent 1.4px); background-size: 34px 34px;
  -webkit-mask: radial-gradient(60% 70% at 22% 40%, #000, transparent 75%); mask: radial-gradient(60% 70% at 22% 40%, #000, transparent 75%); }
.hero-copy { position: relative; max-width: 640px; will-change: transform; display: flex; flex-direction: column; gap: 30px; }
h1 { font-size: clamp(44px, 6.2vw, 92px); line-height: .98; font-weight: 650; letter-spacing: -0.045em; text-shadow: 0 2px 40px rgba(30,14,8,.35); }
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--dim); max-width: 520px; }
.niche-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.niche-strip li { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); border: 1px solid rgba(246,237,227,.16); border-radius: 999px; padding: 7px 13px; background: rgba(30,16,10,.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* PHONES (CSS 3D) + halo rings + light shaft */
.phones { position: relative; height: min(760px, 86svh); perspective: 1400px; }
.phones-rig { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.beam { position: absolute; left: 50%; top: -40%; width: 300px; height: 150%; margin-left: -150px; pointer-events: none; transform: rotate(16deg); transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(255,232,205,.34), rgba(255,214,170,.12) 45%, transparent 85%); filter: blur(36px); mix-blend-mode: screen;
  animation: beam 9s ease-in-out infinite; }
@keyframes beam { 0%,100% { opacity: .85; } 50% { opacity: 1; } }
.beam { transition: scale 3s cubic-bezier(.65,0,.35,1) .5s; }
html.is-loading .beam { scale: 1 0; }
.halo { position: absolute; left: 50%; top: 50%; width: var(--hs, 620px); height: var(--hs, 620px); margin: calc(var(--hs, 620px) / -2) 0 0 calc(var(--hs, 620px) / -2); transform-style: preserve-3d; pointer-events: none; }
.halo-top { --hs: 560px; transform: translateY(-300px) rotateX(72deg); }
.halo-bot { --hs: 470px; transform: translateY(262px) rotateX(74deg); }
.halo i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,238,215,.92);
  box-shadow: 0 0 14px 1px rgba(242,144,58,.6), 0 0 50px 6px rgba(210,154,104,.32), inset 0 0 14px 1px rgba(242,144,58,.55), inset 0 0 50px 6px rgba(210,154,104,.25);
  animation: spin 22s linear infinite; }
.halo-bot i { animation-duration: 30s; animation-direction: reverse; }
.halo i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(255,250,240,.0) 70%, rgba(255,250,240,1) 84%, transparent 88%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); filter: blur(1px); }
@keyframes spin { to { transform: rotate(360deg); } }
html.is-loading .halo i { transform: scale(.6); opacity: 0; }
.halo i { transition: transform 2.6s var(--ease) .4s, opacity 1.8s .4s; }

.phone { position: absolute; top: 50%; left: 50%; width: clamp(190px, 16.5vw, 258px); aspect-ratio: 9 / 19.2; border-radius: 42px; padding: 9px;
  background: linear-gradient(150deg, #6b4630 0%, #2a1810 38%, #1a0f0a 70%, #4a2e1d 100%);
  box-shadow: inset 0 0 0 1px rgba(255,214,170,.18), inset 0 2px 1px rgba(255,230,200,.25),
    1px 1px 0 #3d2516, 2px 2px 0 #382114, 3px 3px 0 #331e12, 4px 4px 0 #2e1b10, 5px 5px 0 #29180e, 6px 6px 0 #24150c, 7px 7px 0 #20130b,
    30px 50px 80px -10px rgba(10,4,2,.65);
  will-change: transform; transition: opacity 1.2s var(--ease); }
.phone::after { content: ""; position: absolute; inset: 9px; border-radius: 34px; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,240,220,.16) 45%, transparent 58%); background-size: 250% 100%; animation: sweep 7s var(--ease) infinite; }
@keyframes sweep { 0%, 60% { background-position: 120% 0; } 100% { background-position: -60% 0; } }
.phone .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #0d0806; }
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.island { position: absolute; top: 18px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); background: #050302; border-radius: 20px; }
.phone-c { --base: translate(-50%, -50%) translateZ(80px) rotateY(-14deg) rotateX(4deg); animation: floatC 9s ease-in-out infinite; }
.phone-l { --base: translate(-118%, -46%) translateZ(-60px) rotateY(18deg) rotateX(3deg) scale(.86); animation: floatL 11s ease-in-out infinite; }
.phone-r { --base: translate(18%, -54%) translateZ(-30px) rotateY(-26deg) rotateX(5deg) scale(.88); animation: floatR 10s ease-in-out infinite; }
.phone-l .screen, .phone-r .screen { filter: brightness(.82); }
@keyframes floatC { 0%,100% { transform: var(--base) translateY(0); } 50% { transform: var(--base) translateY(-14px); } }
@keyframes floatL { 0%,100% { transform: var(--base) translateY(-6px); } 50% { transform: var(--base) translateY(10px); } }
@keyframes floatR { 0%,100% { transform: var(--base) translateY(8px); } 50% { transform: var(--base) translateY(-10px); } }
html.is-loading .phone { opacity: 0; }
.floor-shadow { position: absolute; left: 50%; bottom: 2%; width: 70%; height: 60px; transform: translateX(-50%) rotateX(80deg); background: radial-gradient(closest-side, rgba(10,4,2,.6), transparent); filter: blur(10px); }
.phones-tag { position: absolute; bottom: 0; right: 0; }
.phones-tag span:last-child { color: var(--cream); }

/* glass edit timeline floating in the rig */
.tl { position: absolute; right: 1%; bottom: 13%; width: 330px; border-radius: 16px; padding: 12px 14px 14px; transform: translateZ(170px) rotateY(-14deg) rotateX(8deg);
  background: linear-gradient(165deg, rgba(60,34,22,.55), rgba(30,16,10,.55)); transition: opacity 1.2s var(--ease) .5s; }
html.is-loading .tl { opacity: 0; }
.tl-head { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .16em; color: var(--dim); margin-bottom: 10px; }
.tl-tc { display: flex; align-items: center; gap: 7px; color: var(--cream); }
.tl-tc b { width: 6px; height: 6px; border-radius: 50%; background: var(--cream); animation: rec 1.6s steps(2) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.tl-body { position: relative; display: flex; flex-direction: column; gap: 6px; }
.trk { display: flex; align-items: center; gap: 8px; }
.trk b { width: 26px; font: 500 8px/1 var(--mono); letter-spacing: .1em; color: var(--dim); }
.lane { position: relative; flex: 1; height: 14px; border-radius: 4px; background: rgba(246,237,227,.04); }
.lane i { position: absolute; top: 1px; bottom: 1px; left: calc(var(--x) * 1%); width: calc(var(--w) * 1% - 2px); border-radius: 3px;
  background: linear-gradient(180deg, rgba(246,237,227,.3), rgba(246,237,227,.14)); border: 1px solid rgba(246,237,227,.25); }
.lane.cap i { background: linear-gradient(180deg, rgba(210,154,104,.55), rgba(171,118,76,.35)); border-color: rgba(255,214,170,.35); }
.lane.sfx i { width: 8px; height: 8px; top: 3px; border-radius: 1px; transform: rotate(45deg); background: var(--dim); border: 0; }
.lane.wave { background: repeating-linear-gradient(90deg, rgba(246,237,227,.35) 0 2px, transparent 2px 4px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q5 1 10 5 T20 5 T30 4 Q35 0 40 5 T50 5 Q55 2 60 5 T70 5 Q75 1 80 5 T90 5 T100 5 Q95 9 90 5 T80 5 Q75 9 70 5 T60 5 Q55 8 50 5 T40 5 Q35 10 30 6 T20 5 T10 5 Q5 9 0 5z' fill='black'/%3E%3C/svg%3E") center / 100% 100%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q5 1 10 5 T20 5 T30 4 Q35 0 40 5 T50 5 Q55 2 60 5 T70 5 Q75 1 80 5 T90 5 T100 5 Q95 9 90 5 T80 5 Q75 9 70 5 T60 5 Q55 8 50 5 T40 5 Q35 10 30 6 T20 5 T10 5 Q5 9 0 5z' fill='black'/%3E%3C/svg%3E") center / 100% 100%; }
.playhead { position: absolute; top: -4px; bottom: -4px; left: calc(34px + (100% - 34px) * var(--p, 0)); width: 1.5px; background: var(--cream); box-shadow: 0 0 10px rgba(255,236,214,.8); }
.playhead::before { content: ""; position: absolute; top: -3px; left: -4px; border: 4.5px solid transparent; border-top: 6px solid var(--cream); }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 36px; border: 1px solid rgba(246,237,227,.35); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; background: var(--cream); border-radius: 2px; transform: translateX(-50%); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* SECTIONS */
section { position: relative; }
.section-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; max-width: 900px; }
h2 { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.02; font-weight: 650; letter-spacing: -0.04em; }
.sub { color: var(--dim); font-size: 17px; max-width: 560px; }

/* WORK */
.work { padding: 140px var(--pad) 120px; display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: clamp(40px, 5vw, 90px); align-items: start; }
.work-side { position: sticky; top: 120px; }
.work-side h2 { font-size: clamp(38px, 3.8vw, 58px); }
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 48px; scrollbar-width: none; position: relative; }
.work-side .tabs { flex-direction: column; width: 100%; border-radius: 26px; margin-bottom: 0; }
.work-side .tab { justify-content: space-between; padding: 14px 20px; font-size: 15px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; white-space: nowrap; padding: 11px 20px; border-radius: 999px; font-size: 14px; color: var(--dim); transition: color .4s var(--ease); display: flex; gap: 10px; align-items: center; }
.tab .cnt { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; opacity: .7; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab-ink { position: absolute; z-index: 0; border-radius: 999px; background: var(--cream); box-shadow: 0 8px 30px -8px rgba(255,220,180,.35); transition: left .6s var(--ease), top .6s var(--ease), width .6s var(--ease), height .6s var(--ease); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); perspective: 1600px; }
.card { position: relative; aspect-ratio: 9 / 16; border-radius: 24px; transform-style: preserve-3d; cursor: pointer; outline: none;
  opacity: 0; transform: translateY(60px) rotateX(14deg) scale(.96); filter: blur(10px); transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease); }
.card.in { opacity: 1; transform: none; filter: none; }
.card.out { opacity: 0; transform: translateY(-20px) scale(.97); filter: blur(8px); transition-duration: .35s; }
@media (hover: hover) and (pointer: fine) { .card, .card a { cursor: none; } }
.card .tiltbox { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.card .media { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; background: #140b07;
  box-shadow: 0 0 0 1px rgba(246,237,227,.12), 0 30px 60px -20px rgba(8,3,1,.75), 0 0 0 rgba(242,144,58,0); transition: box-shadow .6s var(--ease); }
.card:hover .media { box-shadow: 0 0 0 1px rgba(246,237,227,.25), 0 40px 80px -24px rgba(8,3,1,.85), 0 0 60px -10px rgba(242,144,58,.3); }
.card video, .card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card img { transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card video { opacity: 0; transition: opacity .5s var(--ease); }
.card.playing video { opacity: 1; }
.card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,10,6,.35) 0%, transparent 22%, transparent 50%, rgba(20,10,6,.92) 100%); }
.card .glare { position: absolute; inset: 0; border-radius: 24px; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,236,214,.22), transparent 45%); mix-blend-mode: soft-light; }
.card:hover .glare { opacity: 1; }
.card .meta { position: absolute; left: 22px; right: 22px; bottom: 22px; transform: translateZ(50px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.card .meta .hud { font-size: 10px; }
.card h3 { font-size: clamp(19px, 1.6vw, 24px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.12; }
.card p { font-size: 14px; color: var(--dim); line-height: 1.45; }
.card .chips { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; transform: translateZ(40px); pointer-events: none; }
.chip { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(20,10,6,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(246,237,227,.18); }
.chip.raw { color: var(--cream); }
.card .play { display: none; }
.card .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p, 0%); background: var(--cream); opacity: .7; }

/* SERVICES */
.services { padding: 120px var(--pad); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1400px; }
.svc { padding: 30px 28px 36px; border-radius: 22px; min-height: 270px; display: flex; flex-direction: column; gap: 14px;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.svc-no { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.svc h3 { font-size: 26px; letter-spacing: -0.035em; font-weight: 650; line-height: 1.1; }
.svc p { color: var(--dim); font-size: 15px; }
.glyph { height: 96px; margin-bottom: 22px; position: relative; display: flex; align-items: center; }
/* 01 captions popping in word by word */
.g-caption { flex-wrap: wrap; align-content: center; gap: 6px; font: 800 17px/1 var(--sans); letter-spacing: -.01em; text-transform: uppercase; }
.g-caption span { padding: 6px 8px; border-radius: 6px; opacity: 0; transform: translateY(8px) scale(.9); animation: capPop 5s var(--ease) infinite; }
.g-caption span:nth-child(2) { animation-delay: .35s; } .g-caption span:nth-child(3) { animation-delay: .7s; }
.g-caption .hl { background: var(--cream); color: var(--ink); }
@keyframes capPop { 0% { opacity: 0; transform: translateY(8px) scale(.9); } 8%, 78% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: translateY(-6px); } }
/* 02 house drawing itself, a walkthrough path */
.g-house svg { height: 100%; overflow: visible; }
.g-house path { fill: none; stroke: var(--cream); stroke-width: 1.4; stroke-linejoin: round; }
.g-house .draw { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 2.4s var(--ease) .3s; }
.g-house .d2 { transition-delay: 1s; opacity: .7; }
.svc.in .g-house .draw { stroke-dashoffset: 0; }
.g-house .walk { stroke: var(--dim); stroke-dasharray: 2 6; animation: walk 3s linear infinite; opacity: .8; }
@keyframes walk { to { stroke-dashoffset: -64; } }
/* 03 AI frame with a scan */
.ai-frame { position: relative; width: 56px; height: 96px; border-radius: 8px; border: 1px solid rgba(246,237,227,.35); overflow: hidden;
  background-image: radial-gradient(rgba(246,237,227,.35) 1px, transparent 1.3px); background-size: 7px 7px; }
.ai-frame::before { content: ""; position: absolute; left: 50%; top: 26%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--cream), var(--copper)); opacity: .85; }
.ai-frame::after { content: ""; position: absolute; left: 8px; right: 8px; top: 58%; height: 30%; border-radius: 12px 12px 0 0; background: linear-gradient(var(--glow), var(--umber)); opacity: .8; }
.ai-frame .scan { position: absolute; left: 0; right: 0; height: 26px; z-index: 2; background: linear-gradient(180deg, transparent, rgba(255,236,214,.6), transparent); animation: scan 2.6s var(--ease-io) infinite; }
@keyframes scan { 0% { top: -26px; } 100% { top: 100%; } }
.ai-frame span { position: absolute; left: 70px; bottom: 4px; font-size: 9px; letter-spacing: .16em; white-space: nowrap; color: var(--dim); }
/* 04 motion cube */
.g-cube { perspective: 500px; padding-left: 18px; }
.cube { position: relative; width: 56px; height: 56px; transform-style: preserve-3d; animation: cube 14s linear infinite; }
.cube i { position: absolute; inset: 0; border: 1px solid rgba(246,237,227,.6); background: rgba(210,154,104,.08); }
.cube i:nth-child(1) { transform: translateZ(28px); } .cube i:nth-child(2) { transform: rotateY(180deg) translateZ(28px); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(28px); } .cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(28px); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(28px); } .cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(28px); background: rgba(255,236,214,.18); }
@keyframes cube { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }

.svc-also { margin-top: 18px; display: grid; grid-template-columns: minmax(220px, 1fr) 1.6fr auto; align-items: center; gap: 28px 40px; padding: 26px 30px; border-radius: 22px; }
.also-head { display: flex; flex-direction: column; gap: 6px; }
.also-head h3 { font-size: 24px; font-weight: 650; letter-spacing: -0.03em; }
.svc-also p { color: var(--dim); font-size: 15px; max-width: 520px; }
.svc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags li { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); border: 1px solid rgba(246,237,227,.18); border-radius: 999px; padding: 6px 12px; }

/* PROCESS: the paper plate opens out of a tile */
.process { padding: 40px 14px; }
.plate { position: relative; background: var(--plate-bg, var(--paper)); color: var(--ink); border-radius: 34px; padding: 130px var(--pad) 110px; overflow: hidden;
  clip-path: inset(var(--ct, 0px) var(--cr, 0px) var(--cb, 0px) var(--cl, 0px) round var(--cR, 34px)); }
.plate-tile { position: absolute; top: 70px; left: 50%; width: 96px; height: 96px; margin-left: -48px; display: grid; place-items: center; font-size: 18px; letter-spacing: .12em; color: var(--ink); opacity: var(--tileO, 0); pointer-events: none; }
.plate-in { opacity: var(--inO, 1); transform: translateY(calc((1 - var(--inO, 1)) * 30px)); }
.process .section-head { max-width: 1200px; }
.process em { color: var(--ember-deep); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(27,25,22,.18); }
.steps li { padding: 30px 28px 10px 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.steps li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .8s var(--ease) .3s; }
.steps li.in::before { transform: scale(1); }
.steps span { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-soft); }
.steps h3 { font-size: 30px; font-weight: 650; letter-spacing: -0.04em; }
.steps p { color: var(--ink-soft); font-size: 16px; max-width: 250px; }
.works-with { margin-top: 44px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }

/* CTA: id card + Ember plate */
.cta { padding: 120px var(--pad) 140px; }
.cta-grid { display: grid; grid-template-columns: minmax(280px, 1fr) 2.1fr; gap: 18px; max-width: 1320px; margin: 0 auto; perspective: 1600px; }
.cta-id { border-radius: 28px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.id-top { display: flex; align-items: center; justify-content: space-between; }
.cta-id h3 { font-size: 30px; font-weight: 650; letter-spacing: -0.04em; margin-bottom: 10px; }
.cta-id p { color: var(--dim); font-size: 15px; max-width: 300px; }
.id-foot { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; }
.id-foot a:hover { color: var(--cream-hi); }
.cta-plate { position: relative; border-radius: 28px; padding: clamp(40px, 5.5vw, 76px); display: flex; flex-direction: column; gap: 26px; overflow: hidden; isolation: isolate;
  background: var(--ember); color: var(--ink); box-shadow: 0 50px 120px -40px rgba(242,144,58,.55), inset 0 1px 0 rgba(255,236,214,.6);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.cta-plate::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at var(--mx, 80%) var(--my, 0%), rgba(255,214,170,.7), transparent 60%); }
.cta-plate::after { content: "GC"; position: absolute; right: -0.06em; bottom: -0.22em; z-index: -1; font: 700 clamp(160px, 22vw, 320px)/1 var(--sans); letter-spacing: -.06em; color: rgba(27,25,22,.07); }
.cta-plate h2 { font-size: clamp(40px, 5.2vw, 84px); max-width: 15ch; }
.cta-plate em { color: var(--ink); }
.cta-plate .sub { color: rgba(27,25,22,.75); max-width: 520px; }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 30px var(--pad) 40px; font-size: 13px; color: var(--dim); border-top: 1px solid rgba(246,237,227,.08); background: rgba(30,16,10,.4); }
.foot a:hover { color: var(--cream); }

/* REVEALS: things arrive out of focus and settle */
[data-reveal] { opacity: 0; transform: translateY(30px) scale(.985); filter: blur(12px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
.svc[data-reveal] { transform: perspective(900px) translateY(50px) rotateX(18deg); }
.svc[data-reveal].in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.cta-plate[data-reveal] { transform: perspective(1400px) translateY(60px) rotateX(14deg); }
.cta-plate[data-reveal].in { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
[data-reveal].settled { transition: none; filter: none; }
.glass[data-reveal].settled { transition: none; }
/* split headings: words rise out of a mask */
.split[data-reveal], .split { opacity: 1; transform: none; filter: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .07em .1em; margin: 0 -.07em -.1em; }
.split .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0ms) + var(--i) * 55ms + 80ms); }
.split.in .w > span { transform: none; }

/* THEATER */
.theater { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.theater.open { visibility: visible; }
.th-backdrop { position: absolute; inset: 0; background: rgba(18,9,5,.86); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); opacity: 0; transition: opacity .6s var(--ease); }
.theater.open .th-backdrop { opacity: 1; }
.th-body { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 56px; padding: 40px 100px; pointer-events: none; }
.th-body > * { pointer-events: auto; }
.th-info { width: 300px; display: flex; flex-direction: column; gap: 16px; opacity: 0; transform: translateX(-20px); transition: opacity .7s var(--ease) .1s, transform .7s var(--ease) .1s; }
.theater.open .th-info { opacity: 1; transform: none; }
.th-info h3 { font-size: 32px; letter-spacing: -0.04em; line-height: 1.05; font-weight: 650; }
.th-info p { color: var(--dim); font-size: 15px; }
.th-info .th-hint { font-size: 10px; letter-spacing: .16em; color: var(--dim); opacity: .8; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(246,237,227,.07); border: 1px solid rgba(246,237,227,.14); width: max-content; }
.seg button { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; color: var(--dim); transition: background .4s var(--ease), color .4s; }
.seg button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.th-player { height: min(86svh, 900px); aspect-ratio: 9 / 16.9; display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.theater.open .th-player { opacity: 1; transform: none; }
.th-frame { position: relative; flex: 1; border-radius: 26px; overflow: hidden; background: #0b0604; box-shadow: 0 0 0 1px rgba(246,237,227,.12), 0 40px 100px -20px rgba(0,0,0,.9); }
.th-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b0604; }
.th-frame video.raw { visibility: hidden; }
.th-frame.compare video.raw, .th-frame.show-raw video.raw { visibility: visible; }
.th-frame.compare #thVideo { clip-path: inset(0 0 0 var(--wipe, 50%)); }
.th-frame.show-raw #thVideo { visibility: hidden; }
.wipe { position: absolute; inset: 0; cursor: ew-resize; touch-action: none; }
.wipe-line { position: absolute; top: 0; bottom: 0; left: var(--wipe, 50%); width: 2px; margin-left: -1px; background: var(--cream); box-shadow: 0 0 20px rgba(0,0,0,.5); }
.wipe-knob { position: absolute; top: 50%; left: var(--wipe, 50%); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--cream); color: var(--ink); display: grid; place-items: center; font-size: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.wipe-lab { position: absolute; top: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; padding: 6px 10px; border-radius: 999px; background: rgba(20,10,6,.6); backdrop-filter: blur(6px); }
.wipe-lab.l { left: 16px; } .wipe-lab.r { right: 16px; }
.th-bigplay { position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(246,237,227,.92); opacity: 0; transform: scale(.9); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; }
.th-bigplay::after { content: ""; position: absolute; left: 34px; top: 27px; border-left: 22px solid var(--ink); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.th-frame.paused .th-bigplay { opacity: 1; transform: scale(1); pointer-events: auto; }
.th-controls { display: flex; align-items: center; gap: 14px; padding: 0 4px; }
.ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(246,237,227,.08); border: 1px solid rgba(246,237,227,.14); flex: none; position: relative; }
#thPlay::after { content: ""; width: 10px; height: 12px; border-left: 3px solid var(--cream); border-right: 3px solid var(--cream); box-sizing: border-box; }
#thPlay.is-paused::after { width: 0; height: 0; border: 0; border-left: 11px solid var(--cream); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
#thMute::after { content: "SND"; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
#thMute.is-muted::after { content: "OFF"; opacity: .6; }
.scrub { position: relative; flex: 1; height: 26px; cursor: pointer; touch-action: none; }
.scrub::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: rgba(246,237,227,.18); border-radius: 2px; }
.scrub-fill { position: absolute; left: 0; top: 12px; height: 2px; background: var(--cream); border-radius: 2px; width: 0; }
.scrub-knob { position: absolute; top: 7px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--cream); left: 0; }
.th-controls .t { font-size: 11px; letter-spacing: .1em; min-width: 82px; text-align: right; color: var(--dim); }
.th-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; font-size: 26px; line-height: 1; background: rgba(246,237,227,.07); border: 1px solid rgba(246,237,227,.14); transition: background .3s; }
.th-nav:hover { background: rgba(246,237,227,.16); }
.th-nav.prev { left: 28px; } .th-nav.next { right: 28px; }
.th-close { position: absolute; top: 24px; right: 28px; width: 46px; height: 46px; border-radius: 50%; background: rgba(246,237,227,.07); border: 1px solid rgba(246,237,227,.14); font-size: 16px; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .work { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .work-side { position: static; min-width: 0; }
  .work-side .tabs { flex-direction: row; width: max-content; border-radius: 999px; margin-bottom: 48px; }
  .work-side .tab { padding: 11px 20px; font-size: 14px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-also { grid-template-columns: 1fr; gap: 14px; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-id { order: 2; }
  .th-info { display: none; }
  .tl { right: -4%; transform: translateZ(170px) rotateY(-14deg) rotateX(8deg) scale(.85); transform-origin: 100% 100%; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .brand-name { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 100px; gap: 0; min-height: auto; }
  .hero-copy { gap: 22px; }
  .dotgrid { -webkit-mask: radial-gradient(90% 40% at 30% 20%, #000, transparent 75%); mask: radial-gradient(90% 40% at 30% 20%, #000, transparent 75%); }
  .hide-sm { display: none; }
  .phones { height: 540px; margin-top: 10px; }
  .phone { width: 168px; border-radius: 34px; padding: 7px; }
  .phone .screen, .phone::after { border-radius: 28px; }
  .phone::after { inset: 7px; }
  .island { top: 14px; height: 17px; }
  .phone-l { --base: translate(-108%, -46%) translateZ(-60px) rotateY(20deg) rotateX(3deg) scale(.84); }
  .phone-r { --base: translate(8%, -54%) translateZ(-30px) rotateY(-26deg) rotateX(5deg) scale(.86); }
  .halo-top { --hs: 360px; transform: translateY(-206px) rotateX(72deg); }
  .halo-bot { --hs: 300px; transform: translateY(186px) rotateX(74deg); }
  .beam { width: 200px; margin-left: -100px; }
  .tl { right: 2%; bottom: 2%; width: 250px; transform: translateZ(170px) rotateY(-10deg) rotateX(8deg) scale(.82); transform-origin: 100% 100%; }
  .phones-tag { left: 0; right: auto; }
  .scroll-cue { display: none; }
  .work, .services, .cta { padding-block: 90px; }
  .plate { padding: 90px var(--pad) 80px; border-radius: 26px; }
  .plate-tile { top: 40px; }
  .process { padding: 20px 10px; }
  .grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: calc(var(--pad) * -1); padding: 10px var(--pad) 30px; scrollbar-width: none; perspective: 1000px; }
  .grid::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 72vw; max-width: 320px; scroll-snap-align: center; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .glyph { height: 76px; margin-bottom: 10px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .cta-plate { padding: 40px 26px 44px; border-radius: 24px; }
  .th-body { padding: 0; }
  .th-player { height: 100svh; width: 100vw; aspect-ratio: auto; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); }
  .th-frame { border-radius: 20px; }
  .th-nav { display: none; }
  .th-close { top: 24px; right: 24px; z-index: 3; background: rgba(20,10,6,.6); }
  .th-frame video { object-fit: cover; }
  .th-info { display: flex; position: absolute; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 2; align-items: center; pointer-events: none; transform: none !important; }
  .th-info .seg { background: rgba(20,10,6,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .wipe-lab { top: auto; bottom: 74px; }
  .th-info h3, .th-info p, .th-info .th-hint, .th-info .hud { display: none; }
  .th-info .seg { pointer-events: auto; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .cta-row { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal], .card { opacity: 1; transform: none; filter: none; }
  .split .w > span { transform: none; }
  .loader { display: none; }
}
/* desktop: keep the edit panel fully on screen, clear of the centre phone */
@media (min-width: 1101px) { .tl { right: 3%; bottom: 12%; transform: translateZ(240px) rotateY(-14deg) rotateX(8deg) scale(.8); transform-origin: 100% 100%; } }
/* short laptop screens: less empty space between the nav and the headline */
@media (min-width: 901px) and (max-height: 950px) {
  .hero { padding-top: 84px; padding-bottom: 56px; }
  .hero-copy { gap: 24px; }
  .phones { height: 80svh; }
  .tl { right: 3%; }
}
/* portrait tablets (iPad Pro, iPad Air): stack the hero like phones, copy on top, phones below */
@media (min-width: 901px) and (max-width: 1100px) and (orientation: portrait) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; gap: 10px; min-height: auto; }
  .hero-copy { max-width: 760px; }
  .phones { height: 680px; }
  .tl { right: 4%; bottom: 4%; }
}
/* landscape tablets: keep the paragraph narrow so the light's fold has room before the phones */
@media (min-width: 901px) and (max-width: 1100px) and (orientation: landscape) { .lede { max-width: 350px; font-size: 16px; } }
