/* ==========================================================================
   HAB Engineering — site styles
   Light, warm, photo-led. Colours sampled from HAB's own facades.
   ========================================================================== */

@font-face {
  font-family: "Albert Sans";
  src: url("/fonts/albert-sans-var.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand: black + #F1F0EE (from the logo). Project pages add their own
     facade colour through --accent / --accent-ink / --on-accent. */
  --ink: #000;
  --ink-2: #000;
  --paper: #f1f0ee;
  --paper-2: #e7e6e3;
  --stone: #dad8d4;
  --muted: #5e5d5b;
  --muted-light: #9c9b98;
  --line: rgba(0, 0, 0, 0.13);
  --accent: var(--ink);
  --accent-ink: var(--ink);
  --on-accent: #fff;
  --line-light: rgba(243, 239, 233, 0.16);

  --font: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1440px;
  --header-h: 84px;
  --section: clamp(88px, 11vw, 168px);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------------- base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { flex: none; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink);
  padding: 12px 18px; border-radius: 999px; font-weight: 500;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------------------------------------------------------- typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-ink);
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--plain::before { display: none; }

.display {
  font-size: clamp(3.6rem, 12.5vw, 11rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.h1 {
  font-size: clamp(2.6rem, 6.6vw, 6.2rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.4rem, 2.5vw, 2.15rem);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.muted { color: var(--muted); }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 62ch; text-wrap: pretty; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 52px;
  padding: 0.85rem 1.55rem 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease),
    opacity 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.3s var(--ease);
}
.btn:active { transform: scale(0.98); }

/* Arrow hover: the arrow slides out to the right and back in from the left,
   so it always comes to rest in the same place. */
@keyframes arrow-loop {
  0% { transform: translateX(0); opacity: 1; }
  42% { transform: translateX(12px); opacity: 0; }
  43% { transform: translateX(-12px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.btn:hover svg, .link-arrow:hover svg, .next-project:hover .link-arrow svg,
.card:hover .card__arrow svg, .plan:hover .plan__ask svg {
  animation: arrow-loop 0.7s var(--ease-out);
}

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: #2b2b2a; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5); }
.btn--invert { background: var(--paper); color: var(--ink); }
.btn--invert:hover { background: #fff; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6); }
.btn--accent { background: var(--on-accent); color: var(--accent); }
.btn--accent:hover { opacity: 0.9; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45); }
.btn--outline { border: 1.5px solid currentColor; }
.btn--outline:hover { background: color-mix(in srgb, currentColor 12%, transparent); }

.btn--light { border: 1.5px solid rgba(255, 255, 255, 0.7); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--ink { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--paper); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
}
/* underline wipes away to the right and redraws from the left */
.link-arrow:hover, .next-project:hover .link-arrow { animation: underline-redraw 0.8s var(--ease-out); }
@keyframes underline-redraw {
  0% { background-size: 100% 1px; background-position: right bottom; }
  45% { background-size: 0% 1px; background-position: right bottom; }
  46% { background-size: 0% 1px; background-position: left bottom; }
  100% { background-size: 100% 1px; background-position: left bottom; }
}

/* --------------------------------------------------------------- chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.42em 0.95em;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.chip--glass::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
}
.chip--glass {
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* -------------------------------------------------------------- header */
/* Always solid and always visible; the page content starts below it. */
.header ~ main { padding-top: var(--header-h); }
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(241, 240, 238, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo { display: inline-flex; color: inherit; }
.logo svg { width: 104px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav__list { display: flex; gap: clamp(20px, 2.8vw, 40px); }
.nav__link {
  position: relative;
  font-size: 0.98rem;
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.lang a, .lang span { padding: 6px 7px; }
.lang [aria-current="true"] { font-weight: 600; }
.lang a { opacity: 0.6; transition: opacity 0.4s var(--ease); }
.lang a:hover { opacity: 1; }
.lang i { width: 1px; height: 14px; background: currentColor; opacity: 0.4; }

.burger {
  display: none;
  width: 48px; height: 48px;
  margin-right: -12px;
  position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 28px; }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav__list, .header .lang { display: none; }
  .burger { display: block; }
  .logo svg { width: 92px; }
}

/* --------------------------------------------------------- mobile menu */
.menu {
  position: fixed; inset: 0;
  z-index: 60;
  background: var(--ink-2);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
  overflow-y: auto;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.45s var(--ease); }
.menu__top {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.menu__close { width: 48px; height: 48px; margin-right: -12px; display: grid; place-items: center; }
.menu__links { margin-top: 4vh; display: grid; gap: 4px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(2.3rem, 10vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out);
}
.menu__links a small { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--muted-light); font-weight: 500; }
.menu__links a[aria-current="page"] { color: var(--muted-light); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links li:nth-child(2) a { transition-delay: 0.05s; }
.menu.is-open .menu__links li:nth-child(3) a { transition-delay: 0.1s; }
.menu.is-open .menu__links li:nth-child(4) a { transition-delay: 0.15s; }
.menu__bottom {
  margin-top: auto;
  padding: 40px 0 max(32px, env(safe-area-inset-bottom));
  display: grid; gap: 22px;
  border-top: 1px solid var(--line-light);
}
.menu__phones { display: grid; gap: 12px; padding-top: 28px; }
.menu__phones a { display: flex; justify-content: space-between; gap: 16px; font-size: 1.05rem; }
.menu__phones span { color: var(--muted-light); }
.menu .lang { font-size: 1rem; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 560px;
  max-height: 1200px;
  background: var(--ink-2);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.3s var(--ease), visibility 0s 1.3s;
}
.hero__slide.is-active {
  opacity: 1; visibility: visible; z-index: 1;
  transition: opacity 1.3s var(--ease);
}
.hero__media, .page-hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img, .page-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media img {
  transform: scale(1.09);
  transition: transform 0s 1.3s;
}
.hero__slide.is-active .hero__media img {
  transform: scale(1);
  transition: transform 9s cubic-bezier(0.25, 0.4, 0.35, 1);
}
.hero__shade, .page-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.38) 38%, rgba(0, 0, 0, 0) 64%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 55%);
}
.hero__content {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(104px, 15vh, 150px);
}
.hero__content > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.hero__slide.is-active .hero__content > * {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease) 0.35s, transform 1.2s var(--ease-out) 0.35s;
}
.hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: 0.45s; }
.hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: 0.6s; }
.hero__slide.is-active .hero__content > :nth-child(4) { transition-delay: 0.72s; }
.hero .eyebrow { color: #fff; }
.hero .display { margin: 0.18em 0 0.16em -0.04em; }
.hero__sub {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 18px;
  font-size: clamp(1.02rem, 1.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
}
.hero__cta { margin-top: clamp(24px, 3.4vh, 36px); }

.hero__controls {
  position: absolute; z-index: 5;
  left: 0; right: 0; bottom: clamp(28px, 5vh, 48px);
}
.hero__controls .container { display: flex; align-items: center; gap: 18px; justify-content: flex-end; }
.hero__tabs { display: flex; gap: 14px; flex: 0 1 640px; }
.hero__tab {
  flex: 1;
  text-align: left;
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.45s var(--ease);
  min-width: 0;
}
.hero__tab:hover, .hero__tab.is-active { color: #fff; }
.hero__bar {
  display: block;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}
.hero__bar::after {
  content: "";
  position: absolute; inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.hero__tab.is-done .hero__bar::after { transform: scaleX(1); }
.hero__tab.is-active .hero__bar::after { animation: hero-fill var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__tab.is-active .hero__bar::after { animation-play-state: paused; }
.hero.is-static .hero__tab.is-active .hero__bar::after { animation: none; transform: scaleX(1); }
@keyframes hero-fill { to { transform: scaleX(1); } }
.hero__tab b { display: block; font-weight: 500; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__tab small { display: block; font-size: 0.8rem; opacity: 0.75; white-space: nowrap; }
.hero__pause {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid; place-items: center;
  margin-top: 4px;
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.hero__pause:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.hero__pause .i-play { display: none; }
.hero.is-paused .hero__pause .i-play { display: block; }
.hero.is-paused .hero__pause .i-pause { display: none; }

@media (max-width: 700px) {
  .hero__content { bottom: 104px; }
  .hero__tab { padding-top: 10px; }
  .hero__tab b, .hero__tab small { display: none; }
  .hero__bar { margin-bottom: 0; }
  .hero__controls .container { gap: 12px; }
  .hero__controls { bottom: 34px; }
  .hero__shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.05) 75%);
  }
}

/* ------------------------------------------------------- page hero */
.page-hero {
  position: relative;
  height: calc(76vh - var(--header-h)); height: calc(76svh - var(--header-h));
  min-height: 460px;
  max-height: 880px;
  background: var(--ink-2);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}
.page-hero--short { height: calc(62vh - var(--header-h)); height: calc(62svh - var(--header-h)); min-height: 400px; }
.page-hero--tall { height: calc(92vh - var(--header-h)); height: calc(92svh - var(--header-h)); min-height: 500px; max-height: 1100px; }
.page-hero__media img { animation: page-zoom 2.2s var(--ease-out) both; }
@keyframes page-zoom { from { transform: scale(1.08); } to { transform: none; } }
.page-hero__content {
  position: relative;
  padding-bottom: clamp(48px, 9vh, 96px);
}
.section--after-hero { padding-top: clamp(56px, 7vw, 104px); }
.page-hero .eyebrow { color: #fff; }
.page-hero .h1 { margin-top: 0.42em; max-width: 14ch; text-wrap: balance; }
.page-hero .display { margin: 0.16em 0 0.12em -0.04em; }
.page-hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
}
.crumb {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.8);
  margin-bottom: clamp(18px, 3vh, 28px);
}
.crumb:hover { color: #fff; }
.crumb svg { transform: rotate(180deg); }

/* ----------------------------------------------------------- sections */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.62); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .eyebrow { color: var(--muted-light); }
.section--dark .muted { color: var(--muted-light); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .h2 { margin-top: 0.5em; max-width: 18ch; }

/* --------------------------------------------------------------- intro */
.intro { display: grid; gap: clamp(56px, 7vw, 104px); }
.intro__text { max-width: 30ch; font-size: clamp(1.7rem, 3.6vw, 3.25rem); }
.intro__head { display: grid; gap: 28px; }

/* --------------------------------------------------------------- stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 28px 24px 4px 0;
  border-right: 1px solid var(--line);
  margin-right: 24px;
}
.stat:last-child { border-right: 0; margin-right: 0; }
.stat__num {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__num small {
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 0.2em;
  vertical-align: top;
  position: relative;
  top: 0.12em;
}
.stat__label { display: block; margin-top: 14px; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.section--dark .stats, .section--dark .stat { border-color: var(--line-light); }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat__num { font-size: clamp(2rem, 8.6vw, 3.4rem); }
  .stat { border-right: 0; margin-right: 0; padding-right: 12px; border-bottom: 1px solid var(--line); padding-bottom: 26px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); margin-right: 0; }
  .stat:nth-child(even) { padding-left: 20px; }
  .stat:nth-last-child(-n + 2) { border-bottom: 0; }
}

/* ---------------------------------------------------------- project cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.2vw, 32px); }
.card { display: block; position: relative; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
  border-radius: var(--radius);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__chips { position: absolute; top: 16px; left: 16px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 1; }
.card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 4px 16px;
  padding-top: 20px;
}
.card__title { font-size: clamp(1.6rem, 2.3vw, 2.1rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.card__meta { grid-column: 1; color: var(--muted); font-size: 0.98rem; }
.card__arrow {
  grid-row: 1 / span 2; grid-column: 2;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover .card__arrow { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card__note { grid-column: 1 / -1; margin-top: 8px; font-size: 0.9rem; color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  /* horizontal swipe row on phones */
  .cards--scroll {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 420px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .cards--scroll::-webkit-scrollbar { display: none; }
  .cards--scroll .card { scroll-snap-align: start; }
}

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(44px, 5vw, 80px) clamp(20px, 2.4vw, 36px); }
.projects-grid .card__media { aspect-ratio: 16 / 11; }
.projects-grid .card.is-hidden { display: none; }
@media (max-width: 900px) {
  .cards:not(.cards--scroll) { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

/* photo focus point (set per image); phones can use a different one */
[style*="--focus"] { object-position: var(--focus); }
@media (max-width: 700px) {
  [style*="--focus-m"] { object-position: var(--focus-m); }
}

/* ------------------------------------------------------------- filters */
.filters {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 18px 40px;
  padding-bottom: 28px;
  margin-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.pill {
  min-height: 40px;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.92rem;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters__count { margin-left: auto; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 700px) {
  .filters { gap: 14px; }
  .filter {
    flex-wrap: nowrap;
    width: calc(100% + 2 * var(--gutter));
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filter::-webkit-scrollbar { display: none; }
  .pill { white-space: nowrap; flex: none; }
  .filter__label { flex: none; min-width: 64px; }
  .filters__count { margin-left: 0; }
}
.empty { display: none; padding: 40px 0; color: var(--muted); }
.empty.is-visible { display: block; }

/* ------------------------------------------------------- payment band */
.band {
  position: relative;
  color: #fff;
  background: var(--ink-2);
  overflow: hidden;
  isolation: isolate;
}
.band__media { position: absolute; inset: 0; z-index: -1; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.72) 48%, rgba(0, 0, 0, 0.35) 100%);
}
.band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: end;
  padding-block: clamp(96px, 12vw, 180px);
}
.band .eyebrow { color: rgba(255, 255, 255, 0.72); }
.band .h2 { margin: 0.5em 0 0.55em; max-width: 14ch; font-size: clamp(2.4rem, 5.4vw, 4.8rem); }
.band p { max-width: 50ch; color: rgba(255, 255, 255, 0.82); }
.band .btn { margin-top: 36px; }
.plans { display: grid; gap: 12px; }
.plan {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 20px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.plan:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }
.plan b { font-weight: 400; font-size: 1.45rem; letter-spacing: -0.01em; }
.plan small { grid-column: 1; color: rgba(255, 255, 255, 0.68); font-size: 0.92rem; }
.plan span {
  grid-row: 1 / span 2; grid-column: 2;
  font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1;
  text-align: right;
}
.plan .plan__ask {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.98rem; font-weight: 500; letter-spacing: 0; line-height: 1.2; white-space: nowrap;
}
.plan span em { font-style: normal; font-size: 0.42em; letter-spacing: 0; color: rgba(255, 255, 255, 0.7); display: block; margin-top: 6px; }
@media (max-width: 900px) {
  .band__inner { grid-template-columns: 1fr; }
  .band__media::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.78) 60%, rgba(0, 0, 0, 0.55) 100%); }
}

/* ------------------------------------------------------------ services */
.services { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 112px); }
.services__head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.services__head .h2 { margin-top: 0.5em; max-width: 12ch; }
.service {
  display: grid;
  grid-template-columns: clamp(64px, 8vw, 120px) 1fr;
  gap: 8px 24px;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__num {
  grid-row: 1 / span 2;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 200;
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.service p { color: var(--muted); max-width: 52ch; }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .services__head { position: static; }
}

/* ------------------------------------------------------- contact CTA */
.cta__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.cta__head .h2 { margin-top: 0.5em; font-size: clamp(2.6rem, 6vw, 5.4rem); }
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.office {
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  min-height: 260px;
}
.office__city { font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.office__street { color: var(--muted-light); margin-top: 6px; }
.office__phone {
  margin-top: auto;
  padding-top: 32px;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.office__phone svg { color: var(--muted-light); }
.office__map { margin-top: 10px; font-size: 0.92rem; color: var(--muted-light); display: inline-flex; gap: 8px; align-items: center; width: fit-content; }
.office__map:hover { color: var(--paper); }
.cta__email { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; color: var(--muted-light); }
.cta__email a { color: var(--paper); font-size: 1.15rem; border-bottom: 1px solid var(--line-light); padding-bottom: 2px; }
.cta__email a:hover { border-color: var(--paper); }
@media (max-width: 900px) {
  .cta__head { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; }
  .office { min-height: 0; }
  .office__phone { padding-top: 24px; }
}

/* -------------------------------------------- project accent (facade colour) */
.section--accent { background: var(--accent); color: var(--on-accent); }
.section--accent .eyebrow,
.section--accent .muted,
.section--accent .office__map { color: inherit; opacity: 0.8; }
.section--accent .office__map:hover { opacity: 1; }
.facts { border-top: 3px solid var(--accent); }

/* ----------------------------------------------------------------- about */
.about-intro { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: clamp(32px, 6vw, 96px); }
.about-intro .lead { max-width: 30ch; }
.about-intro__body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(24px, 4vw, 64px); margin-top: clamp(36px, 4vw, 56px); color: var(--muted); }
@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-intro__body { grid-template-columns: 1fr; }
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.split__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.mv { display: grid; gap: clamp(40px, 5vw, 64px); }
.mv__item .h3 { margin: 0.6em 0 0.7em; font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 300; }
.mv__item p { color: var(--muted-light); max-width: 46ch; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 4 / 3; }
}

/* timeline */
.timeline { position: relative; max-width: 1080px; margin-inline: auto; }
.timeline__line, .timeline__fill {
  position: absolute; top: 0; bottom: 0;
  left: 50%; width: 1px; transform: translateX(-0.5px);
  background: var(--line);
}
.timeline__fill { background: var(--ink); bottom: auto; height: calc(var(--tl, 0) * 100%); width: 2px; transform: translateX(-1px); }
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 128px);
  padding: clamp(28px, 4vw, 52px) 0;
}
.tl-item::before {
  content: "";
  position: absolute; left: 50%; top: clamp(44px, 5.6vw, 70px);
  width: 13px; height: 13px; border-radius: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border: 2px solid var(--stone);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  z-index: 1;
}
.tl-item.is-passed::before { background: var(--ink); border-color: var(--ink); }
.tl-item__mark {
  text-align: right;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.tl-item__body .h3 { margin-bottom: 12px; }
.tl-item__body p { color: var(--muted); max-width: 42ch; }
.tl-item:nth-child(even of .tl-item) .tl-item__mark { order: 2; text-align: left; }
.tl-item:nth-child(even of .tl-item) .tl-item__body { order: 1; text-align: right; justify-self: end; }
.tl-item:nth-child(even of .tl-item) .tl-item__body p { margin-left: auto; }
@media (max-width: 760px) {
  .timeline__line, .timeline__fill { left: 6px; }
  .tl-item { grid-template-columns: 1fr; gap: 12px; padding-left: 40px; }
  .tl-item::before { left: 6px; top: clamp(36px, 8vw, 46px); }
  .tl-item__mark, .tl-item:nth-child(even of .tl-item) .tl-item__mark { order: 0; text-align: left; font-size: clamp(2.2rem, 10vw, 3rem); }
  .tl-item:nth-child(even of .tl-item) .tl-item__body { order: 1; text-align: left; justify-self: start; }
  .tl-item:nth-child(even of .tl-item) .tl-item__body p { margin-left: 0; }
}

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 44px); }
.value { border-top: 1px solid var(--line); padding-top: 24px; }
.value__num { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.18em; color: var(--ink); }
.value .h3 { margin: 22px 0 12px; font-size: clamp(1.35rem, 1.7vw, 1.6rem); }
.value p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 1100px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- project page */
.facts {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  border-bottom: 1px solid var(--line);
}
.fact { padding: 28px 24px 28px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.fact:last-child { border-right: 0; margin-right: 0; }
.fact dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin-top: 10px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.35; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding: 20px 12px 20px 0; }
  .fact:nth-child(odd) { border-right: 1px solid var(--line); }
  .fact:nth-child(even) { padding-left: 18px; }
  .fact:nth-last-child(-n + 2):nth-child(odd), .fact:last-child { border-bottom: 0; }
}

