/* ============================================================
   IBEC — International Built Environment Consultants
   "The Drawing Set" — premium architectural design system
   Navy site sections / paper sheet sections / orange section lines
   Display: IBM Plex Sans · Body: Inter · Annotation: Inter
   ============================================================ */

/* Self-hosted fonts (assets/fonts) — no third-party CDN dependency */
:root {
  /* Surfaces */
  --ink-950: #060d18;
  --navy-900: #0a1526;
  --navy-850: #0e1d33;
  --navy-800: #142743;
  --paper: #f7f6f2;
  --paper-2: #efede6;

  /* Text */
  --ink: #16233b;
  --slate: #4e5b72;
  --white-hi: #f2f6fa;
  --white-body: rgba(226, 234, 243, 0.86);
  --white-mut: #9fb0c8;

  /* One brand orange; light-surface text uses navy ink. */
  --accent: #F36A17;

  /* Hairlines */
  --line: #e0ded6;
  --line-dark: rgba(159, 176, 200, 0.16);
  --steel-line: rgba(127, 168, 204, 0.13);

  /* Type */
  --font-display: "IBM Plex Sans", "IBM Plex Sans Fallback", Arial, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Inter", system-ui, sans-serif;

  /* Rhythm */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 10vw, 8.5rem);
  --r: 2px;

  /* Depth */
  --shadow-plate: 0 30px 80px -48px rgba(6, 13, 24, 0.55);
  --shadow-deep: 0 42px 110px -52px rgba(6, 13, 24, 0.8);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Focus ring — overridden to bright orange inside dark sections */
  --focus: var(--ink);
}

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--ink-950);
}

@view-transition { navigation: auto; }

::view-transition-group(root) {
  animation-duration: 0.32s;
  background: var(--ink-950);
}

::view-transition-old(root) {
  animation: ibec-page-exit 0.16s ease-in both;
}

::view-transition-new(root) {
  animation: ibec-page-enter 0.3s var(--ease) both;
}

@keyframes ibec-page-exit {
  to { opacity: 0; transform: translateY(-4px); }
}

@keyframes ibec-page-enter {
  from { opacity: 0; transform: translateY(8px); }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

body.nav-locked { overflow: hidden; }
main { overflow: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }

::selection {
  background: var(--accent);
  color: var(--ink-950);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r);
}

.site-header, .hero, .band, .process, .showreel, .cta-strip, .site-footer,
.page-hero, .quote-band, .mobile-nav, .preloader, .project-card {
  --focus: var(--accent);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  transform: translateY(-300%);
  background: var(--ink-950);
  color: var(--white-hi);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0;
  text-decoration: none;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--accent);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible { transform: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Each neighbouring band contributes half the shared content interval. */
.section { padding-block: calc(var(--section) / 2); }

/* ============================================================
   Typography
   ============================================================ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex: none;
  opacity: 1;
}

.eyebrow-light { color: var(--accent); }

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 550;
  font-size: 3.1rem;
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--ink);
  text-wrap: balance;
}

.section-head { max-width: 780px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }

.section-intro {
  max-width: 600px;
  margin: 1.1rem 0 0;
  color: var(--slate);
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  max-width: none;
  flex-wrap: wrap;
}

.section-aside {
  max-width: 330px;
  margin: 0 0 0.35rem;
  color: var(--slate);
  font-size: 0.97rem;
}

.lead {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 430;
  font-size: 1.5rem;
  line-height: 1.42;
  letter-spacing: 0;
  color: var(--ink);
}

/* ============================================================
   Buttons & links — drafted, mono-labelled
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink-950);
  box-shadow: 0 18px 40px -22px rgba(6, 13, 24, 0.35);
}

.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 22px 48px -22px rgba(6, 13, 24, 0.35);
}

.btn-line-light {
  border-color: var(--white-mut);
  color: var(--white-hi);
  background: rgba(226, 234, 243, 0.04);
}

.btn-line-light:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(226, 234, 243, 0.04);
}

.btn-ghost {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

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

.btn-ghost-dark {
  border-color: var(--slate);
  color: var(--ink);
}

.btn-ghost-dark:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.text-link,
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.text-link:hover,
.card-link:hover { color: var(--ink); }

.section-link-row {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.2rem, 4vw, 3rem);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 0.8rem;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.scrolled {
  padding-block: 0.8rem;
  background: rgba(6, 13, 24, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 52px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  margin-right: auto;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 620;
  font-size: 1.45rem;
  letter-spacing: 0;
  color: var(--white-hi);
}

.brand-sub {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white-mut);
}

.nav { display: flex; align-items: center; gap: 1.9rem; }

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white-body);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a.active { color: var(--accent); }

.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0 12px;
  background: rgba(226, 234, 243, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Full-screen mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6.5rem var(--gutter) 3rem;
  background:
    linear-gradient(160deg, var(--ink-950) 0%, var(--navy-900) 62%, #0d1f30 100%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}

.mobile-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--steel-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel-line) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.5;
  pointer-events: none;
}

.mobile-nav.open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}

.mobile-nav > a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  min-height: 60px;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 520;
  font-size: 2.3rem;
  letter-spacing: 0;
  color: var(--white-hi);
  text-decoration: none;
}

.mobile-nav > a i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0;
  color: var(--accent);
}

.mobile-nav > a.active { color: var(--accent); }

.mobile-nav-foot {
  position: relative;
  margin-top: 2.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white-mut);
  line-height: 2.2;
}

.mobile-nav-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white-body);
  text-decoration: none;
}

/* ============================================================
   Hero — the title card
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 7.5rem;
  background: var(--navy-900);
  color: var(--white-hi);
  overflow: hidden;
  perspective: 1100px;
  --grid-drift: 0px;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06) brightness(0.72);
  transform: scale(1.04);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 13, 24, 0.82) 0%, rgba(8, 18, 33, 0.5) 44%, rgba(6, 13, 24, 0.94) 100%),
    linear-gradient(90deg, rgba(6, 13, 24, 0.88) 0%, rgba(6, 13, 24, 0.42) 55%, rgba(6, 13, 24, 0.6) 100%);
}

/* Perspective blueprint floor */
.hero-floor {
  position: absolute;
  inset: 34% -10% -6%;
  z-index: 2;
  background-image:
    linear-gradient(var(--steel-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel-line) 1px, transparent 1px);
  background-size: 84px 84px;
  transform: perspective(900px) rotateX(56deg) translate3d(0, var(--grid-drift), 0);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 78%, transparent 100%);
  pointer-events: none;
}

