/* Smart Secure Services — site stylesheet
   Dark marine base everywhere. One action colour (sea-glass), amber for money only. */

@view-transition { navigation: auto; }

:root {
  color-scheme: dark;
  --ink: #0A1419;
  --ink-2: #0E1A20;
  --surface: #111F27;
  --surface-2: #16272F;
  --line: rgba(232, 238, 240, 0.09);
  --line-strong: rgba(232, 238, 240, 0.18);
  --text: #E8EEF0;
  --text-rgb: 232, 238, 240;
  --text-2: #B7C5CB;
  --muted: #8FA3AB;
  --glass: #79D4C3;
  --glass-rgb: 121, 212, 195;
  --glass-hover: #9BE2D4;
  --on-glass: #0A1419;
  --amber: #E3B457;
  --danger: #E08A6F;
  --aurora-1: rgba(121, 212, 195, 0.16);
  --aurora-2: rgba(227, 180, 87, 0.08);
  --spot: rgba(121, 212, 195, 0.14);

  --font-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --s-hero: clamp(2.6rem, 1.4rem + 5vw, 5.6rem);
  --s-1: clamp(2rem, 1.2rem + 2.6vw, 3.4rem);
  --s-2: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  --s-3: 1.25rem;
  --s-body: 1.0625rem;
  --s-small: 0.9375rem;

  --measure: 60ch;
  --gutter: clamp(20px, 4vw, 72px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #F3F6F6;
  --ink-2: #EAF0F0;
  --surface: #FFFFFF;
  --surface-2: #E3EAEA;
  --line: rgba(10, 20, 25, 0.10);
  --line-strong: rgba(10, 20, 25, 0.20);
  --text: #0C181E;
  --text-rgb: 12, 24, 30;
  --text-2: #324248;
  --muted: #5B6E75;
  --glass: #167F70;
  --glass-rgb: 22, 127, 112;
  --glass-hover: #12685C;
  --on-glass: #FFFFFF;
  --amber: #8F6410;
  --danger: #B3452C;
  --aurora-1: rgba(22, 127, 112, 0.14);
  --aurora-2: rgba(143, 100, 16, 0.08);
  --spot: rgba(22, 127, 112, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--s-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
[id] { scroll-margin-top: 90px; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--s-hero); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: var(--s-1); }
h3 { font-size: var(--s-2); }
h4 { font-size: var(--s-3); letter-spacing: -0.01em; }
strong { font-weight: 600; color: var(--text); }
:focus-visible { outline: 2px solid var(--glass); outline-offset: 3px; border-radius: 3px; }
::selection { background: rgba(var(--glass-rgb), 0.3); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--ink) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; transition: height .35s var(--ease); }
.top.scrolled .wrap { height: 56px; }
.top .progress { position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--glass); transform: scaleX(var(--p, 0)); transform-origin: left; opacity: .9; pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand .mark { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-strong); position: relative; transition: transform .5s var(--ease-out); }
.brand:hover .mark { transform: rotate(90deg); }
.brand .mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--glass); }
.nav { display: flex; gap: clamp(14px, 1.8vw, 26px); margin-left: auto; }
.nav a { position: relative; color: var(--text-2); font-size: var(--s-small); padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--glass); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 8px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 500; font-size: var(--s-small); line-height: 1; cursor: pointer;
  background: var(--glass); color: var(--on-glass);
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--glass-hover); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--text-2); background: rgba(232,238,240,.04); }
.btn.lg { padding: 15px 24px; font-size: 1rem; will-change: transform; }
.btn.magnet { transition: transform .35s var(--ease-out), background .25s var(--ease); }
.themer { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); cursor: pointer; transition: color .25s, border-color .25s, transform .4s var(--ease-out); }
.themer:hover { color: var(--text); border-color: var(--text-2); }
.themer svg { width: 17px; height: 17px; }
.themer .sun { display: none; }
:root[data-theme="light"] .themer .sun { display: block; }
:root[data-theme="light"] .themer .moon { display: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; }
.menu-btn svg { margin: auto; }