.project-about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 112px); }
.project-about .lead { max-width: 28ch; }
.project-about__side { display: grid; gap: 40px; align-content: start; padding-top: 10px; }
.highlights { display: grid; border-top: 1px solid var(--line); }
.highlights li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.highlights li::before { content: ""; width: 18px; height: 1.5px; background: var(--accent-ink); flex: none; transform: translateY(-4px); }
@media (max-width: 900px) { .project-about { grid-template-columns: 1fr; } }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(200px, 26vw, 440px);
  gap: clamp(10px, 1.2vw, 18px);
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone);
  cursor: zoom-in;
  grid-column: span 4;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item.s4 { grid-column: span 4; }
.gallery__item.s6 { grid-column: span 6; }
.gallery__item.s8 { grid-column: span 8; }
.gallery__item.s12 { grid-column: span 12; }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background-color 0.6s var(--ease);
}
.gallery__item:hover::after { background: rgba(0, 0, 0, 0.1); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .gallery .gallery__item { grid-column: span 1; }
  .gallery .gallery__item:nth-child(3n + 1) { grid-column: span 2; }
  .gallery .gallery__item:nth-child(3n + 1):last-child,
  .gallery .gallery__item:nth-child(3n + 2):last-child { grid-column: span 2; }
}

.next-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px clamp(32px, 6vw, 96px);
}
.next-project__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); }
.next-project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.next-project:hover .next-project__media img { transform: scale(1.04); }
.next-project .display { font-size: clamp(3rem, 8vw, 7.5rem); margin: 0.16em 0 0.2em -0.04em; }
@media (max-width: 760px) { .next-project { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- lightbox */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, 0.97);
  color: #fff;
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade-in 0.35s var(--ease); }
@keyframes fade-in { from { opacity: 0; } }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); min-height: 72px; }
.lightbox__count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.75); letter-spacing: 0.08em; font-size: 0.95rem; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(8px, 7vw, 120px); min-height: 0; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; user-select: none; -webkit-user-drag: none; }
.lightbox__btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(8px, 2vw, 32px); }
.lightbox__nav--prev svg { transform: rotate(180deg); }
.lightbox__nav--next { right: clamp(8px, 2vw, 32px); }
.lightbox__caption { padding: 16px var(--gutter) max(20px, env(safe-area-inset-bottom)); color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; text-align: center; }
@media (max-width: 700px) {
  .lightbox__nav { top: auto; bottom: -64px; transform: none; }
  .lightbox__stage { padding: 0; }
  .lightbox__caption { padding-bottom: max(84px, env(safe-area-inset-bottom)); }
}

