/* Lineforma — site stylesheet. Tokens from the Lineforma design system. */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #FAFAF9;
  --surface-raised: #FFFFFF;
  --concrete-100: #F1F1EF;
  --concrete-200: #E4E4E1;
  --line: #D4D4D0;
  --graphite: #7C7C78;
  --ink-muted: #5C5C59;
  --ink: #1C1C1B;
  --on-ink: #FAFAF9;
  --ochre: #A8722A;
  --ochre-ink: #80561A;
  --focus-ring: #1C1C1B;

  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --space-1: 4px; --space-2: 8px; --space-4: 16px; --space-6: 24px;
  --space-10: 40px; --space-16: 64px; --space-26: 104px;
  --radius-sm: 2px;

  --margin: 16px;
  --gutter: 16px;
  --section: var(--space-16);
  --header-h: 64px;
}
@media (min-width: 720px) { :root { --margin: 32px; --gutter: 24px; } }
@media (min-width: 1080px) { :root { --margin: 56px; --gutter: var(--space-10); --section: var(--space-26); --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/26px var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 var(--space-4); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 2px var(--paper); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; 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: var(--margin); top: -100px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display { font: 500 44px/46px var(--sans); letter-spacing: -0.03em; }
.h1 { font: 500 32px/38px var(--sans); letter-spacing: -0.02em; }
.h2 { font: 500 24px/30px var(--sans); letter-spacing: -0.01em; }
.h3 { font: 500 20px/28px var(--sans); }
@media (min-width: 1080px) {
  .display { font-size: 64px; line-height: 64px; }
  .h1 { font-size: 40px; line-height: 46px; }
  .h2 { font-size: 28px; line-height: 34px; }
}
.lede { font-size: 18px; line-height: 28px; max-width: 34em; }
@media (min-width: 1080px) { .lede { font-size: 20px; line-height: 30px; } }
.label { font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.dim { font: 400 11px/14px var(--mono); letter-spacing: .04em; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 22px; }
.measure { max-width: 36em; }

/* ---------- layout ---------- */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-10); }
.grid > * { grid-column: 1 / -1; min-width: 0; }
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--line); }
.band { background: var(--concrete-100); }
.section-head { margin-bottom: var(--space-10); }
.section-head .label { display: block; margin-bottom: var(--space-4); }
@media (min-width: 1080px) {
  .c-1-5 { grid-column: 1 / span 5; } .c-1-6 { grid-column: 1 / span 6; } .c-1-7 { grid-column: 1 / span 7; }
  .c-1-8 { grid-column: 1 / span 8; } .c-1-4 { grid-column: 1 / span 4; } .c-1-3 { grid-column: 1 / span 3; }
  .c-4-9 { grid-column: 4 / span 9; } .c-5-8 { grid-column: 5 / span 8; } .c-6-7 { grid-column: 6 / span 7; }
  .c-7-6 { grid-column: 7 / span 6; } .c-8-5 { grid-column: 8 / span 5; } .c-9-4 { grid-column: 9 / span 4; }
  .c-2-10 { grid-column: 2 / span 10; } .c-4-5 { grid-column: 4 / span 5; } .c-4-6 { grid-column: 4 / span 6; } .c-5-6 { grid-column: 5 / span 6; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 11px 20px; border-radius: var(--radius-sm);
  font: 500 15px/20px var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary:hover { background: #333331; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--graphite); }
.btn--ghost:hover { background: var(--concrete-200); }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link:hover { color: var(--ochre-ink); }
.link-quiet { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.link-quiet:hover { text-decoration-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; height: var(--header-h); gap: var(--space-6); }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; padding: 6px 0; }
.lockup img { width: 26px; height: 26px; }
.lockup span { font: 500 21px/1 var(--sans); letter-spacing: -0.02em; }
.nav { display: none; }
.nav ul { display: flex; gap: var(--space-6); }
.nav a { text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--ochre); }
.lang { display: flex; align-items: center; font: 500 12px/16px var(--mono); letter-spacing: .08em; }
.lang a, .lang span { padding: 8px 6px; text-decoration: none; color: var(--ink-muted); }
.lang [aria-current="true"] { color: var(--ink); }
.lang a:hover { color: var(--ink); }
.lang i { color: var(--line); font-style: normal; }
.header-cta { display: none; }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--graphite); border-radius: var(--radius-sm); min-height: 40px; padding: 0 12px; cursor: pointer; font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .i-close { display: none; }
.menu-open .nav-toggle .i-close { display: block; }
.menu-open .nav-toggle .i-menu { display: none; }
.mobile-menu { display: none; }
.menu-open .mobile-menu { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); z-index: 39; overflow-y: auto; border-top: 1px solid var(--line); }
.menu-open body { overflow: hidden; }
.mobile-menu ul { padding: var(--space-6) var(--margin); }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a { display: flex; justify-content: space-between; padding: 18px 0; font: 500 24px/30px var(--sans); letter-spacing: -0.01em; text-decoration: none; }
.mobile-menu li a .label { align-self: center; }
.mobile-menu .actions { padding: 0 var(--margin) var(--space-10); }
@media (min-width: 960px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .mobile-menu, .menu-open .mobile-menu { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: var(--space-10) 0 var(--section); }
@media (min-width: 1080px) { .hero { padding-top: var(--space-16); } }
.hero__meta { display: flex; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-10); }
.hero__title { margin-bottom: var(--space-6); }
.hero__aside { align-self: end; }
.hero__aside .lede { margin-bottom: var(--space-6); }

