/* tatamiway.com, the marketing site (docs/specs/tatamiway-site/PLAN.md). The approved design's layout
   (design/01-tatamiway-site-APPROVED.html) in the Tatami Way brand (PLAN §11): Warm Ivory paper, Deep Navy ink and
   bands, Blue for links and buttons, Gold as decoration only (2.4:1 on ivory: never text or a button label there).
   The pages are written by scripts/platform-site/build.mjs; this file and js/ are hand-edited. */
:root {
  --paper: #F8F5EC; --surface: #FFFFFF; --surface-2: #F1ECDF;
  --ink: #10151D; --navy: #0A2540; --muted: #4A5568;
  --line: #E4DDCB; --line-strong: #C9BFA6;
  --btn-bg: #16456B; --btn-bg-hover: #0A2540; --btn-fg: #FFFFFF; --link: #16456B;
  --gold: #C69A4D; --moss: #3D6B4F;
  --band: #0A2540; --band-ink: #F8F5EC; --band-muted: #C9D2DD;
  --floor: #0A2540; --rush: #D3D394; --rush-2: #BDBE7A; --mat-ink: #10151D;
  /* Layer (heri) colours: Website, Training, Operations, Community & families (PLAN §11, proposed). */
  --h1: #16456B; --h2: #3D6B4F; --h3: #7A4E2A; --h4: #C69A4D;
  --radius-l: 18px; --maxw: 1180px;
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
html { scroll-padding-top: 88px; }
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 900; letter-spacing: -.01em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
/* Line breaks (PLAN §27): sentences in a heading stay whole (span.ln, added by the build); headings balance their
   lines; paragraphs avoid a lone last word; .nw keeps a short phrase (a link like "Ask us on a demo.") on one line. */
h1, h2, h3 { text-wrap: balance; }
.ln { display: inline-block; }
p, li { text-wrap: pretty; }
.nw { white-space: nowrap; }
h1.page-h { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3, .h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--band-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 700 1rem var(--font); text-decoration: none; border: 2px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; transition: background .2s, border-color .2s; }
.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.btn--ghost { background: transparent; color: var(--link); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--btn-bg); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row--center { justify-content: center; }
.sect { padding: 96px 0; }
@media (max-width: 760px) { .sect { padding: 64px 0; } }
.sect--tint { background: var(--surface-2); }
.sect-head { max-width: 860px; margin-bottom: 44px; }
.sect-head .lede { max-width: 60ch; }
.sect-head p { margin-top: 16px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.rule { display: block; width: 64px; height: 2px; background: var(--gold); border: 0; margin: 0 0 22px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 24px; height: 72px; position: relative; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--surface-2); font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold); }
.nav a.btn { margin-left: 8px; padding: 10px 18px; color: var(--btn-fg); font-weight: 700; }
.nav a.btn:hover { background: var(--btn-bg-hover); }
.nav a.btn[aria-current="page"] { background: var(--btn-bg-hover); color: var(--btn-fg); box-shadow: inset 0 -3px 0 var(--gold); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line-strong); color: var(--ink); border-radius: 10px; padding: 8px 14px; font: 700 .95rem var(--font); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 24px 20px; box-shadow: 0 18px 30px -24px rgba(10, 37, 64, .5); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav a.btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 400px) { .brand img { height: 38px; } }

