/* Atlas Pergola website. Reads only the --ap-* tokens (static/css/anthracite.css):
   no color, font family, radius or control height is written out here, so the
   direction is switched by loading another tokens file. Square corners, 44 px
   controls, 52 px buttons, one amber action per page. Spacing and type sizes
   follow the boards (drawn at 1440 wide); the narrow layout is below. */

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ap-ground);
  color: var(--ap-text);
  font-family: var(--ap-font-text);
  font-size: 17px;
  line-height: var(--ap-text-leading);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ap-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 2px solid var(--ap-text); outline-offset: 3px; }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; background: var(--ap-ground-deep); color: var(--ap-text);
  border: var(--ap-border-control) solid var(--ap-text);
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- type */
/* One type scale for the whole site:
   display 40-76 · h1 34-58 · h2 28-44 · statement 24-34 · h3 21 · lead 19 · body 17 · small 15 · caption 13 */
.display, .h1, .h2 {
  font-family: var(--ap-font-display);
  font-stretch: var(--ap-display-stretch);
  font-weight: var(--ap-display-weight);
  letter-spacing: var(--ap-display-tracking);
  line-height: var(--ap-display-leading);
  text-wrap: balance;
}
.display { font-size: clamp(40px, 5.1vw, 76px); max-width: 12ch; }
.h1 { font-size: clamp(34px, 4.2vw, 58px); max-width: 900px; }
.h1--home { font-size: clamp(40px, 5.1vw, 76px); }
.h2 { line-height: 1.04; font-size: clamp(28px, 3vw, 44px); }
.h2--small { font-size: clamp(22px, 2vw, 26px); }
.statement {
  font-family: var(--ap-font-display);
  font-stretch: var(--ap-display-stretch);
  font-weight: 700;
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1.2;
  letter-spacing: var(--ap-display-tracking);
  text-wrap: balance;
  max-width: 30ch;
}
.h3, .feature__title, .addon__title, .step__title {
  font-family: var(--ap-font-display);
  font-stretch: var(--ap-display-stretch);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.15;
}
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ap-text-muted);
}
.eyebrow::before { content: ""; flex: 0 0 28px; height: 0; border-top: var(--ap-border-control) solid var(--ap-brand); }
.eyebrow__n { color: var(--ap-text-muted); font-weight: 700; }   /* small text: slate is 4.3:1 on the ground, under 4.5 */
.feature__title, .addon__title, .step__title { font-stretch: 100%; font-size: 18px; line-height: 1.25; }
.lead { font-size: 19px; color: var(--ap-text-soft); max-width: 640px; text-wrap: pretty; }
.lead-s { font-size: 17px; color: var(--ap-text-soft); max-width: 760px; }
.meta { font-size: 14px; color: var(--ap-text-muted); font-variant-numeric: tabular-nums; }
.muted { color: var(--ap-text-muted); }
.small { font-size: 14px; }
.tabular { font-variant-numeric: tabular-nums; }
.req { font-weight: 400; color: var(--ap-text-muted); }
.prose p + p { margin-top: 14px; }
.prose { max-width: 900px; }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
/* One spacing scale: 4 8 12 16 24 32 48 64 96. Sections are 96 apart on a
   computer, 72 on a tablet, 56 on a phone; inside them, 32 between parts. */
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }
/* Two sections on the same ground are one gap apart, not two. */
.section + .section:not(.section--hero) { padding-top: 0; }
.section--hero { padding-top: 48px; padding-bottom: 64px; gap: 24px; }
.section--flush-top { padding-top: 0; }
.band { background: var(--ap-ground-deep); }
.narrow { max-width: 976px; }
.head { display: flex; flex-direction: column; gap: 12px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.section-head .lead-s { margin-top: 4px; }
.section-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.section-head--row > div { display: flex; flex-direction: column; gap: 16px; }
.head--row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; }
.head--row > div { display: flex; flex-direction: column; gap: 12px; }
.more-link { font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; min-height: var(--ap-control-height); }
.group-title { margin-top: 8px; }

