/* ============================================================
   Bedrock — landing page · dark "Slate" theme
   Built on the product's design data (PROJECT.md §4).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Slate (default dark) neutrals */
  --bg-base:    #0E1015;   /* the deepest layer / behind the graph */
  --bg-canvas:  #14171C;
  --bg-sidebar: #101318;
  --panel:      rgba(22, 26, 32, 0.78);
  --panel-solid:#181C22;
  --card:       #1A1E25;
  --card-hi:    #20252D;

  --ink:      #E7EAEF;
  --ink-soft: #AEB4BF;
  --ink-mute: #757C88;
  --border:   rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Accent ramps (brand) — sage primary */
  --sage-300:#93CBAE; --sage-400:#6FB893; --sage-500:#4FA47A; --sage-600:#3D8763;
  --coral-400:#EE8978; --coral-500:#E26B58;
  --butter-400:#ECC25E; --butter-500:#D9A93C;
  --sky-400:#7BB3DA; --sky-500:#5A95C5;
  --lavender-400:#A795CD; --lavender-500:#8B76B8;
  --sand-400:#948B72;

  --primary: var(--sage-500);
  --primary-hi: var(--sage-400);

  /* Context Composer reserved indigo */
  --composer:      #8470DB;
  --composer-deep: #6D54C7;
  --composer-soft: rgba(132, 112, 219, 0.16);
  --composer-line: rgba(132, 112, 219, 0.40);

  /* Doc-type glyph colours (graph legend) */
  --t-rules:   #E26B58;
  --t-plans:   #5A95C5;
  --t-arch:    #4FA47A;
  --t-adr:     #D9A93C;
  --t-prompts: #8B76B8;
  --t-notes:   #948B72;

  /* Type */
  --font-display:'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-serif:'Newsreader', ui-serif, Georgia, serif;
  --font-mono:'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radii */
  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-xl:20px; --r-full:999px;

  /* Shadows (deep, for dark) */
  --shadow-md: 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.55), 0 4px 12px rgba(0,0,0,.4);

  --ease: cubic-bezier(.2,.8,.2,1);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- The graph canvas, fixed behind everything ---- */
#graph {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}
/* a soft radial glow seated under the hero */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 560px at 50% 8%, rgba(79,164,122,.18), transparent 70%),
    radial-gradient(700px 480px at 82% 4%, rgba(132,112,219,.12), transparent 70%);
}

/* everything sits above the graph */
.page { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
::selection { background: rgba(79,164,122,.32); }

/* ============================================================
   Top nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 60px; padding: 0 28px;
  background: rgba(14,16,21,.62);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand .mark {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 8px; background: var(--ink); color: #0E1015;
  font-weight: 800; font-size: 17px;
}
.brand .mark::after { content:""; }
.nav .spring { flex: 1; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 7px 13px; border-radius: 8px; font-size: 14.5px; color: var(--ink-soft);
  transition: color var(--ease) .15s, background var(--ease) .15s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.nav-ghost {
  padding: 8px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  border: 1px solid var(--border-strong); color: var(--ink);
  transition: border-color var(--ease) .15s, background var(--ease) .15s;
}
.nav-ghost:hover { border-color: var(--sage-500); background: rgba(79,164,122,.1); }
@media (max-width: 860px){ .nav-links { display:none; } }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  font-family: var(--font-display); cursor: pointer; border: 1px solid transparent;
  transition: transform var(--ease) .12s, background var(--ease) .15s, border-color var(--ease) .15s, box-shadow var(--ease) .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #08130D; box-shadow: 0 6px 22px rgba(79,164,122,.28); }
.btn-primary:hover { background: var(--sage-400); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-mute); background: rgba(255,255,255,.07); }
.btn svg { width: 18px; height: 18px; }

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; position: relative; }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 16px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.025em;
  font-weight: 700; margin: 0 0 16px;
}
.section .lede { font-size: 18px; color: var(--ink-soft); max-width: 620px; line-height: 1.6; margin: 0; }
.head-center { text-align: center; }
.head-center .lede { margin: 0 auto; }

/* content scrim — keeps text crisp over the moving graph */
.scrim {
  background: linear-gradient(180deg, rgba(14,16,21,.55) 0%, rgba(14,16,21,.92) 14%, var(--bg-canvas) 30%);
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 92px 0 64px; text-align: center; }
.tagpill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px 6px 8px; border-radius: 999px; font-size: 13px; color: var(--ink-soft);
  background: rgba(255,255,255,.04); border: 1px solid var(--border); margin-bottom: 26px;
}
.tagpill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-400); box-shadow: 0 0 10px var(--sage-400); }
.tagpill b { color: var(--ink); font-weight: 600; }

