/* Giantic Studios — studio site.
   Ground and type follow the Omniat app (near-black, Manrope 500–800);
   the accents are the four colours of the Giantic Studios logo. */

@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(fonts/Manrope-Medium.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(fonts/Manrope-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(fonts/Manrope-Bold.ttf) format("truetype"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(fonts/Manrope-ExtraBold.ttf) format("truetype"); }

:root {
  --bg: #08080A;
  --bg-2: #0E0D0D;          /* Omniat dark ground */
  --panel: #121214;
  --ink: #FEFDF2;           /* logo cream */
  --muted: rgba(254,253,242,.62);
  --faint: rgba(254,253,242,.38);
  --line: rgba(254,253,242,.10);
  --line-2: rgba(254,253,242,.18);
  --blue: #368ED0;
  --red: #FA3633;
  --green: #2C9D5C;
  --pink: #E45D83;
  --omniat: #B484AB;        /* Omniat purple, dark variant */
  --spectrum: linear-gradient(90deg, var(--blue), var(--green), var(--pink), var(--red));
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gut: max(16px, env(safe-area-inset-left));
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
  font: 500 1.0625rem/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::after { /* film grain, static so it costs nothing per frame */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--pink); color: var(--bg); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.wrap { width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; position: relative; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
section { position: relative; isolation: isolate; } /* keeps z-index:-1 backgrounds above the page */
h2 { font-size: clamp(2.6rem, 7.4vw, 6.4rem); }

/* ─── Boot sequence ───────────────────────────────────── */
.boot { display: none; }
.js .boot {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 150; background: var(--bg);
  transition: clip-path 1s var(--ease-in-out), visibility 0s 1s; clip-path: inset(0 0 0 0);
}
.boot.done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.boot-in { width: min(420px, 80vw); display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; font-size: .78rem; color: var(--muted); }
.boot-status::after { content: "_"; animation: blinkc .8s steps(1) infinite; }
.boot-count { grid-row: span 2; align-self: end; font-size: 2.6rem; color: var(--ink); line-height: 1; letter-spacing: 0; }
.boot-bar { grid-column: 1 / -1; height: 2px; background: var(--line); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 100%; background: var(--spectrum); transform-origin: left; transform: scaleX(var(--b, 0)); }
@keyframes blinkc { 50% { opacity: 0; } }

/* ─── Scroll progress ─────────────────────────────────── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--spectrum); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ─── Custom cursor (fine pointers only) ──────────────── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js.has-cursor, .js.has-cursor a, .js.has-cursor button, .js.has-cursor [tabindex] { cursor: none; }
  .js.has-cursor .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 140; }
  .cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); }
  .cursor-ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(254,253,242,.5);
    display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, border-color .35s;
  }
  .cursor-label { font: 700 .72rem/1 Manrope, sans-serif; color: var(--bg); letter-spacing: .02em; opacity: 0; transition: opacity .2s; }
  .cursor.hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: rgba(254,253,242,.85); background: transparent; }
  .cursor.label .cursor-ring { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--ink); }
  .cursor.label .cursor-label { opacity: 1; }
  .cursor.label .cursor-dot { opacity: 0; }
  .cursor.down .cursor-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
}

/* ─── Tooltip ─────────────────────────────────────────── */
.tip {
  position: fixed; left: 0; top: 0; z-index: 130; pointer-events: none; max-width: 260px;
  padding: 8px 12px; border-radius: 10px; font-size: .74rem; line-height: 1.45; color: var(--ink);
  background: rgba(18,18,20,.92); border: 1px solid var(--line-2); box-shadow: 0 14px 40px -16px #000;
  opacity: 0; transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(.92); transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.tip.show { opacity: 1; transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(1); }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .5s var(--ease), border-color .3s, color .35s var(--ease), box-shadow .4s var(--ease);
}
.btn b { display: inline-block; transition: transform .45s var(--ease); font-weight: 700; }
.btn:hover b { transform: translateX(5px); }
.btn::before { /* fill sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid::before { background: var(--spectrum); }
.btn-solid:hover { color: var(--ink); box-shadow: 0 18px 50px -18px rgba(228,93,131,.65), 0 10px 40px -20px rgba(54,142,208,.7); }
.btn-solid:hover::before { transform: none; }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); background: rgba(254,253,242,.02); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: var(--bg); border-color: var(--ink); }
.btn-line:hover::before { transform: none; }
.btn.big { min-height: 58px; padding: 0 30px; font-size: 1.05rem; }
.magnetic { will-change: transform; }

/* ─── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px var(--gut); padding-top: max(14px, env(safe-area-inset-top));
  transition: background-color .4s, border-color .4s, transform .5s var(--ease); border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(8,8,10,.72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav-logo { display: block; width: 96px; flex: none; transition: transform .5s var(--ease); }
.nav-logo:hover { transform: rotate(-4deg) scale(1.06); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(14,13,13,.5); }
.nav-links a { position: relative; display: block; padding: 9px 16px; border-radius: 999px; font-size: .9rem; font-weight: 700; text-decoration: none; color: var(--muted); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--spectrum); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); transform-origin: left; }
.nav-end { display: flex; align-items: center; gap: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--muted); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.status i, .live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(44,157,92,.6); animation: ping 2s var(--ease) infinite; display: inline-block; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(44,157,92,.6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(44,157,92,0); } }

/* ─── Hero ────────────────────────────────────────────── */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120px var(--gut) 110px; overflow: hidden; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%; overflow: hidden;
  transform: perspective(600px) rotateX(62deg); transform-origin: center top;
  mask-image: linear-gradient(to top, #000 10%, transparent 80%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 80%);
}
.grid-floor::before { /* moved by transform only, so the compositor does the work */
  content: ""; position: absolute; left: 0; right: 0; top: -64px; bottom: 0; will-change: transform;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; animation: grid-move 4s linear infinite;
}
.hero.off .grid-floor::before, .hero.off .aurora, .hero.off .scroll-hint i { animation-play-state: paused; }
@keyframes grid-move { to { transform: translateY(64px); } }
/* Soft colour fields: radial gradients instead of filter: blur(), which re-blurs every frame */
.aurora { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; opacity: .5; }
.a1 { background: radial-gradient(closest-side, rgba(54,142,208,.55), rgba(54,142,208,0)); left: -26%; top: -36%; animation: drift1 18s ease-in-out infinite; }
.a2 { background: radial-gradient(closest-side, rgba(228,93,131,.5), rgba(228,93,131,0)); right: -28%; top: -30%; animation: drift2 22s ease-in-out infinite; }
.a3 { background: radial-gradient(closest-side, rgba(44,157,92,.4), rgba(44,157,92,0)); left: -6%; bottom: -50%; animation: drift2 26s ease-in-out infinite reverse; }
.a4 { background: radial-gradient(closest-side, rgba(250,54,51,.35), rgba(250,54,51,0)); right: -10%; bottom: -54%; animation: drift1 20s ease-in-out infinite reverse; }
@keyframes drift1 { 50% { transform: translate(8vw, 6vh) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(-7vw, 8vh) scale(.92); } }
.hud { position: absolute; inset: 88px var(--gut) 26px; pointer-events: none; font-size: .68rem; color: var(--faint); }
.hud > span { position: absolute; }
.hud b { color: var(--muted); font-weight: 500; }
.hud-tl { left: 0; top: 0; } .hud-tr { right: 0; top: 0; } .hud-bl { left: 0; bottom: 0; } .hud-br { right: 0; bottom: 0; }
.blink { animation: blinkc 1.6s steps(1) infinite; color: var(--green) !important; }
.hero-logo { position: relative; width: min(860px, 92vw); aspect-ratio: 866 / 404; }
#logo-canvas { position: absolute; inset: -14% -8%; width: 116%; height: 128%; }
.logo-fallback { width: 100%; }
.js .logo-fallback { opacity: 0; position: absolute; inset: 0; pointer-events: none; transition: opacity 1s var(--ease); }
.hero-copy { max-width: 820px; margin-top: clamp(26px, 5vh, 56px); display: grid; justify-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-bottom: 20px; }
.dot-row { display: inline-flex; gap: 4px; }
.dot-row i { width: 6px; height: 6px; border-radius: 50%; }
.dot-row i:nth-child(1) { background: var(--blue); } .dot-row i:nth-child(2) { background: var(--green); }
.dot-row i:nth-child(3) { background: var(--pink); } .dot-row i:nth-child(4) { background: var(--red); }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 5.4rem); max-width: 14ch; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 58ch; margin-top: 24px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: .66rem; color: var(--faint); text-decoration: none; text-transform: uppercase; letter-spacing: .24em; }
.scroll-hint i { width: 1px; height: 44px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ─── Text animation helpers ──────────────────────────── */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.js [data-split].in .w > span { transform: none; }
.js .reveal-up { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal-up.in { opacity: 1; transform: none; }

/* ─── Ticker ──────────────────────────────────────────── */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); background: var(--bg-2); }
.ticker-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: tick 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ticker .c1 { background: var(--blue); } .ticker .c2 { background: var(--green); } .ticker .c3 { background: var(--pink); } .ticker .c4 { background: var(--red); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ─── Section labels ──────────────────────────────────── */
.label { display: flex; align-items: center; gap: 14px; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .2em; margin-bottom: 30px; }
.label span { color: var(--ink); padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 6px; letter-spacing: .06em; }
.label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* ─── Studio ──────────────────────────────────────────── */
.studio { padding: clamp(110px, 16vw, 200px) 0 clamp(90px, 12vw, 160px); }
.manifesto { font-size: clamp(1.9rem, 4.4vw, 3.9rem); line-height: 1.12; letter-spacing: -.03em; max-width: 24ch; }
.manifesto .wd { color: rgba(254,253,242,.14); transition: color .5s var(--ease); }
.manifesto .wd.lit { color: var(--ink); }
.manifesto .wd.hl.lit { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.studio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(70px, 9vw, 120px); background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.stat { background: var(--bg); padding: 34px 30px 36px; position: relative; overflow: hidden; transition: background-color .5s var(--ease); }
.stat::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.stat[data-c="1"]::before { background: var(--blue); } .stat[data-c="2"]::before { background: var(--green); } .stat[data-c="3"]::before { background: var(--pink); }
.stat:hover { background: var(--panel); }
.stat:hover::before { transform: scaleX(1); }
.stat span { font-size: .72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .2em; }
.stat strong { display: block; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; margin: 14px 0 12px; }
.stat p { color: var(--muted); font-size: .98rem; }

/* ─── Omniat connector ────────────────────────────────── */
.products { padding: clamp(90px, 12vw, 160px) 0; background: radial-gradient(70% 60% at 50% 55%, rgba(180,132,171,.10), transparent 70%), var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.link-rig { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 14px; margin: 54px 0 34px; }
.node { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }
.node-dots { display: grid; grid-template-columns: repeat(2, 7px); gap: 3px; }
.node-dots i { width: 7px; height: 7px; border-radius: 50%; animation: nodepulse 2.4s var(--ease) infinite; }
.node-dots i:nth-child(1) { background: var(--blue); } .node-dots i:nth-child(2) { background: var(--green); animation-delay: .2s; }
.node-dots i:nth-child(3) { background: var(--pink); animation-delay: .4s; } .node-dots i:nth-child(4) { background: var(--red); animation-delay: .6s; }
@keyframes nodepulse { 50% { transform: scale(.6); opacity: .6; } }
.node-o { border-color: rgba(180,132,171,.45); box-shadow: 0 0 30px -10px var(--omniat); }
.node-mark { width: 34px; height: 16px; fill: var(--omniat); }
.wire { position: relative; height: 40px; }
.wire svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire-base { stroke: var(--line-2); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.wire-flow { stroke: url(#wire-g); stroke-width: 2; fill: none; stroke-dasharray: 6 10; vector-effect: non-scaling-stroke; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.pulse { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 16px 4px rgba(180,132,171,.8); animation: travel 2.6s var(--ease-in-out) infinite; }
.pulse.p2 { animation-delay: .87s; background: var(--blue); box-shadow: 0 0 16px 4px rgba(54,142,208,.8); }
.pulse.p3 { animation-delay: 1.74s; background: var(--pink); box-shadow: 0 0 16px 4px rgba(228,93,131,.8); }
@keyframes travel { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.products:has(.portal:hover) .wire-l .pulse, .products:has(.hportal:hover) .wire-r .pulse { animation-duration: 1.2s; }
.products:has(.portal:hover) .wire-l .wire-flow, .products:has(.hportal:hover) .wire-r .wire-flow { animation-duration: .5s; }
.wire-tag { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); font-size: .64rem; color: var(--faint); text-transform: uppercase; letter-spacing: .24em; }

.portal {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: center; text-decoration: none;
  padding: clamp(28px, 5vw, 64px); border-radius: 36px; background: linear-gradient(160deg, #141214, #0B0A0B); isolation: isolate; overflow: hidden;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow: 0 40px 120px -50px rgba(180,132,171,.45);
}
.portal:hover { box-shadow: 0 50px 140px -40px rgba(180,132,171,.7); }
.portal-border { position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--ang, 0deg), rgba(180,132,171,.9), rgba(241,238,238,.35), rgba(241,238,238,.06), rgba(180,132,171,.55), rgba(180,132,171,.9));
  -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);
  animation: spin-border 8s linear infinite;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --ang: 360deg; } }
.spot { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c, var(--omniat)) 22%, transparent), transparent 60%); }
.tilt:hover .spot, .tilt:focus-visible .spot { opacity: 1; }
.portal-top { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; padding: 7px 12px; border-radius: 999px; background: rgba(180,132,171,.16); color: var(--omniat); }
.chip.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
.portal-mark { width: min(260px, 60%); margin: 40px 0 30px; overflow: visible; }
.portal-mark path { fill: var(--omniat); fill-opacity: 0; stroke: var(--omniat); stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.portal.in .portal-mark path { animation: draw 1.6s var(--ease) forwards, fillin .8s var(--ease) 1.2s forwards; }
.portal.in .portal-mark path + path { animation-delay: .3s, 1.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; stroke-width: 0; } }
.portal-title { font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; max-width: 18ch; }
.portal-desc { color: var(--muted); margin-top: 16px; max-width: 44ch; }
.portal-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; padding: 15px 26px; border-radius: 999px; background: var(--omniat); color: #0E0D0D; font-weight: 800; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.portal-cta b { transition: transform .45s var(--ease); }
.portal:hover .portal-cta { transform: translateY(-3px); box-shadow: 0 16px 40px -14px var(--omniat); }
.portal:hover .portal-cta b { transform: translateX(6px); }
.portal-side { display: grid; place-items: center; }
.orbit { position: relative; width: min(380px, 100%); aspect-ratio: 1; transform-style: preserve-3d; }
.orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(180,132,171,.28); }
.orbit .r1 { animation: rot 22s linear infinite; border-style: dashed; }
.orbit .r2 { inset: 14%; border-color: rgba(254,253,242,.12); transform: rotateX(68deg); animation: rotx 14s linear infinite; }
.orbit .r3 { inset: 28%; border-color: rgba(180,132,171,.5); transform: rotateY(68deg); animation: roty 10s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes rotx { to { transform: rotateX(68deg) rotateZ(360deg); } }
@keyframes roty { to { transform: rotateY(68deg) rotateZ(-360deg); } }
.orbit { container-type: inline-size; }
.sat { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; animation: sat 12s linear infinite; }
.sat.s1 { background: #B484AB; color: #B484AB; } .sat.s2 { background: #F1EEEE; color: rgba(241,238,238,.6); animation-delay: -4s; }
.sat.s3 { background: #85597D; color: #85597D; animation-delay: -8s; }
.sat { box-shadow: 0 0 14px 2px currentColor; }
@keyframes sat { from { transform: rotate(0deg) translateX(50cqi) rotate(0deg); } to { transform: rotate(360deg) translateX(50cqi) rotate(-360deg); } }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 42%; height: 20%; transform: translate(-50%, -50%); fill: var(--omniat); filter: drop-shadow(0 0 24px rgba(180,132,171,.6)); animation: hover-core 5s ease-in-out infinite; }
@keyframes hover-core { 50% { transform: translate(-50%, -58%); } }
.portal:hover .orbit .r1 { animation-duration: 8s; }

.loop-chips { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.loop-chips li { position: relative; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; font-weight: 700; color: var(--muted); transition: color .3s, border-color .3s, background-color .3s, transform .4s var(--ease); }
.loop-chips li:hover, .loop-chips li:focus-visible, .loop-chips li.cyc { color: var(--ink); border-color: var(--omniat); background: rgba(180,132,171,.12); transform: translateY(-3px); }

/* ─── Approach cards ──────────────────────────────────── */
.approach { padding: clamp(110px, 15vw, 190px) 0; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.card {
  --rx: 0deg; --ry: 0deg;
  position: relative; padding: 30px 26px 34px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; isolation: isolate; outline-offset: 4px;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0); transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease), opacity 1s var(--ease);
}
.card:hover, .card:focus-visible { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 30px 80px -40px var(--c); }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.card:hover::after, .card:focus-visible::after { transform: scaleX(1); }
.card-n { font-size: .72rem; color: var(--faint); }
.card-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 26px 0 30px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); transition: transform .6s var(--ease), background-color .4s; }
.card-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card-ico, .card:focus-visible .card-ico { transform: rotate(-8deg) scale(1.1); background: var(--c); color: var(--bg); }
.card h3 { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .97rem; }
.card .more { max-height: 0; opacity: 0; margin-top: 0; overflow: hidden; color: var(--ink); transition: max-height .6s var(--ease), opacity .4s, margin-top .6s var(--ease); }
.card:hover .more, .card:focus-visible .more { max-height: 8em; opacity: 1; margin-top: 14px; }

/* ─── Now / timeline ──────────────────────────────────── */
.now { padding: clamp(100px, 14vw, 180px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.timeline { list-style: none; padding: 0; margin: 70px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; z-index: 1; }
.timeline li { position: relative; padding: 46px 28px 32px; border-radius: 24px; border: 1px solid var(--line); background: var(--bg); transition: transform .5s var(--ease), border-color .4s, opacity 1s var(--ease); }
.timeline li::before { content: ""; position: absolute; top: -9px; left: 28px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--c); box-shadow: 0 0 20px -2px var(--c); }
.timeline li:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.t-state { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: var(--c); }
.timeline h3 { font-size: 1.5rem; margin: 14px 0 10px; }
.timeline p { color: var(--muted); }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); z-index: -1; }
.timeline::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--spectrum); z-index: -1; transform: scaleX(var(--tl, 0)); transform-origin: left; }

