/* =========================================================================
   Chromoworks Energy: energy.chromoworks.com
   Same brand as chromoworks.com (logo-FINAL palette), dark default + light theme
   ========================================================================= */

:root {
  color-scheme: dark;
  --bg: #0B090A;
  --bg-rgb: 11 9 10;
  --bg-alt: #0F0C0E;
  --bg-3: #1A1518;
  --surface: rgb(255 255 255 / .022);
  --solid: #0B090A;
  --alert-bg: linear-gradient(180deg, #17121A, #110D10);
  --form-bg: rgb(17 13 16 / .8);
  --field: rgb(255 255 255 / .03);
  --field-focus: rgb(255 255 255 / .05);
  --nav-bg: rgb(11 9 10 / .72);
  --menu-bg: rgb(11 9 10 / .96);
  --glass-rgb: 255 255 255;
  --shadow: 0 40px 90px -40px rgb(0 0 0 / .9);

  --text: #F4EEF0;
  --heading: #FAF5F7;
  --fg-rgb: 244 238 240;
  --muted: rgb(var(--fg-rgb) / .64);
  --faint: rgb(var(--fg-rgb) / .44);
  --line: rgb(var(--fg-rgb) / .09);
  --line-2: rgb(var(--fg-rgb) / .16);

  --btn-bg: #FAF5F7;
  --btn-fg: #1F1A1D;
  --deep: #B82E56;
  --pink: #E8709A;
  --gold: #E8D79C;
  --heat: #F08A5D;
  --heat-rgb: 240 138 93;
  --gold-rgb: 232 215 156;
  --heat-text: #F7C9A6;
  --gold-text: #E8D79C;
  --amber: #F2B866;

  --grad: linear-gradient(100deg, #E8709A 0%, #F0A3B6 28%, #E8D79C 58%, #B9CCE6 100%);
  --grad-heat: linear-gradient(100deg, #B82E56 0%, #F08A5D 50%, #E8D79C 100%);

  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  /* logo mark: on-dark halo/core set (logo-FINAL/chromoworks-mark-on-dark.svg) */
  --m0h: #471F2C; --m0c: #B82E56;
  --m1h: #482D34; --m1c: #BD6277;
  --m2h: #453837; --m2c: #B08D80;
  --m3h: #534B3E; --m3c: #E8D79C;
  --m4h: #3D1C29; --m4c: #93234D;
  --m5h: #53303E; --m5c: #E8709A;
  --m6h: #4B3E43; --m6c: #C9A3AE;
  --m7h: #443F41; --m7c: #AEAAA9;
  --m8h: #3C1C2B; --m8c: #902251;
  --m9h: #512F40; --m9c: #E06CA4;
  --m10h: #493D45; --m10c: #C0A2B8;
  --m11h: #433F43; --m11c: #A9AAB0;
  --m12h: #431E32; --m12c: #A82A6E;
  --m13h: #422E3C; --m13c: #A46596;
  --m14h: #3B3741; --m14c: #8B89A6;
  --m15h: #474851; --m15c: #B9CCE6;
}

/* light theme: same tokens as chromoworks.com light */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F8FC;
  --bg-rgb: 246 248 252;
  --bg-alt: #EEF1F7;
  --bg-3: #FFFFFF;
  --surface: #FFFFFF;
  --solid: #FFFFFF;
  --alert-bg: linear-gradient(180deg, #FFFFFF, #FBF9F8);
  --form-bg: rgb(255 255 255 / .9);
  --field: #F6F8FC;
  --field-focus: #FFFFFF;
  --nav-bg: rgb(246 248 252 / .8);
  --menu-bg: rgb(246 248 252 / .97);
  --glass-rgb: 31 26 29;
  --shadow: 0 30px 70px -40px rgb(31 26 29 / .35);

  --text: #1F1A1D;
  --heading: #16111A;
  --fg-rgb: 31 26 29;
  --muted: rgb(var(--fg-rgb) / .68);
  --faint: rgb(var(--fg-rgb) / .5);
  --line: rgb(var(--fg-rgb) / .09);
  --line-2: rgb(var(--fg-rgb) / .16);

  --btn-bg: #16111A;
  --btn-fg: #FFFFFF;
  --gold: #B4842C;
  --heat: #D9622B;
  --heat-rgb: 217 98 43;
  --gold-rgb: 180 132 44;
  --heat-text: #B4501E;
  --gold-text: #8C6410;
  --amber: #A8661C;

  --grad: linear-gradient(100deg, #C2185B 0%, #E0609A 30%, #B4842C 62%, #4A78C4 100%);
  --grad-heat: linear-gradient(100deg, #B82E56 0%, #D9622B 50%, #B4842C 100%);

  /* logo mark: light-ground halo/core set (logo-FINAL/chromoworks-mark.svg) */
  --m0h: #EDC9D3; --m0c: #B82E56;
  --m1h: #FBE3E8; --m1c: #EF94A8;
  --m2h: #F7EFEB; --m2c: #E1C0B2;
  --m3h: #F9F5E5; --m3c: #E8D79C;
  --m4h: #F0D3DD; --m4c: #C4567E;
  --m5h: #F9DAE5; --m5c: #E8709A;
  --m6h: #F1E7EA; --m6c: #C9A3AE;
  --m7h: #F7F6F6; --m7c: #DFDDDB;
  --m8h: #EFD3DF; --m8c: #C15483;
  --m9h: #F7D9E7; --m9c: #E06CA4;
  --m10h: #EFE7ED; --m10c: #C0A2B8;
  --m11h: #F5F6F7; --m11c: #DADDE2;
  --m12h: #E8C8D9; --m12c: #A82A6E;
  --m13h: #F4E4F1; --m13c: #D597C8;
  --m14h: #EEEDF5; --m14c: #BCBBD7;
  --m15h: #EDF2F8; --m15c: #B9CCE6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--heading); font-weight: 500; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.defs { position: absolute; width: 0; height: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 34px -10px rgb(232 112 154 / .55); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgb(var(--glass-rgb) / .03); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: rgb(var(--fg-rgb) / .34); background: rgb(var(--glass-rgb) / .06); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: var(--nav-bg); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 26px; height: 26px; }
.brand__name { font-weight: 600; letter-spacing: -.01em; font-size: 16px; color: var(--heading); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--heading); }
.nav__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; background: none; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mmenu { display: grid; gap: 4px; padding: 8px var(--gutter) 20px; background: var(--menu-bg); border-bottom: 1px solid var(--line); }
.mmenu[hidden] { display: none; }
.mmenu a:not(.btn) { padding: 12px 0; text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--line); }
.mmenu .btn { margin-top: 12px; }

/* theme toggle: moon (dark) morphs into sun (light), same as chromoworks.com */
.theme-toggle {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  color: var(--heading); background: rgb(var(--glass-rgb) / .06); border: 1px solid var(--line-2);
  transition: background .3s, border-color .3s, transform .5s var(--ease);
}
.theme-toggle:hover { background: rgb(var(--glass-rgb) / .12); transform: rotate(-12deg); }
.theme-toggle svg { width: 19px; height: 19px; overflow: visible; }
.tt-core { transform-origin: 12px 12px; transition: transform .7s var(--ease); }
.tt-cut { transition: transform .7s var(--ease); }
.tt-rays { transform-origin: 12px 12px; transition: transform .7s var(--ease), opacity .4s; }
:root:not([data-theme="light"]) .tt-rays { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="light"] .tt-core { transform: scale(.62); }
:root[data-theme="light"] .tt-cut { transform: translate(9px, -9px); }
html.vt-circle::view-transition-old(root), html.vt-circle::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- hero: full-bleed WA command map ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 110px 0 96px; isolation: isolate; background: var(--bg); }
.ops { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.ops-scrim { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(var(--bg-rgb) / .94) 0%, rgb(var(--bg-rgb) / .78) 28%, rgb(var(--bg-rgb) / .16) 50%, transparent 62%),
    linear-gradient(180deg, rgb(var(--bg-rgb) / .5) 0%, transparent 16%, transparent 82%, var(--bg) 100%); }
.hero__in { position: relative; }
.hero__in > * { max-width: 620px; }
.hero__title { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.0; letter-spacing: -.035em; font-weight: 500; }
.hero__title em { display: block; letter-spacing: -.01em; background: var(--grad-heat); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero__lead { margin-top: 26px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 520px !important; }
.hero__ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { margin: 52px 0 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.hero__meta div { border-left: 1px solid var(--line-2); padding-left: 14px; }
.hero__meta dt { font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.hero__meta dd { margin: 8px 0 0; font-size: 14px; color: var(--text); }

/* HUD overlay (HTML so the text stays crisp) */
.ops-hud { position: absolute; inset: 84px var(--gutter) 26px; z-index: -1; pointer-events: none; font: 500 10.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.hc { position: absolute; width: 16px; height: 16px; border-color: rgb(var(--fg-rgb) / .28); border-style: solid; border-width: 0; }
.hc--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hc--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hc--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hc--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hud-status { position: absolute; top: 2px; right: 28px; display: flex; gap: 18px; align-items: center; }
.hud-live { display: inline-flex; align-items: center; gap: 8px; color: var(--heat-text); }
.hud-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 0 0 rgb(var(--heat-rgb) / .6); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(var(--heat-rgb) / .55); } 70%, 100% { box-shadow: 0 0 0 8px rgb(var(--heat-rgb) / 0); } }
.hud-tick { display: inline-flex; gap: 10px; align-items: baseline; color: var(--muted); }
.hud-tick::before { content: "Simulated"; color: var(--heat-text); }
.hud-tick time { color: var(--faint); }
.hud-tick b { font-weight: 500; color: var(--heading); }
.hud-tick.is-new { animation: tickIn .6s var(--ease); }
@keyframes tickIn { from { opacity: 0; transform: translateY(4px); } }
.hud-read { position: absolute; right: 28px; bottom: 6px; display: flex; gap: 18px; font-variant-numeric: tabular-nums; }
.hud-read .lg { display: inline-block; width: 14px; height: 0; border-top: 1.5px solid var(--gold); vertical-align: middle; margin-right: 6px; }
.hud-read .lg--link { border-top: 1.5px dashed rgb(var(--fg-rgb) / .45); }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.sec--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.kicker { display: flex; align-items: center; gap: 12px; font: 500 11.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.kicker span { color: var(--amber); }
.kicker span::after { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--line-2); vertical-align: middle; margin-left: 12px; }
.h2 { margin-top: 22px; font-size: clamp(34px, 4.8vw, 62px); line-height: 1.04; letter-spacing: -.03em; max-width: 900px; }
.h2 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; letter-spacing: -.01em; }
.sub { margin-top: 22px; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 620px; }
.fine { margin-top: 18px; font: 12px/1.5 var(--mono); color: var(--faint); letter-spacing: .02em; max-width: 520px; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }

/* problem cards */
.trio { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; padding: 30px 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .4s, transform .5s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); margin-bottom: 26px; }
.card__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 22px; letter-spacing: -.015em; }
.card p { margin-top: 10px; color: var(--muted); }
.card--hot { border-color: rgb(var(--heat-rgb) / .3); background: radial-gradient(120% 90% at 100% 0%, rgb(var(--heat-rgb) / .12), transparent 60%), var(--surface); }
.card--hot .card__ico { border-color: rgb(var(--heat-rgb) / .45); }
.card--hot .card__ico svg { stroke: var(--heat); }

.statement { margin: 64px 0 0; padding: 0 0 0 clamp(20px, 3vw, 40px); border-left: 2px solid; border-image: var(--grad-heat) 1; max-width: 960px; }
.statement p { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.18; letter-spacing: -.02em; color: var(--heading); font-weight: 400; }
.statement em { color: var(--heat-text); }

/* engine */
.engine { margin-top: 64px; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.signals { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sig { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .5s, background .5s; }
.sig h3 { font-size: 17px; }
.sig p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.sig__ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); transition: border-color .5s, background .5s; }
.sig__ico svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s; }
.sig.is-on { border-color: rgb(var(--gold-rgb) / .35); background: rgb(var(--gold-rgb) / .05); }
.sig.is-on .sig__ico { border-color: rgb(var(--gold-rgb) / .5); background: rgb(var(--gold-rgb) / .08); }
.sig.is-on .sig__ico svg { stroke: var(--gold); }

.alert { margin: 0; position: relative; padding: 26px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--alert-bg); box-shadow: var(--shadow); }
.alert::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad-heat); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 1s; pointer-events: none; }
.alert.is-done::before { opacity: .7; }
.alert__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.alert__tier { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--heat-text); padding: 7px 11px; border-radius: 999px; background: rgb(var(--heat-rgb) / .1); border: 1px solid rgb(var(--heat-rgb) / .3); }
.alert__tier i { width: 7px; height: 7px; border-radius: 50%; background: var(--heat); }
.alert__id { font: 11px/1 var(--mono); color: var(--faint); letter-spacing: .06em; }
.alert__chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.ch { font-size: 13px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--muted); opacity: .35; transform: translateY(4px); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .6s, color .6s; }
.ch.is-on { opacity: 1; transform: none; color: var(--text); border-color: rgb(var(--gold-rgb) / .45); }
.alert__lbl { display: block; font: 500 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.alert__why { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.55; color: var(--text); }
.alert__act { margin-top: 18px; font-size: 16.5px; color: var(--gold-text); }
.alert__why, .alert__act { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.alert.is-pending .alert__why, .alert.is-pending .alert__act { opacity: 0; transform: translateY(6px); }
.alert__foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* utilities */
.who { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.who li { font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
.value { display: grid; gap: 12px; }
.val { display: flex; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--solid); transition: border-color .4s; }
.val:hover { border-color: rgb(var(--gold-rgb) / .4); }
.val__n { font: 500 12px/1.7 var(--mono); color: var(--amber); letter-spacing: .1em; }
.val h3 { font-size: 19px; letter-spacing: -.01em; }
.val p { margin-top: 4px; color: var(--muted); }

/* team */
.team { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mem { padding: 18px 18px 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--solid); transition: border-color .4s, transform .5s var(--ease); }
.mem:hover { border-color: var(--line-2); transform: translateY(-3px); }
.mem img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; filter: saturate(.92); }
.mem h3 { margin: 22px 6px 0; font-size: 21px; letter-spacing: -.015em; }
.mem__r { margin: 6px 6px 0; font: 500 11.5px/1.45 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.mem p:not(.mem__r) { margin: 12px 6px 0; color: var(--muted); font-size: 15px; }
.mem a { display: inline-block; margin: 16px 6px 0; font-size: 14px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.mem a:hover { border-color: var(--gold); }
.team__more { margin-top: 30px; }
.team__more a { font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.team__more a:hover { color: var(--heading); }

/* contact */
.contact { overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.contact__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 80% 50%, rgb(232 112 154 / .10), transparent 70%), radial-gradient(40% 50% at 10% 20%, rgb(var(--heat-rgb) / .08), transparent 70%); }
.contact__in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__mail { margin-top: 28px; color: var(--muted); }
.contact__mail a { color: var(--heading); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact__mail a:hover { border-color: var(--gold); }
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: 24px; border: 1px solid var(--line-2); background: var(--form-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; }
.form label > span { font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.form input, .form select, .form textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--text); background-color: var(--field); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; transition: border-color .25s, background-color .25s; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form select option { background: var(--bg-3); color: var(--text); }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: rgb(var(--gold-rgb) / .7); background-color: var(--field-focus); }
.form .is-bad { border-color: rgb(232 112 154 / .8); }
.form__note { font-size: 13px; color: var(--faint); }
.form__note a { color: var(--muted); }
.form__status { font-size: 14.5px; min-height: 1px; }
.form__status.ok { color: var(--gold-text); }
.form__status.err { color: var(--pink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 34px; }
.foot__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot__links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.foot__links a:hover { color: var(--heading); }
.foot__disc { margin-top: 34px; font-size: 13px; line-height: 1.6; color: var(--faint); max-width: 860px; }
.foot__base { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 11.5px/1.4 var(--mono); letter-spacing: .06em; color: var(--faint); }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .hud-leg { display: none; }
  .hero__in > * { max-width: 520px; }
  .hero__title { font-size: clamp(42px, 5.3vw, 84px); }
}
@media (max-width: 1100px) {
  .nav__links { gap: 20px; }
  .form__row--stack { grid-template-columns: 1fr; }
  .hud-read { display: none; }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .theme-toggle { margin-left: auto; }
  /* map takes the top of the screen (height set in main.js layout), headline starts just below it */
  .hero { display: block; min-height: 0; padding: calc(76px + min(134vw, 560px) - 70px) 0 48px; }
  .ops-scrim { background: linear-gradient(180deg, rgb(var(--bg-rgb) / .3) 0, transparent 90px, transparent calc(min(134vw, 560px) - 40px), var(--bg) calc(min(134vw, 560px) + 40px)); }
  .ops-hud { inset: 80px var(--gutter) 18px; }
  .hud-status { right: 22px; gap: 12px; font-size: 9.5px; }
  .hud-status span:nth-child(2) { display: none; }
  .split, .engine, .contact__in { grid-template-columns: 1fr; }
  .trio, .team { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .hero__title { font-size: clamp(38px, 11vw, 56px); }
  .hero__meta { gap: 14px 24px; margin-top: 36px; }
  .trio, .team { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .alert { padding: 20px; }
}

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