/* ==========================================================
   AS5 — Design System (static HTML/CSS/JS build)
   A disciplined black-and-white identity: bold condensed caps
   for headlines, a clean grotesque for body copy, structural
   (not soft) corners, and high-contrast photography throughout.
   No accent color — hierarchy comes from weight, size, and
   black/white/gray contrast alone.
   ========================================================== */

:root {
  --color-surface: #ffffff;
  --color-surface-alt: #f4f4f5;
  --color-surface-container: #e8e8ea;
  --color-on-surface: #131315;
  --color-on-surface-variant: #58595f;
  --color-outline: #c4c4c9;
  --color-outline-variant: #e1e1e5;

  --color-ink: #0a0a0b;
  --color-on-ink: #ffffff;

  --color-error: #c22a2a;

  --font-display: "Archivo Black", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --container-max: 1440px;
  --margin-desktop: 80px;
  --margin-tablet: 40px;
  --margin-mobile: 24px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --curve-height: 56px;
}
@media (min-width: 768px) {
  :root {
    --curve-height: 90px;
  }
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  background-image: url("/images/pattern-tile.png");
  background-repeat: repeat;
  background-size: 340px 340px;
  color: var(--color-on-surface);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* ---------------------------------------------------------- */
/* Type scale                                                   */
/* ---------------------------------------------------------- */

.text-display-xl {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .text-display-xl {
    font-size: 58px;
  }
}

.text-headline-lg {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .text-headline-lg {
    font-size: 34px;
  }
}

.text-headline-md {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .text-headline-md {
    font-size: 22px;
  }
}

.text-body-lg {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
}
@media (min-width: 768px) {
  .text-body-lg {
    font-size: 19px;
  }
}

.text-body-md {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

.text-label-caps {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
}

.text-stat {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-on-surface);
}
@media (min-width: 768px) {
  .text-stat {
    font-size: 42px;
  }
}
.surface-ink .text-stat {
  color: var(--color-on-ink);
}

/* ---------------------------------------------------------- */
/* Layout                                                       */
/* ---------------------------------------------------------- */

.container-frame {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}
@media (min-width: 768px) {
  .container-frame {
    padding-inline: var(--margin-tablet);
  }
}
@media (min-width: 1024px) {
  .container-frame {
    padding-inline: var(--margin-desktop);
  }
}

.section {
  padding-block: 72px;
}
@media (min-width: 768px) {
  .section {
    padding-block: 100px;
  }
}

.section--tight {
  padding-block: 40px;
}
@media (min-width: 768px) {
  .section--tight {
    padding-block: 56px;
  }
}

.hairline {
  border: none;
  border-top: 1px solid var(--color-outline-variant);
  margin: 0;
}
.surface-ink .hairline {
  border-top-color: rgba(255, 255, 255, 0.16);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 84px;
}

/* ---------------------------------------------------------- */
/* Color surfaces                                                */
/* ---------------------------------------------------------- */

.surface-alt {
  background: rgba(244, 244, 245, 0.92);
}
.surface-ink {
  background: var(--color-ink);
  color: var(--color-on-ink);
}
.surface-ink .on-surface-variant {
  color: rgba(255, 255, 255, 0.65);
}

.on-surface-variant {
  color: var(--color-on-surface-variant);
}

/* Curved section transitions — a wide, shallow arc across the
   full width of the section. */
.curve-top {
  border-radius: 50% / var(--curve-height) var(--curve-height) 0 0;
}
.curve-bottom {
  border-radius: 0 0 50% / 0 0 var(--curve-height) var(--curve-height);
}
.curve-both {
  border-radius: 50% / var(--curve-height) var(--curve-height) var(--curve-height) var(--curve-height);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 150ms ease;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-color: var(--color-ink);
}
.btn--primary:hover {
  background: var(--color-surface);
  color: var(--color-ink);
}
.btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn--secondary:hover {
  background: var(--color-ink);
  color: var(--color-on-ink);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-on-ink);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--outline-light:hover {
  background: var(--color-on-ink);
  color: var(--color-ink);
  border-color: var(--color-on-ink);
}

/* ---------------------------------------------------------- */
/* Navbar                                                       */
/* ---------------------------------------------------------- */

.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: var(--color-ink);
}

