:root {
  --bg: #07070a;
  --bg-2: #0e0e14;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ecebf2;
  --muted: #9a98a8;
  --accent: #ffb347;
  --accent-2: #ff5e7e;
  --accent-3: #7a6bff;
  --radius: 18px;
  --max: 1160px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 em, .lede em { font-style: normal; color: var(--accent); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }

.eyebrow {
  font: 600 0.75rem/1 var(--display);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.9em 1.6em;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #140b05; font: 600 0.95rem var(--display);
  text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn-small { padding: 0.55em 1.1em; font-size: 0.85rem; white-space: nowrap; }

/* Nav */
/* Offer announcement bar (above the nav; height drives the nav offset) */
:root { --bar-h: 40px; }
body.no-announce { --bar-h: 0px; }
section[id] { scroll-margin-top: calc(var(--bar-h) + 24px); }
body.no-announce .announce { display: none; }
.announce {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--bar-h);
  display: flex; align-items: center; justify-content: center;
  padding: 0 44px; font-size: 0.88rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #140b05;
}
.announce a { text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce a:hover .announce-cta { text-decoration: underline; }
.announce-close {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.announce-close:hover { background: rgba(0,0,0,.1); }
@media (max-width: 480px) { .announce { font-size: 0.8rem; } .announce-cta { display: none; } }

.nav {
  position: fixed; inset: var(--bar-h) 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(7,7,10,.85), rgba(7,7,10,0));
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font: 700 1rem var(--display); letter-spacing: 0.12em; }
.brand em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 0.35em; }
/* Which Kinolume site you're on (gaming / stories subdomains) */
.brand-tag {
  margin-left: 0.2rem; padding: 0.3em 0.7em; border-radius: 999px;
  font: 600 0.68rem var(--display); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(255,179,71,.35);
}
.page-links { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.6rem); }
.page-links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 0.9rem; transition: color .2s; }
.page-links a:not(.btn):hover { color: var(--text); }
.page-links a.nav-offer { color: var(--accent); }

/* Product switcher: the two services are separate pages; the current one is highlighted */
.product-switch {
  display: flex; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.product-switch a {
  padding: 0.45em 1em; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 600 0.85rem var(--display); color: var(--muted); transition: color .2s, background .2s;
}
.product-switch a:hover { color: var(--text); }
.product-switch a[aria-current="page"] { background: var(--text); color: var(--bg); }

/* Section links fold away before the switcher gets crowded; on phones the switcher gets its own row */
@media (max-width: 1200px) { .page-links a:not(.btn) { display: none; } }
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; row-gap: 0.6rem; }
  .product-switch { order: 3; width: 100%; }
  .product-switch a { flex: 1; text-align: center; }
}

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(7rem + var(--bar-h)) clamp(16px, 5vw, 48px) 5rem;
  overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(40% 40% at 25% 35%, rgba(255,94,126,.28), transparent 70%),
    radial-gradient(35% 35% at 75% 30%, rgba(122,107,255,.30), transparent 70%),
    radial-gradient(45% 40% at 55% 80%, rgba(255,179,71,.22), transparent 70%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.45;
}
.hero-video + .hero-bg { opacity: 0.6; mix-blend-mode: screen; }
.hero::after { /* film grain + vignette */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, var(--bg) 100%),
    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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) rotate(8deg) scale(1.1); }
}
.hero-compact { min-height: 80svh; padding-bottom: 3rem; }
.hero-inner { max-width: 900px; text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); font-weight: 700; }
.glow {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 680px; margin: 1.5rem auto 2.2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 10vw, 8rem) clamp(16px, 5vw, 48px); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }

