/* Apartment Rental Denver
   Palette from the v3 logo: indigo #171655, marigold #FDC70D.
   Motifs: window-grid mullions, architectural dimension lines, lobby-directory lists. */

@font-face { font-family: "Bodoni Moda"; src: url(/assets/fonts/bodonimoda-latin.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(/assets/fonts/bodonimoda-italic-latin.woff2) format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(/assets/fonts/schibsted-latin.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(/assets/fonts/schibsted-italic-latin.woff2) format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/assets/fonts/plexmono-500-latin.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #171655;
  --ink-2: #2A2788;
  --ink-deep: #0E0D33;
  --night: #09081F;
  --sun: #FDC70D;
  --sun-2: #E2AE00;
  --sun-soft: #FFF3C7;
  --plaster: #F3F2EC;
  --plaster-2: #E8E7F1;
  --paper: #FFFFFF;
  --text: #17152C;
  --muted: #4A4862;
  --on-dark: #F6F2E8;
  --on-dark-muted: #C9C6DE;
  --line: rgba(23, 22, 85, .16);
  --line-strong: rgba(23, 22, 85, .4);
  --serif: "Bodoni Moda", Didot, "Bodoni 72", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 40px);
  --mast-h: 76px;
  --dock-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--mast-h) + 16px); }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
  padding-bottom: var(--dock-h);
  top: 0 !important; /* Google Translate pushes body down; keep it put */
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.12; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
p, li { text-wrap: pretty; }
p { margin: 0 0 1.1em; }
strong { font-weight: 650; }
.visually-hidden { 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: 12px; top: -60px; z-index: 200; background: var(--sun); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.mono, .kicker { font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }

/* Buttons: square shoulders, like a door frame */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .7em 1.35em;
  font: 650 .98rem/1.1 var(--sans); letter-spacing: .01em;
  text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { background: var(--ink-2); color: #fff; }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--sun:hover { color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--on-dark); }
.btn--line-light { border-color: var(--on-dark); color: var(--on-dark); }
.btn--line-light:hover { background: var(--on-dark); color: var(--ink); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Masthead ---------- */
.mast { position: sticky; top: 0; z-index: 80; background: rgba(243, 242, 236, .94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.mast.is-scrolled { box-shadow: 0 6px 24px -18px rgba(10, 7, 54, .55); }
.mast__inner { display: flex; align-items: center; gap: 24px; max-width: 1360px; margin-inline: auto; padding: 0 var(--gut); height: var(--mast-h); }
.mast__logo { flex: none; display: block; }
.mast__logo img { width: 200px; height: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px;
  font: 600 .95rem/1 var(--sans); color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer; position: relative;
}
.nav__link::after, .nav__trigger::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__link:hover::after, .nav__trigger:hover::after, .nav__trigger[aria-expanded="true"]::after,
.nav__link[aria-current]::after, .nav__trigger[data-active]::after { transform: scaleX(1); }
.nav__link:hover { color: var(--ink); text-decoration: none; }
.nav__trigger svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.mast__tools { display: flex; align-items: center; gap: 12px; }
.mast__cta { min-height: 44px; padding-inline: 1.1em; }

/* Mega menu: a lobby directory with a lit corner */
.nav__item--mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 4px solid var(--ink); box-shadow: 0 30px 60px -30px rgba(10, 7, 54, .45); opacity: 0; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.mega.is-open { opacity: 1; transform: none; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 22px; } /* invisible hover bridge over the trigger gap */
.mega__inner { max-width: 1360px; margin: 0 auto; padding: 28px var(--gut) 32px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.mega__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.mega__grid li { border-bottom: 1px solid var(--line); }
.mega__grid li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.mega__grid a { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto 1fr; column-gap: 10px; height: 100%; padding: 18px 18px 20px; text-decoration: none; color: var(--text); transition: background .2s; }
.mega__grid a:hover, .mega__grid a[aria-current] { background: var(--sun-soft); }
.mega__tag { grid-row: 1 / 3; font: 500 .75rem/1.6 var(--mono); color: var(--ink); letter-spacing: .1em; }
.mega__label { font: 400 1.18rem/1.2 var(--serif); color: var(--ink); margin-bottom: 6px; }
.mega__blurb { font-size: .9rem; line-height: 1.45; color: var(--muted); }
.mega__aside { background: var(--ink); color: var(--on-dark); padding: 0 0 22px; display: flex; flex-direction: column; }
.mega__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mega__note { font: 400 1.15rem/1.35 var(--serif); padding: 18px 22px 4px; margin: 0 0 12px; }
.mega__aside .btn { margin: auto 22px 0; box-shadow: none; }

/* Language picker styled as part of the masthead; Google's own UI stays hidden */
.lang { position: relative; display: flex; align-items: center; height: 44px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); }
.lang__icon { position: absolute; left: 10px; width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.5; pointer-events: none; }
.lang__select { appearance: none; -webkit-appearance: none; height: 100%; border: 0; background: transparent; padding: 0 30px 0 34px; font: 500 .8rem/1 var(--mono); letter-spacing: .06em; color: var(--ink); cursor: pointer; max-width: 128px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.lang:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }
.lang__select:focus-visible { outline: none; box-shadow: none; }
.goog-te-banner-frame, .skiptranslate > iframe, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; visibility: hidden !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: transparent !important; box-shadow: none !important; }
#google_translate_element .goog-te-gadget { font-size: 0 !important; }

/* Burger + mobile sheet */
.burger { display: none; width: 48px; height: 48px; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 2px; cursor: pointer; position: relative; }
.burger__bars, .burger__bars::before, .burger__bars::after { position: absolute; left: 13px; width: 20px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; content: ""; }
.burger__bars { top: 23px; }
.burger__bars::before { left: 0; top: -6px; }
.burger__bars::after { left: 0; top: 6px; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }
.sheet { position: fixed; inset: var(--mast-h) 0 0; z-index: 70; background: rgba(10, 7, 54, .45); }
.sheet__panel { background: var(--plaster); max-height: 100%; overflow: auto; padding: 18px var(--gut) calc(110px + env(safe-area-inset-bottom)); animation: sheetIn .28s var(--ease); }
@keyframes sheetIn { from { transform: translateY(-12px); opacity: 0; } }
.sheet__kicker { font: 500 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.sheet__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.sheet__list a { display: flex; align-items: baseline; gap: 14px; padding: 16px 2px; border-bottom: 1px solid var(--line); font: 400 1.35rem/1.2 var(--serif); color: var(--ink); text-decoration: none; }
.sheet__list a span { font: 500 .75rem/1 var(--mono); color: var(--muted); }
.sheet__list a[aria-current] { background: var(--sun-soft); }
.sheet__minor { list-style: none; display: flex; gap: 20px; padding: 18px 2px 0; margin: 0; }
.sheet__minor a { font-weight: 600; }

/* ---------- Shared bits ---------- */
/* Dimension line: |<---- LABEL ---->| */
.dim { display: flex; align-items: center; gap: 12px; color: var(--ink); font: 500 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
.dim::before, .dim::after { content: ""; flex: 1; height: 9px; border-inline: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; opacity: .55; }
.dim--left::before { flex: 0 0 34px; }
.dim--light { color: var(--on-dark); }
.center { text-align: center; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.lede { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: var(--muted); }

/* Window-grid frame: photo seen through mullions, one lit pane */
.window { position: relative; isolation: isolate; background: var(--ink); padding: 10px; }
.window picture, .window img { width: 100%; height: 100%; object-fit: cover; }
.window__panes { position: absolute; inset: 10px; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); grid-template-rows: repeat(var(--rows, 2), 1fr); pointer-events: none; }
.window__panes span { border: 5px solid var(--ink); margin: -2.5px; }
.window__panes span.lit { background: rgba(251, 197, 8, .4); box-shadow: inset 0 0 0 3px var(--sun); }
.window__sill { position: absolute; left: -14px; right: -14px; bottom: -14px; height: 14px; background: var(--ink); }
.photo-note { font: 500 .68rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 22px; }

/* ---------- Home ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(100deg, #000 0%, transparent 55%); -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 55%); opacity: .5; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy h1 { margin-bottom: .35em; }
.hero__copy h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); padding: 0 .06em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__visual { position: relative; }
.hero__visual .window { aspect-ratio: 5 / 4; }
.hero__tag { position: absolute; left: -18px; top: 28px; background: var(--sun); color: var(--ink); font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 10px 12px; z-index: 2; }

/* Lease path: four stops on a dimension line */
.path { border-block: 1px solid var(--line-strong); background: var(--paper); }
.path__list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--wrap); }
.path__list li { border-left: 1px solid var(--line); }
.path__list li:last-child { border-right: 1px solid var(--line); }
.path__list a { display: block; padding: 22px 24px 24px; text-decoration: none; color: var(--text); height: 100%; transition: background .2s; }
.path__list a:hover { background: var(--sun-soft); }
.path__step { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.path__step::before { content: ""; width: 10px; height: 10px; background: var(--ink); }
.path__list li:nth-child(4) .path__step::before { background: var(--sun); outline: 1px solid var(--ink); }
.path__title { display: block; font: 400 1.3rem/1.2 var(--serif); color: var(--ink); margin: 12px 0 6px; }
.path__desc { display: block; font-size: .93rem; color: var(--muted); line-height: 1.5; }

/* Directory board */
.directory { background: var(--ink); color: var(--on-dark); padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.directory h2 { color: var(--on-dark); }
.directory .section-head p { color: var(--on-dark-muted); }
.board { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; border-top: 1px solid rgba(246, 242, 232, .3); }
.board li { border-bottom: 1px solid rgba(246, 242, 232, .18); }
.board a { display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1.4fr) 40px; align-items: center; gap: 24px; padding: 24px 12px; color: var(--on-dark); text-decoration: none; position: relative; transition: background .25s var(--ease), color .25s; }
.board a:hover, .board a:focus-visible { background: var(--sun); color: var(--ink); }
.board__unit { font: 500 .78rem/1 var(--mono); letter-spacing: .14em; color: var(--sun); }
.board a:hover .board__unit, .board a:focus-visible .board__unit { color: var(--ink); }
.board__name { font: 400 clamp(1.3rem, 1.05rem + .9vw, 1.85rem)/1.15 var(--serif); }
.board__blurb { font-size: .98rem; line-height: 1.5; color: var(--on-dark-muted); }
.board a:hover .board__blurb, .board a:focus-visible .board__blurb { color: var(--ink); }
.board__arrow { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; justify-self: end; transition: transform .25s var(--ease); }
.board a:hover .board__arrow { transform: translateX(4px); }

/* Quick rent check (home) */
.quick { padding: clamp(64px, 9vw, 112px) 0; }
.quick__frame { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: 2px solid var(--ink); background: var(--paper); }
.quick__intro { padding: clamp(28px, 4vw, 48px); border-right: 2px solid var(--ink); background: var(--plaster-2); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; }
.quick__intro h2 { margin-bottom: .4em; }
.quick__tool { padding: clamp(28px, 4vw, 48px); display: grid; align-content: center; gap: 22px; }
.quick__out { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.quick__out div { padding: 16px 14px 0 0; }
.quick__out div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.quick__out dt { font: 500 .7rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.quick__out dd { margin: 8px 0 0; font: 400 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }

/* Local specifics: photo with overlapping slab */
.local { position: relative; padding: 0 0 clamp(64px, 9vw, 120px); }
.local__photo { height: clamp(320px, 52vw, 640px); }
.local__photo picture, .local__photo img { width: 100%; height: 100%; object-fit: cover; }
.local__slab { position: relative; margin-top: clamp(-220px, -16vw, -120px); background: var(--plaster); border-top: 6px solid var(--sun); padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 56px) 8px; max-width: 1080px; margin-inline: auto; }
.local__list { list-style: none; counter-reset: loc; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.local__list li { counter-increment: loc; padding: 20px 0 22px 56px; border-top: 1px solid var(--line-strong); position: relative; }
.local__list li::before { content: counter(loc, decimal-leading-zero); position: absolute; left: 0; top: 22px; font: 500 .78rem/1 var(--mono); color: var(--ink); background: var(--sun); padding: 6px 7px; letter-spacing: .06em; }
.local__list h3 { margin-bottom: .3em; font-size: 1.28rem; }
.local__list p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Clause index table (home) */
.clauses { padding: clamp(64px, 9vw, 112px) 0; background: var(--paper); border-block: 1px solid var(--line); }
.clauses__layout { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.clauses__aside { position: sticky; top: calc(var(--mast-h) + 24px); }
.clauses__aside .window { aspect-ratio: 4 / 5; --cols: 2; --rows: 3; }


/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: .98rem; background: var(--paper); }
.table caption { text-align: left; font: 500 .74rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table thead th { font: 500 .72rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); background: var(--ink); border-bottom: 0; }
.table tbody th { font: 400 1.08rem/1.3 var(--serif); color: var(--ink); width: 26%; }
.table tbody tr:hover { background: var(--sun-soft); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line-strong); }

/* Closing band */
.band { background: var(--sun); color: var(--ink); padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.band__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.band h2 { margin-bottom: .25em; }
.band p { margin: 0; font-size: 1.1rem; max-width: 640px; }
.band .btn--ink { box-shadow: 4px 4px 0 var(--paper); }
.band__grid { position: absolute; right: -40px; top: -40px; width: 260px; height: 320px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; opacity: .18; pointer-events: none; }
.band__grid span { border: 3px solid var(--ink); }

/* ---------- Inner pages ---------- */
.crumbs { font: 500 .72rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--muted); }
.pagehead { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); text-align: center; }
.pagehead h1 { max-width: 16ch; margin: 18px auto .3em; }
.pagehead .lede { max-width: 680px; margin: 0 auto; }
.pagehead__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 24px; font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.banner { max-width: 1360px; margin: 0 auto; padding: 0 var(--gut); }
.banner .window { aspect-ratio: 21 / 8; --cols: 4; --rows: 1; }

.article { display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: clamp(32px, 5vw, 80px); padding: clamp(48px, 7vw, 88px) var(--gut) clamp(56px, 8vw, 104px); max-width: var(--wrap); margin: 0 auto; }
.toc { position: sticky; top: calc(var(--mast-h) + 28px); align-self: start; font-size: .92rem; }
.toc p { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--sun); font-weight: 600; }
.prose h2 { margin-top: 1.9em; padding-top: .9em; border-top: 1px solid var(--line-strong); }
.prose > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--sun-2); }
.prose ol li::marker { font-family: var(--mono); font-size: .85em; color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figure .window { aspect-ratio: 3 / 2; --cols: 3; --rows: 2; }
.prose figcaption { font: 500 .7rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 22px; }

/* Callouts */
.note, .warn, .messy { margin: 2em 0; padding: 22px 24px 8px; position: relative; }
.note { background: var(--sun-soft); border-left: 6px solid var(--sun); }
.warn { background: var(--paper); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.messy { background: var(--ink); color: var(--on-dark); }
.messy h3, .messy strong { color: var(--sun); }
.messy a { color: var(--on-dark); }
.note__label { display: block; font: 500 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; color: var(--ink); }
.messy .note__label { color: var(--sun); }
.note h3, .warn h3, .messy h3 { margin-top: 0; font-size: 1.2rem; }

/* If / then decision rows */
.ifthen { list-style: none; padding: 0 !important; margin: 1.6em 0 2em !important; border-top: 2px solid var(--ink); }
.ifthen li { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.ifthen li::before { content: none; }
.ifthen .if { font-weight: 600; color: var(--ink); }
.ifthen .then { color: var(--text); }
.ifthen svg { width: 24px; height: 24px; fill: none; stroke: var(--sun-2); stroke-width: 2; margin-top: 2px; }

/* Related */
.related { background: var(--plaster-2); padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.related__h { text-align: center; margin-bottom: 32px; }
.related__list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1080px; border: 1px solid var(--line-strong); background: var(--paper); }
.related__list li + li { border-left: 1px solid var(--line-strong); }
.related__list a { display: flex; flex-direction: column; height: 100%; padding: 24px; text-decoration: none; color: var(--text); transition: background .2s; }
.related__list a:hover { background: var(--sun-soft); }
.related__tag { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; color: var(--muted); }
.related__label { font: 400 1.3rem/1.2 var(--serif); color: var(--ink); margin: 12px 0 8px; }
.related__blurb { font-size: .94rem; color: var(--muted); line-height: 1.5; }

/* ---------- Tools ---------- */
.tool { background: var(--paper); border: 2px solid var(--ink); margin: 2em 0; }
.tool__head { background: var(--ink); color: var(--on-dark); padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool__head h3 { color: var(--on-dark); margin: 0; font-size: 1.2rem; }
.tool__head .mono { color: var(--sun); }
.tool__body { padding: 22px 20px 24px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field__hint { font-size: .85rem; color: var(--muted); }
.field__error { font-size: .88rem; font-weight: 600; color: #A3191B; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 400 1rem/1.3 var(--sans); color: var(--text);
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 2px; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 150px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--sun); outline: none; }
[aria-invalid="true"] { border-color: #A3191B; }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.money .input { padding-left: 28px; font-variant-numeric: tabular-nums; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.readout { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); margin-top: 8px; }
.readout div { padding: 16px 12px 4px 0; }
.readout div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.readout dt { font: 500 .68rem/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.readout dd { margin: 8px 0 0; font: 400 1.7rem/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.meter { margin-top: 18px; }
.meter__bar { height: 14px; background: var(--plaster-2); position: relative; border: 1px solid var(--line-strong); }
.meter__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); transition: width .4s var(--ease), background .3s; }
.meter__fill.is-high { background: #A3191B; }
.meter__mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--sun-2); }
.meter__scale { display: flex; justify-content: space-between; font: 500 .66rem/1 var(--mono); color: var(--muted); margin-top: 8px; }
.verdict { margin-top: 16px; padding: 14px 16px; background: var(--plaster); border-left: 6px solid var(--line-strong); font-weight: 500; }
.verdict[data-tone="ok"] { border-color: #1F7A4A; }
.verdict[data-tone="tight"] { border-color: var(--sun-2); }
.verdict[data-tone="high"] { border-color: #A3191B; }
.costlist { list-style: none; padding: 0 !important; margin: 0 !important; }
.costlist li { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line-strong); margin: 0 !important; }
.costlist label { font-weight: 600; color: var(--ink); font-size: .96rem; }
.costlist small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; }
.costlist .input { min-height: 44px; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 0; font: 400 1.5rem/1 var(--serif); color: var(--ink); }
.total span:first-child { font: 500 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }

/* Move planner timeline */
.timeline { list-style: none; padding: 0 !important; margin: 18px 0 0 !important; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.timeline li { display: grid; grid-template-columns: 78px 1fr; gap: 30px; padding: 0 0 18px; margin: 0 !important; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 87px; top: 6px; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--ink); }
.timeline li.is-past::after { background: var(--ink); }
.timeline li.is-next::after { background: var(--sun); }
.timeline time { font: 500 .78rem/1.5 var(--mono); color: var(--ink); text-align: right; letter-spacing: .04em; }
.timeline strong { display: block; color: var(--ink); }
.timeline span { color: var(--muted); font-size: .95rem; }

/* Type explorer tabs */
.tabs__list { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--ink); }
.tabs__tab { flex: 1 1 auto; min-height: 48px; padding: 10px 14px; background: transparent; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; font: 600 .92rem/1.2 var(--sans); color: var(--muted); cursor: pointer; }
.tabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sun); background: var(--sun-soft); }
.tabs__panel { padding: 22px 0 6px; }
.tabs__panel h3 { margin-top: 0; }
.traits { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-strong); margin: 0 0 18px; }
.traits div { padding: 12px; }
.traits div + div { border-left: 1px solid var(--line); }
.traits dt { font: 500 .66rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.traits dd { margin: 6px 0 0; display: flex; gap: 4px; }
.traits dd i { width: 14px; height: 14px; border: 1.5px solid var(--ink); display: block; }
.traits dd i.on { background: var(--ink); }

/* Tour checklist */
.check-app { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
.check-side { position: sticky; top: calc(var(--mast-h) + 24px); background: var(--ink); color: var(--on-dark); padding: 22px; }
.check-side h2 { color: var(--on-dark); font-size: 1.35rem; }
.building { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; border: 3px solid var(--on-dark); border-top-width: 10px; margin: 6px 0 16px; }
.building span { aspect-ratio: 1; border: 2px solid var(--on-dark-muted); background: transparent; transition: background .35s var(--ease); }
.building span.on { background: var(--sun); border-color: var(--sun); }
.check-side__count { font: 400 2rem/1 var(--serif); color: var(--sun); }
.check-side p { color: var(--on-dark-muted); font-size: .92rem; }
.check-side .btn { width: 100%; margin-top: 10px; }
.check-group { border: 0; padding: 0; margin: 0 0 30px; }
.check-group legend { font: 400 1.45rem/1.2 var(--serif); color: var(--ink); padding: 0; margin-bottom: 4px; width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.check-group legend small { font: 500 .72rem/1 var(--mono); letter-spacing: .1em; color: var(--muted); }
.check-group > p { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: start; }
.check:hover { background: var(--sun-soft); }
.check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border: 2px solid var(--ink); margin: 1px 0 0; background: var(--paper); display: grid; place-content: center; cursor: pointer; }
.check input::before { content: ""; width: 12px; height: 7px; border: solid var(--ink); border-width: 0 0 3px 3px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s; }
.check input:checked { background: var(--sun); }
.check input:checked::before { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check span strong { display: block; color: var(--ink); font-weight: 600; }
.check span em { font-style: normal; color: var(--muted); font-size: .92rem; }
.check input:checked + span strong { text-decoration: line-through; text-decoration-color: var(--sun-2); text-decoration-thickness: 2px; }

/* FAQ */
.faq-tools { display: grid; gap: 14px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 14px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 2px; font: 600 .88rem/1 var(--sans); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: center; padding: 20px 4px; font: 400 1.2rem/1.3 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--ink); width: 28px; height: 28px; display: grid; place-content: center; border: 1.5px solid var(--ink); transition: transform .2s, background .2s; }
.faq details[open] summary::after { content: "\2212"; background: var(--sun); }
.faq summary:hover { background: var(--sun-soft); }
.faq__a { padding: 0 4px 20px; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__cat { font: 500 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.faq-empty { padding: 20px; background: var(--paper); border: 1px dashed var(--line-strong); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); padding: clamp(40px, 6vw, 80px) var(--gut) clamp(56px, 8vw, 104px); max-width: var(--wrap); margin: 0 auto; align-items: start; }
.contact__form { background: var(--paper); border: 2px solid var(--ink); padding: clamp(22px, 3vw, 36px); box-shadow: 10px 10px 0 var(--sun); }
.contact__form h2 { font-size: 1.7rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .95rem; margin: 8px 0 20px; }
.consent input { width: 22px; height: 22px; accent-color: var(--ink); margin: 2px 0 0; }
.form-status { padding: 16px 18px; margin-bottom: 20px; }
.form-status--ok { background: #E3F2E9; border-left: 6px solid #1F7A4A; }
.form-status--err { background: #FBE6E4; border-left: 6px solid #A3191B; }
.notice-box { border: 1px solid var(--line-strong); padding: 18px 20px; background: var(--paper); font-size: .95rem; margin-top: 24px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gut) clamp(56px, 8vw, 96px); }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }

/* ---------- Footer + dock ---------- */
.foot { background: var(--ink-deep); color: var(--on-dark-muted); padding: 0 0 28px; }
.foot__rule { height: 10px; background: repeating-linear-gradient(90deg, var(--ink) 0 60px, var(--sun) 60px 72px); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.foot__brand img { width: 260px; margin-bottom: 18px; }
.foot__brand p { max-width: 380px; font-size: .95rem; }
.foot h2 { font: 500 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin: 8px 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { color: var(--sun); text-decoration: underline; }
.foot__notice { margin-top: 18px; font-size: .86rem; line-height: 1.55; border-left: 3px solid var(--sun); padding-left: 14px; }
.foot__notice strong { color: var(--on-dark); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid rgba(246, 242, 232, .15); padding-top: 22px; font-size: .85rem; }
.foot__base p { margin: 0; }
.foot__base ul { display: flex; flex-wrap: wrap; gap: 18px; }
.foot__base li { margin: 0; }
.dock { display: none; }

/* Reveals now come from the Motion Kit (/assets/motion/). */

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__link, .nav__trigger { padding: 0 10px; }
  .mast__logo img { width: 180px; }
}
@media (max-width: 1040px) {
  :root { --mast-h: 66px; --dock-h: calc(68px + env(safe-area-inset-bottom)); }
  .nav, .mast__cta { display: none; }
  .burger { display: block; }
  .mast__tools { margin-left: auto; }
  .mast__logo img { width: 190px; }
  .dock { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--ink); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -14px rgba(10, 7, 54, .6); }
  .dock__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; color: var(--on-dark); text-decoration: none; font: 600 .74rem/1 var(--sans); background: none; border: 0; cursor: pointer; border-radius: 2px; }
  .dock__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .dock__btn svg .lit { fill: var(--sun); stroke: var(--sun); }
  .dock__btn[aria-current], .dock__btn[aria-expanded="true"] { color: var(--sun); }
  .dock__btn--primary { background: var(--sun); color: var(--ink); margin: 2px; }
  .dock__btn--primary[aria-current] { color: var(--ink); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 640px; }
  .path__list { grid-template-columns: 1fr 1fr; }
  .path__list li:nth-child(2) { border-right: 1px solid var(--line); }
  .path__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .article { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
  .toc { display: none; }
  .clauses__layout { grid-template-columns: 1fr; }
  .clauses__aside { position: static; display: none; }
  .check-app { grid-template-columns: 1fr; }
  .check-side { position: sticky; top: calc(var(--mast-h) + 8px); z-index: 5; display: grid; grid-template-columns: 74px 1fr; gap: 6px 16px; align-items: center; padding: 12px 16px; }
  .check-side h2, .check-side p, .check-side .btn { display: none; }
  .building { grid-row: 1 / 3; margin: 0; padding: 4px; gap: 3px; border-width: 2px; border-top-width: 6px; }
  .building span { border-width: 1px; }
  .check-side__count { font-size: 1.4rem; }
  .check-side .mono { color: var(--on-dark-muted); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 1.02rem; }
  .lang__select { max-width: 92px; padding-right: 24px; }
  .mast__logo img { width: 158px; }
  .hero__tag { left: 0; top: 0; }
  .hero__visual .window { aspect-ratio: 4 / 3; }
  .window { padding: 6px; }
  .window__panes { inset: 6px; }
  .window__panes span { border-width: 3px; margin: -1.5px; }
  .window__sill { left: -8px; right: -8px; bottom: -10px; height: 10px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .path__list { grid-template-columns: 1fr; }
  .path__list li { border-right: 1px solid var(--line); }
  .path__list li + li { border-top: 1px solid var(--line); }
  .path__list a { display: grid; grid-template-columns: 1fr; padding: 16px 18px; }
  .path__title { margin: 8px 0 4px; }
  .board a { grid-template-columns: 54px minmax(0, 1fr) 24px; gap: 4px 12px; padding: 18px 6px; }
  .board__unit { grid-row: 1 / 3; align-self: start; padding-top: 6px; }
  .board__blurb { grid-column: 2; font-size: .92rem; }
  .board__arrow { grid-column: 3; grid-row: 1 / 3; width: 22px; height: 22px; }
  .quick__frame { grid-template-columns: 1fr; }
  .quick__intro { border-right: 0; border-bottom: 2px solid var(--ink); }
  .quick__out, .readout { grid-template-columns: 1fr; }
  .quick__out div, .readout div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .quick__out dd, .readout dd { margin: 0; font-size: 1.45rem; }
  .local__slab { margin-inline: 12px; margin-top: -90px; }
  .local__list { grid-template-columns: 1fr; }
  .band__inner { grid-template-columns: 1fr; }
  .banner .window { aspect-ratio: 4 / 3; --cols: 2; }
  .related__list { grid-template-columns: 1fr; }
  .related__list li + li { border-left: 0; border-top: 1px solid var(--line-strong); }
  .grid-2 { grid-template-columns: 1fr; }
  .costlist li { grid-template-columns: minmax(0, 1fr) 118px; }
  .traits { grid-template-columns: 1fr 1fr; }
  .traits div:nth-child(3) { border-left: 0; }
  .traits div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ifthen li { grid-template-columns: 1fr; gap: 4px; }
  .ifthen svg { transform: rotate(90deg); }
  .timeline::before { left: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 30px; }
  .timeline li::after { left: 3px; }
  .timeline time { text-align: left; }
  .contact { grid-template-columns: 1fr; }
  .contact__form { box-shadow: 6px 6px 0 var(--sun); }
  .foot__grid { grid-template-columns: 1fr; gap: 32px; }
  .foot__brand img { width: 220px; }
  /* Stack comparison tables into labeled rows */
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack th, .table--stack td { display: block; width: 100%; }
  .table--stack tr { border-bottom: 2px solid var(--ink); padding: 8px 0; }
  .table--stack tbody th { width: 100%; padding-bottom: 4px; border: 0; font-size: 1.2rem; }
  .table--stack td { border: 0; padding: 6px 16px; }
  .table--stack td::before { content: attr(data-label); display: block; font: 500 .66rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .table-scroll { border: 0; overflow: visible; }
}
@media (max-width: 380px) {
  .mast__logo img { width: 138px; }
  .lang__select { max-width: 74px; padding-left: 30px; }
  .lang__icon { left: 8px; width: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .mast, .foot, .dock, .sheet, .related, .toc, .band, .check-side .btn, .banner { display: none !important; }
  body { background: #fff; padding: 0; }
  .check-app { grid-template-columns: 1fr; }
  .check-side { position: static; background: #fff; color: #000; }
}

/* Page head label sits under the breadcrumb, centered and narrow */
.pagehead .dim { max-width: 420px; margin: 22px auto 0; }
.pagehead .crumbs + h1 { margin-top: 22px; }
.hero__copy h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.9rem); }
.board a { grid-template-columns: 90px minmax(0, 1.3fr) minmax(0, 1.2fr) 40px; }
.board__name { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.65rem); }
@media (max-width: 760px) { .board a { grid-template-columns: 54px minmax(0, 1fr) 24px; } }
.field { align-content: start; }
.pagehead h1 { max-width: 21ch; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.7rem); }
@media (max-width: 760px) { .board a { grid-template-columns: 66px minmax(0, 1fr) 22px; } .board__unit { white-space: nowrap; font-size: .7rem; letter-spacing: .08em; } }
.sheet { inset: 0; padding-top: var(--mast-h); overscroll-behavior: contain; }
.sheet__panel { max-height: calc(100vh - var(--mast-h)); max-height: calc(100dvh - var(--mast-h)); }
.check-group legend small { white-space: nowrap; }
@media (max-width: 1040px) { .check-side { order: -1; } }
@media (max-width: 760px) { .contact__form { order: -1; } }

/* =====================================================================
   v3 retrofit (2026-11): cinematic dark surfaces, Bodoni display,
   full-bleed heroes, section-12 patterns, Motion Kit hooks.
   ===================================================================== */
:root { --mk-accent: var(--sun); --mk-arrival-bg: var(--night); --mk-toggle-ink: var(--ink-deep); --display: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif; }
h1, h2 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: -.012em; line-height: .98; font-optical-sizing: auto; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem); }
h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; }
.slogan { font: italic 500 clamp(1.25rem, 1rem + 1vw, 1.9rem)/1.25 var(--display); color: var(--sun); margin: .2em 0 .7em; text-transform: none; }
.slogan em { font-style: italic; color: var(--on-dark); }

/* Masthead: dark, persistent across view transitions */
.mast { background: rgba(14, 13, 51, .9); border-bottom: 1px solid rgba(246, 242, 232, .12); }
.mast.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.mast__logo img { width: 210px; }
.nav__link, .nav__trigger { color: var(--on-dark); }
.nav__link:hover { color: #fff; }
.lang { background: transparent; border-color: rgba(246, 242, 232, .3); }
.lang__icon { stroke: var(--on-dark); }
.lang__select { color: var(--on-dark); background-image: linear-gradient(45deg, transparent 50%, var(--on-dark) 50%), linear-gradient(135deg, var(--on-dark) 50%, transparent 50%); }
.lang__select option { color: var(--text); }
.mast__cta.btn--ink { background: var(--sun); color: var(--ink); }
.mast__cta.btn--ink:hover { background: #fff; color: var(--ink); }
.burger { background: transparent; border-color: rgba(246, 242, 232, .35); }
.burger__bars, .burger__bars::before, .burger__bars::after { background: var(--on-dark); }

/* ---------- Home hero: full-bleed video, huge Bodoni headline ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--on-dark);
  min-height: clamp(560px, calc(100svh - var(--mast-h)), 940px); display: grid; align-content: center;
  padding: clamp(56px, 8vw, 112px) 0; }
.hero::before { content: none; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__layer { position: absolute; inset: 0; }
.hero__layer picture, .hero__layer img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(9, 8, 31, .88) 0%, rgba(9, 8, 31, .62) 46%, rgba(9, 8, 31, .2) 100%),
  linear-gradient(0deg, rgba(9, 8, 31, .7) 0%, transparent 40%); }
.hero__in { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, .9rem + 6.6vw, 7.6rem); line-height: .9; max-width: 12ch; margin: 0 0 .22em; letter-spacing: -.02em; }
.hero__lede { max-width: 560px; color: var(--on-dark-muted); font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__actions .btn--sun { box-shadow: none; }
.hero__note, .phero__note { position: absolute; right: var(--gut); bottom: 14px; margin: 0; font: 500 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 242, 232, .55); }

/* ---------- Inner page hero: full-bleed photo with parallax ---------- */
.phero { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--on-dark); text-align: center;
  min-height: clamp(440px, 62svh, 660px); display: grid; align-content: center; padding: clamp(56px, 8vw, 104px) 0; }
.phero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.phero__layer { position: absolute; inset: 0; }
.phero__layer picture, .phero__layer img { width: 100%; height: 100%; object-fit: cover; }
.phero__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 50%, rgba(9, 8, 31, .62) 0%, rgba(9, 8, 31, .86) 100%); }
.phero__in { position: relative; }
.phero .crumbs, .phero .crumbs a { color: var(--on-dark-muted); }
.phero .dim { max-width: 420px; margin: 20px auto 0; }
.phero h1 { color: #fff; font-size: clamp(2.1rem, 1rem + 4.4vw, 5.4rem); max-width: 17ch; margin: 18px auto .2em; letter-spacing: -.015em; }
.phero .slogan { margin-inline: auto; max-width: 34ch; }
.phero .lede { max-width: 680px; margin: 0 auto; color: var(--on-dark-muted); }
.phero .pagehead__meta { color: var(--sun); }
.pagehead h1 { font-size: clamp(2rem, 1.2rem + 3vw, 4rem); }

/* ---------- Pattern: scroll-filled giant words (four stages) ---------- */
.stages { background: var(--night); color: var(--on-dark); padding: clamp(72px, 10vw, 150px) 0; overflow: hidden; }
.stages__head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 64px); }
.stages__head h2 { color: #fff; font-size: clamp(2.2rem, 1rem + 4.6vw, 5.6rem); }
.stages__head p { color: var(--on-dark-muted); font-size: 1.1rem; max-width: 560px; }
.words { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(246, 242, 232, .18); }
.words__row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 22rem); gap: clamp(16px, 3vw, 48px); align-items: center; padding: clamp(22px, 3vw, 44px) 0; border-bottom: 1px solid rgba(246, 242, 232, .12); }
.words__n { font: 500 1rem/1 var(--mono); color: var(--sun); letter-spacing: .08em; }
.words__w { position: relative; display: block; font: 700 clamp(3rem, 1rem + 8.4vw, 9.4rem)/.86 var(--display); text-transform: uppercase; letter-spacing: -.035em; white-space: nowrap; }
.words__out { display: block; color: #fff; }
.words__fill { display: none; }
.words__p { margin: 0; color: var(--on-dark-muted); font-size: .96rem; max-width: 34ch; justify-self: end; }
.words__p a { color: var(--sun); white-space: nowrap; }
.mk-on .words__out { color: transparent; -webkit-text-stroke: 1px rgba(246, 242, 232, .42); }
.mk-on .words__fill { display: block; position: absolute; inset: 0; color: #fff;
  --f: clamp(0, (var(--p, 0) - .2) * 2.8, 1); clip-path: inset(-10% calc((1 - var(--f)) * 100%) -10% 0); }
.mk-on .words__row:nth-child(4) .words__fill { color: var(--sun); }
.mk-cine .words__w { translate: calc((.5 - var(--p, .5)) * 10%) 0; }
.mk-cine .words__row:nth-child(even) .words__w { translate: calc((var(--p, .5) - .5) * 10%) 0; }

/* Quick check: lit pane drifts with --p */
.quick { position: relative; overflow: hidden; }
.mk-cine .quick__frame { translate: 0 calc((.5 - var(--p, .5)) * 30px); }

/* ---------- Pattern: backdrop-video directory ---------- */
.directory { position: relative; overflow: hidden; isolation: isolate; background: var(--night); }
.directory__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.directory__layer { position: absolute; inset: 0; }
.directory__video { width: 100%; height: 100%; object-fit: cover; }
.directory__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 8, 31, .94) 0%, rgba(14, 13, 51, .82) 50%, rgba(9, 8, 31, .95) 100%); }
.directory__in { position: relative; }
.directory h2 { color: #fff; }
.board li { position: relative; }
.mk-on .board { border-top-color: transparent; }
.mk-on .board::before { content: ""; display: block; height: 1px; background: var(--sun); transform-origin: 0 50%; scale: min(1, calc(var(--p, 1) * 2.2)) 1; }

/* ---------- Pattern: expanding accordion gallery ---------- */
.types { padding: clamp(72px, 10vw, 140px) 0 clamp(48px, 6vw, 80px); background: var(--plaster); }
.types__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.types__head h2 { margin: 0; font-size: clamp(2.1rem, 1rem + 4.2vw, 5rem); }
.types__head > p { color: var(--muted); margin: 0; }
.accord { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; height: clamp(400px, 44vw, 560px); }
.accord__item { flex: 1 1 0; min-width: 0; position: relative; overflow: hidden; background: var(--ink); transition: flex .75s var(--ease); }
.accord__item:first-child { flex-grow: 3.4; }
.accord:hover .accord__item, .accord:focus-within .accord__item { flex-grow: 1; }
.accord .accord__item:hover, .accord .accord__item:focus-within { flex-grow: 3.4; }
.accord__item a { position: absolute; inset: 0; display: block; color: var(--on-dark); text-decoration: none; }
.accord__img, .accord__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.accord__img img { transition: scale 1.2s var(--ease), filter .6s; filter: saturate(.85) brightness(.8); }
.accord__item:hover .accord__img img, .accord__item:focus-within .accord__img img { scale: 1.05; filter: none; }
.accord__item a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9, 8, 31, .92) 0%, rgba(9, 8, 31, .25) 55%, rgba(9, 8, 31, .1) 100%); }
.accord__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(16px, 2vw, 28px); display: grid; gap: 8px; }
.accord__tag { font: 500 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }
.accord__label { font: 600 clamp(1.15rem, .9rem + .9vw, 1.9rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.accord__blurb, .accord__go { max-width: 40ch; font-size: .95rem; line-height: 1.5; color: var(--on-dark-muted); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease); }
.accord__go { color: var(--sun); font-weight: 600; font-size: .9rem; }
.accord__item:first-child .accord__blurb, .accord__item:first-child .accord__go { opacity: 1; transform: none; }
.accord:hover .accord__item .accord__blurb, .accord:hover .accord__item .accord__go,
.accord:focus-within .accord__item .accord__blurb, .accord:focus-within .accord__item .accord__go { opacity: 0; }
.accord .accord__item:hover .accord__blurb, .accord .accord__item:hover .accord__go,
.accord .accord__item:focus-within .accord__blurb, .accord .accord__item:focus-within .accord__go { opacity: 1; transform: none; transition-delay: .2s; }
.types .photo-note { text-align: right; }
[data-motion-tier="essential"] .accord__item, [data-motion-tier="essential"] .accord__blurb, [data-motion-tier="essential"] .accord__go, [data-motion-tier="essential"] .accord__img img { transition: none; }

/* Related guides use the same accordion, on a dark band */
.related { background: var(--night); border-top: 0; padding: clamp(64px, 9vw, 120px) 0; color: var(--on-dark); }
.related__h { text-align: left; color: #fff; font-size: clamp(2rem, 1rem + 3.6vw, 4.4rem); margin-bottom: clamp(24px, 3vw, 40px); }
.related .accord { height: clamp(360px, 36vw, 480px); }

/* ---------- Pattern: sticky stacking cards (local conditions) ---------- */
.local { padding: clamp(72px, 10vw, 140px) 0; background: var(--plaster-2); }
.local__wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.local__intro { position: sticky; top: calc(var(--mast-h) + 32px); }
.local__intro h2 { font-size: clamp(2rem, 1rem + 3.4vw, 4.2rem); }
.stack { list-style: none; margin: 0; padding: 0 0 4vh; display: grid; gap: 22px; }
.stack__card { --k: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2.5vw, 32px); align-items: start; min-height: 240px;
  background: var(--paper); border: 1px solid var(--line-strong); border-top: 6px solid var(--ink); padding: clamp(22px, 3vw, 40px); box-shadow: 0 30px 50px -40px rgba(9, 8, 31, .7); }
.stack__card:nth-child(2) { --k: 1; } .stack__card:nth-child(3) { --k: 2; } .stack__card:nth-child(4) { --k: 3; border-top-color: var(--sun); }
.mk-on .stack__card { position: sticky; top: calc(var(--mast-h) + 28px + var(--k) * 18px); }
.stack__n { font: 700 clamp(3.4rem, 2rem + 4vw, 6rem)/.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.stack__card h3 { margin-top: 4px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); }
.stack__card p { margin: 0; color: var(--muted); }
.mk-cine .stack__n { translate: 0 calc((.5 - var(--p, .5)) * 26px); }

/* Clauses + band */
.mk-cine .clauses__aside .window { translate: 0 calc((.5 - var(--p, .5)) * 50px); }
.band h2 { font-size: clamp(1.8rem, 1rem + 2.6vw, 3.4rem); }

/* Article reading line + TOC fill driven by --p (guide pages) */
.toc ol { position: relative; }
.mk-on .toc ol::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--sun); transform-origin: 50% 0; scale: 1 var(--p, 0); }
.mk-on .foot__rule { background-size: calc(60px + var(--p, 0) * 40px) 100%; }
.foot__motion { color: var(--on-dark); margin-left: auto; }

