/* =========================================================================
   Forest Kitchen Design - homepage concept
   Design language: Modern Clinical (#6) - structure, type, spacing, motion
   Palette: extracted from forestkitchendesign.com (see PROJECT_RULES.md)
   ========================================================================= */

:root {
  /* Their neutrals, taken from their own stylesheet */
  --ink:         #232323;   /* rgba(35,35,35,1) - their authored near-black */
  --ink-deep:    #171717;   /* deepened within family for the dark band */
  --ink-soft:    #3a3a3a;
  --white:       #ffffff;
  --paper:       #faf9f9;   /* their #faf9f9 */
  --mist:        #f0f0f0;   /* their rgba(240,240,240,1) */
  --rule:        #dddddd;   /* their rgba(221,221,221,1) */

  /* Their accent family: the olive-khaki on their own pill button and panel */
  --olive:       #908b71;   /* rgba(144,139,113,1) - their button fill */
  --olive-pale:  #a6a28d;   /* rgba(166,162,141,1) - their panel fill */
  --olive-deep:  #5f5c46;   /* deepened within family for small text on light */

  /* Text */
  --text-head:   #232323;
  --text-body:   #454545;
  --text-muted:  #6a6a6a;
  --text-light:  #ffffff;
  --text-light-2: rgba(255,255,255,0.72);
  --text-light-3: rgba(255,255,255,0.52);

  /* Type */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --wrap:        min(92%, 1280px);
  --wrap-narrow: min(92%, 940px);
  --nav-h:       82px;
  --radius:      10px;
  --pad-y:       clamp(4rem, 8vw, 7rem);

  /* Motion */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-sm:   0 1px 2px rgba(35,35,35,0.05), 0 6px 20px rgba(35,35,35,0.06);
  --shadow-md:   0 2px 4px rgba(35,35,35,0.05), 0 18px 44px rgba(35,35,35,0.10);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-head);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }

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

/* ---------- shared bits ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--olive);
  flex: 0 0 auto;
}
.eyebrow--light { color: var(--olive-pale); }

.sec-head { max-width: 46rem; }
.sec-head h2 {
  font-size: clamp(1.9rem, 3.3vw, 2.85rem);
}
.sec-head p {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.35vw, 1.09rem);
  color: var(--text-muted);
  max-width: 40rem;
}
.sec-head--light h2 { color: var(--text-light); }
.sec-head--light p { color: var(--text-light-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
  min-height: 46px;
}
.btn__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: 0.55;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  flex: 0 0 auto;
}
.btn:hover .btn__dot { transform: scale(1.7); opacity: 1; }

.btn--solid { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--olive-deep); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--ink); background: var(--white); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--olive-pale); color: var(--ink); }

.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.34); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

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

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 120;
}
.nav__inner {
  width: var(--wrap);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo img {
  width: auto;
  height: 30px;
  max-width: 210px;
  object-fit: contain;
}
.nav__links { display: flex; align-items: center; gap: 2.1rem; }
.nav__links a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-block: 0.5rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: inline-flex; }

.nav__burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--white);
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 210;
}
.nav__burger span {
  position: absolute;
  left: 13px;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav__burger span:nth-child(1) { top: 18px; }
.nav__burger span:nth-child(2) { top: 26px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- mobile menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  background: var(--ink-deep);
  z-index: 180;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 8vw 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5%);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
body.menu-open { overflow: hidden; }
body.menu-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a {
  text-decoration: none;
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 8vw, 2.5rem);
  padding-block: 0.55rem;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.menu__foot {
  margin-top: 2.2rem;
  color: var(--text-light-2);
  font-size: 0.9rem;
}
.menu__foot a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 0;
  padding-block: 0.65rem;
  color: var(--olive-pale);
}

/* ---------- hero ---------- */

.hero {
  background: var(--paper);
  padding-top: var(--nav-h);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  position: relative;
}
.hero__grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: stretch;
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem)
           clamp(2.5rem, 5vw, 4.5rem) calc((100vw - min(92vw, 1280px)) / 2);
  max-width: 100%;
}
.hero__text-inner { max-width: 40rem; }
.hero h1 {
  font-size: clamp(2.35rem, 4.3vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.028em;
}
.hero__sub {
  margin-top: 1.5rem;
  font-size: clamp(1.02rem, 1.35vw, 1.13rem);
  color: var(--text-body);
  max-width: 33rem;
}
.hero .btn-row { margin-top: 2.1rem; }

.hero__spec {
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.hero__spec div { min-width: 0; }
.hero__spec dt {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: 0.35rem;
}
.hero__spec dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.2vw, 1.06rem);
  color: var(--ink);
  line-height: 1.3;
}

