/* PH Master website: all page styles. Values come from tokens.css. Mobile first; breakpoint 64rem. */

/* ---------- Fonts: self-hosted Latin subsets (assets/fonts/LICENSES.md) ----------
   Preloaded in every page head with the exact same URLs. "optional": if a font is not ready at first
   paint, that view keeps the fallback instead of reflowing, so fonts can never cause layout shift.
   When a font file changes, give it a new file name (it is cached for a year). */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: optional;
  src: url("/assets/fonts/geist-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: optional;
  src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2"); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font: 400 1rem/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(body) a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-slate); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; } }

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--pad); top: -100px; z-index: 100; padding: .75rem 1rem; border-radius: 999px; background: var(--color-ink); color: #fff; }
.skip-link:focus { top: .75rem; }
.shell { width: min(100% - 2 * var(--pad), var(--page-max)); margin-inline: auto; }
.label { font-size: .875rem; font-weight: 400; color: var(--color-mute); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: 0 1.5rem; border: 1px solid transparent; border-radius: 999px; font: 500 .9375rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.btn--ink { background: var(--color-ink); color: #fff; }
.btn--ink:hover { background: var(--color-navy); }
.btn--white { background: #fff; color: var(--color-ink); }
.btn--white:hover { background: #EDEEF0; }
.btn--line { border-color: #C9CCD1; color: var(--color-ink); background: transparent; }
.btn--line:hover { border-color: var(--color-ink); background: var(--color-soft); }
.btn--wide { display: flex; width: 100%; min-height: 3.25rem; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Photo card header (home hero and page headers) ---------- */
.hero { position: relative; display: grid; margin: var(--pad) auto 0; width: min(100% - 2 * var(--pad), var(--page-max)); min-height: min(92svh, 56rem); border-radius: var(--r-xl); overflow: hidden; color: #fff; background: var(--color-navy); isolation: isolate; }
.hero--page { min-height: clamp(24rem, 52vh, 30rem); }
.hero--plain { min-height: 20rem; background: var(--color-taupe); }
.hero > picture, .hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero > picture img { object-fit: cover; object-position: center 40%; }
/* Shade between photo and text: left on wide screens, top on narrow ones. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 2; background:
    /* Measured against the photo pixels behind every line of text (accessibility-audit.md):
       long headlines reach ~80 % of the width at 1024 px, so the shade reaches that far too. */
    linear-gradient(90deg, rgba(23, 19, 16, .80) 0%, rgba(23, 19, 16, .70) 45%, rgba(23, 19, 16, .45) 72%, rgba(23, 19, 16, .12) 100%),
    linear-gradient(180deg, rgba(23, 19, 16, .35) 0%, rgba(23, 19, 16, 0) 30%, rgba(23, 19, 16, 0) 60%, rgba(23, 19, 16, .45) 100%); }
.hero--plain::before { display: none; }
@media (max-width: 63.99rem) {
  .hero::before { background: linear-gradient(180deg, rgba(23, 19, 16, .72) 0%, rgba(23, 19, 16, .64) 50%, rgba(23, 19, 16, .2) 74%, rgba(23, 19, 16, .38) 100%); }
  /* Inner pages put their text at the bottom: shade from the bottom up. */
  .hero--page::before { background: linear-gradient(180deg, rgba(23, 19, 16, .66) 0%, rgba(23, 19, 16, .62) 28%, rgba(23, 19, 16, .76) 58%, rgba(23, 19, 16, .86) 100%); }
}
/* Low specificity on purpose: the absolutely placed chrome (brand, tab, pills, menu) keeps its own position. */
:where(.hero > :not(picture)) { position: relative; z-index: 3; }

/* Top chrome: brand, notched menu tab, language pill, mobile menu. */
.brand { position: absolute; top: .9rem; padding-block: .5rem; left: clamp(1.25rem, 3vw, 2.5rem); z-index: 4; color: #fff; text-decoration: none; font: 600 1.25rem/1 var(--font-sans); letter-spacing: -0.02em; white-space: nowrap; }
.brand .serif { font-size: 1.45rem; }
.tab-nav { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 4; padding: .5rem 1.25rem .65rem; background: var(--color-paper); border-radius: 0 0 18px 18px; }
.tab-nav ul { display: flex; gap: .25rem; padding: 0; list-style: none; }
/* Concave corners where the tab meets the photo: paper fills the corner next to the tab, and the curve
   is centred on the far bottom corner, so the photo's edge flows into the tab's side. */
.tab-nav::before, .tab-nav::after { content: ""; position: absolute; top: 0; width: 18px; height: 18px; }
.tab-nav::before { left: -18px; background: radial-gradient(circle at 0 100%, transparent 17.5px, var(--color-paper) 18px); }
.tab-nav::after { right: -18px; background: radial-gradient(circle at 100% 100%, transparent 17.5px, var(--color-paper) 18px); }
.tab-nav a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .8rem; font-size: .875rem; color: var(--color-ink); text-decoration: none; border-radius: 8px; white-space: nowrap; }
.tab-nav a:hover { background: var(--color-soft); }
.tab-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--color-ink); border-radius: 0; }
.top-actions { position: absolute; top: 1.1rem; right: clamp(1rem, 2.5vw, 2rem); z-index: 4; display: flex; gap: .5rem; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: 2.5rem; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--color-paper); color: var(--color-ink); font-size: .875rem; text-decoration: none; cursor: pointer; }
.pill:hover { background: #fff; }
.pill svg { width: 1.1rem; height: 1.1rem; }
.menu-btn { display: none; }
.mobile-nav { position: absolute; top: 4.25rem; right: clamp(1rem, 2.5vw, 2rem); left: clamp(1rem, 2.5vw, 2rem); z-index: 5; display: none; padding: .5rem; border-radius: 20px; background: var(--color-paper); color: var(--color-ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: grid; padding: 0; list-style: none; }
.mobile-nav a { display: flex; align-items: center; min-height: 3rem; padding: 0 1rem; border-radius: 12px; text-decoration: none; }
.mobile-nav a:hover { background: var(--color-soft); }
.mobile-nav .btn { margin-top: .5rem; width: 100%; }
@media (max-width: 63.99rem) {
  .tab-nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Home hero copy */
.hero-copy { align-self: start; padding: clamp(6.5rem, 14vh, 9.5rem) clamp(1.25rem, 3vw, 2.5rem) 0; max-width: 54rem; }
.hero h1 { font: 400 clamp(2.75rem, 1.4rem + 5.2vw, 6.25rem)/.96 var(--font-sans); letter-spacing: -0.035em; }
.hero h1 .serif { display: block; padding-left: clamp(2rem, 9vw, 9rem); font-size: 1.04em; }
.hero-copy p { margin-top: 1.5rem; max-width: 30rem; line-height: 1.6; color: rgba(255, 255, 255, .92); }
/* Inner page header copy */
.page-copy { align-self: end; padding: 6rem clamp(1.25rem, 3vw, 2.5rem) clamp(1.75rem, 4vw, 3rem); max-width: 52rem; }
.page-copy h1 { font-size: clamp(2.5rem, 1.4rem + 4vw, 5rem); line-height: 1; }
.page-copy h1 .serif { padding-left: clamp(1.5rem, 6vw, 5rem); }
.page-copy p { margin-top: 1.25rem; max-width: 34rem; color: rgba(255, 255, 255, .92); }

/* Floating action bar: starts the demo request in the hero. Sends only building, units and role. */
.actbar { align-self: end; margin: 2rem clamp(.75rem, 2vw, 1.5rem) clamp(.75rem, 2vw, 1.5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .5rem; align-items: center; padding: .5rem .5rem .5rem 1rem; background: rgba(252, 252, 252, .97); color: var(--color-ink); border-radius: 999px; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .55); }
.actbar .f { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .65rem; align-items: center; padding: .25rem .5rem; border-right: 1px solid var(--color-line); }
.actbar .f:nth-child(3) { border-right: 0; }
.actbar .f:focus-within { background: var(--color-soft); border-radius: 999px; }
.actbar .ic { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #F0F1F3; }
.actbar .ic svg { width: 1.05rem; height: 1.05rem; }
.actbar label { display: block; font-size: .75rem; line-height: 1.2; color: var(--color-mute); }
.actbar input, .actbar select { width: 100%; min-height: 1.75rem; padding: .15rem 0; border: 0; background: transparent; font: 500 .9375rem/1.3 var(--font-sans); appearance: none; }
.actbar input::placeholder { color: #6E747C; }
.actbar input:focus-visible, .actbar select:focus-visible { outline: none; }
@media (max-width: 63.99rem) {
  .actbar { grid-template-columns: 1fr; border-radius: 22px; padding: .75rem; }
  .actbar .f { border-right: 0; border-bottom: 1px solid var(--color-line); padding: .5rem; }
  .actbar .f:nth-child(3) { border-bottom: 0; }
  .actbar .btn { width: 100%; }
}

/* ---------- Home: about sentence + numbers ---------- */
.about { display: grid; gap: 2rem; padding-block: clamp(4rem, 9vw, 8rem) clamp(3rem, 6vw, 5rem); }
@media (min-width: 64rem) { .about { grid-template-columns: 14rem minmax(0, 1fr); } }
.about .big { max-width: 24ch; font: 400 clamp(1.75rem, 1rem + 2.6vw, 3rem)/1.18 var(--font-sans); letter-spacing: -0.025em; }
.about .big .serif { font-size: 1.06em; color: var(--color-navy-2); }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding: 0; list-style: none; }
.nums b { display: block; font: italic 400 clamp(2.5rem, 1.6rem + 3vw, 4rem)/1 var(--font-serif); letter-spacing: -0.02em; }
.nums span { display: block; margin-top: .5rem; font-size: .875rem; color: var(--color-mute); }
@media (max-width: 40rem) { .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }

/* ---------- Home: photo cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: end; padding: 0; list-style: none; }
.cards > li:nth-child(2) { margin-top: -2.5rem; }
.ph-card { display: block; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: #DDE0E4; }
.ph-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cards figure:hover img { transform: scale(1.04); }
.cards figcaption { margin-top: .75rem; font-size: .9375rem; line-height: 1.35; }
.cards figcaption small { display: block; font-size: .8125rem; color: var(--color-mute); }
.dark-card { display: grid; align-content: space-between; gap: 1rem; aspect-ratio: 3 / 3.4; padding: 1.25rem; border-radius: var(--r-lg); background: var(--color-taupe); color: #fff; text-decoration: none; }
.dark-card { min-width: 0; }
.dark-card h2 { font: 400 clamp(1.125rem, .8rem + 1.6vw, 1.5rem)/1.05 var(--font-sans); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.dark-card p { overflow-wrap: anywhere; }
.dark-card h2 .serif { display: block; font-size: 1.1em; }
.dark-card p { font-size: .875rem; color: rgba(255, 255, 255, .88); }
.dark-card .arrow { justify-self: end; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #fff; color: var(--color-ink); transition: transform var(--dur) var(--ease); }
.dark-card:hover .arrow { transform: rotate(-45deg); }
@media (max-width: 63.99rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards > li:nth-child(2) { margin-top: 0; } }

/* ---------- Home: dark photo panel ---------- */
.panel { position: relative; display: grid; margin-top: clamp(4rem, 9vw, 7rem); min-height: 34rem; border-radius: var(--r-xl); overflow: hidden; color: #fff; isolation: isolate; background: var(--color-ink); }
.panel > picture, .panel > picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.panel > picture img { object-fit: cover; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23, 19, 16, .86) 0%, rgba(41, 36, 32, .72) 45%, rgba(23, 19, 16, .25) 100%); }
@media (max-width: 63.99rem) { .panel::before { background: linear-gradient(180deg, rgba(23, 19, 16, .86) 0%, rgba(23, 19, 16, .7) 55%, rgba(23, 19, 16, .4) 100%); } }
.panel .in { display: grid; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 64rem) { .panel .in { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); } }
.panel h2 { font: 400 clamp(2.5rem, 1.4rem + 3.8vw, 4.75rem)/.98 var(--font-sans); letter-spacing: -0.035em; }
.panel h2 .serif { display: block; padding-left: clamp(1.5rem, 5vw, 4rem); font-size: 1.06em; }
.panel p { max-width: 30rem; margin: 1.5rem 0 1.75rem; color: rgba(255, 255, 255, .9); }
.panel .phone { justify-self: center; width: min(15rem, 46vw); border-radius: 28px; border: 6px solid #0E0C0A; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); transform: rotate(4deg); background: #fff; }

/* ---------- Home: reports grid ---------- */
.listing { padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem); }
.section-title { margin-bottom: clamp(2rem, 4vw, 3rem); font: 400 clamp(2.25rem, 1.4rem + 3vw, 3.75rem)/1 var(--font-sans); letter-spacing: -0.03em; }
.section-title .serif { font-size: 1.06em; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; padding: 0; list-style: none; }
@media (max-width: 63.99rem) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .grid4 { grid-template-columns: 1fr; } }
/* App screenshots are 800px wide: never shown wider than ~400 CSS px, so they stay sharp. */
.shot { display: block; aspect-ratio: 16 / 11; max-width: 25rem; border-radius: 14px; overflow: hidden; background: #EEF0F2; box-shadow: inset 0 0 0 1px var(--color-line); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.kind { display: block; margin-top: .9rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-mute); }
.grid4 h3 { margin: .25rem 0 .6rem; font: italic 400 1.25rem/1.2 var(--font-serif); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; list-style: none; }
.tags li { padding: .3rem .65rem; border-radius: 999px; background: var(--color-ink); color: #fff; font-size: .75rem; }
.listing .btn--wide { margin-top: 2.5rem; }

/* ---------- Features ---------- */
.block { padding-block: clamp(3.5rem, 8vw, 6rem) 0; }
.block:last-of-type { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 0; list-style: none; background: var(--color-line); border: 1px solid var(--color-line); border-radius: var(--r-lg); overflow: hidden; }
.modules li { padding: 1.5rem; background: var(--color-paper); }
.modules h3 { font: italic 400 1.375rem/1.15 var(--font-serif); }
.modules p { margin-top: .5rem; font-size: .9375rem; color: var(--color-mute); }
@media (max-width: 63.99rem) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .modules { grid-template-columns: 1fr; } }
.spec-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.spec-table th, .spec-table td { padding: 1.1rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-line); }
.spec-table th { width: 30%; padding-right: 1.5rem; font-weight: 500; }
.spec-table td { color: #333A42; }
.spec-table .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .875rem; }
@media (max-width: 47.99rem) {
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { padding-bottom: .25rem; border: 0; }
}
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 2rem; padding-block: clamp(3rem, 7vw, 5rem); }
@media (min-width: 64rem) { .contact { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 3rem; } }
.form-card { padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--color-line); border-radius: var(--r-xl); background: var(--color-surface); }
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 48rem) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .4rem; }
.field-label { font-size: .875rem; font-weight: 500; }
.field-label .optional { font-weight: 400; color: var(--color-mute); }
.req { color: var(--color-error); }
.input, .select, .textarea { width: 100%; min-height: 3rem; padding: .6rem 1rem; border: 1px solid var(--color-line-strong); border-radius: var(--r-md); background: var(--color-surface); font-size: 1rem; }
.select { appearance: none; padding-right: 2.5rem; background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6670' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 1rem; }
.textarea { min-height: 8rem; resize: vertical; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline-offset: 1px; border-color: var(--color-slate); }
[aria-invalid="true"] { border-color: var(--color-error) !important; border-width: 2px !important; }
.hint { font-size: .8125rem; color: var(--color-mute); }
.error { font-size: .875rem; font-weight: 500; color: var(--color-error); }
.error-summary { padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--color-error-soft); color: var(--color-error); }
.error-summary:focus { outline: 2px solid var(--color-error); outline-offset: 2px; }
.error-summary ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.check { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .75rem; align-items: start; font-size: .9375rem; }
.check input { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--color-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-result { display: grid; gap: .5rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--r-xl); background: var(--color-ok-soft); }
.form-result:focus { outline: 2px solid var(--color-slate); outline-offset: 2px; }
.form-result h2 { font: 400 clamp(1.75rem, 1.2rem + 2vw, 2.5rem)/1.1 var(--font-sans); letter-spacing: -0.02em; }
.prefill-note { padding: .75rem 1rem; border-radius: var(--r-md); background: var(--color-soft); font-size: .9375rem; }
.aside { display: grid; gap: 1.5rem; }
.aside h2 { font: 400 1.75rem/1.1 var(--font-sans); letter-spacing: -0.02em; }
.aside h2 .serif { font-size: 1.08em; }
.expect { display: grid; gap: .6rem; padding: 0; list-style: none; }
.expect li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; align-items: start; padding: .9rem 1rem; border: 1px solid var(--color-line); border-radius: var(--r-md); font-size: .9375rem; color: #333A42; }
.expect svg { width: 1.25rem; height: 1.25rem; color: var(--color-mute); }
.contact-list { display: grid; gap: .25rem; }
.contact-list dt { margin-top: .75rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-mute); }