@media (max-width: 820px) {
  .nav { display: none; position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .menu-btn { display: inline-flex; }
  .top .cta { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; display: grid; align-items: start; overflow: hidden; isolation: isolate; padding-block: 0; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero::before { width: 56vw; height: 56vw; max-width: 760px; max-height: 760px; right: -12vw; top: -18vw; background: radial-gradient(circle at 40% 40%, var(--aurora-1), transparent 62%); animation: drift-a 22s ease-in-out infinite alternate; }
.hero::after { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; left: -10vw; bottom: -16vw; background: radial-gradient(circle at 60% 60%, var(--aurora-2), transparent 64%); animation: drift-b 26s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(-8vw, 6vw, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(6vw, -5vw, 0) scale(1.1); } }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; padding-block: clamp(28px, 4vw, 52px) clamp(40px, 5vw, 64px); }
.hero-copy h1 { margin-bottom: 28px; }
.hero-copy .lede { font-size: 1.2rem; color: var(--text-2); max-width: 52ch; }
.hero-copy .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-copy .who { margin-top: 44px; color: var(--muted); font-size: var(--s-small); max-width: 46ch; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-height: 540px; width: 100%; margin-inline: auto; margin-top: 4px; }
.hero-art canvas { width: 100%; height: 100%; -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 40%, transparent 100%); }
.hero-art .tip { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .18s var(--ease); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 11px; max-width: 320px; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.hero-art .tip.on { opacity: 1; }
.hero-art .tip b { display: block; font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; }
.hero-art .tip span { display: block; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); margin-top: 2px; }
.hero-art .tip.is-cost b { color: var(--amber); }
.hero-art .tip.is-unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; border: 1px solid var(--muted); border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.hero-art .estate-status { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.hero-art .estate-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--glass); box-shadow: 0 0 0 0 rgba(var(--glass-rgb), .5); animation: pulse 2.2s ease-out infinite; }
.hero-art .estate-status span.tick { animation: tick .5s var(--ease-out); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--glass-rgb), .45); } 100% { box-shadow: 0 0 0 9px rgba(var(--glass-rgb), 0); } }
@keyframes tick { from { opacity: 0; transform: translateY(4px); } }
.hero-art .legend { position: absolute; left: 0; right: 0; bottom: -4px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 0.8125rem; color: var(--muted); }
.hero-art .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.hero-art .legend .read i { background: var(--glass); }
.hero-art .legend .cost i { background: var(--amber); }
.hero-art .legend .unread i { background: transparent; border: 1px solid var(--muted); }

/* load sequence: one orchestrated moment */
.rise { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease-out) forwards; }
.hero-copy h1 { animation: none; opacity: 1; transform: none; }
.hero-copy h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-copy h1 .w > span { display: inline-block; transform: translateY(110%); animation: wordrise 1.1s var(--ease-out) forwards; animation-delay: calc(.05s + var(--w) * 55ms); }
@keyframes wordrise { to { transform: none; } }
.rise.d1 { animation-delay: .08s } .rise.d2 { animation-delay: .2s } .rise.d3 { animation-delay: .32s } .rise.d4 { animation-delay: .46s }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 40px; }
  .hero-art { max-height: 380px; order: -1; aspect-ratio: 4 / 3; margin-bottom: 28px; }
}

/* ---------- motion that answers scrolling ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.row { position: relative; border-bottom-color: transparent; }
.row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--line-strong); transition: width 1.1s var(--ease-out) .1s; }
.row.in::after { width: 100%; }
.rows .row:last-child { border-bottom-color: transparent; }

/* a quiet spotlight that follows the pointer on a few surfaces */
.spot { position: relative; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 60%); }
.spot:hover::before { opacity: 1; }
.cols > .spot { border-radius: 10px; }

