/* ==========================================================================
   Ebbighausen Homes, Inc. - homepage concept
   Design language: Earthy Organic (type, spacing, composition, motion only)
   Palette: Ebbighausen's own. Navy #1a2545 is their logo mark and their CSS
   --midnight-blue. #242425 is their --black-2 (hero scrims). #bebdbe is their
   --silver. #f4f5f7 is their --white-smoke. The timber tones are sampled from
   their own project photography (wood siding, stone, golden hour).
   No em dashes anywhere. No emoji. ASCII source.
   ========================================================================== */

:root {
  /* their navy, deepened within family for dark bands */
  --ink:          #1a2545;
  --ink-deep:     #121a31;
  --ink-soft:     #24314f;
  --char:         #242425;

  /* their neutrals */
  --paper:        #f4f5f7;
  --paper-2:      #e7e9ee;
  --silver:       #bebdbe;
  --white:        #ffffff;

  /* accent, sampled from their photography */
  --timber:       #a37f52;
  --timber-deep:  #6f5433;
  --timber-light: #c7a87f;
  --timber-pale:  #dcc4a3;
  --timber-veil:  rgba(163, 127, 82, 0.30);

  /* text */
  --text-dark:        #16203a;
  --text-body:        #3f4652;
  --text-muted:       #5c6474;
  --text-light:       #f2f3f6;
  --text-light-muted: rgba(242, 243, 246, 0.74);

  /* type */
  --font-display: "Alegreya", Georgia, "Times New Roman", serif;
  --font-body:    "Chivo", "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --wrap:      min(90%, 1180px);
  --wrap-wide: min(94%, 1440px);
  --pad-y:     clamp(3.5rem, 7vw, 5.5rem);
  --nav-h:     78px;
  --radius:    14px;
  --radius-sm: 10px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.72;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.008em;
  margin: 0;
  color: var(--text-dark);
}
p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.wrap { width: var(--wrap); margin-inline: auto; }
.wrap-wide { width: var(--wrap-wide); margin-inline: auto; }
.section { padding-block: var(--pad-y); position: relative; }

.band-dark { background: var(--ink-deep); color: var(--text-light-muted); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: var(--text-light); }
.band-ink { background: var(--ink); color: var(--text-light-muted); }
.band-ink h2, .band-ink h3, .band-ink h4 { color: var(--text-light); }
.band-paper { background: var(--paper); }
.band-paper-2 { background: var(--paper-2); }

