/* ============================================================
   Spaces Designed. Homepage concept.
   Design language: Urban Sophisticate (type, spacing, composition).
   Palette: Spaces Designed's own brand. Champagne gold drawn from
   their logo, warm charcoal and ivory drawn from their photography.
   ============================================================ */

:root {
  /* Backgrounds */
  --ink:        #171310;
  --ink-2:      #201b16;
  --ink-3:      #2a241d;
  --ivory:      #f5f0e8;
  --smoke:      #eae3d7;

  /* Accent: their logo's champagne gold, deepened where small text needs contrast */
  --gold:        #c89a5a;
  --gold-bright: #f3d9a7;
  --gold-deep:   #7c5c2b;
  --gold-muted:  rgba(200, 154, 90, 0.3);
  --gold-faint:  rgba(200, 154, 90, 0.12);

  /* Text */
  --text-dark:        #241f19;
  --text-body:        #5b5343;
  --text-muted:       #585248;
  --text-light:       #f7f3ea;
  --text-light-muted: rgba(247, 243, 234, 0.78);

  /* Typography */
  --font-display: "Fraunces", serif;
  --font-body:    "Work Sans", sans-serif;

  /* Layout */
  --container: min(90%, 1160px);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-height: 84px;

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

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--ink);
  color: var(--text-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection { background: var(--gold); color: var(--ink); }

/* ---------- Shared ---------- */

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

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

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text-light);
}
.on-light .section-title { color: var(--text-dark); }
.section-title em {
  font-style: italic;
  color: var(--gold-bright);
}
.on-light .section-title em { color: var(--gold-deep); }

