/* ==========================================================================
   Belhaven Homes — site styles
   Palette: charcoal ink + warm oak + bone
   ========================================================================== */

:root {
  --bg: #101113;
  --bg-deep: #0b0c0d;
  --bg-raise: #17191c;
  --panel: #1d2024;
  --line: rgba(236, 232, 225, 0.12);
  --line-soft: rgba(236, 232, 225, 0.07);
  --text: #ece8e1;
  --text-dim: #b9b3a9;
  --muted: #8f897f;
  --oak: #c89b62;
  --oak-bright: #e0b87e;
  --oak-deep: #9a7140;
  --bone: #f2ede4;
  --ink-on-bone: #191a1c;
  --radius: 4px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --maxw: 78rem;
  --serif: "Fraunces", "Georgia", "Songti SC", "STSong", serif;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* grid/flex children must be allowed to shrink below their content's
   min-content width — otherwise long unbreakable content blows out the
   layout viewport on phones (horizontal scroll, misplaced fixed header) */
.card, .step, .quote, .cred, .project, .team-card, .t-item,
.stat, .split > *, .svc-row > *, .contact-grid > *, .footer-grid > * {
  min-width: 0;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--oak);
  color: #17130c;
  padding: 0.6rem 1.2rem;
  z-index: 200;
  font-weight: 500;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--oak);
  outline-offset: 3px;
}

::selection { background: var(--oak-deep); color: #fff; }

/* ---------- typography ---------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 350;
  line-height: 1.12;
  letter-spacing: 0.005em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oak);
}
.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--oak);
  opacity: 0.7;
}

.section { padding: clamp(4.5rem, 9vw, 7.5rem) var(--pad); }
.section--deep { background: var(--bg-deep); }
.section--raise { background: var(--bg-raise); }

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-top: 1rem;
}
.section-head p {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 40rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn--solid { background: var(--oak); color: #17130c; }
.btn--solid:hover { background: var(--oak-bright); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--oak); color: var(--oak-bright); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.text-link {
  color: var(--oak-bright);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.text-link .arrow { transition: transform 0.3s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
/* NOTE: backdrop-filter must live on a ::before pseudo-element, NOT on the
   header itself — a filter on an ancestor turns it into the containing block
   for fixed descendants, which crushed the full-screen mobile nav into the
   72px header bar (unscrollable, half-visible). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 12, 13, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.site-header.scrolled::before,
.site-header.on-light::before { opacity: 1; }
.site-header.scrolled,
.site-header.on-light { border-bottom-color: var(--line-soft); }
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-right: auto;
}
.brand .wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
}
.brand .wordmark em { font-style: italic; color: var(--oak); }
.brand .tag {
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

.main-nav { display: flex; gap: 1.9rem; }
.main-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current="page"] {
  color: var(--oak-bright);
  border-bottom-color: var(--oak);
}

/* language switch */
.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.lang-switch button.active {
  background: var(--oak);
  color: #17130c;
}
.lang-switch button:not(.active):hover { color: var(--text); }

.header-cta { display: inline-flex; }

/* burger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  cursor: pointer;
  position: relative;
  z-index: 120;
}
.nav-toggle span {
  display: block;
  width: 1.4rem;
  height: 1.5px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100dvh, 56rem);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img,
.hero__media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 12, 13, 0.92) 0%, rgba(11, 12, 13, 0.35) 45%, rgba(11, 12, 13, 0.25) 100%);
}
.hero__content {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  /* keep clear of the fixed transparent header even when
     the content block is taller than the viewport */
  padding: 6.5rem var(--pad) clamp(3.5rem, 8vw, 6rem);
}
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  max-width: 15ch;
  margin: 1.2rem 0 1.4rem;
}
.hero h1 em { font-style: italic; color: var(--oak-bright); }
.hero__sub {
  max-width: 34rem;
  color: var(--text-dim);
  font-size: 1.06rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}
