/* ============================================================
   Fredenhagen Remodel & Design - Homepage Concept
   Design language: Studio Creative (#11) - type/spacing/motion only
   Palette: Fredenhagen's real brand colors (logo navy + site coral)
   ============================================================ */

:root {
  /* Backgrounds */
  --paper:       #f6f4ef;
  --tan:         #ece8e0;
  --navy:        #16385a;   /* their logo navy */
  --navy-2:      #1d4571;
  --deep:        #0d2136;   /* logo navy, deepened */

  /* Accent: their site CSS red #f95759 (also the red in their logo URL line) */
  --coral:       #f95759;
  --coral-deep:  #b02729;   /* deepened for small text on paper (7/22/26) */
  --coral-lift:  #ff8e90;   /* lightened for small text / accents on navy + the hero photo */
  --coral-fill:  #d63a3c;   /* fill under white button + chip text */
  --coral-muted: rgba(249, 87, 89, 0.14);

  /* Text */
  --text-dark:   #142c46;
  --text-body:   #4c5563;
  --text-muted:  #7b8390;
  --text-light:  rgba(246, 248, 251, 0.92);
  --text-light-muted: rgba(246, 248, 251, 0.62);
  --silver:      #c7ccd3;   /* their logo grey diamond */

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

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 84px;

  /* Motion */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
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; }
ul { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }

.container { width: min(90%, 1100px); margin-inline: auto; }

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

/* ---------- Typography helpers ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--coral);
  transform: rotate(-4deg);
}
.on-dark .eyebrow { color: var(--coral-lift); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  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;
}
.btn__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.45s var(--spring);
}
.btn:hover .btn__dot { transform: scale(1.7); }
.btn--coral { background: var(--coral-fill); color: #fff; }
.btn--coral:hover { background: var(--coral-deep); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--deep); }
.btn--ghost-light {
  border: 1.5px solid rgba(246, 248, 251, 0.45);
  color: var(--text-light);
}
.btn--ghost-light:hover { border-color: var(--coral); color: #fff; background: rgba(249,87,89,0.18); }
.btn--ghost-dark {
  border: 1.5px solid rgba(20, 44, 70, 0.35);
  color: var(--text-dark);
}
.btn--ghost-dark:hover { border-color: var(--coral-deep); color: var(--coral-deep); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 200;
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}
.nav__inner {
  width: min(94%, 1240px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav.is-solid {
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(22, 56, 90, 0.09);
  height: 70px;
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand__mark .d-navy { fill: var(--navy); transition: fill 0.4s ease; }
.brand__mark .d-grey { fill: var(--silver); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.09em;
  color: var(--navy);
  transition: color 0.4s ease;
}
.brand__sub {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.4s ease;
}
.nav.on-hero:not(.is-solid) .brand__name { color: #fff; }
.nav.on-hero:not(.is-solid) .brand__sub { color: rgba(246, 248, 251, 0.86); }
.nav.on-hero:not(.is-solid) .brand__mark .d-navy { fill: #fff; }

.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.3s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--coral);
  transform: scaleX(0) rotate(-2deg);
  transform-origin: left;
  transition: transform 0.4s var(--spring);
}
.nav__links a:hover::after { transform: scaleX(1) rotate(-2deg); }
.nav.on-hero:not(.is-solid) .nav__links a { color: var(--text-light); }
.nav__cta { margin-left: 0.4rem; }
.nav.on-hero:not(.is-solid) a.nav__cta, a.nav__cta { color: #fff; }
.nav .btn { padding: 0.7rem 1.3rem; font-size: 0.85rem; }

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  align-items: center;
  border-radius: 50%;
  z-index: 320;
  position: relative;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.4s var(--spring), opacity 0.3s ease, background 0.3s ease;
}
.nav.on-hero:not(.is-solid) .burger span { background: #fff; }
.burger.is-open span { background: #fff; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--deep);
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 1rem) var(--gutter) 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a.mm-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--text-light);
  padding-block: 0.55rem;
  display: inline-block;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.5s var(--spring), opacity 0.4s ease, color 0.3s ease;
}
.mobile-menu.is-open a.mm-link { transform: translateY(0); opacity: 1; }
.mobile-menu a.mm-link:hover { color: var(--coral); }
.mobile-menu__rule { height: 1px; background: rgba(246,248,251,0.16); margin-block: 1.4rem; }
.mobile-menu__contact { display: flex; flex-direction: column; gap: 0.35rem; }
.mobile-menu__contact a {
  color: var(--text-light-muted);
  font-size: 1rem;
  padding-block: 0.65rem;
}
.mobile-menu__contact a:hover { color: var(--coral); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero__bg {
  position: absolute;
  inset: -12% 0;
  background: url("../images/hero.jpg") center / cover no-repeat;
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    /* scrim strengthened 7/22/26: logo, nav and the coral H1 word sat on a near-white ceiling photo */
    linear-gradient(to top, rgba(13, 33, 54, 0.94) 0%, rgba(13, 33, 54, 0.70) 45%, rgba(13, 33, 54, 0.68) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: min(94%, 1240px);
  margin-inline: auto;
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}
.hero__chip {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(214, 58, 60, 0.96);
  padding: 0.45rem 0.95rem;
  border-radius: 4px;
  transform: rotate(-2.5deg);
  margin-bottom: 1.4rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 7.2vw, 5.2rem);
  max-width: 15ch;
}
.hero h1 .accent { color: var(--coral-lift); }
.hero__sub {
  margin-top: 1.3rem;
  max-width: 54ch;
  color: var(--text-light);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
}
.hero__ctas {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero__areas {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.hero__areas span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__areas span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- Sections base ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; }
.section--tan { background: var(--tan); }
.section--navy { background: var(--navy); }
.section--deep { background: var(--deep); }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p { color: var(--text-light-muted); }

h2.sec-title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-top: 1rem; max-width: 20ch; }
.sec-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- Intro ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.intro__quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.18;
  color: var(--text-dark);
}
.intro__quote .accent { color: var(--coral-deep); }
.intro__body p + p { margin-top: 1.1rem; }
.intro__sign {
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark);
}
.intro__sign em { color: var(--coral-deep); font-style: normal; }