/* Pill buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.9rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.45s var(--ease-weight), background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}
.btn .btn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.45s var(--ease-weight);
}
.btn:hover .btn-dot { transform: scale(1.7); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-bright); }
.btn--ghost { border-color: rgba(247, 243, 234, 0.35); color: var(--text-light); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { background: var(--ink-3); }

/* Reveal base state (GSAP animates in) */
.reveal { opacity: 0; transform: translateY(36px); }
.no-js .reveal, html.gsap-failed .reveal { opacity: 1; transform: none; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120; /* must stay above the mobile menu overlay so the burger X remains clickable */
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}
.nav.scrolled {
  background: rgba(23, 19, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200, 154, 90, 0.18);
  height: 72px;
}
.nav-inner {
  width: min(94%, 1300px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo img {
  height: 58px;
  width: auto;
  transition: height 0.4s ease;
}
.nav.scrolled .nav-logo img { height: 48px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  padding: 0.6rem 0.1rem;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-cta { margin-left: 0.4rem; }
.nav-cta .btn--gold { color: var(--ink); }   /* restore intended ink-on-gold; .nav-links a was overriding */
.nav-cta .btn { padding: 0.68rem 1.4rem; font-size: 0.72rem; }

/* Hamburger */
.burger {
  display: none;
  position: relative;
  z-index: 120;
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.burger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--text-light);
  transition: transform 0.4s var(--ease-weight), opacity 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(23, 19, 16, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + 1rem) clamp(1.5rem, 8vw, 4rem) 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; }
.mobile-menu li + li { margin-top: 0.4rem; }
.mobile-menu a.mm-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 8vw, 3rem);
  color: var(--text-light);
  padding: 0.55rem 0;
  transition: color 0.3s ease, transform 0.4s var(--ease-weight);
}
.mobile-menu a.mm-link:hover { color: var(--gold-bright); transform: translateX(8px); }
.mm-divider {
  width: 4rem;
  height: 1px;
  background: var(--gold-muted);
  margin: 1.6rem 0;
}
.mm-contact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mm-contact a {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  padding: 0.55rem 0;
}
.mm-contact a:hover { color: var(--gold-bright); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 55%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(23, 19, 16, 0.70) 0%, rgba(23, 19, 16, 0.55) 32%, rgba(23, 19, 16, 0.88) 100%),
    linear-gradient(100deg, rgba(23, 19, 16, 0.6) 0%, rgba(23, 19, 16, 0.05) 62%);
}
.hero-inner {
  width: var(--container);
  margin-inline: auto;
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}
.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.9rem;
  row-gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.4rem;
}
.hero-eyebrow .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 15ch;
}
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero-sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-light-muted);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}
.hero-award {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.6rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--gold-muted);
  border-radius: 100px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(23, 19, 16, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-award::before {
  content: "";
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
}

/* ---------- Credentials band ---------- */

.creds {
  background: var(--ink-2);
  border-top: 1px solid rgba(200, 154, 90, 0.14);
  border-bottom: 1px solid rgba(200, 154, 90, 0.14);
  padding: clamp(2.4rem, 4vw, 3.4rem) 0;
}
.creds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.5rem);
}
.cred { text-align: left; }
.cred-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--gold-bright);
  line-height: 1.1;
}
.cred-label {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

/* ---------- Intro ---------- */

.intro {
  background: var(--ivory);
  color: var(--text-body);
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.intro-copy .section-title { margin: 1.3rem 0 1.6rem; }
.intro-copy p { max-width: 54ch; }
.intro-copy p + p { margin-top: 1.1rem; }
.intro-media { position: relative; }
.intro-media img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.intro-media::before {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 62%;
  height: 62%;
  border: 1px solid var(--gold);
  opacity: 0.55;
  z-index: -1;
}
.caption-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 0.45rem 0.95rem;
  background: rgba(23, 19, 16, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 100px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

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

.services {
  background: var(--ink);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(2rem, 5vw, 4rem);
}
.services-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.services-head .section-title { margin-top: 1.3rem; }
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.4rem, 5vw, 4rem) 0;
  border-top: 1px solid rgba(200, 154, 90, 0.16);
}
.service:last-child { border-bottom: 1px solid rgba(200, 154, 90, 0.16); }
.service-media {
  overflow: hidden;
  border-radius: 2px;
  max-height: 560px;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-weight);
}
.service:hover .service-media img { transform: scale(1.04); }
.service--flip .service-media { order: 2; }
.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  color: var(--text-light);
  margin: 0.7rem 0 1rem;
  line-height: 1.15;
}
.service p { color: var(--text-light-muted); max-width: 50ch; }
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
  list-style: none;
}
.service-tags li {
  padding: 0.42rem 0.9rem;
  border: 1px solid rgba(200, 154, 90, 0.32);
  border-radius: 100px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  white-space: nowrap;
}

/* ---------- Before / After ---------- */

.transform {
  background: var(--smoke);
  color: var(--text-body);
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.transform-head {
  max-width: 60ch;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}
.transform-head .section-title { margin-top: 1.3rem; }
.transform-head p { margin-top: 1.2rem; max-width: 52ch; }

.ba-wrap { max-width: 980px; margin-inline: auto; }
.ba {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 3px;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 30px 60px rgba(23, 19, 16, 0.22);
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-before-pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
}
.ba-before-pane img { width: 100%; }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 2px;
  background: var(--gold-bright);
  transform: translateX(-1px);
}
.ba-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  letter-spacing: 0.18em;
  font-family: var(--font-body);
}
.ba-label {
  position: absolute;
  top: 1rem;
  z-index: 3;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(23, 19, 16, 0.72);
  color: var(--text-light);
  pointer-events: none;
}
.ba-label--before { left: 1rem; }
.ba-label--after { right: 1rem; color: var(--gold-bright); }
.ba-drag-pill {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 0.38rem 1rem;
  border-radius: 100px;
  background: rgba(23, 19, 16, 0.72);
  color: var(--gold-bright);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.ba-drag-pill.hidden { opacity: 0; }
.ba-caption {
  margin-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.ba-caption strong {
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.04em;
}
/* visually hidden but accessible range input */
.ba input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 6;
  cursor: ew-resize;
  margin: 0;
}

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

.projects {
  background: var(--ink-2);
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}
.projects-head .section-title { margin-top: 1.3rem; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2rem);
}
.project {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 3;
}
.project--wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 10;
}
.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-weight);
}
.project:hover img { transform: scale(1.05); }
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 19, 16, 0) 45%, rgba(23, 19, 16, 0.75) 100%);
}
.project-meta {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.project-meta h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: var(--text-light);
  line-height: 1.15;
}
.project-meta span {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  white-space: nowrap;
  padding-bottom: 0.3rem;
}