/* -------------------------------------------------------------- contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(48px, 6vw, 112px); align-items: start; }
.contact__offices { display: grid; }
.contact-office {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.contact-office:last-child { border-bottom: 1px solid var(--line); }
.contact-office h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.contact-office p { grid-column: 1; color: var(--muted); }
.contact-office .tel {
  grid-column: 1;
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 1.2rem; font-weight: 500;
  width: fit-content;
  font-variant-numeric: tabular-nums;
}
.contact-office .tel svg { color: var(--ink); }
.contact-office .map-link { grid-row: 1 / span 3; grid-column: 2; align-self: center; }
.contact__more { margin-top: 40px; display: grid; gap: 20px; }
.contact__more a.big { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 300; border-bottom: 1px solid var(--line); padding-bottom: 4px; width: fit-content; }
.contact__more a.big:hover { border-color: var(--ink); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.socials a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.round-link {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.round-link:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.form {
  background: #fff;
  border-radius: 6px;
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(0, 0, 0, 0.3);
}
.form .h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 300; }
.form > p { color: var(--muted); margin: 10px 0 32px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px 16px;
  min-height: 52px;
  transition: border-color 0.25s, background-color 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form__foot p { color: var(--muted); font-size: 0.88rem; flex: 1 1 220px; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form.is-busy .btn { opacity: 0.7; cursor: progress; }
.form__error {
  margin-top: 20px; padding: 14px 18px;
  border-radius: var(--radius); border: 1px solid rgba(179, 38, 30, 0.35);
  background: rgba(179, 38, 30, 0.06); color: #8a1f17; font-size: 0.95rem;
}
.form__error a { text-decoration: underline; text-underline-offset: 3px; }
.form__done { outline: none; animation: rise-in 0.9s var(--ease-out) both; }
.form__done p { color: var(--muted); margin: 10px 0 28px; }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form__grid { grid-template-columns: 1fr; }
  .form { margin-inline: calc(var(--gutter) * -0.5); }
}

/* --------------------------------------------------------------- footer */
.footer { background: var(--ink); color: var(--paper); padding: clamp(72px, 8vw, 120px) 0 32px; border-top: 1px solid var(--line-light); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.footer .logo svg { width: 132px; }
.footer__slogan { margin-top: 26px; font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; max-width: 12ch; }
.footer h2 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 20px; }
.footer li + li { margin-top: 10px; }
.footer a { transition: color 0.45s var(--ease); }
.footer a:hover { color: var(--muted-light); }
.footer__office span { display: block; color: var(--muted-light); font-size: 0.88rem; }
.footer__bottom {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  color: var(--muted-light); font-size: 0.88rem;
}
.footer .lang a { opacity: 0.7; }
@media (max-width: 1000px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- 404 */
.notfound { min-height: 100svh; display: grid; align-content: center; gap: 24px; background: var(--ink-2); color: var(--paper); }
.notfound .display { color: var(--muted-light); }

/* ----------------------------------------------------- scroll reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="img"] { transform: none; clip-path: inset(10% 0 0 0); transition: opacity 1s var(--ease), clip-path 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0); }

/* inner-page hero text rises in when the page opens */
.page-hero__content > * { animation: rise-in 1.1s var(--ease-out) both; }
.page-hero__content > :nth-child(2) { animation-delay: 0.08s; }
.page-hero__content > :nth-child(3) { animation-delay: 0.16s; }
.page-hero__content > :nth-child(4) { animation-delay: 0.24s; }
.page-hero__content > :nth-child(5) { animation-delay: 0.32s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } }

/* Visitors whose system asks for less motion: keep the gentle fades and
   colour changes, drop anything that moves, zooms or slides. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal="img"] {
    transform: none; clip-path: none;
    transition: opacity 1s var(--ease); transition-delay: var(--d, 0s);
  }
  .page-hero__content > * { animation-name: fade-in; }
  .page-hero__media img { animation: none; }
  .hero__slide .hero__media img, .hero__slide.is-active .hero__media img { transform: none; transition: none; }
  .hero__content > *, .hero__slide.is-active .hero__content > * { transform: none; }
  .menu__links a { transform: none; }
  .card:hover .card__media img, .gallery__item:hover img,
  .next-project:hover .next-project__media img { transform: none; }
.btn:hover svg, .link-arrow:hover svg, .next-project:hover .link-arrow svg,
.card:hover .card__arrow svg, .plan:hover .plan__ask svg { animation: none; }
  .btn:active { transform: none; }
}
