/* somethingiscooking.eu — sovereign AI teaser.
   Register: brand (design IS the product). Mood: a European sovereign
   control-room at dusk — instruments lit against deep slate, copper-patina
   teal as the live signal, amber as the alert. Not the AI-purple-on-white
   reference; that attractor is on the ban list. */

:root {
  /* OKLCH control-room palette — surface IS part of the brand (environmental). */
  --bg:        oklch(0.165 0.018 233);
  --surface:   oklch(0.212 0.020 233);
  --surface-2: oklch(0.258 0.022 233);
  --ink:       oklch(0.965 0.006 220);
  --muted:     oklch(0.745 0.018 222);
  --primary:   oklch(0.800 0.112 178);   /* patina teal — the live signal */
  --primary-dim: oklch(0.620 0.098 180);
  --accent:    oklch(0.795 0.150 67);    /* amber — the alert / turbulence */
  --accent-dim: oklch(0.640 0.130 60);
  --line:      oklch(0.380 0.020 225);
  --line-soft: oklch(0.300 0.016 228);
  --ink-on-primary: oklch(0.180 0.022 233);

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  --step-2:  clamp(1.7rem, 1.5rem + 1vw, 2.3rem);
  --step-3:  clamp(2.3rem, 1.9rem + 2vw, 3.4rem);
  --step-4:  clamp(3rem, 2.2rem + 4vw, 5.4rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-scale */
  --z-sticky: 100;
  --z-cookie: 200;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint instrument grid behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.16;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 85%);
}

a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ---- top bar / language switch ---------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--gutter);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.02em; text-decoration: none; color: var(--ink);
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 70%, transparent);
  animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}
.brand .eu { color: var(--muted); }

.langs { display: flex; gap: 0.15rem; align-items: center; }
.langs button {
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.05em;
  background: none; border: 0; color: var(--muted);
  padding: 0.35rem 0.5rem; border-radius: 6px; cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.langs button:hover { color: var(--ink); }
.langs button[aria-current="true"] { color: var(--ink-on-primary); background: var(--primary); }
.langs .sep { color: var(--line); }

/* ---- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-0);
  letter-spacing: -0.01em;
  padding: 0.85rem 1.4rem; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}
.btn-primary {
  background: var(--primary); color: var(--ink-on-primary);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 50%, transparent),
              0 10px 30px -12px color-mix(in oklab, var(--primary) 80%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -12px color-mix(in oklab, var(--primary) 80%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---- hero ------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3.5rem, 8vh, 7rem) clamp(3rem, 7vh, 6rem); }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.15fr 0.85fr; align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.hero .eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.4rem; }
.hero .eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 { font-size: var(--step-4); letter-spacing: -0.05em; }
.hero h1 .sub-line { display: block; color: var(--primary); }
.hero .pun {
  margin-top: 1.1rem; max-width: 34ch;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
  letter-spacing: -0.02em; line-height: 1.25; color: var(--primary);
  text-wrap: balance;
}
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 30ch; margin-top: 1.25rem; line-height: 1.5; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }

/* reveal — gated behind .js-reveal so content is fully visible without JS
   (and to any renderer that doesn't run the IntersectionObserver). */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); }
