/* GroundDeck — external site · StrongMocha House System v2 · Register: Foundry
   Mirror of tokens/house.css + tokens/foundry.css (source of truth in ~/Dev/Design_System)
   Child accent from registry.json: N°020 · SM/GDK · Deck cyan #0E7490 (contrast #FFFFFF) */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; src: url('fonts/Fraunces-400.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400; src: url('fonts/Fraunces-400i.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 900; src: url('fonts/Fraunces-900.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; src: url('fonts/IBMPlexMono-400.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; src: url('fonts/IBMPlexMono-500.woff2') format('woff2'); font-display: swap; }

/* ---- house layer ---- */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 40px; --sp-5: 64px; --sp-6: 96px;
  --ease: cubic-bezier(0.2, 0, 0, 1); --dur: 180ms;
  --shell-max: 1200px; --measure-max: 66ch;
}
.u-label { font-family: var(--font-label); font-size: 11px; font-weight: var(--label-weight, 500); letter-spacing: .15em; text-transform: uppercase; }
.u-tnum { font-variant-numeric: tabular-nums; }
.attribution { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-label); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.attribution::before { content: ""; width: 7px; height: 7px; background: var(--group-accent); }
.attribution b { color: var(--ink); font-weight: 600; }
.attribution:hover, .attribution:hover b { color: var(--group-accent); }
.reg-no { font-family: var(--font-data); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.reg-accent-chip { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: var(--child-accent, var(--group-accent)); }

/* ---- register: Foundry ---- */
.reg-foundry {
  --paper: #17130E; --card: #1F1A13; --panel: #241E16;
  --ink: #F2EDE0; --muted: #A79C87; --agate: #877D69; --line: #383024;
  --group-accent: #C9A24B; --group-accent-contrast: #17130E;
  --ember: #B4552D;
  --child-accent: #0E7490; --child-accent-contrast: #FFFFFF; --child-accent-soft: #3FA3BD;
  --font-display: 'Fraunces', Georgia, serif;
  --font-ui: 'Fraunces', Georgia, serif;
  --font-label: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --font-data: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --label-weight: 400; --radius: 0px;
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-ui); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.reg-foundry .hero-lift { background: radial-gradient(90% 120% at 50% -20%, #2A2114 0%, var(--paper) 60%); }

/* ---- base ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { overflow-x: hidden; }
a { color: var(--child-accent-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--group-accent); }
p { margin: 0 0 1em; max-width: var(--measure-max); }
.shell { max-width: var(--shell-max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.kicker { font-family: var(--font-label); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; margin: 0 0 var(--sp-2); }
.kicker::before { content: ""; width: 7px; height: 7px; background: var(--group-accent); flex: none; }
.lede { font-size: clamp(1.1rem, 1.4vw + .6rem, 1.35rem); line-height: 1.5; color: var(--ink); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--child-accent-soft); outline-offset: 3px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; font-family: var(--font-label); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--child-accent); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.btn--primary { background: var(--child-accent); color: var(--child-accent-contrast); }
.btn--primary:hover { background: #0B5C73; border-color: #0B5C73; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--sp-3); }

/* ---- header / nav ---- */
.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 72px; }
.wordmark { font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.wordmark i { width: 10px; height: 10px; background: var(--child-accent); display: inline-block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--font-label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid transparent; transition: color var(--dur) var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.nav-cta { color: var(--child-accent-soft); }
.menu-btn { display: none; min-height: 44px; min-width: 44px; padding: 0 14px; background: transparent; color: var(--ink); border: 1px solid var(--line); font-family: var(--font-label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--card); border-bottom: 1px solid var(--line); padding: var(--sp-1) 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0 clamp(16px, 4vw, 40px); min-height: 48px; }
  .no-js .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; border: 0; background: transparent; }
}

/* ---- hero ---- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.hero .shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw + .5rem, 5.2rem); }
.hero .lede { margin-top: var(--sp-3); }
.hero-visual { min-width: 0; }
.hero-visual svg { width: 100%; height: auto; display: block; }
.telemetry { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: var(--sp-3); font-family: var(--font-label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--agate); }
.telemetry b { color: var(--muted); font-weight: 500; }
@media (max-width: 900px) { .hero .shell { grid-template-columns: 1fr; } }

/* ---- sections ---- */
.section { padding: clamp(48px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--sp-3) var(--sp-5); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw + .4rem, 3rem); }
.section-head p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.step { padding: var(--sp-3) 0 var(--sp-3) 0; border-top: 1px solid var(--line); padding-right: var(--sp-3); }
.step + .step { border-left: 1px solid var(--line); padding-left: var(--sp-3); }
.step .num { font-family: var(--font-data); font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .2em; color: var(--group-accent); }
.step h3 { font-size: 1.35rem; margin: var(--sp-1) 0 var(--sp-1); }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .step + .step { border-left: 0; padding-left: 0; } .step { padding-right: 0; } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--paper); padding: var(--sp-3); min-width: 0; }
.feature .glyph { width: 28px; height: 28px; display: block; margin-bottom: var(--sp-2); }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 1024px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.audience article { border-top: 1px solid var(--group-accent); padding-top: var(--sp-2); }
.audience .u-label { color: var(--group-accent); display: block; margin-bottom: 8px; }
.audience h3 { font-size: 1.3rem; margin-bottom: 8px; }
.audience p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; gap: var(--sp-3); } }

