/* Round 2: the build page (B hero, D tabs, A founder), the arrange panel and the compare page.
   Loads after options.css. Every colour is a token variable. */

/* Header: the utility bar is back (Resources, Trade Partners), and the bar runs the full window
   width so the Let's talk button holds the top right corner at every window size */
.site-header .wrap { max-width: none; }
.header-cta { margin-left: auto; }
.utility { background: var(--slate); color: var(--bone); }
.site-header .utility .wrap { height: 34px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.utility p, .utility a { max-width: none; font-family: var(--sans); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--bone); }
.utility ul { display: flex; gap: var(--space-6); }
.utility a { display: inline-flex; align-items: center; min-height: 34px; }
.utility a:hover { color: var(--bronze-light); }
@media (max-width: 1099px) { .utility { display: none; } }
@media (min-width: 1100px) { .hero-b { min-height: min(calc(100svh - var(--hdr) - 34px), 1020px); } }

/* Photo credit under every photograph of a job built under another company. Four wordings under test. */
.credit { max-width: none; margin-top: var(--space-3); font-family: var(--sans); font-size: 12.5px; font-weight: 400; line-height: 1.45; color: var(--slate-soft); }
.credit span { display: none; }
[data-credit="0"] .credit .c0, [data-credit="1"] .credit .c1, [data-credit="2"] .credit .c2, [data-credit="3"] .credit .c3 { display: block; }
.credit .c-caps { font-size: 10.5px; font-weight: 500; letter-spacing: .12em; line-height: 1.55; text-transform: uppercase; }
.credit b { display: block; font-weight: 600; color: var(--slate); }
.hero-b figcaption.credit { margin: 0; padding: 8px 12px; }
.tab-panel figure img { width: 100%; }

/* Founder layouts */
.founder--flip { grid-template-columns: 7fr 4fr; }
.founder--flip figure { justify-self: end; }
[data-ground="slate"] .founder figcaption { color: var(--bone-a60); }
.founder-wide h2 { font-size: clamp(34px, 4.4vw, 64px); font-weight: 300; line-height: 1.04; letter-spacing: -0.02em; max-width: 20ch; margin-bottom: var(--space-8); }
.fw-grid { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-8); align-items: end; }
.fw-grid figcaption { margin-top: var(--space-3); font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-soft); }
.fw-grid .founder-copy p { font-size: 19px; line-height: 1.5; }
.sec--flush { padding-block: 0; }
.founder-tall { display: grid; grid-template-columns: 5fr 7fr; }
.founder-tall figure { background: var(--bone-sunk); }
.founder-tall figure img { width: 100%; height: 100%; max-height: 760px; object-fit: cover; object-position: top center; }
.founder-tall .founder-copy { align-self: center; padding: clamp(48px, 6vw, 96px) var(--gutter) clamp(48px, 6vw, 96px) clamp(32px, 6vw, 96px); }
.founder-copy .sig { margin-top: var(--space-5); font-style: italic; font-size: 19px; }
.founder-copy .sig span { display: block; font-style: normal; font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-soft); margin-top: 2px; }
@media (max-width: 899px) { .founder--flip, .fw-grid, .founder-tall { grid-template-columns: 1fr; } .founder--flip figure { justify-self: start; order: -1; } .fw-grid figure { max-width: 280px; } .founder-tall figure img { max-height: 420px; } }

.tp-hero h1 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.04; }
.credit-pick { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: var(--space-4); }
.credit-pick select { display: block; width: 100%; min-height: 44px; margin-top: 6px; font: 13px var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); background: var(--bone); border: 1px solid var(--bone-line); border-radius: 0; padding: 0 8px; }
.cmp-row--4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cmp-plain img { width: 100%; }
.cmp-card.is-picked .cmp-plain { outline: 2px solid var(--bronze); outline-offset: 6px; }

