/* ── Self-hosted fonts (variable woff2 — see /webfonts) ───────────────────── */
@font-face {
  font-family: 'Inter Tight';
  src: url('../webfonts/InterTight.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('../webfonts/InterTight-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../webfonts/JetBrainsMono.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ─────────────────────────────── */
:root {
  --ink:    #0E1014;
  --ink-2:  #1A1D24;
  --ink-3:  #2A2E36;
  --paper:  #F4F1EC;
  --paper-2:#EAE6DF;
  --muted:  rgba(255,255,255,0.55);
  --gold:   #f125aa;
  --gold-2: #c81090;
  --serif:  'Inter Tight', -apple-system, sans-serif;
  --sans:   'Inter Tight', -apple-system, sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, monospace;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0; padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--paper);
}

h3 { font-weight: 400; letter-spacing: -0.02em; }
h4 { font-weight: 500; letter-spacing: -0.01em; }

h1 { font-size: clamp(56px, 7vw, 108px); line-height: 0.92; }
h2 { font-size: clamp(32px, 3.5vw, 44px); line-height: 1.04; }
h3 { font-size: 24px; line-height: 1.2; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, button { font-family: inherit; }

/* ── Utilities ─────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
}

.meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border: 1px solid var(--ink-3);
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.tag.active, .tag:hover { border-color: var(--gold); color: var(--gold); }

.divider { height: 1px; background: var(--ink-2); margin: 18px 0; }

.row12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }

/* ── Page loader ───────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0E1014;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
#page-loader.loader-out {
  opacity: 0;
  pointer-events: none;
}
.loader-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  filter: url('#loader-goo');
  animation: rotate-move 2s ease-in-out infinite;
}
.loader-dot {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  top: 0; bottom: 0; left: 0; right: 0;
  margin: auto;
}
.loader-dot-1 {
  background: #f125aa;
  animation: dot-1-move 2s ease-in-out infinite, loader-index 6s ease infinite;
}
.loader-dot-2 {
  background: #f125aa;
  animation: dot-2-move 2s ease-in-out infinite, loader-index 6s -2s ease infinite;
}
.loader-dot-3 {
  background: #f125aa;
  animation: dot-3-move 2s ease-in-out infinite, loader-index 6s -4s ease infinite;
}

@keyframes dot-3-move {
  20%  { transform: scale(1); }
  45%  { transform: translateY(-18px) scale(0.45); }
  60%  { transform: translateY(-90px) scale(0.45); }
  80%  { transform: translateY(-90px) scale(0.45); }
  100% { transform: translateY(0px) scale(1); }
}
@keyframes dot-2-move {
  20%  { transform: scale(1); }
  45%  { transform: translate(-16px, 12px) scale(0.45); }
  60%  { transform: translate(-80px, 60px) scale(0.45); }
  80%  { transform: translate(-80px, 60px) scale(0.45); }
  100% { transform: translateY(0px) scale(1); }
}
@keyframes dot-1-move {
  20%  { transform: scale(1); }
  45%  { transform: translate(16px, 12px) scale(0.45); }
  60%  { transform: translate(80px, 60px) scale(0.45); }
  80%  { transform: translate(80px, 60px) scale(0.45); }
  100% { transform: translateY(0px) scale(1); }
}
@keyframes rotate-move {
  55%  { transform: rotate(0deg); }
  80%  { transform: rotate(360deg); }
  100% { transform: rotate(360deg); }
}
@keyframes loader-index {
  0%, 100% { z-index: 3; }
  33.3%    { z-index: 2; }
  66.6%    { z-index: 1; }
}

/* ── Navigation ────────────────────────────── */
.snav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: padding .3s ease;
}
.snav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(14,16,20,0.92) 0%, rgba(14,16,20,0.6) 40%, transparent 100%);
  pointer-events: none;
  z-index: -1;
  opacity: 1;
  transition: opacity 0.35s ease;
}
.snav.scrolled::before { opacity: 0; }

.snav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 40px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative; /* needed for collapse icon */
  transition: padding .3s ease, background .4s ease, border-color .3s ease,
              border-radius .4s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow .3s ease, max-width .4s cubic-bezier(0.34,1.56,0.64,1),
              margin-top .3s ease, height .4s cubic-bezier(0.34,1.56,0.64,1);
}

/* Scrolled: shrink into floating pill */
.snav.scrolled .snav-inner {
  padding: 10px 20px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  max-width: 1060px;
  margin-top: 12px;
}

.snav.inverted .snav-inner {
  background: rgba(244,241,236,0.95);
  border-color: rgba(0,0,0,0.06);
}

.snav .logo {
  justify-self: start;
  text-decoration: none;
  display: grid;
  align-items: center;
}
/* Align logo left edge with hero text (both use 40px from viewport edge).
   snav-inner is max-width:1280px centered, so compensate for the centering
   offset without touching any other nav element. Only in non-scrolled state. */
.snav:not(.scrolled) .logo {
  margin-left: calc(-1 * max(0px, (100vw - 1280px) / 2));
}

.nav-logo-col,
.nav-logo-blk {
  grid-area: 1 / 1;
  width: auto;
  display: block;
  transition: opacity .35s ease;
}

.nav-logo-col { height: 68px; }
.nav-logo-blk { height: 40px; }

.nav-logo-blk { opacity: 0; }

/* Right logo (Odyssey) */
.logo-right {
  justify-self: end;
  text-decoration: none;
  display: grid;
  align-items: center;
}

.ody-col { height: 58px; }
.ody-blk { height: 40px; opacity: 0; }

.snav.scrolled .ody-col,
.snav.inverted .ody-col { opacity: 0; }

.snav.scrolled .ody-blk,
.snav.inverted .ody-blk { opacity: 1; }

/* Hide right logo on mobile (hamburger takes that slot) */
@media (max-width: 768px) {
  .logo-right { display: none; }
}

/* Crossfade when white pill appears */
.snav.scrolled .nav-logo-col,
.snav.inverted .nav-logo-col { opacity: 0; }

.snav.scrolled .nav-logo-blk,
.snav.inverted .nav-logo-blk { opacity: 1; }

.snav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  padding: 0; margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  justify-content: center;
}
.snav.scrolled ul, .snav.inverted ul { color: #2A2E36; }

.snav ul a {
  color: inherit;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.snav ul a:hover { color: var(--gold); }
.snav.scrolled ul a:hover, .snav.inverted ul a:hover { color: var(--gold-2); }
.snav ul a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.snav.inverted ul a.active::after { background: var(--gold-2); }

/* ── Hamburger toggle ─────────────────────── */
.snav-toggle {
  display: none;
  justify-self: end;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  color: var(--paper);
  transition: border-color .2s, color .2s;
}
.snav.scrolled .snav-toggle,
.snav.inverted .snav-toggle { color: var(--ink); border-color: rgba(0,0,0,0.15); }

.menu-icon {
  display: block;
  width: 20px; height: 20px;
  transition: transform 300ms ease;
}
.menu-icon.open { transform: rotate(-45deg); }

.menu-path {
  stroke-dasharray: 12 63;
  transition: stroke-dasharray 300ms ease, stroke-dashoffset 300ms ease;
}
.menu-icon.open .menu-path {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42px;
}

/* ── Mobile overlay ───────────────────────── */
.snav-mobile {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,0.08);
  z-index: 99;
  overflow-y: auto;
}
.snav-mobile.open { display: block; }

.snav-mobile-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 24px 24px 40px;
  animation: nav-zoom-in 220ms ease-out;
}

@keyframes nav-zoom-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.snav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.snav-mobile-links a {
  display: block;
  padding: 12px 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.snav-mobile-links a:hover { background: rgba(0,0,0,0.05); color: var(--gold); }

.snav-mobile-cta { padding-top: 16px; }

body.menu-open { overflow: hidden; }

/* ════════════════════════════════════════════════════════
   NEW: Collapse-on-scroll nav
   To revert: delete this entire block, remove the
   .nav-collapsed-icon element from all HTML files,
   and remove the "Collapse-on-scroll" JS block in main.js
   ════════════════════════════════════════════════════════ */

/* Collapsed pill state */
.snav.nav-collapsed .snav-inner {
  max-width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  margin-top: 16px;
  background: rgba(255,255,255,0.65) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.1) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
}

.snav.nav-collapsed .snav-inner:hover {
  transform: scale(1.08);
  background: rgba(255,255,255,0.82) !important;
}

/* Hide all nav content when collapsed */
.snav.nav-collapsed .logo,
.snav.nav-collapsed ul,
.snav.nav-collapsed .logo-right,
.snav.nav-collapsed .snav-toggle {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* Collapsed hamburger icon */
.nav-collapsed-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  color: #2A2E36;
  z-index: 2;
  transition: opacity 0.2s ease 0.12s;
}

.snav.nav-collapsed .nav-collapsed-icon {
  opacity: 1;
}
/* ═══════════════ end collapse-on-scroll ═══════════════ */

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  padding: 11px 22px;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: opacity .2s;
}
.btn:hover { opacity: 0.85; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.35); }
.btn.ghost:hover { border-color: rgba(255,255,255,0.7); }

/* ── Sections ──────────────────────────────── */
.sec { padding: 72px 40px; border-bottom: 1px solid var(--ink-2); }
.sec.tight { padding: 44px 40px; }

.sec.light {
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(0,0,0,0.08);
}
.sec.light h1, .sec.light h2, .sec.light h3 { color: var(--ink); }
.sec.light .eyebrow { color: rgba(20,23,28,0.55); }
.sec.light .lede { color: rgba(20,23,28,0.75); }
.sec.light .meta { color: rgba(20,23,28,0.55); }

/* ── Placeholder blocks ────────────────────── */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 8px, rgba(255,255,255,0.08) 8px 16px),
    var(--ink-2);
  border: 1px solid var(--ink-3);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--muted);
}
.ph .label {
  font-family: var(--mono);
  font-size: 10px;
  padding: 8px 10px;
  background: rgba(14,16,20,0.8);
  border-top: 1px solid var(--ink-3);
  width: 100%;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.04em;
}
.ph .corner {
  position: absolute;
  top: 8px; right: 8px;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  background: rgba(14,16,20,0.7);
  padding: 2px 6px;
}

