/* Premier Design-Build-Remodel: homepage concept
   Design language: Classic Authority (type, spacing, composition only)
   Palette: Premier's own brand colors, extracted from their site CSS and logo
   Royal navy #123e87 (logo + CSS), dark navys #112337 / #010e24 (CSS),
   bright blue #3b82f6 (CSS), pewter #707080 (logo). Neutrals are ivory/pearl. */

:root {
  --ivory:        #f7f5f0;
  --pearl:        #edeae3;
  --navy:         #112337;
  --deep-navy:    #0b1526;
  --ink:          #010e24;
  --royal:        #123e87;
  --royal-deep:   #0e3068;
  --blue-bright:  #3b82f6;
  --pewter:       #707080;
  --royal-muted:  rgba(18, 62, 135, 0.14);
  --blue-glow:    rgba(59, 130, 246, 0.35);
  --line-light:   rgba(255, 255, 255, 0.14);
  --line-dark:    rgba(17, 35, 55, 0.14);

  --text-dark:    #112337;
  --text-body:    #3d4a5c;
  --text-muted:   #6b7686;
  --text-light:   rgba(255, 255, 255, 0.82);
  --text-light-muted: rgba(255, 255, 255, 0.6);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Lato", -apple-system, BlinkMacSystemFont, sans-serif;

  --container:    min(92%, 1200px);
  --pad-section:  clamp(4rem, 8vw, 7.5rem);
  --nav-height:   84px;

  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.container { width: var(--container); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 1.4rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.on-dark .eyebrow { color: var(--blue-bright); }

section { padding-block: var(--pad-section); }

.on-dark { background: var(--navy); color: var(--text-light); }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p { color: var(--text-light-muted); }

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 1.9rem;
  border-radius: 100px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.btn__icon svg { width: 12px; height: 12px; }

.btn:hover .btn__icon { transform: translateX(4px); }

.btn--solid {
  background: var(--royal);
  color: #fff;
}
.btn--solid:hover { background: var(--royal-deep); }
.btn--solid .btn__icon { background: rgba(255, 255, 255, 0.16); }

.btn--outline-light {
  border-color: var(--line-light);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); }
.btn--outline-light .btn__icon { background: rgba(255, 255, 255, 0.12); }

.btn--outline-dark {
  border-color: var(--line-dark);
  color: var(--navy);
}
.btn--outline-dark:hover { background: var(--royal); border-color: var(--royal); color: #fff; }
.btn--outline-dark .btn__icon { background: var(--royal-muted); }
.btn--outline-dark:hover .btn__icon { background: rgba(255, 255, 255, 0.16); }

/* ── Navigation ──────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav.is-scrolled {
  background: var(--deep-navy);
  box-shadow: 0 6px 30px rgba(1, 14, 36, 0.4);
}

.nav__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  padding-block: 0.4rem;
  transition: color 0.3s var(--ease);
}

.nav__links a:hover { color: var(--blue-bright); }

.nav__cta { margin-left: 0.5rem; padding: 0.75rem 1.4rem; }

.nav__burger {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 320;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--deep-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 8vw, 4rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  color: #fff;
  text-decoration: none;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--line-light);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.mobile-menu a:hover { color: var(--blue-bright); padding-left: 0.5rem; }

.mobile-menu .btn { margin-top: 2rem; align-self: flex-start; }

/* ── Hero (split panel) ──────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  background: var(--deep-navy);
}

.hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + clamp(2rem, 5vw, 4rem)) clamp(1.5rem, 5vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  color: var(--text-light);
  position: relative;
}

.hero__panel::after {
  content: "";
  position: absolute;
  top: var(--nav-height);
  bottom: clamp(2rem, 4vw, 3rem);
  right: 0;
  width: 1px;
  background: var(--line-light);
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1.6rem;
}

.hero h1 { color: #fff; margin-bottom: 1.4rem; }
.hero h1 em { font-style: italic; color: var(--blue-bright); }

.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 300;
  color: var(--text-light-muted);
  max-width: 46ch;
  margin-bottom: 2.4rem;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__media {
  position: relative;
  overflow: hidden;
  min-height: 60svh;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: clamp(1.2rem, 2.5vw, 2.2rem);
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.hero__caption {
  position: absolute;
  right: clamp(2rem, 4vw, 3.4rem);
  bottom: clamp(2rem, 4vw, 3.4rem);
  z-index: 2;
  background: rgba(1, 14, 36, 0.72);
  backdrop-filter: blur(6px);
  color: var(--text-light);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.7rem 1.1rem;
}

/* Credential bar under hero */

.credbar {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-light);
  background: var(--ink);
}

.credbar__inner {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.credbar__item {
  padding: 1.4rem 1rem;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

.credbar__item + .credbar__item { border-left: 1px solid var(--line-light); }

/* ── President / intro ───────────────────────────────── */

.president { background: var(--ivory); }

.president__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.president__portrait {
  position: relative;
  background: var(--pearl);
  border: 1px solid var(--line-dark);
  padding: clamp(1.2rem, 2.5vw, 2rem);
}

.president__portrait img { width: 100%; }

.president__portrait figcaption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.president h2 { margin-bottom: 1.5rem; }

.president__body p { margin-bottom: 1.2rem; color: var(--text-body); }

.president__quote {
  margin: 1.8rem 0;
  padding-left: 1.6rem;
  border-left: 2px solid var(--royal);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--navy);
}

.president__sig {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.president__sig strong { color: var(--royal); font-weight: 500; }

/* ── Services (2x2 formal grid) ──────────────────────── */

.services { background: var(--navy); }

.services__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
}

.services__head .eyebrow { justify-content: center; }
.services__head .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.svc-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 42vw, 460px);
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

.svc-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.svc-card:hover img { transform: scale(1.05); }

.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1, 14, 36, 0.88) 0%, rgba(1, 14, 36, 0.25) 55%, rgba(1, 14, 36, 0.1) 100%);
  transition: background 0.5s var(--ease);
  z-index: 1;
}