/* ---------- hero: the message and the animated mark ---------- */
.hero { padding: 64px 0 88px; }
@media (max-width: 760px) { .hero { padding: 40px 0 64px; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: start; }
.hero-grid--center { align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 { max-width: 22ch; }
.hero .lede { margin-top: 22px; }
.hero--home { padding: 56px 0 72px; }
.hero--home .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.hero--home h1 { max-width: none; font-size: clamp(2.3rem, 3.9vw, 3.6rem); }
.hero--home h1 span { display: block; }
/* The second line in deepened gold leaf, like the logo's tiles (the brand gold is too light for type on paper). */
.hero--home h1 span:last-child { color: #A87B2F; background: linear-gradient(100deg, #8E6526 0%, #AD8033 45%, #A87B2F 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-bottom: .14em; margin-bottom: -.14em; } /* room for the descenders (g, y): the gradient is painted only inside the box */
@media (min-width: 981px) { .hero--home h1 span { white-space: nowrap; } }
.hero--home .lede b { color: var(--navy); }
@media (max-width: 980px) { .hero--home .hero-grid { grid-template-columns: 1fr; } }

/* The mark (brand/mark/, cut by scripts/platform-site/mark-layers.py; js/mark.js loops it): the enso brushes on, the
   plate settles, the five tiles of the tatami square lay down like the floor's mats, a sheen passes; it rests, then
   lifts away and plays again. */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 400deg; }
.hero-mark { position: relative; width: min(100%, 440px); margin: 0 auto; justify-self: center; cursor: pointer; }
.hero-mark::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(198, 154, 77, .22), transparent); filter: blur(10px); z-index: -1; }
.hero-mark img, .mk-sheen { position: absolute; display: block; }
.mk-ring { inset: 0; width: 100%; height: 100%; -webkit-mask: conic-gradient(from 215deg, #000 calc(var(--sweep) - 40deg), transparent var(--sweep)); mask: conic-gradient(from 215deg, #000 calc(var(--sweep) - 40deg), transparent var(--sweep)); }
.mk-tile { transition: transform .35s cubic-bezier(.2, 1.2, .4, 1); transition-delay: calc(var(--i) * 40ms); }
.mk-sheen { overflow: hidden; border-radius: 11%; pointer-events: none; }
.mk-sheen::after { content: ""; position: absolute; inset: -20% auto -20% -60%; width: 45%; transform: skewX(-18deg) translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 244, 214, .55), transparent); mix-blend-mode: soft-light; opacity: 0; }
.hero-mark.is-playing .mk-ring { animation: mk-brush 1.5s cubic-bezier(.55, .1, .25, 1) both; }
.hero-mark.is-playing .mk-plate { animation: mk-plate .55s ease-out .55s both; }
.hero-mark.is-playing .mk-tile { animation: mk-lay .62s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: calc(1.05s + var(--i) * 170ms); }
.hero-mark.is-playing .mk-sheen::after { animation: mk-sheen 1.1s ease-in-out 2.15s both; }
/* Between loops: the tiles lift off in reverse, the plate fades, the enso un-brushes; then it plays again. */
@keyframes mk-brush { from { --sweep: 0deg; } to { --sweep: 400deg; } }
@keyframes mk-plate { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes mk-lay { 0% { opacity: 0; transform: translateY(-26%) rotate(-5deg) scale(1.14); filter: drop-shadow(0 18px 14px rgba(10, 37, 64, .45)); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes mk-sheen { 0% { opacity: 1; transform: skewX(-18deg) translateX(-100%); } 100% { opacity: 1; transform: skewX(-18deg) translateX(420%); } }
@media (hover: hover) { .hero-mark.is-settled:hover .mk-tile { transform: translateY(-2.5%); } }
/* On phones and tablets the mark leads, large and centred, and the message is centred under it. */
@media (max-width: 980px) {
  .hero-mark { width: min(78vw, 340px); order: -1; margin: 0 auto; justify-self: center; }
  .hero--home { padding-top: 28px; }
  .hero--home .hero-grid { gap: 28px; }
  .hero--home .hero-copy { text-align: center; }
  .hero--home h1 { margin-left: auto; margin-right: auto; max-width: 16ch; text-wrap: balance; }
  .hero--home .lede { margin-left: auto; margin-right: auto; max-width: 34ch; }
  .hero--home .btn-row { justify-content: center; }
}

/* ---------- the tatami floor (PLAN §9; behaviour in js/floor.js): plans above, the floor beside its inspector ---------- */
.floor-sect .sect-head { margin-bottom: 28px; }
.floor-stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; box-shadow: 0 30px 60px -44px rgba(10, 37, 64, .45); }
@media (max-width: 560px) { .floor-stage { padding: 16px; border-radius: 14px; } }
.floor-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.floor-label { font-size: .85rem; font-weight: 700; color: var(--muted); }
.floor-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .floor-main { grid-template-columns: 1fr; gap: 16px; } }
.floor { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); gap: 5px; padding: 5px; aspect-ratio: 6 / 4; background: var(--floor); border-radius: 6px; box-shadow: 0 34px 60px -30px rgba(10, 37, 64, .6); }
.mat { --heri: var(--h1); position: relative; border: 0; border-radius: 2px; font: 700 .86rem/1.15 var(--font); color: rgba(248, 245, 236, .62); background: #12304F; outline: 1.5px dashed rgba(248, 245, 236, .26); outline-offset: -4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; min-width: 0; transition: color .3s, background .3s, box-shadow .3s; }
.mat[data-g="2"] { --heri: var(--h2); } .mat[data-g="3"] { --heri: var(--h3); } .mat[data-g="4"] { --heri: var(--h4); }
.mat svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mat--v { writing-mode: vertical-rl; }
.mat--v svg { writing-mode: horizontal-tb; transform: rotate(90deg); } /* turned with its label */
.mat:hover:not(.is-lit) { color: #F8F5EC; outline-color: rgba(248, 245, 236, .55); }
.mat:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.mat.is-lit { outline: none; color: var(--mat-ink); background: repeating-linear-gradient(90deg, var(--rush) 0 3px, var(--rush-2) 3px 4px); box-shadow: inset 0 6px 0 var(--heri), inset 0 -6px 0 var(--heri); }
.mat--v.is-lit { background: repeating-linear-gradient(0deg, var(--rush) 0 3px, var(--rush-2) 3px 4px); box-shadow: inset 6px 0 0 var(--heri), inset -6px 0 0 var(--heri); }
.mat.is-lit:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.mat.is-sel { z-index: 2; }
.mat.is-sel::after { content: ""; position: absolute; inset: -4px; border: 3px solid var(--gold); border-radius: 4px; pointer-events: none; }
.mat.is-laying { animation: lay .6s cubic-bezier(.2, 1.2, .4, 1); }
.mat.is-lifting { animation: lift .42s ease-in forwards; }
@keyframes lay { 0% { transform: translateY(-18px) rotate(-2.5deg) scale(1.06); box-shadow: 0 22px 24px -10px rgba(0, 0, 0, .6); } 100% { transform: none; } }
@keyframes lift { 0% { transform: none; } 45% { transform: translateY(-14px) rotate(2deg) scale(1.05); box-shadow: 0 24px 26px -10px rgba(0, 0, 0, .6); } 100% { transform: translateY(-22px) scale(1.04); opacity: 0; } }
.mat.is-lit { transition: transform .2s, filter .2s, color .3s, background .3s, box-shadow .3s; }
.mat.is-lit:not(.is-laying):not(.is-lifting):hover { transform: translateY(-3px); filter: brightness(1.06); }
.mat.is-nudge { animation: nudge 1.1s ease-in-out 1; }
@keyframes nudge { 0%, 100% { transform: none; } 20% { transform: translateY(-7px) rotate(-1.5deg); } 40% { transform: translateY(-2px) rotate(1deg); } 60% { transform: translateY(-5px); } 80% { transform: none; } }
.mat.is-pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(198, 154, 77, .8); } 50% { box-shadow: 0 0 0 6px rgba(198, 154, 77, 0); } }
@media (max-width: 560px) { .mat { font-size: .64rem; gap: 3px; padding: 3px; } .mat svg { width: 15px; height: 15px; } .floor { gap: 3px; padding: 3px; } }

