/* Comfort Homes (QLD): paper and ink, with their gold as the single accent.
   Colours from their logo (silver and gold on black) and their site (charcoal #222, gold #CAA567). */
:root {
  --ink: #1f1f1f;
  --ink-2: #2e2e2e;
  --paper: #f4f1ea;
  --paper-2: #ebe5d8;
  --rule: #cfc7b6;
  --gold: #caa567;
  --bronze: #82602b;
  --silver: #c9d1d6;
  --muted: #5a554c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --max: 1240px;
  --bar: 64px;
  color-scheme: light;
}
@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); padding-bottom: var(--bar); }
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.015em; margin: 0 0 .4em; text-wrap: balance; }
h3 { font-size: 1.5rem; line-height: 1.15; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: 2px; }
.skip:focus { top: 1rem; }
.wrap { width: min(var(--max), 100% - var(--pad) * 2); margin-inline: auto; }
.label { font: 600 .6875rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); display: flex; gap: .7em; align-items: center; margin: 0 0 1.4rem; }
.label b { font-weight: 600; color: var(--ink); }
.label::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.on-ink .label, .hero .label { color: var(--gold); }
.on-ink .label b, .hero .label b { color: var(--paper); }
.huge { font-size: clamp(2.9rem, 11.5vw, 8.4rem); }
.big { font-size: clamp(2.3rem, 8vw, 5.6rem); }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.35rem); line-height: 1.55; max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.cres { width: 44px; color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: .75em 1.35em; border-radius: 999px; font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d8b97f; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn svg { width: 18px; height: 18px; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.textlink { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }
.textlink::after { content: " \2192"; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--paper); transition: background .35s, padding .35s, box-shadow .35s; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 14px; transition: padding .35s; }
.top::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(15,15,15,.62), rgba(15,15,15,0)); pointer-events: none; transition: opacity .35s; }
.top.solid { background: var(--ink); box-shadow: 0 1px 0 rgba(202,165,103,.35); }
.top.solid::before { opacity: 0; }
.top.solid .wrap { padding-block: 8px; }
.top .brand { position: relative; display: block; width: 136px; transition: width .35s; }
.top.solid .brand { width: 112px; }
.top .brand img { width: 100%; }
.top .phone { position: relative; display: none; text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.top .phone small { display: block; font: 600 .625rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 .4rem; font: 600 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary i { width: 22px; height: 10px; border-block: 1.5px solid currentColor; display: block; transition: transform .3s; }
.menu[open] summary i { transform: scaleX(.6); }
.menu nav { position: fixed; inset: 0; z-index: -1; background: var(--ink); padding: 96px var(--pad) 120px; overflow: auto; }
.menu nav ul { list-style: none; margin: 0; padding: 0; }
.menu nav li { border-bottom: 1px solid rgba(244,241,234,.14); }
.menu nav a { display: flex; justify-content: space-between; align-items: baseline; padding: .7rem 0; font: 400 clamp(1.7rem, 7vw, 2.6rem)/1.1 var(--serif); text-decoration: none; }
.menu nav a small { font: 600 .625rem/1 var(--sans); letter-spacing: .2em; color: var(--gold); text-transform: uppercase; }
.menu nav a[aria-current] { color: var(--gold); }
.menu .menu-call { margin-top: 2rem; color: var(--silver); font-size: .95rem; }
.menu .menu-call a { color: var(--paper); font-weight: 600; }
@media (min-width: 1000px) {
  .top .phone { display: block; }
  .top .right { display: flex; align-items: center; gap: 2rem; }
}
.top .right { display: flex; align-items: center; gap: 1rem; }

/* ---------- phone bar: the number never leaves the screen ---------- */
.callbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: var(--bar); display: grid; grid-template-columns: 1.25fr 1fr; background: var(--ink); color: var(--paper); box-shadow: 0 -1px 0 rgba(202,165,103,.5); padding-bottom: env(safe-area-inset-bottom); transition: grid-template-columns .4s ease; }
.callbar a, .callbar button { display: flex; align-items: center; justify-content: center; gap: .55em; font: 600 .95rem/1.1 var(--sans); text-decoration: none; color: inherit; background: none; border: 0; cursor: pointer; padding: 0 .5rem; }
.callbar a { background: var(--gold); color: var(--ink); }
.callbar a small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.callbar .num { white-space: nowrap; }
.callbar svg { width: 20px; height: 20px; flex: none; }
.callbar.slim { grid-template-columns: 2fr 1fr; }
@media (min-width: 900px) { .callbar { display: none; } }

/* ---------- hero (01: the first call) ---------- */
.hero { position: relative; min-height: max(620px, 100svh); display: grid; align-items: end; color: var(--paper); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero picture, .hero .hero-img { position: absolute; inset: 0; }
.hero .hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,15,15,.15) 30%, rgba(15,15,15,.82) 78%, rgba(15,15,15,.92)); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; padding: 120px 0 clamp(2.5rem, 7vw, 5rem); }
.hero h1 { font-size: clamp(2.7rem, 10.5vw, 7.6rem); max-width: 11em; margin-bottom: .35em; }
.hero h1 .kicker { display: block; font: 600 .6875rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem; }
.hero p { max-width: 31em; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #e9e4d8; }
.hero .trust { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font: 600 .6875rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--silver); list-style: none; padding: 0; }
.hero .trust li::before { content: ""; display: inline-block; width: 7px; height: 7px; border: 1.5px solid var(--gold); border-radius: 50%; margin-right: .5em; vertical-align: 1px; }

