/* Design Build Austin, homepage concept
   Design language: Studio Creative (type, spacing, composition, motion)
   Palette: Design Build Austin's real brand colors
   Orange #ff8000 from their logo, navy #112337 and teal #0d749a from their site CSS */

:root {
  /* Backgrounds */
  --paper:        #f6f3ed;
  --tan:          #ece7dd;
  --navy:         #112337;
  --navy-deep:    #0b1a2a;

  /* Accents, theirs */
  --orange:       #ff8000;
  --orange-hover: #e77300;
  --orange-deep:  #a04d00;
  --orange-muted: rgba(255, 128, 0, 0.16);
  --teal:         #0d749a;

  /* Text */
  --text-dark:    #16212e;
  --text-body:    #46505a;
  --text-muted:   #6d7681;
  --text-light:   #f6f3ed;
  --text-light-muted: rgba(246, 243, 237, 0.68);

  /* Type */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

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

  /* Motion */
  --spring:       cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:     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: 400;
  color: var(--text-body);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

::selection { background: var(--orange); color: var(--navy); }

/* ---------- Typography helpers ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--orange);
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--text-light); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.45s var(--spring), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  transition: transform 0.45s var(--spring);
}

.btn:hover .btn__dot { transform: scale(1.7); }

.btn--orange {
  background: var(--orange);
  color: var(--navy);
}

.btn--orange:hover { background: var(--orange-hover); }

.btn--ghost-light {
  border-color: rgba(246, 243, 237, 0.35);
  color: var(--text-light);
}

.btn--ghost-light:hover { border-color: var(--orange); color: var(--orange); }

.btn--ghost-dark {
  border-color: rgba(22, 33, 46, 0.25);
  color: var(--text-dark);
}

.btn--ghost-dark:hover { border-color: var(--orange-deep); color: var(--orange-deep); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.nav.is-solid {
  background: var(--navy);
  box-shadow: 0 10px 30px rgba(11, 26, 42, 0.35);
}

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

.nav__logo img { height: 20px; width: auto; }

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

.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 0.4rem 0;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { padding: 0.65rem 1.3rem; font-size: 0.85rem; }

.nav__burger {
  display: none;
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  cursor: pointer;
  position: relative;
  z-index: 130;
}

.nav__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-light);
  margin: 6px auto;
  transition: transform 0.35s var(--ease-out), opacity 0.25s 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;
  background: var(--navy-deep);
  z-index: 120;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.mobile-menu ul { list-style: none; }

.mobile-menu li + li { margin-top: 0.4rem; }

.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--text-light);
  display: inline-block;
  padding: 0.35rem 0;
}

.mobile-menu a:hover { color: var(--orange); }

.mobile-menu__divider {
  width: 3rem;
  height: 3px;
  background: var(--orange);
  margin: 1.6rem 0;
}

.mobile-menu__contact a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--text-light-muted);
  display: block;
  padding: 0.55rem 0;
}

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

.hero {
  background: var(--navy);
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 60vmin;
  height: 60vmin;
  border-radius: 50%;
  border: 2px solid rgba(255, 128, 0, 0.18);
  top: -18vmin;
  right: -14vmin;
}

.hero__inner {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: var(--nav-height);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  margin: 1.2rem 0 1.3rem;
}

.hero h1 .h1-accent { color: var(--orange); }

.hero__sub {
  color: var(--text-light-muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  max-width: 34rem;
  font-weight: 300;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* Hero collage */

.hero__collage {
  position: relative;
  height: min(72vh, 620px);
  min-height: 420px;
}

.collage-card {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.collage-card img { width: 100%; height: 100%; object-fit: cover; }

.collage-card--main {
  width: 78%;
  height: 74%;
  top: 4%;
  right: 4%;
  transform: rotate(-2deg);
}

.collage-card--small {
  width: 52%;
  height: 40%;
  bottom: 2%;
  left: 0;
  transform: rotate(3deg);
  border: 4px solid var(--paper);
}

.collage-chip {
  position: absolute;
  z-index: 3;
  background: var(--paper);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.collage-chip--one { top: 1%; right: 55%; transform: rotate(-4deg); }
.collage-chip--two { bottom: 36%; left: 38%; transform: rotate(2deg); }

.collage-chip .chip-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 0.45rem;
}

/* ---------- Marquee ---------- */

.marquee-wrap {
  overflow: hidden;
  position: relative;
  z-index: 5;
  padding-block: 1rem;
  margin-block: -1.6rem;
}

.marquee-band {
  background: var(--orange);
  width: calc(100% + 6vw);
  margin-left: -3vw;
  transform: rotate(-1.4deg);
  overflow: hidden;
  padding: 0.9rem 0;
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding-right: 2.6rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Cred strip ---------- */

.cred {
  background: var(--paper);
  padding: clamp(4.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow-x: clip;
}

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

.cred__item {
  border-top: 3px solid var(--orange);
  padding-top: 1rem;
}

.cred__item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.cred__item p { font-size: 0.9rem; color: var(--text-muted); }

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

.intro {
  background: var(--paper);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(5rem, 9vw, 8rem);
  overflow-x: clip;
}

.intro__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.intro h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  margin: 1.1rem 0 1.4rem;
}

.intro h2 em {
  font-style: normal;
  color: var(--orange-deep);
}

.intro p + p { margin-top: 1.1rem; }

.intro__figure {
  position: relative;
  padding: 0 clamp(0.5rem, 2vw, 1.5rem);
}

.intro__figure img {
  border-radius: 14px;
  transform: rotate(2deg);
  box-shadow: 0 26px 55px rgba(17, 35, 55, 0.25);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.intro__figure::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  bottom: -28px;
  left: -6px;
  opacity: 0.6;
}

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

.services {
  background: var(--navy);
  padding: clamp(5rem, 9vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.services::after {
  content: "";
  position: absolute;
  width: 44vmin;
  height: 44vmin;
  border-radius: 50%;
  border: 2px solid rgba(255, 128, 0, 0.12);
  bottom: -16vmin;
  left: -12vmin;
}

.services__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.services__head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-top: 1.1rem; }

.services__head p { color: var(--text-light-muted); max-width: 26rem; font-weight: 300; }

.services__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  position: relative;
  z-index: 2;
}

.svc-list { list-style: none; }

.svc-row {
  display: flex;
  align-items: baseline;
  gap: 1.3rem;
  padding: 1.35rem 0.4rem;
  border-bottom: 1px solid rgba(246, 243, 237, 0.14);
  cursor: pointer;
  transition: background 0.3s ease, padding-left 0.4s var(--spring);
}

.svc-row:first-child { border-top: 1px solid rgba(246, 243, 237, 0.14); }

.svc-row.is-active { padding-left: 1rem; background: rgba(255, 128, 0, 0.07); }

.svc-row__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange);
  flex: none;
}

.svc-row h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); transition: color 0.3s ease; }