.navbar__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height 200ms ease;
}
.navbar.is-scrolled .navbar__bar {
  height: 64px;
}
.navbar.is-scrolled {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.navbar__logo {
  display: inline-flex;
  align-items: center;
}
.navbar__logo-img {
  height: 38px;
  width: auto;
  display: block;
  filter: none;
}

/* Inline brand-mark swap: used where "AS5" appears as a standalone
   word inside a headline, sized to sit on the text baseline. */
.inline-logo {
  height: 0.8em;
  width: auto;
  display: inline-block;
  vertical-align: -0.05em;
  filter: none;
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }
}

.navbar__link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}
.navbar__link:hover,
.navbar__link.is-active {
  color: var(--color-on-ink);
}

.navbar__cta {
  display: none;
}
@media (min-width: 640px) {
  .navbar__cta {
    display: inline-flex;
  }
}

.navbar__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
}
@media (min-width: 768px) {
  .navbar__toggle {
    display: none;
  }
}
.navbar__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-on-ink);
  transition: transform 200ms ease;
}
.navbar__toggle.is-open .navbar__toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}
.navbar__toggle.is-open .navbar__toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.navbar__mobile {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: var(--color-ink);
}
@media (min-width: 768px) {
  .navbar__mobile {
    display: none !important;
  }
}
.navbar__mobile.is-open {
  display: block;
}
.navbar__mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 32px;
}
.navbar__mobile a {
  color: var(--color-on-ink);
}
.navbar__mobile .btn {
  display: none;
}
@media (max-width: 639px) {
  .navbar__mobile .btn {
    display: inline-flex;
    width: 100%;
  }
}

/* ---------------------------------------------------------- */
/* Footer — solid black band with an embedded inquiry form       */
/* ---------------------------------------------------------- */

.footer {
  background: var(--color-ink);
  color: var(--color-on-ink);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: 72px;
}
.footer__logo {
  height: 44px;
  width: auto;
  display: block;
  filter: none;
  margin-bottom: 8px;
  align-self: flex-start;
}
.footer__columns {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer__columns {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.footer__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer__group .mt-12 {
  margin-top: 20px;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__link {
  color: rgba(255, 255, 255, 0.8);
}
.footer__link:hover {
  color: var(--color-on-ink);
  text-decoration: underline;
}
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-on-ink);
}
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 24px;
}

/* ---------------------------------------------------------- */
/* Reveal-on-scroll (JS toggles .is-visible)                    */
/* ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---------------------------------------------------------- */
/* Hero + parallax                                               */
/* ---------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 560px;
  height: calc(100vh - 84px);
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-radius: 0 0 50% / 0 0 var(--curve-height) var(--curve-height);
}
.hero__media {
  position: absolute;
  inset: 0;
  height: 130%;
  will-change: transform;
  filter: none;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 11, 0.6) 0%,
    rgba(10, 10, 11, 0.4) 45%,
    rgba(10, 10, 11, 0.7) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  width: 100%;
  padding-bottom: 64px;
}
.hero__content > * {
  max-width: 820px;
}
.hero__search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 12px 12px 32px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.hero__search span:first-of-type {
  text-align: center;
}
.hero__search button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-on-ink);
  color: var(--color-ink);
  border: none;
  flex-shrink: 0;
}
.hero__scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.8);
}

.project-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  height: 65vh;
  min-height: 420px;
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-radius: 0 0 50% / 0 0 var(--curve-height) var(--curve-height);
}
.project-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
.project-hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.project-hero__content > * {
  max-width: 760px;
}

/* ---------------------------------------------------------- */
/* Grids                                                        */
/* ---------------------------------------------------------- */

.grid-2 {
  display: grid;
  gap: 48px;
}
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 64px;
  }
}

.grid-3 {
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-philosophy {
  display: grid;
  gap: 48px;
}
@media (min-width: 768px) {
  .grid-philosophy {
    grid-template-columns: 2fr 1fr;
    gap: 64px;
  }
}

.feature-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.feature-grid__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  padding: 22px 24px;
  transition: background-color 200ms ease;
}
.feature-grid__item:hover {
  background: var(--color-surface-container);
}
.feature-grid__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  border: 1.5px solid var(--color-ink);
  color: var(--color-ink);
}

