/* Design 2, "craft": paper, slate and copper, serif headings, arched photos
   and a fish-scale slate pattern. Headings use serif fonts already built into
   phones and computers, so nothing extra has to load for them. */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f1e8;
  --paper-2: #ece5d6;
  --card: #fbf8f2;
  --slate: #1e2a31;
  --slate-2: #283740;
  --text: #23303a;
  --muted: #59656e;
  --line: #d6ccb8;
  --field: #877c69;
  --accent: #a3462a;
  --accent-dark: #86371f;
  --accent-light: #e0a184;
  --on-dark: #f1ece2;
  --on-dark-muted: #b4bec4;
  --focus: #a3462a;
  --radius: 4px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-head: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'URW Palladio L', P052, 'Book Antiqua', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --scales-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 0a8 8 0 0 0 16 0a8 8 0 0 0 16 0M-8 8a8 8 0 0 0 16 0a8 8 0 0 0 16 0a8 8 0 0 0 16 0' fill='none' stroke='%23c9bda5' stroke-width='1'/%3E%3C/svg%3E");
  --scales-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 0a8 8 0 0 0 16 0a8 8 0 0 0 16 0M-8 8a8 8 0 0 0 16 0a8 8 0 0 0 16 0a8 8 0 0 0 16 0' fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  margin: 0 0 0.5em;
  color: var(--slate);
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h3 { font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul[role='list'], ol.steps { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 1px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 0.7rem 1rem; border-radius: var(--radius);
  background: var(--slate); color: var(--paper);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.demo-strip, .materials, .cta-band, .site-footer, .mobile-bar { --focus: var(--accent-light); }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0.8em 1.5em;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: 600 0.98rem/1.15 var(--font-body);
  letter-spacing: 0.01em; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.2s ease; }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn-primary { background: var(--slate); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.45em;
  min-height: 44px; margin-top: 1rem;
  color: var(--accent); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.text-link .icon { width: 1.05em; height: 1.05em; transition: transform 0.2s ease; }
.text-link:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }
.text-link:hover .icon { transform: translateX(3px); }

.phone-link { display: inline-flex; align-items: center; gap: 0.55em; min-height: 44px; font-weight: 600; text-decoration: none; }
.phone-link .icon { width: 1.15em; height: 1.15em; color: var(--accent); }
.phone-link:hover .phone-number { text-decoration: underline; text-underline-offset: 4px; }
.phone-label { color: var(--muted); font-weight: 500; }
.phone-link-strong { font-size: 1.08rem; }
.phone-link-big { margin-bottom: 1.25rem; font-family: var(--font-head); font-size: 1.7rem; font-weight: 400; }

.eyebrow {
  display: flex; align-items: center; gap: 0.75em;
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow::before { content: ''; flex: none; width: 1.75rem; height: 1px; background: currentColor; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* ---------- Demo strip ---------- */

.demo-strip { background: var(--slate); color: var(--on-dark-muted); font-size: 0.82rem; line-height: 1.4; }
.demo-strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1.5rem; padding-block: 0.55rem; }
.demo-strip p { margin: 0; }
.demo-strip a { color: var(--accent-light); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: rgb(245 241 232 / 0.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; margin-right: auto; color: var(--slate); text-decoration: none; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.mark-ring, .mark-roof { stroke: var(--slate); }
.mark-scale { stroke: var(--accent); }
.brand-name { display: block; font-family: var(--font-head); font-size: 1.7rem; line-height: 1; letter-spacing: 0.005em; }
.brand-sub { display: block; margin-top: 0.3rem; color: var(--accent); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.42em; line-height: 1; text-transform: uppercase; }

.nav-desktop ul { display: flex; gap: 0.25rem; }
.nav-desktop a { display: block; padding: 0.55rem 0.7rem; color: var(--text); font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.nav-desktop a:hover { color: var(--accent); }
.nav-desktop a[aria-current='page'] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { display: flex; flex-direction: column; color: var(--slate); line-height: 1.2; text-decoration: none; }
.header-phone small { color: var(--muted); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.header-phone strong { font-size: 1.05rem; font-weight: 600; }
.header-phone:hover strong { color: var(--accent); }
.header-cta { min-height: 46px; padding-inline: 1.2rem; }

.nav-mobile { display: none; }
.nav-mobile summary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 46px; padding: 0.5rem 1rem;
  border: 1.5px solid var(--slate); border-radius: var(--radius);
  font-weight: 600; cursor: pointer; list-style: none;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile .icon { width: 1.25em; height: 1.25em; }
.nav-mobile .icon-close, .nav-mobile[open] .icon-open { display: none; }
.nav-mobile[open] .icon-close { display: block; }
.nav-mobile[open] summary { background: var(--slate); color: var(--paper); }
.nav-mobile-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - 84px); overflow-y: auto;
  padding: 0.25rem var(--gutter) 1.6rem;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgb(30 42 49 / 0.45);
}
.nav-mobile-panel a:not(.btn):not(.phone-link) {
  display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-size: 1.4rem; text-decoration: none;
}
.nav-mobile-panel a[aria-current='page'] { color: var(--accent); }
.nav-mobile-actions { display: grid; gap: 1rem; justify-items: center; margin-top: 1.25rem; }

/* ---------- Home: hero ---------- */

.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: end; }
.hero-copy { align-self: center; padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { margin-bottom: 1.4rem; font-size: clamp(2.7rem, 5.6vw, 4.8rem); line-height: 1.03; letter-spacing: -0.02em; }
.hero .lead { max-width: 33em; margin-bottom: 2.2rem; color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.22rem); }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: 0.93rem; font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 0.45rem; }
.hero-points .icon { color: var(--accent); stroke-width: 2.4; }
.hero-figure { margin: 0; }
.arch { overflow: hidden; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; background: var(--paper-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

.scale-band { height: 34px; background: var(--scales-light) var(--paper-2); border-block: 1px solid var(--line); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2, .duo h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.section-text { margin: 0; color: var(--muted); font-size: 1.1rem; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; max-width: none; }
.section-head-row .text-link { margin-top: 0; }

/* Statement and principles */
.statement-section { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.statement {
  max-width: 23em; margin: 0 auto clamp(2.75rem, 6vw, 4.5rem);
  color: var(--slate); font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.25; text-align: center; text-wrap: balance;
}
.statement::before {
  content: ''; display: block; width: 64px; height: 16px; margin: 0 auto 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 16'%3E%3Cpath d='M8 4a8 8 0 0 0 16 0a8 8 0 0 0 16 0a8 8 0 0 0 16 0' fill='none' stroke='%23a3462a' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); padding-top: 2.25rem; border-top: 1px solid var(--line); }
.principles h3 { font-size: 1.45rem; }
.principles p { margin: 0; color: var(--muted); }

/* ---------- Services ---------- */

.services-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.services-intro .section-head { margin-bottom: 0; }

.service-card { position: relative; }
.service-card .stretched { text-decoration: none; }
.service-card .stretched::after { content: ''; position: absolute; inset: 0; }
.service-card .stretched:focus-visible { outline: none; }
.service-card:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }

.service-cards-rows { display: grid; border-top: 1px solid var(--line); }
.service-cards-rows .service-card { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1.4rem; align-items: center; padding: 1.4rem 0.75rem; border-bottom: 1px solid var(--line); transition: background-color 0.2s ease; }
.service-cards-rows .service-card:hover { background: rgb(255 255 255 / 0.45); }
.service-cards-rows .service-card-icon { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--accent); }
.service-cards-rows .service-card-icon .icon { width: 1.5rem; height: 1.5rem; stroke-width: 1.6; }
.service-cards-rows .service-card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; align-items: center; }
.service-cards-rows h2, .service-cards-rows h3 { grid-column: 1; margin: 0 0 0.15rem; font-size: 1.45rem; font-weight: 400; }
.service-cards-rows p { grid-column: 1; margin: 0; color: var(--muted); font-size: 0.98rem; }
.service-cards-rows .more { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 50%; font-size: 0; transition: background-color 0.2s ease, border-color 0.2s ease; }
.service-cards-rows .more .icon { width: 1.1rem; height: 1.1rem; color: var(--slate); }
.service-cards-rows .service-card:hover .more { background: var(--slate); border-color: var(--slate); }
.service-cards-rows .service-card:hover .more .icon { color: var(--paper); }

.service-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.service-cards-grid .service-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); transition: border-color 0.2s ease, transform 0.2s ease; }
.service-cards-grid .service-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-cards-grid .service-card:first-child { grid-row: span 2; }
.service-cards-grid .service-card-media { aspect-ratio: 3 / 2; overflow: hidden; }
.service-cards-grid .service-card:first-child .service-card-media { flex: 1; min-height: 260px; aspect-ratio: auto; }
.service-cards-grid .service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-cards-grid .service-card:hover img { transform: scale(1.04); }
.service-cards-grid .service-card-icon { display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--scales-dark) var(--slate); color: var(--accent-light); }
.service-cards-grid .service-card-icon .icon { width: 3.5rem; height: 3.5rem; stroke-width: 1.3; }
.service-cards-grid .service-card-body { padding: 1.5rem 1.6rem 1.6rem; }
.service-cards-grid h2, .service-cards-grid h3 { font-size: 1.55rem; font-weight: 400; }
.service-cards-grid p { color: var(--muted); font-size: 0.98rem; }
.more { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--accent); font-size: 0.9rem; font-weight: 600; }
.more .icon { width: 1.05em; height: 1.05em; transition: transform 0.2s ease; }
.service-card:hover .more .icon { transform: translateX(3px); }