/* ---------- Privacy ---------- */
.prose { display: grid; gap: 1rem; max-width: 44rem; padding-block: clamp(3rem, 7vw, 5rem); font-size: 1.0625rem; }
.prose h2 { margin-top: 1rem; font: 500 1.25rem/1.3 var(--font-sans); }

/* Missing facts stay visible until filled (see tools/build.py SITE). */
mark.todo { padding: 0 .3em; border-radius: 4px; background: var(--color-error-soft); color: var(--color-error); font-weight: 600; }

/* ---------- Footer ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; margin-top: clamp(2rem, 5vw, 4rem); padding-block: 2.5rem 3rem; border-top: 1px solid var(--color-line); font-size: .875rem; color: var(--color-mute); }
.foot .brand-dark { color: var(--color-ink); font: 600 1.125rem/1 var(--font-sans); text-decoration: none; }
.foot .brand-dark .serif { font-size: 1.3rem; }
.foot ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: 0; list-style: none; }
.foot a { display: inline-flex; align-items: center; min-height: 2.25rem; text-decoration: none; }
.foot a:hover { color: var(--color-ink); }

/* ---------- 404 ---------- */
.not-found { display: grid; gap: 2.5rem; max-width: 44rem; padding-block: clamp(3rem, 7vw, 5rem); }
.not-found h2 { font: 400 2rem/1.1 var(--font-sans); letter-spacing: -0.02em; }
.not-found p { margin: .75rem 0 1.25rem; color: var(--color-mute); }