.hero h1 {
  font-size: clamp(40px, 7.4vw, 86px); line-height: .98; letter-spacing: -.035em;
  font-weight: 800; margin: 0 auto 22px; max-width: 14ch;
}
.hero h1 .ser { font-family: var(--font-serif); font-weight: 500; font-style: italic; letter-spacing: -.01em; }
.hero .sub { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 600px; margin: 0 auto 34px; }

.downloads { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.dl-os { display:inline-flex; align-items:center; gap:9px; }
.dl-meta { display:flex; align-items:center; justify-content:center; gap:14px; font-size:13px; color: var(--ink-mute); }
.dl-meta a { color: var(--ink-soft); border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; }
.dl-meta a:hover { color: var(--ink); border-color: var(--sage-500); }

/* floating app window mock */
.appshot {
  margin: 64px auto 0; max-width: 1000px;
  border: 1px solid var(--border-strong); border-radius: 16px; overflow: hidden;
  background: var(--bg-canvas); box-shadow: var(--shadow-lg);
}

/* ============================================================
   App window mock (reused as hero shot)
   ============================================================ */
.win-bar { display:flex; align-items:center; gap:8px; height:38px; padding:0 14px; background: var(--bg-sidebar); border-bottom:1px solid var(--border); }
.win-bar .lights { display:flex; gap:7px; }
.win-bar .lights i { width:11px; height:11px; border-radius:50%; display:block; }
.win-bar .lights i:nth-child(1){ background:#E26B58; }
.win-bar .lights i:nth-child(2){ background:#D9A93C; }
.win-bar .lights i:nth-child(3){ background:#4FA47A; }
.win-bar .title { font-size:12.5px; color: var(--ink-mute); margin-left:8px; font-family: var(--font-mono); }
.win-body { display:grid; grid-template-columns: 210px 1fr 196px; min-height: 420px; }
.win-lib { background: var(--bg-sidebar); border-right:1px solid var(--border); padding:14px 10px; font-size:13px; }
.win-grouphd { font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-mute); margin:14px 8px 6px; font-weight:600; }
.win-grouphd:first-child{ margin-top:2px; }
.libitem { display:flex; align-items:center; gap:9px; padding:6px 8px; border-radius:7px; color: var(--ink-soft); }
.libitem .g { width:7px; height:7px; border-radius:2px; flex:none; }
.libitem.active { background: rgba(255,255,255,.05); color: var(--ink); }
.win-edit { padding:22px 26px; min-width:0; }
.win-edit .fm { font-family: var(--font-mono); font-size:12px; color: var(--ink-mute); background: rgba(255,255,255,.03); border:1px solid var(--border); border-radius:8px; padding:9px 12px; margin-bottom:18px; }
.win-edit h4 { font-size:21px; margin:0 0 12px; letter-spacing:-.02em; }
.win-edit p { font-size:13.5px; color: var(--ink-soft); margin:0 0 11px; line-height:1.6; }
.win-edit .wikilink { color: var(--sage-400); border-bottom:1px solid rgba(79,164,122,.4); }
.win-insp { background: var(--bg-sidebar); border-left:1px solid var(--border); padding:14px 14px; font-size:12.5px; }
.win-insp .tab { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-mute); font-weight:600; margin-bottom:10px; }
.mini-graph { height:120px; border:1px solid var(--border); border-radius:10px; background: var(--bg-canvas); margin-bottom:16px; position:relative; overflow:hidden; }
.backlink { display:flex; gap:8px; align-items:center; padding:6px 0; color: var(--ink-soft); border-bottom:1px solid var(--border); }
.backlink:last-child{ border-bottom:none; }
@media (max-width: 760px){ .win-body { grid-template-columns: 1fr; } .win-lib, .win-insp { display:none; } }

/* ============================================================
   Problem comparison
   ============================================================ */
.compare { display:grid; grid-template-columns: 1fr 1fr; gap:18px; margin-top:48px; }
.compare .col { border:1px solid var(--border); border-radius:16px; padding:24px; background: var(--panel); }
.compare .col.good { border-color: rgba(79,164,122,.32); background: rgba(79,164,122,.05); }
.compare .col h3 { margin:0 0 18px; font-size:15px; letter-spacing:.02em; display:flex; align-items:center; gap:9px; }
.compare .col h3 .ic { width:22px; height:22px; border-radius:7px; display:grid; place-items:center; }
.compare .col.bad .ic { background: rgba(226,107,88,.16); color: var(--coral-400); }
.compare .col.good .ic { background: rgba(79,164,122,.18); color: var(--sage-400); }
.compare ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:13px; }
.compare li { display:flex; gap:11px; font-size:14.5px; color: var(--ink-soft); line-height:1.45; }
.compare li svg { width:17px; height:17px; flex:none; margin-top:2px; }
.compare .bad li svg { color: var(--coral-500); }
.compare .good li svg { color: var(--sage-500); }
@media (max-width:760px){ .compare { grid-template-columns:1fr; } }

/* ============================================================
   Feature grid
   ============================================================ */
.fgrid { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; margin-top:52px; }
.fcard {
  border:1px solid var(--border); border-radius:16px; padding:26px 24px; background: var(--panel);
  transition: border-color var(--ease) .18s, transform var(--ease) .18s, background var(--ease) .18s;
}
.fcard:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--card); }
.fcard .ic { width:40px; height:40px; border-radius:11px; display:grid; place-items:center; margin-bottom:18px; }
.fcard .ic svg { width:21px; height:21px; }
.fcard h3 { font-size:18px; margin:0 0 9px; letter-spacing:-.01em; }
.fcard p { font-size:14px; color: var(--ink-soft); margin:0; line-height:1.55; }
.fcard.span2 { grid-column: span 2; }
@media (max-width:900px){ .fgrid { grid-template-columns:1fr 1fr; } .fcard.span2{ grid-column: span 2; } }
@media (max-width:620px){ .fgrid { grid-template-columns:1fr; } .fcard.span2{ grid-column:auto; } }