.sec.light .ph {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.04) 0 8px, rgba(0,0,0,0.07) 8px 16px),
    #EAE6DF;
  border-color: rgba(0,0,0,0.1);
}
.sec.light .ph .corner { background: rgba(255,255,255,0.8); color: rgba(20,23,28,0.7); }
.sec.light .ph .label { background: rgba(255,255,255,0.9); color: #2A2E36; border-top-color: rgba(0,0,0,0.1); }

/* ── Hero B.1 ──────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

@property --reveal-r {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

.hero-reveal-wrap {
  position: absolute;
  inset: 0;
  --reveal-r: 8vmin;
  -webkit-mask-image: radial-gradient(circle var(--reveal-r) at 50% 50%, black 55%, transparent 100%);
  mask-image: radial-gradient(circle var(--reveal-r) at 50% 50%, black 55%, transparent 100%);
  transition: --reveal-r 4s cubic-bezier(0.4, 0, 0.15, 1);
}
.hero-reveal-wrap.hero-open {
  --reveal-r: 175vmin;
}

/* ── Hero content staggered reveal ─────────── */

/* Eyebrow */
.hc-eyebrow {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-content-in .hc-eyebrow {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

/* H1 line-wipe reveal */
.h-line { display: block; overflow: hidden; line-height: 1; padding-bottom: 0.15em; margin-bottom: -0.15em; }
.h-line-inner {
  display: block;
  transform: translateY(108%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-content-in .h-line-inner,
.team-header-in .h-line-inner,
.ab-intro-in .h-line-inner { transform: translateY(0); }
.hero-content-in .h-line-2 { transition-delay: 0.18s; }

/* Lede */
.hc-lede {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
}
.hero-content-in .hc-lede {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition-delay: 0.48s;
}

/* Buttons */
.ha-item {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-content-in .ha-item:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.62s; }
.hero-content-in .ha-item:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.76s; }

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.10) translateY(-7%);
}
.hero-bg .ph {
  width: 100%; height: 100%;
  border: none;
  border-radius: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 8%, rgba(14,16,20,0) 35%),
    linear-gradient(to bottom, rgba(14,16,20,0) 0%, rgba(14,16,20,0) 42%, rgba(14,16,20,0.45) 62%, rgba(14,16,20,0.88) 80%, #0E1014 100%);
  z-index: 1;
}

/* Bridge gradient: extends ink seamlessly from hero into capabilities */
.hero-fade-out {
  height: 180px;
  margin-top: -180px;
  background: linear-gradient(to bottom, transparent, #0E1014);
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hero-cursor {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--gold);
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .25s;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
}
.hero:hover .hero-cursor { opacity: 0.9; }

.hero-content {
  position: absolute;
  inset: 0;
  padding: 0 40px 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 4;
}

.hero-content .eyebrow { margin-bottom: 22px; }

.hero-content h1 {
  font-size: clamp(64px, 8vw, 108px);
  letter-spacing: -0.03em;
  max-width: 1050px;
}
.hero-content h1 em { font-style: italic; color: var(--gold); }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 30px;
  gap: 20px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Portfolio cards ───────────────────────── */
.p-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.p-card .ph { transition: transform .6s cubic-bezier(.2,.8,.2,1); height: 100%; }
.p-card:hover .ph { transform: scale(1.04); }

.p-card .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(14,16,20,0) 50%, rgba(14,16,20,0.85) 100%);
  color: var(--paper);
  pointer-events: none;
}

.p-card .p-title { font-family: var(--serif); font-size: 20px; }

.p-card .meta-row {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 10px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.p-card:hover .meta-row { opacity: 1; transform: none; }

.p-card .p-arrow {
  opacity: 0;
  transform: translate(-6px, -6px);
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: opacity .3s, transform .3s;
}
.p-card:hover .p-arrow { opacity: 1; transform: none; }

/* ── Portfolio strip (horizontal scroll) ───── */
.p-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-3) transparent;
}
.p-strip::-webkit-scrollbar { height: 4px; }
.p-strip::-webkit-scrollbar-thumb { background: var(--ink-3); }

/* ── Carousel (home selected work) ─────────── */
.carousel-outer {
  overflow: hidden;
  margin: 0 -40px;
  padding: 0 40px;
}
.carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: carousel-scroll 28s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }

@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Capabilities + Zoom shared background ─── */
.cap-zp-bg-wrap { position: relative; }

.cap-grid-base,
.cap-grid-reveal {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M 40 0 L 0 0 0 40' fill='none' stroke='%23f4f1ec' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  animation: capGridScroll 8s linear infinite;
}
.cap-grid-base   { opacity: 0.03; z-index: 0; }
.cap-grid-reveal {
  opacity: 0.10;
  z-index: 0;
  -webkit-mask-image: radial-gradient(300px circle at -9999px -9999px, black, transparent);
  mask-image: radial-gradient(300px circle at -9999px -9999px, black, transparent);
}
@keyframes capGridScroll {
  from { background-position: 0 0; }
  to   { background-position: 40px 40px; }
}

.cap-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.cap-orb-orange {
  right: -10%; top: 5%;
  width: 35%; height: 35%;
  background: rgba(59, 130, 246, 0.08);
  filter: blur(120px);
}
.cap-orb-blue {
  left: -10%; bottom: 5%;
  width: 35%; height: 35%;
  background: rgba(59, 130, 246, 0.08);
  filter: blur(120px);
}

.cap-zp-bg-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom, var(--ink), transparent);
  z-index: 1;
  pointer-events: none;
}
.cap-zp-bg-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to top, var(--ink), transparent);
  z-index: 1;
  pointer-events: none;
}

/* ── Capabilities feature grid ─────────────── */
.cap-feat-section { text-align: center; position: relative; border-bottom: none; }

.cap-feat-header,
.feat-grid { position: relative; z-index: 2; }

.cap-feat-header { margin-bottom: 52px; }
.cap-feat-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--paper);
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cap-feat-lead {
  color: rgba(244,241,236,0.6);
  font-size: 17px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.feat-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(18,18,24,0.45);
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  background: rgba(18,18,24,0.58);
  border-color: rgba(255,255,255,0.13);
}

.feat-img {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
}
.feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 88px;
}
.feat-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 8px;
}
.feat-body p {
  font-size: 14px;
  color: rgba(244,241,236,0.58);
  line-height: 1.6;
  margin: 0;
}

.feat-arrow {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  color: rgba(244,241,236,0.3);
  transition: transform .3s ease, color .3s ease;
}
.feat-card:hover .feat-arrow {
  transform: translateX(5px);
  color: var(--gold);
}

/* ── Services grid (services page) ────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink-2);
  border: 1px solid var(--ink-2);
}
.svc-cell { background: var(--ink); padding: 40px 32px; }

/* ── Stats ─────────────────────────────────── */
.stat-num { font-family: var(--serif); font-size: 40px; color: var(--gold); }

/* ── Process steps (services page light sec) ─ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.process-step { border-top: 1px solid rgba(0,0,0,0.15); padding-top: 16px; }
.process-step .step-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--gold-2); }
.process-step h3 { font-family: var(--serif); font-size: 22px; margin-top: 6px; color: var(--ink); }
.process-step p { font-size: 12px; color: rgba(20,23,28,0.65); margin-top: 6px; }

/* ── Timeline (about page light sec) ──────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.1);
}
.timeline-cell { background: var(--paper); padding: 22px; }
.timeline-year { font-family: var(--serif); font-size: 30px; color: var(--gold-2); }
.timeline-text { font-size: 12px; color: #2A2E36; margin-top: 6px; }

/* ── Horizontal sticky timeline (about page) ── */
/* .tl-outer height set dynamically by JS */

.tl-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  border-bottom: 1px solid var(--ink-2);
}

.tl-header {
  flex: 0 0 auto;
  padding: 44px 48px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.tl-header .eyebrow { color: var(--muted); margin-bottom: 8px; }
.tl-header h2 { color: var(--paper); font-size: clamp(22px, 2.2vw, 34px); }
.tl-header h2 em { color: var(--gold); font-style: italic; }

.tl-nav { display: flex; gap: 8px; flex-shrink: 0; }
.tl-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
}
.tl-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tl-btn:disabled { opacity: 0.3; pointer-events: none; }

.tl-viewport { flex: 1; overflow: hidden; position: relative; min-height: 0; }

/* Edge-fade hints */
.tl-viewport::before,
.tl-viewport::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 56px;
  pointer-events: none;
  z-index: 3;
}
.tl-viewport::before { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.tl-viewport::after  { right: 0; background: linear-gradient(to left, var(--ink), transparent); }

.tl-track {
  display: flex;
  height: 100%;
  position: relative;
  will-change: transform;
  padding: 0 32px;
  cursor: grab;
}
.tl-track.dragging { cursor: grabbing; }

/* Horizontal axis line */
.tl-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
  z-index: 0;
}

.tl-item {
  flex: 0 0 calc(25vw - 12px);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 10px;
  position: relative;
  opacity: 0;
}
.tl-item.above { transform: translateY(-22px); }
.tl-item.below { transform: translateY(22px); }
.tl-item.tl-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--tl-delay, 0s);
}

.tl-half {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.tl-top { justify-content: flex-end; padding-bottom: 20px; }
.tl-bot { justify-content: flex-start; padding-top: 20px; }

.tl-axis-row {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.tl-item.milestone .tl-dot { background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.tl-item.team      .tl-dot { background: rgba(255,255,255,0.2); box-shadow: 0 0 0 1px rgba(255,255,255,0.1); }

.tl-year {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  line-height: 1;
}
.tl-item.above .tl-year { margin-top: 5px; }
.tl-item.below .tl-year { margin-bottom: 5px; order: -1; }

/* Timeline card */
.tl-card {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: box-shadow .3s ease, transform .3s ease;
}
.tl-track:not(.dragging) .tl-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  transform: translateY(-2px);
}

.tl-img {
  height: 148px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--ink-3);
}
.tl-img .label {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  background: rgba(14,16,20,0.8);
  border-top: 1px solid var(--ink-3);
  padding: 6px 12px;
  letter-spacing: 0.06em;
}

.tl-card-body { padding: 14px 16px 16px; }

.tl-type {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.tl-item.milestone .tl-type { color: var(--gold); }

.tl-title {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--paper);
  line-height: 1.2;
  margin-bottom: 6px;
}

.tl-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* Footer bar */
.tl-foot {
  flex: 0 0 auto;
  padding: 12px 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--ink-2);
}
.tl-legend { display: flex; gap: 14px; flex-shrink: 0; }
.tl-leg {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}
.tl-leg-milestone { color: var(--gold); }
.tl-leg-team { color: rgba(255,255,255,0.45); }
.tl-prog-wrap {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.tl-prog {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.08s linear;
}
.tl-hint {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

/* Mobile: plain horizontal scroll */
@media (max-width: 768px) {
  .tl-outer { height: auto !important; }
  .tl-sticky {
    position: relative;
    height: auto;
    overflow: visible;
    padding-bottom: 24px;
  }
  .tl-header { padding: 40px 20px 16px; }
  .tl-viewport {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }
  .tl-viewport::before,
  .tl-viewport::after { display: none; }
  .tl-track {
    width: max-content;
    height: 420px;
    transform: none !important;
    cursor: default;
    padding: 0 20px;
  }
  .tl-item {
    flex: 0 0 280px;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .tl-foot { padding: 12px 20px; }
  .tl-hint, .tl-nav { display: none; }
}

/* ── About hero ─────────────────────────────  */
.about-hero { position: relative; height: 72vh; min-height: 480px; overflow: hidden; }
.about-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.about-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,16,20,0.92) 0%, rgba(14,16,20,0.4) 36%, rgba(14,16,20,0.15) 50%); }
.about-hero-content { position: absolute; bottom: 0; left: 0; padding: 0 40px 60px; }
.about-hero-content h1 { font-size: clamp(42px, 5.5vw, 78px); }
@media (max-width: 768px) {
  .about-hero { height: 45vh; }
  .about-hero-content { padding: 0 20px 40px; }
  .about-hero-content h1 { font-size: clamp(32px, 8vw, 52px); }
}