/* ---------- shared type pieces ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.735rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--timber-deep);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.4rem;
}
.eyebrow::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  max-width: 82px;
  background: var(--timber-veil);
}
.band-dark .eyebrow, .band-ink .eyebrow { color: var(--timber-light); }
.band-dark .eyebrow::after, .band-ink .eyebrow::after { background: rgba(199, 168, 127, 0.42); }

.h-sec {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem);
  max-width: 20ch;
}
.lede {
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.66;
  max-width: 62ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.6rem 0.95rem 1.75rem;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.855rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn__dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: 0 0 auto;
  transition: transform .5s var(--ease), background-color .4s var(--ease);
}
.btn__dot svg { width: 12px; height: 12px; }
.btn:hover .btn__dot { transform: translateX(3px); }

.btn--solid { background: var(--timber-deep); color: #ffffff; }
.btn--solid .btn__dot { background: rgba(255,255,255,0.22); }
.btn--solid:hover { background: #55401f; }

.btn--ghost-light { border-color: rgba(242,243,246,0.42); color: var(--text-light); }
.btn--ghost-light .btn__dot { background: rgba(242,243,246,0.16); }
.btn--ghost-light:hover { background: rgba(242,243,246,0.12); border-color: rgba(242,243,246,0.7); }

.btn--ghost-dark { border-color: rgba(22,32,58,0.28); color: var(--text-dark); }
.btn--ghost-dark .btn__dot { background: rgba(22,32,58,0.09); }
.btn--ghost-dark:hover { background: rgba(22,32,58,0.06); border-color: rgba(22,32,58,0.5); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.tlink {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--timber-deep); text-decoration: none;
  border-bottom: 1px solid var(--timber-veil);
  padding-bottom: 2px;
  transition: border-color .35s var(--ease);
}
.tlink:hover { border-color: var(--timber-deep); }
.band-dark .tlink, .band-ink .tlink { color: var(--timber-light); border-bottom-color: rgba(199,168,127,0.5); }
.band-dark .tlink:hover, .band-ink .tlink:hover { border-bottom-color: var(--timber-light); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), height .5s var(--ease);
}
.nav.is-solid {
  background: rgba(18, 26, 49, 0.94);
  backdrop-filter: saturate(140%) blur(9px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
  height: 66px;
}
.nav__inner {
  width: var(--wrap-wide); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav__logo img {
  width: auto; height: 34px; max-width: 190px; object-fit: contain;
  transition: height .5s var(--ease);
}
.nav.is-solid .nav__logo img { height: 29px; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-size: 0.755rem; font-weight: 500; letter-spacing: 0.17em;
  text-transform: uppercase; text-decoration: none; color: var(--text-light);
  opacity: 0.86; position: relative; padding-block: 0.4rem;
  transition: opacity .35s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--timber-light);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.62rem 1.25rem; min-height: 44px;
  border: 1px solid rgba(242,243,246,0.4); border-radius: 999px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text-light); text-decoration: none;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.nav__cta:hover { background: rgba(242,243,246,0.14); border-color: rgba(242,243,246,0.72); }

.burger {
  display: none; width: 46px; height: 46px;
  background: none; border: 0; cursor: pointer;
  padding: 0; position: relative; z-index: 120;
}
.burger span {
  display: block; width: 24px; height: 1.5px; background: var(--text-light);
  margin: 5px auto; transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--ink-deep);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 8vw 3rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .45s var(--ease), visibility .45s var(--ease);
}
.mmenu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.mmenu a {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 8vw, 2.7rem);
  color: var(--text-light); text-decoration: none;
  padding-block: 0.42rem; display: block;
}
.mmenu a:hover { color: var(--timber-light); }
.mmenu__rule { height: 1px; background: rgba(242,243,246,0.16); margin: 1.75rem 0; }
.mmenu__contact { color: var(--text-light-muted); font-size: 0.95rem; }
.mmenu__contact a { font-family: var(--font-body); font-size: 1.05rem; padding-block: 0.55rem; }

/* ---------- hero (split: copy on ink, photo at full brightness) ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  background: var(--ink-deep);
  overflow: hidden;
}
.hero__copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: calc(var(--nav-h) + 3.5rem) clamp(2rem, 4vw, 4.5rem) clamp(2.5rem, 5vh, 4rem) max(6vw, calc((100vw - min(94vw, 1440px)) / 2));
}
.hero__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.hero__media {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 58% 62%;
  will-change: transform;
}
/* Top veil over the photo so the nav reads before it turns solid.
   Sky only: clears entirely by 26% of the hero height. */
.hero__figure::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 26%;
  background: linear-gradient(to bottom, rgba(13,20,38,0.84) 0%, rgba(13,20,38,0.36) 38%, rgba(13,20,38,0) 100%);
  z-index: 2; pointer-events: none;
}
.hero__place {
  font-size: 0.735rem; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--timber-pale);
  display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.5rem;
}
.hero__place::before {
  content: ""; width: 48px; height: 1px; background: var(--timber-pale); flex: 0 0 auto;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.35rem, 1.2rem + 2.55vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  max-width: 15ch;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--timber-pale); }
.hero__sub {
  color: rgba(255,255,255,0.86);
  font-size: clamp(1rem, 0.95rem + 0.32vw, 1.15rem);
  line-height: 1.62;
  max-width: 40ch;
  margin: 0 0 2rem;
}
.hero__chip {
  position: absolute;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 3;
  max-width: calc(100% - 2rem);
  border: 1px solid rgba(242,243,246,0.24);
  border-radius: var(--radius-sm);
  background: rgba(13,20,38,0.78);
  backdrop-filter: blur(6px);
  padding: 0.8rem 1.05rem;
  color: var(--text-light-muted);
  font-size: 0.75rem; letter-spacing: 0.04em; line-height: 1.5;
}
.hero__chip strong {
  display: block; color: var(--text-light); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.68rem; margin-bottom: 0.25rem;
}

