/* Fallback serif, used only where PP Editorial New isn't installed (most visitors, and all phones).
   Newsreader Medium is mapped to the Regular slot: measured stroke weight is the closest match to
   PP Editorial New Regular (Regular was noticeably lighter, SemiBold heavier and wider). */
@font-face {
  font-family: "Editorial Fallback"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/newsreader-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Editorial Fallback"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/newsreader-800-latin.woff2") format("woff2");
}

/* ---------- Tokens (from "Terraform / Foundations & components") ---------- */
:root {
  --ink: #1a1a1a;          /* surface/inverse, text/primary */
  --ivory: #f9f8f6;        /* surface/page */
  --chalk: #f5f5f5;        /* surface/raised, text/inverse */
  --white: #ffffff;        /* text/on-image */
  --stone: #e5e3df;        /* text/subtle-inverse */
  --overlay: rgba(26, 26, 26, 0.65); /* surface/inverse-opacity-65 */

  --font-editorial: "PP Editorial New", "Editorial Fallback", Georgia, "Times New Roman", serif;
  --font-sans: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --editorial-weight: 400;

  /* Vertical rhythm. Each section gets --section-y above and below its content, so two light
     sections sit 2 × --section-y apart and a photo/dark band sits --section-y from the nearest content.
     --head-gap is the space between a section heading and its content. */
  --section-y: 64px;
  --head-gap: 32px;

  --gutter: 35px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  -moz-osx-font-smoothing: grayscale;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, figure, blockquote { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Shared pieces ---------- */
.brand {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  color: var(--chalk); line-height: 1;
}
.brand__word {
  font-family: var(--font-editorial); font-weight: 800;
  font-size: 20px; letter-spacing: -0.01em;
}
.brand__sub {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 20px; letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 4px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; width: 240px; padding: 10px;
  background: var(--chalk); color: var(--ink);
  font-family: var(--font-sans); font-weight: 500;
  font-size: 14px; letter-spacing: 0.11em; text-transform: uppercase;
  white-space: nowrap; line-height: 1;
  border: 1px solid var(--chalk);
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: transparent; color: var(--chalk); }
.btn:focus-visible,
.nav__links a:focus-visible,
.icon-btn:focus-visible,
.menu a:focus-visible { outline: 2px solid var(--chalk); outline-offset: 4px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0; margin: -3px -3px -3px 0;
  background: none; border: 0; color: var(--chalk); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 10;   /* keeps the fixed nav above the sections that follow */
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 43px var(--gutter) 60px;
  color: var(--chalk);
  background: var(--ink);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--overlay);
}

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav__links, .nav__cta { display: none; }
.nav__links {
  list-style: none; margin: 0; padding: 0; font-weight: 300;
  font-size: 18px; letter-spacing: 0.02em; line-height: 1;
}
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

/* Hero content (mobile-first) */
.hero__body {
  margin-top: auto;
  padding-top: 120px;
  display: flex; flex-direction: column;
}
.hero__main { display: flex; flex-direction: column; gap: 26px; max-width: 350px; }
.hero__copy { display: flex; flex-direction: column; gap: 9px; }
.hero__title {
  font-family: var(--font-editorial); font-weight: var(--editorial-weight);
  font-size: 30px; line-height: 1.15; letter-spacing: -0.01em;
}
.hero__lede {
  font-weight: 300; font-size: 16px; line-height: 1.4; letter-spacing: 0.02em;
}
.hero__tagline {
  margin-top: 88px; max-width: 350px;
  font-weight: 500; font-size: 14px; line-height: 1.45;
  letter-spacing: 0.11em; text-transform: uppercase;
}

/* ---------- Menu overlay ----------
   The panel drops down over the page. Its logo and close button are placed (by JS, via the
   --brand-* / --toggle-* variables) exactly over the page's own logo and hamburger, so the
   hamburger appears to morph into the X in place. */
.burger { position: relative; display: block; width: 38px; height: 38px; }
.burger span {
  position: absolute; right: 6.33px; height: 2.375px; border-radius: 2px; background: currentColor;
  transform-origin: 50% 50%;
  transition: transform .4s cubic-bezier(.76, 0, .24, 1), opacity .2s ease;
}
.burger span:nth-child(1) { top: 6.73px;  width: 25.33px; }
.burger span:nth-child(2) { top: 17.81px; width: 15.83px; }
.burger span:nth-child(3) { top: 28.89px; width: 25.33px; }
.menu.is-x .burger span:nth-child(1) { transform: translateY(11.08px) rotate(45deg); }
.menu.is-x .burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu.is-x .burger span:nth-child(3) { transform: translateY(-11.08px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 50;
  background: var(--ink); color: var(--chalk);
  padding: calc(var(--bar-bottom, 100px) + 40px) 34px 50px var(--gutter);
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 52px;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s cubic-bezier(.76, 0, .24, 1), visibility 0s linear .6s;
}
.menu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path .6s cubic-bezier(.76, 0, .24, 1), visibility 0s;
}
.menu__top { position: absolute; top: 0; left: 0; right: 0; height: 0; }
.menu__top .brand { position: absolute; left: var(--brand-left, 35px); top: var(--brand-top, 43px); }
.menu__close {
  position: absolute; margin: 0;
  left: var(--toggle-left, calc(100% - 79px)); top: var(--toggle-top, 40px);
  width: var(--toggle-w, 44px); height: var(--toggle-h, 44px);
}
/* Content fades up after the panel has dropped */
.menu__main > :not(.menu__top), .menu__contact, .menu__social {
  opacity: 0; transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
}
.menu.is-open .menu__main > :not(.menu__top), .menu.is-open .menu__contact, .menu.is-open .menu__social {
  opacity: 1; transform: none;
  transition: opacity .5s ease .3s, transform .6s cubic-bezier(.2, .7, .2, 1) .3s;
}
.menu.is-open .menu__blurb, .menu.is-open .menu__contact { transition-delay: .38s; }
.menu.is-open .menu__image, .menu.is-open .menu__social { transition-delay: .44s; }

.menu__links {
  list-style: none; margin: 0; padding: 0; font-weight: 300;
  display: flex; flex-direction: column; align-items: flex-end; gap: 40px;
  font-size: 20px; letter-spacing: 0.02em; line-height: 1;
}
.menu__blurb { margin-top: 56px; font-weight: 300; font-size: 16px; line-height: 1.45; letter-spacing: 0.02em; max-width: 360px; }
.menu__image {
  margin-top: 40px; width: 100%; aspect-ratio: 702 / 498; object-fit: cover;
}
.menu__contact {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--font-sans); font-weight: 300; font-size: 16px; letter-spacing: 0.02em; color: var(--white);
}
.menu__phones { display: flex; gap: 33px; flex-wrap: wrap; justify-content: center; }
.menu__social {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  font-weight: 300; font-size: 14px; letter-spacing: 0.02em; color: var(--white);
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  :root { --gutter: 56px; }
  .brand__word { font-size: 26px; }
  .brand__sub { font-size: 26px; }
  .hero__main { max-width: 520px; }
  .hero__title { font-size: 48px; }
  .hero__lede { font-size: 20px; }
  .hero__tagline { max-width: 520px; font-size: 16px; }
}