/* ─── Final CTA ───────────────────────────────────────── */
.final { padding: clamp(130px, 18vw, 240px) 0; text-align: center; overflow: hidden; }
.final .wrap { display: grid; justify-items: center; }
.final h2 { font-size: clamp(2.8rem, 9vw, 8.4rem); max-width: 12ch; }
.final-glow { position: absolute; width: 80vmax; height: 80vmax; left: calc(var(--gx, 50%) - 40vmax); top: calc(var(--gy, 50%) - 40vmax); border-radius: 50%; pointer-events: none; z-index: -1; opacity: .8; will-change: transform;
  background: radial-gradient(closest-side at 30% 35%, rgba(54,142,208,.55), transparent), radial-gradient(closest-side at 70% 35%, rgba(228,93,131,.5), transparent), radial-gradient(closest-side at 35% 70%, rgba(44,157,92,.45), transparent), radial-gradient(closest-side at 70% 68%, rgba(250,54,51,.4), transparent);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent);
  animation: rot 16s linear infinite; transition: left 1.2s var(--ease), top 1.2s var(--ease); }

/* ─── Footer ──────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 60px 0 max(36px, env(safe-area-inset-bottom)); overflow: hidden; }
.foot-word { display: flex; justify-content: space-between; font-size: clamp(4rem, 17vw, 16.5rem); font-weight: 800; letter-spacing: -.05em; line-height: .85; user-select: none; }
.foot-word span { color: transparent; -webkit-text-stroke: 1.5px rgba(254,253,242,.18); transition: color .5s var(--ease), -webkit-text-stroke-color .5s, transform .6s var(--ease); display: inline-block; }
.foot-word span:hover { transform: translateY(-6%); }
.foot-word span:nth-child(4n+1):hover { color: var(--blue); -webkit-text-stroke-color: var(--blue); }
.foot-word span:nth-child(4n+2):hover { color: var(--green); -webkit-text-stroke-color: var(--green); }
.foot-word span:nth-child(4n+3):hover { color: var(--pink); -webkit-text-stroke-color: var(--pink); }
.foot-word span:nth-child(4n+4):hover { color: var(--red); -webkit-text-stroke-color: var(--red); }
.foot-row { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.foot-logo { width: 110px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: center; }
.foot nav a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: .92rem; transition: color .3s; min-height: 44px; display: inline-flex; align-items: center; }
.foot nav a:hover { color: var(--ink); }
.foot-meta { text-align: right; font-size: .85rem; color: var(--muted); display: grid; gap: 6px; }
.foot-meta a { color: var(--ink); }
.foot-meta .mono { font-size: .75rem; color: var(--faint); }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .status { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .portal { grid-template-columns: 1fr; }
  .portal-side { order: -1; }
  .orbit { width: min(240px, 70%); }
  .portal-mark { display: none; }
  .portal-top { justify-content: flex-start; }
  .studio-grid, .timeline { grid-template-columns: 1fr; }
  .timeline { gap: 26px; }
  .foot-row { grid-template-columns: 1fr; justify-items: start; }
  .foot nav { justify-content: flex-start; }
  .foot-meta { text-align: left; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hud-tr, .hud-bl { display: none; }
  .a3, .a4 { display: none; } /* fewer large layers on phones */
  .cards { grid-template-columns: 1fr; }
  .link-rig { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .wire { width: 2px; height: 70px; }
  .wire svg { display: none; }
  .wire::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--blue), var(--pink), var(--omniat)); }
  .pulse { left: 50% !important; animation-name: travel-y; }
  @keyframes travel-y { 0% { top: 0; opacity: 0; } 10%, 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
  .wire-tag { top: 50%; left: 14px; transform: translateY(-50%); }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .nav-logo { width: 84px; }
  .card .more { max-height: none; opacity: 1; margin-top: 14px; color: var(--muted); }
}