.floor-meta { display: flex; align-items: baseline; gap: 10px; margin-left: auto; }
.floor-meta strong { font-size: 1rem; color: var(--navy); }
.floor-meta span { color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .floor-meta { margin-left: 0; width: 100%; } }
.layers { display: flex; flex-wrap: wrap; gap: 8px; }
.layer { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 600 .9rem var(--font); cursor: pointer; }
.layer:hover { border-color: var(--navy); }
.layer i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.layer[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--surface-2); }
.roles-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 10px 24px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .roles-row { grid-template-columns: 1fr; } }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; }
.role b { display: block; font-size: .92rem; color: var(--navy); }
.role small { color: var(--muted); font-size: .82rem; }
.pips { display: flex; gap: 3px; margin: 6px 0 2px; }
.pips i { height: 8px; flex: 1; border-radius: 2px; background: var(--line); transition: background .35s; }
.pips i.on { background: var(--gold); }
.floor-tip { margin: 12px 0 0; font-size: .9rem; color: var(--muted); transition: opacity .4s; }
.floor-tip.is-gone { opacity: 0; }
@media (max-width: 900px) { .floor-tip { display: none; } }
@media (max-width: 560px) {
  .floor-bar { gap: 8px; padding-bottom: 14px; margin-bottom: 14px; }
  .floor-label { width: 100%; }
  .layers { gap: 6px; }
  .layer { padding: 5px 10px; font-size: .8rem; gap: 6px; }
  .layer i { width: 10px; height: 10px; }
  .insp-who span { font-size: .74rem; padding: 2px 8px; }
}