/* ---------- Materials ---------- */

.materials { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4.5rem, 10vw, 7.5rem); background: var(--slate); color: var(--on-dark); }
.materials-media { position: absolute; inset: 0; z-index: -2; }
.materials-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.materials::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(30 42 49 / 0.96) 0%, rgb(30 42 49 / 0.88) 45%, rgb(30 42 49 / 0.72) 100%); }
.materials-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.materials .eyebrow { color: var(--accent-light); }
.materials h2 { color: #fff; font-size: clamp(2rem, 3.8vw, 3rem); }
.materials-intro p:last-child { color: var(--on-dark-muted); font-size: 1.08rem; }
.materials-list { margin: 0; border-top: 1px solid rgb(255 255 255 / 0.16); }
.materials-list div { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); gap: 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.16); }
.materials-list dt { color: #fff; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.3; }
.materials-list dd { margin: 0; color: var(--on-dark-muted); }

/* ---------- Projects ---------- */

.projects { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.project { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.project:nth-child(even) { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.project:nth-child(even) .project-media { order: 2; }
.project-media { overflow: hidden; aspect-ratio: 3 / 2; border-radius: 2px; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-place { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 0.8rem; color: var(--accent); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.project-place .icon { width: 1.1em; height: 1.1em; }
.project h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 400; }
.project p { color: var(--muted); }
.project-details { display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; margin: 1.5rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.project-details dt { color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.project-details dd { margin: 0.15rem 0 0; font-family: var(--font-head); font-size: 1.12rem; }

/* ---------- Process ---------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.step { padding-top: 1.4rem; border-top: 1px solid var(--slate); }
.step-num { display: block; margin-bottom: 0.9rem; color: var(--accent); font-family: var(--font-head); font-size: 2.6rem; font-style: italic; line-height: 1; }
.step h3 { font-size: 1.35rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Areas and FAQ ---------- */

.duo { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.duo .section-text { margin-bottom: 1.75rem; }
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.areas li { display: flex; align-items: center; gap: 0.55rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.areas .icon { width: 1.05em; height: 1.05em; color: var(--accent); }
.areas-page .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2.5rem; font-family: var(--font-head); font-size: 1.3rem; }
.areas-missing { display: flex; align-items: center; gap: 0.6rem; margin: 2.25rem 0 0; font-size: 1.05rem; }
.areas-missing .icon { width: 1.3em; height: 1.3em; color: var(--accent); }
.areas-missing a { font-weight: 600; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.15rem 0;
  color: var(--slate); font-family: var(--font-head); font-size: 1.28rem; line-height: 1.3;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon { width: 1.9rem; height: 1.9rem; padding: 0.4rem; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); stroke-width: 1.6; transition: transform 0.25s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { max-width: 44rem; padding: 0 3rem 1.3rem 0; color: var(--muted); }
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--accent); font-weight: 600; }
.faq-page { display: grid; gap: 3.25rem; max-width: 860px; }
.faq-group h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.faq-group h2 a { text-decoration: none; }
.faq-group h2 a:hover { color: var(--accent); }

/* ---------- Call to action band ---------- */

.cta-band { padding-block: clamp(3.5rem, 8vw, 5.5rem); background: var(--scales-dark) var(--slate); color: var(--on-dark); text-align: center; }
.cta-inner { display: grid; justify-items: center; gap: 2rem; }
.cta-copy { max-width: 38rem; }
.cta-band h2 { margin-bottom: 0.6rem; color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.cta-band p { margin: 0; color: var(--on-dark-muted); font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2rem; }
.cta-band .btn-primary { background: var(--paper); color: var(--slate); }
.cta-band .btn-primary:hover { background: var(--accent-light); }
.cta-phone { color: #fff; font-size: 1.15rem; }
.cta-phone .icon { color: var(--accent-light); }
.cta-phone .phone-label { color: var(--on-dark-muted); }

/* ---------- Inner page hero ---------- */

.page-hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--scales-light); opacity: 0.8; }
.page-hero-copy { position: relative; z-index: 1; max-width: 46rem; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.05; letter-spacing: -0.02em; }
.page-hero .lead { margin-bottom: 0; color: var(--muted); font-size: clamp(1.06rem, 1.5vw, 1.2rem); }
.page-hero .actions { margin-top: 2rem; }
.page-hero-media {
  position: absolute; z-index: 1; top: clamp(1.5rem, 4vw, 2.75rem); bottom: 0;
  right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  width: min(32vw, 400px);
  overflow: hidden; border-radius: 999px 999px 0 0;
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-photo .page-hero-copy { max-width: min(46rem, calc(100% - min(32vw, 400px) - 3rem)); }
.page-hero.has-photo .page-hero-inner { min-height: clamp(18rem, 30vw, 24rem); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1.5rem; padding: 0; list-style: none; color: var(--muted); font-size: 0.86rem; }
.crumbs li + li::before { content: '/'; margin-right: 0.35rem; opacity: 0.6; }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Service page ---------- */

.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.75rem; font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.prose .intro { color: var(--slate); font-family: var(--font-head); font-size: clamp(1.3rem, 2vw, 1.5rem); line-height: 1.45; }
.prose a { color: var(--accent); font-weight: 600; text-underline-offset: 4px; }
.prose .faq { margin-top: 0.5rem; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.75rem; margin-bottom: 0.5rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.7rem; line-height: 1.5; }
.checklist .icon { width: 1.3rem; height: 1.3rem; margin-top: 0.12rem; color: var(--accent); stroke-width: 2.2; }

.service-aside { display: grid; gap: 1.25rem; }
.aside-card { padding: 1.6rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.form-card { background: var(--card); border-top: 3px solid var(--accent); }
.aside-title { margin-bottom: 0.45rem; font-size: 1.6rem; }
.aside-lead { color: var(--muted); font-size: 0.95rem; }
.aside-subtitle { margin: 0 0 0.5rem; color: var(--muted); font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.aside-note { display: flex; gap: 0.5rem; margin: 1rem 0 0; color: var(--muted); font-size: 0.94rem; }
.aside-note .icon { margin-top: 0.15rem; color: var(--accent); }
.hours { display: grid; gap: 0.3rem; margin: 0; font-size: 0.95rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; text-align: right; }
.other-services ul { display: grid; }
.other-services a { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-weight: 500; text-decoration: none; }
.other-services li:last-child a { border-bottom: 0; }
.other-services a .icon:first-child { color: var(--accent); }
.other-services .arrow { margin-left: auto; width: 1.05em; height: 1.05em; transition: transform 0.2s ease; }
.other-services a:hover { color: var(--accent); }
.other-services a:hover .arrow { transform: translateX(3px); }

/* ---------- Forms ---------- */

.quote-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.quote-form.compact { gap: 0.85rem; }
.quote-form .field-wide, .quote-form .btn, .quote-form .form-privacy, .quote-form .form-demo-note { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; font-weight: 600; }
.field .optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.85rem;
  border: 1px solid var(--field); border-radius: var(--radius);
  background: #fffdf9; color: var(--text);
  font: inherit; font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e2a31' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 1.1rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(163 70 42 / 0.25); }
.form-demo-note {
  display: flex; align-items: flex-start; gap: 0.5rem; margin: 0;
  padding: 0.6rem 0.8rem; border: 1px dashed #c4865f; border-radius: var(--radius);
  background: #faeee4; color: #6a2f1b; font-size: 0.85rem; line-height: 1.4;
}
.form-demo-note .icon { width: 1.15em; height: 1.15em; margin-top: 0.05rem; }
.form-privacy { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.form-privacy a { color: var(--accent); }

/* ---------- About and contact ---------- */

.about-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.value { padding-top: 1.4rem; border-top: 1px solid var(--slate); }
.value h3 { font-size: 1.4rem; }
.value p { margin: 0; color: var(--muted); }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.trust li { display: flex; gap: 0.8rem; align-items: flex-start; }
.trust .icon { width: 1.6rem; height: 1.6rem; color: var(--accent); stroke-width: 1.6; }
.trust strong { display: block; color: var(--slate); font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.trust span { display: block; color: var(--muted); font-size: 0.9rem; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-form-card { padding: clamp(1.5rem, 3vw, 2.4rem); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); scroll-margin-top: 110px; }
.contact-form-card h2 { font-size: 2rem; }
.contact-aside { display: grid; gap: 1.25rem; }
.next-steps { display: grid; gap: 0.8rem; margin: 0.75rem 0 0; padding: 0; list-style: none; counter-reset: next; }
.next-steps li { position: relative; padding-left: 2.2rem; counter-increment: next; line-height: 1.5; }
.next-steps li::before { content: counter(next); position: absolute; left: 0; top: -0.2rem; color: var(--accent); font-family: var(--font-head); font-size: 1.5rem; font-style: italic; }

/* ---------- Simple pages ---------- */

.simple-page { padding-block: clamp(4rem, 10vw, 7.5rem); }
.simple-page h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.simple-page .lead { color: var(--muted); font-size: 1.15rem; }
.simple-page .actions { margin-top: 2rem; }
.simple-icon { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; margin-bottom: 1.5rem; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); }
.simple-icon .icon { width: 1.8rem; height: 1.8rem; stroke-width: 2.2; }
.simple-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin-top: 1.5rem; }
.simple-links a { color: var(--accent); font-weight: 600; text-underline-offset: 5px; }
.privacy h2 { font-size: 1.7rem; }
.note { padding: 1rem 1.2rem; border-left: 3px solid var(--accent); background: var(--paper-2); }

/* ---------- Footer ---------- */

.site-footer { background: #172127; color: var(--on-dark-muted); font-size: 0.97rem; }
.site-footer::before { content: ''; display: block; height: 22px; background: var(--scales-dark) var(--slate); border-bottom: 1px solid rgb(255 255 255 / 0.06); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem) 3rem; }
.site-footer .brand { margin-bottom: 1.2rem; color: #fff; }
.site-footer .mark-ring, .site-footer .mark-roof { stroke: var(--on-dark); }
.site-footer .mark-scale { stroke: var(--accent-light); }
.site-footer .brand-sub { color: var(--accent-light); }
.site-footer h2 { margin-bottom: 1rem; color: #fff; font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 0.55rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand p { max-width: 24rem; }
.footer-phone { margin-bottom: 1rem; color: #fff !important; font-family: var(--font-head); font-size: 1.5rem; font-weight: 400; }
.footer-phone .icon { color: var(--accent-light); }
.site-footer .hours { font-size: 0.9rem; }
.site-footer .hours dt { color: var(--on-dark-muted); }
.site-footer .hours dd { color: var(--on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.4rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--accent-light); }

.mobile-bar { display: none; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.07s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.14s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.21s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.28s; }
  .arch { animation: unveil 1.2s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Smaller screens ---------- */

@media (max-width: 1140px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
}

@media (max-width: 960px) {
  .hero-grid, .services-split, .materials-grid, .duo, .about-layout, .service-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 0; }
  .arch { aspect-ratio: 5 / 4; border-radius: 240px 240px 0 0; }
  .principles, .values { grid-template-columns: minmax(0, 1fr); }
  .project, .project:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .project:nth-child(even) .project-media { order: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
  .service-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .areas-page .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-figure { aspect-ratio: 5 / 4; border-radius: 240px 240px 0 0; }
  .page-hero-media { position: relative; right: auto; top: auto; bottom: auto; width: auto; height: clamp(200px, 40vw, 300px); margin: 0 var(--gutter) 2rem; border-radius: 200px 200px 0 0; }
  .page-hero.has-photo { padding-top: 1.5rem; }
  .page-hero.has-photo .page-hero-copy { max-width: 46rem; }
  .page-hero.has-photo .page-hero-inner { min-height: 0; }
}

@media (max-width: 760px) {
  .header-actions { display: none; }
  .header-inner { min-height: 70px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.45rem; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0.6rem;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: rgb(245 241 232 / 0.98); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgb(30 42 49 / 0.12);
    --focus: var(--accent);
  }
  .mobile-bar .btn { min-height: 50px; padding: 0.6em 0.8em; }
  .btn-call { border-color: var(--slate); color: var(--slate); }
  .btn-call .icon { color: var(--accent); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero .actions .btn { flex: 1 1 100%; }
  .quote-form { grid-template-columns: minmax(0, 1fr); }
  .steps, .checklist, .service-cards-grid, .trust, .footer-grid, .areas-page .areas { grid-template-columns: minmax(0, 1fr); }
  .service-cards-grid .service-card:first-child { grid-row: auto; }
  .service-cards-grid .service-card:first-child .service-card-media { min-height: 0; aspect-ratio: 3 / 2; }
  .service-cards-rows .service-card { grid-template-columns: 2.8rem minmax(0, 1fr); gap: 1rem; padding-inline: 0.25rem; }
  .service-cards-rows .service-card-icon { width: 2.8rem; height: 2.8rem; }
  .service-cards-rows .more { display: none; }
  .materials-list div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .areas { grid-template-columns: minmax(0, 1fr); }
  .faq-answer { padding-right: 0; }
  .page-hero .actions .btn, .cta-actions .btn { flex: 1 1 100%; }
}