/* ── Team page header ────────────────────── */
.team-page-header {
  padding: 160px 40px 0;
  text-align: center;
  border-bottom: none;
}
.team-page-h1 {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin: 0 auto 48px;
  max-width: 900px;
}
.team-page-h1 em {
  color: var(--gold);
  font-style: italic;
}
.team-page-desc {
  max-width: 620px;
  margin: 20px auto 48px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(244,241,236,0.55);
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
}
.team-page-img-wrap {
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s ease, transform 1s ease;
}
/* Team page h1 split wipe animation */
.tph-clip {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.tph-slide-up {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.tph-slide-down {
  display: inline-block;
  transform: translateY(-110%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.32s;
}
.team-header-in .tph-slide-up { transform: translateY(0); }
.team-header-in .tph-slide-down { transform: translateY(0); }

.team-header-in .team-page-desc {
  opacity: 1; transform: none; filter: blur(0);
  transition-delay: 0.28s;
}
.team-header-in .team-page-img-wrap {
  opacity: 1; transform: none;
  transition-delay: 0.52s;
}
.team-page-img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
@media (max-width: 768px) {
  .team-page-header { padding: 110px 20px 0; }
  /* The h1 is built from inline-block word-clips that can't break internally,
     so its 28px floor made "behind the scenes." overflow the screen. */
  .team-page-h1 { font-size: clamp(23px, 6.2vw, 32px); margin-bottom: 30px; }
  .team-page-desc { margin: 18px auto 36px; }
  .team-page-img { height: 260px; }
}

/* ── About page redesign ─────────────────── */

/* About intro animation */
.ab-anim-fade {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.ab-intro-in .ab-anim-fade { opacity: 1; transform: none; }

.ab-intro-in .h-line-inner.ab-line-1 { transform: translateY(0); }
.ab-intro-in .h-line-inner.ab-line-2 { transform: translateY(0); transition-delay: 0.18s; }

.ab-anim-lede {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
}
.ab-intro-in .ab-anim-lede { opacity: 1; transform: none; filter: blur(0); transition-delay: 0.42s; }

.ab-anim-img {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.ab-intro-in .ab-anim-img { opacity: 1; transform: none; transition-delay: 0.2s; }

/* 1 · Intro split */
.ab-intro-sec {
  padding: 180px 40px 80px;
}
.ab-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}
.ab-breadcrumb {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ab-bc-sep { opacity: 0.4; }
.ab-bc-current { color: var(--gold); }
.ab-intro-h1 {
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 28px;
}
.ab-intro-lede { max-width: 480px; }
.ab-intro-img-wrap { position: relative; }
.ab-intro-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* 1b · Stacked intro (About page) — centred copy sitting directly above the
   showreel, matching the team page header. Scoped to .ab-intro-stack so
   sustainability.html keeps the original two-column split. */
.ab-intro-stack {
  padding: 160px 40px 0;
}
.ab-intro-stack .ab-intro-inner {
  display: block;
  text-align: center;
}
.ab-intro-stack .ab-breadcrumb {
  justify-content: center;
  margin-bottom: 24px;
}
.ab-intro-stack .ab-intro-h1 {
  max-width: 980px;
  margin: 0 auto 28px;
  font-size: clamp(36px, 4.8vw, 68px);
}
.ab-intro-stack .ab-intro-lede {
  max-width: 640px;
  margin: 0 auto 48px;
}
/* The showreel is nested inside the intro here, so it supplies no padding of
   its own — .ab-intro-stack already provides the page gutter. */
.ab-intro-stack .ab-video-sec {
  padding: 0;
}

/* ── Sustainability hero collage ─────────────────────────────────────────── */
.sust-collage {
  position: relative;
  height: 520px;
  width: 100%;
}
/* Large panel (the main image) sits to the right */
.sust-main {
  position: absolute;
  top: 3%; bottom: 3%; right: 0;
  left: 36%;
  border-radius: 18px;
  overflow: hidden;
}
.sust-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Two square boxes overlap the main image's left edge; the dark ring is the
   page background, giving the "cut into" gap where they sit on top. */
.sust-box {
  position: absolute;
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 6px var(--ink);
}
.sust-box img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.sust-box-top { left: 4%;  top: 9%;  width: 38%; height: 44%; }
.sust-box-bot {
  left: 21%; top: 57%; width: 30%; height: 35%;
  background: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.sust-box-bot .sust-logo-img {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
}

/* ── Sustainability detail: materials, commitment, CTA ─────────────────────── */
.sust-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}
.sust-panel {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 36px;
}
.sust-panel-icon {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(93,164,87,0.45);
  color: #5da457;
  margin-bottom: 22px;
}
.sust-panel-h {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 2.3vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--paper);
  margin: 0 0 14px;
}
.sust-panel-h em { font-style: normal; color: #5da457; }
.sust-panel-p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244,241,236,0.62);
  margin: 0;
}
.sust-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px;
}
.sust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(244,241,236,0.82);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 8px 14px;
}
.sust-pill svg { color: #5da457; flex-shrink: 0; }

.sust-reuse-illo {
  margin-top: 30px;
  color: #5da457;
}
.sust-reuse-illo svg { width: 100%; height: auto; max-height: 112px; display: block; }

/* CTA card — green-tinted, with faint leaf */
.sust-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 36px;
  background: linear-gradient(135deg, rgba(93,164,87,0.16), rgba(255,255,255,0.02) 62%);
  border: 1px solid rgba(93,164,87,0.32);
}
.sust-cta-card h3,
.sust-cta-card p,
.sust-cta-card .btn,
.sust-cta-card .sust-panel-icon { position: relative; z-index: 1; }
.sust-cta-leaf {
  position: absolute;
  right: -16px; bottom: -26px;
  color: rgba(93,164,87,0.4);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .sust-detail-grid { grid-template-columns: 1fr; }
  .sust-panel, .sust-cta-card { padding: 28px; }
}

/* ── OSB project showcase ──────────────────────────────────────────────────── */
.osb-case { max-width: 1200px; margin: 0 auto; }
.osb-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--paper);
  margin: 0 0 18px;
}
.osb-desc {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(244,241,236,0.66);
  max-width: 920px;
  margin: 0;
}
.osb-desc em { font-style: normal; color: #5da457; font-weight: 600; }
.osb-eg {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--paper);
  margin: 26px 0 0;
}
.osb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.osb-step { margin: 0; }
/* The number and title sit ON the photo while the description sits below it, so
   the clip has to stop at the frame — put the rounding and overflow here rather
   than on the figure, or the description gets cropped away with it. */
.osb-step-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #20242c;
}
.osb-step-img { position: absolute; inset: 0; }
.osb-step-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Deep at the base and clear by the top, so the text keeps its contrast against
   a bright photo (step 01 is pale OSB) without boxing off the bottom edge.
   The tall top padding is the fade itself — it has nothing to do with spacing. */
.osb-step-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 64px 18px 18px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.94) 0%,
    rgba(0,0,0,0.86) 34%,
    rgba(0,0,0,0.58) 68%,
    rgba(0,0,0,0) 100%
  );
}
.osb-step-num {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #5da457;
  margin-bottom: 7px;
}
/* The rule trailing the numeral. currentColor keeps it on the numeral. */
.osb-step-num::after {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}
.osb-step-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
}

/* Outside the frame, so this is ordinary body copy on the page background rather
   than text over a photo — it takes the dimmer paper tone the other prose uses. */
.osb-step-desc {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244,241,236,0.62);
}

/* Drops to two columns earlier than the rest of the page would suggest. Four
   across stops working well below ~1100px: the cards narrow to under 240px, the
   titles start wrapping and the fade creeps up over the photo it sits on. Two
   wide cards read better than four cramped ones. */
@media (max-width: 1100px) {
  .osb-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .osb-step-cap { padding: 44px 13px 13px; }
  .osb-step-num { font-size: 11px; gap: 8px; margin-bottom: 5px; }
  .osb-step-num::after { width: 14px; }
  .osb-step-title { font-size: 14px; }
  .osb-step-desc { margin-top: 13px; font-size: 13.5px; line-height: 1.55; }
}
/* Two columns on a 360px phone leave ~150px per card — the longest title needs
   one more step down to stay on a single line. */
@media (max-width: 400px) {
  .osb-step-cap { padding: 40px 11px 11px; }
  .osb-step-title { font-size: 13px; }
  .osb-step-desc { margin-top: 11px; font-size: 13px; }
}

/* ── Regional network (about) ──────────────────────────────────────────────── */
.net-wrap { max-width: 1120px; margin: 0 auto; }
.net-head { max-width: 760px; }
.net-h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--paper);
  margin: 0 0 18px;
}
.net-h2 em { font-style: italic; color: var(--gold); }
.net-intro { margin: 0; max-width: 720px; color: rgba(244,241,236,0.7); }