/* Procedural structural overlay: lightweight linework over the real hero image. */
.hero-architecture {
  position: absolute;
  inset: 7% -4% 7% 22%;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  transform-style: preserve-3d;
  transform-origin: 70% 54%;
}

.hero-architecture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: drop-shadow(0 24px 44px rgba(6, 13, 24, 0.45));
}

.hero-depth-plane {
  position: absolute;
  border: 1px solid rgba(159, 176, 200, 0.18);
  border-top-color: var(--accent);
  background: rgba(10, 21, 38, 0.08);
  transform-style: preserve-3d;
}

.hero-depth-plane-a {
  inset: 21% 7% 15% 52%;
  transform: perspective(900px) rotateY(-15deg) rotateX(4deg);
}

.hero-depth-plane-b {
  inset: 42% 38% 9% 21%;
  transform: perspective(900px) rotateY(12deg) rotateX(-3deg);
  opacity: 1;
}

.hero-scan {
  position: absolute;
  top: 10%;
  bottom: 8%;
  left: 0;
  width: 1px;
  opacity: 0;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(6, 13, 24, 0.35);
}

/* Drafting frame: crop marks + survey annotations.
   Bottom edge sits above the stats bar — the bar is the sheet's title block. */
.hero-frame {
  position: absolute;
  inset: 6.4rem 1.6rem 8.6rem;
  z-index: 3;
  pointer-events: none;
}

.crop {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid var(--accent);
}

.crop-tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.crop-tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.crop-bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.crop-br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.frame-note {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white-mut);
  white-space: nowrap;
}

.frame-note-tr { top: 4px; right: 34px; }
.frame-note-bl { bottom: 4px; left: 34px; }

.hero-content {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 2.5rem 3rem;
}

.hero-title {
  margin: 0 0 1.5rem;
  max-width: 15ch;
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 560;
  font-size: 4.3rem;
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--white-hi);
  text-wrap: balance;
}

.hero-lede {
  margin: 0 0 2.2rem;
  max-width: 620px;
  font-size: 1.19rem;
  color: var(--white-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  margin-top: 2.2rem;
}

.hero-proof span {
  padding-top: 0.75rem;
  border-top: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white-mut);
}