.svc-row.is-active h3 { color: var(--orange); }

.svc-row p {
  color: var(--text-light-muted);
  font-size: 0.92rem;
  font-weight: 300;
  margin-top: 0.25rem;
}

.svc-stage {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(1.6deg);
}

.svc-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.svc-stage img.is-active { opacity: 1; }

.design-services {
  margin-top: clamp(3rem, 6vw, 5rem);
  position: relative;
  z-index: 2;
}

.design-services h3 {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 1.4rem;
}

.design-services h3 span { color: var(--orange); }

.design-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.design-chip {
  border: 1px solid rgba(246, 243, 237, 0.25);
  color: var(--text-light);
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-size: 0.92rem;
  font-weight: 300;
  transition: border-color 0.3s ease, transform 0.45s var(--spring);
}

.design-chip:hover {
  border-color: var(--orange);
  transform: rotate(-1.5deg) scale(1.04);
}

/* ---------- Work rail ---------- */

.work {
  background: var(--tan);
  padding: clamp(5rem, 9vw, 8rem) 0;
  overflow: hidden;
}

.work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
}

.work__head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-top: 1.1rem; }

.work__hint {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.work__hint::after {
  content: "\2039\00A0\203A";
  font-size: 1.1rem;
  letter-spacing: 0;
}

.rail {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  overflow-x: auto;
  padding: 1.5rem calc((100% - min(90%, 1140px)) / 2) 2.5rem;
  scroll-padding-inline: calc((100% - min(90%, 1140px)) / 2);
  scroll-snap-type: x proximity;
  cursor: grab;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.rail-card {
  flex: none;
  width: clamp(240px, 30vw, 340px);
  scroll-snap-align: start;
  background: var(--paper);
  border-radius: 14px;
  padding: 0.9rem 0.9rem 1.2rem;
  box-shadow: 0 18px 40px rgba(17, 35, 55, 0.16);
  transition: transform 0.5s var(--spring);
}

.rail-card:nth-child(odd)  { transform: rotate(-1.6deg); }
.rail-card:nth-child(even) { transform: rotate(1.4deg) translateY(14px); }

.rail-card:hover { transform: rotate(0deg) translateY(-6px); }

.rail-card img {
  border-radius: 8px;
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
  width: 100%;
  pointer-events: none;
}

.rail-card__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.9rem;
  padding: 0 0.2rem;
}

.rail-card__label h3 { font-size: 1.05rem; }

.rail-card__label span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--orange-deep);
  letter-spacing: 0.1em;
}

/* ---------- Process ---------- */

.process {
  background: var(--paper);
  padding: clamp(5rem, 9vw, 8rem) 0;
  overflow-x: clip;
}