.tint-sage   { background: rgba(79,164,122,.16); color: var(--sage-400); }
.tint-sky    { background: rgba(90,149,197,.16); color: var(--sky-400); }
.tint-butter { background: rgba(217,169,60,.16); color: var(--butter-400); }
.tint-coral  { background: rgba(226,107,88,.16); color: var(--coral-400); }
.tint-indigo { background: var(--composer-soft); color: var(--composer); }
.tint-lav    { background: rgba(139,118,184,.16); color: var(--lavender-400); }

/* ============================================================
   Deep-dive bands
   ============================================================ */
.band { display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:center; }
.band.flip .band-text { order:2; }
.band-text h2 { font-size: clamp(26px,3.4vw,38px); }
.band-text .lede { margin-bottom: 22px; }
.band-list { list-style:none; margin:18px 0 0; padding:0; display:flex; flex-direction:column; gap:12px; }
.band-list li { display:flex; gap:11px; font-size:14.5px; color: var(--ink-soft); }
.band-list li svg { width:18px; height:18px; color: var(--sage-400); flex:none; margin-top:1px; }
@media (max-width:860px){ .band { grid-template-columns:1fr; gap:36px; } .band.flip .band-text { order:0; } }

.mock { border:1px solid var(--border-strong); border-radius:16px; background: var(--panel-solid); box-shadow: var(--shadow-md); overflow:hidden; }
.mock-hd { display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--border); font-size:13px; color: var(--ink-soft); }
.mock-hd .tag { margin-left:auto; font-family: var(--font-mono); font-size:11.5px; color: var(--ink-mute); }

