/* ==========================================================================
   SkyLogiks — landing page
   ========================================================================== */
:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --ink: #e9eefb;
  --ink-2: #a3aec6;
  --ink-3: #66728c;
  --line: rgb(160 190 255 / 0.12);
  --line-2: rgb(160 190 255 / 0.22);
  --sky: #8be9ff;
  --lime: #d4ff4f;
  --amber: #ff8a3d;
  --danger: #ff4f6d;
  --card: rgb(14 20 36 / 0.6);
  --radius: 18px;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* subtle grain + grid backdrop */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgb(139 233 255 / 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgb(212 255 79 / 0.04), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.55;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--ink-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--lime); color: #000; padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--sky), var(--lime));
  transform-origin: 0 50%; transform: scaleX(0);
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes grow-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    .progress { animation: grow-progress auto linear both; animation-timeline: scroll(root); }
  }
}

/* ---------- buttons ---------- */
.btn {
  --b: var(--lime);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.4em; border-radius: 999px; border: 1px solid var(--b);
  background: var(--b); color: #071000; font: 600 .98rem/1 var(--sans);
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .2s ease, box-shadow .3s ease, background-color .2s;
  box-shadow: 0 0 0 0 rgb(212 255 79 / 0);
}
.btn::after { /* sheen */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .55) 50%, transparent 65%);
  translate: -120% 0;
}
.btn:hover { box-shadow: 0 10px 40px -8px rgb(212 255 79 / .55); }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover::after { transition: translate .7s ease; translate: 120% 0; }
}
.btn-ghost { --b: var(--line-2); background: rgb(255 255 255 / .02); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sky); box-shadow: 0 10px 40px -10px rgb(139 233 255 / .45); }
.btn-sm { padding: .65em 1.1em; font-size: .9rem; }
.btn-wide { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem var(--pad);
  background: linear-gradient(to bottom, rgb(5 7 13 / .85), rgb(5 7 13 / .4));
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 500; font-size: 1.15rem; letter-spacing: -.01em; }
.brand b { font-weight: 700; color: var(--sky); }
.brand-mark { width: 30px; height: 30px; color: var(--ink); }
.nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--ink-2); font-size: .95rem; position: relative; transition: color .2s; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav ul a:hover { color: var(--ink); }
.nav ul a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.motion-toggle {
  display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line);
  color: var(--ink-3); font: 500 .75rem/1 var(--mono); padding: .55rem .75rem; border-radius: 999px; cursor: pointer;
}
.motion-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.motion-toggle .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
html.paused .motion-toggle .dot { background: var(--ink-3); box-shadow: none; }
@media (max-width: 860px) {
  .nav ul { display: none; }
  .motion-toggle [data-motion-label] { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow-x: clip;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 2rem;
  padding: 7.5rem max(var(--pad), calc((100% - 1380px) / 2)) 5rem;
}
.lattice {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
}
.hero-glow {
  position: absolute; z-index: -2; inset: 10% -10% auto auto; width: 60vw; aspect-ratio: 1;
  background: radial-gradient(circle, rgb(139 233 255 / .14), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero-inner { max-width: 760px; position: relative; }
.hero-inner::before { /* readability scrim over the lattice */
  content: ""; position: absolute; inset: -12% -18% -12% -30%; z-index: -1;
  background: radial-gradient(closest-side, rgb(5 7 13 / .82), rgb(5 7 13 / .4) 70%, transparent);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 500 .8rem/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); text-transform: uppercase;
  padding: .55rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgb(10 15 28 / .6);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
  html.paused .pulse::after { animation-play-state: paused; }
}
@keyframes ping { 75%, 100% { transform: scale(3); opacity: 0; } }

.hero h1 { font-size: clamp(3rem, 8.4vw, 7.4rem); font-weight: 600; letter-spacing: -.045em; margin: 1.6rem 0 1.5rem; line-height: .95; }
.hero h1 .line { display: block; }
.hero h1 .serif { color: var(--lime); font-size: 1.08em; letter-spacing: -.03em; }
.hero h1 [data-scramble] {
  background: linear-gradient(100deg, var(--ink) 30%, var(--sky) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 58ch; }
.hl { color: var(--ink); background: linear-gradient(transparent 62%, rgb(212 255 79 / .28) 62%); }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero-inner > :nth-child(2) { animation-delay: .1s; }
  .hero-inner > :nth-child(3) { animation-delay: .25s; }
  .hero-inner > :nth-child(4) { animation-delay: .4s; }
  .console { animation: rise 1s .55s cubic-bezier(.2, .7, .2, 1) backwards; }
}
@keyframes rise { from { opacity: 0; translate: 0 24px; filter: blur(6px); } }

/* console */
.console {
  align-self: end; justify-self: end; width: min(100%, 420px);
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  background: rgb(8 12 22 / .72); backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .04);
  font: 400 .76rem/1.55 var(--mono);
}
.console-head { display: flex; align-items: center; gap: .75rem; padding: .65rem .9rem; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.console-head .tag { margin-left: auto; color: var(--amber); border: 1px solid rgb(255 138 61 / .35); padding: .1rem .45rem; border-radius: 6px; font-size: .68rem; }
.lights { display: inline-flex; gap: 5px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.lights i:first-child { background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.console-feed { list-style: none; margin: 0; padding: .8rem .9rem; height: 228px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem;
  mask-image: linear-gradient(to bottom, transparent, #000 35%); }
.console-feed li { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-feed .t { color: var(--ink-3); }
.console-feed .ok { color: var(--sky); }
.console-feed .warn { color: var(--amber); }
.console-feed .block { color: var(--lime); }
@media (prefers-reduced-motion: no-preference) {
  .console-feed li:last-child { animation: type-in .35s steps(18) both; }
}
@keyframes type-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0; width: 22px; height: 36px; border: 1px solid var(--line-2); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--sky); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue span { animation: cue 1.8s ease-in-out infinite; }
  html.paused .scroll-cue span { animation-play-state: paused; }
}
@keyframes cue { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 12px; } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 7rem; }
  .console { justify-self: start; }
  .scroll-cue { display: none; }
}

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line); background: rgb(10 15 28 / .6); overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; gap: 3.5rem; padding: 1.15rem 1.75rem; margin: 0; list-style: none; }
.marquee li { font: 500 .85rem/1 var(--mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; display: flex; align-items: center; gap: 3.5rem; }
.marquee li::after { content: "✦"; color: var(--lime); font-size: .7rem; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track, html.paused .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; }
  .marquee-track { width: auto; }
  .marquee ul { flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; }
  .marquee li { gap: 2.5rem; }
  .marquee ul[aria-hidden] { display: none; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin-inline: auto; padding: clamp(5rem, 12vw, 9rem) var(--pad); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.kicker { font: 500 .8rem/1 var(--mono); color: var(--lime); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.section h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -.04em; }
.section h2 .serif { color: var(--sky); }
.section-sub { color: var(--ink-2); margin-top: 1.4rem; font-size: 1.1rem; max-width: 62ch; }
.mono-label { font: 500 .78rem/1 var(--mono); color: var(--ink-3); letter-spacing: .04em; }

/* scroll reveal: progressive enhancement, content is fully visible without it */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal { from { opacity: 0; translate: 0 48px; scale: .97; } }
    .reveal {
      animation: reveal auto cubic-bezier(.2, .7, .2, 1) backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

/* ---------- services ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); }
.pillar-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.pillar-head h3 { font-size: 1.7rem; }
.pillar-tag { font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: .4rem .6rem; border-radius: 6px; }
.tag-sky { color: var(--sky); background: rgb(139 233 255 / .1); border: 1px solid rgb(139 233 255 / .3); }
.tag-lime { color: var(--lime); background: rgb(212 255 79 / .08); border: 1px solid rgb(212 255 79 / .3); }
.cards { display: grid; gap: 1rem; }
.card, .tenet {
  --mx: 50%; --my: 50%;
  position: relative; padding: 1.5rem 1.5rem 1.6rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: border-color .3s, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.card::before, .tenet::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(139 233 255 / .13), transparent 45%);
}
.pillar:nth-child(2) .card::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgb(212 255 79 / .1), transparent 45%); }
.card:hover, .tenet:hover { border-color: var(--line-2); }
.card:hover::before, .tenet:hover::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateX(6px); }
}
.card-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--sky); font-size: 1.15rem; margin-bottom: 1rem; }
.pillar:nth-child(2) .card-icon { color: var(--lime); }
.card h4 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- sentinel demo ---------- */
.sentinel-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 0;
  border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, rgb(14 20 36 / .9), rgb(6 9 18 / .9));
  box-shadow: 0 40px 120px -50px rgb(139 233 255 / .25);
}
.sentinel-input { padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; align-content: start; border-right: 1px solid var(--line); }
.sentinel-input textarea, .contact-form input, .contact-form textarea {
  width: 100%; resize: vertical; font: 400 .95rem/1.55 var(--mono); color: var(--ink);
  background: rgb(3 5 10 / .7); border: 1px solid var(--line-2); border-radius: 12px; padding: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.sentinel-input textarea:focus, .contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgb(139 233 255 / .12);
}
.presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: 500 .78rem/1 var(--mono); color: var(--ink-2); background: rgb(255 255 255 / .03);
  border: 1px solid var(--line-2); padding: .55rem .8rem; border-radius: 999px; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s;
}
.chip:hover { color: var(--ink); border-color: var(--sky); background: rgb(139 233 255 / .06); }
.sentinel-output { position: relative; padding: clamp(1.25rem, 3vw, 2rem); display: grid; align-content: start; gap: 1.5rem; overflow: hidden; }
.gauge { --risk: 0; --c: var(--ink-3); position: relative; width: 170px; aspect-ratio: 1; margin-inline: auto; }
.gauge[data-level="low"] { --c: var(--sky); }
.gauge[data-level="med"] { --c: var(--amber); }
.gauge[data-level="high"] { --c: var(--danger); }
.gauge svg { width: 100%; height: 100%; rotate: -90deg; }
.gauge circle { fill: none; stroke-width: 8; }
.gauge-track { stroke: var(--line); }
.gauge-fill {
  stroke: var(--c); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--risk));
  filter: drop-shadow(0 0 8px var(--c));
  transition: stroke-dashoffset 1s cubic-bezier(.2, .7, .2, 1), stroke .4s;
}
.gauge-read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-num { font: 600 2.6rem/1 var(--sans); letter-spacing: -.04em; color: var(--c); transition: color .4s; }
.gauge-label { font: 500 .7rem/1.3 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-top: .4rem; }
.scanline { position: absolute; inset: 0 0 auto; height: 120px; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, rgb(139 233 255 / .12), transparent); }
.sentinel-output.scanning .scanline { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .sentinel-output.scanning .scanline { animation: scan .9s linear infinite; }
}
@keyframes scan { from { translate: 0 -120px; } to { translate: 0 520px; } }
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .9rem; }
.findings li { padding: .7rem .85rem; border-radius: 10px; border: 1px solid var(--line); background: rgb(3 5 10 / .5); color: var(--ink-2); }
.findings li.muted { border-style: dashed; color: var(--ink-3); }
.findings b { display: block; color: var(--ink); font-weight: 600; margin-bottom: .15rem; }
.findings .sev { font: 500 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; float: right; padding: .25rem .4rem; border-radius: 5px; }
.sev-high { color: var(--danger); background: rgb(255 79 109 / .1); }
.sev-med { color: var(--amber); background: rgb(255 138 61 / .1); }
.sev-low { color: var(--sky); background: rgb(139 233 255 / .1); }
@media (prefers-reduced-motion: no-preference) {
  .findings li { animation: rise .5s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
}
@media (max-width: 860px) {
  .sentinel-grid { grid-template-columns: 1fr; }
  .sentinel-input { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- approach ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; position: relative; counter-reset: s; }
.steps::before { /* connecting rail */
  content: ""; position: absolute; left: 0; right: 0; top: 1.35rem; height: 1px;
  background: linear-gradient(90deg, var(--sky), var(--lime)); opacity: .5;
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes draw { from { transform: scaleX(0); } }
    .steps { view-timeline: --steps block; }
    .steps::before { animation: draw auto linear both; animation-timeline: --steps; animation-range: entry 40% cover 55%; }
  }
}
.step { position: relative; padding-top: 3.5rem; }
.step-n {
  position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2); font: 500 .8rem/1 var(--mono); color: var(--lime);
  box-shadow: 0 0 0 6px var(--bg);
}
.step h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.step p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps::before { left: 1.35rem; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(var(--sky), var(--lime)); transform-origin: top; }
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes draw-y { from { transform: scaleY(0); } }
    .steps::before { animation-name: draw-y; }
  }
  .step { padding: 0 0 0 4rem; }
}