.net-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 44px 0 0;
}
.net-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 32px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.net-card:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  transform: translateY(-3px);
}
.net-logo { height: 72px; display: flex; align-items: center; margin-bottom: 24px; }
.net-logo img { max-height: 72px; max-width: 240px; width: auto; object-fit: contain; }
.net-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--paper);
  margin: 0 0 7px;
}
.net-loc {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.net-desc { font-size: 14.5px; line-height: 1.6; color: rgba(244,241,236,0.6); margin: 0; }

.net-outro {
  max-width: 820px;
  margin: 40px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(244,241,236,0.62);
}

@media (max-width: 768px) {
  .net-grid { grid-template-columns: 1fr; gap: 16px; }
  .net-card { padding: 26px; }
}

.ab-badge-spin {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: 88px;
  height: 88px;
  animation: ab-spin 20s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ab-badge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ab-badge-center {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
@keyframes ab-spin { to { transform: rotate(360deg); } }

/* 2 · Statement */
.ab-statement-sec {
  padding: 90px 40px;
  text-align: center;
}
.ab-statement-text {
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.02em;
  max-width: 920px;
  margin: 0 auto;
  color: var(--paper);
}
.ab-statement-text em { color: var(--gold); font-style: italic; }

/* 3 · Stats */
.ab-stats-sec {
  padding: 60px 40px;
}
.ab-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.ab-stat { flex: 1; text-align: center; padding: 16px 24px; }
.ab-stat-num {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--gold);
  line-height: 1;
}
.ab-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.ab-stat-div {
  width: 1px;
  height: 56px;
  background: var(--ink-2);
  flex-shrink: 0;
}

/* 4–5 · Split sections (mission / history) */
.ab-split-sec {
  padding: 80px 40px;
}
.ab-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}
.ab-split-rev { direction: rtl; }
.ab-split-rev > * { direction: ltr; }

.ab-split-imgs { display: flex; flex-direction: column; gap: 16px; }
.ab-split-img-top {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.ab-split-img-bot {
  width: 78%;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  align-self: flex-end;
}
.ab-split-h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Checklist */
.ab-checklist {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ab-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(244,241,236,0.72);
  line-height: 1.55;
}
.ab-check {
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 6 · Process row */
.ab-process-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.ab-process-step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.ab-process-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 14px;
}
.ab-process-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.ab-process-desc {
  font-size: 13px;
  color: rgba(244,241,236,0.5);
  line-height: 1.65;
}
.ab-process-arrow {
  color: var(--ink-3);
  font-size: 20px;
  padding-top: 28px;
  flex-shrink: 0;
}

/* 7 · Video */
.ab-video-sec {
  padding: 0 40px 80px;
  /* Arriving from index.html#showreel: .snav is fixed, so without this the
     smooth scroll parks the reel's top edge underneath the bar. */
  scroll-margin-top: 120px;
}
.ab-video-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
}
.ab-video-img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}
.ab-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,16,20,0.35);
}
.ab-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.ab-play-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translate(-50%, -50%) scale(1.1);
}
/* Playing: the frame takes the video's 16:9 shape and the YouTube iframe
   (injected by js/main.js) replaces the poster, overlay, button and badge. */
.ab-video-wrap.is-playing {
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: default;
}
.ab-video-wrap.is-playing > :not(iframe) { display: none; }
.ab-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 8 · Team */

.ab-team-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1280px;
  margin: 0 auto 48px;
}
.ab-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.ab-team-photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--ink-2);
}
.ab-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.ph-card {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.ab-team-name {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.ab-team-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .ab-intro-sec { padding: 100px 20px 60px; }
  .ab-intro-inner { grid-template-columns: 1fr; gap: 40px; }
  .ab-intro-img { height: 340px; }
  .ab-badge-spin { display: none; }
  /* Stacked intro: tighter heading, and no bottom padding because the showreel
     sits at the foot of the section and the statement below has its own. */
  .ab-intro-stack { padding: 100px 20px 0; }
  .ab-intro-stack .ab-intro-h1 { font-size: clamp(30px, 7.2vw, 40px); margin-bottom: 22px; }
  .ab-intro-stack .ab-intro-lede { margin-bottom: 32px; }
  .sust-collage { height: 380px; }
  .ab-statement-sec { padding: 60px 20px; }
  .ab-stats-sec { padding: 48px 20px; }
  .ab-stats { flex-wrap: wrap; }
  .ab-stat { flex: 0 0 calc(50% - 1px); }
  .ab-stat-div { display: none; }
  .ab-split-sec { padding: 60px 20px; }
  .ab-split { grid-template-columns: 1fr; gap: 40px; }
  .ab-split-rev { direction: ltr; }
  .ab-split-img-bot { width: 100%; }
  .ab-process-row { flex-direction: column; gap: 32px; align-items: center; }
  .ab-process-arrow { transform: rotate(90deg); padding-top: 0; }
  .ab-video-sec { padding: 0 20px 60px; }
  .ab-video-img { height: 280px; }
  .ab-team-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ab-team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ── Team Modal ─────────────────────────────  */
.tm-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(14,16,20,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.tm-overlay.tm-open { opacity: 1; pointer-events: auto; }
.tm-card {
  background: #16191F;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 520px 1fr;
  max-width: 1120px;
  width: 100%;
  height: 780px;
  max-height: calc(100vh - 60px);
  overflow: hidden;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.tm-overlay.tm-open .tm-card { transform: translateY(0) scale(1); }
.tm-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: background 0.2s ease;
}
.tm-close:hover { background: rgba(255,255,255,0.14); }
.tm-photo-col { position: relative; }
.tm-ph { height: 100%; min-height: 460px; border-radius: 0; border: none; }
/* .ph is a flex container, and the portrait is a flex item. Once .tm-ph gets a
   definite height (the phone layout below), flex sizing collapsed the item's
   width to its aspect ratio and the striped .ph placeholder showed through
   beside it. Out of flow, it fills the frame in both layouts. */
.tm-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-info-col {
  padding: 44px 36px 36px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.tm-dept { margin-bottom: 14px; }
.tm-name { font-size: 30px; font-weight: 300; letter-spacing: -0.03em; margin: 0 0 10px; line-height: 1.1; }
.tm-title-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.tm-bio { color: rgba(255,255,255,0.62); font-size: 14px; line-height: 1.85; flex: 1; margin: 0; white-space: pre-line; }
.tm-footer { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Digital name-card QR popup */
.tm-qr-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(14,16,20,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.tm-qr-overlay.tm-open { opacity: 1; pointer-events: auto; }
.tm-qr-card {
  position: relative;
  background: #16191F;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 18px;
  max-width: min(90vw, 420px);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.3s ease;
}
.tm-qr-overlay.tm-open .tm-qr-card { transform: translateY(0) scale(1); }
.tm-qr-card img {
  display: block;
  width: 100%; height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
}
.tm-qr-close {
  position: absolute; top: -14px; right: -14px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #16191F;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.tm-qr-close:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.tm-linkedin, .tm-cardbtn { display: inline-flex; align-items: center; gap: 6px; line-height: 1.5; }
@media (max-width: 640px) {
  /* Card sits at the top of the screen rather than centred, so the portrait
     reads as a header the text runs on from. */
  .tm-overlay { padding: 12px; align-items: flex-start; }

  .tm-card {
    /* Block rather than grid: the portrait floats and the heading wraps beside
       it. A float keeps the name next to the photo without a wrapper element,
       which the desktop two-column grid would otherwise have to undo. */
    display: block;
    height: auto;
    max-height: calc(100vh - 24px);
    /* dvh excludes the mobile URL bar, so the card is not cut off on iOS. */
    max-height: calc(100dvh - 24px);
    /* The CARD is the scroller on phones, not .tm-info-col.
       Why this matters: .tm-info-col is a grid item with overflow-y:auto, and it
       can only scroll if the grid row is allowed to be shorter than its content.
       Chrome resolves the item's automatic minimum size to zero and it works;
       Safari does not, so on iPhone the row grew to the full bio height,
       scrollHeight === clientHeight (nothing to scroll), and the card's
       overflow:hidden simply clipped the rest — the bio was unreachable.
       One scroller on the card avoids the broken nested case entirely. */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* A portrait-shaped thumbnail instead of a full-width banner.
     The banner was 1.35:1 landscape while the source photos run 0.73–1.05, so
     `cover` had to discard 40–46% of each image's height and kept clipping
     faces — and with that spread of aspect ratios no single object-position
     works for everyone. A 4:5 frame crops horizontally instead, and faces are
     horizontally centred, so nothing important is lost.
     Its left margin matches .tm-info-col's padding so the photo and the bio
     beneath it share one left edge. */
  .tm-photo-col {
    float: left;
    width: 136px;
    margin: 24px 16px 10px 22px;
    min-height: 0;
  }
  .tm-ph {
    height: 170px;
    min-height: 0;
    border-radius: 12px;
  }

  /* Block, so the float intrudes and the heading sets beside the photo.
     Also no second scroller: the bio flows at full height inside the card. */
  .tm-info-col {
    display: block;
    padding: 24px 22px 28px;
    overflow: visible;
    min-height: 0;
  }
  /* Only the eyebrow shares a horizontal band with the fixed close button; the
     name always sets below it, so it gets the full column and avoids wrapping. */
  .tm-dept { padding-right: 42px; }
  .tm-name { font-size: 22px; }
  /* From the rule down, everything runs full width under the photo. */
  .tm-info-col .divider,
  .tm-bio,
  .tm-footer { clear: left; }
  .tm-bio { flex: none; }

  /* Keep the X on screen while the card scrolls. It has to be fixed, and fixed
     only anchors to the viewport if no ancestor is transformed — the springy
     entrance transform on .tm-card would otherwise make the button scroll with
     the content. The overlay's own fade carries the entrance on phones. */
  .tm-card,
  .tm-overlay.tm-open .tm-card { transform: none; }
  .tm-close { position: fixed; top: 24px; right: 24px; }
}

/* ── Team grid (about page) ─────────────────  */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-name { font-family: var(--serif); font-size: 20px; }

/* ── Team Showcase ──────────────────────────  */
.ts-header {
  max-width: 1400px;
  margin: 0 auto 32px;
  padding: 0 80px;
}
.ts-main-heading {
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.team-showcase { display: block; }
.ts-grid {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
}
.ts-col { flex: 1; display: flex; flex-direction: column; gap: 10px; }
/* Vertical stagger between the five columns — this offset, plus the per-person
   card height set in Sanity, is what makes the grid read as masonry rather than
   a plain table. It used to be an inline style on each column; the grid is now
   rendered by initTeam() in js/main.js, so it lives here. */
.ts-col:nth-child(1) { margin-top: 0; }
.ts-col:nth-child(2) { margin-top: 60px; }
.ts-col:nth-child(3) { margin-top: 25px; }
.ts-col:nth-child(4) { margin-top: 80px; }
.ts-col:nth-child(5) { margin-top: 40px; }
.ts-photo { position: relative; cursor: pointer; border-radius: 12px; overflow: hidden; transition: opacity 0.35s ease; width: 100%; }
.ts-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; filter: grayscale(1) brightness(0.8); transition: filter 0.65s ease; }
.ts-photo:hover .ts-img,
.ts-photo.ts-active .ts-img { filter: grayscale(0) brightness(1); }
.ts-real-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  padding: 8px 10px;
  background: rgba(14,16,20,0.78);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.72);
}
.ts-ph { border-radius: 0; border: none; width: 100%; transition: filter 0.5s ease; filter: grayscale(1) brightness(0.65); }
.ts-photo.ts-active .ts-ph { filter: grayscale(0) brightness(1); }
.ts-photo.ts-dimmed { opacity: 0.4; }
@media (max-width: 768px) {
  /* Flatten the 5 offset masonry columns into a tidy vertical 2-col grid of
     uniform tiles. `display: contents` lifts each .ts-photo up to be a direct
     grid item; the desktop per-photo inline heights are overridden here. */
  #team { padding-top: 80px !important; }
  .ts-header { padding: 0; }   /* the .sec wrapper already insets 20px on mobile */
  .ts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
    overflow: visible;
  }
  .ts-col { display: contents; }
  /* `display: contents` makes every .ts-photo a direct child of .ts-grid,
     but in column-major DOM order (1,6,11,16,21,2,7,...). `--o` is the
     person's real index, stamped in main.js, so `order` reads it back. */
  .ts-photo { height: auto !important; aspect-ratio: 3 / 4; margin-top: 0 !important;
              order: var(--o, 0); }
  .ts-ph { height: 100% !important; }
  .ts-real-label { font-size: 11px; padding: 6px 8px; }
}

/* ── Values (about page) ────────────────────  */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.value-title { font-family: var(--serif); font-size: 22px; }
.value-desc { color: rgba(255,255,255,0.6); font-size: 12px; margin-top: 4px; }

/* ── Form ──────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field .lab {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.sec.light .field .lab { color: rgba(20,23,28,0.55); }

.field .inp {
  height: 40px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
  padding: 8px 0;
  width: 100%;
  transition: border-color .2s;
}
.sec.light .field .inp { color: var(--ink); border-bottom-color: rgba(0,0,0,0.15); }
.field .inp.area { height: 90px; resize: none; }
.field .inp:focus { border-bottom-color: var(--gold); }

/* ── Footer ────────────────────────────────── */
.site-footer {
  position: relative;
  background: var(--ink);
  border-top: 1px solid var(--ink-3);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

/* Radial glow at top center */
.footer-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 33%;
  height: 1px;
  background: rgba(255,255,255,0.25);
  filter: blur(4px);
  border-radius: 999px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.footer-brand-col { display: flex; flex-direction: column; gap: 12px; }


.footer-desc {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  line-height: 1.65;
  max-width: 280px;
  margin: 0;
}

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  margin: 8px 0 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li { font-size: 13px; color: rgba(255,255,255,0.55); }

.footer-col ul a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}

.footer-col ul a:hover { color: var(--gold); }

.ft-icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--ink-2);
  padding: 32px 40px 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.footer-logo-row img {
  height: 54px;
  width: auto;
  display: block;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-logo-row img:hover { opacity: 1; }

/* ─── Logo Cloud section ──────────────────────── */
.logo-cloud-sec { padding: 72px 0 0; border-bottom: none; }
.logo-cloud-hdg {
  text-align: center;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  color: rgba(244,241,236,0.45);
  letter-spacing: -0.02em;
  margin: 0 0 56px;
  padding: 0 40px;
}
.logo-cloud-hdg em {
  font-style: normal;
  font-weight: 600;
  color: var(--paper);
}
.logo-cloud-wrap { position: relative; }
.logo-cloud-wrap::before,
.logo-cloud-wrap::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
  z-index: 1;
}
.logo-cloud-wrap::before { top: 0; }
.logo-cloud-wrap::after { bottom: 0; }
.logo-cloud-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  border-left: 1px solid rgba(255,255,255,0.07);
  border-right: 1px solid rgba(255,255,255,0.07);
}
@media (min-width: 768px) {
  .logo-cloud-grid { grid-template-columns: repeat(4, 1fr); }
}
.lc-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.lc-shade      { background: rgba(255,255,255,0.025); }
.lc-shade-mob  { background: rgba(255,255,255,0.025); }
.lc-shade-desk { background: transparent; }
@media (min-width: 768px) {
  .lc-shade-mob  { background: transparent; }
  .lc-shade-desk { background: rgba(255,255,255,0.025); }
}
.lc-cell img { max-height: 48px; max-width: 80%; width: auto; height: auto; object-fit: contain; pointer-events: none; user-select: none; }
/* Mobile (2-col): no right border on even cells, no bottom border on last 2 */
.lc-cell:nth-child(even) { border-right: none; }
.lc-cell:nth-last-child(-n+2) { border-bottom: none; }
@media (min-width: 768px) {
  .lc-cell { padding: 40px 32px; }
  /* Desktop (4-col): restore even, remove every 4th */
  .lc-cell:nth-child(even)    { border-right: 1px solid rgba(255,255,255,0.07); }
  .lc-cell:nth-child(4n)      { border-right: none; }
  /* Desktop: restore last-2, remove last 4 */
  .lc-cell:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .lc-cell:nth-last-child(-n+4) { border-bottom: none; }
}
/* Plus intersection icons */
.lc-plus {
  position: absolute;
  width: 24px;
  height: 24px;
  color: rgba(255,255,255,0.18);
  pointer-events: none;
  z-index: 10;
}
.lc-plus-br   { right: -12px; bottom: -12px; }
.lc-plus-bl   { left:  -12px; bottom: -12px; }
.lc-plus-desk { display: none; }
.lc-plus-mob  { display: block; }
@media (min-width: 768px) {
  .lc-plus-desk { display: block; }
  .lc-plus-mob  { display: none; }
}

/* Blur-in animation */
.ft-anim {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(-8px);
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
  transition-delay: var(--ft-delay, 0s);
}
.ft-anim.ft-in {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .footer-inner { padding: 40px 20px 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding: 14px 20px; }
  /* Free-flowing flex left a ragged last row and mixed apparent sizes.
     A fixed 3-up grid with a common box height lines them up. */
  .footer-logo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 14px;
    margin-bottom: 22px;
    place-items: center;
  }
  .footer-logo-row img {
    height: 34px;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.85;   /* the darkest mark was near-invisible at 0.7 on the dark footer */
  }
}

/* ── Shuffle grid section ───────────────────── */
.shuffle-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
  border-bottom: none;
}

.shuffle-left {
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shuffle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  height: 450px;
  gap: 12px;
  width: 100%;
  max-width: 1100px;
}

.shuffle-grid .sq {
  border-radius: 6px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--ink-2);
  will-change: transform;
}