.split { flex-direction: row; flex-wrap: wrap; gap: 40px 48px; align-items: flex-start; }
.split__main { flex: 1.4 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split__side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split--form .split__main { flex: 1.2 1 520px; }
/* Beside a long form on a computer, the ways to reach us stay in view while it is filled in. */
@media (min-width: 1024px) { .split--form .contact-details { position: sticky; top: 24px; } }

.grid { display: grid; gap: 40px 32px; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; }
.grid--addons { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 28px; list-style: none; }
.grid--tiles { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; list-style: none; }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--ap-ground-deep); }
.topbar { border-bottom: 1px solid var(--ap-line); font-size: 14px; }
.topbar__in { min-height: 40px; padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.topbar__where { color: var(--ap-text-muted); text-decoration: none; }
.topbar__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.topbar__nav a { color: var(--ap-text-soft); text-decoration: none; padding: 2px 0; border-bottom: var(--ap-border-control) solid transparent; }
.topbar__nav a.is-current { color: var(--ap-text); font-weight: 700; border-bottom-color: var(--ap-accent); }

.mainbar { min-height: 76px; padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ap-text); }
.brand__name { font-family: var(--ap-font-display); font-stretch: var(--ap-display-stretch); font-weight: 700; font-size: 17px; line-height: 1.1; letter-spacing: 0.04em; }
.mark { display: block; flex: 0 0 auto; }
.mark__top { fill: var(--ap-brand); }
.mark__body { fill: var(--ap-text); }
.mainnav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; }
.mainnav a { display: flex; align-items: center; min-height: var(--ap-control-height); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.mainnav a.is-current { font-weight: 700; border-bottom-color: var(--ap-accent); }
.mainbar__actions { display: flex; align-items: center; gap: 24px; }
.tel { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; }
.menu-toggle { display: none; }
.mainnav .mainnav__util { display: none; }

.subnav { border-top: 1px solid var(--ap-line); font-size: 15px; }
.subnav__in { min-height: 48px; display: flex; flex-wrap: wrap; gap: 0 28px; align-items: center; }
.subnav__label { color: var(--ap-text-muted); text-decoration: none; }
.subnav nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.subnav nav a { display: flex; align-items: center; min-height: var(--ap-control-height); text-decoration: none; color: var(--ap-text-soft); border-bottom: 2px solid transparent; }
.subnav nav a.is-current { color: var(--ap-text); font-weight: 700; border-bottom-color: var(--ap-accent); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--ap-button-height); padding: 0 26px;
  border-radius: var(--ap-radius-control);
  font-family: var(--ap-font-text); font-size: 17px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  border: var(--ap-border-control) solid var(--ap-brand);
  background: transparent; color: var(--ap-text);
}
.btn:hover { text-decoration: none; border-color: var(--ap-text); }
.btn--primary { background: var(--ap-accent); border-color: var(--ap-accent); color: var(--ap-on-accent); font-weight: 700; }
.btn--primary:hover { border-color: var(--ap-text); }
.btn--primary:focus-visible { outline-color: var(--ap-text); }
.btn--quiet { border-color: var(--ap-line); color: var(--ap-text-soft); }
.btn--compact { min-height: var(--ap-control-height); padding: 0 20px; font-size: 15px; }
.btn[disabled] { cursor: progress; opacity: 0.7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions--form { gap: 16px 20px; }

/* ---------------------------------------------------------------- page parts */
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--ap-text-muted); }
.crumbs a { color: var(--ap-text-muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ap-text-soft); }
.crumbs span[aria-hidden] { color: var(--ap-line); }

