/* Automated Fission — site styles */
:root {
  --bg: #000;
  --bg-2: #070a12;
  --panel: rgba(8, 12, 22, 0.82);
  --line: rgba(166, 214, 245, 0.16);
  --line-2: rgba(166, 214, 245, 0.32);
  --ink: #eaf4fb;
  --ink-2: #a9bccb;
  --ink-3: #6f8597;
  --ice: #c3e4f7;      /* logo pale blue */
  --sky: #6cc9fb;      /* logo bright blue */
  --heat: #ffb347;     /* fresh bead / heat */
  --ok: #7be3a6;
  --err: #ff8f8f;
  --radius: 14px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --display: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); margin: 0 0 14px; }

/* ---- header ---- */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 30; background: linear-gradient(#000 0%, rgba(0,0,0,0.75) 70%, rgba(0,0,0,0)); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; }
.brand img { height: 40px; width: auto; }
.brand span { font-family: var(--display); font-weight: 800; letter-spacing: 0.06em; font-size: 17px; line-height: 1; }
.brand span b { display: block; font-size: 22px; letter-spacing: 0.04em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a, .nav button { font: 500 15px var(--sans); color: var(--ink-2); background: none; border: 0; padding: 9px 12px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.nav a:hover, .nav button:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.nav a[aria-current="page"]:not(.cta) { color: var(--ink); }
.nav .cta { color: #00111c; background: var(--ice); font-weight: 600; }
.nav .cta:hover { background: #fff; color: #00111c; }
@media (max-width: 640px) {
  .brand span { display: none; }
  .nav a, .nav button { padding: 8px 8px; font-size: 14px; }
}

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15.5px var(--sans); padding: 13px 20px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--ink); background: rgba(255,255,255,0.03); cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: rgba(255,255,255,0.08); border-color: var(--ice); }
.btn.primary { background: var(--ice); color: #00111c; border-color: var(--ice); }
.btn.primary:hover { background: #fff; }
.btn.small { padding: 8px 12px; font-size: 13.5px; border-radius: 8px; }

/* ---- hero with the procedural reactor ---- */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: radial-gradient(ellipse at 68% 48%, #1b1446 0%, #070a10 62%, #000 100%); }
.hero-stage { position: absolute; inset: 0; }
/* the canvas runs past the bottom edge (and 170px past the left on phones) so the engine's corner axes stay out of sight */
.hero-stage canvas { position: absolute; left: calc(26% - 170px); right: -60px; top: -120px; bottom: -190px; width: calc(74% + 230px); height: calc(100% + 310px); display: block; opacity: 0; transition: opacity 1.6s ease; cursor: grab; touch-action: pan-y; }
.hero-stage canvas.on { opacity: 1; }
.hero-stage canvas:active { cursor: grabbing; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0) 58%), linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 22%); }
.hero-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: flex-end; padding-right: 6vw; }
.hero-fallback img { width: min(44vw, 560px); opacity: 0.9; }
.hero.no3d .hero-fallback { display: flex; }
.hero.no3d .spec { display: none; }
.hero-copy { position: relative; z-index: 2; padding: 150px 0 120px; max-width: 600px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 22px; }
.hero h1 em { font-style: normal; color: var(--ice); }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 520px; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hint { margin-top: 26px; font: 12.5px var(--mono); color: var(--ink-3); letter-spacing: 0.04em; }
@media (max-width: 860px) {
  .hero-shade { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,0.92) 42%, rgba(0,0,0,0) 62%); }
  .hero-stage canvas { pointer-events: none; left: -170px; right: -170px; top: 64px; bottom: auto; width: calc(100% + 340px); height: 50svh; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
  .hero-copy { padding-top: calc(50svh + 40px); padding-bottom: 32px; }
  .hint { display: none; }
}

/* spec readout of the design on screen */
.spec { position: absolute; z-index: 3; right: max(16px, calc((100% - 1200px) / 2)); bottom: 36px; width: 350px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--mono); font-size: 12.5px; }
.spec header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.spec .serial { color: var(--ice); font-weight: 600; font-size: 13.5px; letter-spacing: 0.04em; }
.spec .tag { color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }
.spec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; }
.spec dt { color: var(--ink-3); }
.spec dd { margin: 0; color: var(--ink); text-align: right; }
.spec .bar { margin: 12px 0 4px; height: 4px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.spec .bar i { display: block; height: 100%; width: 0; background: var(--heat); transition: width .8s ease; }
.spec .barlab { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 11px; }
.spec .row { display: flex; gap: 8px; margin-top: 12px; }
.spec .row .btn { flex: 1; justify-content: center; font-family: var(--sans); }
.spec .note { margin: 10px 0 0; color: var(--ink-3); font-size: 10.5px; line-height: 1.45; font-family: var(--sans); }
@media (max-width: 860px) { .spec { position: relative; right: auto; bottom: auto; width: auto; margin: 0 16px 32px; } }

/* ---- sections ---- */
.section { padding: 110px 0; border-top: 1px solid var(--line); background: var(--bg); }
.section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 18px; }
.section .intro { color: var(--ink-2); max-width: 680px; font-size: 18.5px; margin: 0 0 54px; }