/* Floating glass delivery panel */
.hero-panel {
  position: absolute;
  z-index: 5;
  top: 26%;
  right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  width: 372px;
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--line-dark);
  border-top: 1px solid var(--accent);
  border-radius: var(--r);
  background: linear-gradient(165deg, rgba(14, 29, 51, 0.72), rgba(10, 21, 38, 0.5));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-deep);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border: 1px solid rgba(226, 234, 243, 0.07);
  border-radius: var(--r);
  pointer-events: none;
}

.panel-kicker {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-panel strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.hero-panel p {
  margin: 0.8rem 0 0;
  font-size: 0.93rem;
  color: var(--white-mut);
}

.panel-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.panel-matrix span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white-body);
  background: rgba(6, 13, 24, 0.35);
}

/* Stats — Decades / 5 / Caribbean */
.hero-foot {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  background: rgba(6, 13, 24, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-height: 116px;
  padding: 1.3rem clamp(1rem, 3vw, 2rem);
  border-right: 1px solid var(--line-dark);
}

.hero-stat:last-child { border-right: 0; }

.stat-num {
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 560;
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: 0;
  color: var(--white-hi);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white-mut);
}

/* ============================================================
   Mandate band
   ============================================================ */
.band {
  background: linear-gradient(90deg, var(--ink-950) 0%, var(--navy-900) 55%, #0c1e30 100%);
  color: var(--white-hi);
  border-bottom: 1px solid var(--line-dark);
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.band-grid > div {
  position: relative;
  padding: 2.1rem 1.7rem;
  border-left: 1px solid var(--line-dark);
}

.band-grid > div:last-child { border-right: 1px solid var(--line-dark); }

.band-grid > div::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 16px;
  height: 16px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.trust-label {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}

.band-grid strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 470;
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--white-body);
}

/* ============================================================
   About / sheet sections
   ============================================================ */
.about { background: var(--paper); }

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about-head { position: sticky; top: 118px; }
.about-body p { margin: 0 0 1rem; color: var(--slate); }
.about-body .lead { color: var(--ink); }

/* ============================================================
   Sector plates (services)
   ============================================================ */
.services {
  position: relative;
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 45%);
  --grid-drift: 0px;
}

.services::before,
.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 35, 59, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 35, 59, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  transform: translate3d(0, var(--grid-drift, 0px), 0);
}

.service-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  perspective: 1100px;
}


.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.1rem 1.9rem 1.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top-color: var(--accent);
  border-radius: var(--r);
  box-shadow: 0 1px 0 rgba(6, 13, 24, 0.04);
  transform-style: preserve-3d;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  pointer-events: none;
  transition: border-color 0.35s var(--ease);
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-plate);
}

.service-card:hover::after { border-color: var(--accent); }

.plate-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.service-index {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding-inline: 0.65rem;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.plate-icon {
  width: 46px;
  height: 46px;
  color: var(--accent);
  flex: none;
}

.plate-icon path,
.plate-icon rect,
.plate-icon line,
.plate-icon polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: square;
}

.service-card h3,
.value-card h3,
.team-card h3,
.process-step h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 520;
  font-size: 1.38rem;
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--ink);
}

.service-card p,
.value-card p,
.team-card p,
.process-step p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--slate);
}

.service-card .card-link { margin-top: auto; padding-top: 1.4rem; align-self: flex-start; }

/* ============================================================
   Site motion control
   ============================================================ */
.site-motion-toggle {
  position: fixed;
  z-index: 101;
  bottom: 1.25rem;
  right: var(--gutter);
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  color: var(--white-hi);
  background: var(--ink-950);
  border: 1px solid var(--white-mut);
  border-radius: var(--r);
  font: 500 0.75rem var(--font-mono);
  cursor: pointer;
  --focus: var(--accent);
}

/* ============================================================
   Process — the consulting journey
   ============================================================ */
.process {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  background: linear-gradient(150deg, var(--ink-950) 0%, var(--navy-850) 62%, #0e2233 100%);
  color: var(--white-hi);
}

.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--steel-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel-line) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.55;
  pointer-events: none;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.process-copy { position: sticky; top: 118px; }

.process .section-title { color: var(--white-hi); }

.process .lead {
  font-family: var(--font-body);
  font-stretch: normal;
  font-weight: 400;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--white-mut);
}

.process .text-link { color: var(--white-hi); }
.process .text-link:hover { color: var(--accent); }

.process-steps {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 2.1rem;
}

.process-spine {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0;
  width: 1px;
  background: var(--line-dark);
}

.process-spine-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  padding: 1.7rem 0 1.9rem;
  border-bottom: 1px solid var(--line-dark);
}

.process-step:last-child { border-bottom: 0; }