/* The inspector: what the mat does beside it at work, on a phone. */
.inspector { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; background: #FBF9F3; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 18px 24px; overflow: hidden; }
.inspector::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--insp-c, var(--line)); }
.inspector.is-swap .insp-text, .inspector.is-swap .insp-shot { animation: swap .22s ease-out; }
@keyframes swap { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.insp-text { min-width: 0; display: flex; flex-direction: column; }
.insp-top { display: flex; align-items: center; gap: 12px; }
.insp-ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--navy); flex: none; }
.insp-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.insp-top > div:last-child { min-width: 0; }
.insp-top h3 { font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* On or off at a glance: a small switch and two words. */
.insp-state { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.insp-state .sw { position: relative; width: 26px; height: 15px; border-radius: 999px; flex: none; transition: background .25s, box-shadow .25s; }
.insp-state .sw i { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(10, 37, 64, .3); transition: transform .25s; }
.insp-state.on .sw { background: var(--moss); }
.insp-state.on .sw i { transform: translateX(11px); }
.insp-state.off .sw { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.insp-state.off .sw i { background: var(--line-strong); box-shadow: none; }
.insp-state.on { color: var(--moss); }
.insp-state.off { color: var(--muted); }
.insp-desc { color: var(--muted); margin: 14px 0 12px; font-size: .98rem; min-height: var(--lock-desc, auto); }
.insp-who { display: flex; gap: 6px; flex-wrap: wrap; align-content: flex-start; min-height: var(--lock-who, auto); }
.insp-who span { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); }
.insp-note { font-size: .88rem; color: var(--muted); margin-top: 12px; min-height: var(--lock-note, 1.4em); }
.insp-act { margin-top: auto; padding-top: 14px; display: flex; gap: 10px; align-items: center; }
.insp-act button { white-space: nowrap; font: 700 .9rem var(--font); border-radius: 999px; padding: 8px 16px; cursor: pointer; border: 2px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); }
.insp-act button.ghost { background: transparent; color: var(--link); }
.insp-shot { margin: 0; width: 196px; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: filter .35s, opacity .35s; }
.insp-shot figcaption { font-size: .78rem; color: var(--muted); text-align: center; line-height: 1.35; min-height: var(--lock-cap, auto); }
.insp-shot .zoom { width: 100%; }
.phone.phone--sm { width: 100%; padding: 7px; border-radius: 28px; box-shadow: 0 24px 40px -22px rgba(10, 37, 64, .55); }
.phone.phone--sm img { border-radius: 22px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
@media (max-width: 1100px) and (min-width: 901px) { .insp-shot { width: 160px; } }
@media (max-width: 520px) { .inspector { padding: 14px 14px 14px 20px; gap: 12px; } .insp-shot { width: 128px; } .insp-desc { font-size: .92rem; } .insp-top h3 { font-size: 1.05rem; } .insp-ic { display: none; } }

/* ---------- frames around real captures (shots/) ---------- */
.browser { background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10, 37, 64, .45); border: 1px solid var(--line); min-width: 0; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #ECE7DA; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CFC6B1; flex: none; }
.browser-bar span { margin-left: 10px; flex: 1; min-width: 0; background: var(--surface); border-radius: 6px; padding: 3px 10px; font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { display: block; width: 100%; height: auto; }
.phone { width: 260px; max-width: 100%; background: #10151D; border-radius: 36px; padding: 10px; box-shadow: 0 30px 60px -24px rgba(10, 37, 64, .6); flex: none; }
.phone img { display: block; width: 100%; height: auto; border-radius: 27px; }
.phone-wrap { display: flex; justify-content: center; }


/* ---------- enlarging a capture (the lightbox is js/site.js) ---------- */
.zoom { position: relative; display: block; min-width: 0; }
.zoom__btn { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; border-radius: 12px; }
.zoom--phone .zoom__btn { border-radius: 36px; }
.zoom__btn:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.zoom__hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 37, 64, .88); color: #F8F5EC; font: 700 .8rem var(--font); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.zoom__hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zoom:hover .zoom__hint, .zoom__btn:focus-visible .zoom__hint { opacity: 1; transform: none; }
@media (hover: none) { .zoom__hint { opacity: .94; transform: none; } }
.zoom--combo .zoom__hint { right: auto; left: 12px; }
.zoom--phone { display: inline-block; }
.zoom--phone .zoom__hint, .insp-shot .zoom__hint { right: 50%; transform: translate(50%, 4px); bottom: 18px; }
.zoom--phone:hover .zoom__hint, .insp-shot .zoom:hover .zoom__hint, .zoom--phone .zoom__btn:focus-visible .zoom__hint, .insp-shot .zoom__btn:focus-visible .zoom__hint { transform: translate(50%, 0); }
@media (hover: none) { .zoom--phone .zoom__hint, .insp-shot .zoom__hint { transform: translate(50%, 0); } }

/* A desktop screen with a phone in front of it (the home page journey). */
.combo { position: relative; display: block; padding: 0 8% 10% 0; }
.combo__phone { position: absolute; right: 0; bottom: 0; width: 25%; padding: 6px; border-radius: 26px; box-shadow: 0 28px 50px -20px rgba(10, 37, 64, .65); }
.combo__phone img { border-radius: 20px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
@media (max-width: 560px) { .combo__phone { padding: 4px; border-radius: 16px; } .combo__phone img { border-radius: 12px; } }

/* The lightbox: every screen of a capture at full size, scrollable. */
.lb { width: min(1360px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 0; border-radius: 16px; background: #0D1E31; color: #F8F5EC; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.lb[open] { display: flex; flex-direction: column; }
.lb::backdrop { background: rgba(8, 20, 34, .8); backdrop-filter: blur(4px); }
.lb__bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid rgba(248, 245, 236, .12); }
.lb__title { font-weight: 700; font-size: 1rem; }
.lb__hint { color: #A9B6C6; font-size: .85rem; margin-right: auto; }
.lb__close { flex: none; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(248, 245, 236, .3); background: transparent; color: #F8F5EC; font: 400 1.6rem/1 var(--font); cursor: pointer; display: grid; place-items: center; }
.lb__close:hover { background: rgba(248, 245, 236, .1); }
.lb__close:focus-visible, .lb__frame:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lb__body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 24px; display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; align-items: flex-start; }
.lb__fig { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lb__fig.is-desktop { flex: 1 1 760px; max-width: 1440px; }
.lb__fig.is-phone { flex: 0 0 auto; width: min(390px, 100%); }
.lb__frame { display: block; overflow: auto; border-radius: 10px; background: #fff; cursor: zoom-in; border: 0; padding: 0; }
.lb__frame img { display: block; width: 100%; height: auto; }
.lb__fig.is-actual .lb__frame { cursor: zoom-out; }
.lb__fig.is-actual .lb__frame img { width: auto; max-width: none; }
.lb__fig.is-phone .lb__frame { border-radius: 30px; border: 8px solid #10151D; }
.lb__fig figcaption { color: #C9D2DD; font-size: .9rem; }
.lb__fig figcaption b { color: #F8F5EC; font-weight: 700; }
@media (max-width: 700px) { .lb { width: 100vw; height: 100dvh; border-radius: 0; } .lb__body { padding: 14px; gap: 20px; } .lb__hint { display: none; } }

/* ---------- custom sites ---------- */
/* The home page's website section: what a site can do (each links to its row on /websites), a picture, the steps. */
.web-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
@media (max-width: 980px) { .web-home { grid-template-columns: 1fr; gap: 40px; } }
.can-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.can-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 560px) { .can-list { grid-template-columns: 1fr; } }
.can-list li { display: block; height: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; background: var(--surface); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.can-list li:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(22, 40, 64, .35); }
.can-list b { display: block; color: var(--navy); font-size: .98rem; line-height: 1.3; }
.can-list span { display: block; margin-top: 4px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.web-home__steps-h { margin: 64px 0 22px; padding-top: 36px; border-top: 1px solid var(--line); font-size: 1.15rem; color: var(--navy); }
.can-more { margin: 20px 0 0; font-weight: 700; }
.can-more a span { display: inline-block; transition: transform .2s; }
.can-more a:hover span { transform: translateX(4px); }
.stage-more { margin: 18px 0 0; font-weight: 700; }
.more-link { margin: 28px 0 0; font-weight: 700; color: var(--navy); }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .steps4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps4 { grid-template-columns: 1fr; } }
.steps4--top { margin-top: 0; padding-top: 0; border-top: 0; }
.stage-where { margin: 0 0 6px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.stage-where::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 8px; }
.steps4 .n { font-size: 2.6rem; font-weight: 900; line-height: 1; color: var(--gold); }
.steps4 .h3 { margin: 8px 0 6px; }
.steps4 p { color: var(--muted); font-size: .97rem; }

/* ---------- journey ---------- */
.journey { display: grid; gap: 72px; }
.stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.stage:nth-child(even) .stage-copy { order: 2; }
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; gap: 28px; } .stage:nth-child(even) .stage-copy { order: 0; } }
.stage-num { font-size: 3.6rem; font-weight: 900; line-height: 1; color: var(--stage-c, var(--line-strong)); }
.stage h3 { font-size: 1.7rem; font-weight: 900; margin: 10px 0 12px; }
.stage ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.stage li { margin-bottom: 6px; }
.thread { margin: 72px 0 0; border-top: 1px solid var(--line); padding-top: 28px; color: var(--muted); max-width: 70ch; }

.contrast { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--surface); }
.contrast > div { padding: 32px; }
.contrast > div + div { border-left: 1px solid var(--line); background: #FBF9F3; box-shadow: inset 0 4px 0 var(--gold); }
.contrast h3 { margin-bottom: 14px; }
.contrast ul { margin: 0; padding-left: 20px; }
.contrast li { margin-bottom: 8px; }
@media (max-width: 760px) { .contrast { grid-template-columns: 1fr; } .contrast > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* navy bands: ivory text, gold accents; the button is ink on gold (7.1:1) */
.band { background: var(--band); color: var(--band-ink); }
.band h1, .band h2, .band h3 { color: var(--band-ink); }
.band .lede { color: var(--band-muted); }
.band .btn { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.band .btn:hover { background: #D8B06A; border-color: #D8B06A; }
.band .btn--ghost { background: transparent; color: var(--band-ink); border-color: var(--band-ink); }
.band .btn--ghost:hover { background: rgba(248, 245, 236, .1); }
.band a:not(.btn) { color: var(--gold); }
.band :focus-visible { outline-color: var(--gold); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split--top { align-items: start; }
.split--text { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--moss); border-bottom: 2.5px solid var(--moss); transform: rotate(-45deg); }
.band .ticks li::before { border-color: var(--gold); }

.dojos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dojos--1 { grid-template-columns: minmax(0, 640px); }
@media (max-width: 760px) { .dojos { grid-template-columns: 1fr; } }
.dojo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; }
.dojo-thumb { aspect-ratio: 1280 / 520; overflow: hidden; background: #0c0c0d; }
.dojo-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.dojo-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.dojo-body h3 { font-size: 1.35rem; font-weight: 900; margin-bottom: 6px; }
.dojo-body p { color: var(--muted); }
.dojo-body .meta { font-size: .92rem; color: var(--muted); margin-bottom: 10px; }
.dojo-body > a { margin-top: auto; font-weight: 700; }
.quote { margin: 4px 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); font-size: 1.05rem; color: var(--ink); }
.quote cite { display: block; margin-top: 6px; font-style: normal; font-size: .9rem; color: var(--muted); }

.showcase-teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
@media (max-width: 900px) { .showcase-teaser { grid-template-columns: 1fr; justify-items: center; } .showcase-teaser > div:first-child { justify-self: stretch; } }
.personas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .personas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .personas { grid-template-columns: 1fr; } }
.persona { border-top: 5px solid var(--c, var(--gold)); background: var(--surface); padding: 20px 20px 22px; border-radius: 0 0 12px 12px; border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.persona p { color: var(--muted); font-size: .95rem; margin: 8px 0 0; }
/* ---------- the showcase: a live demo, and its four people ---------- */
.ext { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.demo-pill { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--navy); color: var(--band-ink); font-size: .85rem; font-weight: 700; }
.demo-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: #6FD08C; box-shadow: 0 0 0 0 rgba(111, 208, 140, .7); animation: live 2.2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(111, 208, 140, .7); } 70%, 100% { box-shadow: 0 0 0 8px rgba(111, 208, 140, 0); } }
.demo-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
@media (max-width: 760px) { .demo-facts { grid-template-columns: 1fr; gap: 20px; } }
.demo-facts > div { border-top: 2px solid var(--gold); padding-top: 16px; }
.demo-facts p { color: var(--muted); margin: 8px 0 0; }

.pv-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 900px) { .pv-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pv-tab { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.pv-tab:hover { border-color: var(--line-strong); }
.pv-tab[aria-selected="true"] { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c), 0 14px 26px -20px rgba(10, 37, 64, .5); }
.pv-tab b { display: block; color: var(--navy); font-size: .98rem; }
.pv-tab small { display: block; color: var(--muted); font-size: .85rem; }
.pv-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c); color: var(--ci, #fff); font-weight: 900; font-size: .95rem; letter-spacing: .02em; }
.pv-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 36px 40px; overflow: hidden; }
.pv-panel[hidden] { display: none; }
.pv-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c); }
@media (max-width: 860px) { .pv-panel { grid-template-columns: 1fr; gap: 24px; padding: 26px 20px; justify-items: center; } .pv-story { justify-self: stretch; } .pv-zoom { order: -1; } .pv-phone { width: 220px; } }
@media (max-width: 560px) { .pv-tab { padding: 10px; gap: 10px; } .pv-tab .pv-avatar { width: 34px; height: 34px; font-size: .8rem; } .pv-tab b { font-size: .92rem; } .pv-tab small { font-size: .8rem; } }
.pv-who { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.pv-who .pv-avatar { width: 34px; height: 34px; font-size: .8rem; }
.pv-story h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 900; margin-bottom: 18px; }
.pv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pv-step { position: relative; display: block; width: 100%; text-align: left; padding: 12px 16px 12px 18px; border: 0; border-left: 3px solid var(--line); background: transparent; color: var(--ink); font: inherit; cursor: pointer; border-radius: 0 12px 12px 0; overflow: hidden; transition: background .2s, border-color .2s; }
.pv-step:hover { background: #FBF9F3; }
.pv-step[aria-pressed="true"] { border-left-color: var(--c); background: var(--surface-2); }
.pv-when { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.pv-title { display: block; font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.pv-text { display: none; color: var(--muted); font-size: .95rem; margin-top: 4px; }
.pv-step[aria-pressed="true"] .pv-text { display: block; }
/* While it plays on its own, the current moment shows how long until the next. */
.pv-step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--c); opacity: .6; }
.pv-panel.is-auto .pv-step[aria-pressed="true"]::after { animation: pv-progress 6s linear forwards; }
@keyframes pv-progress { to { width: 100%; } }
.pv-zoom { justify-self: center; }
.pv-phone { width: 270px; display: grid; }
.pv-screen { grid-area: 1 / 1; opacity: 0; transition: opacity .45s ease; border-radius: 27px; }
.pv-screen.is-on { opacity: 1; }
@media (max-width: 400px) { .pv-phone { width: 240px; } }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab { border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 600 .95rem var(--font); cursor: pointer; }
.tab:hover { border-color: var(--navy); }
.tab[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.gallery-cap { color: var(--muted); margin: 16px 0 0; max-width: 70ch; }

/* ---------- plans ---------- */
.plan-list { display: grid; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--surface); }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; padding: 32px 34px; align-items: center; }
.plan + .plan { border-top: 1px solid var(--line); }
.plan .h3 { font-size: 1.4rem; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.plan .h3 i { width: 14px; height: 14px; border-radius: 3px; background: var(--c); flex: none; }
.plan .who { color: var(--muted); font-size: .98rem; margin-top: 6px; }
.plan__lead { margin: 18px 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.plan .ticks { margin: 0; }
.plan__floor { margin: 0; }
.plan__floor figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.plan__floor figcaption b { color: var(--navy); }
/* A plan's floor: mats it adds lay down in turn when it scrolls into view (js/site.js). */
.pfloor { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, minmax(52px, auto)); gap: 4px; padding: 4px; background: var(--floor); border-radius: 6px; }
.pm { --heri: var(--c); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px; min-width: 0; border-radius: 2px; font: 700 .7rem/1.1 var(--font); text-align: center; color: rgba(248, 245, 236, .45); background: #12304F; outline: 1px dashed rgba(248, 245, 236, .22); outline-offset: -3px; }
.pm svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pm--v { writing-mode: vertical-rl; }
.pm--v svg { writing-mode: horizontal-tb; transform: rotate(90deg); }
.pm.is-down, .pfloor.is-laid .pm.is-new { outline: none; color: var(--mat-ink); background: repeating-linear-gradient(90deg, var(--rush) 0 3px, var(--rush-2) 3px 4px); box-shadow: inset 0 4px 0 var(--heri), inset 0 -4px 0 var(--heri); }
.pm--v.is-down, .pfloor.is-laid .pm--v.is-new { background: repeating-linear-gradient(0deg, var(--rush) 0 3px, var(--rush-2) 3px 4px); box-shadow: inset 4px 0 0 var(--heri), inset -4px 0 0 var(--heri); }
.pm.is-down { filter: saturate(.75) brightness(.94); }
.pfloor.is-laid .pm.is-new { animation: lay .6s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: calc(var(--i) * 140ms); }
.pfloor.is-laid .pm.is-new::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--gold); border-radius: 3px; opacity: 0; animation: glint 1.6s ease-out both; animation-delay: calc(var(--i) * 140ms + 450ms); pointer-events: none; }
@keyframes glint { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 900px) { .plan { grid-template-columns: 1fr; gap: 22px; padding: 26px 24px; } .plan__floor { max-width: 480px; } }
@media (max-width: 480px) { .pfloor { grid-template-rows: repeat(4, minmax(44px, auto)); gap: 3px; padding: 3px; } .pm { font-size: .58rem; gap: 2px; padding: 2px; } .pm svg { width: 13px; height: 13px; } }
.founding { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding: 40px; border-radius: var(--radius-l); }
@media (max-width: 860px) { .founding { grid-template-columns: 1fr; padding: 28px; } }
.founding h3 + .ticks { margin-top: 12px; }
.founding h3.next { margin-top: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; }
.card p { color: var(--muted); margin-top: 10px; }
.card a { font-weight: 700; }
.faq-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 26px; }
.faq-head .lede { margin: 0; max-width: 640px; font-size: 1rem; }
.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.faq-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px 24px; border-top: 3px solid var(--red); }
.faq-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.faq-card p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 980px) { .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feat { background: var(--surface); padding: 28px; display: flex; flex-direction: column; }
.feat p { color: var(--muted); margin-top: 10px; }
.feat ul { color: var(--muted); padding-left: 18px; margin: 0 0 16px; font-size: .95rem; }
.feat .go { margin-top: auto; font-weight: 700; }
/* /features: a card per part, its scene above what it is; the whole card leads to the part's page. */
.fcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .fcards { grid-template-columns: 1fr; max-width: 620px; } }
.fcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.fcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c); z-index: 1; }
.fcard:hover, .fcard:focus-within { transform: translateY(-4px); box-shadow: 0 30px 50px -34px rgba(10, 37, 64, .55); }
.fcard__media { padding: 30px 26px 0; background: linear-gradient(180deg, var(--surface-2), #FBF9F3); border-bottom: 1px solid var(--line); overflow: hidden; }
.fcard__media .combo { padding-bottom: 0; margin-bottom: -18%; transition: transform .35s cubic-bezier(.2, 1.2, .4, 1); }
.fcard:hover .fcard__media .combo, .fcard:focus-within .fcard__media .combo { transform: translateY(-6px); }
.fcard__media .browser { box-shadow: 0 22px 40px -26px rgba(10, 37, 64, .5); }
.fcard__media .combo__phone { bottom: 18%; }
.fcard__body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.fcard__layer { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.fcard__layer i { width: 11px; height: 11px; border-radius: 3px; background: var(--c); }
.fcard h2 { font-size: 1.4rem; font-weight: 900; }
.fcard__link { color: var(--navy); text-decoration: none; }
.fcard__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-l); } /* the whole card */
.fcard__link:focus-visible { outline: none; }
.fcard:focus-within { outline: 3px solid var(--link); outline-offset: 3px; }
.fcard__body > p:not(.fcard__layer) { color: var(--muted); margin: 10px 0 12px; }
.fcard ul { color: var(--muted); padding-left: 18px; margin: 0 0 18px; font-size: .95rem; }
.fcard__go { margin-top: auto; font-weight: 700; color: var(--link); display: inline-flex; gap: 6px; align-items: center; }
.fcard__arrow { transition: transform .25s; }
.fcard:hover .fcard__arrow, .fcard:focus-within .fcard__arrow { transform: translateX(4px); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.two-col h2 { font-size: 1.8rem; }
.detail-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
@media (max-width: 900px) { .detail-rows { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .detail-rows { grid-template-columns: 1fr; } }
.detail-rows p { color: var(--muted); margin-top: 8px; }
.shot-row { display: grid; gap: 28px; margin-top: 48px; }
.shot-row figure { margin: 0; min-width: 0; }
.shot-row--pair { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.shot-row--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.shot-row--phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.shot-row--phones figure, .shot-row--pair figure:last-child { display: flex; flex-direction: column; align-items: center; text-align: center; }
@media (max-width: 900px) { .shot-row--pair, .shot-row--two { grid-template-columns: 1fr; } }
.shot-row figcaption { color: var(--muted); font-size: .95rem; margin-top: 12px; }
.crumb { font-size: .95rem; margin-bottom: 18px; color: var(--muted); }
.crumb a { text-decoration: none; font-weight: 700; }

/* ---------- about ---------- */
.mission { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 900; line-height: 1.25; max-width: 24ch; color: var(--navy); }
.about-mark { width: 128px; height: auto; display: block; margin-bottom: 28px; }
.kicker { margin: 0 0 12px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: center; }
.about-hero .mission { font-size: clamp(1.3rem, 2.4vw, 1.75rem); max-width: 30ch; }
.name-note { margin: 26px 0 0; padding: 16px 20px; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 12px 12px 0; max-width: 560px; }
.name-note__h { margin: 0 0 4px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.name-note p:last-child { margin: 0; color: var(--ink); }
.about-sig { margin: 22px 0 0; font-weight: 700; color: var(--navy); }
.about-sig::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--gold); vertical-align: middle; margin-right: 12px; border-radius: 2px; }
.portrait { margin: 0; }
.portrait__frame { position: relative; }
.portrait__frame::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius-l); background: repeating-linear-gradient(90deg, var(--rush) 0 3px, var(--rush-2) 3px 4px); box-shadow: inset 0 8px 0 var(--h1), inset 0 -8px 0 var(--h1); z-index: 0; }
.portrait img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: var(--radius-l); box-shadow: 0 24px 48px -20px rgba(22, 40, 64, .45); }
.portrait figcaption { margin-top: 34px; font-size: .92rem; color: var(--muted); }
.portrait figcaption b { color: var(--navy); margin-right: 6px; }
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; gap: 40px; } .portrait { max-width: 420px; margin-right: 18px; } }
.life { list-style: none; margin: 0; padding: 0; position: relative; max-width: 820px; }
.life::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.life li { position: relative; padding: 0 0 34px 44px; }
.life li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 3px; background: var(--surface); border: 3px solid var(--h1); box-sizing: border-box; }
.life li:nth-child(2)::before { border-color: var(--h2); } .life li:nth-child(3)::before { border-color: var(--h3); } .life li:nth-child(4)::before { border-color: var(--h4); }
.life li:last-child::before { background: var(--gold); border-color: var(--gold); }
.life__when { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.life h3 { margin: 4px 0 8px; font-size: 1.25rem; font-weight: 900; color: var(--navy); }
.life p { margin: 0; color: var(--muted); }
.life-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 56px; align-items: start; }
.life-wrap .about-quote { position: sticky; top: 120px; }
@media (max-width: 900px) { .life-wrap { grid-template-columns: 1fr; gap: 8px; } .life-wrap .about-quote { position: static; } }
.about-quote { margin: 0; padding: 26px 30px; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius-l) var(--radius-l) 0; }
.about-quote p { margin: 0; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.4; color: var(--navy); }
.build-path .n { font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); padding-bottom: 12px; border-bottom: 3px solid var(--gold); }
.build-next { margin: 40px 0 0; font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.principles p { color: var(--muted); margin-top: 8px; }

/* ---------- demo form ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px; position: relative; }
@media (max-width: 560px) { .form { padding: 22px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form .full { grid-column: 1 / -1; }
.form label, .form .lbl { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--navy); }
.form label small, .form .lbl small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem var(--font); padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; }
.form textarea { min-height: 110px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.checks legend { padding: 0; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; margin: 0; cursor: pointer; }
.checks input { width: auto; margin: 0; accent-color: var(--btn-bg); }
.form .consent { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--ink); }
.form .consent input { width: auto; accent-color: var(--btn-bg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { color: #B3261E; font-weight: 700; min-height: 1.4em; margin: 12px 0; }
.success { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 40px; }
.success[hidden] { display: none; }
.success a { font-weight: 700; }

/* ---------- footer ---------- */
.ftr { background: var(--band); color: var(--band-muted); padding: 64px 0 48px; }
.ftr-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--band-ink); text-decoration: none; font-weight: 900; font-size: 1.2rem; }
.ftr-brand img { width: 44px; height: 44px; display: block; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-grid > div:first-child { grid-column: 1 / -1; } }
.ftr h2 { color: var(--band-ink); margin: 0 0 12px; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.ftr a { color: var(--band-muted); text-decoration: none; }
.ftr nav a, .ftr .col a { display: block; margin-bottom: 8px; }
.ftr a:hover { color: var(--band-ink); text-decoration: underline; text-decoration-color: var(--gold); }
.ftr :focus-visible { outline-color: var(--gold); }
.ftr p { margin: 14px 0 0; max-width: 30ch; }
.ftr small { display: block; margin-top: 44px; border-top: 1px solid rgba(248, 245, 236, .16); padding-top: 20px; font-size: .9rem; }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf img { width: 120px; height: auto; margin: 0 auto 24px; display: block; }

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