/* ---------- intro ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: start;
}
.intro h2 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); max-width: 14ch; }
.intro__body { font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.13rem); }
.quote {
  margin: 2.4rem 0 0;
  border-left: 2px solid var(--timber);
  padding: 0.35rem 0 0.35rem 1.4rem;
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.85vw, 1.7rem);
  font-style: italic; line-height: 1.4;
  color: var(--text-light);
  margin-bottom: 0.7rem;
}
.quote cite {
  font-family: var(--font-body); font-style: normal;
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--timber-light);
}
.intro__figure { margin: clamp(2.4rem, 5vw, 3.6rem) 0 0; }
.intro__figure img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 62%;
  border-radius: var(--radius);
}
.intro__figure figcaption {
  margin-top: 0.85rem; font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(242,243,246,0.6);
}

/* ---------- style selector (signature) ---------- */
.styles__head { display: grid; gap: 1.2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.styles__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.55fr);
  gap: clamp(1.6rem, 3.5vw, 3.2rem);
  align-items: start;
}
.styles__list { display: flex; flex-direction: column; gap: 0.15rem; }
.style-btn {
  appearance: none; background: none; border: 0;
  border-top: 1px solid rgba(22,32,58,0.14);
  text-align: left; cursor: pointer;
  padding: 1rem 0.5rem 1rem 0;
  min-height: 60px;
  display: flex; align-items: baseline; gap: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.55rem);
  color: var(--text-muted);
  transition: color .4s var(--ease), padding-left .4s var(--ease);
}
.style-btn:last-child { border-bottom: 1px solid rgba(22,32,58,0.14); }
.style-btn__num {
  font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.14em;
  color: var(--timber-deep); flex: 0 0 auto;
}
.style-btn:hover { color: var(--text-dark); padding-left: 0.4rem; }
.style-btn.is-active { color: var(--text-dark); padding-left: 0.4rem; }
.style-btn.is-active .style-btn__num { color: var(--timber-deep); }

.styles__stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 3 / 2;
}
.styles__stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .75s var(--ease), transform 1.4s var(--ease);
  transform: scale(1.035);
}
.styles__stage img.is-active { opacity: 1; transform: scale(1); }
.styles__caption {
  margin-top: 1.1rem;
  display: grid; gap: 0.3rem;
  min-height: 4.2rem;
}
.styles__caption .cap-name {
  font-family: var(--font-display); font-size: 1.2rem; color: var(--text-dark);
}
.styles__caption .cap-line { font-size: 0.95rem; color: var(--text-muted); }

/* ---------- work grid ---------- */
.work__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem);
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.work-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--ink-soft);
  position: relative;
}
.work-card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.work-card:hover img { transform: scale(1.045); }
.work-card__meta {
  padding: 1.15rem 1.25rem 1.35rem;
  display: grid; gap: 0.28rem;
}
.work-card__name { font-family: var(--font-display); font-size: 1.22rem; color: var(--text-light); }
.work-card__style {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--timber-light);
}

/* ---------- montana band ---------- */
.mt__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(2rem, 5vw, 4.2rem);
  align-items: center;
}
.mt__figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.mt__figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 40% center; }
.mt__list { display: grid; gap: 1.6rem; margin-top: 2rem; }
.mt-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.mt-item__icon {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--timber-veil);
  display: grid; place-items: center; color: var(--timber-deep);
}
.mt-item__icon svg { width: 19px; height: 19px; }
.mt-item h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.mt-item p { font-size: 0.99rem; color: var(--text-muted); margin: 0; }

/* ---------- team ---------- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.person img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%;
  border-radius: var(--radius);
  filter: saturate(0.94);
}
.person h3 { font-size: 1.24rem; margin: 1rem 0 0.15rem; }
.person__role {
  font-size: 0.71rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--timber-deep); margin: 0 0 0.6rem;
}
.person p { font-size: 0.94rem; color: var(--text-muted); margin: 0; }

/* ---------- reviews ---------- */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.review {
  background: rgba(242,243,246,0.055);
  border: 1px solid rgba(242,243,246,0.11);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.review__mark {
  font-family: var(--font-display); font-size: 2.6rem; line-height: 0.6;
  color: var(--timber-light); opacity: 0.8; height: 1.1rem;
}
.review p {
  font-size: 1rem; line-height: 1.66; color: var(--text-light-muted); margin: 0;
  flex: 1 1 auto;
}
.review cite {
  font-style: normal; font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--timber-light);
}
.reviews__note { margin-top: 1.6rem; font-size: 0.85rem; color: rgba(242,243,246,0.6); }