.process-step::before {
  content: "";
  position: absolute;
  left: -2.1rem;
  top: 2.45rem;
  width: 9px;
  height: 9px;
  margin-left: -4px;
  background: var(--navy-850);
  border: 1px solid var(--white-mut);
  transform: rotate(45deg);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.process-step.active::before {
  background: var(--accent);
  border-color: var(--accent);
}

.process-step > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(6, 13, 24, 0.4);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.process-step > div {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease);
}

.process-steps.is-story-ready .process-step > span { opacity: 1; }
.process-steps.is-story-ready .process-step > div { opacity: 1; }

.process-steps.is-story-ready .process-step.active > span,
.process-step.active > span {
  opacity: 1;
  border-color: var(--accent);
  color: var(--accent);
}

.process-steps.is-story-ready .process-step.active > div,
.process-step.active > div {
  opacity: 1;
  transform: translateX(0.5rem);
}

.process-step h3 { color: var(--white-hi); }
.process-step p { color: var(--white-mut); }

/* ============================================================
   Project plates
   ============================================================ */
.projects {
  position: relative;
  background: var(--paper);
  --grid-drift: 0px;
}

.project-grid,
.project-grid-page {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.project-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--navy-900);
  isolation: isolate;
  box-shadow: 0 24px 70px -46px rgba(6, 13, 24, 0.6);
  transition: box-shadow 0.35s var(--ease);
}

.project-card:hover { box-shadow: var(--shadow-deep); }

.project-lg {
  grid-column: span 2;
  min-height: 460px;
}

.project-media {
  position: absolute;
  inset: -7% 0;
  z-index: -2;
  overflow: hidden;
  background: var(--navy-900);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.66) contrast(1.05);
  transition: transform 0.8s var(--ease);
}

/* Project imagery pending: a plain branded panel (IBEC mark, orange
   rule, label). Deliberately no building drawing, so it can never be
   mistaken for an architectural rendering. */
.project-card[data-visual="pending"] .project-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background:
    radial-gradient(120% 95% at 50% 38%, #11233a 0%, var(--navy-900) 58%, var(--ink-950) 100%);
  border-bottom: 1px solid var(--line-dark);
}

.pending-mark {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.2vw + 0.75rem, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--white-hi);
  opacity: 0.88;
}

.pending-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white-mut);
  text-transform: uppercase;
}

.pending-label::before,
.pending-label::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.project-card[data-sector="industrial"] { --project-accent: #8fb3ca; }
.project-card[data-sector="commercial"] { --project-accent: var(--accent); }
.project-card[data-sector="hospitality"] { --project-accent: var(--accent); }
.project-card[data-sector="institutional"] { --project-accent: #95a8be; }

.project-card[data-visual="pending"] .project-tag { color: var(--project-accent, var(--accent)); }
.project-card[data-visual="pending"] .project-tag::before { background: var(--project-accent, var(--accent)); }

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 13, 24, 0.25) 0%, rgba(6, 13, 24, 0.55) 48%, rgba(6, 13, 24, 0.96) 100%),
    linear-gradient(90deg, rgba(6, 13, 24, 0.3) 0%, transparent 65%);
}

/* Drafting frame on plates */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border: 1px solid rgba(226, 234, 243, 0.13);
  border-radius: var(--r);
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.35s var(--ease), border-color 0.35s var(--ease);
}

.project-card:hover::after {
  opacity: 1;
  border-color: var(--accent);
}

.project-card:hover .project-media img { transform: scale(1.05); }

.project-meta {
  position: relative;
  padding: 1.9rem 1.9rem 1.8rem;
  color: var(--white-hi);
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}

.project-tag::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.project-meta h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 520;
  font-size: 1.5rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.project-meta p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--white-mut);
}

/* ============================================================
   CTA strip
   ============================================================ */
.cta-strip {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(150deg, var(--ink-950) 0%, var(--navy-900) 58%, #0d2030 100%);
  color: var(--white-hi);
}

.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--steel-line) 1px, transparent 1px);
  background-size: 120px 100%;
  opacity: 0.5;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: calc(var(--section) / 2);
}

.cta-inner .eyebrow {
  justify-content: center;
  max-width: 620px;
  margin: 0 auto 1.5rem;
  font-size: 1.06rem;
  color: var(--white-mut);
}

.cta-inner .eyebrow::before { display: none; }

.cta-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--accent);
}