/* ---------- sections ---------- */
section { padding-block: clamp(64px, 9vw, 128px); }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin: 0; }
.section-head p { color: var(--text-2); font-size: 1.1rem; margin: 0; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

.intro { font-size: 1.2rem; color: var(--text-2); max-width: 56ch; }
.muted { color: var(--muted); }
.amber { color: var(--amber); }
.glass { color: var(--glass); }

/* three services, as a row of columns divided by hairlines — not cards */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols > div { padding: 8px 32px 8px 0; }
.cols > div + div { border-left: 1px solid var(--line); padding-left: 32px; }
.cols h3 { margin-bottom: 14px; }
.cols p { color: var(--text-2); font-size: 1rem; }
.cols .more { display: inline-block; margin-top: 8px; color: var(--glass); border-bottom: 1px solid rgba(var(--glass-rgb),.35); padding-bottom: 1px; transition: border-color .25s; }
.cols .more:hover { border-color: var(--glass); }
@media (max-width: 820px) {
  .cols { grid-template-columns: 1fr; }
  .cols > div { padding: 24px 0; }
  .cols > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

/* definition rows — a list that reads, not a grid of tiles */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px 64px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.row h3, .row h4 { margin: 0; }
.row p { color: var(--text-2); margin-bottom: .5em; }
.row p:last-child { margin: 0; }
.row .sub { color: var(--muted); font-size: var(--s-small); margin-top: 6px; }
@media (max-width: 820px) { .row { grid-template-columns: 1fr; gap: 10px; } }

/* sequence: Review → Build → Run. Numbered because it is one. */
.seq { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.seq > div { position: relative; padding-top: 26px; border-top: 1px solid var(--line-strong); }
.seq > div::before { counter-increment: step; content: counter(step); position: absolute; top: -13px; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 1px solid var(--line-strong); font-family: var(--font-display); font-size: .8rem; display: grid; place-items: center; color: var(--text-2); }
.seq h3 { margin-bottom: 4px; }
.seq .when { color: var(--muted); font-size: var(--s-small); margin-bottom: 14px; }
.seq p { color: var(--text-2); font-size: 1rem; }
@media (max-width: 820px) { .seq { grid-template-columns: 1fr; gap: 36px; } }

/* a quiet product frame for the one screen we show */
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.frame-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.frame-body { padding: 22px 18px 18px; }
.ledger { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: .86rem; }
.ledger th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-strong); }
.ledger td { padding: 11px 10px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.ledger td.r, .ledger th.r { text-align: right; }
.ledger td.money { color: var(--amber); }
.ledger td.free { color: var(--glass); }
.ledger tr.pick { cursor: pointer; }
.ledger tr.pick:hover td { background: rgba(232,238,240,.03); }
.ledger tr.on td { color: var(--text); background: rgba(var(--glass-rgb),.07); }
.frame-note { color: var(--muted); font-size: .9rem; margin: 14px 0 0; max-width: none; }

/* tabbed frame: the ink underline slides, panels crossfade */
.tabs .frame-bar { padding: 0 18px; }
.tablist { position: relative; display: flex; gap: 4px; }
.tablist [role=tab] { background: none; border: 0; color: var(--muted); font: inherit; font-size: .9rem; padding: 14px 12px; cursor: pointer; transition: color .25s; }
.tablist [role=tab]:hover, .tablist [role=tab][aria-selected=true] { color: var(--text); }
.tablist .ink { position: absolute; bottom: -1px; height: 1px; background: var(--glass); left: var(--x, 0); width: var(--w, 0); transition: left .4s var(--ease-out), width .4s var(--ease-out); }
.panel { animation: panel .45s var(--ease-out); }
.panel[hidden] { display: none; }
@keyframes panel { from { opacity: 0; transform: translateY(6px); } }
.ledger td:first-child { color: var(--text); }
@media (max-width: 720px) { .tabs .frame-bar > span { display: none; } .ledger { font-size: .78rem; } .ledger td, .ledger th { padding: 9px 6px; } .ledger th:nth-child(3), .ledger td:nth-child(3) { display: none; } }

/* products: a grid of quiet entries, each a link into its section */
.prodgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.prod { display: grid; gap: 8px; align-content: start; padding: 26px 24px 28px; background: var(--ink); border-radius: 0; transition: background .3s var(--ease); min-height: 190px; }
.prod:hover { background: var(--surface); }
.prod .pname { font-family: var(--font-display); font-size: var(--s-2); font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.prod .pwhat { color: var(--text-2); }
.prod .pfor { color: var(--muted); font-size: var(--s-small); margin-top: 6px; }
.prod::after { content: ""; display: block; width: 22px; height: 1px; background: var(--glass); margin-top: 8px; transition: width .4s var(--ease-out); }
.prod:hover::after { width: 48px; }
@media (max-width: 920px) { .prodgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .prodgrid { grid-template-columns: 1fr; } }
.more { color: var(--glass); border-bottom: 1px solid rgba(var(--glass-rgb),.35); padding-bottom: 1px; transition: border-color .25s; }
.more:hover { border-color: var(--glass); }

/* Tally calculator */
.calc-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px 48px; }
.calc-in .field { margin-bottom: 20px; }
.calc-in label { display: flex; justify-content: space-between; gap: 12px; }
.calc-in output { font-family: var(--font-mono); font-size: .9rem; color: var(--text); }
.calc-in input[type=range] { width: 100%; accent-color: var(--glass); margin: 10px 0 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.calc-in input[type=range]:focus { box-shadow: none; }
.calc-in select { background-color: var(--ink); }
.calc-out .big { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.calc-out .big:first-child { border-top: 0; padding-top: 4px; }
.calc-out .big b { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--amber); line-height: 1; }
.calc-out .big.after b { color: var(--glass); }
.calc-rows { display: grid; }
.calc-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: var(--s-small); }
.calc-rows b { font-family: var(--font-mono); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 820px) { .calc-body { grid-template-columns: 1fr; } }

/* proof strip — four plain facts, no tiles */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; }
.facts b { display: block; font-family: var(--font-display); font-size: var(--s-2); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.facts span { color: var(--muted); font-size: var(--s-small); }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* disclosure — answers a click, shows what changed */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--font-display); font-size: var(--s-3); font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary .plus { width: 22px; height: 22px; flex: 0 0 22px; position: relative; }
summary .plus::before, summary .plus::after { content: ""; position: absolute; background: var(--text-2); left: 50%; top: 50%; transition: transform .3s var(--ease); }
summary .plus::before { width: 14px; height: 1px; transform: translate(-50%, -50%); }
summary .plus::after { width: 1px; height: 14px; transform: translate(-50%, -50%); }
details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details .body { padding: 0 0 26px; color: var(--text-2); max-width: var(--measure); }
details .body p:last-child { margin: 0; }

/* page hero (inner pages) */
.page-head { padding: clamp(28px, 4vw, 52px) 0 clamp(28px, 4vw, 48px); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; align-items: center; }
.page-head .hero-art { max-height: 340px; aspect-ratio: 1 / 1; width: min(100%, 340px); justify-self: end; margin: 0; }
@media (max-width: 920px) { .page-head .wrap { grid-template-columns: 1fr; } .page-head .hero-art { display: none; } }
.page-head h1 { font-size: var(--s-1); font-weight: 600; max-width: 20ch; opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease-out) .05s forwards; }
.page-head .intro { opacity: 0; animation: rise .9s var(--ease-out) .18s forwards; }
.page-head .intro { margin: 0; }

