:root {
  --paper: #f7f6f1;
  --surface: #fffdf7;
  --ink: #19242a;
  --muted: #525e61;
  --line: #d8d9d2;
  --navy: #17252c;
  --deep: #111d24;
  --accent: #fa885e;
  --accent-dark: #963d20;
  --heading: "Avenir Next", Avenir, Arial, sans-serif;
  --body: system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.6 var(--body);
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; object-fit: cover; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ab421c; outline-offset: 4px; }
.skip {
  position: fixed;
  z-index: 9;
  top: 8px;
  left: 8px;
  padding: 10px;
  background: var(--surface);
  transform: translateY(-150%);
}
.skip:focus { transform: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap { width: min(1230px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 88px; }

.header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid #d7d9d2;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  min-height: 74px;
}
.mark {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  font: 750 13px/.97 var(--heading);
  letter-spacing: .14em;
  white-space: nowrap;
}
.mark strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.035em;
  margin-top: 2px;
}
.orange { color: var(--accent-dark); }
.brand-icon {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  width: 33px;
  height: 33px;
  padding: 6px;
  background: var(--navy);
  transform: skewY(-4deg);
}
.brand-icon i { background: var(--accent); height: 8px; }
.brand-icon i:nth-child(2) { height: 14px; }
.brand-icon i:nth-child(3) { height: 21px; }
nav { display: flex; gap: clamp(13px, 2.6vw, 34px); }
nav a { font-size: 13px; font-weight: 700; white-space: nowrap; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-action { justify-self: end; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: #fffdf7;
}
.hero-photo, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo { object-position: 63% 54%; }
.hero::after {
  content: "";
  background: linear-gradient(90deg, #101a23ee 0%, #101a23aa 37%, #101a2320 72%),
    linear-gradient(0deg, #111b24aa, transparent 42%);
}
.hero-inner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(510px, 49vw, 680px);
  padding-block: 54px 76px;
}
.hero-copy { max-width: 650px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: #ffc0a6;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow > span { width: 21px; height: 2px; background: currentColor; }
.eyebrow.ink { color: var(--accent-dark); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: var(--heading);
  font-weight: 790;
  letter-spacing: -.074em;
  line-height: .98;
}
h1 { font-size: clamp(66px, 8.3vw, 121px); margin-bottom: 22px; }
h2 { font-size: clamp(42px, 5.3vw, 76px); margin-bottom: 0; }
h1 em, h2 em { font-style: normal; }
h1 em { color: #ff9e78; }
h2 em { color: #687378; }
.hero-text { max-width: 410px; margin-bottom: 25px; color: #f1f2ee; font-size: 16px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  transition: background .2s, color .2s, border-color .2s;
}
.button span { font-size: 16px; }
.accent { background: var(--accent); color: #1f241f; }
.accent:hover { background: #ffab8b; }
.outline { color: #fffdf7; border-color: #f7f6ef90; background: #16232b60; }
.outline:hover { background: #253843; }
.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.secondary:hover { background: #eceee6; }
.hero .accent:focus-visible, .hero .outline:focus-visible, footer a:focus-visible {
  outline-color: #ffd1bd;
}
.image-caption {
  position: absolute;
  right: 0;
  bottom: 19px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 9px;
  background: #17232bc0;
  font-size: 11px;
  font-weight: 650;
}
.image-caption i { width: 6px; height: 6px; background: var(--accent); }

.facts { background: #e8e9e2; border-bottom: 1px solid #d9dbd1; }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts-grid > div { padding: 18px 20px; border-left: 1px solid #d2d6ca; }
.facts-grid > div:first-child { padding-left: 0; border-left: 0; }
.facts strong, .facts span { display: block; }
.facts strong { font: 760 clamp(17px, 2.25vw, 28px)/1 var(--heading); letter-spacing: -.05em; }
.facts span { margin-top: 4px; color: var(--muted); font-size: 12px; }

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 27px;
}
.section-intro > p { max-width: 330px; margin: 0; color: var(--muted); }
.expertise-grid, .project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.expertise {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(15px, 2.2vw, 30px);
}
.expertise h3, .card-info h3 {
  font: 770 clamp(20px, 2.12vw, 28px)/1.08 var(--heading);
  letter-spacing: -.05em;
  margin-bottom: 8px;
}
.expertise p { color: var(--muted); margin-bottom: 19px; }
.expertise .text-link { margin-top: auto; }
.text-link { font-size: 13px; font-weight: 760; }
.text-link span { margin-left: 3px; color: var(--accent-dark); }
.service-icon {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 25px;
  margin: 10px 0 16px;
  border: 2px solid var(--accent-dark);
}
.service-icon::before, .service-icon::after { position: absolute; content: ""; }
.house-icon { border-top: 0; height: 20px; margin-top: 15px; }
.house-icon::before {
  top: -10px;
  left: 3px;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  border-left: 2px solid var(--accent-dark);
  border-top: 2px solid var(--accent-dark);
}
.house-icon::after { inset: 9px 8px 0; border: 2px solid var(--accent-dark); border-bottom: 0; }
.extension-icon { width: 18px; border-bottom-width: 3px; }
.extension-icon::after { top: 8px; left: 14px; width: 15px; height: 15px; border: 2px solid var(--accent-dark); }
.building-icon::after { inset: 5px 4px 0; background: repeating-linear-gradient(90deg, var(--accent-dark) 0 2px, transparent 2px 6px); }

.projects { background: #e9ebe4; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filters button {
  padding: 6px 10px;
  border: 1px solid #c9cec4;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.filters button:hover { border-color: var(--navy); }
.filters [aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: white; }
.project-card { background: var(--surface); border: 1px solid #d9dbd1; }
.project-card img { width: 100%; height: auto; aspect-ratio: 1.36; }
.card-info { padding: 16px; }
.card-info p, .project-meta {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .055em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.project-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 7px;
  margin-top: 13px;
  padding: 9px 0 1px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 730;
  text-align: left;
}
.project-button span { color: var(--accent-dark); }
.project-button:hover { text-decoration: underline; text-underline-offset: 4px; }

.about {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  align-items: center;
  gap: clamp(28px, 6vw, 91px);
}
.about figure { position: relative; margin: 0; }
.about figure img { width: 100%; height: auto; aspect-ratio: 1.13; }
.about figcaption { position: absolute; bottom: 0; left: 0; padding: 7px 10px; background: var(--navy); color: white; font-size: 11px; }
.about-copy h2 { font-size: clamp(37px, 4.2vw, 64px); }
.about-copy > p:not(.eyebrow) { margin: 14px 0 18px; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.timeline strong { color: var(--accent-dark); }
.timeline span { color: var(--muted); }

.method { background: var(--navy); color: #f8f8ee; padding-block: 69px; }
.method h2 em { color: #fda180; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 25px; }
.steps article { border-top: 1px solid #f7f6ef42; padding-top: 10px; }
.steps article > span { color: #ffa688; font-variant-numeric: tabular-nums; font-weight: 740; }
.steps h3 { margin: 3px 0; font: 760 26px/1.13 var(--heading); letter-spacing: -.045em; }
.steps p { margin: 0; color: #e0e4e0; font-size: 13px; }

.quote-section { background: #efeee6; }
.quote-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(25px, 6vw, 84px); align-items: start; }
.quote-intro { margin: 14px 0; max-width: 360px; color: var(--muted); }
.demo-note { color: var(--muted); font-size: 12px; max-width: 320px; }
.quote-panel { background: var(--surface); padding: clamp(15px, 3.2vw, 38px); border: 1px solid var(--line); min-width: 0; }
.form-progress {
  list-style: none;
  margin: 0 0 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.form-progress li { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 650; }
.form-progress li span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  background: #e7e9df;
  color: var(--ink);
}
.form-progress [aria-current="step"] { color: var(--ink); font-weight: 780; }
.form-progress [aria-current="step"] span { background: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font: 770 25px/1.12 var(--heading); letter-spacing: -.04em; }
label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
label span { color: var(--muted); font-size: 11px; font-weight: 500; }
input, select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  margin-top: 4px;
  padding: 7px 8px;
  border-radius: 3px;
  border: 1px solid #abb2a8;
  background: #fffefa;
  color: var(--ink);
  font-size: 16px;
}
textarea { resize: vertical; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.quote-summary { margin: 0 0 12px; }
.quote-summary div { display: grid; grid-template-columns: minmax(88px, 1fr) 1.55fr; gap: 7px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.quote-summary dt { font-weight: 720; }
.quote-summary dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.quote-result h3 { font: 780 35px/1 var(--heading); letter-spacing: -.055em; margin-bottom: 12px; }
.quote-result p:not(.eyebrow) { color: var(--muted); }

.faq { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(20px, 6vw, 84px); }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 735; }
details p { margin: 6px 0 0; color: var(--muted); }

footer { background: var(--deep); color: #fffdf7; padding: 24px 0 16px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; }
.footer-inner p { margin: 0; font-size: 13px; color: #e0e4e0; }
.footer-inner .text-link span, footer .orange { color: #ffa688; }
.footer-note { border-top: 1px solid #e9ecdf44; padding-top: 10px; color: #e0e4e0; font-size: 12px; }

dialog {
  width: min(620px, calc(100% - 24px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 15px 45px #14202877;
}
dialog::backdrop { background: #111a21c4; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; }
.dialog-header .eyebrow { margin: 0; }
.close-dialog { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); font-size: 24px; line-height: 1; }
.close-dialog:hover { background: #e8ebe3; }
dialog img { width: 100%; height: clamp(145px, 28vh, 265px); }
.dialog-content { padding: 19px; }
.dialog-content h2 { font-size: clamp(35px, 6vw, 49px); margin-bottom: 10px; }
.dialog-content p:not(.project-meta) { color: var(--muted); margin-bottom: 8px; }
.dialog-content ul { padding-left: 17px; margin: 0 0 15px; }

@media (max-width: 1020px) {
  .wrap { width: calc(100% - 56px); }
  .section { padding-block: 63px; }
  .header-inner { gap: 13px; }
}
@media (max-width: 790px) {
  html { scroll-padding-top: 73px; }
  .wrap { width: calc(100% - 34px); }
  .header-inner { min-height: 62px; grid-template-columns: 1fr auto auto; gap: 6px; }
  .header nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 6px 17px;
    background: var(--paper);
    box-shadow: 0 7px 16px #0002;
  }
  .header nav[data-open] { display: grid; gap: 0; }
  .header nav a { padding: 10px 0; }
  .menu-toggle {
    display: block;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 720;
    min-height: 40px;
    padding: 4px 7px;
  }
  .header-action { min-height: 40px; padding: 5px 7px; gap: 4px; font-size: 11px; }
  .header-action span { font-size: 12px; }
  .hero-inner { min-height: 508px; align-items: end; }
  .hero-photo { object-position: 63% 47%; }
  .hero::after { background: linear-gradient(0deg, #111b25f5 4%, #111b25bf 40%, #111b2535 90%); }
  .hero-copy { max-width: 550px; }
  h1 { font-size: clamp(53px, 10vw, 83px); }
  .hero-text { font-size: 14px; }
  .image-caption { font-size: 9px; bottom: 12px; }
  .section { padding-block: 48px; }
  .section-intro { display: grid; gap: 11px; margin-bottom: 17px; }
  .expertise-grid, .project-grid { gap: 8px; }
  .card-info { padding: 10px; }
  .about { gap: 17px; }
  .quote-grid { gap: 17px; }
  .quote-panel { padding: 13px; }
}
@media (max-width: 590px) {
  .header-action span { display: none; }
  .hero-inner { min-height: 475px; padding-bottom: 52px; }
  .hero-inner .eyebrow { font-size: 9px; margin-bottom: 10px; }
  h1 { margin-bottom: 13px; }
  .hero-text { margin-bottom: 14px; }
  .hero .button { min-height: 43px; font-size: 12px; padding-inline: 8px; gap: 6px; }
  .facts-grid > div { padding: 10px 5px; }
  .facts strong { font-size: 15px; }
  .facts span { font-size: 10px; line-height: 1.3; }
  .expertise-grid, .project-grid, .about, .quote-grid, .faq { grid-template-columns: 1fr; }
  .expertise { padding: 13px; }
  .expertise p { margin-bottom: 8px; }
  .service-icon { margin-bottom: 9px; }
  .project-card img { aspect-ratio: 1.6; }
  .about figure { grid-row: 2; }
  .about figure img { aspect-ratio: 1.4; }
  .method { padding-block: 42px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 13px; }
  .steps h3 { font-size: 23px; }
  .quote-intro { margin-bottom: 6px; }
  .demo-note { margin-bottom: 0; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { width: 100%; order: 3; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 24px); }
  .header-action { font-size: 10px; }
  .brand-icon { width: 26px; height: 28px; gap: 2px; padding: 4px; }
  .brand-icon i:nth-child(3) { height: 19px; }
  .mark { gap: 5px; font-size: 11px; }
  .mark strong { font-size: 15px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