.cta-inner h2 {
  width: 100%;
  margin: 0 auto 1rem;
  max-width: 720px;
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 550;
  font-size: 3rem;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.cta-copy {
  width: 100%;
  margin: 0 auto 2.2rem;
  max-width: 620px;
}

.cta-copy p {
  margin: 0;
  font-size: 1.06rem;
  color: var(--white-mut);
}

.cta-copy p + p { margin-top: 2.2rem; }

.cta-note {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white-mut);
}

.cta-note a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  text-decoration: none;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink-950);
  color: var(--white-mut);
  border-top: 1px solid var(--accent);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 2.2rem;
  padding-bottom: 3rem;
}

.brand-mark-lg {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 620;
  font-size: 2rem;
  letter-spacing: 0;
  color: var(--white-hi);
}

.footer-tag {
  margin: 0.9rem 0 0.4rem;
  font-size: 0.92rem;
  color: var(--white-mut);
}

.footer-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-col h3 {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-col p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--white-body);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white-body);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-link:hover { color: var(--accent); }

.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.55rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0;
  color: rgba(159, 176, 200, 0.75);
}

/* ============================================================
   Interior page hero
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(4.5rem + var(--section) / 2) 0 calc(var(--section) / 2);
  background:
    linear-gradient(150deg, var(--ink-950) 0%, var(--navy-900) 58%, #0d2130 100%);
  color: var(--white-hi);
  --page-grid-y: 0px;
  --page-line-scale: 1;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 30% -10% -8%;
  background-image:
    linear-gradient(var(--steel-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel-line) 1px, transparent 1px);
  background-size: 84px 84px;
  transform: perspective(900px) rotateX(56deg) translate3d(0, var(--page-grid-y), 0);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 80%, transparent 100%);
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line-dark);
  transform: scaleX(var(--page-line-scale));
  transform-origin: 0 50%;
}

.page-hero .container { position: relative; }

.page-crumb {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}

.page-crumb::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.page-crumb em {
  font-style: normal;
  color: var(--white-mut);
}

.page-title {
  margin: 0 0 1.2rem;
  max-width: 800px;
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 560;
  font-size: 3.8rem;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.page-lede {
  margin: 0;
  max-width: 62ch;
  font-size: 1.14rem;
  color: var(--white-body);
}

/* ============================================================
   About page
   ============================================================ */
.quote-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-850) 0%, var(--ink-950) 100%);
  color: var(--white-hi);
}

.quote-inner {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.quote-text {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 430;
  font-size: 2.15rem;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--white-hi);
}

.quote-text em {
  font-style: normal;
  color: var(--accent);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.value-card {
  position: relative;
  padding: 2rem 1.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.value-card::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 16px;
  height: 16px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.value-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-plate);
}

.value-num {
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
}

.team-section { background: var(--paper-2); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 460px));
  justify-content: center;
  gap: 1.3rem;
}

.team-card {
  padding: 2.4rem 2.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.team-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-plate);
}

.team-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 1.4rem;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  background: linear-gradient(150deg, var(--navy-850), var(--navy-900));
  color: var(--accent);
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 550;
  font-size: 1.6rem;
}

.team-role {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
}

/* ============================================================
   Services page — scope ledger
   ============================================================ */
.phase-block { padding-block: calc(var(--section) / 2); }
.phase-block + .phase-block { border-top: 1px solid var(--line); }
.alt-band { background: var(--paper-2); }

.phase-shell { position: relative; }

.phase-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: 2.4rem;
}

.phase-head p { margin: 0; color: var(--slate); max-width: 62ch; }

.phase-intro p + p { margin-top: 1rem; }
.phase-objective { margin-top: 1.8rem; border-left: 2px solid var(--accent); padding-left: 1.2rem; }
.phase-objective p { margin: 0.5rem 0 0; color: var(--slate); max-width: 75ch; }

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.service-list { column-gap: 2rem; }
.service-list .service-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

.service-item {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  min-height: 56px;
  padding: 1.05rem 0.8rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease);
}

.service-item:hover {
  background: var(--paper-2);
}

.service-item .num {
  min-width: 4ch;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.25s var(--ease);
}

.service-item .label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  transition: transform 0.25s var(--ease);
}

.service-item:hover .num,
.service-item:hover .label { transform: translateX(0.35rem); }

/* ============================================================
   Projects page — filter
   ============================================================ */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  margin-bottom: 2.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.filter-btn {
  position: relative;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  background: var(--paper);
  border: 1px solid var(--slate);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--slate);
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.filter-btn.active {
  color: var(--paper);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.project-grid-page .project-card { min-height: 360px; }
.project-card.hide { display: none; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-info { position: sticky; top: 118px; }

.contact-block { margin-bottom: 2rem; }

.contact-block h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
}

.contact-block p,
.contact-block a {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
}

.contact-block a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.contact-block a:hover { color: var(--ink); }

.contact-assurance {
  position: relative;
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--r);
  background: var(--paper-2);
}