/* Stat block: icon + big number + label, 2 or 4 across */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}
@media (min-width: 640px) {
  .stat-grid.is-four {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-grid__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 2px solid var(--color-ink);
  padding-top: 12px;
}
.surface-ink .stat-grid__item {
  border-top-color: var(--color-on-ink);
}
.stat-grid__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------- */
/* Photo cards (project cards / house type cards)                */
/* ---------------------------------------------------------- */

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-outline-variant);
  overflow: hidden;
  background: var(--color-surface);
  transition: transform 350ms ease, box-shadow 350ms ease, border-color 350ms ease;
}
.project-card--wide {
  grid-column: span 1;
}
@media (min-width: 640px) {
  .project-card--wide {
    grid-column: span 2;
  }
  .project-card--wide .project-card__media {
    aspect-ratio: 21 / 9;
  }
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(10, 10, 11, 0.14);
  border-color: var(--color-ink);
}
.project-card__media {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-alt);
  aspect-ratio: 4 / 3;
  border-radius: 0;
}
.project-card__media.is-portrait {
  aspect-ratio: 3 / 4;
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform 600ms ease;
}
.project-card:hover .project-card__media img {
  transform: scale(1.06);
}
.project-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(4px);
  color: var(--color-on-ink);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
}
.project-card > .flex-col {
  padding: 22px 24px 26px;
  gap: 10px;
  border-top: 1px solid var(--color-outline-variant);
}
.project-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-on-surface-variant);
}
.project-card__meta span:first-child {
  color: var(--color-on-surface);
}
.project-card__meta span:first-child::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-outline);
  margin-left: 10px;
}
.project-card__link {
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-ink);
  padding-bottom: 2px;
  width: fit-content;
}
.project-card:hover .project-card__link {
  border-color: transparent;
}

/* Full-width stacked project banner (home page "Selected Works") */
.banner-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 21 / 9;
  background: var(--color-surface-alt);
}
.banner-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
.banner-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 11, 0.8) 0%, rgba(10, 10, 11, 0) 55%);
}
.banner-card__content {
  position: absolute;
  inset-inline: 24px;
  bottom: 20px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-on-ink);
}
@media (min-width: 768px) {
  .banner-card__content {
    inset-inline: 40px;
    bottom: 32px;
  }
}
.banner-card__location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}
.banner-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-on-ink);
  white-space: nowrap;
}

/* Portfolio grid: a clean, consistent grid — no oversized feature
   tiles, so it reads as one scannable set rather than a bulky
   stack of full-bleed banners. */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}
@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}
.portfolio-grid > * {
  opacity: 1;
  transition: opacity 300ms ease;
}

/* ---------------------------------------------------------- */
/* Principle grid (numbered principle + icon + thin divider)     */
/* Used on the dark "Built to Last" brand-standard section — not  */
/* boxed cards, just a restrained divided row.                    */
/* ---------------------------------------------------------- */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
}
@media (min-width: 768px) {
  .principle-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}
.principle-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) {
  .principle-item {
    padding-inline: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }
  .principle-item:first-child {
    padding-left: 0;
    border-left: none;
  }
}
.principle-item__number {
  color: rgba(255, 255, 255, 0.5);
}
.principle-item__icon {
  width: 24px;
  height: 24px;
  color: var(--color-on-ink);
}

/* ---------------------------------------------------------- */
/* Stage timeline (numbered stages, click to reveal detail)      */
/* Shared by the Services process timeline, each project page's  */
/* concept-to-completion timeline, and the About company timeline. */
/* ---------------------------------------------------------- */

.stage-timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.stage-timeline__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  border-top: 1px solid var(--color-outline-variant);
}
.surface-ink .stage-timeline__list {
  border-top-color: rgba(255, 255, 255, 0.16);
}
.stage-timeline__item {
  flex: 1 1 auto;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 4px 0;
  margin-top: -1px;
  background: none;
  border: none;
  border-top: 2px solid transparent;
  text-align: left;
  color: var(--color-on-surface-variant);
  transition: color 200ms ease, border-color 200ms ease;
}
.stage-timeline__item:hover {
  color: var(--color-on-surface);
}
.stage-timeline__item.is-active {
  border-top-color: var(--color-ink);
  color: var(--color-on-surface);
}
.surface-ink .stage-timeline__item {
  color: rgba(255, 255, 255, 0.55);
}
.surface-ink .stage-timeline__item:hover {
  color: var(--color-on-ink);
}
.surface-ink .stage-timeline__item.is-active {
  border-top-color: var(--color-on-ink);
  color: var(--color-on-ink);
}
.stage-timeline__label {
  font-weight: 600;
}
.stage-timeline__detail {
  max-width: 640px;
}