/* ---------- Hero button and closing request section ---------- */
.hero-cta { margin-top: 2rem; }
.hero-cta .btn { min-height: 3.25rem; padding-inline: 1.75rem; }
.request { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem); }
.request .section-title { margin-bottom: 1rem; }
.request .lead { max-width: 40rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); font-size: 1.0625rem; color: var(--color-mute); }
/* Outside the photo the bar sits on the page: a light outline instead of the floating shadow. */
.request .actbar { margin: 0; background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: 0 24px 50px -36px rgba(23, 19, 16, .35); }

/* Primary keyword as a small line inside the home H1 (visible, not hidden text). */
.hero h1 .kicker { display: block; margin-bottom: 1.25rem; font: 500 .8125rem/1.3 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .88); }

/* ---------- FAQ (native <details>, works without JavaScript) ---------- */
.faq { border-top: 1px solid var(--color-line); }
.faq-item { border-bottom: 1px solid var(--color-line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: var(--tap); padding: 1.25rem 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--color-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171310' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 1rem no-repeat; transition: transform var(--dur) var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item h3 { font: 400 clamp(1.125rem, 1rem + .5vw, 1.375rem)/1.3 var(--font-sans); letter-spacing: -0.01em; }
.faq-a { max-width: 46rem; padding: 0 3.75rem 1.5rem 0; color: #333A42; }
.cta-row:last-child { margin-top: 3rem; }

/* Focus on photos: the slate ring is for the light page; over the dark shade it is white
   (≥ 3:1 against the shaded photo, WCAG 1.4.11 / 2.4.7). Light surfaces inside the hero
   (menu tab, phone menu) keep the slate ring. */
.hero > .brand:focus-visible,
.hero .top-actions .pill:focus-visible,
.hero-cta .btn:focus-visible,
.panel .btn:focus-visible { outline-color: #fff; }

/* Skip-link target: receives focus programmatically, no ring needed on the text block itself. */
.hero-copy:focus, .page-copy:focus { outline: none; }