/* ---------- Desktop (MacBook Pro 14" - 2) ---------- */
@media (min-width: 1100px) {
  :root { --gutter: clamp(48px, 5vw, 76px); }
  .hero .nav__toggle { display: none; }
  .nav__links { display: flex; gap: clamp(28px, 3.4vw, 51px); }
  .nav__cta { display: inline-flex; }

  .hero { padding-top: 48px; padding-bottom: 50px; }
  .hero__body { width: 100%; max-width: 1361px; margin-left: auto; margin-right: auto; }

  .brand { width: 160px; }
  .brand__word { font-size: 32px; }
  .brand__sub { font-size: 32px; }

  .btn { height: 63px; width: 278px; font-size: 20px; }

  .hero__body { padding-top: 160px; }
  .hero__main {
    display: grid; max-width: none;
    grid-template-columns: minmax(0, 529px) minmax(0, 403px);
    justify-content: space-between; align-items: center;
    column-gap: 48px; row-gap: 30px;
  }
  .hero__copy { display: contents; }
  .hero__title { grid-column: 1; grid-row: 1; align-self: first baseline; font-size: clamp(52px, 4.25vw, 64px); line-height: 1.1; }
  .hero__main > .btn { grid-column: 1; grid-row: 2; }
  .hero__lede {
    grid-column: 2; grid-row: 1; align-self: first baseline; font-size: 24px; line-height: 1.3;
  }
  .hero__tagline {
    margin: clamp(120px, 17vh, 187px) auto 0; max-width: 588px;
    text-align: center; font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* =========================================================
   Shared section primitives
   ========================================================= */
.section { padding: var(--section-y) 34px var(--section-y) var(--gutter); background: var(--ivory); color: var(--ink); }
.container { width: 100%; max-width: 1354px; margin: 0 auto; }
.eyebrow {
  font-weight: 500; font-size: 14px; line-height: 1.3;
  letter-spacing: 0.11em; text-transform: uppercase;
}
.h2 {
  font-family: var(--font-editorial); font-weight: var(--editorial-weight);
  font-size: 30px; line-height: 1.15; letter-spacing: -0.01em;
}
.body { font-size: 16px; line-height: 1.45; letter-spacing: 0.02em; text-wrap: pretty; }
.h2, .hero__title, .step__text, .review__quote { text-wrap: balance; }
.body p + p { margin-top: 1.4em; }
.btn--dark { background: var(--ink); color: var(--chalk); border-color: var(--ink); font-weight: 500; }
.btn--dark:hover { background: transparent; color: var(--ink); }
.btn--dark:focus-visible { outline-color: var(--ink); }
.btn--block { width: 100%; }

/* ---------- About / philosophy ---------- */
.about__grid { display: flex; flex-direction: column; }
.about__col { display: contents; }
.about__eyebrow { order: 1; }
.about__title { order: 2; margin-top: 20px; }
.about__body { order: 3; margin-top: 17px; }
.about__media { order: 4; margin-top: 43px; width: 100%; height: auto; }
.stats { order: 5; margin-top: 40px; }
.about__cta { order: 6; margin-top: 52px; }
.stats {
  list-style: none; padding: 0; margin-bottom: 0;
  display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px;
  text-transform: uppercase;
}
.stat { display: flex; flex-direction: column; gap: 11px; }
.stat:nth-child(2) { text-align: center; }
.stat:nth-child(3) { text-align: right; }
.stat__num { font-weight: 700; font-size: 36px; line-height: 1; letter-spacing: 0.02em; }
.stat__label { font-weight: 500; font-size: 10px; line-height: 1.35; letter-spacing: 0.11em; max-width: 14ch; }
.stat:nth-child(3) .stat__label { max-width: 16ch; }
.stat:nth-child(2) .stat__label { margin: 0 auto; }
.stat:nth-child(3) .stat__label { margin-left: auto; }

@media (min-width: 768px) {
  :root { --section-y: 80px; --head-gap: 44px; }
  .section { padding: var(--section-y) var(--gutter); }
  .eyebrow { font-size: 16px; }
  .h2 { font-size: 40px; }
  .body { font-size: 18px; }
  .stat__num { font-size: 44px; }
  .stat__label { font-size: 13px; }
}

@media (min-width: 1100px) {
  :root { --section-y: 96px; --head-gap: 60px; }
  .section { padding: var(--section-y) var(--gutter); }
  .eyebrow { font-size: 18px; }
  .h2 { font-size: 48px; line-height: 1.12; }
  .body { font-size: 20px; line-height: 1.35; }
  .btn--block { width: 278px; }

  .about__grid {
    display: grid; grid-template-columns: minmax(0, 596px) minmax(0, 565px);
    justify-content: space-between; column-gap: 64px; align-items: end;
  }
  .about__col { display: flex; flex-direction: column; }
  .about__title { margin-top: 21px; }
  .about__media { margin-top: 69px; }
  .about__body { margin-top: 0; }
  .stats { margin-top: 43px; grid-template-columns: 168px 1fr 170px; gap: 22px; justify-content: stretch; }
  .about__cta { margin-top: 43px; }
  .stat, .stat:nth-child(2), .stat:nth-child(3) { text-align: left; gap: 37px; }
  .stat__label, .stat:nth-child(2) .stat__label, .stat:nth-child(3) .stat__label { margin: 0; }
  .stat__num { font-size: 48px; }
  .stat__label, .stat:nth-child(3) .stat__label { font-size: 16px; max-width: none; }
}

/* ---------- Services ---------- */
.section-head { display: flex; flex-direction: column; gap: 20px; }
.section-head__text { display: flex; flex-direction: column; gap: 17px; }
.section-head .body { max-width: 310px; }
.services__grid {
  list-style: none; margin: var(--head-gap) 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 13px;
}
.svc-card {
  position: relative; overflow: hidden; margin: 0;
  aspect-ratio: 351 / 499; background: var(--ink);
}
.svc-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.svc-card:hover img { transform: scale(1.03); }
.svc-card__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  min-height: 94px; padding: 20px 17px;
  display: flex; align-items: flex-start;
  background: linear-gradient(to top, rgba(26,26,26,.65) 5%, rgba(196,196,193,.3) 96%);
  -webkit-backdrop-filter: blur(4.6px); backdrop-filter: blur(4.6px);
  color: var(--chalk);
  font-weight: 400; font-size: 20px; line-height: 1.3; letter-spacing: 0.02em; text-transform: uppercase;
}
.svc-card__caption span { max-width: 11em; }

@media (min-width: 768px) {
  .services__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .svc-card--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .svc-card--wide img { object-position: 50% 45%; }
  .svc-card__caption { font-size: 24px; min-height: 120px; padding: 28px 24px; }
}

@media (min-width: 1100px) {
  .section-head--center { align-items: center; text-align: center; gap: 21px; }
  .section-head--center .section-head__text { gap: 21px; max-width: 660px; }
  .section-head--center .body { max-width: 568px; margin: 0 auto; font-size: 24px; }
  .services__grid { gap: 36px; }
  .svc-card { aspect-ratio: 659 / 839; }
  .svc-card--wide { aspect-ratio: 1354 / 839; }
  .svc-card__caption { min-height: 150px; padding: 36px 40px 36px 38px; font-size: 30px; line-height: 1.25; }
}

/* ---------- Portfolio ---------- */
.portfolio .section-head__text { gap: 18px; }
.portfolio .section-head .body { max-width: none; }
.projects {
  list-style: none; padding: 0; margin: var(--head-gap) calc(-1 * 34px) 0 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(351px, 84%); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-right: 34px; scroll-padding-left: 0;
}
.projects::-webkit-scrollbar { display: none; }
.project-card {
  position: relative; overflow: hidden; scroll-snap-align: start;
  aspect-ratio: 351 / 499; background: var(--ink);
}
.project-card a { display: block; height: 100%; color: var(--chalk); }
.project-card a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.project-card:hover img { transform: scale(1.03); }
.project-card__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  min-height: 94px; padding: 20px 17px;
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(to top, rgba(26,26,26,.65) 5%, rgba(196,196,193,.3) 96%);
  -webkit-backdrop-filter: blur(4.6px); backdrop-filter: blur(4.6px);
  font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.2;
}
.project-card__name { font-size: 20px; }
.project-card__type { font-size: 14px; }
.project-card__meta { font-size: 14px; }
.text-link {
  display: inline-block; margin: var(--head-gap) auto 0;
  font-weight: 500; font-size: 14px; letter-spacing: 0.11em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px;
  transition: text-decoration-color .2s ease;
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.portfolio .container { display: flex; flex-direction: column; }

@media (min-width: 768px) {
  .projects {
    margin-right: 0; padding-right: 0; overflow: visible;
    grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; gap: 24px;
  }
  .project-card { aspect-ratio: 659 / 805; }
  .project-card__name { font-size: 24px; }
}

@media (min-width: 1100px) {
  .portfolio .section-head__text { max-width: 568px; gap: 21px; }
  .portfolio .section-head .h2 { max-width: 391px; margin: 0 auto; }
  .projects { margin-top: var(--head-gap); gap: 36px; }
  .project-card__caption { min-height: 162px; padding: 38px 38px 49px; gap: 6px; justify-content: flex-end; }
  .project-card__name { font-size: 30px; }
  .project-card__type { font-size: 16px; }
  .project-card__meta { font-size: 20px; }
  .text-link { font-weight: 500; font-size: 18px; text-decoration-color: currentColor; }
  .text-link:hover { text-decoration-color: transparent; }
}

/* ---------- Process ---------- */
.process { position: relative; isolation: isolate; background: var(--ink); color: var(--chalk); overflow: hidden; }
.process__bg {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover; opacity: .2;
}
.process__grid { display: flex; flex-direction: column; gap: 30px; }
.process__intro { display: flex; flex-direction: column; gap: 20px; }
.process__intro .h2 { color: var(--white); }
.process__intro .body { max-width: 318px; margin-top: -2px; font-weight: 300; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 13px;
}
.step {
  min-height: 355px; padding: 47px 30px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  background: rgba(0, 0, 0, .09);
  border: 2px solid rgba(245, 245, 245, .08);
  transition: background-color .3s ease, border-color .3s ease;
}
.step:hover { background: rgba(0, 0, 0, .22); border-color: rgba(245, 245, 245, .18); }
.step__title { font-weight: 500; font-size: 16px; letter-spacing: 0.11em; text-transform: uppercase; line-height: 1.2; }
.step__icon { width: 70px; height: 70px; display: grid; place-items: center; margin: auto 0; }
.step__icon svg { display: block; }
.step__text { font-weight: 300; font-size: 14px; line-height: 1.4; letter-spacing: 0.02em; color: var(--white); max-width: 236px; }
.step--final { background: var(--chalk); color: var(--ink); border-color: var(--chalk); padding: 43px 46px 48px; }
.step--final:hover { background: var(--chalk); border-color: var(--chalk); }
.step--final .step__text { color: var(--ink); font-weight: 400; }

@media (min-width: 768px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .process__intro .body { max-width: 560px; }
}

@media (min-width: 1100px) {
  .process { padding-top: var(--section-y); padding-bottom: var(--section-y); }
  .process__grid {
    display: grid; grid-template-columns: minmax(0, 513px) minmax(0, 824px);
    justify-content: space-between; gap: 17px; align-items: start;
  }
  .process__intro { gap: 21px; }
  .process__intro .h2 { max-width: 421px; }
  .process__intro .body { max-width: 430px; margin-top: 0; font-size: 20px; line-height: 1.45; }
  .steps { gap: 36px; grid-auto-rows: minmax(410px, auto); }
  .step { padding: 47px 43px; }
  .step--final { padding: 43px 46px 48px; }
  .step__title { font-size: 20px; }
  .step__icon { width: 100px; height: 100px; }
  .step__text { font-size: 20px; }
}

/* ---------- Testimonials ---------- */
.reviews .section-head__text { gap: 18px; }
.reviews .section-head .body { max-width: none; }
.reviews__stage {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: var(--head-gap); padding: 67px 19px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 34px;
}
.reviews__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.reviews__track { position: relative; width: 100%; display: grid; }
.review {
  grid-area: 1 / 1; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  padding: 20px 33px 15px;
  background: rgba(217, 217, 217, .2);
  border: 1px solid rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  color: var(--white);
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.review[aria-hidden="true"] { opacity: 0; visibility: hidden; }
.review[aria-hidden="false"] { transition: opacity .5s ease, visibility 0s; }
.review__body { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.review__mark { width: 50px; height: 50px; margin-left: 14px; transform: rotate(180deg); }
.review__quote { font-weight: 400; font-size: 14px; line-height: 1.45; letter-spacing: 0.02em; text-align: center; }
.review__by { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; text-align: center; }
.review__name { font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.review__role { font-weight: 500; letter-spacing: 0.02em; color: var(--chalk); }
.reviews__dots { display: flex; align-items: center; gap: 5px; }
.reviews__dots[hidden] { display: none; }
.reviews__dot {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.7); cursor: pointer; transition: transform .2s ease, background-color .2s ease;
}
.reviews__dot[aria-current="true"] { background: var(--white); transform: scale(1.35); margin: 0 3px; }
.reviews__dot:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* ---------- Partners ---------- */
.partners { padding-top: var(--section-y); }
.partners .eyebrow { text-align: center; }
.partners__logos {
  list-style: none; margin: var(--head-gap) auto 0; padding: 0; max-width: 725px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 40px 24px;
}
.partners__logos li { flex: 0 0 auto; }
.partners__logos img { height: auto; width: calc(var(--w, 120px) * .78); }

@media (min-width: 768px) {
  .reviews__stage { padding: 67px 60px 30px; }
  .review { max-width: 560px; margin: 0 auto; }
  .review__quote { font-size: 18px; }
  .partners__logos { gap: 50px 64px; }
  .partners__logos img { width: calc(var(--w, 120px) * 1.3); }
}

@media (min-width: 1100px) {
  .reviews .section-head__text { max-width: 568px; gap: 21px; }
  .reviews .section-head .h2 { max-width: 391px; margin: 0 auto; }
  .reviews__stage { padding: 43px 20px 38px; gap: 38px; min-height: 694px; justify-content: center; }
  .review { max-width: 677px; padding: 64px 56px 84px 43px; gap: 40px; }
  .review__body { gap: 10px; }
  .review__mark { width: 100px; height: 100px; margin-left: 0; }
  .review__quote { font-size: 24px; line-height: 1.35; max-width: 565px; margin: 0 auto; }
  .review__by { gap: 10px; font-size: 18px; }
  .review__name { text-decoration: underline; text-underline-offset: 5px; }
  .reviews__dot { width: 14px; height: 14px; }

  .partners { padding-top: var(--section-y); padding-bottom: var(--section-y); }
  .partners__logos { gap: 66px 75px; }
  .partners__logos img { width: calc(var(--w, 120px) * 1.6); }
}

/* ---------- Contact CTA ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 369px; padding: 69px 35px;
  display: grid; place-items: center;
  color: var(--white); text-align: center;
  background: var(--ink);
}
.cta__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .44); }
.cta__inner { width: 100%; max-width: 351px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta__copy { display: flex; flex-direction: column; gap: 10px; }
.cta .body { font-weight: 300; }
.cta .btn { width: 100%; margin-top: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--white); padding: 42px 26px 24px 35px; overflow: hidden; }
.footer__grid {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px;
  grid-template-areas:
    "brand   brand"
    "contact contact"
    "nav     social"
    "studio  studio"
    "bottom  bottom"
    "mark    mark";
}
.footer__brand   { grid-area: brand; display: flex; flex-direction: column; gap: 12px; }
.footer__contact { grid-area: contact; margin-top: 48px; display: flex; flex-direction: column; gap: 40px; }
.footer__col--nav    { grid-area: nav; }
.footer__col--social { grid-area: social; }
.footer__col--studio { grid-area: studio; margin-top: 51px; }
.footer__bottom  { grid-area: bottom; }
.footer__mark    { grid-area: mark; }

.footer .brand { color: var(--chalk); }
.footer__tagline { font-weight: 300; font-size: 16px; line-height: 1.4; letter-spacing: 0.02em; max-width: 360px; }
.footer__label { font-weight: 500; font-size: 14px; letter-spacing: 0.11em; text-transform: uppercase; }
.footer__group { display: flex; flex-direction: column; gap: 24px; }
.footer__big {
  display: flex; flex-direction: column; gap: 25px;
  font-family: var(--font-editorial); font-weight: var(--editorial-weight); font-size: 20px; letter-spacing: -0.01em; line-height: 1.1;
}
.footer__big a, .footer__links a { width: fit-content; }
.footer__big a:hover, .footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__col--nav, .footer__col--social { margin-top: 79px; }
.footer__col h2 {
  font-weight: 500; font-size: 14px; letter-spacing: 0.11em; text-transform: uppercase; line-height: 1.2;
}
.footer__links { list-style: none; margin: 23px 0 0; padding: 0; display: flex; flex-direction: column; gap: 23px; font-weight: 300; font-size: 14px; letter-spacing: 0.02em; }
.footer__address { font-weight: 300; font-style: normal; margin-top: 22px; display: flex; flex-direction: column; gap: 22px; font-size: 14px; line-height: 1.4; letter-spacing: 0.02em; max-width: 252px; }
.footer__bottom {
  margin-top: 101px;
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  font-size: 14px; letter-spacing: 0.02em; text-align: center;
}
.footer__copy { display: flex; align-items: center; gap: 4px; }
.footer__legal { display: flex; gap: 51px; }
.footer__legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Wordmark: JS (fitWordmark in main.js) sets the font-size so the text runs exactly from the
   copyright icon to the end of "Terms of Service". The CSS size is the no-JS fallback. */
.footer__mark {
  margin: 28px 0 0; display: flex; align-items: flex-end; justify-content: flex-start; gap: .07em;
  color: var(--stone, #e5e3df); line-height: .9; white-space: nowrap;
  font-size: min(8.4vw, 120px);
}
.footer__mark .brand__word { font-size: 1em; font-weight: 800; letter-spacing: -0.01em; }
.footer__mark .brand__sub { font-size: 1em; font-weight: 700; letter-spacing: 0.12em; margin: 0 -0.12em 0 0; }
.footer a:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; }

@media (min-width: 768px) {
  .cta { min-height: 520px; }
  .cta__inner { max-width: 460px; }
  .cta .btn { width: 278px; }
  .footer { padding: 64px var(--gutter) 32px; }
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "contact contact contact"
      "brand   brand   brand"
      "nav     studio  social"
      "bottom  bottom  bottom"
      "mark    mark    mark";
  }
  .footer__contact { margin: 0 0 72px; align-items: center; text-align: center; }
  .footer__contact .footer__group { align-items: center; }
  .footer__big { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px 27px; font-size: 32px; }
  .footer__big a { width: auto; }
  .footer__col--nav, .footer__col--social, .footer__col--studio { margin-top: 48px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; margin-top: 72px; }
  .footer__legal { gap: 38px; }
}

@media (min-width: 1100px) {
  .cta { min-height: 776px; padding: 160px var(--gutter); }
  .cta__inner { max-width: 448px; gap: 21px; }
  .cta__copy { gap: 21px; }
  .cta .h2 { max-width: 391px; margin: 0 auto; }
  .cta .body { font-size: 24px; line-height: 1.3; }
  .cta .btn { margin-top: 0; }

  .footer { padding: 70px var(--gutter) 40px; }
  .footer__grid {
    max-width: 1355px; margin: 0 auto;
    grid-template-columns: 251px 1fr 140px 251px 140px; column-gap: 0;
    grid-template-areas:
      "contact contact contact contact contact"
      "brand   .       nav     studio  social"
      "bottom  bottom  bottom  bottom  bottom"
      "mark    mark    mark    mark    mark";
  }
  .footer__grid > .footer__col--studio { margin-left: clamp(40px, 7vw, 158px); margin-right: clamp(40px, 7vw, 158px); }
  .footer__grid { grid-template-columns: 251px 1fr auto auto auto; }
  .footer__contact { margin-bottom: 182px; gap: 44px; }
  .footer__contact .footer__group { gap: 36px; }
  .footer__contact .footer__group + .footer__group { gap: 28px; }
  .footer__label { font-size: 18px; }
  .footer__big { font-size: 48px; gap: 27px; }
  .footer__big a { min-width: 0; }
  .footer .brand { width: 160px; }
  .footer .brand .brand__word, .footer .brand .brand__sub { font-size: 32px; }
  .footer__tagline { font-size: 18px; }
  .footer__col--nav, .footer__col--social, .footer__col--studio { margin-top: 0; }
  .footer__col h2 { font-size: 16px; }
  .footer__links { margin-top: 20px; gap: 20px; font-size: 18px; }
  .footer__address { margin-top: 21px; gap: 21px; font-size: 18px; }
  .footer__bottom { margin-top: 114px; font-size: 18px; }
  .footer__mark { margin-top: 22px; }
}

/* =========================================================
   Inner pages
   ========================================================= */

/* ---------- Page header (short hero with compact nav) ---------- */
.page-header {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 260px; padding: 46px 35px;
  background: var(--ink); color: var(--chalk);
}
.page-header__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  filter: grayscale(1);
}
.page-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(26, 26, 26, .3); }
.nav--compact { max-width: 1354px; margin: 0 auto; }

