/* Kenney Concrete. Direction: "The well-kept board" (tiles on 8px joints).
   No build step. Fonts load from Google Fonts for now; self-host them at launch. */
:root {
  --bg: #121314;
  --surface: #1e2022;
  --ink: #ffffff;
  --muted: #a6a6a3;
  --accent: #c8281e;      /* brick red, from the brick houses in his photos */
  --accent-ink: #ffffff;
  --field: #e5e6e6;       /* poured-concrete gray */
  --field-ink: #0f0f0f;
  --tone-1: #ffffff;
  --tone-2: #dcdcd8;
  --tone-3: #a9a9a5;
  --tone-4: #2b2b2a;
  --gap: 8px;
  --pad: 22px;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --mark: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;  /* the name only */
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.45rem, 1.2rem + 1.1vw, 2.4rem);
  --step-head: clamp(2.6rem, 1.5rem + 4.6vw, 5.75rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: 0; line-height: 0.92; margin: 0; text-transform: uppercase; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); line-height: 1.05; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.field :focus-visible { outline-color: #121314; }
.field-accent :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; color: #000; padding: 10px 14px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tiles */
.board { padding: var(--gap); display: grid; gap: var(--gap); }
.tile { background: var(--surface); padding: var(--pad); min-width: 0; }
.tile.photo { padding: 0; overflow: hidden; position: relative; }
.tile.photo img { width: 100%; height: 100%; object-fit: cover; }
.t1 { background: var(--tone-1); color: #0f0f0f; }
.t2 { background: var(--tone-2); color: #0f0f0f; }
.t3 { background: var(--tone-3); color: #0f0f0f; }
.t4 { background: var(--tone-4); color: #fff; }
.t-accent { background: var(--accent); color: var(--accent-ink); }

/* Buttons and link tiles: one shape, square, flat */
.btn, a.tile { text-decoration: none; transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink); font: 800 var(--step-body)/1 var(--display); letter-spacing: 0;
  border: 0; cursor: pointer; text-transform: uppercase; letter-spacing: .02em; font-size: 1.3rem;
}
.btn:hover { background: #fff; color: #121314; }
.btn:active, a.tile:active { transform: scale(.985); }
.btn-dark { background: #0f0f0f; color: #fff; }
.btn-dark:hover { background: #2b2b2a; }
a.tile:hover { background: var(--accent); color: var(--accent-ink); }
a.tile.t-accent:hover { background: #fff; color: #121314; }

/* 1. Hero board */
.hero { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 64px minmax(440px, calc(100svh - 360px)); }
.band { grid-column: 1 / -1; padding: 3.2cqw 0 2.8cqw; overflow: hidden; display: grid; place-items: center; container-type: inline-size; }
.band h1 { font-family: var(--mark); font-weight: 900; font-stretch: 125%; font-size: 7cqw; letter-spacing: -.01em; line-height: 1; text-transform: uppercase; white-space: nowrap; width: max-content; }
.navtile { grid-column: span 3; display: flex; align-items: flex-start; padding: 18px var(--pad); font: 800 1.3rem/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.rail-l { grid-column: 1 / span 2; grid-row: 3; display: grid; gap: var(--gap); grid-template-rows: 1fr auto; min-height: 0; }
.rail-l ul { list-style: none; margin: 0; padding: 0; font: 800 1.3rem/1.3 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.centre { grid-column: 3 / span 8; grid-row: 3; display: grid; gap: var(--gap); grid-template-rows: 1fr auto; min-height: 0; }
.centre .photo { min-height: 0; }
.statement { font: 800 var(--step-lead)/1.08 var(--display); letter-spacing: .005em; margin: 0; max-width: 30em; }
.rail-r { grid-column: 11 / span 2; grid-row: 3; display: grid; gap: var(--gap); grid-template-rows: repeat(4, 1fr) 1.5fr; min-height: 0; }
.rail-r .tile { font: 800 1.3rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; padding: 18px 20px; }
.rail-r .call { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.rail-r .call b { font-size: var(--step-lead); line-height: .95; }

/* Fields */
.field { background: var(--field); color: var(--field-ink); padding: clamp(56px, 9vw, 140px) clamp(22px, 3vw, 44px); }
.field-accent { background: var(--accent); color: var(--accent-ink); }
.dark { padding: clamp(56px, 9vw, 140px) 0; }

/* 2. What we build: tinted photo tiles */
.build h2 { margin-bottom: 40px; }
.tints { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tint { margin: 0; }
.tint .ph { aspect-ratio: 4 / 5; overflow: hidden; }
.tint img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tint:hover img { transform: scale(1.04); }
.tint figcaption { padding-top: 12px; }
.tint figcaption h3 { line-height: 1; }
.tint figcaption p { margin-top: 6px; max-width: 22em; }
.tint figcaption a { font-weight: 600; }
.dig { margin-top: 12px; background: #0f0f0f; color: #fff; padding: clamp(24px, 3vw, 44px); display: grid; gap: 16px 48px; }
.dig p { max-width: 34em; margin: 0; }
@media (min-width: 900px) { .dig { grid-template-columns: 5fr 6fr; align-items: end; } }

/* 3. Gallery: drag row */
.gal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 0 clamp(22px, 3vw, 44px) 32px 6vw; }
.gal-head p { margin: 0; color: var(--muted); }
.row { display: flex; gap: 12px; height: 68svh; min-height: 420px; max-height: 760px; overflow-x: auto; scroll-snap-type: x proximity; padding-left: 6vw; scrollbar-width: none; cursor: grab; }
.row::-webkit-scrollbar { display: none; }
.row.dragging { cursor: grabbing; scroll-snap-type: none; }
.row > * { flex: none; height: 100%; scroll-snap-align: start; scroll-margin-left: 6vw; }
.row img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.m-tall { aspect-ratio: 3 / 4; }
.m-wide { aspect-ratio: 16 / 10; }
.m-pair { aspect-ratio: 2 / 3.06; display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.m-pair > * { min-height: 0; }
.row .end { width: 6vw; }

/* Marquee (signature move) */
.marquee { background: var(--accent); color: var(--accent-ink); overflow: hidden; padding: 28px 0 22px; }
.marquee .track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font: 800 clamp(72px, 12.5vw, 200px)/0.95 var(--display); letter-spacing: 0; text-transform: uppercase; white-space: nowrap; padding-right: .5em; }
.marquee i { display: inline-block; width: .42em; height: .42em; background: currentColor; margin-right: .5em; vertical-align: .12em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* 4. How we build it: accordion of tinted panels */
.how-intro { display: grid; gap: 20px 48px; margin-bottom: 64px; }
.how-intro p { max-width: 32em; }
@media (min-width: 900px) { .how-intro { grid-template-columns: 5fr 1fr 5fr; } .how-intro p { grid-column: 3; } }
.stages { display: flex; height: 520px; }
.stage { flex: 1 1 0; min-width: 76px; position: relative; overflow: hidden; cursor: pointer; transition: flex-grow .45s var(--ease); }
.stage:has(input:checked) { flex-grow: 4.2; cursor: default; }
.stage:has(input:focus-visible) { outline: 3px solid #fff; outline-offset: -6px; }
.stage input { position: absolute; opacity: 0; pointer-events: none; }
.s1 { background: #0f0f0f; color: #fff; }
.s2 { background: #3b3b3a; color: #fff; }
.s3 { background: var(--tone-3); color: #0f0f0f; }
.s4 { background: var(--tone-2); color: #0f0f0f; }
.stage .name { position: absolute; left: 24px; bottom: 24px; font: 800 var(--step-lead)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.stage:has(input:checked) .name { writing-mode: horizontal-tb; transform: none; top: 24px; bottom: auto; font-size: var(--step-head); }
.stage .body { display: none; }
.stage:has(input:checked) .body { display: grid; position: absolute; inset: 0; grid-template-columns: 1fr 1fr; }
.stage .body p { align-self: end; padding: 24px; max-width: 22em; margin: 0; font-size: var(--step-body); font-weight: 600; line-height: 1.45; }
.stage .body img { width: 100%; height: 100%; object-fit: cover; min-height: 0; padding-top: 110px; }
.stage .body.solo { grid-template-columns: 1fr; }

/* 5. Facts: giant word, filled bars */
.facts { display: grid; gap: var(--gap); padding: var(--gap); }
.facts .photo { min-height: 320px; }
.facts-col { container-type: inline-size; padding: clamp(40px, 6vw, 96px) clamp(24px, 4vw, 64px); background: var(--surface); }
.facts-col h2 { font-size: 38cqw; line-height: 0.8; text-transform: uppercase; letter-spacing: 0; margin: 0 0 20px -0.03em; white-space: nowrap; }
.bars { display: grid; gap: 6px; }
.bars details { background: #2b2b2a; }
.bars summary { list-style: none; min-height: 56px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font: 600 var(--step-body)/1.25 var(--text); transition: background-color .18s var(--ease), color .18s var(--ease); }
.bars summary::-webkit-details-marker { display: none; }
.bars summary::after { content: "+"; font-size: 1.5em; line-height: 1; transition: transform .25s var(--ease); }
.bars details[open] summary::after { transform: rotate(45deg); }
.bars summary:hover { background: var(--accent); color: var(--accent-ink); }
.bars .a { padding: 6px 18px 22px; max-width: 36em; }
@media (min-width: 900px) { .facts { grid-template-columns: 5fr 7fr; } .facts .photo { position: sticky; top: var(--gap); height: calc(100svh - 2 * var(--gap)); } }

/* 6. Quote: photo strip, three-cell bar */
.quote { min-height: 80svh; padding-top: 48px; overflow: hidden; }
.strip { display: flex; gap: 8px; width: max-content; margin-inline: calc(-1 * clamp(22px, 3vw, 44px)); animation: slide 70s linear infinite; }
.strip img { height: 150px; width: auto; flex: none; }
.quote h2 { margin: 72px 0 20px; }
.quote .say { max-width: 34em; margin-bottom: 40px; }
.cells { display: grid; gap: 8px; }
.cell { background: #a31f17; min-height: 96px; display: flex; align-items: center; padding: 0 20px; gap: 12px; transition: background-color .18s var(--ease); }
.cell:focus-within { background: #86170f; }
.cell select, .cell input { font: 600 var(--step-body)/1.2 var(--text); color: #fff; background: transparent; border: 0; border-bottom: 2px solid #fff; border-radius: 0; padding: 10px 8px; min-height: 48px; width: 100%; min-width: 0; }
.cell input::placeholder { color: #f6d3cf; opacity: 1; }
.cell option { color: #121314; }
.cell .x { font: 800 var(--step-body)/1 var(--display); }
.cell.go { padding: 0; background: none; }
.cell.go .btn { width: 100%; height: 100%; min-height: 96px; font-size: var(--step-lead); letter-spacing: 0; }
@media (min-width: 900px) { .cells { grid-template-columns: repeat(3, 1fr); } }
.msg { margin-top: 8px; background: #0f0f0f; color: #fff; padding: 24px; display: grid; gap: 14px; }
.msg output { font-size: var(--step-body); font-weight: 600; line-height: 1.45; display: block; max-width: 34em; }
.msg small, .fine { font-size: var(--step-small); }
.others { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 28px; font: 600 var(--step-body)/1.3 var(--text); }

/* 7. Footer: the mark, built large */
.foot { padding: clamp(56px, 8vw, 120px) clamp(22px, 3vw, 44px) 120px; }
.mark { display: flex; gap: 20px; align-items: flex-end; height: 34svh; min-height: 200px; max-height: 360px; margin: 0; }
.mark .word { display: flex; gap: 4px; align-items: flex-end; height: 100%; flex: 6 1 0; }
.mark .word + .word { flex-grow: 8; }
.mark b { flex: 1 1 0; display: flex; align-items: flex-end; justify-content: center; color: var(--bg); font: 900 clamp(32px, 4.6vw, 92px)/0.8 var(--mark); font-stretch: 125%; padding: 12px 6px .36em; height: var(--h, 100%); background: var(--c, #fff); }
.foot-cta { display: grid; gap: 20px 48px; margin-top: 8px; background: var(--surface); padding: clamp(24px, 3vw, 44px); align-items: center; }
.foot-cta p { font-size: var(--step-body); font-weight: 600; max-width: 34em; margin: 0; }
.foot-cta .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-light { background: #fff; color: #121314; }
.btn-light:hover { background: var(--tone-2); }
.foot-cols { display: grid; gap: 36px 28px; margin-top: 56px; grid-template-columns: 1fr 1fr; }
.foot-cols h2 { font-size: 1.3rem; letter-spacing: .02em; line-height: 1.1; margin-bottom: 14px; color: var(--muted); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-cols li { overflow-wrap: anywhere; min-width: 0; }
.foot-cols > div { min-width: 0; }
.foot-cols a { text-underline-offset: 3px; }
.foot-cols a:hover, .foot-base a:hover { color: #ff8a80; }
.foot-base { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; margin-top: 56px; padding: 20px 24px; background: var(--surface); font-size: var(--step-small); color: var(--muted); }
.foot-base p { margin: 0; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: repeat(4, 1fr); } .foot-cta { grid-template-columns: 1fr auto; } .foot { padding-bottom: 56px; } }

/* Phone call bar */
.call-bar { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: var(--gap) var(--gap) calc(var(--gap) + env(safe-area-inset-bottom)); background: var(--bg); }
.call-bar .btn { min-height: 52px; padding: 0 8px; }
.call-bar .btn + .btn { background: #fff; color: #121314; }
@media (min-width: 760px) { .call-bar { display: none; } }

/* Answer pages */
.top { grid-template-columns: repeat(12, 1fr); }
.top .name { grid-column: span 6; font: 900 var(--step-lead)/1 var(--mark); font-stretch: 125%; letter-spacing: -.01em; text-transform: uppercase; display: flex; align-items: center; min-height: 64px; padding-block: 0; }
.top .navtile { grid-column: span 2; align-items: center; padding-block: 0; }
.answer-wrap { display: grid; gap: var(--gap); padding: 0 var(--gap) var(--gap); }
.answer { background: var(--field); color: #121314; padding: clamp(36px, 6vw, 96px) clamp(24px, 5vw, 80px); }
.answer > * { max-width: 44rem; }
.answer h1 { font-size: var(--step-head); margin-bottom: 28px; max-width: none; }
.answer h2 { font-size: var(--step-lead); line-height: 1; margin: 1.8em 0 .45em; }
.answer .short { font-size: var(--step-body); font-weight: 600; line-height: 1.5; background: #121314; color: #fff; padding: 24px 26px; margin-bottom: 0; }
.need { background: #ffe58a; padding: 2px 8px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.9; }
.cta { background: #0f0f0f; color: #fff; padding: 28px; margin-top: 48px; display: grid; gap: 18px; }
.cta h2 { margin: 0; font-size: var(--step-head); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.side.photo { min-height: 280px; }
@media (min-width: 1000px) { .answer-wrap { grid-template-columns: 8fr 4fr; align-items: start; } .side.photo { position: sticky; top: var(--gap); height: calc(100svh - 2 * var(--gap)); } }

/* Entrances: content is visible without script */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 75ms); }
.js .rv.in { opacity: 1; transform: none; }

/* Phone board */
@media (max-width: 899px) {
  .board { gap: 6px; padding: 6px; }
  .hero { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .band { padding: 22px 20px 18px; place-items: start; }
  .band h1 { font-size: 13.4cqw; line-height: 0.95; white-space: normal; width: auto; }
  .band h1 span { display: block; }
  .navtile { grid-column: span 1; min-height: 56px; padding: 18px 20px; }
  .centre { grid-column: 1 / -1; grid-row: auto; grid-template-rows: auto auto; gap: 6px; }
  .centre .photo { aspect-ratio: 4 / 3; }
  .rail-l, .rail-r { display: contents; }
  .rail-l .photo { aspect-ratio: 3 / 4; }
  .rail-r .call { grid-column: 1 / -1; min-height: 110px; }
  .tints { grid-template-columns: 1fr 1fr; gap: 28px 8px; }
  .row { height: 62svh; gap: 8px; padding-left: 20px; }
  .row > * { scroll-margin-left: 20px; }
  .gal-head { padding-left: 20px; }
  .m-tall { aspect-ratio: auto; width: 72vw; }
  .m-pair { aspect-ratio: auto; width: 64vw; gap: 8px; }
  .m-wide { aspect-ratio: auto; width: 88vw; height: 70%; align-self: center; }
  .stages { flex-direction: column; height: auto; }
  .stage { min-height: 64px; flex: none; }
  .stage .name { writing-mode: horizontal-tb; transform: none; left: 18px; top: 20px; bottom: auto; }
  .stage:has(input:checked) .name { font-size: var(--step-lead); top: 20px; }
  .stage:has(input:checked) .body { position: static; grid-template-columns: 1fr; padding-top: 56px; }
  .stage .body p { padding: 8px 18px 22px; }
  .stage .body img { padding-top: 0; aspect-ratio: 4 / 3; }
  .strip img { height: 110px; }
  .quote h2 { margin-top: 48px; }
  .cell { min-height: 64px; }
  .cell.go .btn { min-height: 64px; }
  .mark { flex-direction: column; align-items: stretch; height: auto; max-height: none; gap: 4px; }
  .mark .word { height: 11svh; min-height: 84px; flex: none; }
  .mark b { font-size: 6.6vw; padding-inline: 2px; min-width: 0; }
  .top { grid-template-columns: 1fr 1fr; }
  .top .name { grid-column: 1 / -1; }
  .top .navtile { grid-column: span 1; }
  .top .navtile.t-accent { grid-column: 1 / -1; }
  .answer h1 { font-size: 2.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee .track, .strip { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .stage, .tint img, .btn, a.tile { transition: none; }
}