.contact-assurance .trust-label { color: var(--ink); }

.contact-assurance p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--slate);
}

.enquiry-guidance { margin: 1.4rem 0 0; }
.enquiry-guidance > div + div { margin-top: 1rem; }
.enquiry-guidance dt { font-weight: 600; color: var(--ink); }
.enquiry-guidance dd { margin: 0.25rem 0 0; font-size: 0.95rem; color: var(--slate); }

.contact-form {
  padding: clamp(1.8rem, 4vw, 2.8rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: var(--r);
  box-shadow: var(--shadow-plate);
}

.form-row { margin-bottom: 1.3rem; }

.form-row label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--slate);
  border-radius: var(--r);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  background: #fff;
  border-color: var(--accent);
  box-shadow: none;
}

.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] { border-color: var(--ink); }

.form-row textarea { min-height: 150px; resize: vertical; }

.form-error {
  min-height: 1.3rem;
  margin: -0.25rem 0 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--slate);
}

.map-wrap {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-plate);
  padding: 2rem;
}

.map-title { margin: 0; font: 550 1.5rem var(--font-display); }
.map-wrap p { color: var(--slate); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.field-error { margin: 0.4rem 0 0; color: var(--ink); font-size: 0.95rem; }
.field-error:empty, .form-status:empty { display: none; }
.form-status { color: var(--ink); font-weight: 600; }
.form-consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0.75rem; align-items: start; margin-top: 1.4rem; }
.form-consent input { appearance: none; width: 24px; height: 24px; margin: 0.2rem 0 0; border: 2px solid var(--slate); border-radius: 2px; background: var(--paper); cursor: pointer; }
.form-consent input:checked { background: var(--navy-900); border-color: var(--navy-900); }
.form-consent input:checked::after { content: ''; display: block; width: 7px; height: 13px; margin: 1px 0 0 7px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.form-consent label { min-height: 44px; cursor: pointer; }
.form-consent + .field-error { margin-bottom: 1rem; }
.contact-form .btn:disabled { cursor: not-allowed; box-shadow: none; }
.form-note a { text-underline-offset: 3px; }
@media (forced-colors: active) {
  .form-consent input { appearance: auto; }
  .form-consent input::after { display: none; }
}

/* ============================================================
   Preloader — plotting the sheet (homepage only)
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-950);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--steel-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel-line) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0;
  animation: plGrid 0.9s var(--ease) 0.1s forwards;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner { position: relative; text-align: center; }

.preloader-brand {
  display: flex;
  justify-content: center;
  gap: 0.04em;
  font-family: var(--font-display);
  font-stretch: normal;
  font-weight: 600;
  font-size: 5rem;
  letter-spacing: 0;
  color: var(--white-hi);
}

.pl-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: plLetter 0.6s var(--ease) forwards;
}

.pl-letter:nth-child(1) { animation-delay: 0.18s; }
.pl-letter:nth-child(2) { animation-delay: 0.32s; }
.pl-letter:nth-child(3) { animation-delay: 0.46s; }
.pl-letter:nth-child(4) { animation-delay: 0.6s; color: var(--accent); }

.preloader-sub {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white-mut);
  opacity: 0;
  animation: plFade 0.7s var(--ease) 0.85s forwards;
}

.preloader-bar {
  display: block;
  width: 140px;
  height: 1px;
  margin: 1.5rem auto 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: plBar 0.8s var(--ease) 1s forwards;
}

@keyframes plLetter { to { opacity: 1; transform: none; } }
@keyframes plFade { to { opacity: 1; } }
@keyframes plBar { to { transform: scaleX(1); } }
@keyframes plGrid { to { opacity: 0.4; } }

/* ============================================================
   Motion scaffolding
   ============================================================ */
/* Reveal targets are hidden only when JS is running (html.js), so
   content stays visible with JS disabled. GSAP or the IO fallback
   brings them in. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

html.js.motion [data-reveal] { transition: none; }

/* Masked line reveal for split headlines */
.split-line { display: block; overflow: hidden; }
.split-line > .split-inner { display: block; }

html.js .hero-frame,
html.js .hero-panel { opacity: 0; }

html.motion .hero-title,
html.motion .page-title { opacity: 0; }

html.motion .hero-media img,
html.motion .hero-floor,
html.motion .hero-panel,
html.motion .hero-architecture { will-change: transform; }

/* ============================================================
   Responsive
   ============================================================ */
.hero-panel .panel-strapline { padding-top: 1rem; border-top: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0; }
.hero-proof span { letter-spacing: 0; }
.experience .section-title { color: var(--white-hi); max-width: 26ch; }
.experience-note { color: var(--white-body); margin-top: 2rem; max-width: 62ch; }
.band-label { padding-top: 2rem; margin-bottom: 0; }
.quote-band .quote-text { max-width: 24em; text-wrap: balance; }
.approach-body { color: var(--white-body); max-width: 66ch; margin: 1.3rem 0 0; }
.quote-band .quote-text + .approach-body { margin-top: 1.75rem; }
/* The closing line of Our Approach, set apart as a pull-line. */
.approach-pull {
  max-width: 30em;
  margin: 2.5rem 0 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1vw + 1rem, 1.875rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--white-hi);
  text-wrap: balance;
}
.service-card, .value-card, .hero-stat, .band-grid > div { min-width: 0; overflow-wrap: break-word; }
.process-copy, .process-steps, .process-step > div { min-width: 0; overflow-wrap: break-word; }
.hero-lede + .hero-lede { margin-top: -0.8rem; }
.page-lede + .page-lede { margin-top: 1rem; }

