/* Brilholm stylesheet.
   Register: gallery-quiet, monochrome. Solid white header, full-screen darkened photo hero,
   centered section intros (small uppercase label, serif display line, outlined square button),
   edge-to-edge photo tiles with the title set on the image, near-black bands and a black footer.
   Serif for display, navigation and headings; sans for body copy. System fonts only.
   Light theme only (GP white containers under dark text tokens broke dark mode before). */

:root {
  --bg: #ffffff;
  --bg-2: #f6f6f6;
  --bg-3: #ececec;
  --ink: #1a1a1a;            /* near-black: bands, buttons */
  --line: #dcdcdc;
  --text: #1a1a1a;
  --muted: #5e5e5e;
  --accent: #1a1a1a;          /* monochrome: the accent is ink */
  --accent-ink: #ffffff;
  --on-photo: #ffffff;
  --focus: #1a1a1a;
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  --tile-gap: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 var(--sans);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: #b5b5b5; transition: text-decoration-color .2s, color .2s, opacity .2s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 40; background: var(--bg); padding: 8px 12px; }

h1, h2, h3, summary, .logo, .nav, .stat b, .fact b, .card .t, .ref figcaption b, .site-footer h2, .site-footer .brand, .related li a {
  font-family: var(--serif);
}
.label, .meta {
  font: 600 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* Header: solid white bar, serif wordmark, serif menu, one outlined button */
.site-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); background: #fff; color: var(--text); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 30px; height: 100%; max-width: none; }
.logo { font-size: 22px; letter-spacing: .28em; text-transform: uppercase; text-decoration: none; margin-right: 24px; color: var(--text); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 16px; letter-spacing: .01em; flex: 1; }
.nav a, .nav span, .nav button { color: var(--text); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav button:hover { opacity: .6; }
.nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--text); }
.nav > .btn { margin-left: auto; }
.has-sub { position: relative; }
.has-sub > button { background: none; border: 0; font: inherit; letter-spacing: inherit; padding: 0; cursor: pointer; }
.sub { display: none; position: absolute; top: calc(100% + 21px); left: -24px; min-width: 260px; list-style: none; margin: 0; padding: 12px 0; background: #fff; border: 1px solid var(--line); border-top: 0; }
.sub a, .sub span { display: block; padding: 9px 24px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--text); color: var(--text); padding: 8px 14px; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; font-size: 18px; }
  .nav.open { display: flex; }
  .nav > a, .nav > span, .has-sub > button { display: block; padding: 13px 0; text-align: left; width: 100%; border-bottom: 1px solid var(--bg-3); }
  .sub { display: block; position: static; border: 0; padding: 0 0 8px 16px; min-width: 0; }
  .sub a, .sub span { padding: 8px 0; font-size: 16px; }
  .has-sub::after { display: none; }
  .nav > .btn { display: flex; padding: 0 18px; min-height: 48px; margin: 16px 0 0; justify-content: center; border-bottom: 1px solid var(--text); }
}

