/* Home page only. Dark, quiet, one accent; motion comes from scroll, never from noise.
   Everything animated here switches off under prefers-reduced-motion (bottom of file). */
.home {
  --bg: #0b0d0d;
  --surface: #121515;
  --surface-2: #171b1b;
  --ink: #eef2ef;
  --ink-2: #aab3ae;
  --ink-3: #737d78;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #8fd3b6;
  --accent-2: #5fae92;
  --glow: rgba(110, 200, 165, 0.16);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* Scroll progress and a header that turns to glass once you leave the top */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.home .site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease; }
.home .site-header.scrolled { background: rgba(11, 13, 13, 0.72); border-color: var(--line);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); }
.home .wordmark svg { color: var(--accent); }

/* Hero */
.hero2 { position: relative; min-height: 100svh; display: grid; align-items: center; isolation: isolate; overflow: hidden; }
.hero2::before { content: ""; position: absolute; inset: -20% -10% auto; height: 80%; z-index: -2;
  background: radial-gradient(60% 60% at 70% 40%, var(--glow), transparent 70%); }
.hero2 .wrap { padding-top: 120px; padding-bottom: 180px; }
.hero2 h1 { font-size: clamp(44px, 8.4vw, 104px); line-height: 0.98; letter-spacing: -0.045em; margin: 0 0 28px; max-width: 12ch; font-weight: 700; }
.hero2 h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero2 h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s cubic-bezier(.2,.7,.1,1) forwards; }
.hero2 h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero2 h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero2 h1 em { font-style: normal; background: linear-gradient(100deg, var(--ink) 10%, var(--accent) 60%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2 .sub { font-size: clamp(18px, 2.1vw, 22px); color: var(--ink-2); max-width: 44ch; margin: 0 0 36px; opacity: 0; animation: fade 1s .5s ease forwards; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fade 1s .7s ease forwards; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn.primary { background: var(--accent); color: #0b0d0d; }
.btn.primary:hover { transform: translateY(-1px); background: #a6e0c7; }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: rgba(255,255,255,.25); }

/* The ridges: layered SVG lines, drifting sideways forever, separating with scroll (parallax) */
.ridges { position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1; pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 30%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%); }
.ridges .layer { position: absolute; inset: 0; will-change: transform; }
.ridges svg { position: absolute; left: 0; bottom: 0; width: max(200%, 2600px); height: 100%; animation: drift linear infinite; }
.ridges path { fill: none; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 2.4s cubic-bezier(.3,.6,.1,1) forwards; }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 22px; height: 36px; border: 1.5px solid var(--line); border-radius: 12px; opacity: 0; animation: fade 1s 1.4s forwards; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink-3); animation: nudge 1.8s ease-in-out infinite; }

/* Running strip */
.strip { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--surface); }
.strip .track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.strip span { font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.strip span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); opacity: .6; }

/* Section shells */
.block { padding: clamp(80px, 12vw, 150px) 0; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.block h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 18px; max-width: 18ch; }
.block .lede { font-size: clamp(17px, 1.8vw, 19px); color: var(--ink-2); max-width: 52ch; margin: 0 0 56px; }