/* two-column text blocks */
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }

/* call to action band */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.band h2 { margin: 0 0 8px; }
.band p { margin: 0; color: var(--text-2); }
.band .acts { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) { .band .wrap { grid-template-columns: 1fr; } .band .acts { justify-content: flex-start; } }

/* form */
form .field { display: grid; gap: 7px; margin-bottom: 18px; }
form label { font-size: var(--s-small); color: var(--text-2); }
form input, form textarea, form select {
  width: 100%; background: var(--ink); border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 8px; padding: 13px 14px; font: inherit; font-size: 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--glass); box-shadow: 0 0 0 3px rgba(var(--glass-rgb),.18); }
form textarea { min-height: 150px; resize: vertical; }
form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { form .row2 { grid-template-columns: 1fr; } }
form .note { color: var(--muted); font-size: .875rem; margin-top: 14px; }
form .status { margin-top: 14px; font-size: var(--s-small); min-height: 1.4em; }
form .status.ok { color: var(--glass); }
form .status.err { color: var(--danger); }
form input:user-invalid, form textarea:user-invalid { border-color: var(--danger); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 36px; color: var(--muted); font-size: var(--s-small); }
.foot { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 32px; }
.foot p { max-width: 36ch; margin-top: 14px; }
.foot h4 { font-size: .95rem; color: var(--text-2); margin-bottom: 12px; font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a:hover { color: var(--text); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

/* 404 */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* page transitions and motion preferences */
::view-transition-old(root) { animation: 180ms var(--ease) both fade-out; }
::view-transition-new(root) { animation: 320ms var(--ease) both fade-in; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }

/* theme switch: a circular wipe from the toggle, via View Transitions */
html.theming::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
html.theming::view-transition-new(root) { animation: wipe .55s var(--ease-out); mix-blend-mode: normal; }
@keyframes wipe { from { clip-path: circle(0 at var(--tx, 100%) var(--ty, 0)); } to { clip-path: circle(150% at var(--tx, 100%) var(--ty, 0)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .page-head h1, .page-head .intro { animation-duration: 1ms; animation-delay: 0s; }
  .hero-copy h1 .w > span { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .row::after { width: 100%; transition: none; }
  .hero::before, .hero::after { animation: none; }
  html.theming::view-transition-new(root) { animation-duration: 1ms; }
  .hero-art .estate-status i { animation: none; }
  .panel { animation: none; }
  .top .wrap { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 1ms; }
  .btn:hover { transform: none; }
}