.hero__meta {
  margin-top: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__meta span::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--oak);
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* page hero (inner pages) */
.page-hero {
  position: relative;
  padding: clamp(9rem, 18vh, 12rem) var(--pad) clamp(3.5rem, 7vw, 5rem);
  isolation: isolate;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--bg) 2%, rgba(11, 12, 13, 0.55) 60%, rgba(11, 12, 13, 0.55));
}
.page-hero .shell { max-width: var(--maxw); }
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 1rem 0 1rem;
  max-width: 18ch;
}
.page-hero .lede {
  max-width: 38rem;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ---------- stats strip ---------- */
.stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-deep);
}
.stats .shell {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
}
.stat {
  background: var(--bg-deep);
  padding: 2.2rem 1.6rem;
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--oak-bright);
}
.stat span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- intro split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split__media { position: relative; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.split__media .float-note {
  position: absolute;
  right: -1rem;
  bottom: -1.4rem;
  background: var(--oak);
  color: #17130c;
  padding: 1.1rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  max-width: 14rem;
  line-height: 1.5;
}
.split h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin: 1rem 0 1.2rem;
}
.split p + p { margin-top: 1rem; }
.split .body-copy { color: var(--text-dim); }

.value-list {
  list-style: none;
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
}
.value-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  color: var(--text-dim);
}
.value-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--oak);
  transform: translateY(-0.05rem) rotate(45deg);
}
.value-list b { color: var(--text); font-weight: 500; }

/* ---------- service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(200, 155, 98, 0.45); }
.card__media { aspect-ratio: 4 / 3.1; overflow: hidden; }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__body {
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.card__num {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--oak);
}
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.card .text-link { margin-top: 0.5rem; }

/* ---------- process stepper (home) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.step {
  background: var(--bone);
  color: var(--ink-on-bone);
  padding: 1.9rem 1.5rem 2.1rem;
  position: relative;
  transition: background 0.35s var(--ease);
}
.section--bone .steps {
  background: rgba(25, 26, 28, 0.1);
  border-color: rgba(25, 26, 28, 0.1);
}
.step:hover { background: #fff; }
.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.1rem;
  color: var(--oak-deep);
  line-height: 1;
}
.step h3 {
  font-size: 1.08rem;
  margin: 0.9rem 0 0.5rem;
  font-weight: 500;
}
.step p { font-size: 0.86rem; color: #55524c; line-height: 1.55; }
.step__dur {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a6a3f;
  border: 1px solid rgba(154, 113, 64, 0.4);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

/* light sections */
.section--bone {
  background: var(--bone);
  color: var(--ink-on-bone);
}
.section--bone .eyebrow { color: var(--oak-deep); }
.section--bone .eyebrow::before { background: var(--oak-deep); }
.section--bone .section-head p { color: #5c5850; }

/* ---------- process timeline (process page) ---------- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--line);
}
.t-item {
  position: relative;
  padding: 0 0 3.2rem 4.4rem;
}
.t-item:last-child { padding-bottom: 0; }
.t-item__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  border: 1px solid var(--oak-deep);
  background: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--oak-bright);
}
.t-item h3 {
  font-size: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}
.t-item__dur {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oak-bright);
  border: 1px solid rgba(200, 155, 98, 0.4);
  border-radius: 999px;
  padding: 0.24rem 0.7rem;
}
.t-item p { color: var(--text-dim); margin-top: 0.7rem; max-width: 42rem; }
.t-item ul {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}
.t-item ul li {
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 1.2rem;
  position: relative;
}
.t-item ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--oak-deep);
  transform: rotate(45deg);
}

/* ---------- projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.project {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.project img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11, 12, 13, 0.9), rgba(11, 12, 13, 0.05) 55%);
  transition: opacity 0.4s;
}
.project:hover img { transform: scale(1.05); }
.project__body { padding: 1.5rem; }
.project__body .k {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oak-bright);
}
.project__body h3 { font-size: 1.3rem; margin-top: 0.4rem; }
.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.6rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ---------- testimonials ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.quote {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.quote .mark {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 0.6;
  color: var(--oak);
}
.quote blockquote {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--text);
  flex: 1;
}
.quote figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.quote figcaption b {
  display: block;
  color: var(--text-dim);
  font-weight: 500;
}

/* ---------- credentials band ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.cred {
  border-left: 1px solid var(--oak-deep);
  padding-left: 1.3rem;
}
.cred h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.cred p { color: var(--muted); font-size: 0.88rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  text-align: center;
  overflow: hidden;
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 12, 13, 0.78);
}
.cta-band h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  max-width: 22ch;
  margin: 1rem auto 1.2rem;
}
.cta-band h2 em { font-style: italic; color: var(--oak-bright); }
.cta-band p { color: var(--text-dim); max-width: 34rem; margin: 0 auto 2.2rem; }
.cta-band .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.cta-band .contact-inline {
  margin-top: 2.2rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cta-band .contact-inline a { color: var(--oak-bright); }

/* ---------- services detail rows ---------- */
.svc-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line-soft);
}
.svc-row:first-of-type { border-top: 0; padding-top: 0; }
.svc-row__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.svc-row--flip { direction: rtl; }
.svc-row--flip > * { direction: ltr; }
.svc-row h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0.9rem 0 1rem;
}
.svc-row .body-copy { color: var(--text-dim); }
.svc-row ul { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.55rem; }
.svc-row ul li {
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 1.3rem;
  position: relative;
}
.svc-row ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--oak-deep);
  transform: rotate(45deg);
}
.svc-row .fits {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oak-bright);
}

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; }
.faq details {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0.2rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  transition: color 0.25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--oak-bright); }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.4rem;
  color: var(--oak);
  flex: 0 0 auto;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 0.2rem 1.5rem;
  color: var(--text-dim);
  max-width: 40rem;
}