@media (max-width: 768px) {
  .shuffle-left { max-width: 100%; }
  /* The logo files are 552x208. Four square-ish tiles per row plus
     `background-size: cover` cropped them to their middle third
     ("ntos", "GAPORE YTECHNIC"). Two wide tiles per row, letterboxed. */
  .shuffle-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    height: auto;
  }
  .shuffle-grid .sq {
    aspect-ratio: 552 / 208;
    background-size: contain;
  }
  .shuffle-left h2 { white-space: normal !important; }  /* beat the inline nowrap that overflows on phones */
}

/* ── Globe section ──────────────────────────  */
#globe-section { padding-top: 200px; padding-bottom: 200px; border-bottom: none; position: relative; overflow: hidden; }
#globe-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, var(--ink), transparent);
  z-index: 1;
  pointer-events: none;
}
#globe-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to top, var(--ink), transparent);
  z-index: 1;
  pointer-events: none;
}
#globe-section .globe-layout { position: relative; z-index: 2; }
#globe-section .cap-orb-orange { width: 45%; height: 45%; background: rgba(59, 130, 246, 0.09); filter: blur(130px); }
#globe-section .cap-orb-blue   { width: 45%; height: 45%; background: rgba(59, 130, 246, 0.09); filter: blur(130px); }

.globe-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.globe-text { padding-left: 250px; padding-right: 16px; }
.globe-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}
#globe-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
#globe-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
/* Badge pill */
.globe-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.globe-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 7px var(--gold);
  flex-shrink: 0;
}
/* Stats row */
.globe-stats {
  display: flex;
  align-items: center;
  margin-top: 40px;
}
.globe-stat {
  flex: 1;
  padding: 0 24px;
}
.globe-stat:first-child { padding-left: 0; }
.globe-stat-num {
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 300;
  color: var(--paper);
  letter-spacing: -0.03em;
  line-height: 1;
}
.globe-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}
.globe-stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.gm-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: gm-pulse 2.6s ease-out infinite;
}
@keyframes gm-pulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(4);   opacity: 0;   }
}
.gm-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  fill: #0E1014;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  #globe-section { padding-top: 110px; padding-bottom: 110px; }  /* was 200px each */
  .globe-layout { grid-template-columns: 1fr; gap: 40px; }
  .globe-text { padding-left: 0; padding-right: 0; order: -1; }
  .globe-canvas-wrap { max-width: 360px; order: 1; }
  .globe-stat { padding: 0 16px; }
  .globe-stat-num { font-size: 28px; }
}

/* Mobile perf: stop the always-running grid-scroll animations. They repaint a
   full-screen layer every frame, and their mouse-reveal counterparts are
   invisible on touch anyway — so this is a free scrolling win, no visual change. */
@media (max-width: 768px) {
  .cap-grid-base, .cap-grid-reveal,
  .at-grid-base, .at-grid-reveal,
  .cap-header-wrap::before { animation: none; }
}


/* ── Zoom parallax ─────────────────────────── */
.zoom-parallax-wrap {
  position: relative;
  height: 180vh;
}

.zoom-parallax-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.zp-item {
  position: absolute;
  will-change: transform;
  border-radius: 12px;
  overflow: hidden;
  /* transform-origin set per-item via JS to viewport center */
}

.zp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Center image: 25vw×25vh centered → fills viewport exactly at scale 4 */
.zp-item-0 { width: 25vw; height: 25vh; top: 37.5vh; left: 37.5vw; }
.zp-item-1 { width: 35vw; height: 30vh; top: 5vh;    left: 37.5vw; }
.zp-item-2 { width: 20vw; height: 45vh; top: 17.5vh; left: 15vw;   }
.zp-item-3 { width: 25vw; height: 25vh; top: 37.5vh; left: 65vw;   }
.zp-item-4 { width: 20vw; height: 25vh; top: 65vh;   left: 45vw;   }
.zp-item-5 { width: 30vw; height: 25vh; top: 65vh;   left: 12.5vw; }
.zp-item-6 { width: 15vw; height: 15vh; top: 65vh;   left: 67.5vw; }

/* ── Animated tagline section ───────────────── */
.animated-tagline-sec {
  position: relative;
  overflow: hidden;
  padding: 200px 40px 100px;
  text-align: center;
}