/* who we are */
.team { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.person { display: grid; grid-template-columns: 132px 1fr; gap: 26px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(108, 201, 251, 0.06), rgba(255,255,255,0.01)); }
.avatar { width: 132px; height: 132px; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #1d3e57, #0a1522); border: 1px solid var(--line-2); font: 700 44px var(--display); color: var(--ice); letter-spacing: 0.02em; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-family: var(--display); font-size: 28px; margin: 2px 0 4px; letter-spacing: -0.01em; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.roles li { font: 500 12.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ice); border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 999px; }
.person p { margin: 0 0 12px; color: var(--ink-2); }
.person p:last-child { margin-bottom: 0; }
.values { display: grid; gap: 18px; }
.value { padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.value:last-child { border-bottom: 0; }
.value h4 { margin: 0 0 4px; font-size: 17px; }
.value p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } .avatar { width: 96px; height: 96px; font-size: 34px; } }

/* call to action strip */
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(120deg, rgba(108,201,251,0.10), rgba(255,179,71,0.05)); }
.cta-strip h3 { margin: 0 0 4px; font-family: var(--display); font-size: 26px; }
.cta-strip p { margin: 0; color: var(--ink-2); }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--ink-3); font-size: 14.5px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.site-foot img { width: 220px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

/* ---- "What we do" sliding pane ---- */
.pane-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,0.45); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.pane { position: fixed; z-index: 41; top: 0; right: 0; height: 100%; width: min(520px, 100%); background: #05080f; border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px rgba(0,0,0,0.6); transform: translateX(104%); transition: transform .45s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.pane.open { transform: none; }
.pane.open + .pane-scrim, .pane-scrim.on { opacity: 1; pointer-events: auto; }
.pane-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 14px; border-bottom: 1px solid var(--line); }
.pane-head h2 { margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: -0.01em; }
.pane-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.pane-close:hover { background: rgba(255,255,255,0.08); }
.pane-body { overflow-y: auto; padding: 22px 26px 30px; }
.pane-body > p { color: var(--ink-2); margin: 0 0 22px; }
.steps { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 58px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.02); }
.steps li::before { content: "0" counter(s); position: absolute; left: 16px; top: 16px; font: 600 13px var(--mono); color: var(--sky); }
.steps h3 { margin: 0 0 4px; font-size: 16.5px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.targets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 24px; }
.targets div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.targets b { display: block; font: 600 18px var(--mono); color: var(--ice); }
.targets span { font-size: 13px; color: var(--ink-3); }
.pane-tab { position: fixed; z-index: 35; right: 0; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font: 600 12.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #00111c; background: var(--ice); border: 0; padding: 16px 9px; border-radius: 0 10px 10px 0; cursor: pointer; transition: opacity .3s; }
.pane-tab:hover { background: #fff; }
.pane-tab.hidden { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .pane-tab { display: none; } }

/* ---- contact page ---- */
.page-top { padding: 140px 0 40px; background: radial-gradient(ellipse at 80% 0%, #15123a 0%, #000 60%); }
.page-top h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5vw, 60px); margin: 0 0 14px; letter-spacing: -0.02em; line-height: 1.05; }
.page-top p { color: var(--ink-2); max-width: 640px; font-size: 18.5px; margin: 0; }
.mailboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 40px 0 0; }
.mailbox { padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(255,255,255,0.02); }
.mailbox .k { font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); margin: 0 0 6px; }
.mailbox h2 { margin: 0 0 6px; font-size: 21px; }
.mailbox a.addr { font: 600 17px var(--mono); word-break: break-all; }
.mailbox p { color: var(--ink-2); margin: 8px 0 0; font-size: 15px; }
@media (max-width: 720px) { .mailboxes { grid-template-columns: 1fr; } }
.form-wrap { padding: 56px 0 100px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 820px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
.form input, .form select, .form textarea { width: 100%; font: 16px var(--sans); color: var(--ink); background: #070b13; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(108,201,251,0.18); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.status { font-size: 15px; margin: 0; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