/* drawing → model pairing */
.xform { margin-top: var(--space-10); display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); background: var(--surface-raised); }
@media (min-width: 900px) { .xform { grid-template-columns: 5fr 7fr; } }
.xform__plan { position: relative; padding: var(--space-6); display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .xform__plan { border-bottom: 0; border-right: 1px solid var(--line); } }
.xform__plan .plan { flex: 1; width: 100%; height: auto; }
.xform__head { display: flex; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.xform .viewer { border: 0; }
.arrow-tag { display: inline-flex; align-items: center; gap: 6px; }
.arrow-tag::before { content: ""; width: 20px; height: 1px; background: var(--ochre); }

/* ---------- plan drawing ---------- */
.plan .pl-room { fill: var(--surface-raised); }
.plan .pl-void { fill: none; stroke: var(--graphite); stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.plan .pl-wall { fill: var(--ink); }
.plan .pl-thin, .plan .pl-door, .plan .pl-win, .plan .pl-dim { fill: none; stroke: var(--ink); stroke-width: .75; vector-effect: non-scaling-stroke; }
.plan .pl-door { stroke-width: 1.25; }
.plan .pl-dim { stroke: var(--ink-muted); }
.plan .pl-tick { stroke: var(--ochre); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.plan .pl-dimtick { stroke: var(--ink-muted); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.plan .pl-label { font: 500 300px var(--mono); letter-spacing: .06em; fill: var(--ink); }
.plan .pl-area, .plan .pl-dimtxt { font: 400 270px var(--mono); fill: var(--ink-muted); }
.plan--bare .pl-label, .plan--bare .pl-area { display: none; }

/* ---------- viewer ---------- */
.viewer { margin: 0; background: var(--surface-raised); border: 1px solid var(--line); display: flex; flex-direction: column; }
.viewer__stage { position: relative; aspect-ratio: 3 / 2; background: var(--concrete-100); overflow: hidden; cursor: grab; outline-offset: -2px; }
.viewer__stage:active { cursor: grabbing; }
.viewer__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: none; }
.viewer__status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--space-6); text-align: center; font: 500 12px/18px var(--mono); letter-spacing: .06em; color: var(--ink-muted); }
.viewer.is-loading .viewer__status::before { content: ""; width: 48px; height: 1px; background: var(--ochre); margin-right: 12px; animation: lf-pulse 1.2s ease-in-out infinite; }
@keyframes lf-pulse { 50% { transform: scaleX(.3); } }
@media (prefers-reduced-motion: reduce) { .viewer.is-loading .viewer__status::before { animation: none; } }
.viewer.is-error .viewer__stage { cursor: default; }
.viewer__fallback { position: absolute; inset: 0; padding: 12% 14%; display: none; }
.viewer.is-error .viewer__fallback { display: block; }
.viewer.is-error .viewer__status { inset: auto 0 0 0; justify-content: flex-start; background: var(--surface-raised); border-top: 1px solid var(--line); font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-align: left; }
.viewer__dim { position: absolute; left: 16px; bottom: 12px; pointer-events: none; display: flex; flex-direction: column; gap: 6px; }
.viewer__dim::before { content: ""; width: 96px; height: 1px; background: var(--ochre); }
.viewer.is-error .viewer__dim { display: none; }
.viewer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: 10px 12px 10px 16px; border-top: 1px solid var(--line); }
.viewer__info { min-width: 0; flex: 1 1 240px; }
.viewer__info .label { display: block; }
.viewer__hint { margin: 2px 0 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.viewer__tools { display: flex; flex-wrap: wrap; gap: 4px; }
.viewer__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; color: var(--ink); transition: background-color .2s, border-color .2s; }
.viewer__btn:hover { background: var(--concrete-100); border-color: var(--graphite); }
.viewer__btn--text span { font: 500 11px/14px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.viewer__btn[aria-pressed="true"] { border-color: var(--ink); }
.viewer:fullscreen { width: 100vw; height: 100vh; border: 0; }
.viewer:fullscreen .viewer__stage, .viewer.is-expanded .viewer__stage { aspect-ratio: auto; flex: 1; }
.viewer.is-expanded { position: fixed; inset: 0; z-index: 100; border: 0; }
.has-expanded-viewer, .has-expanded-viewer body { overflow: hidden; }
.viewer--tall .viewer__stage { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .viewer--tall .viewer__stage { aspect-ratio: 3 / 2; } }

/* ---------- service statement ---------- */
.statement { font: 500 26px/34px var(--sans); letter-spacing: -0.015em; }
@media (min-width: 1080px) { .statement { font-size: 34px; line-height: 44px; } }
.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 9em 1fr; gap: var(--space-4); padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { margin: 0; }
.facts dd { margin: 0; }

/* ---------- projects ---------- */
.projects { row-gap: var(--space-16); }
.project-card { text-decoration: none; display: block; }
.project-card__img { border: 1px solid var(--line); background: var(--surface-raised); padding: var(--space-6); transition: border-color .2s; }
.project-card:hover .project-card__img { border-color: var(--graphite); }
.project-card__img { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.project-card__img > div { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.project-card__img > div + div { border-left: 1px solid var(--line); background: var(--concrete-100); }
.project-card__img .plan { width: 100%; height: auto; margin: auto 0; }
.project-card__img img { width: 100%; height: auto; margin: auto 0; }
.project-card__img--tall { grid-template-columns: 1fr; }
.project-card__img--tall > div + div { border-left: 0; border-top: 1px solid var(--line); }
.project-card__img--tall .plan { max-height: 360px; margin: 0 auto; }
.project-card__meta { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); }
.project-card h3 { margin-top: 4px; }
.project-card:hover h3 { text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.tag { align-self: flex-start; display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font: 500 11px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
@media (min-width: 1080px) {
  .projects .p1 { grid-column: 1 / span 7; }
  .projects .p2 { grid-column: 9 / span 4; }
  .projects .p3 { grid-column: 2 / span 6; }
  .projects .p4 { grid-column: 9 / span 4; align-self: end; }
}
.open-slot { border: 1px dashed var(--graphite); padding: var(--space-6); }

/* ---------- process ---------- */
.steps { counter-reset: step; }
.step { border-top: 1px solid var(--ink); padding-top: var(--space-4); }
.step .label { display: block; margin-bottom: var(--space-6); }
.step h3 { margin-bottom: var(--space-2); }
@media (min-width: 900px) { .steps .step { grid-column: span 4; } }
@media (min-width: 900px) { .steps--4 .step { grid-column: span 3; } }

/* ---------- packages ---------- */
.pkgs { border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1fr; }
.pkg { border-bottom: 1px solid var(--line); padding: var(--space-6) 0; }
.pkg__name { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.pkg dl { margin: 0; }
.pkg dl > div { display: grid; grid-template-columns: 9.5em 1fr; gap: var(--space-4); padding: 10px 0; border-top: 1px solid var(--line); }
.pkg dt { margin: 0; }
.pkg dd { margin: 0; font-size: 15px; line-height: 23px; }
.pkg .actions { margin-top: var(--space-6); }
.pkgs__keys { display: none; }
@media (min-width: 1080px) {
  .pkgs { grid-template-columns: 10em repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(10, auto); }
  .pkgs__keys, .pkg { grid-row: span 10; display: grid; grid-template-rows: subgrid; row-gap: 0; }
  .pkgs__keys { padding: var(--space-6) var(--space-4) var(--space-6) 0; }
  .pkgs__keys > div { padding: 10px 0; border-top: 1px solid var(--line); }
  .pkgs__keys > div:first-child, .pkgs__keys > div:last-child { border-top: 0; }
  .pkg { border-bottom: 0; padding: var(--space-6) var(--space-6) var(--space-6) var(--space-6); border-left: 1px solid var(--line); }
  .pkg__name { margin-bottom: var(--space-4); }
  .pkg dl { display: contents; }
  .pkg dl > div { grid-template-columns: 1fr; }
  .pkg dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.tbc { font: 500 12px/18px var(--mono); letter-spacing: .04em; color: var(--ochre-ink); border-bottom: 1px dashed var(--ochre); }
.platforms { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-6); }

/* ---------- embed ---------- */
.code { position: relative; background: var(--ink); color: var(--on-ink); padding: var(--space-6); overflow-x: auto; font: 400 13px/21px var(--mono); }
.code pre { margin: 0; white-space: pre; }
.code__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.code__bar .label { color: #B9B9B4; }
.code .btn--ghost { color: var(--on-ink); border-color: #6E6E6A; }
.code .btn--ghost:hover { background: #2E2E2C; }
.ways > li { border-top: 1px solid var(--line); padding: var(--space-4) 0 var(--space-6); }
.ways .label { display: block; margin-bottom: var(--space-2); }

/* ---------- faq ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-6); padding: 18px 0; font: 500 18px/26px var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/26px var(--mono); color: var(--ink-muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 var(--space-6); max-width: 40em; }

/* ---------- enquiry ---------- */
.cta-band { background: var(--concrete-100); }
.cta-band .display { margin-bottom: var(--space-6); }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.form > * { grid-column: 1 / -1; }
@media (min-width: 720px) { .form .half { grid-column: span 1; } }
.field label, .field legend { display: block; font-weight: 500; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-muted); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; background: var(--surface-raised);
  border: 1px solid var(--graphite); border-radius: var(--radius-sm); font-size: 16px;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231C1C1B' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input[type="file"] { width: 100%; padding: 14px; border: 1px dashed var(--graphite); border-radius: var(--radius-sm); background: var(--surface-raised); }
.field [aria-invalid="true"] { border-color: #9B2C1F; }
.field__hint { font-size: 14px; line-height: 21px; color: var(--ink-muted); margin: 4px 0 0; }
.field__error { font-size: 14px; line-height: 21px; color: #9B2C1F; margin: 6px 0 0; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; min-height: 32px; }
.choices input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-summary, .form-result { padding: 14px 16px; border: 1px solid var(--line); background: var(--surface-raised); }
.form-summary { border-left: 3px solid #9B2C1F; }
.form-result.is-ok { border-left: 3px solid var(--ink); }
.form-result.is-fail { border-left: 3px solid #9B2C1F; }
.form-result:focus { outline: none; }

/* ---------- project page ---------- */
.spec { border-top: 1px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 10em 1fr; gap: var(--space-4); padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt, .spec dd { margin: 0; }
.plans { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 720px) { .plans--2 { grid-template-columns: 1fr 1fr; } }
.plans figure { margin: 0; border: 1px solid var(--line); background: var(--surface-raised); padding: var(--space-6); }
.plans figcaption { margin-top: var(--space-4); display: flex; justify-content: space-between; gap: var(--space-4); }
.plans .plan { width: 100%; height: auto; max-height: 640px; margin: 0 auto; }
.notice { border-left: 2px solid var(--ochre); padding: 2px 0 2px var(--space-4); }
.crumbs { margin-bottom: var(--space-6); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- prose ---------- */
.prose h2 { margin: var(--space-10) 0 var(--space-4); }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: none; margin: 0 0 var(--space-4); }
.prose li { padding-left: 20px; position: relative; margin-bottom: 6px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 13px; width: 10px; height: 1px; background: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--concrete-100); border-top: 1px solid var(--line); padding: var(--space-16) 0 var(--space-10); }
.site-footer .grid { row-gap: var(--space-10); }
.site-footer .label { display: block; margin-bottom: var(--space-4); }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-base { margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); }
@media (min-width: 900px) {
  .f-a { grid-column: 1 / span 5; } .f-b { grid-column: 7 / span 2; } .f-c { grid-column: 9 / span 2; } .f-d { grid-column: 11 / span 2; }
}
@media (min-width: 600px) and (max-width: 899px) { .f-b, .f-c, .f-d { grid-column: span 4; } }

/* ---------- embed page ---------- */
.embed-page, .embed-page body { height: 100%; }
.embed-page body { display: flex; background: var(--surface-raised); }
.embed-page .viewer { flex: 1; border: 0; }
.embed-page .viewer__stage { aspect-ratio: auto; flex: 1; min-height: 200px; }
.embed-credit { text-decoration: none; }
.embed-credit:hover { color: var(--ink); }

@media print { .site-header, .site-footer, .viewer__tools { display: none; } }