.hero { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: center; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero__media { flex: 1.2 1 520px; min-width: 0; }
.hero--home .hero__text { gap: 24px; padding: 24px 0; }

.photo { width: 100%; object-fit: cover; border-radius: var(--ap-radius-media); }
.photo--hero { aspect-ratio: 4 / 3; max-height: 540px; }
.photo--card { aspect-ratio: 3 / 2; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a {
  display: inline-flex; align-items: center; min-height: var(--ap-control-height); padding: 0 16px;
  border: var(--ap-border-control) solid var(--ap-line); text-decoration: none; font-weight: 600; font-size: 14px;
}
.jump a:hover { border-color: var(--ap-brand); }

.card { display: flex; flex-direction: column; gap: 12px; }
.card p { font-size: 16px; color: var(--ap-text-soft); }
.card .muted { color: var(--ap-text-muted); }
.card h3 a, .card h2 a { text-decoration: none; }
.card h3 a:hover, .card h2 a:hover { text-decoration: underline; }
.feature { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: var(--ap-border-control) solid var(--ap-brand); }
.feature p { font-size: 16px; color: var(--ap-text-soft); }
.addon { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: var(--ap-border-control) solid var(--ap-line); }
.addon p { font-size: 15px; color: var(--ap-text-soft); }
.addon__title a { text-decoration: none; border-bottom: var(--ap-border-control) solid var(--ap-brand); }
.chip { display: inline-block; padding: 1px 8px; border: 1px solid var(--ap-brand); font-size: 13px; font-weight: 600; color: var(--ap-text); }

.steps li { list-style: none; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: var(--ap-border-control) solid var(--ap-brand); }
.step__n { font-family: var(--ap-font-display); font-stretch: var(--ap-display-stretch); font-weight: var(--ap-display-weight); font-size: 28px; line-height: 1; color: var(--ap-brand); }
.step p { font-size: 16px; color: var(--ap-text-soft); }
.steps--list { display: flex; flex-direction: column; gap: 18px; }
.steps--list .step { padding-top: 12px; gap: 6px; }
.steps--list .step__n { font-size: 21px; }

.kv { margin: 0; display: flex; flex-direction: column; }
.kv__row { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--ap-line); font-size: 16px; }
.kv__row dt { flex: 0 0 220px; color: var(--ap-text-muted); }
.kv__row dd { margin: 0; flex: 1 1 260px; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }

.qa-list { display: flex; flex-direction: column; max-width: 900px; }
.qa { border-top: 1px solid var(--ap-line); padding: 4px 0; }
.qa summary { min-height: var(--ap-control-height); display: flex; align-items: center; cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "+"; flex: 0 0 auto; width: 16px; color: var(--ap-brand); font-weight: 700; }
.qa[open] summary::before { content: "\2212"; }
.qa__a { padding: 0 0 16px 28px; max-width: 760px; font-size: 16px; color: var(--ap-text-soft); }
.faq-group { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 32px 0; border-top: 1px solid var(--ap-line); }
.faq-group__title { flex: 0 1 300px; font-size: 24px; line-height: 1.15; }
.faq-group .qa-list { flex: 1 1 640px; min-width: 0; }

.cta-band { flex-direction: row; flex-wrap: wrap; gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.cta-band__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta-band .lead-s { max-width: 620px; }

.panel { background: var(--ap-ground-deep); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.band .panel { background: var(--ap-ground); }
.tile { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: var(--ap-border-control) solid var(--ap-brand); }
.tile__v { font-family: var(--ap-font-display); font-stretch: var(--ap-display-stretch); font-weight: var(--ap-display-weight); font-size: 26px; }
.tile__k { font-size: 15px; color: var(--ap-text-muted); }
.people li { display: flex; flex-direction: column; gap: 6px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-top: 1px solid var(--ap-line); }
.table thead th { border-top: 0; font-size: 13px; font-weight: 600; color: var(--ap-text-muted); }
.table tbody th { font-weight: 600; }
.table td a + a { margin-left: 12px; }

.plain-list { list-style: none; display: flex; flex-direction: column; }
.plain-list li { padding: 10px 0; border-top: 1px solid var(--ap-line); }
.link-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.answer { font-size: 17px; font-weight: 600; }
.pager { display: flex; gap: 24px; font-weight: 600; }
.gallery { gap: 12px; }
.gallery__item { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.post-body { display: flex; flex-direction: column; gap: 14px; font-size: 17px; color: var(--ap-text-soft); }
.post-body h2, .post-body h3 { color: var(--ap-text); font-family: var(--ap-font-display); margin-top: 12px; }
.post-body ul, .post-body ol { padding-left: 22px; }
.legal-text { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--ap-line); color: var(--ap-text-soft); }

/* ---------------------------------------------------------------- pictures
   Every picture is a <figure class="pic pic--{shape}"> from ui.pic. Square
   corners; the crop fills the slot's shape; a caption is small and quiet. */
.pic { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pic picture { display: contents; }   /* the <img> stays the figure's own child for layout */
.pic img {
  width: 100%; height: auto; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%);
  border-radius: var(--ap-radius-media); background: var(--ap-ground-deep);
}
.band .pic img { background: var(--ap-ground); }
.pic--hero img { aspect-ratio: 16 / 11; }
.pic--wide img { aspect-ratio: 16 / 9; }
.pic--land img { aspect-ratio: 3 / 2; }
.pic--card img { aspect-ratio: 4 / 3; }
.pic--tall img { aspect-ratio: 4 / 5; }
.pic--band img { aspect-ratio: 12 / 5; }
.pic--square img { aspect-ratio: 1 / 1; }
.pic--shot img { aspect-ratio: 16 / 10; object-fit: contain; }
@media (max-width: 639px) { .pic--shot-crop img { aspect-ratio: auto; } }   /* the phone crop takes its own shape (ui.studio_pic) */
/* A dark picture on the dark ground gets a hairline so it does not bleed into the page. */
.pic--dark img, .pic--shot img { outline: 1px solid var(--ap-line); outline-offset: -1px; }
.pic--natural img { aspect-ratio: auto; }
/* The crop keeps the picture's subject: its focus point, in tenths (ui.pic, content.focus_classes). */
.fx-0 { --fx: 0%; } .fy-0 { --fy: 0%; }
.fx-1 { --fx: 10%; } .fy-1 { --fy: 10%; }
.fx-2 { --fx: 20%; } .fy-2 { --fy: 20%; }
.fx-3 { --fx: 30%; } .fy-3 { --fy: 30%; }
.fx-4 { --fx: 40%; } .fy-4 { --fy: 40%; }
.fx-5 { --fx: 50%; } .fy-5 { --fy: 50%; }
.fx-6 { --fx: 60%; } .fy-6 { --fy: 60%; }
.fx-7 { --fx: 70%; } .fy-7 { --fy: 70%; }
.fx-8 { --fx: 80%; } .fy-8 { --fy: 80%; }
.fx-9 { --fx: 90%; } .fy-9 { --fy: 90%; }
.fx-10 { --fx: 100%; } .fy-10 { --fy: 100%; }
/* Never larger than its own pixels on an ordinary screen (ui.pic adds the class from the file's size). */
.pic--cap-600 { max-width: 600px; } .pic--cap-800 { max-width: 800px; }
.pic--cap-1000 { max-width: 1000px; } .pic--cap-1200 { max-width: 1200px; }
.pic__cap { font-size: 13px; line-height: 1.4; color: var(--ap-text-muted); }
/* The one effect: a picture eases in once it has loaded (site.js adds .pics-ease). */
.pics-ease .pic img[loading="lazy"] { opacity: 0; transition: opacity 420ms ease-out; }
.pics-ease .pic img[loading="lazy"].is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .pics-ease .pic img[loading="lazy"] { opacity: 1; transition: none; }
}

/* ---------------------------------------------------------------- lead hero
   The top of the home and product pages: the copy on a solid panel beside the
   main picture (never over it). On a phone the picture comes first. */
.lead-hero { background: var(--ap-ground-deep); display: grid; grid-template-columns: minmax(0, 1fr); }
.lead-hero__text { padding: 56px 48px 72px; display: flex; flex-direction: column; gap: 24px; justify-content: center; min-width: 0; }
.lead-hero__text .lead { max-width: 560px; }
.lead-hero__text .crumbs { margin-bottom: 8px; }
.lead-hero__media { min-width: 0; }
/* Home: the headline above the copy and the picture (phone: picture, headline, copy). */
.lead-hero--home { grid-template-areas: "media" "head" "text"; }
.lead-hero--home .lead-hero__media { grid-area: media; }
.lead-hero--home .lead-hero__head { grid-area: head; display: flex; flex-direction: column; gap: 20px; padding: 32px 20px 0; min-width: 0; }
.lead-hero--home .lead-hero__text { grid-area: text; }
.lead-hero--home:not(.lead-hero--pic) { grid-template-areas: "head" "text"; }
.lead-hero--home .display { max-width: none; }
.lead-hero__media .pic__cap { padding: 0 48px 16px 0; text-align: right; }
/* Three quiet facts under the home page's buttons; on a computer they sit on the picture's bottom line. */
.hero-facts { margin: 8px 0 0; display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; max-width: 560px; }
.hero-facts__row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--ap-line); }
.hero-facts__row:last-child { border-bottom: 1px solid var(--ap-line); }
.hero-facts dt { color: var(--ap-text-muted); }
.hero-facts dd { margin: 0; color: var(--ap-text-soft); }