@media (min-width: 1100px) {
  .page-header { min-height: 262px; padding: 98px var(--gutter) 60px; }
  .page-header::before { background: rgba(26, 26, 26, .62); }
  .page-header .brand { width: 160px; }
  .page-header .brand__word, .page-header .brand__sub { font-size: 32px; }
}

/* ---------- Menu overlay: desktop layout ---------- */
@media (min-width: 1100px) {
  .menu {
    display: grid;
    grid-template-columns: minmax(0, 560px) 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "blurb  links"
      "image  links"
      "social contact";
    column-gap: 96px; row-gap: 40px;
    padding: calc(var(--bar-bottom, 160px) + 56px) var(--gutter) 48px;
  }
  .menu__main { display: contents; }
  .menu__nav { grid-area: links; justify-self: end; align-self: start; }
  .menu__links { font-weight: 300; font-size: 36px; letter-spacing: 0.01em; gap: 30px; }
  .menu__links a { display: inline-block; padding: 4px 0; }
  .menu__blurb { grid-area: blurb; margin-top: 0; font-size: 20px; max-width: 460px; }
  .menu__image { grid-area: image; margin-top: 0; max-width: 560px; max-height: 42vh; align-self: start; }
  .menu__contact { grid-area: contact; align-self: end; justify-self: end; align-items: flex-end; font-size: 20px; gap: 12px; }
  .menu__phones { justify-content: flex-end; gap: 40px; }
  .menu__social { grid-area: social; align-self: end; justify-content: flex-start; gap: 36px; font-size: 16px; letter-spacing: 0.11em; text-transform: uppercase; }
}
.menu__links a, .menu__social a, .menu__contact a { transition: opacity .2s ease; }
.menu__links a:hover, .menu__social a:hover, .menu__contact a:hover { opacity: .7; }
.menu__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }

/* ---------- About: manifesto ---------- */
.manifesto { padding-top: 100px; padding-bottom: 70px; }
.manifesto__grid { display: flex; flex-direction: column; }
.manifesto__head { display: flex; flex-direction: column; gap: 20px; }
.manifesto__intro { margin-top: 17px; }
.manifesto__media { margin-top: 40px; width: 100%; height: auto; aspect-ratio: 351 / 499; object-fit: cover; }
.manifesto__sub { margin-top: 50px; display: flex; flex-direction: column; gap: 20px; }
.body--lg strong { font-weight: 700; }

@media (min-width: 768px) {
  .manifesto__media { aspect-ratio: 4 / 5; }
}

@media (min-width: 1100px) {
  .manifesto { padding-top: 205px; padding-bottom: 230px; }
  .manifesto__grid {
    display: grid; grid-template-columns: minmax(0, 645px) minmax(0, 640px);
    justify-content: space-between; column-gap: 64px;
    grid-template-areas:
      "head  head"
      "media intro"
      "media sub";
    align-items: start;
  }
  .manifesto__head { grid-area: head; gap: 21px; margin-bottom: 80px; }
  .manifesto__intro { grid-area: intro; margin-top: 12px; }
  .manifesto__media { grid-area: media; margin-top: 0; aspect-ratio: 645 / 905; }
  .manifesto__sub { grid-area: sub; margin-top: 52px; gap: 45px; }
  .manifesto__sub .h2 { max-width: 470px; }
  .body--lg { font-size: 22px; line-height: 1.45; }
}