@media (max-width: 1040px) {
  .local__wrap { grid-template-columns: 1fr; }
  .local__intro { position: static; }
  .types__head { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .words__row { grid-template-columns: 1fr; gap: 10px; }
  .words__w { white-space: normal; }
  .words__p { justify-self: start; }
}
@media (max-width: 760px) {
  .mast__logo img { width: 168px; }
  .hero { min-height: clamp(560px, calc(100svh - var(--mast-h) - var(--dock-h)), 820px); }
  .hero__media::after { background: linear-gradient(0deg, rgba(9, 8, 31, .92) 0%, rgba(9, 8, 31, .7) 55%, rgba(9, 8, 31, .45) 100%); }
  .hero__actions .btn { flex: 1 1 100%; }
  .phero { min-height: 0; }
  .accord, .related .accord { flex-direction: column; height: auto; gap: 8px; }
  .accord__item, .accord__item:first-child, .accord .accord__item:hover, .accord .accord__item:focus-within { flex: none; min-height: 230px; }
  .accord__blurb, .accord__go, .accord:hover .accord__item .accord__blurb, .accord:hover .accord__item .accord__go,
  .accord:focus-within .accord__item .accord__blurb, .accord:focus-within .accord__item .accord__go { opacity: 1; transform: none; }
  .stack__card { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .foot__motion { margin-left: 0; }
}
@media (max-width: 380px) { .mast__logo img { width: 146px; } }
.prose h2, .legal h2 { font-size: clamp(1.55rem, 1.15rem + 1.3vw, 2.3rem); text-transform: none; line-height: 1.08; letter-spacing: -.01em; }
.prose h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); }
.mk-cine .contact__form { translate: 0 calc((.5 - var(--p, .5)) * 24px); }
.legal { position: relative; }
.mk-on .legal::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--sun); transform-origin: 0 50%; scale: var(--p, 0) 1; }
.mk-cine .check-side { translate: 0 calc((.5 - var(--p, .5)) * 16px); }
legend.visually-hidden { max-width: 1px; max-height: 1px; display: block; float: left; contain: strict; }