/* ---------------------------------------------------------- */
/* Partner marquee (infinite auto-scrolling logo loop)           */
/* ---------------------------------------------------------- */

.partner-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.partner-marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: partner-marquee-scroll 32s linear infinite;
}
.partner-marquee:hover .partner-marquee__track,
.partner-marquee:focus-within .partner-marquee__track {
  animation-play-state: paused;
}
@keyframes partner-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.partner-logo {
  flex-shrink: 0;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  opacity: 0.55;
  white-space: nowrap;
  transition: opacity 200ms ease, color 200ms ease;
}
.partner-logo:hover {
  opacity: 1;
  color: var(--color-on-surface);
}
.surface-ink .partner-logo {
  color: rgba(255, 255, 255, 0.55);
}
.surface-ink .partner-logo:hover {
  opacity: 1;
  color: var(--color-on-ink);
}

/* ---------------------------------------------------------- */
/* Insight cards (Insights articles — teaser + index grid)       */
/* ---------------------------------------------------------- */

.insight-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-outline-variant);
  overflow: hidden;
  background: var(--color-surface);
  transition: transform 350ms ease, box-shadow 350ms ease, border-color 350ms ease;
}
.insight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(10, 10, 11, 0.14);
  border-color: var(--color-ink);
}
.insight-card__media {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-alt);
  aspect-ratio: 16 / 9;
}
.insight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform 600ms ease;
}
.insight-card:hover .insight-card__media img {
  transform: scale(1.06);
}
.insight-card > .flex-col {
  padding: 22px 24px 26px;
  gap: 10px;
  border-top: 1px solid var(--color-outline-variant);
}
.insight-card--featured {
  grid-column: 1 / -1;
}
@media (min-width: 768px) {
  .insight-card--featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
  }
  .insight-card--featured .insight-card__media {
    aspect-ratio: auto;
    height: 100%;
  }
  .insight-card--featured > .flex-col {
    border-top: none;
    border-left: 1px solid var(--color-outline-variant);
    justify-content: center;
    padding: 32px 40px;
  }
}

/* ---------------------------------------------------------- */
/* Service list (rows with icon + label)                         */
/* ---------------------------------------------------------- */

.service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-list__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  transition: background-color 200ms ease;
}
.service-list__item:hover {
  background: var(--color-surface-container);
}
.service-list__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--color-on-surface);
}

/* Capability list (label / phase / description) */
.capability-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.capability-list__item {
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  padding: 20px 24px;
}
.capability-list__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.capability-list__phase {
  white-space: nowrap;
  color: var(--color-on-surface-variant);
}
.capability-list__desc {
  margin-top: 8px;
  color: var(--color-on-surface-variant);
}

/* ---------------------------------------------------------- */
/* Filter chips                                                 */
/* ---------------------------------------------------------- */

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.filter-chip {
  background: transparent;
  border: 1.5px solid var(--color-outline);
  color: var(--color-on-surface);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}
.filter-chip:hover {
  border-color: var(--color-ink);
}
.filter-chip.is-active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-on-ink);
}

/* ---------------------------------------------------------- */
/* Technical legend                                              */
/* ---------------------------------------------------------- */

.legend {
  display: flex;
  flex-direction: column;
}
.legend__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.legend__value {
  color: var(--color-on-surface-variant);
  text-align: right;
}

/* ---------------------------------------------------------- */
/* Gallery                                                       */
/* ---------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery-grid__item {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-alt);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
}
.gallery-grid__item.is-landscape {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
.gallery-grid__item.is-portrait {
  aspect-ratio: 3 / 4;
}
.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

/* ---------------------------------------------------------- */
/* Carousel (Developments / Engineering Features)                */
/* ---------------------------------------------------------- */