/* ---------- Services ---------- */
.service-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding-block: clamp(2.2rem, 5vw, 4rem);
}
.service-row + .service-row { border-top: 1px solid rgba(22, 56, 90, 0.12); }
.service-row__media {
  grid-column: 1 / span 7;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform 0.6s var(--spring);
  box-shadow: 0 24px 60px rgba(13, 33, 54, 0.18);
}
.service-row:hover .service-row__media { transform: rotate(0deg) scale(1.01); }
.service-row__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1.2s var(--smooth);
}
.service-row:hover .service-row__media img { transform: scale(1.05); }
.service-row__body { grid-column: 9 / span 4; }
.service-row--flip .service-row__media { grid-column: 6 / span 7; grid-row: 1; transform: rotate(1.2deg); }
.service-row--flip .service-row__body { grid-column: 1 / span 4; grid-row: 1; }
.service-row__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--coral);
  line-height: 1;
}
.service-row h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-top: 0.7rem; }
.service-row p { margin-top: 0.8rem; font-size: 0.98rem; }
.service-row__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding-block: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.service-row__link .tick { transition: transform 0.4s var(--spring); }
.service-row__link:hover .tick { transform: translateX(6px); }

/* ---------- Signature: 3D design flip ---------- */
.threed__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.threed__quote {
  margin-top: 2rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--coral);
}
.threed__quote p { font-size: 1.02rem; font-style: italic; color: var(--text-light); }
.threed__quote cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.flipper { position: relative; }
.flipper__stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 10.5;
}
.flipper__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.7s var(--smooth), transform 0.7s var(--smooth);
}
.flipper__stage img.is-hidden { opacity: 0; transform: scale(1.04); }
.flipper__caption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(13, 33, 54, 0.78);
  backdrop-filter: blur(6px);
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
}
.flipper__toggle {
  margin-top: 1.3rem;
  display: inline-flex;
  background: rgba(246, 248, 251, 0.1);
  border: 1px solid rgba(246, 248, 251, 0.2);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.flipper__toggle button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text-light-muted);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  transition: background 0.35s var(--spring), color 0.3s ease, transform 0.35s var(--spring);
  min-height: 44px;
}
.flipper__toggle button.is-active {
  background: var(--coral-fill);
  color: #fff;
}
.flipper__toggle button:not(.is-active):hover { color: #fff; transform: rotate(-1deg); }

/* ---------- Featured work collage ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.9rem, 2vw, 1.5rem);
}
.work-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(13, 33, 54, 0.16);
  transition: transform 0.55s var(--spring);
  will-change: transform;
}
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--smooth); }
.work-card:hover img { transform: scale(1.06); }
.work-card__tag {
  position: absolute;
  left: 0.9rem; bottom: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(13, 33, 54, 0.72);
  backdrop-filter: blur(6px);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}
.work-card--a { grid-column: 1 / span 7; aspect-ratio: 16 / 10; transform: rotate(-1deg); }
.work-card--b { grid-column: 8 / span 5; aspect-ratio: 4 / 5; transform: rotate(1.4deg); }
.work-card--c { grid-column: 1 / span 5; aspect-ratio: 4 / 5; transform: rotate(1deg); }
.work-card--d { grid-column: 6 / span 7; aspect-ratio: 16 / 10; transform: rotate(-1.2deg); }
.work-card:hover { transform: rotate(0deg) translateY(-4px); }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}
.process-step {
  background: var(--paper);
  border-radius: 14px;
  padding: clamp(1.4rem, 3vw, 2rem);
  position: relative;
  transition: transform 0.5s var(--spring), box-shadow 0.5s ease;
}
.process-step:nth-child(even) { transform: translateY(14px); }
.process-step:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: 0 20px 40px rgba(13,33,54,0.12); }
.process-step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--coral);
  line-height: 1;
}
.process-step h3 { font-size: 1.12rem; margin-top: 0.9rem; }
.process-step p { font-size: 0.92rem; margin-top: 0.6rem; }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}
.review-card {
  background: rgba(246, 248, 251, 0.05);
  border: 1px solid rgba(246, 248, 251, 0.13);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: transform 0.5s var(--spring), border-color 0.4s ease;
}
.review-card:hover { transform: translateY(-5px) rotate(-0.4deg); border-color: rgba(249, 87, 89, 0.55); }
.review-card:nth-child(2) { transform: translateY(16px); }
.review-card:nth-child(2):hover { transform: translateY(11px) rotate(0.4deg); }
.review-card__stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.review-card__stars svg { width: 15px; height: 15px; fill: var(--coral); }
.review-card p { font-size: 0.97rem; color: var(--text-light); }
.review-card cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.review-card cite::before { content: ""; display: block; width: 26px; height: 2px; background: var(--coral); margin-bottom: 0.6rem; transform: rotate(-3deg); }

/* ---------- Video ---------- */
.video__frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(13, 33, 54, 0.22);
  aspect-ratio: 16 / 9;
  background: var(--deep);
  transform: rotate(-0.6deg);
}
.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Steven ---------- */
.steven__grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.steven__media {
  border-radius: 14px;
  overflow: hidden;
  transform: rotate(1.2deg);
  box-shadow: 0 24px 60px rgba(13, 33, 54, 0.18);
}
.steven__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.steven__body p + p { margin-top: 1rem; }
.steven__facts {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.steven__facts li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  background: var(--coral-muted);
  border: 1px solid rgba(201, 51, 53, 0.25);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 87, 89, 0.32) 0%, transparent 65%);
  top: -220px; right: -140px;
}
.cta::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 87, 89, 0.18) 0%, transparent 65%);
  bottom: -200px; left: -120px;
}
.cta__inner { position: relative; z-index: 2; text-align: center; }
.cta h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 18ch;
  margin-inline: auto;
}
.cta p { max-width: 46ch; margin: 1.2rem auto 0; }
.cta__buttons {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}
.cta__address {
  margin-top: 2.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--deep);
  padding: clamp(3rem, 7vw, 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__name { color: #fff; }
.footer .brand__sub { color: var(--text-light-muted); }
.footer .brand__mark .d-navy { fill: #fff; }
.footer__tag { margin-top: 1.1rem; font-size: 0.92rem; max-width: 34ch; }
.footer h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}
.footer a { transition: color 0.3s ease; display: inline-block; padding-block: 0.25rem; }
.footer a:hover { color: #fff; }
.footer li { font-size: 0.94rem; }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 248, 251, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.8rem;
}

/* ---------- 404 ---------- */
.error-section {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--deep);
  display: flex;
  align-items: center;
  text-align: center;
  padding-block: 7rem;
  position: relative;
  overflow: hidden;
}
.error-section::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 87, 89, 0.25) 0%, transparent 65%);
  top: -200px; right: -120px;
}
.error__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 13rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(249, 87, 89, 0.75);
  transform: rotate(-2deg);
}
.error-section h1 { color: #fff; font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-top: 1rem; }
.error-section p { color: var(--text-light-muted); max-width: 42ch; margin: 1rem auto 2rem; }

/* ---------- Reveal (GSAP hooks) ---------- */
.reveal { opacity: 0; transform: translateY(36px); }
html.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .nav__links { gap: 1.3rem; }
  .service-row__body { grid-column: 8 / span 5; }
  .service-row--flip .service-row__body { grid-column: 1 / span 5; }
  .service-row--flip .service-row__media { grid-column: 6 / span 7; }
}

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

  .intro__grid,
  .threed__grid,
  .steven__grid { grid-template-columns: 1fr; }

  .service-row,
  .service-row--flip .service-row__media,
  .service-row--flip .service-row__body { grid-template-columns: 1fr; }
  .service-row { display: block; }
  .service-row__media { transform: rotate(0); margin-bottom: 1.4rem; }
  .service-row--flip .service-row__media { transform: rotate(0); }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card:nth-child(2) { transform: none; }
  .review-card:nth-child(2):hover { transform: translateY(-5px); }

  .work-grid { grid-template-columns: 1fr; }
  .work-card--a, .work-card--b, .work-card--c, .work-card--d {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 11;
    transform: rotate(0);
  }

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

@media (max-width: 768px) {
  .hero:not([style]) {
    height: auto;
    min-height: 100svh;
    padding-top: 7rem;
  }
  .process-step:nth-child(even) { transform: none; }
}

@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
  .hero__areas { gap: 0.3rem 1.1rem; }
  .footer a { padding-block: 0.65rem; }
  .footer li { font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero:not([style]) { padding-top: 6rem; }
  .btn { padding: 0.9rem 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Mobile drawer close control ---------- */
/* The burger doubles as the close (X), but the nav's own z-index traps it in a
   stacking context below the drawer, so it is painted over and cannot be tapped.
   This control lives inside the drawer, so it is always visible and always hits. */
#mobileMenu .mnav-close {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top, 0px));
  right: 0.85rem;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: rgba(246, 248, 251, 0.92);
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
#mobileMenu .mnav-close::before,
#mobileMenu .mnav-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21px;
  height: 1.5px;
  margin: -0.75px 0 0 -10.5px;
  background: currentColor;
  border-radius: 2px;
}
#mobileMenu .mnav-close::before { transform: rotate(45deg); }
#mobileMenu .mnav-close::after { transform: rotate(-45deg); }
#mobileMenu .mnav-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