.animated-tagline-sec::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, var(--ink), transparent);
  z-index: 1;
  pointer-events: none;
}

.animated-tagline-sec::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 260px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  z-index: 1;
  pointer-events: none;
}

.at-grid-base,
.at-grid-reveal {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M 40 0 L 0 0 0 40' fill='none' stroke='%23f4f1ec' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  animation: capGridScroll 8s linear infinite;
}
.at-grid-base   { opacity: 0.04; z-index: 0; }

.animated-tagline-sec .cap-orb-orange {
  width: 55%; height: 55%;
  background: rgba(59, 130, 246, 0.11);
  filter: blur(140px);
}
.animated-tagline-sec .cap-orb-blue {
  width: 55%; height: 55%;
  background: rgba(59, 130, 246, 0.11);
  filter: blur(140px);
}
.at-grid-reveal {
  opacity: 0.20;
  z-index: 0;
  -webkit-mask-image: radial-gradient(300px circle at -9999px -9999px, black, transparent);
  mask-image: radial-gradient(300px circle at -9999px -9999px, black, transparent);
}

.animated-tagline-inner {
  position: relative;
  z-index: 2;
  max-width: min(1300px, 94vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.at-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 8px 20px;
  border: 1px solid rgba(244,241,236,0.2);
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}
.at-badge:hover { border-color: var(--gold); color: var(--gold); }
.at-badge-arrow { transition: transform 0.2s; }
.at-badge:hover .at-badge-arrow { transform: translateX(4px); }

.at-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.at-static {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--paper);
}

.at-words-wrap {
  position: relative;
  height: 1.15em;
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(50px, 7.5vw, 108px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.04em;
  color: var(--gold);
  width: 100%;
}

.at-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  will-change: transform, opacity;
}

.at-word.at-active {
  transform: translateY(0);
  opacity: 1;
}

.at-word.at-past {
  transform: translateY(-100%);
  opacity: 0;
}

.at-sub {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(244,241,236,0.55);
  max-width: 560px;
}

/* Section-level reveal is instant — children handle the animation */
.animated-tagline-sec.reveal { transition: none; opacity: 1; transform: none; }

.at-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.animated-tagline-sec.in .at-item:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.5s; }
.animated-tagline-sec.in .at-item:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.68s; }
.animated-tagline-sec.in .at-item:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.84s; }

/* ── Scroll reveal ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-late { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal-late.in { opacity: 1; transform: none; }

/* ── Portfolio filter bar ───────────────────── */
.filter-bar {
  padding: 16px 40px;
  border-top: 1px solid var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Contact map placeholder ─────────────────  */
.contact-sidebar { display: grid; gap: 0; }

/* ── Capabilities header wrapper (standalone, before exhibitions) ── */
.cap-header-wrap {
  position: relative;
  overflow: hidden;
}

.cap-header-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M 40 0 L 0 0 0 40' fill='none' stroke='%23f4f1ec' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  animation: capGridScroll 8s linear infinite;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.cap-header-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    var(--ink) 0%,
    transparent 22%,
    transparent 78%,
    var(--ink) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.cap-header-wrap .cap-feat-section {
  position: relative;
  z-index: 2;
}

/* ── Service cards section (inside cap-zp-bg-wrap) ── */
.cap-grid-section {
  position: relative;
  z-index: 2;
  border-bottom: none;
  padding-top: 0;
}

/* ── Exhibitions video section ──────────────── */
.exhibitions-outer {
  position: relative;
  height: 560vh; /* taller = slower scrub; sized for the 33s clip + 4 text slides */
}

.exhibitions-sec {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.exhibitions-video-bg {
  position: absolute;
  inset: 0;
}

.exhibitions-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exhibitions-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.90) 0%,
    rgba(0, 0, 0, 0.80) 35%,
    rgba(0, 0, 0, 0.28) 62%,
    transparent 100%
  );
  z-index: 1;
}

.exhibitions-sec::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, var(--ink), transparent);
  z-index: 2;
  pointer-events: none;
}

.exhibitions-sec::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--ink), transparent);
  z-index: 2;
  pointer-events: none;
}

.exh-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: rgba(59, 130, 246, 0.09);
  filter: blur(140px);
}
.exh-orb-1 { width: 50%; height: 80%; top: -20%; right: -5%; }
.exh-orb-2 { width: 40%; height: 60%; bottom: -10%; right: 20%; }

.exhibitions-content {
  position: relative;
  z-index: 3;
  padding: 160px 40px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.exhibitions-title {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 520px;
}

.exhibitions-lead {
  font-size: 17px;
  color: rgba(244, 241, 236, 0.72);
  line-height: 1.65;
  max-width: 440px;
  margin: 0;
}

/* Stills stand in for the scrubbed video on phones only — see js/main.js. */
.exh-stills { display: none; }

/* ── Exhibitions two-phase text slides ─── */
.exh-slides {
  display: grid;
}
.exh-slide {
  grid-area: 1 / 1;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
}
/* Base: every slide waits off to the right, hidden */
.exh-slide { transform: translateX(72px); opacity: 0; pointer-events: none; }
/* Default (phase 1 / before JS runs): slide 1 is centred and visible */
.exh-slide-1 { transform: translateX(0); opacity: 1; pointer-events: auto; }

/* The active slide for each phase slides into the centre */
.exh-slides.phase-2 .exh-slide-2,
.exh-slides.phase-3 .exh-slide-3,
.exh-slides.phase-4 .exh-slide-4 { transform: translateX(0); opacity: 1; pointer-events: auto; }

/* Slides already passed exit to the left */
.exh-slides.phase-2 .exh-slide-1,
.exh-slides.phase-3 .exh-slide-1,
.exh-slides.phase-3 .exh-slide-2,
.exh-slides.phase-4 .exh-slide-1,
.exh-slides.phase-4 .exh-slide-2,
.exh-slides.phase-4 .exh-slide-3 { transform: translateX(-72px); opacity: 0; pointer-events: none; }

@media (max-width: 768px) {
  /* Four readable slides need room to breathe: 300vh gives each phase roughly
     half a screen of travel. It was cut to 180vh while this was a dark scrubbed
     video that read as an empty gap — the stills earn the height back. */
  .exhibitions-outer { height: 300vh; }

  .exhibitions-content { padding: 120px 20px; }

  .exhibitions-video-bg video { display: none; }

  /* Full-bleed, exactly where the video sits on desktop — the copy stays centred
     on top of it. */
  .exh-stills {
    display: block;
    position: absolute;
    inset: 0;
  }
  .exh-still {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Same `cover` the video uses. A portrait phone keeps only the middle slice
       of a 16:9 frame — checked per slide, and all four subjects sit inside it. */
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transform: scale(1.06);
    /* Matches .exh-slide's timing so the picture and the words move as one. */
    transition: opacity 0.45s ease, transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* Phase 1 shows before the scroll handler has run. */
  .exh-still-1 { opacity: 1; transform: scale(1); }
  .exhibitions-sec.phase-2 .exh-still-2,
  .exhibitions-sec.phase-3 .exh-still-3,
  .exhibitions-sec.phase-4 .exh-still-4 { opacity: 1; transform: scale(1); }
  /* Stills already passed recede, mirroring how the text exits. */
  .exhibitions-sec.phase-2 .exh-still-1,
  .exhibitions-sec.phase-3 .exh-still-1,
  .exhibitions-sec.phase-3 .exh-still-2,
  .exhibitions-sec.phase-4 .exh-still-1,
  .exhibitions-sec.phase-4 .exh-still-2,
  .exhibitions-sec.phase-4 .exh-still-3 { opacity: 0; transform: scale(0.98); }

  /* The stills are busier than the video's darker frames, so the copy needs a
     little more backing than the desktop gradient gives it. */
  .exhibitions-overlay {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.90) 0%,
      rgba(0, 0, 0, 0.82) 55%,
      rgba(0, 0, 0, 0.62) 100%
    );
  }
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .row12 { grid-template-columns: repeat(6, 1fr); }
  .row12 [style*="grid-column: span 7"],
  .row12 [style*="grid-column: span 8"] { grid-column: span 6 !important; }
  .row12 [style*="grid-column: span 5"],
  .row12 [style*="grid-column: span 4"] { grid-column: span 6 !important; }
  .row12 [style*="grid-column: span 3"] { grid-column: span 3 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline, .process-steps { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-hero-media { grid-template-columns: 3fr 200px 2fr; }
}

@media (max-width: 768px) {
  .snav-inner {
    padding: 14px 20px;
    margin-left: 16px;
    margin-right: 16px;
    grid-template-columns: 1fr auto 1fr;
    gap: 0 10px;
  }
  .snav ul { display: none; }
  /* Shrink the oversized 68px hero logo so the bar isn't ~96px tall on a phone
     (and so it lines up with the menu overlay anchored just below it). */
  .nav-logo-col { height: 40px; }
  /* The hamburger belongs at the right edge, opposite the logo — and matching
     the overlay's close button, which is right-aligned. It used to sit in
     column 2 (dead centre) because column 3 was reserved for the Odyssey
     `.logo-right`, which no longer exists in any page's markup. */
  .snav-toggle {
    display: flex; grid-column: 3; grid-row: 1; justify-self: end;
    align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;   /* 44px = minimum comfortable tap target */
  }
  .sec { padding: 48px 20px; }
  .sec.tight { padding: 32px 20px; }
  .animated-tagline-sec { padding: 80px 24px; }
  /* 100svh keeps the hero CTAs above the mobile browser's dynamic toolbar
     (older browsers ignore svh and fall back to the base 100vh). */
  .hero { height: 100svh; }
  .hero-content { padding: 0 20px 40px; }
  .hero-content h1 { font-size: clamp(38px, 11vw, 60px); }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .row12 { grid-template-columns: 1fr; gap: 16px; }
  .row12 [style*="grid-column"] { grid-column: 1 / -1 !important; }
  .feat-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .filter-bar { padding: 12px 20px; }
  .site-footer { padding: 28px 20px 20px; }
  .svc-hero { padding: 120px 20px 60px; }
  .svc-hero-media { grid-template-columns: 1fr; }
  .svc-hero-photo { height: 220px; }
  .svc-hero-stat-card { padding: 24px 20px; }
}

/* ── About · Sustainability ──────────────────────── */
.ab-sust-sec { border-top: 1px solid rgba(255,255,255,0.06); }

.ab-sust-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.ab-sust-heading {
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 1.07;
  margin: 0;
  letter-spacing: -0.025em;
}
.ab-sust-logo {
  height: 72px;
  width: auto;
  opacity: 0.9;
  display: block;
}
.ab-sust-lead {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244,241,236,0.58);
  margin: 0;
}
.ab-sust-bento { margin-top: 0; }
.ab-sust-bento .svc-bento-name span { color: #5da457; }
.ab-sust-bento .svc-bento-card:hover .svc-bento-name span { color: #5da457; }
.ab-sust-bento .svc-bento-card:hover .svc-bento-name { color: #5da457; }

@media (max-width: 900px) {
  .ab-sust-top { grid-template-columns: 1fr; gap: 36px; }
}

/* ── Services bento grid ────────────────────────── */
.svc-bento {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.svc-bento-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
}
.svc-bento-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
}
.svc-bento-content {
  position: relative;
  z-index: 1;
}
.svc-bento-heading {
  font-size: clamp(26px, 2.8vw, 38px);
  color: var(--paper);
  line-height: 1.18;
  margin: 0;
}

.svc-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.svc-bento-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s;
}
.svc-bento-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
}
.svc-bento-desc {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(244,241,236,0.48);
  margin: 0;
}
.svc-bento-name {
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 300;
  color: var(--paper);
  margin-top: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  letter-spacing: -0.02em;
  transition: color 0.25s;
}
.svc-bento-card:hover .svc-bento-name { color: var(--gold); }
.svc-bento-name span {
  font-family: var(--sans);
  font-size: 16px;
  color: rgba(244,241,236,0.35);
  display: inline-block;
  transition: transform 0.25s, color 0.25s;
}
.svc-bento-card:hover .svc-bento-name span {
  transform: translate(3px, -3px);
  color: var(--gold);
}

.svc-bento-grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
  .svc-bento { grid-template-columns: 1fr 1fr; }
  .svc-bento-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .svc-bento { grid-template-columns: 1fr; }
  .svc-bento-main { min-height: 360px; }
  .svc-bento-grid { grid-template-columns: 1fr 1fr; }
  .svc-bento-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .svc-bento-grid { grid-template-columns: 1fr; }
  .svc-bento-grid-3 { grid-template-columns: 1fr; }
}