.process__head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.process__head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 1.1rem 0 1rem; }

.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
  counter-reset: step;
}

.step {
  background: #fffdf9;
  border: 1px solid rgba(17, 35, 55, 0.08);
  border-radius: 14px;
  padding: 1.6rem 1.4rem 1.7rem;
  position: relative;
  transition: transform 0.5s var(--spring), box-shadow 0.4s ease;
}

.step:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 22px 45px rgba(17, 35, 55, 0.12);
}

.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--orange);
  line-height: 1;
}

.step h3 { font-size: 1.12rem; margin: 0.9rem 0 0.55rem; }

.step p { font-size: 0.92rem; }

.step__tag {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal);
  border: 1px solid rgba(13, 116, 154, 0.35);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
}

/* ---------- Team ---------- */

.team {
  background: var(--tan);
  padding: clamp(5rem, 9vw, 8rem) 0;
  overflow-x: clip;
}

.team__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.team__head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-top: 1.1rem; }

.team__head p { max-width: 26rem; }

.team__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: start;
}

.member {
  background: var(--paper);
  border-radius: 14px;
  padding: 0.9rem 0.9rem 1.4rem;
  box-shadow: 0 18px 40px rgba(17, 35, 55, 0.14);
}

.member:nth-child(1) { transform: rotate(-1deg); }
.member:nth-child(2) { transform: rotate(0.8deg) translateY(18px); }
.member:nth-child(3) { transform: rotate(-0.8deg) translateY(34px); }

.member img {
  border-radius: 8px;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  width: 100%;
}

.member--judd img { aspect-ratio: 4 / 4.2; }

.member__body { padding: 1.1rem 0.3rem 0; }

.member h3 { font-size: 1.2rem; }

.member__role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-top: 0.25rem;
}

.member p { font-size: 0.92rem; margin-top: 0.75rem; }

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

.cta {
  background: var(--navy-deep);
  padding: clamp(5.5rem, 10vw, 9rem) 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46rem 24rem at 85% 10%, rgba(255, 128, 0, 0.14), transparent 60%),
    radial-gradient(34rem 22rem at 8% 95%, rgba(13, 116, 154, 0.22), transparent 60%);
}

.cta__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

.cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 1.2rem 0 1.1rem; }

.cta p { color: var(--text-light-muted); font-weight: 300; max-width: 32rem; margin-inline: auto; }

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.3rem;
}

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

.footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(246, 243, 237, 0.1);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  color: var(--text-light-muted);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.footer__brand img { height: 18px; width: auto; margin-bottom: 1.1rem; }

.footer__brand p { font-size: 0.92rem; font-weight: 300; max-width: 22rem; }

.footer h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer ul { list-style: none; }

.footer ul a {
  display: inline-block;
  font-size: 0.95rem;
  padding-block: 0.3rem;
  transition: color 0.3s ease;
}

.footer ul a:hover { color: var(--orange); }

.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(246, 243, 237, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.82rem;
}

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

.error-section {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) var(--gutter) 3rem;
  position: relative;
  overflow: hidden;
}

.error-section::before {
  content: "";
  position: absolute;
  width: 60vmin;
  height: 60vmin;
  border-radius: 50%;
  border: 2px solid rgba(255, 128, 0, 0.15);
  top: -20vmin;
  right: -16vmin;
}

.error__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 20vw, 12rem);
  color: var(--orange-muted);
  line-height: 1;
}

.error-section h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin: 0.6rem 0 1rem; }

.error-section p {
  color: var(--text-light-muted);
  max-width: 28rem;
  margin: 0 auto 2rem;
  font-weight: 300;
}

/* ---------- Reveal helper ---------- */

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

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

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

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { height: auto; min-height: 100svh; padding-bottom: 3.5rem; }
  .hero__collage { height: 56vw; min-height: 340px; max-width: 560px; }
  .services__layout { grid-template-columns: 1fr; }
  .svc-stage { position: relative; top: 0; max-width: 520px; aspect-ratio: 4 / 3.2; }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .member:nth-child(3) { transform: rotate(-0.8deg); }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav { background: var(--navy); }

  .hero { padding-top: calc(var(--nav-height) + 1.5rem); }
  .hero h1 { font-size: clamp(2.3rem, 9vw, 3rem); }

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

  .intro__grid { grid-template-columns: 1fr; }
  .intro__figure { max-width: 420px; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer ul a { padding-block: 0.65rem; }
  .mobile-menu__contact a { padding: 0.65rem 0; }
}

@media (max-width: 560px) {
  .team__grid { grid-template-columns: 1fr; }
  .member:nth-child(2), .member:nth-child(3) { transform: none; }
  .cred__grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .hero__collage { min-height: 300px; }
  .collage-chip--two { display: none; }
  .btn { padding: 0.9rem 1.45rem; font-size: 0.9rem; }
}