/* composer */
.comp-row { display:flex; align-items:center; gap:12px; padding:11px 16px; border-bottom:1px solid var(--border); font-size:13.5px; }
.comp-row:last-child { border-bottom:none; }
.comp-row .chk { width:17px; height:17px; border-radius:5px; border:1.5px solid var(--composer); display:grid; place-items:center; flex:none; }
.comp-row.on .chk { background: var(--composer-deep); border-color: var(--composer-deep); }
.comp-row.off { color: var(--ink-mute); }
.comp-row.off .chk { border-color: var(--border-strong); }
.comp-row .g { width:7px; height:7px; border-radius:2px; flex:none; }
.comp-row .path { font-family: var(--font-mono); font-size:12px; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.comp-row .tok { font-family: var(--font-mono); font-size:11.5px; color: var(--ink-mute); }
.comp-meter { padding:16px; background: var(--composer-soft); border-top:1px solid var(--composer-line); }
.comp-meter .lab { display:flex; justify-content:space-between; font-size:12.5px; margin-bottom:9px; }
.comp-meter .lab b { font-family: var(--font-mono); color: var(--composer); }
.comp-bar { height:8px; border-radius:999px; background: rgba(255,255,255,.07); overflow:hidden; }
.comp-bar i { display:block; height:100%; width:31%; border-radius:999px; background: linear-gradient(90deg, var(--composer-deep), var(--composer)); }

/* version history timeline */
.tl { padding:8px 6px 8px 20px; }
.tl-row { position:relative; padding:11px 12px 11px 22px; }
.tl-row::before { content:""; position:absolute; left:4px; top:0; bottom:0; width:1.5px; background: var(--border); }
.tl-row::after { content:""; position:absolute; left:0; top:17px; width:9px; height:9px; border-radius:50%; background: var(--ink-mute); border:2px solid var(--bg-base); }
.tl-row.git::after { background: var(--sage-500); }
.tl-row.now::after { background: var(--butter-500); box-shadow:0 0 0 3px rgba(217,169,60,.2); }
.tl-row .t { font-size:13.5px; color: var(--ink); }
.tl-row .m { font-size:11.5px; color: var(--ink-mute); font-family: var(--font-mono); }
.diff { font-family: var(--font-mono); font-size:12px; padding:14px 16px; border-top:1px solid var(--border); line-height:1.7; }
.diff .add { color: var(--sage-400); }
.diff .del { color: var(--coral-400); text-decoration: line-through; opacity:.8; }

/* prompt board kanban */
.kanban { display:grid; grid-template-columns: repeat(4,1fr); gap:10px; padding:14px; }
.kcol .kh { font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-mute); font-weight:600; margin:0 2px 9px; display:flex; justify-content:space-between; }
.kcard { background: var(--card); border:1px solid var(--border); border-radius:9px; padding:10px 11px; margin-bottom:8px; font-size:12px; }
.kcard .kt { font-weight:600; font-size:12.5px; margin-bottom:7px; color:var(--ink); }
.kcard .kmeta { display:flex; align-items:center; gap:6px; color: var(--ink-mute); font-family: var(--font-mono); font-size:10.5px; }
.kcard .ktarget { margin-left:auto; padding:2px 7px; border-radius:999px; background: rgba(79,164,122,.14); color: var(--sage-400); font-size:9.5px; letter-spacing:.03em; }
@media (max-width:760px){ .kanban { grid-template-columns:1fr 1fr; } }

/* ============================================================
   Privacy band
   ============================================================ */