.js-reveal .revealed .reveal { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-reveal .revealed .reveal:nth-child(2) { transition-delay: 0.08s; }
.js-reveal .revealed .reveal:nth-child(3) { transition-delay: 0.16s; }
.js-reveal .revealed .reveal:nth-child(4) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ---- radar ------------------------------------------------------------ */
.radar-stage { display: grid; place-items: center; }
.radar {
  position: relative; width: min(380px, 80vw); aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, color-mix(in oklab, var(--primary) 14%, transparent) 0%, transparent 62%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -40px black;
}
.radar svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radar .cross { stroke: var(--line-soft); stroke-width: 1; }
.radar .sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 300deg,
    color-mix(in oklab, var(--primary) 38%, transparent) 352deg,
    color-mix(in oklab, var(--primary) 8%, transparent) 360deg);
  animation: spin 4.2s linear infinite;
  -webkit-mask: radial-gradient(circle, black 0 99%, transparent 100%);
  mask: radial-gradient(circle, black 0 99%, transparent 100%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.blip {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent);
  animation: blip 4.2s var(--ease) infinite;
}
@keyframes blip { 0%, 18% { opacity: 0; transform: translate(-50%,-50%) scale(0.4); } 24% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 60%,100% { opacity: 0.15; } }
.blip.b1 { top: 32%; left: 60%; animation-delay: 0.4s; }
.blip.b2 { top: 64%; left: 44%; animation-delay: 1.6s; }
.blip.b3 { top: 48%; left: 72%; animation-delay: 2.9s; }
.blip.b4 { top: 70%; left: 66%; animation-delay: 3.5s; }
.radar .label {
  position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
/* signal term that flashes as the sweep crosses a blip */
.blip .sig {
  position: absolute; left: 50%; top: -5px; transform: translate(-50%, -100%);
  white-space: nowrap; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  padding: 2px 7px; border-radius: 5px; opacity: 0; pointer-events: none;
}
.blip .sig.on { animation: sigflash 1.15s var(--ease); }
@keyframes sigflash {
  0% { opacity: 0; transform: translate(-50%, -85%); }
  16% { opacity: 1; transform: translate(-50%, -112%); }
  68% { opacity: 1; transform: translate(-50%, -112%); }
  100% { opacity: 0; transform: translate(-50%, -125%); }
}
.blip.hit { animation: hitpulse 1.15s var(--ease); }
@keyframes hitpulse {
  0% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.5); box-shadow: 0 0 0 0 var(--accent); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); box-shadow: 0 0 16px 3px var(--accent); }
  100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 7px var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  .radar .sweep { animation: none; opacity: 0.5; }
  .blip { animation: none; opacity: 0.9; }
  .blip .sig { display: none; }
}

/* ---- section scaffolding ---------------------------------------------- */
section { padding-block: clamp(3.5rem, 9vh, 7rem); }
.section-head { max-width: 56ch; }
.section-head h2 { font-size: var(--step-3); margin-top: 1rem; }
.section-head .mono { display: inline-block; }
.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ---- signals ---------------------------------------------------------- */
.signals { position: relative; }
.signals .kicker-accent { color: var(--accent); }
.props {
  display: grid; gap: 1px; margin-top: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden;
}
.prop { background: var(--bg); padding: clamp(1.4rem, 3vw, 2rem); }
.prop .n { font-family: var(--font-mono); font-size: var(--step--1); color: var(--primary-dim); }
.prop h3 { font-size: var(--step-1); margin: 0.7rem 0 0.5rem; letter-spacing: -0.02em; }
.prop p { color: var(--muted); font-size: var(--step-0); margin: 0; }
.signals .closing {
  margin-top: clamp(2.2rem, 5vw, 3.2rem); font-size: var(--step-2);
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em;
  max-width: 24ch; line-height: 1.12;
}
.signals .closing .q { color: var(--muted); display: block; font-size: var(--step-1); font-weight: 500; margin-top: 1rem; letter-spacing: -0.01em; line-height: 1.35; max-width: 40ch; }

/* ---- sovereign -------------------------------------------------------- */
.sovereign { background: var(--surface); border-block: 1px solid var(--line-soft); }
.sovereign-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 0.9fr 1.1fr; align-items: start; }
@media (max-width: 820px) { .sovereign-grid { grid-template-columns: 1fr; } }
.tenets { display: grid; gap: 1.1rem; }
.tenet { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-top: 1px solid var(--line-soft); }
.tenet:first-child { border-top: 0; }
.tenet .mark { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in oklab, var(--primary) 16%, transparent); color: var(--primary); }
.tenet .mark svg { width: 18px; height: 18px; }
.tenet h3 { font-size: var(--step-1); letter-spacing: -0.02em; margin-bottom: 0.2rem; }
.tenet p { color: var(--muted); margin: 0; }

/* ---- CTA / collective ------------------------------------------------- */
.collective { position: relative; overflow: hidden; }
.collective::after {
  content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%;
  background: radial-gradient(ellipse at 50% 100%, color-mix(in oklab, var(--primary) 22%, transparent), transparent 70%);
  pointer-events: none; z-index: 0;
}
.collective .wrap { position: relative; z-index: 1; }
.collective .cta-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: clamp(1.8rem, 5vw, 3.2rem);
  max-width: 720px; margin-inline: auto; text-align: center;
  box-shadow: 0 40px 100px -60px black;
}
.collective h2 { font-size: var(--step-3); margin: 1rem 0 1rem; }
.collective h2 .hl { color: var(--primary); }
.collective .blurb { color: var(--muted); max-width: 48ch; margin: 0 auto 2rem; font-size: var(--step-1); }