/* ---------- Testimonial ---------- */

.voices {
  background: var(--ivory);
  color: var(--text-body);
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.voices-inner { max-width: 880px; margin-inline: auto; text-align: center; }
.voices .eyebrow { justify-content: center; }
.voices .eyebrow::before { display: none; }
.voices blockquote {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.35;
  color: var(--text-dark);
  margin: 1.8rem 0;
}
.voices blockquote span { color: var(--gold-deep); }
.voices-proof {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
  list-style: none;
}
.voices-proof li {
  padding: 0.5rem 1.05rem;
  border: 1px solid rgba(138, 102, 48, 0.35);
  border-radius: 100px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
}

/* ---------- Founder ---------- */

.founder {
  background: var(--ink);
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}
.founder::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -180px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-faint) 0%, transparent 70%);
  pointer-events: none;
}
.founder-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.founder-lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.3;
  color: var(--text-light);
  margin-top: 1.3rem;
}
.founder-lede em { font-style: italic; color: var(--gold-bright); }
.founder-body p { color: var(--text-light-muted); }
.founder-body p + p { margin-top: 1.1rem; }
.founder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
  list-style: none;
}
.founder-chips li {
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(200, 154, 90, 0.32);
  border-radius: 100px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  background: var(--ink-2);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 154, 90, 0.16) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 720px; margin-inline: auto; }
.cta .eyebrow { justify-content: center; }
.cta .eyebrow::before { display: none; }
.cta .section-title { margin: 1.3rem 0 1.2rem; }
.cta p { color: var(--text-light-muted); max-width: 46ch; margin-inline: auto; }
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

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

.footer {
  background: #120f0c;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  color: var(--text-light-muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(200, 154, 90, 0.14);
}
.footer-brand img { height: 96px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { max-width: 34ch; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; }
.footer ul a {
  display: inline-block;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}
.footer ul a:hover { color: var(--gold-bright); }
.footer address { font-style: normal; line-height: 1.9; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 234, 0.6);
}

/* ---------- 404 ---------- */

.error-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ink);
  padding: calc(var(--nav-height) + 2rem) var(--gutter) 4rem;
}
.error-code {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(6rem, 22vw, 13rem);
  line-height: 1;
  color: var(--gold-muted);
}
.error-section h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: var(--text-light);
  margin: 1rem 0 0.8rem;
}
.error-section p {
  color: var(--text-light-muted);
  max-width: 44ch;
  margin: 0 auto 2rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}

@media (max-width: 900px) {
  .intro-grid,
  .founder-grid { grid-template-columns: 1fr; }
  .service,
  .service--flip { grid-template-columns: 1fr; gap: 1.6rem; }
  .service--flip .service-media { order: 0; }
  .service-media { max-height: 420px; }
  .creds-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100svh;
    padding-top: 7rem;
  }
  .projects-grid { grid-template-columns: 1fr; }
  .project,
  .project--wide { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer ul a { padding-block: 0.65rem; }
  .ba-grip { width: 46px; height: 46px; }
}

@media (max-width: 480px) {
  .hero { padding-top: 6rem; }
  .hero-eyebrow { font-size: 0.62rem; letter-spacing: 0.22em; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .creds-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .nav-logo img { height: 46px; }
  .nav.scrolled .nav-logo img { height: 42px; }
  .nav-cta { display: none; }
  .ba { aspect-ratio: 4 / 3; }
}

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