/* ---------- about ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}
@media (max-width: 64rem) {
  .team-grid { grid-template-columns: 1fr; }
}
.team-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  background: var(--panel);
}
.team-card .role {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oak);
  margin-bottom: 0.7rem;
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.team-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.contact-info h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 1rem 0 1.2rem;
}
.contact-info .body-copy { color: var(--text-dim); }
.info-list { list-style: none; margin-top: 2rem; display: grid; gap: 1.4rem; }
.info-list .k {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oak);
  margin-bottom: 0.25rem;
}
.info-list .v { color: var(--text-dim); font-size: 0.98rem; }
.info-list .v a:hover { color: var(--oak-bright); }

.form-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--oak);
}
.form-note { color: var(--muted); font-size: 0.78rem; margin-top: 1rem; }
.form-status {
  display: none;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--oak);
  border-radius: var(--radius);
  color: var(--oak-bright);
  font-size: 0.92rem;
}
.form-status.show { display: block; }

.form-error {
  display: none;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid #b0634f;
  border-radius: var(--radius);
  color: #d98a76;
  font-size: 0.92rem;
}
.form-error.show { display: block; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
  padding: 4rem var(--pad) 2.2rem;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.footer-brand .wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
}
.footer-brand .wordmark em { font-style: italic; color: var(--oak); }
.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 1rem;
  max-width: 22rem;
}
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a, .footer-col li {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--oak-bright); }
.footer-legal {
  max-width: var(--maxw);
  margin: 3rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 64rem) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.4rem; }
  .split, .svc-row, .contact-grid { grid-template-columns: 1fr; }
  .svc-row--flip { direction: ltr; }
  .split__media .float-note { right: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats .shell { grid-template-columns: repeat(2, 1fr); }

  /* mobile nav */
  .header-inner { gap: 1rem; }
  .brand .wordmark { font-size: 1.15rem; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(11, 12, 13, 0.97);
    flex-direction: column;
    justify-content: center;
    justify-content: safe center; /* graceful on very short viewports */
    align-items: center;
    gap: 2rem;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
    z-index: 110;
    overflow-y: auto;            /* scrollable if content exceeds viewport */
    -webkit-overflow-scrolling: touch;
    padding: 5.5rem 1.5rem 2.5rem;
  }
  .main-nav.open { opacity: 1; pointer-events: auto; }
  .main-nav a { font-size: 1.15rem; }
  .lang-switch { position: relative; z-index: 120; margin-right: 0.75rem; }
}

@media (max-width: 40rem) {
  .card-grid, .steps, .project-grid, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .t-item { padding-left: 3.6rem; }
  .hero h1 { font-size: clamp(2.1rem, 8.4vw, 2.9rem); }
  .hero__sub { font-size: 0.98rem; }
  .eyebrow { letter-spacing: 0.2em; }
  .hero__meta { gap: 1.2rem; }
  .brand .tag { display: none; }
}

/* very narrow phones (≤ 22.5rem / 360px): keep header items from crowding */
@media (max-width: 22.5rem) {
  .header-inner { gap: 0.75rem; }
  .brand .wordmark { font-size: 1rem; }
  .lang-switch button { padding: 0.42rem 0.6rem; }
}