.hero__media { position: relative; overflow: hidden; min-height: 46vh; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__tag {
  position: absolute;
  left: clamp(0.9rem, 2vw, 1.6rem);
  bottom: clamp(0.9rem, 2vw, 1.6rem);
  max-width: calc(100% - 2rem);
  background: rgba(255,255,255,0.93);
  color: var(--ink);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- pillars ---------- */

.pillars { background: var(--white); padding-block: var(--pad-y); }
.pillars__lead {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.45;
  max-width: 44rem;
  margin-top: 1.3rem;
}
.pillars__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__rule { width: 34px; height: 2px; background: var(--olive); margin-bottom: 1.3rem; }
.card h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  text-transform: lowercase;
}
.card p { margin-top: 0.9rem; color: var(--text-muted); font-size: 0.97rem; }

/* ---------- work ---------- */

.work { background: var(--mist); padding-block: var(--pad-y); }
.work__grid {
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.7vw, 1.4rem);
}
.work__item {
  display: block;
  text-decoration: none;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.work__item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.work__shot { aspect-ratio: 4 / 3; overflow: hidden; }
.work__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.work__item:hover .work__shot img { transform: scale(1.045); }
.work__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1.1rem 1.05rem;
}
.work__cap span:first-child {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
}
.work__cap span:last-child {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- process (signature moment) ---------- */

.process {
  background: var(--ink-deep);
  color: var(--text-light-2);
  padding-block: var(--pad-y);
  position: relative;
  overflow: hidden;
}
.process__rail {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  position: relative;
}
.process__line {
  position: absolute;
  left: 0; right: 0; top: 13px;
  height: 1px;
  background: rgba(255,255,255,0.15);
}
.process__line i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: var(--fill, 0%);
  background: var(--olive-pale);
  transition: width 0.15s linear;
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.5rem);
  position: relative;
}
.step { min-width: 0; }
.step__dot {
  width: 27px; height: 27px;
  border-radius: 50%;
  background: var(--ink-deep);
  border: 1px solid rgba(255,255,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-light-2);
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.step.is-on .step__dot {
  background: var(--olive-pale);
  border-color: var(--olive-pale);
  color: var(--ink-deep);
}
.step h3 {
  margin-top: 1.15rem;
  font-size: clamp(0.98rem, 1.35vw, 1.17rem);
  color: var(--text-light);
  text-transform: lowercase;
}
.step p {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-light-2);
}
.process__note {
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.13);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.process__note p { color: var(--text-light-2); font-size: 0.95rem; max-width: 40rem; }

/* ---------- disciplines ---------- */

.disc { background: var(--white); padding-block: var(--pad-y); }
.disc__grid {
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.disc__item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.disc__item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.disc__body { padding: clamp(1.6rem, 2.8vw, 2.2rem); }
.disc__no {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--olive-deep);
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.disc__body h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
.disc__body p { margin-top: 0.7rem; font-size: 0.94rem; color: var(--text-muted); }

/* ---------- lines / partners ---------- */

.lines { background: var(--paper); padding-block: clamp(3rem, 6vw, 4.5rem); }
.lines__row {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
}
.lines__row span {
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-family: var(--font-display);
  font-size: 0.83rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- team ---------- */

.team { background: var(--white); padding-block: var(--pad-y); }
.team__grid {
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
}
.member { min-width: 0; }
.member__shot {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
  border: 1px solid var(--rule);
}
.member__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.member h3 { margin-top: 1.3rem; font-size: clamp(1.15rem, 1.7vw, 1.35rem); text-transform: lowercase; }
.member__role {
  margin-top: 0.4rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive-deep);
}
.member p.member__bio { margin-top: 0.9rem; font-size: 0.94rem; color: var(--text-muted); }

/* ---------- press + quote ---------- */

.press { background: var(--mist); padding-block: var(--pad-y); }
.press__grid {
  margin-top: clamp(2rem, 3.6vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.press__item { background: var(--white); padding: clamp(1.3rem, 2.2vw, 1.8rem); min-width: 0; }
.press__item dt {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: 0.6rem;
}
.press__item dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.35vw, 1.11rem);
  color: var(--ink);
  line-height: 1.35;
}

.quote { background: var(--ink); padding-block: clamp(4rem, 8vw, 6.5rem); }
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.1vw, 2.4rem);
  line-height: 1.3;
  color: var(--text-light);
  letter-spacing: -0.015em;
}
.quote cite {
  display: block;
  margin-top: 1.8rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-pale);
}

