/* Happy Home Roofing. Sky and shelter: the weather above the roofline, calm daylight below it. */
:root {
  --rain: #F1F4F8;
  --white: #FFFFFF;
  --navy: #08154A;
  --slate: #46526B;
  --storm: #121A29;
  --storm-2: #1B2436;
  --mist: #B8C3D5;
  --cloud: #F3F6FA;
  --red: #C3112E;
  --red-deep: #A60E27;
  --sun: #F4B63F;
  --sun-deep: #9A5F07;
  --panel: #E3E9F1;
  --line: rgba(8, 21, 74, .14);
  --line-strong: rgba(8, 21, 74, .28);
  --line-dark: rgba(243, 246, 250, .16);
  --sa-accent: #C3112E;
  --sa-accent-ink: #FFFFFF;
  --display: "Montagu Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: "Proza Libre", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1320px;
  --top: 84px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 12px); }
body {
  margin: 0; background: var(--rain); color: var(--navy);
  font: 400 18px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.04;
  letter-spacing: -.012em; text-wrap: balance; font-variation-settings: "opsz" 48;
}
h1 { font-weight: 300; font-variation-settings: "opsz" 144; letter-spacing: -.018em; }
h3 { font-size: clamp(22px, 1.9vw, 27px); line-height: 1.15; font-variation-settings: "opsz" 28; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--navy); color: #fff; padding: 12px 16px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons: solid, rectangular, no icons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  background: var(--red); color: #fff; border: 0; border-radius: var(--radius);
  font: 500 16px/1.1 var(--sans); letter-spacing: .005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--red-deep); }