.svc-card::after {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 2;
  pointer-events: none;
}

.svc-card__body {
  position: relative;
  z-index: 3;
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  width: 100%;
}

.svc-card__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--blue-bright);
  margin-bottom: 0.5rem;
}

.svc-card h3 { color: #fff; margin-bottom: 0.5rem; }

.svc-card p {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  max-width: 42ch;
  margin: 0;
}

/* ── Project index (signature) ───────────────────────── */

.projects { background: var(--ivory); }

.projects__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.projects__head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 640px; }
.projects__head p { color: var(--text-body); margin-top: 1rem; }

.project-index { list-style: none; border-top: 1px solid var(--line-dark); }

.project-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1.4rem;
  padding: 1.5rem 0.4rem;
  border-bottom: 1px solid var(--line-dark);
  cursor: default;
  transition: background 0.4s var(--ease), padding-left 0.4s var(--ease);
}

.project-row:hover { background: rgba(18, 62, 135, 0.05); padding-left: 1rem; }

.project-row__num {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--pewter);
}

.project-row__name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--navy);
  transition: color 0.3s var(--ease);
}

.project-row:hover .project-row__name { color: var(--royal); }

.project-row__tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-row__thumb { display: none; }

.projects__preview {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  padding: clamp(0.9rem, 1.6vw, 1.3rem);
  background: var(--pearl);
}

.projects__preview-frame { position: relative; width: 100%; height: 100%; overflow: hidden; }

.projects__preview-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.projects__preview-frame img.is-active { opacity: 1; }

/* ── Warranty band ───────────────────────────────────── */

.warranty {
  background: linear-gradient(135deg, var(--royal-deep) 0%, var(--royal) 60%, #1a4ea3 100%);
  text-align: center;
}

.warranty__inner { max-width: 780px; margin-inline: auto; }

.warranty__mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.2rem;
}

.warranty h2 { color: #fff; margin-bottom: 1.4rem; }

.warranty p { color: rgba(255, 255, 255, 0.72); margin-bottom: 2.2rem; }

.warranty .btn--solid { background: #fff; color: var(--royal); }
.warranty .btn--solid:hover { background: var(--ivory); }
.warranty .btn--solid .btn__icon { background: var(--royal-muted); }

/* ── Process ─────────────────────────────────────────── */

.process { background: var(--pearl); }

.process__head { text-align: center; max-width: 700px; margin: 0 auto clamp(3rem, 5vw, 4.5rem); }
.process__head .eyebrow { justify-content: center; }
.process__head .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.process__head p { color: var(--text-body); margin-top: 1rem; }

.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.phase {
  background: var(--ivory);
  border: 1px solid var(--line-dark);
  padding: clamp(1.8rem, 3vw, 2.6rem);
}

.phase__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--royal-muted);
  -webkit-text-stroke: 1px var(--royal);
  line-height: 1;
  margin-bottom: 1.2rem;
}

.phase h3 { color: var(--navy); margin-bottom: 1.1rem; }

.phase ul { list-style: none; }

.phase li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
  font-size: 0.95rem;
  color: var(--text-body);
  border-bottom: 1px solid rgba(17, 35, 55, 0.08);
}

.phase li:last-child { border-bottom: none; }

.phase li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 14px;
  height: 1px;
  background: var(--royal);
}

/* ── Team ────────────────────────────────────────────── */

.team { background: var(--ivory); }