/* ── Services process carousel ─────────────────── */
.svc-process-wrap {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.svc-process-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(16,18,26,0.6);
  overflow: hidden;
  min-height: 360px;
  position: relative;
}
.svc-process-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(500px circle at var(--spc-mx, 50%) var(--spc-my, 50%), rgba(241,37,170,0.07), transparent 60%);
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}
.svc-process-card:hover::before { opacity: 1; }

.spc-panels {
  display: grid;
  align-items: center;
  padding: 48px 40px;
  position: relative;
  z-index: 1;
}
.spc-panel {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1), transform 0.4s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.spc-panel.spc-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.spc-name {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.spc-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 300;
  color: var(--paper);
  margin: 0 0 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.spc-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244,241,236,0.6);
  margin: 0;
}

.spc-images-wrap {
  position: relative;
  overflow: hidden;
  background: rgba(8,10,16,0.6);
  border-left: 1px solid rgba(255,255,255,0.06);
}
.spc-imgpanel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.spc-imgpanel.spc-active { opacity: 1; }

.spc-img {
  position: absolute;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}
.spc-img-a {
  width: 65%;
  height: 52%;
  left: 8%;
  top: 8%;
  transform: rotate(-1.5deg);
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.spc-img-b {
  width: 58%;
  height: 48%;
  left: 34%;
  top: 44%;
  transform: rotate(1.5deg);
  transition: transform 0.7s 0.08s cubic-bezier(0.22,1,0.36,1);
}
.spc-imgpanel.spc-active .spc-img-a { transform: rotate(-0.5deg); }
.spc-imgpanel.spc-active .spc-img-b { transform: rotate(0.5deg); }
.spc-img-c {
  width: 82%;
  height: 76%;
  left: 9%;
  top: 12%;
}

.spc-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.spc-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(244,241,236,0.4);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.spc-step:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(244,241,236,0.75);
  border-color: rgba(255,255,255,0.15);
}
.spc-step-active {
  background: var(--gold) !important;
  color: #fff !important;
  border-color: var(--gold) !important;
  transform: scale(1.05);
}
.spc-step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.25s;
}
.spc-step-active .spc-step-dot { background: rgba(255,255,255,0.25); }
.spc-check { display: none; }
.spc-step-done .spc-step-num { display: none; }
.spc-step-done .spc-check { display: block; }
.spc-step-done .spc-step-dot { background: rgba(241,37,170,0.22); color: var(--gold); }
.spc-step-done { border-color: rgba(241,37,170,0.2); color: rgba(241,37,170,0.7); }

@media (max-width: 768px) {
  .svc-process-card { grid-template-columns: 1fr; min-height: auto; }
  .spc-panels { padding: 32px 24px; }
  .spc-images-wrap { height: 260px; border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
}

/* ── Services page hero ─────────────────────── */
/* NOTE: this block sits *after* the @media (max-width:768px) rules further up
   the file, so anything unconditional here silently beats them. The desktop
   sizing is therefore scoped to (min-width: 769px) and the phone values are
   the defaults. */
.svc-hero { padding: 120px 20px 60px; }
.svc-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.svc-hero-top { display: block; }
.svc-hero-head h1 {
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 1.07;
  font-weight: 700;            /* match the about-page intro heading (Inter Tight bold, tight) */
  letter-spacing: -0.04em;
}

.svc-hero-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}
.svc-hero-photo {
  border-radius: 16px;
  overflow: hidden;
  height: 220px;
}
.svc-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-hero-stat-card {
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
@media (min-width: 769px) {
  .svc-hero { padding: 140px 40px 72px; }
  .svc-hero-media { grid-template-columns: 3fr 220px 2fr; }
  .svc-hero-photo { height: 300px; }
  .svc-hero-stat-card { padding: 32px 22px; }
}

.shsc-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.4);
}
.shsc-num {
  font-family: var(--serif);
  font-size: clamp(40px, 3.5vw, 54px);
  font-weight: 300;
  color: var(--paper);
  line-height: 1;
  letter-spacing: -0.03em;
}
.shsc-tags {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}
.shsc-tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.35);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 8px 0;
}

/* ── Portfolio sphere gallery ─────────────────────────────────────────────── */
/* Immersive, non-scrolling page — scoped so only portfolio.html is affected */
body.pg-immersive { overflow: hidden; height: 100vh; }

#pg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  display: block;
  touch-action: none;       /* let JS own the drag gesture */
  cursor: grab;
}

/* Edge vignette — fades the sphere into black at the corners (depth cue) */
body.pg-immersive::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 45%, transparent 52%, rgba(14,16,20,0.55) 78%, rgba(14,16,20,0.96) 100%);
}

/* Edge blur — softens the canvas toward the screen edges (centre stays sharp).
   Masked so backdrop-blur only applies around the rim; nav/modal sit above it. */
body.pg-immersive::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  -webkit-mask-image: radial-gradient(115% 100% at 50% 50%, transparent 34%, #000 70%);
          mask-image: radial-gradient(115% 100% at 50% 50%, transparent 34%, #000 70%);
}

/* Title overlay (top-left), fades on first interaction */
/* Centred intro overlay: dim tint behind, title + hint in the middle */
#pg-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;            /* let drags/clicks reach the canvas underneath */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  /* radial gradient: darkest behind the centred text, fading out toward the edges */
  background: radial-gradient(ellipse 68% 60% at 50% 48%,
              rgba(8, 9, 12, 0.97) 0%,
              rgba(8, 9, 12, 0.7) 45%,
              rgba(8, 9, 12, 0.24) 100%);
}
#pg-intro { max-width: 760px; }
.pg-intro-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.pg-intro-title {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  font-weight: 700;            /* match the about-page intro heading (Inter Tight bold, tight) */
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--paper);
}
.pg-intro-title em { font-style: italic; color: var(--gold); }

/* Drag hint (under the title) */
#pg-hint {
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: pgHintBlink 2.2s ease-in-out infinite;
}
.pg-hint-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pgHintPulse 2s ease-in-out infinite;
}
@keyframes pgHintPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
/* Smooth slow "breathe" on the how-to hint to draw attention to it */
@keyframes pgHintBlink {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #pg-hint { animation: none; opacity: 1; }
}

/* WebGL fallback */
#pg-fallback {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(244,241,236,0.7);
  font-size: 16px;
  line-height: 1.7;
}
#pg-fallback[hidden] { display: none; }   /* ID selector must re-honour the hidden attribute */
#pg-fallback a { color: var(--gold); }

/* ── Project modal ── */
.pg-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pg-modal[hidden] { display: none; }
.pg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pg-modal-card {
  position: relative;
  width: min(960px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #14171d;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
.pg-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.pg-modal-close:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }
.pg-modal-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pg-modal-cat { color: var(--gold); }
.pg-modal-num { color: var(--gold); margin-right: 14px; }
.pg-modal-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 14px 0 14px;
  color: var(--paper);
}
.pg-modal-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244,241,236,0.6);
  margin: 0 0 20px;
}
.pg-modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pg-pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.78);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 6px 13px;
}
/* Lightbox stage */
.pg-stage {
  position: relative;
  width: 100%;
  height: clamp(300px, 56vh, 580px);
  border-radius: 16px;
  overflow: hidden;
  background: #20242c;
  margin-bottom: 14px;
}
.pg-stage-img {
  width: 100%; height: 100%;
  /* contain, not cover: portrait shots show whole instead of being cropped to
     the stage's landscape box. Bars fall back to .pg-stage's own background. */
  object-fit: contain;
  display: block;
}
.pg-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(8,9,12,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--paper);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.pg-arrow:hover { background: rgba(8,9,12,0.82); border-color: rgba(255,255,255,0.45); }
.pg-arrow:active { transform: translateY(-50%) scale(0.92); }
.pg-arrow-prev { left: 16px; }
.pg-arrow-next { right: 16px; }

/* Thumbnails */
.pg-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.pg-thumb {
  width: 88px;
  aspect-ratio: 5/4;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #20242c;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
}
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-thumb:hover { opacity: 0.85; }
.pg-thumb.is-active { opacity: 1; border-color: var(--gold); }

.pg-modal-cta { display: inline-flex; }

@media (max-width: 600px) {
  .pg-intro-title { font-size: clamp(34px, 11vw, 56px); }
  .pg-intro-eyebrow { font-size: 11px; letter-spacing: 0.18em; }
  #pg-hint { font-size: 11px; letter-spacing: 0.12em; margin-top: 26px; }
  .pg-modal-card { padding: 28px 22px; border-radius: 18px; }
  .pg-stage { height: clamp(240px, 42vh, 360px); }
  .pg-arrow { width: 40px; height: 40px; }
  .pg-thumb { width: 64px; }
}