.carousel {
  position: relative;
}
.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar {
  display: none;
}
.carousel__track > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}
.carousel__track > .project-card {
  width: 320px;
}
@media (min-width: 768px) {
  .carousel__track > .project-card {
    width: 360px;
  }
}
.carousel__arrow {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-ink);
  border: 1px solid var(--color-outline-variant);
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.carousel__arrow--prev {
  left: -8px;
}
.carousel__arrow--next {
  right: -8px;
}
@media (min-width: 1024px) {
  .carousel__arrow {
    display: flex;
  }
}
.surface-ink .carousel__arrow {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-on-ink);
  border-color: rgba(255, 255, 255, 0.25);
}
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-outline);
  border: none;
  padding: 0;
}
.surface-ink .carousel__dot {
  background: rgba(255, 255, 255, 0.3);
}
.carousel__dot.is-active {
  background: var(--color-ink);
  width: 22px;
  border-radius: var(--radius-pill);
  transition: width 200ms ease;
}
.surface-ink .carousel__dot.is-active {
  background: var(--color-on-ink);
}

.home-card {
  width: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--color-surface-alt);
}
.home-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
.home-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 11, 0.85) 0%, rgba(10, 10, 11, 0) 50%);
}
.home-card__content {
  position: absolute;
  inset-inline: 20px;
  bottom: 20px;
  z-index: 1;
  color: var(--color-on-ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-item {
  width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  flex-shrink: 0;
}
.feature-item__icon {
  width: 56px;
  height: 56px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------------------------------------------------------- */
/* Press list                                                    */
/* ---------------------------------------------------------- */

.press-list {
  display: flex;
  flex-direction: column;
}
.press-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid var(--color-outline-variant);
}
.press-list__item:last-child {
  border-bottom: 1px solid var(--color-outline-variant);
}
.press-list__chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ---------------------------------------------------------- */
/* Quote block                                                   */
/* ---------------------------------------------------------- */

.quote-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.quote-block__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-on-ink);
}

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

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}
@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-card__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
.team-card__photo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--color-outline);
}

/* ---------------------------------------------------------- */
/* Forms                                                         */
/* ---------------------------------------------------------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  padding: 14px 18px;
  color: var(--color-on-surface);
}
.field textarea {
  resize: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-ink);
}
.field__error {
  color: var(--color-error);
}
.form__server-message {
  color: var(--color-error);
}
.form__success {
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  padding: 32px;
}

/* Footer form uses glassy translucent fields on the black band */
.footer .field input,
.footer .field select,
.footer .field textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-on-ink);
}
.footer .field input::placeholder,
.footer .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.footer .field label {
  display: none;
}
.footer .btn--primary {
  background: var(--color-on-ink);
  color: var(--color-ink);
  border-color: var(--color-on-ink);
}
.footer .btn--primary:hover {
  background: transparent;
  color: var(--color-on-ink);
}

/* ---------------------------------------------------------- */
/* Focus states                                                  */
/* ---------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ---------------------------------------------------------- */
/* Utility                                                       */
/* ---------------------------------------------------------- */

.flex-col {
  display: flex;
  flex-direction: column;
}
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-16 { gap: 64px; }
.max-w-sm { max-width: 380px; }
.max-w-md { max-width: 480px; }
.max-w-xl { max-width: 620px; }
.max-w-2xl { max-width: 720px; }
.max-w-3xl { max-width: 860px; }
.w-fit { width: fit-content; }
.text-center { text-align: center; }
.mt-12 { margin-top: 48px; }