/* Reel */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #1a1424, #0d1220) center / cover no-repeat;
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px -40px rgba(255,94,126,.35), 0 0 0 1px rgba(255,255,255,.02);
  margin-bottom: 1.5rem;
}
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; background: rgba(0,0,0,.25); border: 0; cursor: pointer; transition: background .3s; }
.play:hover { background: rgba(0,0,0,.1); }
.play[hidden] { display: none; }
.play svg { width: clamp(64px, 10vw, 96px); transition: transform .3s; }
.play:hover svg { transform: scale(1.08); }
.play circle { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.6); stroke-width: 1.5; }
.play path { fill: #fff; }
.reel a { color: var(--accent); text-decoration: none; }

/* Second product teaser (homepage -> /concept-testing) */
.product-teaser {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(122,107,255,.12), rgba(255,94,126,.06));
  border: 1px solid var(--line);
}
@media (max-width: 820px) { .product-teaser { grid-template-columns: 1fr; } }
.product-teaser img { width: 100%; height: auto; border-radius: calc(var(--radius) - 4px); border: 1px solid var(--line); }
.product-teaser h2 em { font-style: normal; color: var(--accent); }
.product-teaser .badge { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3em 0.7em; border-radius: 999px; background: var(--accent); color: #000; margin-right: 0.5rem; vertical-align: middle; }

/* Hub (apex domain): one door per site */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 820px) { .doors { grid-template-columns: 1fr; } }
.door {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  transition: transform .3s, border-color .3s;
}
.door:hover { transform: translateY(-4px); border-color: rgba(255,179,71,.35); }
.door img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.door-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: clamp(1.5rem, 3vw, 2.2rem); }
.door-body .muted { flex: 1; }
.door h2 em { font-style: normal; color: var(--accent); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card {
  padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  transition: transform .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,179,71,.35); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.card .icon { font-size: 1.6rem; color: var(--accent); margin-bottom: 1rem; }
.card-alt .icon { color: var(--accent-3); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; counter-reset: s; }
.steps-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.steps li { padding: 1.5rem 0 0; border-top: 1px solid var(--line); }
.steps span { font: 600 0.85rem var(--display); color: var(--accent); letter-spacing: 0.15em; }
.steps h3 { margin-top: 0.6rem; font-size: 1.15rem; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* Confidentiality */
.section-head .muted { margin-top: 1rem; }
/* 5 cards: 3 + 2 (centred) on desktop, stacking on smaller screens */
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.trust li {
  flex: 1 1 280px; max-width: calc((100% - 2.5rem) / 3);
  padding: 1.75rem 1.5rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
}
@media (max-width: 960px) { .trust li { max-width: calc((100% - 1.25rem) / 2); } }
@media (max-width: 620px) { .trust li { max-width: 100%; } }
.trust svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.trust h3 { font-size: 1.05rem; }
.trust p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.confidential-note { font-size: 0.9rem; color: var(--text); padding: 0.75em 1em; border-radius: 12px; background: rgba(255,179,71,.08); border: 1px solid rgba(255,179,71,.2); }

/* Free test shot offer */
.offer-card {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 5vw, 3.5rem); border-radius: calc(var(--radius) * 1.5);
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(255,179,71,.14), transparent 70%),
    radial-gradient(60% 80% at 100% 0%, rgba(255,94,126,.10), transparent 70%),
    var(--bg-2);
  border: 1px solid rgba(255,179,71,.25);
}
@media (max-width: 820px) { .offer-card { grid-template-columns: 1fr; } }
.offer-copy h2 em { font-style: normal; color: var(--accent); }
.offer-facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
.offer-facts li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; }
.offer-facts li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.hint { margin: -0.4rem 0 0; font-size: 0.8rem; color: var(--muted); }
.turnstile-slot:empty { display: none; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid > div > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.founder {
  display: flex; gap: 1.25rem; align-items: center;
  padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
}
.avatar {
  flex: none; width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover;
  /* thin gradient ring in the brand colours */
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
}
@media (max-width: 420px) { .avatar { width: 96px; height: 96px; } }
.founder h3 { margin: 0 0 0.2rem; font-size: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.linkedin { display: inline-flex; color: #0a66c2; background: #fff; border-radius: 3px; transition: color .2s, transform .2s; }
.linkedin svg { width: 20px; height: 20px; fill: currentColor; }
.linkedin:hover { color: #378fe9; transform: translateY(-1px); }
.founder p { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.95rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { font-size: 0.75rem; padding: 0.3em 0.75em; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }

/* Contact */
.contact-card {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 5vw, 3.5rem); border-radius: calc(var(--radius) * 1.5);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(255,94,126,.12), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, rgba(122,107,255,.12), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line);
}
@media (max-width: 820px) { .contact-card { grid-template-columns: 1fr; } }
.direct a { color: var(--accent); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { form { grid-template-columns: 1fr; } }
form .full { grid-column: 1 / -1; }
label { display: grid; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 0.8em 1em; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 0.95rem;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
select option { background: var(--bg-2); }
textarea { resize: vertical; }
label.check { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--text); cursor: pointer; }
label.check input { flex: none; width: 18px; height: 18px; margin: 0.1rem 0 0; padding: 0; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-note.ok { color: #6ee7a8; }
.form-note { margin: 0; font-size: 0.85rem; color: var(--accent); min-height: 1.2em; }

/* Legal pages (privacy policy) */
.legal { max-width: 760px; padding-top: calc(8rem + var(--bar-h)); }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a, .legal .eyebrow { color: var(--accent); }

/* Footer */
.footer {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 2rem clamp(16px, 5vw, 48px) 3rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem;
}
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.footer-note { font-size: 0.78rem; opacity: 0.75; }

/* Phones: the header has a second row (product switcher), so push content below it */
@media (max-width: 640px) {
  body:has(.product-switch) :is(.hero, .legal) { padding-top: calc(10rem + var(--bar-h)); }
  body:has(.product-switch) section[id] { scroll-margin-top: calc(var(--bar-h) + 120px); }
}
/* Brand + site tag + switcher + CTA must fit one row: shorten the wordmark,
   then on the narrowest phones keep only the logo and the site tag */
@media (max-width: 820px) { .brand > span:first-of-type em { display: none; } }
@media (max-width: 400px) { .brand:has(.brand-tag) > span:first-of-type { display: none; } }