/* ── Contact page ─────────────────────────────────────────────────────────── */

/* "Enquiry sent" popup — same card language as the gallery's .pg-modal. */
.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cs-modal[hidden] { display: none; }
.cs-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cs-modal-card {
  position: relative;
  width: min(440px, 100%);
  background: #14171d;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  padding: 44px 36px 36px;
  text-align: center;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cs-modal.is-open .cs-modal-backdrop { opacity: 1; }
.cs-modal.is-open .cs-modal-card { opacity: 1; transform: none; }
.cs-modal-icon {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #5da457;
  background: rgba(93,164,87,0.12);
  border: 1px solid rgba(93,164,87,0.35);
}
.cs-modal-eyebrow { color: #5da457; margin-bottom: 10px; }
.cs-modal-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--paper);
}
.cs-modal-text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(244,241,236,0.65);
  margin: 0 0 28px;
}
.cs-modal-btn { min-width: 140px; justify-content: center; }
.cs-modal-btn:focus { outline: none; }
.cs-modal-btn:focus-visible { outline: 2px solid rgba(244,241,236,0.7); outline-offset: 3px; }
@media (max-width: 600px) {
  .cs-modal-card { padding: 36px 22px 26px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-modal-backdrop, .cs-modal-card { transition: none; }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.contact-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  border-radius: 18px;
  padding: 30px;
}
.contact-addr {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--paper);
}
.contact-list {
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14px;
  line-height: 2;
  color: rgba(244,241,236,0.7);
}
.contact-list a { color: rgba(244,241,236,0.7); text-decoration: none; transition: color .2s; }
.contact-list a:hover { color: var(--gold); }
.contact-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-socials a.tag { text-decoration: none; }
.contact-map {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  border: none;
}
/* Leaflet dark map (CARTO dark tiles) + custom red marker */
.contact-map .leaflet-container { width: 100%; height: 100%; background: #0e1014; font: inherit; }
/* lift the very-dark tiles so roads/labels stay legible (marker & controls are separate layers) */
.contact-map .leaflet-tile { filter: brightness(1.45) contrast(0.9) saturate(1.2); }
.evc-pin svg { display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); }
.contact-map .leaflet-control-attribution {
  background: rgba(14,16,20,0.72);
  color: rgba(244,241,236,0.45);
}
.contact-map .leaflet-control-attribution a { color: rgba(244,241,236,0.7); }
.contact-map .leaflet-bar a {
  background: #1a1d24;
  color: var(--paper);
  border-bottom-color: rgba(255,255,255,0.12);
}
.contact-map .leaflet-bar a:hover { background: #20242c; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   AI chat assistant widget
   ═══════════════════════════════════════════════════════════════════════ */

.evc-chat {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 9000;
  font-family: var(--sans);
  /* hidden until revealed (e.g. after the hero on the homepage) so it doesn't
     block the "Watch showreel" button */
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1),
              visibility 0.45s;
}
.evc-chat.is-ready {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* ── Floating button ─────────────────────────────────────────────── */
.evc-chat-fab {
  position: relative;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(241, 37, 170, 0.38), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease, background 0.2s ease;
}
.evc-chat-fab:hover { transform: translateY(-3px) scale(1.04); background: var(--gold-2); }
.evc-chat-fab:active { transform: translateY(-1px) scale(0.98); }

/* Scrolled back up over the hero → shrink into the corner so it never covers
   the "Watch showreel" button. Grows back on hover (still clickable) and when
   scrolled down again. */
.evc-chat-fab { transform-origin: bottom right; }
.evc-chat.is-mini .evc-chat-fab {
  transform: scale(0.46);
  opacity: 0.55;
  box-shadow: 0 6px 16px rgba(241, 37, 170, 0.28);
}
.evc-chat.is-mini .evc-chat-fab:hover { transform: scale(1); opacity: 1; }
.evc-chat.is-mini .evc-chat-fab::after { display: none; }
.evc-chat.is-mini .evc-chat-nudge { display: none; }

/* gentle attention ring on the button */
.evc-chat-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: evcFabPulse 2.6s ease-out infinite;
}
@keyframes evcFabPulse {
  0%   { opacity: 0.55; transform: scale(1); }
  70%  { opacity: 0;    transform: scale(1.7); }
  100% { opacity: 0;    transform: scale(1.7); }
}

.evc-chat-fab .evc-ic-chat,
.evc-chat-fab .evc-ic-close { position: absolute; transition: opacity 0.2s ease, transform 0.2s ease; }
.evc-chat-fab .evc-ic-close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.evc-chat.is-open .evc-chat-fab .evc-ic-chat { opacity: 0; transform: rotate(90deg) scale(0.6); }
.evc-chat.is-open .evc-chat-fab .evc-ic-close { opacity: 1; transform: rotate(0) scale(1); }
.evc-chat.is-open .evc-chat-fab::after { display: none; }

/* small unread nudge dot */
.evc-chat-nudge {
  position: absolute;
  top: -3px; right: -3px;
  width: 15px; height: 15px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: none;
}
.evc-chat.has-nudge:not(.is-open) .evc-chat-nudge { display: block; }

/* ── Panel ───────────────────────────────────────────────────────── */
.evc-chat-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 374px;
  max-width: calc(100vw - 36px);
  height: 560px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  background: rgba(20, 23, 30, 0.86);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.evc-chat.is-open .evc-chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Header ──────────────────────────────────────────────────────── */
.evc-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(241, 37, 170, 0.12), transparent);
}
.evc-chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold);
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.evc-chat-head-txt { flex: 1; min-width: 0; }
.evc-chat-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.evc-chat-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.5);
  display: flex; align-items: center; gap: 6px;
  margin-top: 3px;
}
.evc-chat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #40d67f;
  box-shadow: 0 0 0 0 rgba(64, 214, 127, 0.6);
  animation: evcDotPulse 2s infinite;
}
@keyframes evcDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(64, 214, 127, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(64, 214, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(64, 214, 127, 0); }
}
.evc-chat-min {
  width: 30px; height: 30px;
  border: none; background: transparent;
  color: rgba(244, 241, 236, 0.6);
  cursor: pointer; border-radius: 8px;
  display: grid; place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.evc-chat-min:hover { background: rgba(255, 255, 255, 0.08); color: var(--paper); }

/* ── Messages ────────────────────────────────────────────────────── */
.evc-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.evc-chat-msgs::-webkit-scrollbar { width: 6px; }
.evc-chat-msgs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 6px; }

.evc-msg {
  max-width: 84%;
  padding: 11px 14px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
  animation: evcMsgIn 0.3s ease both;
}
@keyframes evcMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.evc-msg-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(244, 241, 236, 0.92);
  border-bottom-left-radius: 5px;
}
.evc-msg-user {
  align-self: flex-end;
  background: var(--gold);
  color: #fff;
  border-bottom-right-radius: 5px;
}

/* typing indicator */
.evc-typing { display: inline-flex; gap: 4px; padding: 3px 2px; }
.evc-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(244, 241, 236, 0.55);
  animation: evcTyping 1.2s infinite ease-in-out;
}
.evc-typing span:nth-child(2) { animation-delay: 0.15s; }
.evc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes evcTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* suggested-question chips */
.evc-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 18px 4px;
}
.evc-chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 236, 0.8);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.evc-chip:hover { background: rgba(241, 37, 170, 0.14); border-color: var(--gold); color: #fff; }

/* ── Input ───────────────────────────────────────────────────────── */
.evc-chat-input {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.evc-chat-input textarea {
  flex: 1;
  resize: none;
  max-height: 96px;
  min-height: 22px;
  border: none;
  background: transparent;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 4px;
  outline: none;
}
.evc-chat-input textarea::placeholder { color: rgba(244, 241, 236, 0.4); }
.evc-chat-send {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform 0.18s ease, background 0.2s ease, opacity 0.2s ease;
}
.evc-chat-send:hover { background: var(--gold-2); transform: scale(1.06); }
.evc-chat-send:disabled { opacity: 0.4; cursor: default; transform: none; }

.evc-chat-foot {
  text-align: center;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.3);
  padding: 0 0 10px;
}

@media (max-width: 480px) {
  .evc-chat { right: 16px; bottom: 16px; }
  .evc-chat-panel { bottom: 72px; height: calc(100vh - 104px); }
}

@media (prefers-reduced-motion: reduce) {
  .evc-chat-fab::after { animation: none; }
  .evc-chat-dot { animation: none; }
  .evc-msg { animation: none; }
  .evc-chat { transition: opacity 0.3s ease, visibility 0.3s; transform: none; }
  .evc-chat.is-ready { transform: none; }
}


/* ══════════════════════════════════════════════════════════════════════
   Mobile pass — legibility, tap targets, and the chat widget
   Appended last on purpose: several earlier rules in this file are declared
   after the main @media (max-width: 768px) block and would otherwise win.
   ══════════════════════════════════════════════════════════════════════ */

/* The floating chat sat on top of the open menu overlay, covering the
   "Book a call" button. It is redundant while the menu is open anyway. */
body.menu-open .evc-chat {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Esri's Dark Gray Canvas runs lighter than the CARTO dark basemap it
   replaced; knock it back so the map sits in the page's near-black palette.
   Only the tile pane is filtered, so the pin keeps its colour. */
.leaflet-tile-pane { filter: brightness(0.62) saturate(0.85); }

@media (max-width: 768px) {
  /* ── Legibility: nothing below 11px on a phone ── */
  .eyebrow,
  .footer-copy,
  .footer-bottom span,
  .globe-stat-label,
  .globe-badge,
  .ab-stat-label,
  .ab-breadcrumb a,
  .ab-bc-sep,
  .ab-bc-current,
  .shsc-label,
  .shsc-tags span,
  .spc-name,
  .spc-step-num,
  .field .lab,
  .footer-col h4,
  .evc-chat-sub,
  .evc-chat-foot { font-size: 11px; }
  .globe-canvas-wrap svg text { font-size: 11px; }

  /* ── Tap targets: 44px minimum ── */
  .footer-col ul li { font-size: 14px; }
  .footer-col ul a,
  .snav-mobile-links a,
  .contact-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  /* The breadcrumb is a short inline row, so pad it out rather than
     stretching it into a 44px-tall block. */
  .ab-breadcrumb a { display: inline-block; padding: 14px 6px 14px 0; }
  .evc-chat-min { width: 44px; height: 44px; }
  /* Leaflet's zoom buttons default to 30x30. */
  .leaflet-touch .leaflet-bar a,
  .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }

  /* ── Keep the chat bubble clear of the last row of content ── */
  .site-footer { padding-bottom: 96px; }
}
