/* Spartan Advisory Solutions — custom static styles. No utility framework. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-400700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC;
}

:root {
  color-scheme: dark;
  --bg: #090b0a;
  --bg-2: #101413;
  --bg-3: #181c1a;
  --fg: #eee9dd;
  --fg-dim: #a8a396;
  --fg-faint: #6f6c64;
  --line: color-mix(in oklab, var(--fg) 11%, transparent);
  --line-strong: color-mix(in oklab, var(--fg) 22%, transparent);
  --accent: #c9a57c;
  --accent-2: #e2c8a2;
  --sage: #7da894;
  --ember: #c57b56;
  --glass: color-mix(in oklab, #141916 64%, transparent);
  --glass-2: color-mix(in oklab, #1c221f 72%, transparent);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --header-h: 4.25rem;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --wide: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f1ece3;
  --bg-2: #e7e0d3;
  --bg-3: #fffaf2;
  --fg: #161714;
  --fg-dim: #5b5851;
  --fg-faint: #8a867c;
  --accent: #8a5a2b;
  --accent-2: #6b4320;
  --sage: #2f6b54;
  --ember: #a24e32;
  --glass: color-mix(in oklab, #fffaf2 70%, transparent);
  --glass-2: color-mix(in oklab, #fff 76%, transparent);
  --shadow: 0 28px 70px -28px rgba(40, 30, 16, 0.22);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background: transparent;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
  font-variation-settings: "opsz" 72, "SOFT" 20, "WONK" 1;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 80;
  background: var(--accent);
  color: #14110d;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0.7rem; }

/* ---------- Atmosphere ---------- */
main, .site-header, .site-footer { position: relative; z-index: 1; }
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.atmosphere .mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(42% 36% at 14% 16%, color-mix(in oklab, var(--accent) 38%, transparent), transparent 70%),
    radial-gradient(36% 42% at 86% 10%, color-mix(in oklab, var(--sage) 26%, transparent), transparent 68%),
    radial-gradient(48% 42% at 72% 82%, color-mix(in oklab, var(--ember) 18%, transparent), transparent 70%),
    radial-gradient(32% 32% at 22% 88%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%);
  filter: blur(30px);
  animation: aurora 28s var(--ease) infinite alternate;
  opacity: 0.9;
}

[data-theme="light"] .atmosphere .mesh { opacity: 0.55; }

.atmosphere .grain {
  position: absolute;
  inset: 0;
  background-image: url("/assets/grain.png");
  background-size: 180px 180px;
  opacity: 0.18;
  mix-blend-mode: overlay;
}

[data-theme="light"] .atmosphere .grain {
  opacity: 0.28;
  mix-blend-mode: multiply;
}