/* Extra presentations for the blocks under the first three */
.chapter-rows { border-top: 1px solid var(--bone-line); }
.chapter-rows a { display: grid; grid-template-columns: 140px 1fr 1.3fr; gap: var(--space-4) var(--space-7); align-items: baseline; padding: var(--space-6) 0; border-bottom: 1px solid var(--bone-line); text-decoration: none; }
.chapter-rows strong { font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); font-variation-settings: "opsz" 72; line-height: 1.1; }
.chapter-rows .ci-line { color: var(--slate-soft); }
.chapter-rows a:hover strong { color: var(--bronze-deep); }
@media (max-width: 899px) { .chapter-rows a { grid-template-columns: 1fr; } }

.doc-rows { margin-top: var(--space-7); border-top: 1px solid var(--bone-line); }
.doc-rows li { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-7); align-items: center; padding: var(--space-5) 0; border-bottom: 1px solid var(--bone-line); }
.doc-rows .doc-sheet { margin: 0; }
.doc-rows .label { margin-bottom: var(--space-2); }
.doc-rows h3 { margin-bottom: var(--space-2); }
.doc-rows li > div > p:last-child { color: var(--slate-soft); font-size: 16px; }
@media (max-width: 599px) { .doc-rows li { grid-template-columns: 1fr; gap: var(--space-4); } }

.faq-open { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7) var(--space-8); margin-top: var(--space-7); }
.faq-open li { border-top: 1px solid var(--bone-line); padding-top: var(--space-4); }
.faq-open h3 { font-size: 21px; margin-bottom: var(--space-3); }
.faq-open p { font-size: 16px; line-height: 1.55; color: var(--slate-soft); }
@media (max-width: 899px) { .faq-open { grid-template-columns: 1fr; } }

.svc { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--bone-line); margin-top: var(--space-6); }
.svc a { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8); height: 100%; padding: var(--space-5) var(--space-5) var(--space-5) 0; border-bottom: 1px solid var(--bone-line); text-decoration: none; font-size: clamp(21px, 1.9vw, 27px); font-variation-settings: "opsz" 72; line-height: 1.15; }
.svc li + li a { padding-left: var(--space-5); border-left: 1px solid var(--bone-line); }
.svc .num { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--bronze-deep); }
.svc a:hover { color: var(--bronze-deep); }
[data-ground="slate"] .svc, [data-ground="slate"] .svc a, [data-ground="slate"] .svc li + li a { border-color: var(--slate-line); }
[data-ground="slate"] .svc .num, [data-ground="slate"] .svc a:hover { color: var(--bronze-light); }
@media (max-width: 899px) { .svc { grid-template-columns: 1fr 1fr; } .svc li + li a { padding-left: 0; border-left: 0; } .svc a { gap: var(--space-5); } }

.cta-short { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-6) var(--space-8); }
.cta-short h2 { margin-bottom: var(--space-4); }
.cta-short .side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.cta-short .label a { color: var(--bone); }

.blk[hidden] { display: none; }