/* ---------------------------------------------------------------- picture cards */
.pcards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; }
.pcard { grid-column: span 12; display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: var(--ap-text); min-width: 0; }
.pcard--3 { grid-column: span 3; }
.pcard--4 { grid-column: span 4; }
.pcard--6 { grid-column: span 6; }
.pcard__body { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.pcard__title { font-family: var(--ap-font-display); font-stretch: var(--ap-display-stretch); font-weight: 700; font-size: 21px; line-height: 1.15; text-wrap: balance; }
.pcard--6 .pcard__title { font-size: 26px; }
.pcard__text { font-size: 16px; color: var(--ap-text-soft); }
.pcard__more { font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; margin-top: 4px; }
.pcard:hover .pcard__title, .pcard:focus-visible .pcard__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.pcard:hover .pcard__more { text-decoration-thickness: 2px; }

.also { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--ap-line); }
.also__title { font-size: 15px; font-weight: 600; color: var(--ap-text-muted); }
.also__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px 32px; }
.also__list li { display: flex; flex-direction: column; gap: 4px; font-size: 16px; color: var(--ap-text-soft); }
.also__name { font-family: var(--ap-font-display); font-stretch: var(--ap-display-stretch); font-weight: 700; font-size: 18px; color: var(--ap-text); text-decoration: none; display: inline-flex; align-self: flex-start; min-height: 32px; align-items: center; }
.also__name:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- showcase: a picture beside its text */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.showcase__text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.showcase__body { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.showcase__media { min-width: 0; }
.ticks { list-style: none; display: flex; flex-direction: column; font-size: 16px; color: var(--ap-text-soft); }
.ticks li { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--ap-line); }
.ticks li:last-child { border-bottom: 1px solid var(--ap-line); }
.ticks span { color: var(--ap-brand); font-weight: 700; flex: 0 0 24px; }

/* ---------------------------------------------------------------- numbered steps */
.nsteps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 32px; counter-reset: none; }
.nstep { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--ap-line); }
.nstep__n { font-family: var(--ap-font-display); font-stretch: var(--ap-display-stretch); font-weight: var(--ap-display-weight); font-size: 40px; line-height: 1; color: var(--ap-brand); }
.nstep__title { font-size: 18px; font-weight: 700; line-height: 1.25; }
.nstep p { font-size: 16px; color: var(--ap-text-soft); max-width: 46ch; }