@keyframes aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* ---------- Chrome ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.wrap {
  width: min(var(--wide), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(var(--wide), calc(100% - 2 * var(--gutter)));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: max-content;
}
.brand-mark {
  width: 2.05rem;
  height: 2.05rem;
  flex: none;
}
.brand-mark .rules { stroke: var(--accent); }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
html:not([data-theme]) .icon-moon { display: none; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name strong {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 0.98rem;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 36, "SOFT" 0, "WONK" 0;
}
.brand-name span {
  font-size: 0.68rem;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav a {
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  color: var(--fg-dim);
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg);
  background: color-mix(in oklab, var(--fg) 6%, transparent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.4rem;
}

.icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  display: grid;
  place-items: center;
  color: var(--fg);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; grid-area: 1 / 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 550;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid {
  background: var(--accent);
  color: #16130f;
}
.btn-solid:hover { background: var(--accent-2); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn-ghost:hover { background: var(--glass); }
.btn-sm { padding: 0.52rem 0.95rem; font-size: 0.86rem; }

.menu-toggle { display: none; }

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem var(--gutter) 1.1rem;
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    gap: 0.15rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0.85rem; }
  .menu-toggle { display: grid; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 6vh, 4.5rem) 0 clamp(3rem, 8vh, 5.5rem);
  min-height: calc(100svh - var(--header-h));
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.048em;
  max-width: 11.5ch;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  animation: heroType 1.4s var(--ease) both;
}
.hero h1 .line-2 {
  color: var(--accent);
  display: block;
}

@keyframes heroType {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
    font-variation-settings: "opsz" 24, "SOFT" 80, "WONK" 0;
    letter-spacing: -0.02em;
  }
  to {
    opacity: 1;
    transform: none;
    font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
    letter-spacing: -0.048em;
  }
}

.hero-lead {
  margin-top: 1.35rem;
  max-width: 38rem;
  color: var(--fg-dim);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem 1.4rem;
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) {
  .hero-meta { grid-template-columns: 1fr; }
}
.stat strong, .stat [data-count] {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 36;
}
.stat span {
  display: block;
  color: var(--fg-dim);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

/* Dashboard mock */
.dash {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: var(--shadow), inset 0 1px 0 color-mix(in oklab, white 8%, transparent);
  overflow: hidden;
  min-height: 28rem;
}
.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 520px) {
  .dash-title { display: none; }
}
.dash-dots { display: flex; gap: 0.35rem; }
.dash-dots i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--line-strong);
  display: block;
}
.dash-dots i:nth-child(1) { background: #c57b56; }
.dash-dots i:nth-child(2) { background: #c9a57c; }
.dash-dots i:nth-child(3) { background: #7da894; }

.dash-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.seg {
  display: inline-flex;
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 40%, transparent);
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--fg-dim);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 550;
}
.seg button[aria-pressed="true"] {
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  color: var(--fg);
}

.dash-body { padding: 1.05rem 1.05rem 1.2rem; }
.dash-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 550;
  background: color-mix(in oklab, var(--sage) 18%, transparent);
  color: var(--sage);
  border: 1px solid color-mix(in oklab, var(--sage) 35%, transparent);
}
.pill::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--sage) 25%, transparent);
}
.dash-status .when {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-faint);
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.metric {
  border: 1px solid var(--line);
  background: var(--glass-2);
  border-radius: 16px;
  padding: 0.85rem 0.9rem 0.8rem;
}
.metric.span-2 { grid-column: 1 / -1; }
.metric label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-family: var(--font-mono);
}
.metric b {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 520;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.metric small {
  color: var(--sage);
  font-size: 0.78rem;
}

.bars {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}
.bar-row { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 0.6rem; align-items: center; }
.bar-row span { font-size: 0.8rem; color: var(--fg-dim); }
.bar-row em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-faint);
}
.track {
  height: 0.38rem;
  border-radius: 99px;
  background: color-mix(in oklab, var(--fg) 8%, transparent);
  overflow: hidden;
}
.track > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--sage));
  transition: width 1.15s var(--ease);
}
.dash.is-on .track > i { width: var(--w); }

/* ---------- Sections / bento ---------- */
.section { padding: clamp(3.2rem, 8vh, 5.75rem) 0; }
.section-head {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.8rem;
  max-width: 42rem;
}
.section-head .idx {
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  max-width: 16ch;
}
.section-head p {
  max-width: 38rem;
  color: var(--fg-dim);
  margin-top: 0.45rem;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}
.tile {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.25rem 1.3rem 1.3rem;
  box-shadow: inset 0 1px 0 color-mix(in oklab, white 7%, transparent);
  min-height: 100%;
}
.tile-lg { grid-column: span 7; }
.tile-md { grid-column: span 5; }
.tile-sm { grid-column: span 4; }
.tile-wide { grid-column: span 12; }
.tile-focus {
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--accent) 10%, transparent), transparent 42%),
    var(--glass);
  border-color: color-mix(in oklab, var(--accent) 32%, var(--line));
}
.tile h3 {
  font-size: 1.45rem;
  margin: 0.15rem 0 0.55rem;
}
.tile p, .tile li { color: var(--fg-dim); }
.tile ul { list-style: none; display: grid; gap: 0.4rem; margin-top: 0.85rem; }
.tile li {
  padding-left: 1rem;
  position: relative;
}
.tile li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.4rem;
  height: 1px;
  background: var(--accent);
}
.tile .more {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.9rem;
}
.tile .more:hover { color: var(--accent-2); }

/* Command-style year-end check */
.console {
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--line-strong);
  background: color-mix(in oklab, var(--bg) 55%, transparent);
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
}
.console-bar b { color: var(--fg); font-weight: 500; }
.kbd {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05rem 0.35rem;
  font-size: 0.68rem;
  color: var(--fg-faint);
}
.console-body { padding: 1.15rem 1.15rem 1.25rem; flex: 1; }
.console-q {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.03em;
  margin: 0.35rem 0 1.15rem;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}
.choices { display: grid; gap: 0.55rem; }
.choice {
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass-2);
  padding: 0.8rem 0.95rem;
  color: var(--fg);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.choice:hover,
.choice:focus-visible {
  border-color: color-mix(in oklab, var(--accent) 55%, var(--line));
  background: color-mix(in oklab, var(--accent) 10%, var(--glass-2));
  transform: translateX(2px);
}
.choice .hint {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fg-faint);
  margin-top: 0.15rem;
}
.progress-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  padding: 0 1.15rem 1.05rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-faint);
}
.progress-line .meter {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.progress-line .meter > i {
  display: block;
  height: 100%;
  background: var(--accent);
  width: var(--p, 0%);
  transition: width 0.35s var(--ease);
}
.result h3 { font-size: 1.5rem; margin-bottom: 0.55rem; }
.result p { color: var(--fg-dim); }
.result .disclaimer {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--fg-faint);
}
.result-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.15rem; }