/* ─── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .js .reveal-up, .js [data-split] .w > span { opacity: 1; transform: none; }
  .portal-mark path { fill-opacity: 1; stroke-width: 0; stroke-dashoffset: 0; }
  .manifesto .wd { color: var(--ink); }
  .js .boot { display: none; }
  .pulse, .grid-floor, .aurora { animation: none !important; }
}

/* Reveal + interaction on the same element: keep tilt and lift working after reveal */
.js .card.reveal-up { transition: opacity 1s var(--ease), transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease); transition-delay: var(--rd, 0s), 0s, 0s, 0s; }
.js .card.reveal-up.in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.js .timeline li.reveal-up { transition: opacity 1s var(--ease), transform .5s var(--ease), border-color .4s; transition-delay: var(--rd, 0s), 0s, 0s; }
.js .timeline li.reveal-up.in:hover { transform: translateY(-6px); }


/* ─── Products: connector to both, and each product in its own style ─── */
.lede.left { text-align: left; margin-top: 18px; }
.wire-l .pulse { animation-name: travel-back; }
@keyframes travel-back { 0% { left: 100%; opacity: 0; } 10%, 90% { opacity: 1; } 100% { left: 0; opacity: 0; } }
.wire-r .pulse { background: #F7F4ED; box-shadow: 0 0 16px 4px rgba(191,97,61,.8); }
.wire-r .pulse.p2 { background: var(--pink); box-shadow: 0 0 16px 4px rgba(228,93,131,.8); }
.wire .pulse.p2 { animation-delay: 1.3s; }
.node-h { background: #F7F4ED; color: #1B1A16; border-color: #F7F4ED; box-shadow: 0 0 30px -10px #BF613D; gap: 2px; text-transform: none; letter-spacing: 0; }
.node-star { width: 8px; height: 8px; fill: #BF613D; align-self: flex-start; margin-top: 2px; }
.h-word { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; line-height: 1; font-weight: 500; }
.portal { margin-bottom: 0; }

/* humanly card: linen, serif wordmark, terracotta star (from the campaign) */
.hportal {
  --rx: 0deg; --ry: 0deg;
  position: relative; isolation: isolate; overflow: hidden; margin-top: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 36px; background: #F7F4ED; color: #1B1A16; font-family: Inter, system-ui, sans-serif;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow: 0 40px 120px -50px rgba(191,97,61,.55);
}
.hportal:hover { box-shadow: 0 50px 140px -40px rgba(191,97,61,.75); }
.hportal .spot { background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(191,97,61,.14), transparent 60%); }
.h-top { display: flex; flex-wrap: wrap; gap: 8px; }
.h-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(27,26,22,.14); color: rgba(27,26,22,.7); text-decoration: none; }
.live-ks { background: #1B1A16; color: #F7F4ED; border-color: #1B1A16; transition: background-color .3s; }
.live-ks:hover { background: #BF613D; border-color: #BF613D; }
.live-ks i { width: 7px; height: 7px; border-radius: 50%; background: #DB835F; animation: ping-t 2s var(--ease) infinite; }
@keyframes ping-t { 0% { box-shadow: 0 0 0 0 rgba(219,131,95,.7); } 80%, 100% { box-shadow: 0 0 0 9px rgba(219,131,95,0); } }
.h-cd { font-weight: 600; font-variant-numeric: tabular-nums; opacity: .8; }
.h-cd:empty { display: none; }
.h-brand { display: flex; align-items: flex-start; gap: 3px; margin: 34px 0 18px; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: clamp(3.6rem, 8vw, 6rem); line-height: .9; letter-spacing: -.01em; }
.h-star { width: 16px; height: 16px; fill: #BF613D; margin-top: 6px; animation: h-twinkle 5s ease-in-out infinite; }
@keyframes h-twinkle { 50% { transform: scale(.75) rotate(45deg); } }
.h-title { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; }
.h-title span { color: #BF613D; }
.h-desc { color: rgba(27,26,22,.68); margin-top: 14px; max-width: 46ch; line-height: 1.6; }
.h-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.h-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .4s var(--ease), background-color .3s, box-shadow .4s var(--ease); }
.h-btn b { transition: transform .4s var(--ease); }
.h-btn:hover { transform: translateY(-2px); }
.h-btn:hover b { transform: translateX(4px); }
.h-btn.dark { background: #1B1A16; color: #F7F4ED; }
.h-btn.terra { background: #BF613D; color: #fff; }
.h-btn.terra:hover { background: #A9532F; box-shadow: 0 14px 34px -14px rgba(191,97,61,.8); }
.h-side { position: relative; height: 360px; }
.h-card { position: absolute; width: min(300px, 90%); background: #fff; border: 1px solid rgba(27,26,22,.1); border-radius: 18px; padding: 16px 18px; box-shadow: 0 20px 40px -26px rgba(27,26,22,.45); transition: transform .6s var(--ease); }
.h-card small { font-size: .72rem; color: rgba(27,26,22,.5); }
.h-card small.t { color: #9E4C2D; }
.h-card p { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 500; line-height: 1.15; margin-top: 4px; }
.h-card.c1 { top: 6%; left: 0; transform: rotate(-3deg); animation: h-float 7s ease-in-out infinite; }
.h-card.c2 { top: 36%; right: 0; transform: rotate(2deg); animation: h-float 8s ease-in-out -2s infinite; }
.h-card.c3 { bottom: 4%; left: 8%; transform: rotate(-1deg); animation: h-float 9s ease-in-out -4s infinite; }
@keyframes h-float { 50% { translate: 0 -8px; } }
.hportal:hover .h-card.c1 { transform: rotate(-5deg) translateX(-6px); } .hportal:hover .h-card.c2 { transform: rotate(4deg) translateX(6px); } .hportal:hover .h-card.c3 { transform: rotate(-2deg) translateY(4px); }
.h-badge { position: absolute; right: 2%; bottom: -2%; width: 118px; height: 118px; border-radius: 50%; background: #0A0908; display: grid; place-items: center; }
.h-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: rot 24s linear infinite; }
.h-badge text { fill: #F5F2EA; font: 600 11px Inter, sans-serif; letter-spacing: .3em; }
.h-badge span { font-family: "Cormorant Garamond", Georgia, serif; color: #F5F2EA; font-size: 1.3rem; }

/* Now: four entries, one with a link */
.timeline { grid-template-columns: repeat(4, 1fr); }
.live.red { background: var(--red); animation-name: ping-r; }
@keyframes ping-r { 0% { box-shadow: 0 0 0 0 rgba(250,54,51,.6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(250,54,51,0); } }
.t-link { display: inline-flex; gap: 8px; margin-top: 16px; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.t-link b { transition: transform .4s var(--ease); }
.t-link:hover b { transform: translateX(4px); }
a.status { text-decoration: none; transition: border-color .3s, color .3s; }
a.status:hover { border-color: var(--red); color: var(--ink); }
a.status i { background: var(--red); animation-name: ping-r; }

@media (max-width: 1080px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .hportal { grid-template-columns: 1fr; }
  .h-side { height: 300px; }
  .timeline { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .link-rig { grid-template-columns: 1fr auto 1fr; grid-template-areas: "g g g" "wl . wr" "o . h"; justify-items: center; gap: 0; }
  .node-g { grid-area: g; } .wire-l { grid-area: wl; } .wire-r { grid-area: wr; } .node-o { grid-area: o; } .node-h { grid-area: h; }
  .wire { width: 2px; height: 46px; }
  .wire-l::before { background: linear-gradient(var(--blue), var(--omniat)); }
  .wire-r::before { background: linear-gradient(var(--pink), #BF613D); }
  .wire-l .pulse { animation-name: travel-y; }
  .node { padding: 10px 14px; font-size: .7rem; }
  .h-side { height: 280px; }
  .h-card { width: 84%; }
}
@media (prefers-reduced-motion: reduce) { .h-card { animation: none !important; } }