/* === 2026 premium editorial refinement === */
:root { --editorial-gap: clamp(56px, 8vw, 132px); }
html { scroll-behavior: smooth; }
body { letter-spacing: -0.005em; }
.container-frame { width: min(100% - 48px, 1440px); }
.section { padding-block: var(--editorial-gap); }
.text-display-xl { font-size: clamp(54px, 8.2vw, 132px); line-height: .88; letter-spacing: -.065em; max-width: 1100px; }
.text-headline-lg { font-size: clamp(42px, 5.2vw, 82px); line-height: .94; letter-spacing: -.045em; }
.navbar { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.hero { min-height: 96svh; }
.hero__media img { transform: scale(1.03); transition: transform 8s cubic-bezier(.2,.7,.2,1); }
.hero:hover .hero__media img { transform: scale(1.075); }
.hero__scrim { background: linear-gradient(90deg, rgba(0,0,0,.76) 0%, rgba(0,0,0,.36) 48%, rgba(0,0,0,.12) 100%); }
.hero__content { padding-bottom: clamp(70px, 10vh, 130px); align-items: flex-start; }
.hero__content .text-body-lg { max-width: 560px; }
.project-card { gap: 22px; }
.project-card__media { border-radius: 0 !important; aspect-ratio: 4 / 5; overflow: hidden; background: #ddd; }
.project-card--wide .project-card__media { aspect-ratio: 16 / 10; }
.project-card__media img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.project-card:hover .project-card__media img { transform: scale(1.035); }
.project-card__badge { border-radius: 0; }
.project-card__meta { border-top: 1px solid rgba(20,20,20,.18); padding-top: 12px; }
.portfolio-grid { row-gap: clamp(72px, 9vw, 140px); }
.proof-note { border-top: 1px solid rgba(20,20,20,.18); padding-top: 20px; display:grid; gap:10px; }
.surface-ink.curve-top, .surface-ink.curve-bottom, .curve-top, .curve-bottom { border-radius: 0 !important; }
.surface-ink { background: #0d0f0f; }
.footer { padding-top: 88px; }
.project-hero { min-height: 92svh; }
.project-hero img { filter: none; }
.project-hero__content { padding-bottom: 72px; }
.gallery-grid__item { border-radius: 0 !important; }
[data-partners-carousel] { border-block: 1px solid rgba(20,20,20,.12); padding-block: 26px; }
@media (max-width: 720px) {
  .container-frame { width: min(100% - 30px, 1440px); }
  .text-display-xl { font-size: clamp(48px, 16vw, 76px); }
  .text-headline-lg { font-size: clamp(38px, 11vw, 58px); }
  .hero { min-height: 90svh; }
  .hero__content .grid-2 { grid-template-columns: 1fr !important; }
  .portfolio-grid { row-gap: 64px; }
}


/* === 2026 compact premium refinement v2 === */
:root { --editorial-gap: clamp(48px, 5.5vw, 82px); }
.section { padding-block: var(--editorial-gap); }
.section--tight { padding-block: clamp(34px, 4vw, 58px); }
.text-display-xl {
  font-size: clamp(42px, 5.8vw, 84px);
  line-height: .94;
  letter-spacing: -.045em;
  max-width: 900px;
}
.text-headline-lg {
  font-size: clamp(30px, 3.7vw, 56px);
  line-height: 1;
  letter-spacing: -.035em;
}
.text-headline-md { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.12; }
.inline-logo { height: 1em; vertical-align: -0.12em; }
.text-label-caps .inline-logo { height: 1.12em; vertical-align: -0.14em; }
.hero { min-height: 72svh; height: min(820px, calc(100svh - 64px)); }
.hero__content {
  padding-bottom: clamp(46px, 7vh, 82px);
  align-items: flex-start;
  text-align: left;
  gap: 18px;
}
.hero__content > * { max-width: 760px; }
.hero__title { max-width: 760px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; width: auto; align-self: flex-start; }
.hero__actions .btn { min-width: 150px; justify-content: center; }
.project-hero { min-height: 62svh; height: min(720px, 72svh); }
.project-hero__content { padding-bottom: clamp(42px, 6vh, 68px); }
.gap-16 { gap: clamp(40px, 5vw, 64px); }
.mt-12 { margin-top: 32px; }

/* Deferred sections stay in markup for easy restoration. */
[data-deferred-section][hidden], [data-deferred-team-card][hidden] { display: none !important; }

/* Project photography placeholders */
.project-photography { background: var(--color-surface-alt); }
.project-photography__intro { align-items: start; }
.project-photo-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.project-photo-placeholder {
  grid-column: span 4;
  min-height: 280px;
  border: 1px solid rgba(20,20,20,.18);
  background: linear-gradient(135deg, #ececec, #dedede);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 24px;
  color: #181818;
}
.project-photo-placeholder--wide { grid-column: span 6; min-height: 340px; }
.project-photo-placeholder span { font: 700 11px/1.2 var(--font-body); letter-spacing: .12em; }
.project-photo-placeholder strong { font: 400 clamp(18px, 2vw, 26px)/1.05 var(--font-display); text-transform: uppercase; }
.project-photo-placeholder small { font: 400 13px/1.45 var(--font-body); max-width: 320px; color: rgba(20,20,20,.68); }
.project-photo-grid--two .project-photo-placeholder { grid-column: span 6; }

/* Contact map */
.contact-map-card { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--color-outline-variant); background: var(--color-surface-alt); }
.contact-map-card iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.95); }
.contact-map-card__link { position: absolute; left: 14px; bottom: 14px; padding: 10px 12px; background: rgba(13,15,15,.92); color: #fff; }

@media (max-width: 720px) {
  :root { --editorial-gap: 44px; }
  .text-display-xl { font-size: clamp(38px, 11.5vw, 52px); line-height: .96; }
  .text-headline-lg { font-size: clamp(28px, 8.5vw, 38px); line-height: 1.02; }
  .hero { min-height: 68svh; height: auto; padding-block: 96px 56px; }
  .hero__content { padding-bottom: 0; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 145px; }
  .project-hero { min-height: 54svh; height: auto; padding-top: 120px; }
  .project-photo-placeholder,
  .project-photo-placeholder--wide,
  .project-photo-grid--two .project-photo-placeholder { grid-column: 1 / -1; min-height: 240px; }
}


/* === 2026 compact refinement v3: final requested scale/visibility === */
:root { --editorial-gap: clamp(38px, 4.6vw, 68px); }
.section { padding-block: var(--editorial-gap); }
.section--tight { padding-block: clamp(28px, 3.2vw, 46px); }
.text-display-xl {
  font-size: clamp(38px, 4.7vw, 68px);
  line-height: .98;
  letter-spacing: -.038em;
  max-width: 820px;
}
.text-headline-lg {
  font-size: clamp(28px, 3.15vw, 46px);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.text-headline-md { font-size: clamp(18px, 1.55vw, 23px); }
.hero { min-height: 66svh; height: min(720px, calc(100svh - 64px)); }
.hero__content {
  padding-bottom: clamp(36px, 5vh, 58px);
  align-items: center;
  text-align: center;
  gap: 16px;
}
.hero__content > * { max-width: 720px; }
.hero__title { max-width: 700px; }
.hero__actions { align-self: center; justify-content: center; width: auto; }
.hero__content .text-body-lg { max-width: 540px; }
.project-hero { min-height: 50svh; height: min(600px, 62svh); }
.project-hero__content { padding-bottom: clamp(34px, 4.5vh, 52px); }
.inline-logo { height: 1.08em; width: auto; vertical-align: -0.13em; display: inline-block; }
.text-headline-lg .inline-logo, .text-display-xl .inline-logo { height: .92em; vertical-align: -0.08em; }
.text-body-lg .inline-logo, .text-body-md .inline-logo { height: 1.18em; vertical-align: -0.16em; }
.gap-16 { gap: clamp(32px, 4vw, 52px); }
.footer { padding-top: 58px; }
@media (max-width: 720px) {
  :root { --editorial-gap: 36px; }
  .text-display-xl { font-size: clamp(34px, 9.8vw, 46px); line-height: 1; }
  .text-headline-lg { font-size: clamp(26px, 7.2vw, 34px); line-height: 1.04; }
  .hero { min-height: 60svh; height: auto; padding-block: 86px 46px; }
  .hero__content { align-items: center; text-align: center; }
  .hero__actions { width: 100%; justify-content: center; }
  .hero__actions .btn { flex: 0 1 auto; min-width: 140px; }
  .project-hero { min-height: 46svh; padding-top: 100px; }
}


/* AS5 refinement v4 */
.text-headline-lg .inline-logo, .text-display-xl .inline-logo, .text-headline-md .inline-logo {
  height: 1.06em !important;
  width: auto;
  vertical-align: -0.12em;
}
.filter-group--categories {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.filter-group--categories::-webkit-scrollbar { display: none; }
.filter-group--categories .filter-chip { flex: 0 0 auto; }
.team-card__photo--image { position: relative; overflow: hidden; }
.team-card__photo--image img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:2; }
.project-photo-slot {
  position: relative; min-height: 320px; overflow: hidden; background: #eee; border: 1px solid rgba(15,17,16,.12); margin:0;
}
.project-photo-slot--wide { grid-column: span 2; min-height: 420px; }
.project-photo-slot > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:2; }
.project-photo-slot figcaption { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end; gap:6px; padding:24px; z-index:1; color:#111; }
.project-photo-slot figcaption span, .project-photo-slot figcaption code { font: 700 11px/1.4 var(--font-body); letter-spacing:.08em; text-transform:uppercase; }
.project-photo-slot figcaption strong { font: 400 20px/1.15 var(--font-display); text-transform:uppercase; }
.project-photo-slot figcaption small { font: 400 14px/1.5 var(--font-body); max-width:520px; }
.project-photo-slot figcaption code { opacity:.52; margin-top:8px; text-transform:none; }
@media (max-width: 767px) { .project-photo-slot--wide { grid-column:auto; min-height:320px; } }


/* === AS5 refinement v6: editorial project galleries === */
.project-photography { background: var(--color-surface-alt); }
.project-photography__wrap { display:flex; flex-direction:column; gap:clamp(34px,5vw,72px); }
.project-photography__intro { display:grid; grid-template-columns:minmax(0,.8fr) minmax(320px,1fr); gap:clamp(32px,8vw,120px); align-items:end; }
.project-photography__intro p { max-width:680px; margin:0; }
.project-gallery-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:clamp(14px,1.8vw,28px); align-items:start; }
.project-gallery-card { grid-column:span 4; margin:0; min-width:0; }
.project-gallery-card--hero { grid-column:1 / -1; }
.project-gallery-card--wide { grid-column:span 6; }
.project-gallery-card--portrait { grid-column:span 4; }
.project-gallery-card--standard { grid-column:span 4; }
.project-gallery-card__media { position:relative; width:100%; background:#e8e8e8; overflow:hidden; aspect-ratio:4/3; border:1px solid rgba(15,17,16,.08); }
.project-gallery-card--hero .project-gallery-card__media { aspect-ratio:16/7; }
.project-gallery-card--wide .project-gallery-card__media { aspect-ratio:16/10; }
.project-gallery-card--portrait .project-gallery-card__media { aspect-ratio:4/5; }
.project-gallery-card--contract .project-gallery-card__media { aspect-ratio:16/10; }
.project-gallery-card__media::after { content:"IMAGE TO BE ADDED"; position:absolute; inset:0; display:grid; place-items:center; padding:24px; font:700 11px/1.3 var(--font-body); letter-spacing:.14em; color:rgba(20,20,20,.42); text-align:center; }
.project-gallery-card__media img { position:relative; z-index:2; width:100%; height:100%; display:block; object-fit:cover; transition:transform .65s cubic-bezier(.2,.7,.2,1); }
.project-gallery-card:hover .project-gallery-card__media img { transform:scale(1.018); }
.project-gallery-card figcaption { display:grid; grid-template-columns:auto 1fr; gap:18px; padding-top:14px; align-items:start; }
.project-gallery-card figcaption > span { padding-top:4px; color:var(--color-on-surface-variant); }
.project-gallery-card figcaption div { display:flex; flex-direction:column; gap:4px; }
.project-gallery-card figcaption strong { font:400 clamp(16px,1.45vw,21px)/1.08 var(--font-display); text-transform:uppercase; letter-spacing:-.02em; }
.project-gallery-card figcaption small { font:400 13px/1.5 var(--font-body); color:var(--color-on-surface-variant); max-width:520px; }
.project-gallery-grid--contracts { grid-template-columns:repeat(2,minmax(0,1fr)); }
.project-gallery-grid--contracts .project-gallery-card { grid-column:auto; }
@media (max-width:900px) {
  .project-photography__intro { grid-template-columns:1fr; gap:20px; }
  .project-gallery-card--hero { grid-column:1/-1; }
  .project-gallery-card--wide { grid-column:span 6; }
  .project-gallery-card--portrait,.project-gallery-card--standard { grid-column:span 6; }
}
@media (max-width:640px) {
  .project-photography__wrap { gap:34px; }
  .project-gallery-grid { grid-template-columns:1fr; gap:30px; }
  .project-gallery-card,.project-gallery-card--hero,.project-gallery-card--wide,.project-gallery-card--portrait,.project-gallery-card--standard { grid-column:auto; }
  .project-gallery-card__media,.project-gallery-card--hero .project-gallery-card__media,.project-gallery-card--wide .project-gallery-card__media,.project-gallery-card--portrait .project-gallery-card__media { aspect-ratio:4/3; }
  .project-gallery-grid--contracts { grid-template-columns:1fr; }
  .project-gallery-card figcaption { grid-template-columns:34px 1fr; gap:10px; }
}


/* === v8 image treatment: full colour sitewide, monochrome homepage only === */
body.home-page img:not(.inline-logo) { filter: grayscale(1) !important; }
body:not(.home-page) img { filter: none !important; }