.btn:active { transform: translateY(1px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #0E1F63; }
.btn--light { background: var(--cloud); color: var(--navy); }
.btn--light:hover { background: #fff; }
.tel { font-family: var(--display); font-weight: 400; font-variation-settings: "opsz" 36; font-size: 21px; letter-spacing: 0; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.tel:hover { border-bottom-width: 2px; }
.textlink { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.textlink:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 var(--gutter);
  color: #fff; transition: background .35s ease, box-shadow .35s ease, color .35s ease;
}
.top__brand { display: block; width: 210px; flex: none; }
.top__brand img { width: 210px; height: 48px; }
.top__brand .logo-colour { display: none; }
.top__right { display: flex; align-items: center; gap: 14px; }
.top__tel { display: flex; align-items: baseline; gap: 8px; margin-right: 10px; text-decoration: none; }
.top__tel b { font-family: var(--display); font-weight: 400; font-variation-settings: "opsz" 36; font-size: 22px; letter-spacing: 0; }
.top__tel span { font-size: 14px; opacity: .85; }
.top__tel:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.menu-btn { min-width: 88px; }
.top .menu-btn { background: rgba(243, 246, 250, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(243, 246, 250, .38); }
.top .menu-btn:hover { background: rgba(243, 246, 250, .28); }
.top.is-dim { background: rgba(14, 20, 33, .82); box-shadow: 0 1px 0 var(--line-dark); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top.is-solid { background: rgba(241, 244, 248, .94); color: var(--navy); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.top.is-solid .logo-white { display: none; }
.top.is-solid .logo-colour { display: block; }
.top.is-solid .menu-btn { background: var(--navy); color: #fff; box-shadow: none; }
.top.is-solid .menu-btn:hover { background: #0E1F63; }

/* ---------- the menu: the house index ---------- */
.index { position: fixed; inset: 0; z-index: 80; background: var(--storm); color: var(--cloud); overflow-y: auto; }
.index[hidden] { display: none; }
.index__bar { display: flex; align-items: center; justify-content: space-between; height: var(--top); padding: 0 var(--gutter); }
.index__bar img { width: 210px; height: 48px; }
.index__close { background: var(--cloud); color: var(--navy); }
.index__close:hover { background: #fff; }
.house-nav { position: relative; width: min(1080px, calc(100% - 2 * var(--gutter))); aspect-ratio: 1000 / 560; margin: 4px auto 28px; }
.house-nav__drawing { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(243, 246, 250, .24); }
.house-nav__group { position: absolute; }
.house-nav__group h2 { font: 500 13px/1.3 var(--sans); letter-spacing: .02em; color: var(--mist); margin: 0 0 6px; }
.house-nav__group ul { list-style: none; }
.house-nav__group li { break-inside: avoid; }
.house-nav__group a { display: inline-block; padding: 2px 0; font-family: var(--display); font-weight: 400; font-variation-settings: "opsz" 36; font-size: clamp(17px, 1.55vw, 22px); line-height: 1.28; text-decoration: none; }
.house-nav__group a:hover, .house-nav__group a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.house-nav__group a small { display: block; font-family: var(--sans); font-size: 12.5px; line-height: 1.2; color: var(--mist); }
.g-roof { left: 29.5%; top: 18.5%; width: 41%; columns: 2; column-gap: 5%; }
.g-roof h2 { column-span: all; text-align: center; }
.g-eaves { left: 0; top: 49.5%; width: 10.5%; }
.g-walls { left: 14.5%; top: 53.5%; width: 26%; }
.g-ground { left: 47%; top: 53.5%; width: 40%; columns: 2; column-gap: 8%; }
.g-ground h2 { column-span: all; }
.index__foot { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter) 48px; display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; color: var(--mist); font-size: 16px; }
.index__foot a { color: var(--cloud); }
body.menu-open { overflow: hidden; }

/* ================================================================ HOME: the journey */
#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; display: none; }
.has-3d #world { display: block; }
.world-live #world { opacity: 1; }
.vignette { display: none; }
.world-live .vignette { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 42%, rgba(5, 8, 14, 0) 58%, rgba(5, 8, 14, .38) 100%); }
.home { background: var(--storm); }
.journey { position: relative; z-index: 1; color: var(--cloud); }

/* the still world: what everyone sees before (or without) the 3D */
.still { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.still img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.world-live .still { opacity: 0; transition: opacity 1.2s ease; }

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: calc(var(--top) + 3vh) var(--gutter) 30px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 18%, rgba(10, 14, 24, .52), rgba(10, 14, 24, 0) 70%); }
.hero__copy { max-width: 1060px; margin: 0 auto; text-align: center; align-self: start; padding-top: 3vh; }
.hero h1 { font-size: clamp(50px, 6.9vw, 106px); line-height: .98; color: #fff; text-shadow: 0 2px 30px rgba(6, 9, 16, .35); }
.hero__lede { max-width: 52ch; margin: 20px auto 26px; font-size: clamp(18px, 1.45vw, 21px); color: var(--cloud); text-shadow: 0 1px 14px rgba(6, 9, 16, .6); }
.hero .actions { justify-content: center; }
.hero .tel { color: #fff; }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.rating { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.rating__num { font-family: var(--display); font-weight: 300; font-variation-settings: "opsz" 144; font-size: 56px; line-height: 1; }
.rating__txt { font-size: 15px; line-height: 1.35; }
.stars { color: var(--sun); letter-spacing: 2px; font-size: 17px; }
.rating:hover .rating__txt span { text-decoration: underline; text-underline-offset: .2em; }
.hero__cue { margin: 0 auto 0 0; font-size: 14px; color: var(--mist); }
.hero__foot .rating { margin-right: auto; }
.hero__cue { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); margin: 0; }

.act { position: relative; min-height: 124vh; display: flex; align-items: center; padding: 12vh var(--gutter); isolation: isolate; }
.act--right { justify-content: flex-end; }
.act--center { justify-content: center; }
.panel {
  width: min(540px, 100%); padding: 38px 40px 40px; border-radius: 6px;
  background: rgba(13, 19, 31, .78); box-shadow: inset 0 0 0 1px var(--line-dark), 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.panel h2 { font-size: clamp(36px, 3.6vw, 56px); color: #fff; margin-bottom: 18px; }
.panel p { color: var(--cloud); }
.panel .more { color: var(--mist); font-size: 16px; }
.panel .actions { margin-top: 26px; }
.panel .tel { color: #fff; font-size: 19px; }
.panel ul.facts { list-style: none; margin: 18px 0 0; border-top: 1px solid var(--line-dark); }
.panel ul.facts li { padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: 16px; color: var(--cloud); }
.panel ol.steps { list-style: none; margin: 20px 0 0; counter-reset: s; }
.panel ol.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 6px 10px; padding: 9px 0; border-top: 1px solid var(--line-dark); font-size: 16px; }
.panel ol.steps li::before { content: counter(s); font-family: var(--display); font-size: 22px; line-height: 1.2; color: var(--sun); }
.panel--day { background: rgba(250, 252, 254, .9); color: var(--navy); box-shadow: 0 30px 70px -30px rgba(8, 21, 74, .45); }
.panel--day h2 { color: var(--navy); }
.panel--day p { color: var(--navy); }
.panel--day .tel { color: var(--navy); }
.panel--day blockquote { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 17px; }
.panel--day blockquote footer { margin-top: 8px; font-size: 15px; color: var(--slate); }
.act figure.act__still { display: none; }
.finale { height: 92vh; }
@media (prefers-reduced-motion: reduce) { html:not(.has-3d) body .act figure.act__still { display: none; } html:not(.has-3d) body .act { padding: 56px var(--gutter); } }
html:not(.has-3d) .hero__cue { display: none; }
.still picture { display: block; width: 100%; height: 100%; }
html:not(.has-3d) .finale { display: none; }

/* no 3D (no WebGL, no JS, reduced motion): the journey becomes stills and words */
html:not(.has-3d) .home { background: var(--storm); }
html:not(.has-3d) .act { min-height: 0; padding: 72px var(--gutter); gap: 40px; flex-wrap: wrap; justify-content: center; }
html:not(.has-3d) .act figure.act__still { display: block; margin: 0; width: min(720px, 100%); }
html:not(.has-3d) .act figure.act__still img { border-radius: 6px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
html:not(.has-3d) .act--right figure.act__still { order: -1; }
html:not(.has-3d) .act--center { flex-direction: column; align-items: center; }

/* ================================================================ after the storm */
.after { position: relative; z-index: 2; background: var(--rain); color: var(--navy); }
.after > section, .page section.band { padding: clamp(64px, 9vw, 120px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 60px; align-items: end; margin-bottom: 48px; }
.band__head h2 { font-size: clamp(38px, 4.2vw, 64px); }
.band__head p { color: var(--slate); max-width: 58ch; margin: 0; }

/* the proof */
.proof__top { display: grid; grid-template-columns: auto 1fr; gap: 20px 48px; align-items: center; margin-bottom: 48px; }
.proof__num { font-family: var(--display); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(110px, 13vw, 200px); line-height: .8; letter-spacing: -.03em; }
.proof__label h2 { font-size: clamp(30px, 3vw, 44px); margin-bottom: 10px; }
.proof__label .stars { color: var(--sun-deep); font-size: 22px; }
.proof__label p { margin: 10px 0 0; color: var(--slate); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.quote { margin: 0; padding: 30px 30px 26px; background: var(--white); border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 24px 50px -40px rgba(8, 21, 74, .5); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 20px; font-size: 17px; line-height: 1.6; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--slate); }
.quote figcaption b { color: var(--navy); font-weight: 500; }
.mono { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: var(--navy); font: 500 15px/1 var(--sans); }
.quote .stars { color: var(--sun-deep); font-size: 14px; letter-spacing: 1px; }
.proof__links { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }

/* the services index */
.services-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; list-style: none; border-top: 1px solid var(--line-strong); }
.services-list li { border-bottom: 1px solid var(--line); }
.services-list a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 22px 0; text-decoration: none; }
.services-list a b { font-family: var(--display); font-weight: 400; font-variation-settings: "opsz" 36; font-size: clamp(24px, 2.2vw, 31px); line-height: 1.15; }
.services-list a span { color: var(--slate); font-size: 16px; }
.services-list a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* their work: a strip of their own photographs */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 30%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; background: var(--panel); }
.strip figcaption { margin-top: 10px; font-size: 15px; color: var(--slate); }
.strip__nav { display: flex; gap: 10px; }

/* people */
.people { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; }
.team img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
.team b { display: block; margin-top: 12px; font-family: var(--display); font-weight: 400; font-size: 24px; }
.team span { color: var(--slate); font-size: 15px; }
.letter { font-size: 19px; }
.letter .sig { margin-top: 18px; color: var(--slate); font-size: 16px; }
.letter h2 { font-size: clamp(34px, 3.4vw, 52px); margin-bottom: 20px; }

/* credentials */
.badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; list-style: none; }
.badges img { height: 58px; width: auto; opacity: .8; filter: contrast(1.1); }
.badges li:first-child img { height: 64px; }
.badges .tall img { height: 78px; }
.creds-note { margin-top: 26px; font-size: 15px; color: var(--slate); }

/* offices and the map */
.offices { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.office-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.office-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.office-list h3 { margin-bottom: 6px; }
.office-list address { font-style: normal; color: var(--slate); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 6px; background: var(--panel); display: block; }
.towns { margin-top: 26px; font-size: 16px; color: var(--slate); }
.towns b { color: var(--navy); font-weight: 500; }

/* the closing band */
.closer { background: var(--navy); color: #fff; padding: clamp(64px, 9vw, 120px) 0; }
.closer .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 60px; align-items: center; }
.closer h2 { font-size: clamp(40px, 4.6vw, 70px); }
.closer p { color: var(--mist); margin: 16px 0 0; max-width: 52ch; }
.closer .tel { color: #fff; }

/* ================================================================ inner pages */
.sky { position: relative; min-height: clamp(470px, 64vh, 660px); display: flex; align-items: flex-start; color: #fff; background: var(--storm); isolation: isolate; overflow: hidden; }
.sky__img { position: absolute; inset: 0; z-index: -2; }
.sky__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.sky::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 12, 22, .62) 0%, rgba(8, 12, 22, .34) 40%, rgba(8, 12, 22, 0) 62%), linear-gradient(180deg, rgba(8, 12, 22, .5) 0%, rgba(8, 12, 22, 0) 45%); }
.sky .wrap { width: 100%; padding-top: calc(var(--top) + 26px); padding-bottom: 48px; }
.crumbs { font-size: 15px; color: var(--cloud); margin-bottom: 26px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--cloud); }
.sky h1 { font-size: clamp(46px, 5.6vw, 90px); max-width: 12ch; text-shadow: 0 2px 26px rgba(6, 9, 16, .4); }
.sky__lede { max-width: 46ch; margin: 18px 0 26px; font-size: clamp(18px, 1.4vw, 21px); color: var(--cloud); text-shadow: 0 1px 12px rgba(6, 9, 16, .6); }
.sky .tel { color: #fff; }

.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 64px; padding: clamp(56px, 7vw, 96px) 0; }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(32px, 3vw, 46px); margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; }
.prose p, .prose li { max-width: 68ch; }
.prose ul { margin: 0 0 1em 1.1em; }
.prose ul li { margin: 0 0 .4em; padding-left: 4px; }
.prose figure { margin: 34px 0; }
.prose figure img { border-radius: 6px; width: 100%; }
.prose figcaption { margin-top: 10px; font-size: 15px; color: var(--slate); }
.prose figure.narrow { max-width: 480px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 34px 0; }
.duo figure { margin: 0; }
.duo img { aspect-ratio: 4 / 3; object-fit: cover; }
.lede-big { font-size: clamp(20px, 1.6vw, 23px); line-height: 1.55; }
.steps { list-style: none; counter-reset: s; margin: 20px 0 10px; border-top: 1px solid var(--line-strong); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 300; font-variation-settings: "opsz" 144; font-size: 44px; line-height: .9; color: var(--red-deep); grid-row: span 2; }
.steps b { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.2; }
.steps span { color: var(--slate); }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin: 16px 0 8px; list-style: none; }
.prose .facts-grid { margin-left: 0; }
.facts-grid li { padding: 18px 0; border-top: 1px solid var(--line); }
.facts-grid b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.2; margin-bottom: 4px; }
.facts-grid span { color: var(--slate); font-size: 16px; }
.aside { position: relative; }
.aside__card { position: sticky; top: calc(var(--top) + 24px); padding: 30px; background: var(--white); border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 24px 50px -40px rgba(8, 21, 74, .5); }
.aside__card h2 { font-size: 30px; margin-bottom: 12px; }
.aside__card p { font-size: 16px; color: var(--slate); }
.aside__card .btn { width: 100%; margin-top: 6px; }
.aside__card .tel { display: inline-block; margin-top: 18px; }
.aside__card .rate { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--slate); }
.aside__card .rate b { color: var(--navy); font-family: var(--display); font-weight: 300; font-size: 34px; font-variation-settings: "opsz" 144; margin-right: 6px; }
.aside__card .rate .stars { color: var(--sun-deep); }

.faq { border-top: 1px solid var(--line-strong); margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--display); font-weight: 400; font-variation-settings: "opsz" 36; font-size: clamp(20px, 1.6vw, 23px); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--sans); font-size: 26px; font-weight: 400; color: var(--red-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 20px; max-width: 68ch; }
.faq details > div p:last-child { margin-bottom: 0; }

.said { margin: 34px 0; padding: 28px 30px; background: var(--white); border-radius: 6px; box-shadow: 0 1px 0 var(--line); }
.said blockquote { margin: 0; font-size: 18px; }
.said blockquote p:last-child { margin-bottom: 0; }
.said figcaption { margin-top: 14px; font-size: 15px; color: var(--slate); }
.said figcaption b { color: var(--navy); font-weight: 500; }

/* services hub */
.hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; }
.hub h2 { font-size: clamp(30px, 2.6vw, 40px); margin-bottom: 14px; }
.hub p { color: var(--slate); }
.hub ul { list-style: none; border-top: 1px solid var(--line-strong); }
.hub li { border-bottom: 1px solid var(--line); }
.hub li a { display: block; padding: 13px 0; text-decoration: none; font-size: 18px; }
.hub li a:hover { text-decoration: underline; text-underline-offset: .2em; }
.hub li span { display: block; padding: 13px 0; color: var(--slate); font-size: 17px; }

/* our work */
.projects { display: grid; gap: 80px; }
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.project:nth-child(even) .project__text { order: 2; }
.project h2 { font-size: clamp(34px, 3.2vw, 50px); margin-bottom: 16px; }
.project ul { list-style: none; margin: 18px 0; border-top: 1px solid var(--line); }
.project ul li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.project__meta { font-size: 15px; color: var(--slate); }
.project__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.project__photos button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 5px; overflow: hidden; }
.project__photos button:first-child { grid-column: span 3; }
.project__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.project__photos button:hover img { transform: scale(1.03); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; border-radius: 5px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.03); }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(8, 12, 22, .9); }
dialog.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 4px; }
dialog.lightbox figcaption { color: var(--cloud); text-align: center; margin-top: 12px; font-size: 16px; }
.lightbox__bar { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }

/* reviews page */
.rv-list { columns: 3 340px; column-gap: 22px; }
.rv { break-inside: avoid; margin: 0 0 22px; padding: 26px 26px 22px; background: var(--white); border-radius: 6px; box-shadow: 0 1px 0 var(--line); }
.rv header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rv header b { display: block; font-weight: 500; }
.rv header span { font-size: 14px; color: var(--slate); }
.rv .stars { color: var(--sun-deep); font-size: 14px; }
.rv blockquote { margin: 0; font-size: 17px; line-height: 1.6; white-space: pre-line; }
.rv.is-clamped blockquote { max-height: 11.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.read-more { margin-top: 10px; padding: 8px 14px; min-height: 40px; border: 0; border-radius: var(--radius); background: var(--panel); color: var(--navy); font: 500 15px/1 var(--sans); cursor: pointer; }
.read-more:hover { background: #D5DDE8; }
.reply { margin-top: 16px; padding: 14px 16px; background: var(--rain); border-radius: 4px; font-size: 15px; white-space: pre-line; }
.reply b { display: block; font-weight: 500; margin-bottom: 4px; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 24px; list-style: none; border-top: 1px solid var(--line-strong); }
.wall li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.wall .stars { color: var(--sun-deep); font-size: 13px; }

/* contact */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 16px; }
.form label span { font-weight: 400; color: var(--slate); font-size: 14px; }
.form input, .form select, .form textarea { font: 400 17px/1.4 var(--sans); color: var(--navy); background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 13px 14px; min-height: 50px; width: 100%; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--navy); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__status { min-height: 1.6em; font-size: 16px; }
.form__status.is-err { color: var(--red-deep); }
.form__status.is-ok { color: #1D6B3A; }

/* ================================================================ footer */
.foot { position: relative; z-index: 2; background: var(--navy); color: #fff; padding: 72px 0 40px; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.25fr; gap: 40px; }
.foot__brand img { width: 230px; height: 53px; }
.foot__brand p { margin-top: 20px; color: var(--mist); font-size: 16px; max-width: 34ch; }
.foot h2 { font: 500 15px/1.3 var(--sans); letter-spacing: .02em; color: var(--mist); margin: 0 0 14px; }
.foot ul { list-style: none; }
.foot li a { display: inline-block; padding: 5px 0; text-decoration: none; font-size: 16px; }
.foot li a:hover { text-decoration: underline; text-underline-offset: .2em; }
.foot address { font-style: normal; font-size: 16px; color: var(--cloud); line-height: 1.6; }
.foot address + address { margin-top: 14px; }
.foot address b { color: #fff; font-weight: 500; }
.foot a { color: #fff; }
.foot__base { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(243, 246, 250, .16); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 14px; color: var(--mist); }
.foot__base a { color: var(--cloud); }
.social { display: flex; flex-wrap: wrap; gap: 18px; }

/* ================================================================ responsive */
@media (max-width: 1100px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .page-body { grid-template-columns: minmax(0, 1fr); }
  .aside__card { position: static; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .quotes .quote:nth-child(3) { display: none; }
  .people, .offices, .closer .wrap { grid-template-columns: 1fr; }
  .house-nav__group a { font-size: 19px; }
}
@media (max-width: 860px) {
  .top__tel { display: none; }
  .band__head { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) .project__text { order: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub { grid-template-columns: 1fr; }
  .house-nav__drawing { display: none; }
  .house-nav { display: grid; gap: 28px; margin-top: 16px; }
  .house-nav__group { position: static; transform: none; width: auto; columns: 1; }
  .g-roof h2 { text-align: left; }
}
@media (max-width: 760px) {
  :root { --top: 70px; }
  body { font-size: 17px; }
  .top { gap: 10px; }
  .top__brand, .top__brand img { width: 150px; }
  .top__brand img { height: 34px; }
  .top .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
  .menu-btn { min-width: 0; }
  .index__bar img { width: 150px; height: 34px; }
  .hero { padding-top: calc(var(--top) + 2vh); }
  .hero__copy { padding-top: 2vh; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 56px); }
  .hero__lede { margin: 16px auto 22px; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__cue { display: none; }
  .rating__num { font-size: 44px; }
  .act { min-height: 118vh; align-items: flex-end; padding: 10vh 16px 14vh; }
  .panel ul.facts, .panel ol.steps, .panel .more, .panel--day blockquote { display: none; }
  html:not(.has-3d) .panel ul.facts, html:not(.has-3d) .panel ol.steps, html:not(.has-3d) .panel .more { display: block; }
  .panel { padding: 28px 24px 30px; }
  .panel h2 { font-size: 34px; }
  .quotes { grid-template-columns: 1fr; }
  .quotes .quote:nth-child(3) { display: flex; }
  .services-list { grid-template-columns: 1fr; }
  .strip { grid-auto-columns: 78%; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .team b { font-size: 20px; }
  .badges { justify-content: flex-start; gap: 22px 30px; }
  .badges img { height: 44px; }
  .badges li:first-child img { height: 50px; }
  .badges .tall img { height: 60px; }
  .foot__grid { grid-template-columns: 1fr; }
  .sky { min-height: 520px; }
  .sky .wrap { padding-bottom: 36px; }
  .sky h1 { font-size: clamp(40px, 11vw, 54px); }
  .sky__img img { object-position: 58% 80%; }
  .facts-grid { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .project__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project__photos button:first-child { grid-column: span 2; }
  .rv-list { columns: 1; }
  .proof__top { grid-template-columns: 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.still-mode .journey, .still-mode .top, .still-mode .after, .still-mode .foot, .still-mode .hero, .still-mode .act { visibility: hidden; }
.still-mode .vignette { display: none !important; }