.privacy { text-align:center; }
.privacy .lede { margin-left:auto; margin-right:auto; }
.privacy .pgrid { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; margin-top:48px; }
.pcard { border:1px solid var(--border); border-radius:16px; padding:26px 20px; background: var(--panel); text-align:left; }
.pcard .ic { width:38px; height:38px; border-radius:10px; display:grid; place-items:center; margin-bottom:16px; background: rgba(255,255,255,.05); }
.pcard .ic svg { width:20px; height:20px; color: var(--sage-400); }
.pcard h3 { font-size:15.5px; margin:0 0 7px; }
.pcard p { font-size:13px; color: var(--ink-soft); margin:0; line-height:1.5; }
@media (max-width:900px){ .privacy .pgrid { grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .privacy .pgrid { grid-template-columns:1fr; } }

/* ============================================================
   Themes showcase
   ============================================================ */
.themes { display:grid; grid-template-columns: repeat(5,1fr); gap:14px; margin-top:48px; }
.swatch { border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.swatch .prev { height:96px; display:grid; grid-template-columns: 34% 1fr; }
.swatch .prev .sb { border-right:1px solid rgba(255,255,255,.06); }
.swatch .prev .cv { position:relative; }
.swatch .prev .cv::after { content:""; position:absolute; left:14px; right:30%; top:22px; height:7px; border-radius:4px; background: currentColor; opacity:.5; box-shadow: 0 16px 0 -1px currentColor, 0 32px 0 -2px currentColor; }
.swatch .meta { display:flex; align-items:center; justify-content:space-between; padding:11px 14px; font-size:13px; background: var(--panel); }
.swatch .meta .mode { font-size:10.5px; color: var(--ink-mute); text-transform:uppercase; letter-spacing:.06em; }
@media (max-width:900px){ .themes { grid-template-columns:1fr 1fr; } }

/* ============================================================
   Models
   ============================================================ */
.models { display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin-top:48px; }
.mcard { border:1px solid var(--border); border-radius:16px; padding:24px; background: var(--panel); }
.mcard .top { display:flex; align-items:center; gap:11px; margin-bottom:14px; }
.mcard .badge { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; font-weight:800; font-size:15px; }
.mcard h3 { font-size:16px; margin:0; }
.mcard .who { font-size:12px; color: var(--ink-mute); }
.mcard p { font-size:13.5px; color: var(--ink-soft); margin:0 0 12px; line-height:1.55; }
.mtag { display:inline-flex; gap:6px; flex-wrap:wrap; }
.mtag span { font-size:11px; font-family: var(--font-mono); color: var(--ink-soft); background: rgba(255,255,255,.05); border:1px solid var(--border); padding:3px 8px; border-radius:999px; }
.local { color: var(--sage-400); }
@media (max-width:820px){ .models { grid-template-columns:1fr; } }

/* ============================================================
   Email subscription band
   ============================================================ */
.subscribe { padding: 84px 0; }
.sub-card {
  border:1px solid var(--border-strong); border-radius:20px; padding:48px 44px;
  background: var(--panel-solid); box-shadow: var(--shadow-md);
  display:grid; grid-template-columns: 1.1fr 1fr; gap:40px; align-items:center;
  position:relative; overflow:hidden;
}
.sub-card::before {
  content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px;
  background: radial-gradient(circle, rgba(79,164,122,.18), transparent 70%); pointer-events:none;
}
.sub-card h2 { font-size: clamp(24px,3vw,34px); letter-spacing:-.02em; margin:0 0 12px; line-height:1.08; }
.sub-card .lede { font-size:16px; margin:0; }
.sub-card .note { font-size:12.5px; color:var(--ink-mute); margin-top:14px; }
@media (max-width:780px){ .sub-card { grid-template-columns:1fr; gap:24px; padding:34px 24px; } }

/* form bits — shared by subscribe + contact */
.field { display:flex; flex-direction:column; gap:7px; margin-bottom:16px; }
.field label { font-size:12.5px; font-weight:600; color:var(--ink-soft); letter-spacing:.01em; }
.input {
  width:100%; padding:13px 15px; border-radius:11px; font-family:var(--font-display); font-size:15px;
  background: rgba(255,255,255,.04); border:1px solid var(--border-strong); color:var(--ink);
  transition: border-color var(--ease) .15s, background var(--ease) .15s, box-shadow var(--ease) .15s;
}
.input::placeholder { color: var(--ink-mute); }
.input:focus { outline:none; border-color: var(--sage-500); background: rgba(79,164,122,.06); box-shadow: 0 0 0 3px rgba(79,164,122,.16); }
textarea.input { resize:vertical; min-height:130px; line-height:1.55; }
.input.bad { border-color: var(--coral-500); box-shadow: 0 0 0 3px rgba(226,107,88,.16); }
.err { font-size:12px; color: var(--coral-400); min-height:0; }

/* inline subscribe row */
.sub-form { display:flex; flex-direction:column; gap:10px; }
.sub-row { display:flex; gap:10px; }
.sub-row .input { flex:1; }
.sub-row .btn { flex:none; white-space:nowrap; }
@media (max-width:480px){ .sub-row { flex-direction:column; } }
.form-ok {
  display:none; align-items:center; gap:10px; padding:14px 16px; border-radius:12px;
  background: rgba(79,164,122,.1); border:1px solid rgba(79,164,122,.32); color: var(--sage-300); font-size:14px;
}
.form-ok.show { display:flex; }
.form-ok svg { width:18px; height:18px; flex:none; }

/* ============================================================
   Contact page
   ============================================================ */
.subhero { text-align:center; padding:84px 0 8px; }
.subhero h1 { font-size: clamp(36px,6vw,68px); letter-spacing:-.03em; line-height:1; margin:0 auto 18px; font-weight:800; }
.subhero h1 .ser { font-family:var(--font-serif); font-style:italic; font-weight:500; }
.subhero .sub { font-size:18px; color:var(--ink-soft); max-width:560px; margin:0 auto; }

.contact-grid { display:grid; grid-template-columns: 1.15fr .85fr; gap:28px; align-items:start; margin-top:56px; }
@media (max-width:880px){ .contact-grid { grid-template-columns:1fr; } }

.contact-form-card { border:1px solid var(--border-strong); border-radius:20px; padding:32px; background: var(--panel-solid); box-shadow: var(--shadow-md); }
.contact-form-card h2 { font-size:22px; margin:0 0 6px; }
.contact-form-card .lede { font-size:14.5px; margin:0 0 24px; }
.frow { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:520px){ .frow { grid-template-columns:1fr; } }

.contact-side { display:flex; flex-direction:column; gap:14px; }
.cmethod { border:1px solid var(--border); border-radius:16px; padding:20px 22px; background: var(--panel); transition: border-color var(--ease) .18s, background var(--ease) .18s; }
.cmethod:hover { border-color: var(--border-strong); background: var(--card); }
.cmethod .top { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.cmethod .ic { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; flex:none; }
.cmethod .ic svg { width:20px; height:20px; }
.cmethod h3 { font-size:15.5px; margin:0; }
.cmethod p { font-size:13px; color:var(--ink-soft); margin:0; line-height:1.5; }
.cmethod a.link { color: var(--sage-400); font-size:13.5px; font-weight:600; display:inline-flex; align-items:center; gap:5px; margin-top:6px; }
.cmethod a.link:hover { color: var(--sage-300); }

/* footer CTA + footer */
.cta { text-align:center; padding:120px 0 96px; position:relative; }
.cta h2 { font-size: clamp(34px,5vw,60px); letter-spacing:-.03em; line-height:1.02; margin:0 0 18px; font-weight:800; }
.cta h2 .ser { font-family:var(--font-serif); font-style:italic; font-weight:500; }
.cta .sub { font-size:18px; color:var(--ink-soft); margin:0 0 34px; }

.foot { border-top:1px solid var(--border); padding:40px 0; }
.foot .row { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.foot .row .spring { flex:1; }
.foot a { color: var(--ink-mute); font-size:14px; }
.foot a:hover { color: var(--ink); }
.foot .copy { font-size:13px; color: var(--ink-mute); }

/* reveal on scroll */
.reveal { opacity:0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity:1 !important; transform:none !important; transition:none; }
  html { scroll-behavior:auto; }
}