/* ---------- About: team ---------- */
.team .section-head .body { max-width: none; }
.team-grid {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 13px;
}
.team-card { position: relative; overflow: hidden; aspect-ratio: 351 / 499; background: var(--ink); }
.team-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.team-card:hover img { transform: scale(1.03); }
.team-card__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  min-height: 94px; padding: 20px 17px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background: linear-gradient(to top, rgba(26,26,26,.65) 5%, rgba(196,196,193,.3) 96%);
  -webkit-backdrop-filter: blur(4.6px); backdrop-filter: blur(4.6px);
  color: var(--chalk);
}
.team-card__name { font-weight: 400; font-size: 20px; line-height: 1.2; letter-spacing: 0.02em; }
.team-card__link { display: inline-flex; color: var(--white); border-radius: 4px; }
.team-card__link:hover { opacity: .75; }
.team-card__link:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.partners__cta { display: flex; width: 240px; margin: 100px auto 30px; }

@media (min-width: 768px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .team-card { aspect-ratio: 659 / 805; }
  .team-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
}

@media (min-width: 1100px) {
  .team { padding-top: 150px; }
  .team .section-head__text { max-width: 568px; gap: 21px; }
  .team .section-head .body { max-width: 520px; margin: 0 auto; }
  .team-grid { margin-top: 59px; gap: 36px; }
  .team-card:last-child:nth-child(odd) { width: calc(50% - 18px); }
  .team-card__caption { min-height: 160px; padding: 44px 38px; gap: 14px; }
  .team-card__name { font-size: 30px; }
  .partners__cta { width: 278px; margin: 135px auto 90px; }
}