/* ---------- cta ---------- */
.cta { background: var(--ink); position: relative; overflow: hidden; color: var(--text-light-muted); }
.cta h2 { color: var(--text-light); }
.cta .eyebrow { color: var(--timber-light); }
.cta .eyebrow::after { background: rgba(199, 168, 127, 0.42); }
.cta::after {
  content: ""; position: absolute; inset: auto -10% -60% auto;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(163,127,82,0.26) 0%, rgba(163,127,82,0) 68%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 1.4rem; }
.cta h2 { font-size: clamp(2.1rem, 1.4rem + 2.9vw, 3.5rem); max-width: 17ch; }
.cta__sub { max-width: 48ch; color: var(--text-light-muted); }
.cta__row { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 0.6rem; }

/* ---------- footer ---------- */
.foot { background: var(--ink-deep); color: var(--text-light-muted); padding-block: clamp(3rem, 5vw, 4.2rem) 2rem; }
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.foot__logo img { width: auto; height: 40px; max-width: 220px; object-fit: contain; }
.foot__blurb { margin-top: 1.2rem; font-size: 0.93rem; max-width: 34ch; }
.foot h4 {
  font-family: var(--font-body); font-size: 0.71rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--timber-light);
  margin: 0 0 1rem;
}
.foot__links { display: grid; gap: 0.1rem; }
.foot__links a, .foot__contact a {
  color: var(--text-light-muted); text-decoration: none;
  padding-block: 0.65rem; display: inline-block;
  transition: color .35s var(--ease);
}
.foot__links a:hover, .foot__contact a:hover { color: var(--text-light); }
.foot__contact { display: grid; gap: 0.1rem; font-size: 0.97rem; }
.foot__assoc { display: flex; align-items: center; gap: 1.6rem; margin-top: 1.8rem; flex-wrap: wrap; }
.foot__assoc img { height: 30px; width: auto; opacity: 0.6; filter: brightness(0) invert(1); }
.foot__assoc span { font-size: 0.78rem; color: rgba(242,243,246,0.5); }
.foot__base {
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(242,243,246,0.12);
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; justify-content: space-between;
  font-size: 0.8rem; color: rgba(242,243,246,0.55);
}

/* ---------- 404 ---------- */
.error {
  min-height: 100vh; min-height: 100svh;
  background: var(--ink-deep);
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  text-align: center;
}
.error__code {
  font-family: var(--font-display); font-size: clamp(5rem, 18vw, 11rem);
  line-height: 1; color: var(--timber); opacity: 0.36; margin-bottom: 0.4rem;
}
.error h1 { color: var(--text-light); font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin-bottom: 1rem; }
.error p { color: var(--text-light-muted); max-width: 46ch; margin-inline: auto; margin-bottom: 2rem; }

/* ---------- reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .styles__grid { grid-template-columns: minmax(0, 1fr); }
  .styles__list {
    flex-direction: row; gap: 0.45rem;
    overflow-x: auto; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-bottom: 1.4rem;
  }
  .styles__list::-webkit-scrollbar { display: none; }
  .style-btn {
    flex: 0 0 auto;
    border: 1px solid rgba(22,32,58,0.16);
    border-radius: 999px;
    padding: 0.7rem 1.15rem;
    min-height: 46px;
    font-size: 0.98rem;
    align-items: center;
    gap: 0.5rem;
  }
  .style-btn:last-child { border-bottom: 1px solid rgba(22,32,58,0.16); }
  .style-btn:hover, .style-btn.is-active { padding-left: 1.15rem; }
  .style-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .style-btn.is-active .style-btn__num { color: var(--timber-light); }
}

@media (max-width: 960px) {
  .intro__grid, .mt__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__logo { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .hero__figure { order: 1; height: 46svh; min-height: 300px; }
  .hero__figure::before { height: 40%;
    background: linear-gradient(to bottom, rgba(13,20,38,0.9) 0%, rgba(13,20,38,0.4) 40%, rgba(13,20,38,0) 100%); }
  .hero__copy {
    order: 2;
    padding: clamp(2.2rem, 6vw, 3.2rem) max(6vw, 1.5rem) clamp(2.6rem, 7vw, 3.6rem);
  }
  .hero h1 { max-width: 17ch; }
}

@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
}

@media (max-width: 768px) {
  .hero__figure { height: 42svh; min-height: 260px; }
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .mt__grid { gap: 2rem; }
  .team__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
}

@media (max-width: 480px) {
  .hero__figure { height: 38svh; min-height: 230px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; justify-content: space-between; }
  .btn-row { width: 100%; }
  .cta__row .btn { width: auto; justify-content: center; }
}