/* Process band */
.process {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem 2.5rem;
  align-items: start;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  padding: clamp(1.3rem, 3vw, 2.1rem);
}
.process ol {
  list-style: none;
  display: grid;
  gap: 1rem;
  border-left: 1px solid var(--line);
  padding-left: 1.15rem;
}
.process li { position: relative; }
.process li::before {
  content: "";
  position: absolute;
  left: -1.3rem;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
}
.process strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 520; }
.process span { color: var(--fg-dim); font-size: 0.95rem; }

/* CTA band */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
  padding: 1.6rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line));
  background:
    linear-gradient(120deg, color-mix(in oklab, var(--accent) 14%, transparent), transparent 55%),
    var(--glass);
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 16ch; }
.cta-band p { color: var(--fg-dim); margin-top: 0.4rem; max-width: 36rem; }

/* ---------- Interior pages ---------- */
.page-hero {
  padding: clamp(2.2rem, 6vh, 3.8rem) 0 1.5rem;
}
.page-hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  max-width: 16ch;
  font-variation-settings: "opsz" 96, "SOFT" 10, "WONK" 1;
}
.page-hero .deck {
  margin-top: 1rem;
  max-width: 40rem;
  color: var(--fg-dim);
  font-size: 1.08rem;
}

.prose {
  max-width: 42rem;
  display: grid;
  gap: 1rem;
  color: var(--fg-dim);
}
.prose h2, .prose h3 { color: var(--fg); margin-top: 1.2rem; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.15rem; display: grid; gap: 0.35rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}

.service-stack { display: grid; gap: 0.85rem; }
.service {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.6rem 1.1rem;
  padding: 1.3rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
}
.service .num {
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}
.service h2 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); }
.service p { color: var(--fg-dim); margin: 0.35rem 0 0.7rem; }
.service ul { list-style: none; display: grid; gap: 0.28rem; color: var(--fg-dim); }
.service li { padding-left: 0.9rem; position: relative; }
.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.35rem;
  height: 1px;
  background: var(--accent);
}

/* Form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.4rem 2rem;
  align-items: start;
}
.form {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
}
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field label { font-size: 0.82rem; font-weight: 550; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: color-mix(in oklab, var(--bg) 55%, transparent);
  padding: 0.7rem 0.8rem;
  outline: none;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
}
.form-note, .form-status {
  font-size: 0.85rem;
  color: var(--fg-dim);
}
.form-status[data-state="ok"] { color: var(--sage); }
.form-status[data-state="err"] { color: var(--ember); }
.mailto-fallback a { color: var(--accent); }

/* Insights */
.post-list { display: grid; gap: 0.85rem; }
.post-card {
  display: grid;
  gap: 0.4rem;
  text-decoration: none;
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  transition: border-color 0.2s, transform 0.25s var(--ease);
}
.post-card:hover { border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); transform: translateY(-2px); }
.post-card time, .post-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-card h2 { font-size: 1.55rem; }
.post-card p { color: var(--fg-dim); }
.article { max-width: 42rem; }
.article .post-meta { margin: 0.8rem 0 1.4rem; }
.article p + p { margin-top: 1rem; }
.article h2 { font-size: 1.5rem; margin: 1.8rem 0 0.6rem; }

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2rem;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 48, "SOFT" 20;
  margin-bottom: 0.5rem;
}
.footer-grid p { color: var(--fg-dim); max-width: 22rem; }
.footer-grid h2 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.7rem;
  font-weight: 500;
}
.footer-grid ul { list-style: none; display: grid; gap: 0.35rem; }
.footer-grid a { text-decoration: none; color: var(--fg-dim); }
.footer-grid a:hover { color: var(--fg); }
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--fg-faint);
  font-size: 0.82rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: none;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}

/* 404 */
.not-found {
  min-height: calc(100svh - var(--header-h) - 14rem);
  display: grid;
  align-content: center;
  padding: 3rem 0;
}
.not-found h1 { font-size: clamp(3rem, 10vw, 7rem); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Mobile */
@media (max-width: 900px) {
  .hero,
  .split,
  .contact-grid,
  .process,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .tile-lg, .tile-md, .tile-sm, .tile-wide { grid-column: span 12; }
  .service { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 1.8rem; }
  .dash { min-height: 0; }
  .field-row { grid-template-columns: 1fr; }
}

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