/* ---------- Portfolio page ---------- */
:root { --line: #c7c7c7; --muted: #8a8a88; }
.works { padding-top: 80px; }
.works__head { display: flex; flex-direction: column; gap: 20px; }
.works__intro { margin-top: 8px; }
.filters { margin-top: 50px; display: flex; justify-content: space-between; gap: 16px; }
.filters__btn {
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: 500 16px/1.2 var(--font-sans); letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--muted); transition: color .2s ease;
}
.filters__btn:hover { color: var(--ink); }
.filters__btn[aria-pressed="true"] { color: var(--ink); }
.filters__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.works__list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.work-card { position: relative; overflow: hidden; aspect-ratio: 351 / 499; background: var(--ink); }
.work-card[hidden] { display: none; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.work-card:not(.work-card--flat):hover img { transform: scale(1.03); }
/* Mobile: full-width band near the bottom (matches the design's 56px band at 83.6% of the card) */
.work-card__btn {
  position: absolute; left: 0; right: 0; top: 83.57%;
  height: max(56px, 11.25%);
  display: flex; align-items: center; justify-content: center;
  background: var(--chalk); color: var(--ink);
  font-weight: 500; font-size: 14px; letter-spacing: 0.11em; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}
.work-card__btn:hover { background: var(--ink); color: var(--chalk); }
.work-card__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.works__cta { display: flex; width: 240px; margin: 56px auto 0; }

@media (min-width: 768px) {
  .filters { justify-content: flex-start; gap: 30px; }
  .work-card { aspect-ratio: 1354 / 688; }
  .work-card__btn {
    left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%);
    width: 240px; height: 56px;
  }
}