/* ---------------------------------------------------------------- closing: mission beside a picture */
.closing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.closing__text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.closing__area { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; border-top: 1px solid var(--ap-line); color: var(--ap-text-soft); }
.closing__area .h3 { color: var(--ap-text); }

/* ---------------------------------------------------------------- project cards */
.prj-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 48px 24px; }
.prj-cards li { display: flex; min-width: 0; }
.prj-card { display: flex; flex-direction: column; gap: 16px; width: 100%; text-decoration: none; color: var(--ap-text); }
.prj-card--text { padding-top: 20px; border-top: 1px solid var(--ap-line); }
.prj-card__body { display: flex; flex-direction: column; gap: 6px; }
.prj-card__title { font-family: var(--ap-font-display); font-stretch: var(--ap-display-stretch); font-weight: 700; font-size: 21px; line-height: 1.2; text-wrap: balance; }
.prj-card__meta { font-size: 15px; color: var(--ap-text-muted); }
@media (min-width: 768px) {
  .prj-cards.prj-cards--solo { grid-template-columns: minmax(0, 1fr); }
  .prj-cards--solo .prj-card { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: end; }
  .prj-cards--solo .prj-card__title { font-size: clamp(24px, 2.2vw, 30px); }
  .prj-cards--solo .prj-card--text { grid-template-columns: minmax(0, 1fr); }
}
.prj-card:hover .prj-card__title, .prj-card:focus-visible .prj-card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------------------------------------------------------------- product page parts */
.lead-hero__glance { display: flex; flex-direction: column; gap: 16px; padding: 0 48px 64px; min-width: 0; }
.glance { margin: 0; display: flex; flex-direction: column; }
.glance__row { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--ap-line); }
.glance__row:last-child { border-bottom: 1px solid var(--ap-line); }
.glance dt { font-size: 15px; color: var(--ap-text-muted); }
.glance dd { margin: 0; font-family: var(--ap-font-display); font-stretch: var(--ap-display-stretch); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; }

.jumpbar { background: var(--ap-ground-deep); border-top: 1px solid var(--ap-line); }
.jumpbar__in { display: flex; flex-wrap: wrap; gap: 0 28px; }
.jumpbar a { display: inline-flex; align-items: center; min-height: var(--ap-control-height); font-size: 15px; font-weight: 600; color: var(--ap-text-soft); text-decoration: none; border-bottom: 2px solid transparent; }
.jumpbar a:hover { color: var(--ap-text); border-bottom-color: var(--ap-text); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; }
.features + .group-title { margin-top: 16px; }
.feature { border-top-color: var(--ap-line); border-top-width: 1px; padding-top: 16px; }

.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.kind { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--ap-ground); border-top: var(--ap-border-control) solid var(--ap-brand); }
.kind p { font-size: 16px; color: var(--ap-text-soft); }
.kind .actions { margin-top: auto; padding-top: 8px; }
.kind__n { font-family: var(--ap-font-display); font-stretch: var(--ap-display-stretch); font-weight: var(--ap-display-weight); font-size: 28px; line-height: 1; color: var(--ap-brand); }