/* Arrange panel: comp chrome, not part of the design */
.comp-switch button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-left: 1px solid var(--slate-line); background: var(--bronze-deep); color: var(--bone); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.comp-switch button:hover { background: var(--bronze); }
.arrange { position: fixed; top: 0; right: 0; bottom: 0; z-index: 250; width: min(400px, 100vw); background: var(--bone-raised); border-left: 1px solid var(--slate); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s linear .28s; font-family: var(--sans); }
.arrange.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.arrange header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--bone-line); }
.arrange h2 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.arrange .x { min-width: 44px; min-height: 44px; padding: 0 12px; background: none; border: 1px solid var(--bone-line); cursor: pointer; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.arrange .body { flex: 1; overflow-y: auto; padding: var(--space-4) var(--space-5); }
.arrange .hint { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--slate-soft); margin-bottom: var(--space-4); }
.arrange .fixed { margin-bottom: var(--space-4); }
.arrange .fixed li { font-size: 13px; padding: 8px 0; color: var(--slate-soft); border-bottom: 1px solid var(--bone-line); }
.arr-list li { background: var(--bone); border: 1px solid var(--bone-line); padding: 10px 10px 10px 6px; margin-bottom: 8px; display: grid; grid-template-columns: 28px 1fr auto; gap: 6px 8px; align-items: center; }
.arr-list li.is-off .name, .arr-list li.is-off select { opacity: .55; }
.arr-list li.is-drag { opacity: .35; }
.arr-list li.over-top { box-shadow: 0 -3px 0 var(--bronze); }
.arr-list li.over-bot { box-shadow: 0 3px 0 var(--bronze); }
.arr-list .grip { cursor: grab; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--slate-soft); }
.arr-list .grip svg { width: 14px; height: 20px; fill: currentColor; }
.arr-list .name { font-size: 14px; font-weight: 600; color: var(--slate); display: flex; align-items: center; min-height: 44px; cursor: pointer; }
.arr-list .name input { margin: 0 10px 0 0; width: 18px; height: 18px; accent-color: var(--slate); }
.arr-list .mv { display: flex; gap: 4px; }
.arr-list .mv button { width: 36px; height: 36px; background: var(--bone-raised); border: 1px solid var(--bone-line); cursor: pointer; color: var(--slate); font-size: 14px; }
.arr-list .mv button:hover { border-color: var(--slate); }
.arr-list select { grid-column: 2 / -1; min-height: 40px; font: 13px var(--sans); color: var(--slate); background: var(--bone-raised); border: 1px solid var(--bone-line); border-radius: 0; padding: 0 8px; width: 100%; }
.arrange footer { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--bone-line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.arrange footer .btn { min-height: 44px; padding: 0 10px; font-size: 11px; letter-spacing: .12em; }
.arrange footer .btn--line { background: transparent; color: var(--slate); }
.arrange footer .wide { grid-column: 1 / -1; }
.arrange .status { grid-column: 1 / -1; font-size: 12px; color: var(--green-deep); min-height: 18px; margin: 0; }

/* Compare page */
.cmp-page { padding-block: var(--space-8) var(--space-10); }
.cmp-page h1 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: var(--space-4); }
.cmp-block { margin-top: var(--space-9); }
.cmp-block > h2 { font-size: 30px; margin-bottom: var(--space-5); padding-bottom: var(--space-3); border-bottom: 1px solid var(--slate); }
.cmp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: var(--space-6); align-items: start; }
.cmp-card .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); min-height: 44px; }
.cmp-card .bar .label { color: var(--slate); font-weight: 600; }
.cmp-card .use { min-height: 44px; padding: 0 14px; font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; background: transparent; color: var(--slate); border: 1px solid var(--slate); cursor: pointer; white-space: nowrap; }
.cmp-card.is-picked .use { background: var(--slate); color: var(--bone); }
.cmp-card.is-picked .cmp-frame { outline: 2px solid var(--bronze); outline-offset: 3px; }
.cmp-frame { border: 1px solid var(--bone-line); overflow: hidden; background: var(--bone); }
.cmp-scale { width: 1280px; zoom: .35; pointer-events: none; }
.cmp-scale .rail > .eyebrow { position: static; }

.comp-switch { overflow-x: auto; }