.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.trust h2 { font-size: clamp(1.9rem, 3vw + .4rem, 2.8rem); margin-bottom: var(--sp-2); }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger .num { font-family: var(--font-data); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--group-accent); padding-top: 4px; }
.ledger b { display: block; font-weight: 900; font-family: var(--font-display); font-size: 1.05rem; }
.ledger span { color: var(--muted); font-size: .97rem; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

.faq { border-top: 2px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); padding: 18px 0; font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-data); color: var(--group-accent); font-size: 1.2rem; flex: none; transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

.cta-band { padding: clamp(56px, 8vw, 112px) 0; text-align: center; }
.cta-band h2 { font-size: clamp(2.2rem, 4.5vw + .5rem, 4rem); margin: 0 auto var(--sp-2); max-width: 18ch; }
.cta-band p { margin: 0 auto var(--sp-3); color: var(--muted); }
.cta-band .btn-row { justify-content: center; margin-top: 0; }
.cta-band .mail { font-family: var(--font-label); font-size: 13px; letter-spacing: .1em; display: block; margin-top: var(--sp-3); }

/* ---- prose pages (about, contact, legal) ---- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw + .5rem, 4rem); }
.page-head .lede { margin-top: var(--sp-2); }
.prose { padding: clamp(40px, 6vw, 72px) 0; }
.prose .shell > * { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin: var(--sp-4) 0 var(--sp-1); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: var(--sp-3) 0 6px; }
.prose ul { padding-left: 1.2em; color: var(--ink); }
.prose li { margin: 6px 0; max-width: var(--measure-max); }
.prose .updated { font-family: var(--font-label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--agate); margin-bottom: var(--sp-3); }
.notice { border-left: 2px solid var(--ember); padding: 12px 16px; background: var(--card); color: var(--muted); margin: var(--sp-3) 0; }
.notice b { color: var(--ink); }
.address { font-style: normal; line-height: 1.7; }
.contact-card { border: 1px solid var(--line); padding: var(--sp-3); display: grid; gap: 8px; max-width: 520px; }
.contact-card .u-label { color: var(--agate); }
.contact-card a.big { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-card a.big:hover { color: var(--child-accent-soft); }
.definitions dt { font-weight: 900; font-family: var(--font-display); margin-top: var(--sp-2); }
.definitions dd { margin: 4px 0 0; color: var(--muted); max-width: var(--measure-max); }

/* ---- footer ---- */
.site-footer { padding: var(--sp-5) 0 var(--sp-4); }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.site-footer .top p { color: var(--muted); font-size: .95rem; margin: 12px 0 0; }
.site-footer h4 { font-family: var(--font-label); font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--agate); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; font-size: .97rem; }
.site-footer li a:hover { color: var(--ink); }
.site-footer .bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); padding-top: var(--sp-3); }
.registry-chip { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-label); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.hallmark { width: 26px; height: 26px; border: 2px solid var(--ink); display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 11px; color: var(--ink); position: relative; }
.hallmark::after { content: ""; position: absolute; inset: 2px; border: 1px solid var(--group-accent); }
.copy { font-family: var(--font-label); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--agate); }
@media (max-width: 760px) { .site-footer .top { grid-template-columns: 1fr; gap: var(--sp-3); } }