/* Buttons: square, outlined, small uppercase */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 26px; background: transparent; color: var(--text); font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border: 1px solid var(--text); transition: background .25s, color .25s, transform .2s cubic-bezier(.16,1,.3,1); }
.btn:hover { background: var(--text); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-light, .btn-line { color: #fff; border: 2px solid #fff; background: transparent; }
.btn-light:hover, .btn-line:hover { background: #fff; color: var(--text); }
.nav .btn { min-height: 38px; padding: 0 18px; }
.nav .btn[aria-current="page"] { text-decoration: none; background: var(--text); color: #fff; }

/* Heroes: full-bleed photography under a solid header, evenly darkened */
.hero, .page-hero { position: relative; color: var(--on-photo); overflow: hidden; background: #111; }
.hero { min-height: calc(100dvh - var(--header-h)); display: grid; place-items: center; text-align: center; }
.page-hero { min-height: clamp(380px, 62dvh, 680px); display: grid; place-items: center; text-align: center; }
.hero > img, .page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .46); }
.hero .wrap, .page-hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 56px; padding-bottom: 56px; }
.hero .eyebrow, .page-hero .eyebrow { font: 600 13px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; margin: 0 0 22px; color: rgba(255,255,255,.9); }
.hero h1 { font-weight: 400; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1.08; letter-spacing: .01em; margin: 0 auto 22px; max-width: 20ch; text-wrap: balance; }
.hero .lede { font-size: 1.1rem; margin: 0 auto 34px; max-width: 48ch; color: rgba(255,255,255,.9); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.page-hero h1 { font-weight: 400; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; letter-spacing: .01em; margin: 0 auto 18px; max-width: 24ch; text-wrap: balance; }
.page-hero .lede { font-size: 1.08rem; margin: 0 auto; max-width: 56ch; color: rgba(255,255,255,.9); }

.crumbs { font: 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }

/* Sections */
section { padding: clamp(56px, 8vw, 112px) 0; }
section.tint { background: var(--bg-2); }
h2 { font-weight: 400; font-size: clamp(1.65rem, 2.8vw, 2.4rem); line-height: 1.2; letter-spacing: .01em; margin: 0 0 20px; max-width: 30ch; text-wrap: balance; }
h3 { font-weight: 400; font-size: 1.35rem; line-height: 1.3; margin: 32px 0 8px; }
.prose { max-width: 70ch; }
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: 70ch; }
.wrap.prose > .table-wrap, .wrap.prose > .related { max-width: 960px; }
p.answer { font-size: 1.1rem; }
.muted { color: var(--muted); }

/* Centered intro: label, serif line, answer, outlined button */
.statement, .intro { text-align: center; }
.statement h2, .intro h2 { margin-left: auto; margin-right: auto; }
.statement p.answer { font: 400 clamp(1.15rem, 1.8vw, 1.4rem)/1.65 var(--serif); max-width: 60ch; margin: 0 auto; }
.intro .label { margin: 0 auto 14px; }
.intro p { max-width: 62ch; margin: 0 auto 26px; color: var(--muted); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

figure { margin: 0; }
figcaption { font: 13px/1.45 var(--sans); color: var(--muted); margin-top: 10px; letter-spacing: .02em; }

/* Photo tiles: title set on the image, top left. Groups of three form a mosaic
   (one tall tile beside two stacked), alternating sides; other counts fall back to an even grid. */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--tile-gap); margin-top: 36px; }
.card { position: relative; display: block; overflow: hidden; background: #111; color: #fff; text-decoration: none; aspect-ratio: 4 / 3; }
.card .ph { position: absolute; inset: 0; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.16,1,.3,1), opacity .4s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.18) 42%, rgba(0,0,0,0) 70%); }
.card .t, .card .meta { position: relative; z-index: 2; display: block; padding: 0 clamp(18px, 2.4vw, 32px); max-width: 30ch; }
.card .t { padding-top: clamp(18px, 2.4vw, 30px); font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.2; color: #fff; }
.card .meta { margin-top: 8px; color: rgba(255,255,255,.9); }
.card:hover img { transform: scale(1.035); opacity: .92; }
.cards > .card:only-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
@media (min-width: 641px) {
  .cards:has(> .card:nth-child(3n):last-child) { grid-auto-rows: clamp(220px, 26vw, 380px); grid-auto-flow: dense; }
  .cards:has(> .card:nth-child(3n):last-child) > .card { aspect-ratio: auto; }
  .cards:has(> .card:nth-child(3n):last-child) > .card:nth-child(3n+1) { grid-row: span 2; }
  .cards:has(> .card:nth-child(3n):last-child) > .card:nth-child(6n+4) { grid-column: 2; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .cards > .card:only-child { aspect-ratio: 4 / 3; }
}

/* Near-black band over photography */
.band { position: relative; min-height: clamp(460px, 70dvh, 760px); display: grid; align-items: center; text-align: center; color: #fff; padding: 0; overflow: hidden; background: #111; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .55); }
.band .wrap { position: relative; z-index: 2; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.band h2 { color: #fff; margin-left: auto; margin-right: auto; }
.band p { max-width: 58ch; margin-left: auto; margin-right: auto; color: rgba(255,255,255,.92); }
.band p.answer { font: 400 clamp(1.1rem, 1.6vw, 1.3rem)/1.65 var(--serif); }
.band a:not(.btn) { color: #fff; text-decoration-color: rgba(255,255,255,.6); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; text-align: center; margin-top: 40px; }
.stat b { display: block; font-weight: 400; font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1.05; }
.stat span { display: block; margin-top: 12px; }
section.tint:has(.stats) h2 { margin-left: auto; margin-right: auto; text-align: center; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--tile-gap); margin-top: 36px; padding: 0; }
.steps li { list-style: none; }
.steps img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.steps h3 { margin-top: 18px; font-size: 1.25rem; padding-right: 12px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; padding-right: 12px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Masonry gallery */
.gallery { columns: 3 280px; column-gap: var(--tile-gap); margin-top: 32px; }
.gallery figure { break-inside: avoid; margin-bottom: 28px; }
.gallery.two { columns: 2 220px; }

/* Fact tiles */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; margin-top: 32px; background: var(--line); border: 1px solid var(--line); }
.fact { background: var(--bg); padding: 26px; }
.fact b { display: block; font-weight: 400; font-size: 1.65rem; line-height: 1.15; margin-bottom: 8px; }
.fact span { color: var(--muted); font: 15px/1.5 var(--sans); }
section.tint .fact { background: #fff; }

/* Table (max 3 columns) */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { border-collapse: collapse; width: 100%; font: 15px/1.5 var(--sans); }
th, td { text-align: left; padding: 13px 16px; vertical-align: top; }
thead th { border-bottom: 1px solid var(--text); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
tbody tr:nth-child(odd) { background: var(--bg-2); }
section.tint tbody tr:nth-child(odd) { background: #fff; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 20px 0; max-width: 74ch; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 1.2rem; }
details p { margin: 10px 0 0; color: var(--muted); }

/* CTA band: near-black, centered */
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band .wrap { display: grid; justify-items: center; gap: 8px; }
.cta-band h2 { color: #fff; margin-left: auto; margin-right: auto; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0 auto 22px; max-width: 58ch; }
.cta-band .btn { color: #fff; border: 2px solid #fff; }
.cta-band .btn:hover { background: #fff; color: var(--text); }

/* Journal card */
.journal { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.journal img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 767px) { .journal { grid-template-columns: 1fr; } }

/* Related links */
.related { margin-top: 40px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.related li a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.15rem; }
.related li a:hover { opacity: .6; }

.byline { font: 13px/1.5 var(--sans); letter-spacing: .06em; color: var(--muted); margin: 0 0 28px; }

/* Placeholder marker: must be cleared before launch */
mark.tbc { background: #ffe066; color: #1a1a1a; padding: 0 4px; font: 600 .78em var(--sans); letter-spacing: 0; }

/* Form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; max-width: 760px; margin-top: 28px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.help { font: 13px var(--sans); color: var(--muted); }
input, select, textarea { font: 16px var(--sans); color: var(--text); background: #fff; border: 1px solid var(--line); border-bottom-color: var(--text); padding: 13px 14px; width: 100%; border-radius: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; }
textarea { min-height: 150px; resize: vertical; }
.error { color: #a3260a; font: 14px var(--sans); min-height: 1em; }
.form-status { grid-column: 1 / -1; font-family: var(--sans); font-weight: 600; }
.form .btn { background: var(--text); color: #fff; }
.form .btn:hover { background: transparent; color: var(--text); }
@media (max-width: 767px) { .form { grid-template-columns: 1fr; } }

video { max-height: 640px; width: auto; background: var(--bg-2); }

/* Footer: black, serif column heads, underlined light links */
.site-footer { background: #000; color: #efefef; padding: 72px 0 36px; font: 15px/1.6 var(--sans); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h2 { font-weight: 400; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 18px; color: #fff; }
.site-footer .brand { font-size: 22px; letter-spacing: .28em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #efefef; text-decoration: underline; text-decoration-color: rgba(239,239,239,.45); }
.site-footer a:hover { opacity: .7; text-decoration-color: #efefef; }
.site-footer span { color: #fff; }
.site-footer p { color: #c9c9c9; margin: 0; max-width: 40ch; }
.site-footer .legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid #2a2a2a; font-size: 13px; max-width: none; text-align: center; color: #a8a8a8; }
@media (max-width: 767px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* Motion: only when JS is on and the user allows it */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero .wrap > * { animation: rise 1s cubic-bezier(.16,1,.3,1) both; }
  .hero .wrap > :nth-child(2) { animation-delay: .1s; }
  .hero .wrap > :nth-child(3) { animation-delay: .2s; }
  .hero .wrap > :nth-child(4) { animation-delay: .3s; }
  .hero > img { animation: settle 2.4s cubic-bezier(.16,1,.3,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
}

/* Project reference captions: serif name, uppercase meta */
.ref figcaption { margin-top: 12px; }
.ref figcaption b { display: block; font-weight: 400; font-size: 1.15rem; line-height: 1.3; color: var(--text); }
.ref figcaption span { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.split > figure img { width: 100%; max-height: 78vh; object-fit: cover; }
.site-footer .nap { margin-top: 14px; font-size: 14px; line-height: 1.6; }

/* Mobile refinements (2026-10-15). Goal: the H1 and the first direct-answer paragraph
   appear on the first phone screen; tap targets 44px or more; tables fit 343px. Desktop unchanged. */
summary { padding: 6px 0; min-height: 44px; }
@media (max-width: 640px) {
  .page-hero { min-height: 0; }
  .page-hero .wrap { padding-top: 40px; padding-bottom: 36px; }
  .page-hero h1 { font-size: 1.75rem; margin-bottom: 12px; }
  .page-hero .lede { font-size: 1rem; line-height: 1.55; }
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 48px; padding-bottom: 44px; }
  .hero .eyebrow { margin-bottom: 16px; }
  .hero h1 { font-size: 2.05rem; margin-bottom: 16px; }
  .hero .lede { font-size: 1rem; margin-bottom: 24px; }
  .hero .ctas .btn { min-width: 220px; }
  section { padding: 44px 0; }
  .crumbs { padding-top: 16px; }
  table { font-size: 14px; }
  th, td { padding: 10px 8px; }
  thead th { font-size: 11px; letter-spacing: .08em; }
  .byline, figcaption { font-size: 14px; }
}