/* ---------- chapters ---------- */
.chapter { padding: clamp(4rem, 11vw, 8.5rem) 0; position: relative; }
.chapter + .chapter { border-top: 1px solid var(--rule); }
.chapter.on-ink { background: var(--ink); color: var(--paper); border: 0; }
.chapter.on-ink .muted { color: #bdb7aa; }
.split { display: grid; gap: 2.2rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } .split.wide-left { grid-template-columns: 1.25fr 1fr; } }

/* swipe rows (never a long list down a phone) */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 340px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem var(--pad) 1.2rem; margin-inline: calc(var(--pad) * -1); scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.row > * { scroll-snap-align: start; }
@media (min-width: 900px) { .row { grid-auto-flow: row; grid-template-columns: repeat(var(--cols, 4), 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; } }

/* 02: blocks */
.blocks button { text-align: left; background: #fbf9f4; border: 1px solid var(--rule); border-radius: 3px; padding: 1rem 1rem 1.1rem; color: var(--ink); cursor: pointer; font: inherit; transition: border-color .25s, background .25s, transform .25s; }
.blocks button:hover { border-color: var(--ink); }
.blocks button[aria-pressed="true"] { border-color: var(--gold); background: #fff; box-shadow: inset 0 0 0 1px var(--gold); }
.blocks .bk { width: 100%; height: auto; margin-bottom: .8rem; }
.blocks strong { display: block; font: 400 1.35rem/1.15 var(--serif); }
.blocks span { display: block; font-size: .9rem; color: var(--muted); margin-top: .35rem; }
.answer { min-height: 3.2em; margin-top: 1.4rem; font: 400 clamp(1.15rem, 2.5vw, 1.45rem)/1.45 var(--serif); max-width: 40em; }
.answer em { font-style: normal; color: var(--bronze); }

/* 03: the inclusions plan (the interactive feature) */
.incl { display: grid; gap: 1.5rem; }
.incl .stage { position: relative; background: #f8f5ee; border: 1px solid var(--rule); border-radius: 3px; padding: .5rem; overflow: hidden; }
.hs { width: 100%; height: auto; }
.hs [data-zone] { transition: opacity .35s; }
.hs .hs-mark { cursor: pointer; }
.hs .hs-mark circle { transition: fill .25s; }
.hs .hs-mark:hover circle, .hs .hs-mark.on circle { fill: var(--gold); }
.incl.lit .hs g[data-zone]:not(.hs-mark):not(.on) { opacity: .28; }
.zones { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.zones button { flex: none; min-height: 44px; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font: 600 .875rem/1 var(--sans); cursor: pointer; white-space: nowrap; }
.zones button span { color: var(--bronze); margin-right: .4em; font-family: var(--serif); }
.zones button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.zones button[aria-selected="true"] span { color: var(--gold); }
.panel { background: #fff; border: 1px solid var(--rule); border-radius: 3px; padding: 1.3rem 1.2rem 1.4rem; }
.panel h3 { margin-bottom: .2em; }
.panel .why { color: var(--muted); font-size: .95rem; }
.cols { display: grid; gap: 1rem; margin: 1.1rem 0 1.2rem; }
@media (min-width: 640px) { .cols { grid-template-columns: 1fr 1fr; } }
.cols h4 { font: 600 .6875rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 .6rem; color: var(--bronze); display: flex; justify-content: space-between; }
.cols ul { margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.cols li { padding: .4rem 0 .4rem 1.1rem; border-top: 1px solid #eee8dc; position: relative; }
.cols li::before { content: ""; position: absolute; left: 0; top: .9em; width: 6px; height: 6px; border: 1.5px solid var(--gold); border-radius: 50%; }
.cols li.diff { font-weight: 600; }
.pick { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pick > span { font: 600 .6875rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-right: .3rem; }
.pick button { min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font: 600 .875rem/1 var(--sans); cursor: pointer; color: var(--ink); }
.pick button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); }
.tally { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; font-size: .9rem; }
.tally output { color: var(--muted); }
@media (min-width: 1000px) { .incl { grid-template-columns: 1.35fr 1fr; align-items: start; } .incl .zones { grid-column: 1 / -1; } }
.incl-note { font-size: .8125rem; color: var(--muted); margin-top: .9rem; }

/* 04: the builder */
.builder figure { margin: 0; position: relative; }
.builder figure img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 2px; filter: grayscale(.15) contrast(1.03); }
.builder figcaption { font-size: .8125rem; color: #bdb7aa; margin-top: .6rem; }
.quote { margin: 1.8rem 0; padding: 0; font: 400 clamp(1.35rem, 3.4vw, 2rem)/1.35 var(--serif); }
.quote footer { margin-top: .9rem; font: 600 .6875rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.awards { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.awards li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: center; font-size: .95rem; color: #ddd7ca; }
.awards .cres { width: 40px; color: var(--silver); }

/* 05: handover (finished homes) */
.homes a { display: block; text-decoration: none; }
.homes figure { margin: 0; }
.homes img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.homes a:hover img { transform: scale(1.025); }
.homes figcaption { padding-top: .6rem; font-size: .9rem; color: var(--muted); }
.homes figcaption b { display: block; font: 400 1.2rem/1.2 var(--serif); color: var(--ink); }
.steps-mini { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .1rem; counter-reset: s; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; padding: .55rem 0; border-top: 1px solid var(--rule); }
.steps-mini li::before { content: counter(s, decimal-leading-zero); font: 400 1rem/1.5 var(--serif); color: var(--bronze); }

/* 06: where we build */
.where .cm { width: 100%; height: auto; max-height: 640px; }
.where .contact-lines { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; }
.where .contact-lines li { padding: .7rem 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; }
.where .contact-lines span { font: 600 .6875rem/1.9 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.where .contact-lines a { font-weight: 600; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; padding: 140px 0 3rem; background: var(--ink); color: var(--paper); overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.5rem, 9vw, 6.4rem); max-width: 12em; }
.page-hero p { max-width: 34em; color: #ddd7ca; font-size: clamp(1.05rem, 2vw, 1.2rem); }
.page-hero.has-img { min-height: 72svh; display: grid; align-items: end; }
.page-hero.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero.has-img::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,15,15,.25), rgba(15,15,15,.86) 85%); }
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.9rem, 5vw, 3rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin: .3rem 0; }
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.cards { display: grid; gap: 1rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fbf9f4; border: 1px solid var(--rule); border-radius: 3px; padding: 1.4rem 1.3rem; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: t; max-width: 46rem; }
.timeline li { counter-increment: t; position: relative; padding: 0 0 1.6rem 3.6rem; }
.timeline li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; top: -.1rem; font: 400 1.6rem/1 var(--serif); color: var(--bronze); }
.timeline li::after { content: ""; position: absolute; left: 1.05rem; top: 2.1rem; bottom: .4rem; width: 1px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline strong { display: block; font: 400 1.3rem/1.25 var(--serif); margin-bottom: .2rem; }
.voices { display: grid; gap: 1rem; }
@media (min-width: 900px) { .voices { grid-template-columns: repeat(2, 1fr); } }
.voices blockquote { margin: 0; background: #fbf9f4; border: 1px solid var(--rule); border-radius: 3px; padding: 1.5rem 1.4rem; }
.voices blockquote p { font: 400 1.15rem/1.5 var(--serif); }
.voices footer { font: 600 .6875rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font: 400 clamp(1.2rem, 2.6vw, 1.5rem)/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 1rem; font: 300 1.6rem/1 var(--sans); color: var(--bronze); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.2rem; max-width: 44rem; }
.team { display: grid; gap: 2rem; }
@media (min-width: 800px) { .team { grid-template-columns: 1fr 1fr; } }
.team img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; margin-bottom: 1rem; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.facts li { padding: .8rem 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 9rem 1fr; gap: .8rem; }
.facts span { font: 600 .6875rem/1.8 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.full-list details { border-top: 1px solid var(--rule); }
.full-list summary { cursor: pointer; padding: 1rem 0; font: 400 1.35rem/1.3 var(--serif); }
.full-list .cols { margin-top: 0; }
.towns { columns: 2; padding-left: 1.1rem; }
@media (min-width: 700px) { .towns { columns: 3; } }

/* gallery by room: tabs that work without a script */
.gtabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.5rem; }
.gtabs label { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: .5rem 1rem; border: 1px solid var(--rule); border-radius: 999px; font: 600 .875rem/1 var(--sans); cursor: pointer; }
.gallery input { position: absolute; opacity: 0; pointer-events: none; }
.ggrid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ggrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .ggrid { grid-template-columns: repeat(3, 1fr); } }
.ggrid figure { margin: 0; }
.ggrid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.ggrid figcaption { font-size: .875rem; color: var(--muted); padding-top: .45rem; }
#g-all:checked ~ .gtabs label[for="g-all"],
#g-outside:checked ~ .gtabs label[for="g-outside"],
#g-kitchens:checked ~ .gtabs label[for="g-kitchens"],
#g-bathrooms:checked ~ .gtabs label[for="g-bathrooms"],
#g-living:checked ~ .gtabs label[for="g-living"],
#g-outdoor:checked ~ .gtabs label[for="g-outdoor"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
#g-outside:checked ~ .ggrid figure:not([data-room~="outside"]),
#g-kitchens:checked ~ .ggrid figure:not([data-room~="kitchens"]),
#g-bathrooms:checked ~ .ggrid figure:not([data-room~="bathrooms"]),
#g-living:checked ~ .ggrid figure:not([data-room~="living"]),
#g-outdoor:checked ~ .ggrid figure:not([data-room~="outdoor"]) { display: none; }
.gallery input:focus-visible ~ .gtabs { outline: 2px solid var(--gold); outline-offset: 4px; }

/* forms */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font: 600 .8125rem/1.2 var(--sans); }
.form input, .form textarea, .form select { font: 400 1rem/1.4 var(--sans); padding: .8rem .9rem; border: 1px solid #b9b0a0; border-radius: 3px; background: #fff; color: var(--ink); width: 100%; }
.form textarea { min-height: 7.5rem; resize: vertical; }
.form .chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font: 600 .8125rem/1.2 var(--sans); margin-bottom: .45rem; }
.chips input { position: absolute; opacity: 0; }
.chips label { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .85rem; border: 1px solid #b9b0a0; border-radius: 999px; font-weight: 600; font-size: .85rem; cursor: pointer; background: #fff; }
.chips input:checked + label { background: var(--gold); border-color: var(--gold); }
.chips input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.form .fine { font-size: .78rem; color: var(--muted); font-weight: 400; }

/* the quote drawer rises over the page */
.drawer { position: fixed; inset: auto 0 0; margin: 0 auto; width: min(640px, 100%); max-width: 100%; max-height: 92svh; border: 0; padding: 0; border-radius: 14px 14px 0 0; background: var(--paper); color: var(--ink); box-shadow: 0 -20px 60px rgba(0,0,0,.35); overflow: auto; overscroll-behavior: contain; }
.drawer::backdrop { background: rgba(15,15,15,.55); }
.drawer[open] { animation: rise .45s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { transform: translateY(100%); } }
.drawer .dhead { position: sticky; top: 0; background: var(--ink); color: var(--paper); padding: 1.1rem 1.25rem 1rem; display: flex; justify-content: space-between; align-items: start; gap: 1rem; z-index: 1; }
.drawer .dhead h2 { font-size: 1.7rem; margin: 0; }
.drawer .dhead p { margin: .3rem 0 0; font-size: .9rem; color: #cfc9bc; }
.drawer .x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(244,241,234,.4); background: none; color: var(--paper); font-size: 1.4rem; cursor: pointer; }
.drawer form { padding: 1.25rem; }
.drawer .notes { background: #fff; border: 1px dashed var(--gold); border-radius: 3px; padding: .8rem .9rem; font-size: .875rem; }
.drawer .notes:empty { display: none; }
.drawer .notes b { display: block; font: 600 .6875rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); margin-bottom: .4rem; }
.drawer .notes ul { margin: 0; padding-left: 1rem; }
@media (min-width: 700px) { .drawer { bottom: 2rem; border-radius: 10px; } }

/* footer */
.foot { background: var(--ink); color: #d9d3c6; padding: 4rem 0 2.5rem; font-size: .9375rem; }
.foot a { color: var(--paper); }
.foot .fgrid { display: grid; gap: 2.2rem; }
@media (min-width: 900px) { .foot .fgrid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.foot h2 { font: 600 .6875rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.foot .logo { width: 190px; margin-bottom: 1.2rem; }
.foot .legal { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(244,241,234,.14); display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .8125rem; color: #a9a397; }
.foot .legal a { color: #cfc9bc; }

/* motion: sections arrive as you reach them (only when scripts run and motion is welcome) */
.js .rise { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .rise.in { opacity: 1; transform: none; }
.js .rise.d1 { transition-delay: .12s; } .js .rise.d2 { transition-delay: .24s; }
.hero .wrap > * { animation: up 1s cubic-bezier(.2,.7,.2,1) both; }
.hero .wrap > :nth-child(2) { animation-delay: .15s; } .hero .wrap > :nth-child(3) { animation-delay: .3s; } .hero .wrap > :nth-child(4) { animation-delay: .45s; }
@keyframes up { from { opacity: 0; transform: translateY(22px); } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rise { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* additions */
.h3 { font-size: 1.6rem; }
.row.c3 { --cols: 3; } .row.c4 { --cols: 4; }
.page-hero.has-img img { view-transition-name: carry; }
::view-transition-group(carry) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
a.card { text-decoration: none; display: block; }
a.card:hover { border-color: var(--ink); }


/* phone length: one list at a time, tighter chapters, shorter footer */
.which { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; margin: .9rem 0 0; }
.which button { min-height: 38px; padding: .35rem 1rem; border: 0; border-radius: 999px; background: none; font: 600 .85rem/1 var(--sans); color: var(--ink); cursor: pointer; }
.which button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (min-width: 640px) { .which { display: none; } }
@media (max-width: 639px) {
  .cols.one.show-custom > div:first-child, .cols.one.show-standard > div:last-child, .cols.one-list > div:last-child { display: none; }
  .chapter { padding: 3.4rem 0; }
  .builder figure img { aspect-ratio: 4 / 3; object-position: 50% 20%; }
  .foot { padding-top: 3rem; }
  .foot .fgrid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.2rem; }
  .foot .fgrid > :nth-child(-n+2) { grid-column: 1 / -1; }
  .foot .fgrid > :nth-child(n+3) { font-size: .875rem; }
  .foot .legal { margin-top: 2rem; }
}
.hero::after { background: linear-gradient(180deg, rgba(15,15,15,.35) 0%, rgba(15,15,15,.25) 18%, rgba(15,15,15,.62) 42%, rgba(15,15,15,.9) 72%, rgba(15,15,15,.95)); }
.cols li.more { display: none; }
.cols li.more::before { display: none; }
@media (max-width: 639px) {
  .cols.one li:not(.diff):not(.more), .cols.one-list li:nth-child(n+5):not(.more) { display: none; }
  .cols.one li.more, .cols.one-list li.more { display: block; padding-left: 0; font-weight: 600; }
  .foot .fgrid > :nth-child(3) { display: none; }
  .foot .fgrid > :nth-child(4) { grid-column: 1 / -1; }
  .foot .fgrid > :nth-child(4) ul { grid-template-columns: 1fr 1fr; }
  .incl .stage { padding: 0; }
}
@media (max-width: 639px) {
  .chapter { padding: 3rem 0; }
  .builder.split { gap: 1.4rem; }
  .builder figure { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; }
  .builder figure img { aspect-ratio: 1; border-radius: 50%; width: 96px; }
  .builder figcaption { margin: 0; }
  .builder .quote { margin: 1.2rem 0; font-size: 1.25rem; }
  .awards { margin-top: 1.2rem; }
  .where .cm { max-height: 300px; }
  .where .split { gap: 1.2rem; }
  .where .contact-lines { margin: .6rem 0 1.2rem; }
  .where .contact-lines li { padding: .5rem 0; grid-template-columns: 6.5rem 1fr; }
  .home-only-wide { display: none; }
  .foot .fgrid > :first-child p { display: none; }
  .foot .logo { width: 150px; margin-bottom: 0; }
  .chapter .incl-note { display: none; }
}
.desk { display: none; position: relative; }
.desk ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.desk a { font: 600 .8125rem/1 var(--sans); letter-spacing: .03em; text-decoration: none; padding: .6rem 0; display: block; border-bottom: 1.5px solid transparent; }
.desk a:hover, .desk a[aria-current] { border-color: var(--gold); }
@media (min-width: 1100px) { .desk { display: block; } .top .menu nav ul { max-width: 760px; } }