/* form */
.form { display: grid; gap: 0.7rem; max-width: 440px; margin: 0 auto; }
.form .row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.form input {
  flex: 1 1 200px; min-width: 0;
  font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.85rem 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.form input::placeholder { color: color-mix(in oklab, var(--muted) 88%, var(--bg)); }
.form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 30%, transparent); }
.form .btn { justify-content: center; flex: 1 1 100%; }
.form .fineprint { font-size: var(--step--1); color: var(--muted); margin-top: 0.3rem; }
.form-status { min-height: 1.4em; font-size: var(--step--1); font-family: var(--font-mono); letter-spacing: 0.02em; }
.form-status.ok { color: var(--primary); }
.form-status.err { color: var(--accent); }
.form[data-state="done"] .row, .form[data-state="done"] .fineprint { display: none; }
.thanks { display: none; }
.form[data-state="done"] + .thanks { display: block; }
.thanks h3 { color: var(--primary); font-size: var(--step-2); }
.thanks p { color: var(--muted); margin-top: 0.5rem; }

/* ---- footer ----------------------------------------------------------- */
footer { border-top: 1px solid var(--line-soft); padding-block: clamp(2.5rem, 6vw, 4rem); color: var(--muted); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; align-items: flex-start; }
.foot-grid h4 { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 0.7rem; font-weight: 600; }
.foot-grid a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.foot-grid a:hover { color: var(--primary); border-color: var(--primary); }
.foot-col p { font-size: var(--step--1); max-width: 34ch; }
.foot-meta { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--muted); }

/* ---- share ------------------------------------------------------------ */
.share { text-align: center; border-top: 1px solid var(--line-soft); }
.share-head { max-width: 54ch; margin-inline: auto; }
.share-head .mono { color: var(--primary); }
.share-head h2 { font-size: var(--step-2); margin: 0.8rem 0 0.6rem; }
.share-lead { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.share-row { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 1.9rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-0);
  padding: 0.72rem 1.15rem; border-radius: 11px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s, color 0.2s, background 0.2s;
}
.share-btn svg { width: 1.05em; height: 1.05em; flex: none; }
.share-btn:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }
.share-copy.ok { color: var(--ink-on-primary); background: var(--primary); border-color: var(--primary); transform: none; }

/* ---- the cookie joke (a banner that consents to nothing) -------------- */
.no-cookie {
  position: fixed; left: 50%; bottom: clamp(0.8rem, 3vw, 1.4rem); transform: translateX(-50%);
  z-index: var(--z-cookie); width: min(560px, calc(100% - 2rem));
  display: flex; align-items: center; gap: 0.9rem;
  background: color-mix(in oklab, var(--surface-2) 92%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0.8rem 0.9rem 0.8rem 1.1rem;
  box-shadow: 0 24px 60px -30px black;
  animation: rise 0.7s var(--ease) 0.6s both;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 120%); } to { opacity: 1; transform: translateX(-50%); } }
.no-cookie .ck { font-size: 1.3rem; flex: none; }
.no-cookie p { font-size: var(--step--1); margin: 0; color: var(--ink); }
.no-cookie p span { color: var(--muted); }
.no-cookie button {
  flex: none; font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--primary); color: var(--ink-on-primary); border: 0; border-radius: 8px;
  padding: 0.5rem 0.8rem; cursor: pointer; transition: transform 0.2s var(--ease);
}
.no-cookie button:hover { transform: translateY(-1px); }
.no-cookie[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .no-cookie { animation: none; } }
@media (max-width: 520px) { .no-cookie { flex-wrap: wrap; } .no-cookie p { flex: 1 1 100%; order: 2; } }

/* ---- legal page ------------------------------------------------------- */
.legal { padding-block: clamp(2.5rem, 6vw, 5rem); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: var(--step-3); margin-bottom: 0.5rem; }
.legal .updated { color: var(--muted); font-family: var(--font-mono); font-size: var(--step--1); margin-bottom: 2.5rem; }
.legal h2 { font-size: var(--step-1); margin: 2.2rem 0 0.6rem; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal .back { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 2rem; font-family: var(--font-mono); font-size: var(--step--1); text-decoration: none; color: var(--muted); }
.legal .back:hover { color: var(--primary); }

/* honeypot — kept in the layout (not display:none) so bots fill it, but
   moved out of sight and out of the tab order for real users. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 300; background: var(--primary); color: var(--ink-on-primary); padding: 0.6rem 1rem; border-radius: 8px; }