.addons { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.addons--list { display: flex; flex-direction: column; gap: 0; }
.addons--list .addon { border: 0; border-top: 1px solid var(--ap-line); padding: 14px 0; gap: 4px; }
.addons--list .addon:last-child { border-bottom: 1px solid var(--ap-line); }

.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
/* A gallery row: every picture in its own shape, all the same height (each takes
   width in proportion to its shape: 3:2 for a landscape picture, 3:4 for a portrait one). */
.gallery-row { display: flex; flex-direction: column; gap: 24px; }
.gallery-row .pic img { aspect-ratio: 3 / 2; }
.gallery-row .pic--portrait img { aspect-ratio: 3 / 4; }
@media (min-width: 640px) {
  .gallery-row { flex-direction: row; align-items: flex-start; }
  .gallery-row .pic { flex: 1.5 1 0; }
  .gallery-row .pic--portrait { flex: 0.75 1 0; }
}

/* Two parts side by side (a product page without pictures: How it works beside Where it goes). */
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
.duo__part { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.duo .features--two { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

/* ---------------------------------------------------------------- what we build: groups */
.offer-list { list-style: none; display: flex; flex-direction: column; }
.offer { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-top: 1px solid var(--ap-line); }
.offer:last-child { border-bottom: 1px solid var(--ap-line); }
.offer p { font-size: 16px; color: var(--ap-text-soft); max-width: 60ch; }
.offer__name { font-family: var(--ap-font-display); font-stretch: var(--ap-display-stretch); font-weight: 700; font-size: 21px; line-height: 1.2; }
.offer__name a { text-decoration: none; }
.offer__name a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.page-head { padding-bottom: 32px; }

/* ---------------------------------------------------------------- one project */
.project-lead .pic img { max-height: 760px; }
.project-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.project-body__text { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.project-body__text .about-what { margin-top: 20px; }
.project-body__side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.permission-line { padding-bottom: 24px; }
/* A portrait lead picture stands beside the text, in its own shape. */
.project-portrait { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
/* A short story beside a tall photo: the text starts level with the photo's top and reads as its
   caption, the photo no taller than a screen; centering it left a band of empty ground above and
   below three lines of text. */
.project-portrait__media { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.project-portrait__media .pic { max-width: 480px; }
.project-portrait__media .pic img { max-height: min(640px, calc(100vh - 160px)); width: auto; max-width: 100%; }
.project-portrait .project-body__text { max-width: 640px; }
.project-portrait .project-body__side { margin-top: 12px; }

/* ---------------------------------------------------------------- forms */
.form { gap: 22px; }
.form-section { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.form-section legend { padding: 0 0 10px 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.fields--pair { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; color: var(--ap-text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--ap-control-height); padding: 0 12px;
  background: var(--ap-ground); color: var(--ap-text);
  /* The field's edge must stand out from the ground by 3:1 (the line color gives 1.7:1, slate 4.3:1). */
  border: var(--ap-border-control) solid var(--ap-brand); border-radius: var(--ap-radius-control);
  font-family: var(--ap-font-text); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.band .field input, .band .field select, .panel .field input, .panel .field select, .panel .field textarea { background: var(--ap-ground); }
.field textarea { padding: 10px 12px; min-height: 132px; font-weight: 400; resize: vertical; line-height: var(--ap-text-leading); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ap-text); outline-offset: 1px; border-color: var(--ap-text); }
.field input[type="date"] { color-scheme: dark; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--ap-text); border-width: 2px; }
.hint { font-size: 14px; color: var(--ap-text-muted); }
.error-text { font-size: 14px; font-weight: 700; color: var(--ap-text); }
.error-text::before { content: "! "; }
.form-error { padding: 14px 16px; border: 2px solid var(--ap-text); font-weight: 700; }
/* Shown only on paper (static/css/print.css). */
.print-foot, .print-only { display: none !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.choices { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.choices legend { padding: 0 0 6px 0; font-size: 14px; color: var(--ap-text-muted); }
.choices__list { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: var(--ap-control-height); padding: 0 18px; cursor: pointer;
  border: var(--ap-border-control) solid var(--ap-line); color: var(--ap-text-soft); font-size: 14px; font-weight: 600;
}
.choice input:checked + span { border-color: var(--ap-accent); color: var(--ap-text); }
.choice input:focus-visible + span { outline: 2px solid var(--ap-text); outline-offset: 2px; }

.filters { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; padding-top: 24px; border-top: 1px solid var(--ap-line); }
.filters .field { flex: 0 1 280px; }
.zip-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.zip-form .field { flex: 1 1 180px; }
.zip-form .btn { min-height: var(--ap-control-height); }

.visit { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 64px; align-items: start; padding-bottom: 72px; }
.visit__about { display: flex; flex-direction: column; gap: 24px; }
.visit__about .h3 { margin-top: 8px; }
.fee { gap: 8px; padding: 24px; }
.fee__k { font-size: 14px; color: var(--ap-text-muted); }
.fee__v { font-family: var(--ap-font-display); font-stretch: var(--ap-display-stretch); font-weight: var(--ap-display-weight); font-size: 44px; line-height: 1; }
.fee__t { font-size: 17px; font-weight: 600; }
.visit__form { padding: 40px; gap: 32px; }

.studio-slot { min-height: 240px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ap-ground-deep); border-top: 1px solid var(--ap-line); }
.footer__in { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 40px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.footer__brand { flex: 1.3 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--ap-text-soft); }
.footer__brand a { text-decoration: none; }
.footer__col { flex: 1 1 170px; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col h2 { margin: 0 0 4px 0; font-size: 15px; font-weight: 700; color: var(--ap-text-muted); }
.footer__col a { color: var(--ap-text-soft); text-decoration: none; min-height: 24px; }
.footer__col a:hover { text-decoration: underline; }
.footer__base { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--ap-line); font-size: 14px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ap-text-muted); }
.footer__legal a { color: var(--ap-text-muted); }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__social a { color: var(--ap-text-soft); }
.brand--static { color: var(--ap-text); }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1100px) {
  .mainnav { gap: 4px 20px; }
  .visit { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 860px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 48px; padding-bottom: 48px; gap: 22px; }
  .section--hero { padding-top: 24px; padding-bottom: 32px; }
  .section--flush-top { padding-top: 0; }
  .cta-band { padding-top: 48px; padding-bottom: 48px; }
  .split { gap: 32px; }
  .split__main, .split__side { flex-basis: 100%; }
  .hero__text, .hero__media { flex-basis: 100%; }
  .panel { padding: 22px 18px; }
  .visit__form { padding: 22px 18px; }
  .lead { font-size: 18px; }
  .kv__row dt { flex-basis: 100%; }

  .topbar__where { flex-basis: 100%; }
  .mainbar { gap: 12px 16px; }
  .mainbar__actions { flex-basis: 100%; justify-content: space-between; gap: 12px; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; min-height: var(--ap-control-height); padding: 0 18px; margin-left: auto;
    background: transparent; color: var(--ap-text); border: var(--ap-border-control) solid var(--ap-brand);
    border-radius: var(--ap-radius-control); font-family: var(--ap-font-text); font-size: 15px; font-weight: 600; cursor: pointer;
  }
  .mainnav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .mainnav a { border-bottom: 1px solid var(--ap-line); }
  .mainnav a.is-current { border-bottom-color: var(--ap-accent); }
  .js .mainnav { display: none; }
  .js .mainnav.is-open { display: flex; }
  .faq-group { padding: 24px 0; }
  .qa summary { font-size: 17px; }
  .fields--pair { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 auto; }
  .footer__cols { gap: 32px 24px; }
  .footer__col { flex-basis: 140px; }
}

@media (max-width: 420px) {
  .tel { font-size: 14px; }
  .mainbar__actions .btn--compact { padding: 0 14px; }
  .h1 { font-size: 34px; }
}

/* ---------------------------------------------------------------- touch screens: 44px targets
   Small text links that stand alone (footer lists, breadcrumbs, the top bar, the phone number)
   get a 44px tall hit area on a touch screen; their gaps shrink so the lists do not grow much. */
@media (pointer: coarse) {
  .footer__col { gap: 0; }
  .footer__col h2 { margin-bottom: 0; }
  .footer__col a, .footer__legal a, .footer__social a, .crumbs a, .topbar__nav a, .tel, .subnav a, .subnav__label, .topbar__where {
    display: inline-flex; align-items: center; min-height: var(--ap-control-height);
  }
  .crumbs { gap: 0 10px; align-items: center; }
  .brand { min-height: var(--ap-control-height); }
}

/* ---------------------------------------------------------------- computers: pictures beside text */
@media (min-width: 1024px) {
  .lead-hero--pic { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); }
  .lead-hero--pic .lead-hero__text { padding: 64px 56px 72px max(48px, calc((100vw - 1440px) / 2 + 48px)); }
  .lead-hero--pic .lead-hero__media .pic { height: 100%; }
  .lead-hero--home.lead-hero--pic { grid-template-areas: "head head" "text media"; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); }
  /* The head spans both columns of the full-width grid, so its left padding alone lines it up with the copy below. */
  .lead-hero--home .lead-hero__head { padding: 56px 48px 40px max(48px, calc((100vw - 1440px) / 2 + 48px)); }
  .lead-hero--home .display { font-size: clamp(40px, 4.1vw, 64px); }
  /* The copy and the buttons together at the picture's top; the facts on its bottom line. */
  .lead-hero--home.lead-hero--pic .lead-hero__text { padding-top: 0; padding-bottom: 42px; padding-right: 40px; justify-content: flex-start; }   /* 42px: the picture's caption line below it */
  .lead-hero--home.lead-hero--pic .lead-hero__text .lead { margin-top: -6px; }
  .lead-hero--home.lead-hero--pic .hero-facts { margin-top: auto; }
  .lead-hero--home.lead-hero--pic .lead-hero__text .actions { flex-direction: column; align-items: stretch; }
  .lead-hero--home.lead-hero--pic .lead-hero__media img { height: clamp(420px, calc(100vh - 330px), 600px); }
  .lead-hero--pic .lead-hero__media img { flex: 1 1 auto; height: clamp(460px, calc(100vh - 200px), 680px); aspect-ratio: auto; }
  .lead-hero:not(.lead-hero--pic) .lead-hero__text { width: 100%; max-width: 1440px; margin: 0 auto; padding: 64px 48px 80px; }
  .showcase--pic { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
  .closing--pic { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; }
  .nsteps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
  .nsteps--seven { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; }   /* "Start" and six steps: 4 + 3 */
  .lead-hero--facts { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); max-width: 1440px; margin: 0 auto; }
  .lead-hero--facts .lead-hero__text { padding: 56px 48px 80px; }
  .lead-hero--facts .lead-hero__glance { padding: 96px 48px 80px 0; }
  .lead-hero--facts { box-shadow: 0 0 0 100vmax var(--ap-ground-deep); clip-path: inset(0 -100vmax); }
  .showcase--how { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .showcase--how .showcase__media { position: sticky; top: 24px; }
  .showcase--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
  .features--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
  /* Without a picture: the heading on the left, the parts on the right; as tall as the parts. */
  .showcase:not(.showcase--pic) > .showcase__text { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 64px; align-items: start; }
  .showcase:not(.showcase--pic) .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
  .showcase:not(.showcase--pic) .showcase__body > .group-title:first-child { margin-top: 0; }
  .duo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
  .lead-hero .h1 { font-size: clamp(36px, 3.7vw, 54px); }
  .showcase--group { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; }
  .showcase--rev .showcase__media { order: 2; }
  .project-body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
  .project-portrait { grid-template-columns: auto minmax(0, 1fr); gap: 64px; }
  .prj-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- tablets */
@media (max-width: 1023px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
  .wrap { padding-left: 32px; padding-right: 32px; }
  .lead-hero__text { padding: 40px 32px 56px; }
  .lead-hero--pic .lead-hero__media { order: -1; }
  .lead-hero__media .pic__cap { padding: 0 32px; }
  .lead-hero--pic .pic--hero img { aspect-ratio: 3 / 2; }
  .pcard--3, .pcard--4, .pcard--6 { grid-column: span 6; }
  .pcard--6 .pcard__title { font-size: 21px; }
  .lead-hero__glance { padding: 0 32px 56px; }
  .lead-hero--home .lead-hero__head { padding: 40px 32px 0; }
  .lead-hero--home .lead-hero__text { padding-top: 24px; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 640px) {
  .section { padding-top: 56px; padding-bottom: 56px; gap: 24px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .lead-hero__text { padding: 28px 20px 48px; gap: 20px; }
  .lead-hero__media .pic__cap { padding: 0 20px; }
  .lead-hero--pic .pic--hero img { aspect-ratio: 4 / 3; }
  .display { font-size: clamp(34px, 10vw, 44px); }
  .pcards { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pcard--3, .pcard--4, .pcard--6 { grid-column: auto; }
  .nstep__n { font-size: 32px; }
  .nsteps { gap: 28px; }
  .statement { font-size: 24px; }
  .lead-hero__glance { padding: 0 20px 48px; }
  .lead-hero--home .lead-hero__head { padding: 28px 20px 0; }
  .lead-hero--home .lead-hero__text { padding-top: 20px; }
  .gallery-grid { gap: 12px; }
  .kind { padding: 22px 20px; }
}

/* ---------------------------------------------------------------- phone header: one bar, then the call and the request */
@media (max-width: 640px) {
  .js .topbar { display: none; }
  .js .mainnav .mainnav__util { display: flex; color: var(--ap-text-soft); font-weight: 500; }
  .mainbar { min-height: 64px; padding-top: 10px; padding-bottom: 12px; row-gap: 8px; }
  .mark { width: 26px; height: 43px; }
  .brand__name { font-size: 16px; }
}

/* ---------------------------------------------------------------- wide screens: the home page's copy keeps a readable measure
   (the picture's share of the width would leave it a narrow strip); the picture grows taller instead. */
@media (min-width: 1600px) {
  .lead-hero--home.lead-hero--pic { grid-template-columns: calc(max(48px, (100vw - 1440px) / 2 + 48px) + 400px) minmax(0, 1fr); }
  .lead-hero--home.lead-hero--pic .lead-hero__media img { height: clamp(420px, calc(100vh - 330px), 680px); }
}

/* ---------------------------------------------------------------- small computers and iPads held flat: an even split */
@media (min-width: 1024px) and (max-width: 1279px) {
  .lead-hero--pic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lead-hero--pic .lead-hero__text { padding-right: 40px; }
  .lead-hero--home.lead-hero--pic { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); }
  .display { font-size: clamp(40px, 4.4vw, 54px); max-width: none; }
  .lead-hero .h1 { font-size: clamp(34px, 3.6vw, 44px); }
}

/* ---------------------------------------------------------------- header between phone and wide: keep one bar */
@media (min-width: 861px) and (max-width: 1279px) {
  .mainbar { gap: 12px 24px; }
  .mainnav { gap: 4px 18px; font-size: 14px; }
  .mainbar__actions .tel { display: none; }
}
/* An iPad held sideways (1024): the bar is a few pixels short with the web font, so the
   button fell to a second line once the font loaded (and pushed the page down). */
@media (min-width: 861px) and (max-width: 1100px) {
  .mainbar { gap: 12px 16px; }
  .mainnav { gap: 4px 14px; }
  .mainbar__actions .btn--compact { padding: 0 16px; }
}
/* Narrower still, the links take their own row under the logo and the button, by design
   rather than by wrapping when the font arrives. */
@media (min-width: 861px) and (max-width: 1023px) {
  .mainbar { row-gap: 4px; }
  .mainnav { order: 3; flex-basis: 100%; }
}