/* Accordion: collapsed panels show a vertical spine label; the open panel shows the full body */
.accord__spine { position: absolute; left: 50%; bottom: clamp(16px, 2vw, 26px); z-index: 1; writing-mode: vertical-rl; rotate: 180deg; translate: -50% 0; white-space: nowrap;
  font: 600 .95rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #fff; opacity: 1; transition: opacity .3s; max-height: calc(100% - 40px); overflow: hidden; }
.accord__body { opacity: 0; transition: opacity .35s; min-width: 15rem; }
.accord__item:first-child .accord__body { opacity: 1; }
.accord__item:first-child .accord__spine { opacity: 0; }
.accord:hover .accord__item .accord__body, .accord:focus-within .accord__item .accord__body { opacity: 0; transition-delay: 0s; }
.accord:hover .accord__item .accord__spine, .accord:focus-within .accord__item .accord__spine { opacity: 1; }
.accord .accord__item:hover .accord__body, .accord .accord__item:focus-within .accord__body { opacity: 1; transition-delay: .28s; }
.accord .accord__item:hover .accord__spine, .accord .accord__item:focus-within .accord__spine { opacity: 0; }
@media (max-width: 760px) {
  .accord__spine, .accord__item:first-child .accord__spine, .accord:hover .accord__item .accord__spine { display: none; }
  .accord__body, .accord:hover .accord__item .accord__body, .accord:focus-within .accord__item .accord__body { opacity: 1; min-width: 0; }
}

/* ---------- Layout fixes (owner: no overlap, no blank half) ---------- */
/* Motion kit contract: hidden states only under html.mk-on, so split words rest in place without it */
html:not(.mk-on) .mk-wi { translate: none !important; animation: none !important; }
html:not(.mk-on) [data-split]:not([data-mk-split]) { opacity: 1; }
.accord__tag, .accord__label, .accord__blurb { margin: 0; }
/* Hero title: tall display caps need clear space so the title never sits on the label or slogan */
.hero h1 { margin-top: 18px; margin-bottom: calc(.22em + 16px); }
.hero h1 { margin-top: 40px; }
/* Hero: slogan left, lede + buttons right on desktop */
@media (min-width: 900px) {
  .hero__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .hero__split .slogan { margin-top: 0; max-width: 18ch; }
  .hero__side .hero__lede { margin-top: .3em; }
}
/* Question band: heading left, note + button right */
@media (min-width: 900px) { .band__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; } }
.band__inner h2 { margin-bottom: 0; }
.band__side { display: grid; gap: 22px; justify-items: start; }
.band__side p { max-width: 36ch; }
@media (min-width: 900px) {
  .stages__head { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; }
  .stages__head .dim { grid-column: 1 / -1; }
  .stages__head h2 { margin-bottom: 0; }
  .stages__head > p:last-child { margin: 0 0 .5em; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .stages__head .dim { grid-column: 1; grid-row: 1; }
  .stages__head h2 { grid-column: 1; grid-row: 2; }
  .stages__head > p:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
}