/* Pillars, each with its own small looping visual */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { position: relative; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding: 26px; overflow: hidden; transition: border-color .3s ease, transform .3s ease; }
.pillar:hover { border-color: rgba(143, 211, 182, .3); transform: translateY(-3px); }
.pillar .viz { height: 150px; margin: -6px -6px 22px; border-radius: 14px; background: radial-gradient(80% 90% at 50% 100%, rgba(143,211,182,.10), transparent 70%), #0e1111; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.pillar h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.015em; }
.pillar p { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.chip.live { color: var(--accent); border-color: rgba(143,211,182,.3); }
.chip.live::before { background: var(--accent); box-shadow: 0 0 0 0 rgba(143,211,182,.6); animation: ping 2s infinite; }

/* Media: an equaliser behind a play button */
.eq { display: flex; align-items: flex-end; gap: 6px; height: 74px; position: relative; }
.eq i { width: 8px; border-radius: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); animation: eq 1.2s ease-in-out infinite alternate; opacity: .85; }
.eq i:nth-child(2n) { animation-duration: .9s; } .eq i:nth-child(3n) { animation-duration: 1.4s; } .eq i:nth-child(5n) { animation-delay: -.6s; }
.play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; background: rgba(11,13,13,.75); border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; backdrop-filter: blur(4px); }
.play::after { content: ""; margin-left: 4px; border-left: 14px solid var(--ink); border-block: 9px solid transparent; }
/* Commerce: products sliding along a shelf */
.shelf { width: 80%; position: relative; height: 90px; }
.shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--line); }
.shelf .item { position: absolute; bottom: 10px; width: 46px; height: 54px; border-radius: 9px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(160deg, #1f2524, #151918); animation: slide 6s cubic-bezier(.5,0,.2,1) infinite; }
.shelf .item::before { content: ""; position: absolute; left: 10px; right: 10px; top: 10px; height: 12px; border-radius: 4px; background: rgba(143,211,182,.35); }
.shelf .item:nth-child(2) { animation-delay: -2s; } .shelf .item:nth-child(3) { animation-delay: -4s; }
/* Games: a block grid lighting up in a wave */
.blocks { display: grid; grid-template-columns: repeat(6, 18px); gap: 6px; transform: rotateX(48deg) rotateZ(-36deg); }
.blocks i { width: 18px; height: 18px; border-radius: 4px; background: #1c2221; border: 1px solid rgba(255,255,255,.06); animation: blink 3s ease-in-out infinite; animation-delay: calc(var(--d) * 90ms); }

/* Spotlight: the live brand */
.spot { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--surface); }
.spot .copy { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.spot h3 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.spot p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 42ch; }
.spot ul { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.spot li { font-size: 13.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.spot .art { position: relative; min-height: 340px; background: radial-gradient(70% 70% at 50% 50%, rgba(143,211,182,.12), transparent 70%), #0d1010; border-left: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.spot .art svg { width: min(86%, 420px); height: auto; }
.trace { fill: none; stroke: rgba(143,211,182,.22); stroke-width: 1.5; }
.pulse { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 18 400; animation: flow 3.2s linear infinite; }
.pulse:nth-of-type(2n) { animation-duration: 4.1s; animation-delay: -1.3s; }
.pulse:nth-of-type(3n) { animation-delay: -2.2s; }
.die { fill: #131817; stroke: rgba(255,255,255,.16); }
.die-core { fill: url(#coreGlow); }

/* Principles: sticky heading on the left, statements scroll past on the right */
.principles { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.principles .stick { position: sticky; top: 120px; }
.principle { padding: 34px 0; border-top: 1px solid var(--line); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle .n { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .08em; }
.principle h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; margin: 8px 0 8px; }
.principle p { margin: 0; color: var(--ink-2); max-width: 46ch; }

/* Closing band */
.closing { position: relative; text-align: center; overflow: hidden; border: 1px solid var(--line); border-radius: 32px; padding: clamp(56px, 9vw, 110px) 24px; background: radial-gradient(60% 80% at 50% 0%, rgba(143,211,182,.14), transparent 70%), var(--surface); }
.closing h2 { margin: 0 auto 16px; max-width: 16ch; }
.closing p { color: var(--ink-2); margin: 0 auto 32px; max-width: 46ch; }
.closing .cta-row { justify-content: center; opacity: 1; animation: none; }

/* Reveal on scroll (home.js adds .in) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.1,1), transform .9s cubic-bezier(.2,.7,.1,1); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(10px); opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(143,211,182,.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(143,211,182,0); } }
@keyframes eq { from { height: 12%; } to { height: 100%; } }
@keyframes slide { 0% { left: -20%; opacity: 0; } 15% { opacity: 1; } 50% { left: 40%; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes blink { 0%, 100% { background: #1c2221; } 45% { background: rgba(143,211,182,.65); box-shadow: 0 0 14px rgba(143,211,182,.35); } 60% { background: #1c2221; } }
@keyframes flow { to { stroke-dashoffset: -418; } }

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .spot { grid-template-columns: 1fr; }
  .spot .art { border-left: 0; border-top: 1px solid var(--line); min-height: 260px; }
  .principles { grid-template-columns: 1fr; }
  .principles .stick { position: static; }
}
@media (max-width: 560px) {
  .home .nav a:not(.keep) { display: none; }
  .hero2 .wrap { padding-bottom: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
  .hero2 h1 .line > span, .hero2 .sub, .cta-row, .scroll-hint, .reveal { opacity: 1; transform: none; }
  .ridges path { stroke-dashoffset: 0; }
}
.spot .chip { align-self: flex-start; }

/* Our brands: a statement, not a directory */
.indep { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: end; border-top: 1px solid var(--line); padding-top: 48px; }
.indep h2 { margin: 0; }
.indep p:not(.kicker) { margin: 0; color: var(--ink-2); font-size: clamp(17px, 1.8vw, 19px); max-width: 48ch; }
.indep a { color: var(--accent); }
@media (max-width: 860px) { .indep { grid-template-columns: 1fr; } }