@media (min-width: 1100px) {
  .works { padding-top: 140px; padding-bottom: 100px; }
  .works__head {
    display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 677px);
    justify-content: space-between; column-gap: 48px; row-gap: 21px;
    grid-template-areas: "eyebrow ." "title intro";
  }
  .works__head .eyebrow { grid-area: eyebrow; font-size: 14px; }
  .works__title { grid-area: title; }
  .works__intro { grid-area: intro; margin-top: 2px; }
  .filters { margin-top: 110px; }
  .filters__btn { font-size: 18px; }
  .works__list { margin-top: 60px; gap: 31px; }
  .work-card__btn { width: 280px; height: 64px; font-size: 18px; }
  .works__cta { width: 278px; margin-top: 97px; }
}

/* ---------- Contact page ---------- */
.contact-page { padding-top: 90px; }
.contact-page__grid { display: flex; flex-direction: column; gap: 56px; }
.contact-page__form { display: flex; flex-direction: column; gap: 20px; }
.contact-page__title { max-width: 250px; text-wrap: wrap; }
.form { display: flex; flex-direction: column; gap: 28px; margin-top: 10px; scroll-margin-top: 24px; }
.field { display: flex; flex-direction: column; }
.field__label { font-weight: 700; font-size: 16px; letter-spacing: 0.02em; }
.field__input {
  width: 100%; margin-top: 22px; padding: 12px 19px 16px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
  font: 400 14px/1.4 var(--font-sans); letter-spacing: 0.02em; color: var(--ink);
  transition: border-color .2s ease;
}
.field__input::placeholder { color: rgba(26, 26, 26, .78); opacity: 1; }
.field__input:hover { border-bottom-color: #9a9a98; }
.field__input:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field__input[aria-invalid="true"] { border-bottom-color: #b3261e; box-shadow: 0 1px 0 0 #b3261e; }
.field__select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; padding-right: 36px;
}
.field__select:invalid, .field__select.is-empty { color: rgba(26, 26, 26, .78); }
.field__textarea { resize: vertical; min-height: 52px; field-sizing: content; }
.field__error { margin-top: 8px; font-size: 13px; color: #b3261e; }
.form__submit { width: 240px; margin-top: 4px; cursor: pointer; }
.form__status { font-size: 14px; min-height: 1.4em; }

.contact-page__offices { display: flex; flex-direction: column; gap: 56px; }
.office { display: flex; flex-direction: column; gap: 16px; }
.office__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.office__city, .office__phone, .office__hours {
  font-weight: 400; font-size: 16px; letter-spacing: 0.11em; text-transform: uppercase; line-height: 1.2;
}
.office__phone { white-space: nowrap; }
.office__phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.office__map {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; aspect-ratio: 1290 / 916; background: #eeece8;
}
.office__map-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease; }
.office__map.is-live .office__map-fallback { opacity: 0; }
.office__map-canvas { position: absolute; inset: 0; z-index: 1; background: transparent; font-family: var(--font-sans); }
/* Calm the OpenStreetMap colours toward the design's muted map palette */
.office__map-canvas .leaflet-tile-pane { filter: saturate(.55) contrast(.92) brightness(1.04); }
/* Leaflet chrome in the site's style */
.office__map .leaflet-control-zoom { border: 0; box-shadow: none; margin: 12px; }
.office__map .leaflet-control-zoom a {
  width: 34px; height: 34px; line-height: 32px; border: 0; border-radius: 0;
  background: var(--ink); color: var(--chalk); font: 300 20px/32px var(--font-sans);
}
.office__map .leaflet-control-zoom a:hover { background: #333; color: var(--white); }
.office__map .leaflet-control-zoom a + a { border-top: 1px solid rgba(245,245,245,.15); }
.office__map .leaflet-control-attribution { font-size: 10px; background: rgba(249,248,246,.8); }
.office__map .leaflet-popup-content-wrapper { border-radius: 0; box-shadow: 0 8px 24px rgba(26,26,26,.18); }
.office__map .leaflet-popup-content { margin: 14px 18px; font: 400 14px/1.5 var(--font-sans); color: var(--ink); }
.office__map .leaflet-popup-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.map-pin { display: grid; place-items: center; }
.map-pin span {
  width: 18px; height: 18px; border-radius: 50%; background: var(--ink);
  box-shadow: 0 0 0 5px rgba(26,26,26,.18), 0 0 0 2px var(--chalk) inset;
}
.office__hours { margin-top: -16px; }

@media (min-width: 768px) {
  .field__label { font-size: 18px; }
  .field__input { font-size: 18px; }
}

@media (min-width: 1100px) {
  .contact-page { padding-top: 145px; padding-bottom: 80px; }
  .contact-page__grid {
    display: grid; grid-template-columns: minmax(0, 587px) minmax(0, 644px);
    justify-content: space-between; column-gap: 64px; align-items: start;
  }
  .contact-page__form { gap: 21px; }
  .contact-page__title { max-width: 360px; }
  .form { gap: 70px; margin-top: 60px; }
  .form__submit { width: 278px; margin-top: -10px; }
  .contact-page__offices { gap: 70px; }
  .office { gap: 22px; }
  .office__city, .office__phone, .office__hours { font-size: 18px; }
  .office__hours { margin-top: -24px; }
}

/* ---------- Carousel dots (home portfolio, phones only) ---------- */
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin: 20px 0 -12px; }
.carousel-dots__dot {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(26, 26, 26, .22); cursor: pointer;
  transition: width .3s ease, background-color .3s ease, border-radius .3s ease;
}
.carousel-dots__dot.is-active { width: 22px; border-radius: 3px; background: var(--ink); }
@media (min-width: 768px) { .carousel-dots { display: none; } }

/* Line breaks that only apply on desktop */
.br-desktop { display: none; }
@media (min-width: 1100px) { .br-desktop { display: inline; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Sticky home nav ---------- */
.hero > .nav {
  position: fixed; top: 0; left: 0; right: var(--sb, 0px); z-index: 40;
  padding: 43px var(--gutter) 0;
  transition: padding .4s cubic-bezier(.2, .7, .2, 1), background-color .4s ease, box-shadow .4s ease;
}
.hero > .nav.is-stuck {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(26, 26, 26, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(245, 245, 245, .08);
}
/* Space the nav used to take in the hero flow */
.hero { padding-top: 120px; }
@media (min-width: 1100px) {
  .hero > .nav { padding: 48px max(var(--gutter), calc((100% - 1361px) / 2)) 0; }
  .hero > .nav.is-stuck { padding-top: 14px; padding-bottom: 14px; }
  .hero > .nav .brand, .hero > .nav .brand__word, .hero > .nav .brand__sub { transition: font-size .4s cubic-bezier(.2, .7, .2, 1), width .4s ease; }
  .hero > .nav.is-stuck .brand { width: 120px; }
  .hero > .nav.is-stuck .brand__word, .hero > .nav.is-stuck .brand__sub { font-size: 24px; }
  .hero > .nav .nav__cta { transition: height .4s ease, width .4s ease, font-size .4s ease, background-color .2s ease, color .2s ease; }
  .hero > .nav.is-stuck .nav__cta { height: 48px; width: 230px; font-size: 16px; }
  .hero { padding-top: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero > .nav, .hero > .nav * { transition: none !important; }
}

/* ---------- More air between the hero and "Our philosophy" ---------- */
.about { padding-top: calc(var(--section-y) * 1.75); }

/* ---------- Band spacing ----------
   Two light sections are separated by 2 × --section-y of ivory. Where a light section meets a dark or
   photo band (Process, the CTA photo), it takes the full 2 × --section-y on that side so the visible
   ivory gap matches the rest of the page. */
.portfolio { padding-bottom: calc(var(--section-y) * 2); }
.reviews   { padding-top: calc(var(--section-y) * 2); }
.partners  { padding-bottom: calc(var(--section-y) * 2); }
@media (min-width: 1100px) {
  .partners { padding-bottom: calc(var(--section-y) * 2); }
}

/* ---------- Split-text animation (headings + subheadings) ----------
   Words are wrapped by JS; without JS the text simply shows. Mirrors the "motion-split-text"
   component: each word rises 10px and fades in, staggered 0.05s. */
.split-word { display: inline-block; opacity: 0; transform: translateY(10px); will-change: transform, opacity; }
.split-ready .split-word {
  opacity: 1; transform: none;
  transition: opacity 1.1s cubic-bezier(.22, 1, .36, 1), transform 1.1s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i) * 50ms + var(--offset, 0ms));
}
.split-text--sub .split-word { transition-delay: calc(var(--i) * 18ms + var(--offset, 0ms)); }

/* ---------- Lenis smooth scrolling (rules from the Lenis docs) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Parallax layers ---------- */
/* Only devices that run the parallax get layer promotion; phones keep memory free for smooth scrolling. */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .hero__bg, .page-header__bg, .process__bg, .reviews__bg, .cta__bg { will-change: transform; transform-origin: 50% 50%; }
}

/* ---------- Count-up figures: fixed-width digits so the number doesn't jitter while counting ---------- */
.stat__num { font-variant-numeric: tabular-nums; }

/* ---------- Tap feedback ----------
   No grey tap box on Android/iOS, and no focus ring after a tap or mouse click (keyboard focus still shows one). */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
.menu:focus { outline: none; }
.icon-btn:focus:not(:focus-visible) { outline: none; }

/* ---------- Phone-only additions ---------- */
/* Extra portfolio cards appear only in the phone carousel; tablet and desktop keep the two-card grid. */
@media (min-width: 768px) { .project-card--phone-only { display: none; } }

/* Sub text runs the full column width on phones, matching the headings above it
   (Services and Process were capped narrower than the rest). */
@media (max-width: 767px) {
  .section-head .body, .process__intro .body { max-width: none; }
}

/* ---------- 404 page ---------- */
.not-found { padding-top: calc(var(--section-y) * 1.5); padding-bottom: calc(var(--section-y) * 2); }
.not-found__inner { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.not-found__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; margin-top: 20px; }
.not-found .text-link { margin: 0; }
@media (min-width: 1100px) { .not-found__inner { margin: 0; gap: 24px; } }