/* Photograph carousels: hero (four) and each building type (three). Crossfade, dots, pause. */
.opt-build .hero-b { grid-template-columns: 1fr 1fr; }
.hero-b-media { position: relative; background: var(--bone-sunk); min-height: 420px; }
.car { position: relative; }
.car-track { display: grid; }
.car-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s linear .7s; }
.car-slide.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.car-slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bone-sunk); }
.car-ui { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; pointer-events: none; background: linear-gradient(to top, rgba(31, 35, 40, .5), rgba(31, 35, 40, 0) 24%); }
.car-ui button { pointer-events: auto; width: 28px; height: 28px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.car-ui button:focus-visible { outline: 2px solid var(--bone); outline-offset: -2px; }
.car-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--bone); transition: background-color .2s var(--ease); }
.car-dot[aria-current="true"]::before { background: var(--bone); }
.car-pause { margin-right: 6px; }
.car-pause[hidden] { display: none; }
.car-pause svg { width: 11px; height: 11px; fill: var(--bone); }
.car-pause .i-play, .car-pause[aria-pressed="true"] .i-pause { display: none; }
.car-pause[aria-pressed="true"] .i-play { display: block; }
.car--hero, .car--hero .car-track { position: absolute; inset: 0; }
.car--hero .car-slide { position: absolute; inset: 0; }
.car--hero .car-slide figure { position: absolute; inset: 0; min-height: 0; aspect-ratio: auto; background: none; }
.car--hero .car-slide img { aspect-ratio: auto; }
.car--hero .car-ui { top: auto; bottom: 0; aspect-ratio: auto; height: 96px; justify-content: flex-end; padding: 0 12px 12px; }
@media (max-width: 899px) { .opt-build .hero-b { grid-template-columns: 1fr; } .hero-b-media { aspect-ratio: 4 / 3; min-height: 0; } .car--hero .car-ui { height: 72px; } .hero-b .car--hero figcaption.credit { bottom: 48px; } }

/* Hero, round 6: the photograph is wider and about a fifth shorter, and the whole hero fits one laptop screen */
@media (min-width: 900px) {
  .opt-build .hero-b { grid-template-columns: 5fr 7fr; min-height: min(calc(100svh - var(--hdr) - 34px), 760px); }
  .opt-build .hero-b-copy { padding-block: clamp(28px, 4svh, 64px); padding-right: var(--space-7); }
  .opt-build .hero-b h1 { font-size: clamp(34px, min(4.2vw, 8.5svh), 64px); line-height: 1.03; max-width: 13ch; margin-bottom: var(--space-5); }
  .opt-build .hero-b .eyebrow { margin-bottom: var(--space-4); }
  .opt-build .hero-b .actions { margin-top: var(--space-5); }
}

/* Footer options */
.ftr[hidden] { display: none; }
.site-footer .f-loc { white-space: nowrap; }
.site-footer .f-license { white-space: nowrap; }
.fa-grid { display: grid; grid-template-columns: minmax(260px, 1.5fr) 1fr 1fr 1.2fr; gap: var(--space-7) var(--space-8); padding-bottom: var(--space-8); }
.fa-brand .btn { margin-top: var(--space-5); }
.fa-brand p { margin-top: var(--space-2); }
.f-legal .wrap { align-items: center; justify-content: flex-start; gap: var(--space-2) var(--space-6); color: var(--bone); }
.f-legal .f-license { margin: 0; color: var(--bone); }
.f-legal a { color: var(--bronze-light); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.f-legal a:hover { color: var(--bone); }
.f-legal .f-gap { flex: 1; }
.ftr-b { padding-top: var(--space-7); }
.fb-top { display: flex; align-items: center; gap: var(--space-6) var(--space-8); flex-wrap: wrap; padding-bottom: var(--space-5); }
.ftr-b .f-logo img { margin-bottom: 0; height: 48px; }
.fb-top nav { flex: 1; }
.fb-top ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }
.fb-top li a { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; min-height: 40px; }
.fb-mid { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-7); padding-bottom: var(--space-6); }
.fb-mid p { max-width: none; }
.ftr-c { padding-top: 0; }
.fc-cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-6) var(--space-8); padding-block: var(--space-9) var(--space-8); margin-bottom: var(--space-8); border-bottom: 1px solid var(--slate-line); }
.fc-h { font-size: clamp(32px, 4vw, 56px); font-variation-settings: "opsz" 72; font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; max-width: 14ch; }
.fc-side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
@media (max-width: 899px) { .fa-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .f-legal .f-gap { flex-basis: 100%; height: 0; } .site-footer .f-license, .site-footer .f-loc { white-space: normal; } }
@media (max-width: 559px) { .fa-grid { grid-template-columns: minmax(0, 1fr); } }
.cmp-row--1 { grid-template-columns: 1fr; }
.f-legal .wrap { gap: var(--space-2) var(--space-5); }