@media (min-width: 992px) {
  .hero-content { padding-right: calc(var(--gutter) + 420px); }
}

@media (max-width: 1120px) {
  .hero-title { max-width: 15ch; }
  .hero-title { font-size: 3.75rem; }
  .section-title { font-size: 2.8rem; }
  .hero-panel { width: 330px; top: 30%; }
}

@media (min-width: 992px) and (max-width: 1120px) {
  .hero-content { padding-right: calc(var(--gutter) + 370px); }
}


@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .about-grid,
  .process-grid,
  .phase-head,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }

  .about-head,
  .process-copy,
  .contact-info { position: static; }

  .process { display: block; min-height: auto; }

  .service-grid,
  .values-grid,
  .band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .band-grid > div,
  .band-grid > div:last-child {
    border-inline: 0;
    border-top: 1px solid var(--line-dark);
  }

  .band-grid > div:first-child { border-top: 0; }

  .hero {
    justify-content: flex-start;
    min-height: calc(100svh - 4.5rem);
    padding-top: 6.6rem;
  }

  .hero-title { max-width: none; font-size: 3.15rem; }
  .hero-lede { font-size: 1.08rem; }
  .section-title { font-size: 2.55rem; }
  .page-title { font-size: 3.1rem; }
  .cta-inner h2 { font-size: 2.6rem; }
  .quote-text { font-size: 1.9rem; }
  .preloader-brand { font-size: 4.2rem; }
  .mobile-nav > a { font-size: 2.15rem; }

  .hero-panel {
    position: relative;
    inset: auto;
    width: auto;
    margin: 0 var(--gutter) 3.2rem;
  }

  .hero-frame { inset: 5.4rem 1rem 1rem; }
  .hero-architecture {
    inset: 8% -34% 23% 14%;
    opacity: 1;
  }
  .frame-note-tr,
  .frame-note-bl,
  .crop-bl,
  .crop-br { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }

  .hero { min-height: auto; }
  .hero-content { padding-block: 3.2rem 2.4rem; }
  .hero-title { max-width: none; font-size: 2.45rem; }
  .hero-lede { font-size: 1.03rem; }
  .hero-lede { margin-bottom: 1.8rem; }
  .section-title { font-size: 2.2rem; }
  .page-title { font-size: 2.45rem; }
  .page-lede { font-size: 1.02rem; }
  .cta-inner h2 { font-size: 2.2rem; }
  .quote-text { font-size: 1.7rem; }
  .project-meta h3 { font-size: 1.35rem; }
  .mobile-nav > a { font-size: 2rem; }

  .hero-actions .btn,
  .cta-inner .btn,
  .contact-form .btn { width: 100%; }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: 1.9rem;
  }

  .hero-panel { display: block; }
  .service-grid,
  .values-grid,
  .band-grid { grid-template-columns: 1fr; }
  .hero-foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .hero-stat {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    min-height: 102px;
    border-right: 1px solid var(--line-dark);
    border-bottom: 0;
  }

  .hero-stat:last-child { border-right: 0; }
  .stat-num { font-size: 1.35rem; }
  .stat-label { font-size: 0.66rem; letter-spacing: 0; }

  .project-grid,
  .project-grid-page { grid-template-columns: 1fr; }

  .project-lg {
    grid-column: span 1;
    min-height: 360px;
  }

  .project-card,
  .project-grid-page .project-card { min-height: 320px; }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-list { grid-template-columns: 1fr; }