/* ---------- why / manifesto ---------- */
.manifesto { font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.22; letter-spacing: -.025em; font-weight: 500; max-width: 1050px; }
.manifesto .w { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes lit { from { opacity: .16; } to { opacity: 1; } }
    .manifesto .w { animation: lit auto linear both; animation-timeline: view(); animation-range: cover 18% cover 42%; }
  }
}
.manifesto .w.accent { color: var(--lime); font-family: var(--serif); font-style: italic; font-weight: 400; }
.tenets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(3rem, 7vw, 5rem); }
.tenet h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.tenet h3::before { content: "↳ "; color: var(--lime); }
.tenet p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 980px) { .tenets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tenets { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 5vw, 4rem); border-radius: 28px; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, rgb(16 24 44 / .95), rgb(6 9 18 / .95));
  border: 1px solid var(--line-2);
}
.contact-card::before {
  content: ""; position: absolute; z-index: -1; width: 520px; aspect-ratio: 1; right: -160px; bottom: -220px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--sky), var(--lime), var(--sky)); filter: blur(90px); opacity: .22;
}
@media (prefers-reduced-motion: no-preference) {
  .contact-card::before { animation: spin 18s linear infinite; }
  html.paused .contact-card::before { animation-play-state: paused; }
}
@keyframes spin { to { rotate: 1turn; } }
.contact-copy .mono-label { margin-top: 2rem; color: var(--sky); font-size: .9rem; }
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field > label, .interest legend { font-size: .85rem; color: var(--ink-2); }
.contact-form input { font-family: var(--sans); padding: .85rem 1rem; }
.contact-form textarea { font-family: var(--sans); }
.contact-form input:user-invalid { border-color: var(--danger); }
.interest { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.interest legend { margin-bottom: .45rem; padding: 0; }
.interest label { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; font-size: .88rem; padding: .5rem .8rem; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.interest label:has(input:checked) { border-color: var(--lime); background: rgb(212 255 79 / .08); color: var(--ink); }
.interest input { accent-color: var(--lime); margin: 0; }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin-inline: auto; padding: 2.5rem var(--pad); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; color: var(--ink-2); font-size: .92rem; }
.footer-inner .muted { margin-left: auto; }
.email-link { text-decoration: none; border-bottom: 1px solid rgb(139 233 255 / .35); transition: border-color .2s, color .2s; }
.email-link:hover { color: var(--lime); border-color: var(--lime); }