/* ---- reveal (opacity/transform only, gated) ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(8px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---- v2: photographic plates (Runware z-image@turbo, 2026-09-07) ---- */
.hero--photo { position: relative; overflow: hidden; min-height: min(92vh, 900px); display: flex; align-items: flex-end; padding: clamp(120px, 18vw, 220px) 0 clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.hero--photo .plate { position: absolute; inset: 0; z-index: 0; }
.hero--photo .plate img, .hero--photo .plate video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.hero--photo .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(23,19,14,.55) 0%, rgba(23,19,14,.25) 40%, rgba(23,19,14,.86) 78%, var(--paper) 100%); }
.hero--photo .shell { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero--photo h1 { font-size: clamp(2.6rem, 6.2vw + .4rem, 6rem); text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.hero--photo .lede { margin-top: var(--sp-3); max-width: 44ch; }
.hero--photo .aside { border-left: 1px solid var(--group-accent); padding-left: var(--sp-3); color: var(--muted); font-size: .98rem; max-width: 34ch; }
.hero--photo .aside b { display: block; color: var(--ink); font-family: var(--font-label); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; margin-bottom: 8px; font-weight: 500; }
@media (max-width: 900px) { .hero--photo .shell { grid-template-columns: 1fr; } .hero--photo .aside { display: none; } }

.product-band { padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.product-band .shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.product-band h2 { font-size: clamp(1.8rem, 3vw + .4rem, 2.6rem); margin-bottom: var(--sp-2); }
.product-band p { color: var(--muted); }
.product-band svg { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
@media (max-width: 900px) { .product-band .shell { grid-template-columns: 1fr; } }

.story { display: grid; gap: clamp(40px, 6vw, 88px); }
.story-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.story-row:nth-child(even) .story-media { order: 2; }
.story-media { position: relative; border: 1px solid var(--line); overflow: hidden; }
.story-media img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; }
.story-media .tag { position: absolute; left: 14px; top: 14px; font-family: var(--font-label); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--ink); background: rgba(23,19,14,.72); padding: 6px 10px; border: 1px solid var(--line); }
.story-text .num { font-family: var(--font-data); font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .25em; color: var(--group-accent); display: block; margin-bottom: 10px; }
.story-text h3 { font-size: clamp(1.6rem, 2.4vw + .4rem, 2.4rem); margin-bottom: var(--sp-2); }
.story-text p { color: var(--muted); }
.story-text .ex { font-family: var(--font-label); font-size: 12px; color: var(--ink); background: var(--card); border: 1px solid var(--line); padding: 12px 14px; display: inline-block; margin-top: 4px; max-width: 100%; }
@media (max-width: 760px) { .story-row { grid-template-columns: 1fr; } .story-row:nth-child(even) .story-media { order: 0; } }

.cta-band--photo { position: relative; overflow: hidden; }
.cta-band--photo .plate { position: absolute; inset: 0; z-index: 0; }
.cta-band--photo .plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; opacity: .55; }
.cta-band--photo .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--paper) 0%, rgba(23,19,14,.35) 35%, rgba(23,19,14,.35) 65%, var(--paper) 100%); }
.cta-band--photo .shell { position: relative; z-index: 2; }

.page-head--photo .shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.page-head--photo img { display: block; width: 100%; height: auto; border: 1px solid var(--line); aspect-ratio: 20 / 13; object-fit: cover; }
@media (max-width: 900px) { .page-head--photo .shell { grid-template-columns: 1fr; } }

/* ---- v2.1: hero loop (Higgsfield kling3_0_turbo, 8 s, 720p, silent) ---- */
.hero--photo .plate { display: grid; }
.hero--photo .plate > * { grid-area: 1 / 1; }
.hero--photo .plate-loop { opacity: 0; transition: opacity 600ms var(--ease); }
.hero--photo .plate-loop.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero--photo .plate-loop { display: none; } }