.footer-grid { grid-template-columns: 1fr 1fr; }

  .filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cta-panel { padding: 1.5rem; }

  .hero-depth-plane { display: none; }
}

@media (max-width: 480px) {
  .brand-sub { display: none; }
  .brand-mark { font-size: 1.35rem; }
  .hero {
    min-height: auto;
    padding-top: 5.25rem;
  }
  .hero-content { padding-block: 2.05rem 1.5rem; }
  .hero-title {
    margin-bottom: 1.15rem;
    font-size: 2rem;
    line-height: 1.08;
  }
  .hero-lede {
    margin-bottom: 1.35rem;
    font-size: 1rem;
    line-height: 1.55;
  }
  .hero-actions { gap: 0.65rem; }
  .hero-actions .btn { min-height: 46px; padding-block: 0.8rem; }
  .hero-proof { display: grid; }
  .hero-panel { display: block; }
  .hero-foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stat {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.45rem;
    min-height: 92px;
    padding: 0.75rem 0.55rem;
    border-right: 1px solid var(--line-dark);
    border-bottom: 0;
  }
  .hero-stat:last-child { border-right: 0; }
  .stat-num { font-size: 1.03rem; }
  .stat-label { font-size: 0.68rem; letter-spacing: 0; line-height: 1.35; }
  .hero-architecture { inset: 5% -110% 10% 1%; opacity: 1; }
  .hero-frame { inset: 4.7rem 0.85rem 6.3rem; }
  .page-title { font-size: 2.1rem; }
  .section-title { font-size: 2rem; }
  .cta-inner h2 { font-size: 2rem; }
  .quote-text { font-size: 1.55rem; }
  .preloader-brand { font-size: 3.4rem; }
  .mobile-nav > a { font-size: 1.9rem; }
  .project-meta { padding: 1.5rem 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .panel-matrix { grid-template-columns: repeat(2, 1fr); }
  .filter-row { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.8rem; }
  .process-step > span { width: 2rem; height: 2.5rem; }
  .process-step h3 { font-size: 1.05rem; }
}

/* ============================================================
   Reduced motion — everything visible, nothing moves
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html.js [data-reveal],
  .pl-letter,
  .preloader-sub,
  html.js .hero-frame,
  html.js .hero-panel {
    opacity: 1 !important;
    transform: none !important;
  }

  .split-line > .split-inner { transform: none !important; }
  .preloader-bar { width: 140px; }
  .preloader-bar { transform: scaleX(1) !important; }
  .preloader::before { opacity: 0.4; }

  .hero-media img,
  .hero-floor,
  .hero-architecture,
  .hero-architecture > img,
  .hero-depth-plane,
  .page-hero::before,
  .project-media img { transform: none !important; }

  .hero-scan { display: none; }
  html.motion .hero-media img,
  html.motion .hero-floor,
  html.motion .hero-panel,
  html.motion .hero-architecture { will-change: auto; }

  .process-spine-fill { transform: scaleY(1) !important; }
  .scroll-progress { display: none; }
}

/* URL preview parity for local QA: append ?motion=reduce. */
html.reduced-motion *,
html.reduced-motion *::before,
html.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

html.reduced-motion [data-reveal],
html.reduced-motion .pl-letter,
html.reduced-motion .preloader-sub,
html.reduced-motion .hero-frame,
html.reduced-motion .hero-panel {
  opacity: 1 !important;
  transform: none !important;
}

html.reduced-motion .split-line > .split-inner,
html.reduced-motion .hero-media img,
html.reduced-motion .hero-floor,
html.reduced-motion .hero-architecture,
html.reduced-motion .hero-architecture > img,
html.reduced-motion .hero-depth-plane,
html.reduced-motion .page-hero::before,
html.reduced-motion .project-media img {
  transform: none !important;
}

html.reduced-motion::view-transition-old(root),
html.reduced-motion::view-transition-new(root) { animation: none !important; }

html.reduced-motion .hero-scan,
html.reduced-motion .scroll-progress { display: none; }
html.reduced-motion .process-spine-fill { transform: scaleY(1) !important; }

/* Stability fix: opt out of native cross-document transitions. */
@view-transition { navigation: none; }