.team__head { text-align: center; max-width: 700px; margin: 0 auto clamp(3rem, 5vw, 4.5rem); }
.team__head .eyebrow { justify-content: center; }
.team__head .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.team__head p { color: var(--text-body); margin-top: 1rem; }

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.2rem);
}

.member {
  background: var(--pearl);
  border: 1px solid var(--line-dark);
  padding: 1.1rem 1.1rem 1.6rem;
  text-align: center;
}

.member__photo {
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
  background: linear-gradient(to bottom, #fdfcfa, #eae6dd);
  margin-bottom: 1.3rem;
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.member h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 0.25rem; }

.member p {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Recognition + showrooms ─────────────────────────── */

.standing { background: var(--navy); }

.standing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
}

.standing h2 { margin-bottom: 1.4rem; }

.standing__intro p { margin-bottom: 1.6rem; }

.awards-list { list-style: none; border-top: 1px solid var(--line-light); }

.awards-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0.2rem;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.98rem;
  color: var(--text-light);
}

.awards-list li span:last-child {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  text-align: right;
  flex-shrink: 0;
}

.showrooms { display: grid; gap: 1.4rem; align-content: start; }

.showroom {
  border: 1px solid var(--line-light);
  padding: clamp(1.6rem, 3vw, 2.2rem);
}

.showroom h3 { color: #fff; margin-bottom: 0.4rem; }

.showroom p { font-size: 0.98rem; }

.showroom__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.9rem;
}

/* ── CTA ─────────────────────────────────────────────── */

.cta {
  background: var(--deep-navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 320px;
  background: radial-gradient(ellipse at center, var(--blue-glow), transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.cta__inner { position: relative; max-width: 760px; margin-inline: auto; }

.cta h2 { color: #fff; margin-bottom: 1.2rem; }

.cta p { color: var(--text-light-muted); margin-bottom: 2.4rem; }

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.cta__phone {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: #fff;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.cta__phone:hover { color: var(--blue-bright); }

/* ── Footer ──────────────────────────────────────────── */

.footer {
  background: var(--ink);
  color: var(--text-light-muted);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-light);
}

.footer__brand img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 1.2rem;
}

.footer__brand p { font-size: 0.92rem; max-width: 34ch; }

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}

.footer ul { list-style: none; }

.footer li { font-size: 0.92rem; }

.footer a {
  color: var(--text-light-muted);
  text-decoration: none;
  display: inline-block;
  padding-block: 0.3rem;
  transition: color 0.3s var(--ease);
}

.footer a:hover { color: var(--blue-bright); }

.footer address { font-style: normal; font-size: 0.92rem; line-height: 1.8; }

.footer address strong {
  display: block;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 0.9rem;
}

.footer address strong:first-child { margin-top: 0; }

.footer__legal {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── 404 ─────────────────────────────────────────────── */

.error-section {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--deep-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
}

.error__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 12rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(59, 130, 246, 0.5);
  margin-bottom: 1rem;
}

.error-section h1 { color: #fff; margin-bottom: 1.2rem; }

.error-section p {
  color: var(--text-light-muted);
  max-width: 46ch;
  margin: 0 auto 2.4rem;
}

/* ── Reveal helper ───────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 1024px) {
  .nav__links { gap: 1.5rem; }
  .hero { grid-template-columns: minmax(0, 50%) minmax(0, 50%); }
  .credbar__inner { grid-template-columns: repeat(2, 1fr); }
  .credbar__item:nth-child(2n + 1) { border-left: none; }
  .credbar__item { border-top: 1px solid var(--line-light); }
  .credbar__item:nth-child(-n + 2) { border-top: none; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__panel { padding-top: calc(var(--nav-height) + 3rem); min-height: auto; }
  .hero__panel::after { display: none; }
  .hero__media { min-height: 52svh; }

  .president__grid { grid-template-columns: 1fr; }
  .president__portrait { max-width: 420px; margin-inline: auto; }

  .services__grid { grid-template-columns: 1fr; }

  .projects__layout { grid-template-columns: 1fr; }
  .projects__preview { display: none; }
  .project-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    align-items: start;
    row-gap: 0.6rem;
  }
  .project-row__thumb {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  .project-row__tag { grid-column: 1 / -1; }

  .process__grid { grid-template-columns: 1fr; }

  .team__grid { grid-template-columns: repeat(2, 1fr); }

  .standing__grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero__caption { right: 1.4rem; bottom: 1.4rem; }
}

@media (max-width: 480px) {
  .credbar__inner { grid-template-columns: 1fr; }
  .credbar__item { border-left: none; border-top: 1px solid var(--line-light); }
  .credbar__item:first-child { border-top: none; }

  .team__grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; }

  .hero__ctas .btn, .cta__actions .btn { width: 100%; justify-content: center; }
}