/* ---------- studios / cta ---------- */

.studios { background: var(--paper); padding-block: var(--pad-y); }
.studios__grid {
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.studio {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  box-shadow: var(--shadow-sm);
}
.studio h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.studio address {
  font-style: normal;
  margin-top: 1rem;
  color: var(--text-body);
  font-size: 0.98rem;
}
.studio address a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-block: 0.2rem; display: inline-block; }
.studio address a:hover { border-color: var(--ink); }
.studio__hours {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cta { background: var(--ink-deep); padding-block: clamp(4rem, 8vw, 6.5rem); text-align: left; }
.cta h2 { color: var(--text-light); font-size: clamp(1.95rem, 3.6vw, 3.05rem); max-width: 22ch; }
.cta p { margin-top: 1.2rem; color: var(--text-light-2); max-width: 38rem; }
.cta .btn-row { margin-top: 2.2rem; }

/* ---------- footer ---------- */

.foot { background: var(--ink); color: var(--text-light-2); padding-block: clamp(3rem, 5vw, 4rem); }
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.8rem, 4vw, 3rem);
}
.foot__logo img { width: auto; height: 30px; max-width: 220px; object-fit: contain; }
.foot__blurb { margin-top: 1.2rem; font-size: 0.92rem; max-width: 26rem; color: var(--text-light-2); }
.foot h4 {
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a {
  text-decoration: none;
  font-size: 0.93rem;
  color: var(--text-light-2);
  display: inline-block;
  padding-block: 0.65rem;
  transition: color 0.3s var(--ease);
}
.foot li a:hover { color: var(--white); }
.foot__bar {
  margin-top: clamp(2.4rem, 4vw, 3.2rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light-3);
}

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

.err {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink-deep);
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}
.err__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 17vw, 12rem);
  line-height: 0.9;
  color: rgba(166,162,141,0.28);
  letter-spacing: -0.04em;
}
.err h1 { color: var(--text-light); font-size: clamp(1.9rem, 4vw, 3rem); margin-top: 1.2rem; }
.err p { color: var(--text-light-2); margin-top: 1.1rem; max-width: 34rem; }
.err .btn-row { margin-top: 2.1rem; }

/* ---------- reveal-on-scroll ---------- */

html.js .reveal { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1080px) {
  .nav__links { gap: 1.4rem; }
  .nav__links a { font-size: 0.72rem; }
  .work__grid, .disc__grid, .press__grid, .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.4rem; }
  .process__line { display: none; }
}

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

  .hero { min-height: 0; height: auto; }
  /* On a phone the photograph leads, then the headline. */
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { order: -1; }
  .hero__text {
    padding: clamp(2.5rem, 7vw, 3.5rem) 4vw clamp(2rem, 5vw, 3rem);
    width: var(--wrap);
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
  }
  /* aspect-ratio + a vh min-height would force the width and overflow the page */
  .hero__media { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
  .hero__spec { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }

  .pillars__grid, .studios__grid, .foot__top { grid-template-columns: minmax(0, 1fr); }
  .foot__top { gap: 2rem; }
}

@media (max-width: 640px) {
  :root { --nav-h: 70px; }
  .work__grid, .disc__grid, .press__grid, .team__grid { grid-template-columns: minmax(0, 1fr); }
  .process__steps { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .hero__spec { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .hero__spec dd { font-size: 1rem; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; }
  .lines__row span { font-size: 0.76rem; padding: 0.5rem 0.9rem; }
  .quote blockquote { font-size: clamp(1.35rem, 6.2vw, 1.7rem); }
  .press__grid { border-radius: var(--radius); }
}

@media (max-width: 400px) {
  .nav__logo img { height: 24px; max-width: 160px; }
}

/* ---------- 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. */
#mobile-menu .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: rgb(255, 255, 255);
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
#mobile-menu .mnav-close::before,
#mobile-menu .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;
}
#mobile-menu .mnav-close::before { transform: rotate(45deg); }
#mobile-menu .mnav-close::after { transform: rotate(-45deg); }
#mobile-menu .mnav-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
