/* ══════════════════════════════════════════════════════════════
   ARVEX — DESIGN SYSTEM v2
   Motion-first · Gold on Black · Editorial scale
   ══════════════════════════════════════════════════════════════ */

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

:root {
  /* Surfaces */
  --black:      #060606;
  --s1:         #0C0C0C;
  --s2:         #121212;
  --ink:        #FFFFFF;

  /* Gold */
  --gold:       #C9A84C;
  --gold-light: #E8D5A3;
  --gold-deep:  #8A6F28;

  /* Text */
  --text:       #D4C9B0;
  --text-dim:   rgba(212, 201, 176, 0.62);
  --muted:      #6B6355;
  --hairline:   rgba(201, 168, 76, 0.14);
  --hairline-2: rgba(255, 255, 255, 0.07);

  /* Type */
  --serif:      'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:       'DM Sans', system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --gut:        clamp(20px, 5vw, 90px);
  --sec:        clamp(78px, 10.5vh, 148px);

  /* Motion */
  --e-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --e-io:       cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-loading { overflow: hidden; height: 100vh; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: #000; }

/* ══════════════════════════════════════════════════════════════
   TYPE SCALE — editorial, oversized
   ══════════════════════════════════════════════════════════════ */

.t-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 10.5vw, 11.5rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.t-h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6.6vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.t-h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.t-h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.25;
  color: var(--gold-light);
}

.t-lead {
  font-size: clamp(1rem, 1.32vw, 1.28rem);
  line-height: 1.72;
  color: var(--text);
  font-weight: 300;
}

.t-body { font-size: clamp(0.95rem, 1.05vw, 1.05rem); line-height: 1.85; color: var(--text-dim); }

.t-label {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.t-num {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.italic { font-style: italic; color: var(--gold-light); }
.gold { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   MASK REVEAL PRIMITIVES
   ══════════════════════════════════════════════════════════════ */

.line-mask { display: block; overflow: hidden; }
.line-mask > * { display: block; }

/* JS-driven: elements hidden until animated in */
.js-on .anim-y   { opacity: 0; transform: translateY(28px); }
.js-on .anim-fade { opacity: 0; }
.js-on .anim-clip { clip-path: inset(0 0 100% 0); }
.js-on .split-line { overflow: hidden; }

/* ══════════════════════════════════════════════════════════════
   GRAIN + SCANLINE ATMOSPHERE
   ══════════════════════════════════════════════════════════════ */

.grain {
  position: fixed;
  inset: -150%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 700ms steps(2) infinite;
  will-change: transform;
}
@keyframes grainShift {
  0%   { transform: translate3d(0,0,0); }
  25%  { transform: translate3d(-2%,1%,0); }
  50%  { transform: translate3d(1%,-2%,0); }
  75%  { transform: translate3d(-1%,-1%,0); }
  100% { transform: translate3d(2%,1%,0); }
}

/* ══════════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ══════════════════════════════════════════════════════════════ */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform;
}
.cursor-dot  { width: 5px;  height: 5px;  background: var(--gold); margin: -2.5px 0 0 -2.5px; }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(201,168,76,0.5);
  margin: -19px 0 0 -19px;
  transition: width 400ms var(--e-out), height 400ms var(--e-out),
              margin 400ms var(--e-out), border-color 400ms var(--e-out),
              background 400ms var(--e-out);
}
.cursor-ring.is-hover {
  width: 74px; height: 74px; margin: -37px 0 0 -37px;
  border-color: rgba(201,168,76,0.85);
  background: rgba(201,168,76,0.06);
}
.has-cursor a, .has-cursor button, .has-cursor input,
.has-cursor textarea, .has-cursor label { cursor: none; }
.has-cursor, .has-cursor * { cursor: none; }

/* ══════════════════════════════════════════════════════════════
   PRELOADER
   ══════════════════════════════════════════════════════════════ */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 10002;   /* above the split panels, or its own curtain hides it */
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.pre-word {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 9vw, 7rem);
  letter-spacing: 0.16em;
  color: var(--ink);
  display: flex;
  overflow: hidden;
  padding-left: 0.16em;
}
.pre-word span { display: inline-block; transform: translateY(105%); }
.pre-bar {
  margin-top: 34px;
  width: min(300px, 52vw);
  height: 1px;
  background: rgba(201,168,76,0.18);
  position: relative;
  overflow: hidden;
}
.pre-bar i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
}
.pre-count {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}
.pre-panel {
  position: fixed;
  left: 0; width: 100%;
  height: 50.2%;
  background: var(--black);
  z-index: 10001;
  pointer-events: none;
}
.pre-panel.top { top: 0; }
.pre-panel.bot { bottom: 0; }

/* Page transition curtain */
#curtain {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: var(--black);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}
#curtain::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ══════════════════════════════════════════════════════════════
   SCROLL PROGRESS
   ══════════════════════════════════════════════════════════════ */

#progress {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 100%;
  z-index: 200;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
}

/* ══════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--gut);
  mix-blend-mode: normal;
  transition: padding 500ms var(--e-out), background 500ms var(--e-out),
              border-color 500ms var(--e-out), backdrop-filter 500ms var(--e-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 15px var(--gut);
  background: rgba(6,6,6,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--hairline);
}
.nav-logo img { height: 26px; width: auto; }
.nav-right { display: flex; align-items: center; gap: clamp(16px, 3vw, 46px); }

.nav-links { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav-links a {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  padding-bottom: 3px;
  transition: color 400ms var(--e-out);
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 520ms var(--e-out);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: var(--gold); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin: -8px;
}
.nav-burger span {
  display: block;
  width: 26px; height: 1px;
  background: var(--gold-light);
  transition: transform 400ms var(--e-out), opacity 300ms;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Fullscreen menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 290;
  background: var(--black);
  display: flex;
  align-items: center;
  padding: 0 var(--gut);
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
.nav-overlay.open { pointer-events: auto; }
.nav-overlay-list { list-style: none; }
.nav-overlay-list li { overflow: hidden; }
.nav-overlay-list a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  line-height: 1.12;
  color: var(--ink);
  transform: translateY(105%);
  transition: color 400ms var(--e-out);
}
.nav-overlay-list a:hover { color: var(--gold); font-style: italic; }
.nav-overlay-meta {
  position: absolute;
  bottom: clamp(28px, 6vh, 60px);
  left: var(--gut); right: var(--gut);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════ */

.wrap { padding-left: var(--gut); padding-right: var(--gut); }
.sec { position: relative; padding-top: var(--sec); padding-bottom: var(--sec); }
.inner { max-width: 1560px; margin: 0 auto; }

/* Asymmetric editorial grid */
.grid-ed {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 110px);
  align-items: start;
}
.grid-ed.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(34px, 5vw, 72px);
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}
.sec-head .t-num { margin-left: auto; }

/* Section bg image, lazy via data-bg */
.bg-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.bg-layer::before {
  content: '';
  position: absolute;
  inset: -14% 0;
  background-image: var(--bg, none);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1200ms var(--e-out);
  will-change: transform;
}
.bg-layer.loaded::before { opacity: 0.16; }
.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(6,6,6,0.4), rgba(6,6,6,0.94) 78%),
    linear-gradient(180deg, var(--black), transparent 22%, transparent 78%, var(--black));
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gut) clamp(60px, 12vh, 130px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-photo {
  position: absolute;
  inset: -12% 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0;
  transition: opacity 1600ms var(--e-out);
  will-change: transform;
}
.hero-photo.ready { opacity: 0.42; }
#shader {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 2200ms var(--e-out);
}
#shader.ready { opacity: 0.62; }
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,6,6,0.86) 0%, rgba(6,6,6,0.36) 32%, rgba(6,6,6,0.72) 72%, var(--black) 100%),
    radial-gradient(90% 60% at 22% 78%, rgba(6,6,6,0.68), transparent 70%);
}
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 1560px; margin: 0 auto; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 34px);
}
.hero-eyebrow i {
  display: block;
  width: clamp(40px, 7vw, 110px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left;
}
.hero-title { margin-bottom: clamp(22px, 3vw, 38px); }
.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 90px);
  align-items: end;
  border-top: 1px solid var(--hairline);
  padding-top: clamp(20px, 2.6vw, 34px);
}
.hero-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 2.5rem);
  color: var(--gold-light);
  line-height: 1.2;
}
.hero-desc { max-width: 56ch; }

.scroll-cue {
  position: absolute;
  right: var(--gut);
  bottom: clamp(60px, 12vh, 130px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue i {
  display: block;
  width: 46px; height: 1px;
  background: var(--gold-deep);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold-light);
  animation: cueSlide 2.4s var(--e-io) infinite;
}
@keyframes cueSlide {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ══════════════════════════════════════════════════════════════
   MARQUEE
   ══════════════════════════════════════════════════════════════ */

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(16px, 2vw, 26px) 0;
  background: var(--s1);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 3.4rem);
  letter-spacing: 0.02em;
  color: rgba(212,201,176,0.16);
  padding: 0 clamp(18px, 2.4vw, 44px);
  white-space: nowrap;
}
.marquee-track span em { color: var(--gold); font-style: normal; }

/* ══════════════════════════════════════════════════════════════
   QUOTE BLOCK
   ══════════════════════════════════════════════════════════════ */

.quote {
  position: relative;
  max-width: 58ch;
  margin-top: clamp(34px, 5vw, 68px);
  padding-left: clamp(20px, 3vw, 44px);
  border-left: 1px solid var(--gold-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.42;
  color: var(--gold-light);
}

/* ══════════════════════════════════════════════════════════════
   PILLARS — sticky index + stacked cards
   ══════════════════════════════════════════════════════════════ */

.pillars-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(30px, 5vw, 110px);
  align-items: start;
}
.pillars-sticky { position: sticky; top: 16vh; }
.pillars-index { list-style: none; margin-top: 30px; }
.pillars-index li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 500ms var(--e-out);
}
.pillars-index li i {
  display: block;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 600ms var(--e-out);
}
.pillars-index li.on { color: var(--gold-light); }
.pillars-index li.on i { width: 40px; }

.pillar {
  border-top: 1px solid var(--hairline-2);
  padding: clamp(28px, 4vw, 54px) 0;
  position: relative;
}
.pillar:last-child { border-bottom: 1px solid var(--hairline-2); }
.pillar-n {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,168,76,0.34);
  position: absolute;
  right: 0; top: clamp(20px, 3vw, 40px);
  pointer-events: none;
  transition: -webkit-text-stroke-color 600ms var(--e-out);
}
.pillar:hover .pillar-n { -webkit-text-stroke-color: rgba(232,213,163,0.8); }
.pillar h3 { margin-bottom: 14px; }
.pillar p { max-width: 62ch; }

/* ══════════════════════════════════════════════════════════════
   BUSINESS ITEMS
   ══════════════════════════════════════════════════════════════ */

.biz-list { border-top: 1px solid var(--hairline-2); }
.biz {
  position: relative;
  border-bottom: 1px solid var(--hairline-2);
  padding: clamp(24px, 3.2vw, 42px) 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(16px, 3vw, 54px);
  align-items: start;
  transition: background 600ms var(--e-out);
}
.biz::before {
  content: '';
  position: absolute;
  left: calc(var(--gut) * -1); right: calc(var(--gut) * -1);
  top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(201,168,76,0.05), transparent 70%);
  opacity: 0;
  transition: opacity 600ms var(--e-out);
  pointer-events: none;
}
.biz:hover::before { opacity: 1; }
.biz-n { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.22em; color: var(--gold-deep); padding-top: 8px; transition: color 500ms var(--e-out); }
.biz:hover .biz-n { color: var(--gold); }
.biz h3 { transition: transform 700ms var(--e-out), color 500ms var(--e-out); }
.biz:hover h3 { transform: translateX(10px); color: var(--ink); }

/* Axis header block */
.axis-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  margin-bottom: clamp(30px, 4vw, 60px);
}
.axis-count {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,168,76,0.4);
}

/* ══════════════════════════════════════════════════════════════
   PINNED STATEMENT
   ══════════════════════════════════════════════════════════════ */

.statement {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 var(--gut);
}
.statement-inner { max-width: 1560px; margin: 0 auto; width: 100%; }
.statement-big {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.6vw, 5.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.statement-big .w { display: inline-block; color: rgba(212,201,176,0.14); transition: none; }

.triad {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 30px);
  align-items: center;
  margin-top: clamp(28px, 4vw, 54px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 2.1rem);
  color: var(--gold-light);
}
.triad b { font-weight: 300; }
.triad i { display: block; width: 6px; height: 6px; border: 1px solid var(--gold-deep); transform: rotate(45deg); }

/* ══════════════════════════════════════════════════════════════
   BUTTONS / LINKS
   ══════════════════════════════════════════════════════════════ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 34px;
  border: 1px solid var(--gold-deep);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  transform: translateY(101%);
  transition: transform 620ms var(--e-out);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #060606; border-color: var(--gold); }
.btn span.ar { transition: transform 620ms var(--e-out); }
.btn:hover span.ar { transform: translateX(6px); }

.chapter {
  position: relative;
  padding: clamp(70px, 11vh, 150px) var(--gut);
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.chapter p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 2.1rem);
  color: var(--text-dim);
  max-width: 30ch;
  margin: 0 auto clamp(26px, 3.6vw, 44px);
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.form-field { position: relative; margin-bottom: 30px; }
.form-field label {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 11px;
  transition: color 400ms var(--e-out);
}
.form-field input, .form-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline-2);
  padding: 13px 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  resize: vertical;
  transition: border-color 500ms var(--e-out);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(107,99,85,0.75); }
.form-field::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 620ms var(--e-out);
}
.form-field:focus-within::after { transform: scaleX(1); }
.form-field:focus-within label { color: var(--gold); }

.consent-label { display: flex; gap: 12px; align-items: flex-start; font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; }
.consent-label input { margin-top: 5px; accent-color: var(--gold); flex-shrink: 0; }
.consent-note { font-size: 0.7rem; color: var(--muted); line-height: 1.65; margin-top: 12px; }
.form-note { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.form-feedback { margin-top: 18px; font-size: 0.85rem; min-height: 1.2em; }
.form-feedback.ok { color: var(--gold-light); }
.form-feedback.err { color: #C96A4C; }

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(46px, 6vw, 80px);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(24px, 3vw, 40px);
}
.contact-details h4 { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep); font-weight: 400; margin-bottom: 10px; }
.contact-details p { font-family: var(--serif); font-size: clamp(1rem, 1.4vw, 1.35rem); color: var(--text); line-height: 1.4; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.pre-footer {
  position: relative;
  min-height: 62svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
  overflow: hidden;
  padding: var(--sec) var(--gut);
}
.pre-footer img { height: clamp(38px, 6vw, 64px); width: auto; opacity: 0.9; }
.pre-footer-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 3rem);
  color: var(--gold-light);
}

.footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(30px, 4vw, 50px) var(--gut);
}
.footer-inner {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.22em; color: var(--gold); }
.footer-meta { font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.footer-meta a:hover { color: var(--gold); }
.footer-tagline { font-family: var(--serif); font-style: italic; color: var(--text-dim); font-size: 1rem; margin-bottom: 6px; text-align: right; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .grid-ed, .grid-ed.reverse, .pillars-layout, .contact-grid { grid-template-columns: 1fr; }
  .pillars-sticky { position: static; }
  .biz { grid-template-columns: 54px 1fr; }
  .biz p { grid-column: 2; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-foot { grid-template-columns: 1fr; gap: 22px; }
  .scroll-cue { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-tagline { text-align: left; }
  .cursor-dot, .cursor-ring { display: none; }
  .bg-layer.loaded::before { opacity: 0.2; }
}

@media (max-width: 560px) {
  .biz { grid-template-columns: 1fr; gap: 12px; }
  .biz p { grid-column: 1; }
  .pillar-n { position: static; margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .grain, #shader { display: none; }
  .js-on .anim-y, .js-on .anim-fade, .js-on .anim-clip { opacity: 1; transform: none; clip-path: none; }
}

/* ══════════════════════════════════════════════════════════════
   ═══ v2.1 — LIGHT EDITORIAL SYSTEM ═══
   Sections claires (bone) alternant avec ancres noires.
   Les composants héritent des tokens : redéfinir les tokens
   sur .lite suffit à inverser tout le contenu.
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Warm beige held 3-4° off the logo gold (H 39.2°) so the gold reads
     as metal instead of blending into the ground. Verified for contrast. */
  --bone:   #E8E1CE;
  --paper:  #EEE9DD;
  --sand:   #E1D8C1;
}

.lite {
  --black:      var(--bone);
  --s1:         var(--sand);
  --s2:         var(--paper);
  --ink:        #0F0E0C;
  --text:       #332F27;
  --text-dim:   rgba(51, 47, 39, 0.78);
  --muted:      #655C4A;
  --gold:       #6F5616;
  --gold-light: #634E13;
  --gold-deep:  #A98F4E;
  --hairline:   rgba(111, 86, 22, 0.30);
  --hairline-2: rgba(15, 14, 12, 0.14);
  background: var(--bone);
  color: var(--text);
}
.lite.paper { --black: var(--paper); background: var(--paper); }
.lite.sand  { --black: var(--sand);  background: var(--sand); }

.dark {
  background: #060606;
  color: var(--text);
}

/* Gold outlined numerals need explicit stroke per theme */
.lite .pillar-n, .lite .axis-count { -webkit-text-stroke-color: rgba(111,86,22,0.44); }
.lite .pillar:hover .pillar-n { -webkit-text-stroke-color: rgba(15,14,12,0.75); }
.lite .marquee-track span { color: rgba(51,47,39,0.18); }
.lite .marquee { background: var(--sand); }
.lite .quote { color: #45390F; }
.lite .statement-big .w { color: rgba(51,47,39,0.16); }

/* ══════════════════════════════════════════════════════════════
   FIGURE / IMAGE PRIMITIVES
   ══════════════════════════════════════════════════════════════ */

.ph {                       /* photo holder: clip reveal + counter-scale */
  position: relative;
  overflow: hidden;
  background: var(--s1);
  clip-path: inset(0 0 100% 0);
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
  will-change: transform;
}
.ph--tall  { aspect-ratio: 3 / 4; }
.ph--port  { aspect-ratio: 4 / 5; }
.ph--wide  { aspect-ratio: 16 / 10; }
.ph--pano  { aspect-ratio: 21 / 9; }
.ph--sq    { aspect-ratio: 1 / 1; }

.ph-cap {
  position: absolute;
  left: 0; bottom: 0;
  padding: 14px 18px;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #E8E1CE;
  background: linear-gradient(0deg, rgba(6,6,6,0.88) 0%, rgba(6,6,6,0.5) 55%, transparent 100%);
  width: 100%;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}

/* Frame line that traces around a figure */
.ph-frame { position: relative; }
.ph-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(232,223,206,0.36);
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms var(--e-out), inset 700ms var(--e-out);
}
.ph-frame:hover::after { opacity: 1; inset: 16px; }

/* ══════════════════════════════════════════════════════════════
   FULL-BLEED PINNED IMAGE (scales open on scroll)
   ══════════════════════════════════════════════════════════════ */

.bleed {
  position: relative;
  height: 118svh;
  overflow: hidden;
}
.bleed-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bleed-frame {
  position: relative;
  width: 46vw;
  height: 56svh;
  overflow: hidden;
  will-change: width, height;
}
.bleed-frame img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 118svh;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(0.92);
}
.bleed-cap {
  position: absolute;
  z-index: 3;
  left: var(--gut); right: var(--gut);
  bottom: clamp(30px, 6vh, 70px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  color: #E8E1CE;
  mix-blend-mode: difference;
}
.bleed-cap h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 4rem);
  line-height: 1.05;
}

/* ══════════════════════════════════════════════════════════════
   STICKY IMAGE SWAP (image pinned, swaps with the active item)
   ══════════════════════════════════════════════════════════════ */

.swap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: start;
}
.swap.right { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.swap-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--s1);
}
.swap-media figure {
  position: absolute;
  inset: 0;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  will-change: clip-path, opacity;
}
.swap-media figure.on { opacity: 1; clip-path: inset(0 0 0% 0); }
.swap-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
  transform: scale(1.06);
  will-change: transform;
}
.swap-media figure.on img { transform: scale(1); transition: transform 2.4s var(--e-out); }
.swap-index {
  position: absolute;
  right: 14px; bottom: 12px;
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  color: #E8E1CE;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  font-variant-numeric: tabular-nums;
}
.swap-item {
  padding: clamp(22px, 3.2vw, 44px) 0;
  border-bottom: 1px solid var(--hairline-2);
  opacity: 0.42;
  transition: opacity 700ms var(--e-out);
}
.swap-item:first-child { border-top: 1px solid var(--hairline-2); }
.swap-item.on { opacity: 1; }
.swap-item h3 { transition: color 600ms var(--e-out); }

/* ══════════════════════════════════════════════════════════════
   HORIZONTAL PINNED GALLERY
   ══════════════════════════════════════════════════════════════ */

.hgal { position: relative; overflow: hidden; }
.hgal-track {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 54px);
  height: 100svh;
  padding: 0 var(--gut);
  will-change: transform;
}
.hgal-slide { flex: 0 0 auto; width: clamp(240px, 30vw, 460px); }
.hgal-slide.tall  { width: clamp(200px, 24vw, 360px); }
.hgal-slide.wide  { width: clamp(300px, 42vw, 660px); }
.hgal-slide figure { position: relative; overflow: hidden; }
.hgal-slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
  transition: transform 900ms var(--e-out), filter 900ms var(--e-out);
  will-change: transform;
}
.hgal-slide.wide img { aspect-ratio: 16 / 10; }
.hgal-slide:hover img { transform: scale(1.05); filter: grayscale(0%) contrast(1.02); }
.hgal-slide figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.hgal-slide figcaption b { color: var(--gold); font-weight: 400; }
.hgal-lead {
  flex: 0 0 auto;
  width: clamp(260px, 34vw, 520px);
  padding-right: clamp(20px, 4vw, 70px);
}

/* ══════════════════════════════════════════════════════════════
   CARDS (image reveal on hover + 3D tilt)
   ══════════════════════════════════════════════════════════════ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 1.6vw, 26px);
}
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--hairline);
  padding: clamp(24px, 2.4vw, 40px);
  min-height: clamp(300px, 34vw, 430px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--s2);
  will-change: transform;
}
.card-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transform: scale(1.14);
  opacity: 0;
  transition: opacity 900ms var(--e-out), transform 1400ms var(--e-out);
}
.card::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(6,6,6,0.9) 8%, rgba(6,6,6,0.42) 58%, rgba(6,6,6,0.18));
  opacity: 0;
  transition: opacity 900ms var(--e-out);
}
.card:hover { border-color: var(--gold); }
.card:hover .card-img img { opacity: 1; transform: scale(1); }
.card:hover::after { opacity: 1; }
.card:hover h3, .card:hover p, .card:hover .card-n { color: #E8E1CE; }
.card:hover .card-n { -webkit-text-stroke-color: rgba(239,235,226,0.7); }
.card h3, .card p, .card .card-n { transition: color 700ms var(--e-out); position: relative; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.9rem; line-height: 1.72; color: var(--text-dim); }
.card-n {
  position: absolute;
  top: clamp(18px, 2vw, 30px);
  right: clamp(18px, 2vw, 30px);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(111,86,22,0.48);
  transition: -webkit-text-stroke-color 700ms var(--e-out);
}

/* ══════════════════════════════════════════════════════════════
   STAT BAND (counters on a rule)
   ══════════════════════════════════════════════════════════════ */

.statband {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.statband > div {
  padding: clamp(26px, 3.4vw, 52px) clamp(14px, 2vw, 30px);
  border-right: 1px solid var(--hairline-2);
}
.statband > div:last-child { border-right: 0; }
.statband b {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.statband span {
  display: block;
  margin-top: 12px;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════
   LIGHT HERO VARIANT + misc
   ══════════════════════════════════════════════════════════════ */

.hero-veil.softer {
  background:
    linear-gradient(180deg, rgba(6,6,6,0.72) 0%, rgba(6,6,6,0.18) 34%, rgba(6,6,6,0.52) 74%, rgba(6,6,6,0.96) 100%),
    radial-gradient(85% 58% at 20% 76%, rgba(6,6,6,0.55), transparent 72%);
}
.hero-photo.brighter.ready { opacity: 0.62; }

.lite .form-field input, .lite .form-field textarea { color: var(--ink); }
.lite .btn:hover { color: var(--paper); }
.lite .ph-cap { color: #E8E1CE; }

@media (max-width: 1024px) {
  .swap, .swap.right { grid-template-columns: 1fr; }
  .swap-media { position: relative; aspect-ratio: 16/10; }
  .bleed { height: 104svh; }
  .bleed-frame { width: 72vw; height: 46svh; }
}
@media (max-width: 860px) {
  .statband > div { border-right: 0; border-bottom: 1px solid var(--hairline-2); }
}

/* ── v2.1 corrections ── */

/* Oversized headings must fit inside a column */
.grid-ed .t-h1, .swap .t-h1 { font-size: clamp(2rem, 4.2vw, 4.4rem); }
.t-h1, .t-h2, .t-display { overflow-wrap: break-word; }

/* Solid nav bar once scrolled: the gold wordmark needs a dark ground */
.nav.scrolled {
  background: #070706;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(201,168,76,0.22);
}

/* Light sections: give the section head rule more presence */
.lite .sec-head { border-top-color: rgba(15,14,12,0.18); }

/* Balance the editorial grid: pull the shorter column down a touch */
.grid-ed > *:first-child { align-self: start; }

/* Gallery lead block vertical rhythm */
.hgal-lead { align-self: center; }

/* Cards: image side is dark, so lift the base tone slightly */

.lite .card p { color: rgba(51,47,39,0.82); }

/* ── Cards: fix the numeral position and give the photo a resting state ── */
.card h3, .card p { position: relative; }
.card .card-n { position: absolute; }

.card-img img { opacity: 0.20; }
.card:hover .card-img img { opacity: 1; }
.lite .card-img img { filter: grayscale(100%) contrast(1.08) brightness(1.04); }
.lite .card:hover .card-img img { filter: grayscale(100%) contrast(1.1) brightness(0.86); }

/* Keep the copy readable over the resting photo */
.lite .card { background: rgba(238,233,221,0.76); }

/* ══════════════════════════════════════════════════════════════
   ═══ v2.2 — MOBILE PASS ═══
   Ordre : tablette (1024) → mobile (860) → petit mobile (560)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  :root { --gut: clamp(22px, 4.4vw, 54px); --sec: clamp(76px, 11vh, 130px); }

  .grid-ed > div[style*="padding-top"] { padding-top: 0 !important; }
  .axis-head { align-items: flex-start; flex-direction: column; }
  .axis-count { align-self: flex-end; }

  /* the swap image gets its own copy inside each item (injected by JS) */
  .swap-media { display: none; }
  .swap-item { opacity: 1; }
  .swap-shot {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-bottom: 20px;
    background: var(--s1);
    clip-path: inset(0 0 100% 0);
  }
  .swap-shot img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.06);
  }
  .swap-shot span {
    position: absolute; right: 12px; bottom: 10px;
    font-size: 0.58rem; letter-spacing: 0.24em;
    color: #E8E1CE; text-shadow: 0 1px 8px rgba(0,0,0,0.75);
  }
}

@media (max-width: 860px) {

  /* ── Type: keep the editorial scale but stop the overflow ── */
  .t-display { font-size: clamp(2.55rem, 13vw, 4.4rem); line-height: 0.98; letter-spacing: -0.02em; }
  .t-h1      { font-size: clamp(1.95rem, 8.6vw, 3rem);  line-height: 1.06; }
  .grid-ed .t-h1, .swap .t-h1 { font-size: clamp(1.95rem, 8.6vw, 3rem); }
  .t-h2      { font-size: clamp(1.45rem, 6vw, 2.1rem); }
  .t-h3      { font-size: clamp(1.12rem, 4.6vw, 1.5rem); }
  .t-lead    { font-size: 1.02rem; line-height: 1.7; }
  .t-body    { font-size: 0.95rem; line-height: 1.78; }
  .t-label   { font-size: 0.6rem; letter-spacing: 0.26em; }
  .statement-big { font-size: clamp(1.6rem, 7.2vw, 2.6rem); line-height: 1.14; max-width: none; }
  .quote     { font-size: clamp(1.1rem, 4.8vw, 1.5rem); padding-left: 18px; }

  /* ── Nav: real tap targets, opaque from the start ── */
  .nav { padding: 14px var(--gut); background: rgba(6,6,6,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .nav.scrolled { padding: 12px var(--gut); }
  .nav-logo img { height: 22px; }
  .nav-burger { padding: 12px; margin: -12px; }
  .nav-burger span { width: 24px; }
  .nav-overlay { align-items: flex-start; padding-top: 24vh; }
  .nav-overlay-list a { font-size: clamp(2.3rem, 11vw, 3.4rem); line-height: 1.24; }
  .nav-overlay-meta { flex-direction: column; gap: 6px; font-size: 0.58rem; }

  /* ── Hero ── */
  .hero { min-height: 100svh; padding-bottom: clamp(42px, 9vh, 80px); align-items: flex-end; }
  .hero-eyebrow { gap: 12px; margin-bottom: 18px; }
  .hero-eyebrow i { width: 34px; }
  .hero-tag { font-size: clamp(1.2rem, 5.4vw, 1.7rem); }
  .hero-foot { gap: 18px; padding-top: 20px; }
  .hero-desc { max-width: none; }
  .hero-photo.brighter.ready { opacity: 0.5; }
  .hero-veil.softer {
    background:
      linear-gradient(180deg, rgba(6,6,6,0.9) 0%, rgba(6,6,6,0.34) 26%, rgba(6,6,6,0.74) 62%, var(--black) 100%);
  }

  /* ── Section rhythm ── */
  .sec-head { margin-bottom: 26px; padding-top: 16px; }
  .grid-ed, .grid-ed.reverse, .contact-grid { gap: 30px; }

  /* ── Photos: taller crops read better on a narrow screen ── */
  .ph--wide { aspect-ratio: 4 / 3; }
  .ph--pano { aspect-ratio: 3 / 2; }
  .ph-cap { font-size: 0.55rem; padding: 11px 14px; letter-spacing: 0.2em; }
  .ph-frame::after { display: none; }

  /* ── Full-bleed: the frame opens as you scroll, same as desktop ── */
  .bleed { height: 104svh; }
  .bleed-frame { width: 72vw; height: 46svh; }
  .bleed-frame img { width: 100vw; height: 104svh; }
  .bleed-cap { flex-direction: column; align-items: flex-start; gap: 10px; bottom: 26px; mix-blend-mode: normal; }
  .bleed-cap h3 { font-size: clamp(1.5rem, 7vw, 2.3rem); text-shadow: 0 2px 24px rgba(0,0,0,0.7); }

  /* ── Horizontal gallery keeps scrolling sideways ── */
  .hgal-track { gap: 18px; height: 100svh; }
  .hgal-lead { width: 78vw; padding-right: 0; }
  .hgal-slide { width: 70vw; }
  .hgal-slide.tall { width: 58vw; }
  .hgal-slide.wide { width: 84vw; }
  .hgal-slide img, .hgal-slide.wide img { aspect-ratio: 4 / 5; max-height: 62svh; object-fit: cover; }
  .hgal-slide figcaption { font-size: 0.56rem; margin-top: 11px; }

  /* ── Stat band: two per row, keep the rules ── */
  .statband { grid-template-columns: 1fr 1fr; }
  .statband > div { padding: 22px 16px; border-right: 1px solid var(--hairline-2); border-bottom: 1px solid var(--hairline-2); }
  .statband > div:nth-child(2n) { border-right: 0; }
  .statband b { font-size: clamp(2rem, 9vw, 2.8rem); }
  .statband span { font-size: 0.55rem; letter-spacing: 0.2em; margin-top: 8px; }

  /* ── Cards: photo always visible on touch, no hover to rely on ── */
  .cards { gap: 14px; }
  .card { min-height: 0; padding: 22px; }
  .card-img img { opacity: 0.34; }
  .card-n { font-size: 2.6rem; top: 16px; right: 18px; }
  .card p { font-size: 0.9rem; }

  /* ── Business items ── */
  .biz { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .biz-n { padding-top: 0; }
  .biz:hover h3 { transform: none; }

  /* ── Statement ── */
  .statement { min-height: 0; padding-top: var(--sec); padding-bottom: var(--sec); }
  .triad { gap: 10px; font-size: clamp(1.05rem, 4.6vw, 1.4rem); margin-top: 24px; }

  /* ── Chapter + buttons ── */
  .chapter { padding: clamp(56px, 9vh, 90px) var(--gut); }
  .chapter p { font-size: clamp(1.1rem, 4.8vw, 1.5rem); max-width: 24ch; }
  .btn { padding: 16px 26px; font-size: 0.66rem; letter-spacing: 0.2em; }

  /* ── Contact ── */
  .contact-details { grid-template-columns: 1fr; gap: 22px; margin-top: 34px; padding-top: 22px; }
  .form-field input, .form-field textarea { font-size: 16px; }  /* stops iOS zoom-on-focus */
  .consent-label { font-size: 0.8rem; }
  .consent-label input { width: 18px; height: 18px; }

  /* ── Pre-footer / pixel drift ── */
  .pre-footer { min-height: 52svh; gap: 18px; }
  .pre-footer-line { font-size: clamp(1.2rem, 5.6vw, 1.8rem); }
  .pixel-host { height: clamp(120px, 30vw, 180px); }

  /* ── Footer ── */
  .footer-inner { gap: 18px; }
  .footer-logo { font-size: 1.25rem; }
  .footer-meta { font-size: 0.58rem; gap: 8px; }

  /* ── Atmosphere: lighter on battery ── */
  .grain { inset: -60%; opacity: 0.04; animation-duration: 1000ms; }
}

@media (max-width: 560px) {
  .t-display { font-size: clamp(2.35rem, 13.4vw, 3.2rem); }
  .statband { grid-template-columns: 1fr; }
  .statband > div { border-right: 0; }
  .card-n { position: static; margin-bottom: 6px; font-size: 2.2rem; }

  .ph--tall, .ph--port { aspect-ratio: 3 / 4; }
}

/* Touch devices: nothing should depend on hover */
@media (hover: none) {
  .card-img img { opacity: 0.34; }
  .hgal-slide img { filter: grayscale(100%) contrast(1.04); }
  .cursor-dot, .cursor-ring { display: none !important; }
  .has-cursor, .has-cursor * { cursor: auto; }
}

/* ── v2.2 mobile corrections ── */
@media (max-width: 860px) {
  /* inline grid-template-columns on section grids must collapse */
  .grid-ed[style], .grid-ed.reverse[style] { grid-template-columns: 1fr !important; }
  .grid-ed[style] > div[style*="padding-top"] { padding-top: 0 !important; }

  /* legible caption over any full-bleed image */
  .bleed-cap {
    left: 0; right: 0; bottom: 0;
    padding: 60px var(--gut) 24px;
    background: linear-gradient(0deg, rgba(6,6,6,0.92) 0%, rgba(6,6,6,0.55) 55%, transparent 100%);
  }

  /* empty spacer columns in the axis intro add dead height */
  .swap + *, .axis-head + .grid-ed > div:empty { display: none; }
}

/* ── Cards on touch: photo band on top, copy on a clean ground ── */
@media (max-width: 860px) {
  .card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    min-height: 0;
    background: var(--paper);
    border-color: var(--hairline-2);
  }
  .card::after { display: none; }
  .card-img {
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    aspect-ratio: 16 / 10;
    flex: 0 0 auto;
  }
  .card-img img { opacity: 1; transform: none; filter: grayscale(100%) contrast(1.06); }
  .card .card-n {
    position: static;
    align-self: flex-end;
    margin: 14px 20px 0;
    font-size: 1.9rem;
    -webkit-text-stroke: 1px rgba(111,86,22,0.48);
  }
  .card h3 { padding: 0 20px; margin: 0 0 10px; }
  .card p  { padding: 0 20px 22px; color: var(--text-dim); }
}

/* ── final mobile detail pass ── */
@media (max-width: 860px) {
  /* the item already carries its number: drop the duplicate on the shot */
  .swap-shot span { display: none; }

  /* footer meta reads as a stack, not a wrapped run of separators */
  .footer-meta { flex-direction: column; gap: 6px; }
  .footer-meta > span:nth-child(2),
  .footer-meta > span:nth-child(4),
  .footer-meta > span:nth-child(6) { display: none; }

  /* nav links get a real tap target inside the overlay */
  .nav-overlay-list li a { padding: 4px 0; }
}
@media (max-width: 560px) {
  .card .card-n { margin: 12px 18px 0; font-size: 1.75rem; }
}

/* ── Gallery: one image height on phones so the captions line up ── */
@media (max-width: 860px) {
  .hgal-slide img,
  .hgal-slide.tall img,
  .hgal-slide.wide img {
    height: 74svh;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
  }
  .hgal-track { align-items: center; }
}

/* ══════════════════════════════════════════════════════════════
   ═══ v2.3 — LAYERING FOR THE PINNED HERO ═══
   The hero is pinned; everything after it must scroll OVER it.
   ══════════════════════════════════════════════════════════════ */

.hero { z-index: 0; }

.marquee,
.sec,
.bleed,
.hgal,
.statement,
.chapter,
.pre-footer,
.footer,
#smooth-content > main > .wrap {
  position: relative;
  z-index: 2;
}

/* the first band after the hero carries the shadow of the overlap */
.marquee.over { box-shadow: 0 -30px 60px rgba(6,6,6,0.5); }

/* empty grid column used to indent the axis intro */
.axis-spacer { min-height: 0; }
@media (max-width: 1024px) { .axis-spacer { display: none; } }

/* Buttons: the arrow travels and a gold line sweeps under the label */
.btn .ar { display: inline-block; }
.btn::after {
  content: '';
  position: absolute;
  left: 34px; right: 34px; bottom: 13px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 620ms var(--e-out);
  opacity: 0.5;
}
.btn:hover::after { transform: scaleX(1); transform-origin: left; }

/* Active capability gets a gold rule that draws in */
.swap-item { position: relative; }
.swap-item::before {
  content: '';
  position: absolute;
  left: 0; top: -1px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 900ms var(--e-out);
}
.swap-item.on::before { width: 100%; }

/* Gallery slides get a gold sweep on hover */
.hgal-slide figure::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 900ms var(--e-out);
}
.hgal-slide:hover figure::after { transform: scaleX(1); }

/* ══════════════════════════════════════════════════════════════
   ═══ v2.4 ═══
   ══════════════════════════════════════════════════════════════ */

/* ── BUG FIX: with reduced motion the photos stayed clipped shut ── */
@media (prefers-reduced-motion: reduce) {
  .ph, .fig { clip-path: none !important; }
  .ph img, .fig img { transform: none !important; }
  .swap-media figure { opacity: 1 !important; clip-path: none !important; }
  .swap-media figure ~ figure { opacity: 0 !important; }
  .swap-media figure.on { opacity: 1 !important; }
  .bleed-frame { width: 100vw !important; height: 96svh !important; }
  .card-img img { opacity: 0.34 !important; }
}

/* ══════════════════════════════════════════════════════════════
   AXIS INDEX — fills the intro column, doubles as a contents list
   ══════════════════════════════════════════════════════════════ */

.axis-aside { position: relative; padding-right: clamp(16px, 3vw, 50px); }

.axis-mark {
  font-family: var(--serif);
  font-size: clamp(5rem, 11vw, 10rem);
  line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 1px rgba(111, 86, 22, 0.34);
  letter-spacing: -0.03em;
  margin-bottom: clamp(16px, 2vw, 28px);
  user-select: none;
}

.axis-index { list-style: none; border-top: 1px solid var(--hairline-2); }
.axis-index li { border-bottom: 1px solid var(--hairline-2); }
.axis-index a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 500ms var(--e-out), padding-left 500ms var(--e-out);
}
.axis-index a b {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--gold-deep);
  font-size: 0.66rem;
  transition: color 500ms var(--e-out);
}
.axis-index a:hover,
.axis-index li.on a { color: var(--ink); padding-left: 10px; }
.axis-index a:hover b,
.axis-index li.on a b { color: var(--gold); }

@media (max-width: 1024px) {
  .axis-aside { padding-right: 0; margin-bottom: clamp(26px, 4vw, 40px); }
  .axis-mark { font-size: clamp(4rem, 20vw, 6rem); }
  .axis-index a { font-size: 0.68rem; padding: 12px 0; }
}

/* ══════════════════════════════════════════════════════════════
   CARDS — the copy must survive any photo underneath
   ══════════════════════════════════════════════════════════════ */

.card::after {
  background: linear-gradient(0deg,
    rgba(6,6,6,0.96) 0%,
    rgba(6,6,6,0.88) 34%,
    rgba(6,6,6,0.62) 68%,
    rgba(6,6,6,0.34) 100%);
}
.card:hover h3 { color: #FFFFFF; text-shadow: 0 1px 18px rgba(0,0,0,0.8); }
.card:hover p  { color: rgba(255,255,255,0.9); text-shadow: 0 1px 14px rgba(0,0,0,0.85); }
.card:hover .card-n { color: transparent; -webkit-text-stroke-color: rgba(232,225,206,0.85); }

/* ══════════════════════════════════════════════════════════════
   3D PERSPECTIVE CAROUSEL — the gallery slides turn as they pass
   ══════════════════════════════════════════════════════════════ */

.hgal { perspective: 1800px; perspective-origin: 50% 50%; }
.hgal-track { transform-style: preserve-3d; }
.hgal-slide { transform-style: preserve-3d; will-change: transform; backface-visibility: hidden; }
.hgal-slide figure { position: relative; overflow: hidden; }
.hgal-slide figcaption { display: none; }

/* the reflection under each slide sells the 3D */
.hgal-slide figure::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  background: linear-gradient(0deg, rgba(6,6,6,0.55), transparent);
  pointer-events: none;
  z-index: 2;
}

/* ══════════════════════════════════════════════════════════════
   WEBGL HOVER DISTORTION
   ══════════════════════════════════════════════════════════════ */

.distort-host { position: relative; }
.distort-host > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 260ms linear;
  pointer-events: none;
  z-index: 1;
}
.distort-host.live > canvas { opacity: 1; }
.distort-host.live > img { opacity: 0; }

/* ══════════════════════════════════════════════════════════════
   PAGE TRANSITION — the curtain carries the next page's image
   ══════════════════════════════════════════════════════════════ */

#curtain { overflow: hidden; }
#curtain .curtain-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.1) brightness(0.34);
  opacity: 0;
  transform: scale(1.16);
}
#curtain::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 46% at 50% 50%, rgba(6,6,6,0.55), rgba(6,6,6,0.05) 70%);
  z-index: 1;
  opacity: 0;
  transition: opacity 500ms linear;
}
#curtain.lit::before { opacity: 1; }

#curtain .curtain-word {
  z-index: 2;
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 5.5rem);
  letter-spacing: 0.16em;
  color: #E8E1CE;
  opacity: 0;
  padding-left: 0.16em;
}

/* the intro paragraph centres against the taller capability index */
.axis-intro { align-items: center; }
@media (max-width: 1024px) { .axis-intro { align-items: start; } }

/* ══════════════════════════════════════════════════════════════
   ═══ v2.5 — MENU DRIVEN BY CSS ONLY ═══
   No animation engine involved: the menu must open, always.
   ══════════════════════════════════════════════════════════════ */

html.menu-open, html.menu-open body { overflow: hidden; }

.nav-overlay {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 820ms var(--e-io);
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 4vh, 44px);
}
.nav-overlay.open { clip-path: inset(0 0 0% 0); }

/* a photo breathing behind the menu */
.nav-overlay-shot {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.1) brightness(0.3);
  opacity: 0;
  transform: scale(1.14);
  transition: opacity 1400ms var(--e-out), transform 2200ms var(--e-out);
}
.nav-overlay.open .nav-overlay-shot { opacity: 1; transform: scale(1); }
.nav-overlay-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 55% at 50% 45%, rgba(6,6,6,0.55), rgba(6,6,6,0.9) 78%);
}

.nav-overlay-list { position: relative; z-index: 2; width: 100%; padding: 0 var(--gut); }
.nav-overlay-list li { overflow: hidden; }
.nav-overlay-list a {
  transform: translateY(112%) rotate(2.5deg);
  transform-origin: 0% 100%;
  transition: transform 1000ms var(--e-out), color 400ms var(--e-out);
  transition-delay: 0ms;
}
.nav-overlay.open .nav-overlay-list a { transform: translateY(0) rotate(0deg); }
.nav-overlay.open .nav-overlay-list li:nth-child(1) a { transition-delay: 180ms; }
.nav-overlay.open .nav-overlay-list li:nth-child(2) a { transition-delay: 265ms; }
.nav-overlay.open .nav-overlay-list li:nth-child(3) a { transition-delay: 350ms; }

/* a gold index number beside each entry */
.nav-overlay-list a::before {
  content: attr(data-n);
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--gold-deep);
  vertical-align: super;
  margin-right: 18px;
  opacity: 0.75;
}

.nav-overlay-meta {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms var(--e-out) 460ms, transform 800ms var(--e-out) 460ms;
}
.nav-overlay.open .nav-overlay-meta { opacity: 1; transform: translateY(0); }

/* the burger becomes a cross */
.nav-burger { position: relative; z-index: 320; }

@media (max-width: 860px) {
  .nav-overlay { padding-top: 0; }
  .nav-overlay-list a { font-size: clamp(2.4rem, 12vw, 3.6rem); line-height: 1.3; }
  .nav-overlay-list a::before { display: block; margin: 0 0 2px; font-size: 0.55rem; }
  .nav-overlay-meta { position: static; padding-top: 0; border-top: 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-overlay, .nav-overlay-list a, .nav-overlay-meta, .nav-overlay-shot { transition: none !important; }
}

/* ── the horizontal run ends on a statement ── */
.hgal-end {
  flex: 0 0 auto;
  width: clamp(280px, 38vw, 520px);
  padding-left: clamp(10px, 2vw, 34px);
  align-self: center;
}
@media (max-width: 860px) { .hgal-end { width: 80vw; } }

/* ── process steps: fills the short column, uses their own words ── */
.steps {
  list-style: none;
  counter-reset: none;
  margin-top: clamp(30px, 4vw, 52px);
  border-top: 1px solid var(--hairline);
}
.steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline-2);
}
.steps b {
  grid-row: 1 / 3;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.5rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(111,86,22,0.5);
  line-height: 1;
}
.steps span {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.steps p { font-size: 0.92rem; line-height: 1.7; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════════════
   ═══ v2.5 — TOUCH PARITY ═══
   Everything the desktop gets on hover, the phone gets on scroll.
   ══════════════════════════════════════════════════════════════ */

/* the card opens itself when it crosses the middle of a phone screen */
.card.lit { border-color: var(--gold); }
.card.lit .card-img img { opacity: 1; transform: scale(1); }
.card.lit::after { opacity: 1; }
.card.lit h3 { color: #FFFFFF; text-shadow: 0 1px 18px rgba(0,0,0,0.8); }
.card.lit p  { color: rgba(255,255,255,0.9); text-shadow: 0 1px 14px rgba(0,0,0,0.85); }
.card.lit .card-n { color: transparent; -webkit-text-stroke-color: rgba(232,225,206,0.85); }

@media (max-width: 860px) {
  /* the mobile card is a photo band over copy: light it the same way */
  .card { transition: border-color 700ms var(--e-out), background 700ms var(--e-out); }
  .card::after { display: none; }
  .card.lit { background: #0B0A09; border-color: var(--gold); }
  .card.lit .card-img img { opacity: 1; filter: grayscale(100%) contrast(1.12) brightness(0.92); }
  .card.lit h3 { color: var(--gold-deep); text-shadow: none; }
  .card.lit p  { color: rgba(232,225,206,0.82); text-shadow: none; }
  .card.lit .card-n { -webkit-text-stroke-color: rgba(232,225,206,0.7); }
  .card-img img { transition: opacity 900ms var(--e-out), filter 900ms var(--e-out); }
}

/* every tap answers back */
.tap-ring {
  position: fixed;
  top: 0; left: 0;
  width: 88px; height: 88px;
  margin: -44px 0 0 -44px;
  border: 1px solid rgba(201,168,76,0.7);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 9996;
}

/* the injected mobile swap photo gets the same frame treatment */
.swap-shot { position: relative; }
.swap-shot::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232,225,206,0.16);
  pointer-events: none;
}
.swap-shot img { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .tap-ring { display: none; }
}

/* ── mobile rhythm: less air between the bands, more inside them ── */
@media (max-width: 860px) {
  :root { --sec: clamp(62px, 8vh, 104px); }
  .marquee { padding: 14px 0; }
  .sec-head { margin-bottom: 22px; padding-top: 14px; }
  .statband { margin: 0; }
  .chapter { padding: clamp(46px, 8vh, 74px) var(--gut); }
  .hgal-track { gap: 16px; }
}

/* ── final mobile polish ── */
@media (max-width: 860px) {
  /* the contact hero was leaving a dead band under its heading */
  .hero#contact { min-height: 74svh !important; align-items: flex-end !important; padding-top: 0 !important; }
  .hero#contact .hero-title { max-width: none; }

  /* the gallery intro should hold the screen, not float in it */
  .hgal-lead {
    width: 82vw;
    min-height: 54svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hgal-lead .t-h2 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .hgal-lead p { max-width: none; }
  .hgal-end { min-height: 54svh; display: flex; flex-direction: column; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════
   ═══ v2.6 — COLUMN BALANCE ═══
   Two editorial grids were pooling their emptiness at the bottom
   of the shorter column. One gets substance, the others get centred.
   ══════════════════════════════════════════════════════════════ */

/* beats .grid-ed > *:first-child { align-self: start } on specificity */
.grid-ed > div.col-center { align-self: center; }

/* ── The ledger: a compact record that closes the Identity column ── */
.ledger {
  margin-top: clamp(30px, 4vw, 54px);
  border-top: 1px solid var(--hairline);
}
.ledger > div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 6px 28px;
  align-items: baseline;
  padding: 17px 2px;
  border-bottom: 1px solid var(--hairline-2);
  position: relative;
}
.ledger > div::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ledger > div.in::before { transform: scaleX(1); }
.ledger dt {
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.ledger dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(0.98rem, 1.25vw, 1.2rem);
  line-height: 1.5;
  color: var(--text);
}
.ledger dd em {
  font-style: normal;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  display: block;
  margin-top: 5px;
}

@media (max-width: 860px) {
  .ledger { margin-top: 30px; }
  .ledger > div { grid-template-columns: 1fr; gap: 8px; padding: 15px 0; }
  .ledger dd { font-size: 1.02rem; }
}

/* ══════════════════════════════════════════════════════════════
   ═══ v2.6 — MOBILE GALLERY PRESENCE ═══
   The slides were floating in the middle third of the screen with
   black above and below. On a phone the photograph is the section.
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .hgal-slide      { width: 76vw; }
  .hgal-slide.tall { width: 64vw; }
  .hgal-slide.wide { width: 88vw; }
  .hgal-track      { gap: 20px; padding: 0 calc(var(--gut) * 0.7); }

  /* the gold sweep that desktop gets on hover, the phone gets as the
     slide reaches the middle of the screen */
  .hgal-slide.seen figure::after { transform: scaleX(1); }
}

/* ── the pixel word needs room to be a word on a 390px screen ── */
@media (max-width: 860px) {
  .pixel-host { height: clamp(150px, 44vw, 210px); }
  .pre-footer { min-height: 46svh; }
}

/* ── the menu should own the whole screen on a phone ── */
@media (max-width: 860px) {
  .nav-overlay { justify-content: flex-end; padding-bottom: calc(28px + env(safe-area-inset-bottom)); gap: 0; }
  /* the links sat too low, with dead screen above them: hold them a little
     above centre, where the eye lands, and keep the meta pinned at the foot */
  .nav-overlay-list { margin-top: 0; margin-bottom: auto; padding-top: clamp(72px, 19vh, 170px); }
  .nav-overlay-list a { font-size: clamp(2.6rem, 13.5vw, 4rem); line-height: 1.22; }
  .nav-overlay-meta {
    width: 100%;
    padding: 16px var(--gut) 0;
    border-top: 1px solid rgba(201,168,76,0.22) !important;
    text-align: left;
    flex-direction: row;
    justify-content: space-between;
    display: flex;
    gap: 12px;
  }
}

/* ── the bleed frame was opening from too small: half a phone screen
   sat black before the photograph arrived ── */
@media (max-width: 860px) {
  .bleed { height: 96svh; }
  .bleed-frame { width: 80vw; height: 62svh; }
  .bleed-frame img { height: 108svh; }
}

/* ══════════════════════════════════════════════════════════════
   ═══ v2.7 — CAPABILITIES ON A PHONE ═══
   The photographs were 216px thumbnails that barely moved. Full
   width, portrait, and driven by initSwapMotion.
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .swap-shot {
    aspect-ratio: 4 / 5;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: clamp(22px, 4vw, 34px);
    clip-path: inset(0 0 100% 0);
    will-change: transform, clip-path;
    backface-visibility: hidden;
  }
  .swap-shot img {
    transform-origin: 50% 50%;
    will-change: transform;
  }
  /* the frame line has to follow the photo in, not sit over the gutter */
  .swap-shot::after { border-color: rgba(232,225,206,0.14); }

  /* the running index belongs on the photograph now that it is full width */
  .swap-shot span {
    display: block;
    left: var(--gut);
    right: auto;
    bottom: 16px;
    overflow: hidden;
  }

  /* the capability itself gets room to read as its own screen */
  .swap-item { padding: 0 0 clamp(34px, 7vw, 58px); border-bottom: 0; }
  .swap-item .t-num,
  .swap-item h3,
  .swap-item p { padding-left: 0; padding-right: 0; }
}

@media (max-width: 860px) {
  /* undo the earlier rule that hid the index on the injected shot */
  .swap-shot span { display: block; }
  .swap-shot { aspect-ratio: 4 / 5; }
}

/* a tablet is wide enough that a 4/5 frame would run past the screen */
@media (min-width: 861px) and (max-width: 1024px) {
  .swap-shot { aspect-ratio: 16 / 11; }
}

/* ══════════════════════════════════════════════════════════════
   ═══ FAILSAFE ═══
   If the motion engine never runs — script blocked, network hiccup,
   an old browser that chokes on it — the visitor still has to get a
   readable page instead of a locked preloader on a black screen.
   Applied by html.no-motion (a head timer) and by <noscript>.
   ══════════════════════════════════════════════════════════════ */

.no-motion #preloader,
.no-motion .pre-panel,
.no-motion #curtain,
.no-motion #progress { display: none !important; }

.no-motion body.is-loading { overflow: auto !important; height: auto !important; }

.no-motion #smooth-wrapper,
.no-motion #smooth-content {
  position: static !important;
  transform: none !important;
  overflow: visible !important;
  height: auto !important;
}

.no-motion .ph,
.no-motion .fig,
.no-motion .swap-shot,
.no-motion .anim-clip,
.no-motion .nav-overlay { clip-path: none !important; }

.no-motion .anim-y,
.no-motion .anim-fade,
.no-motion .anim-clip,
.no-motion .hero-title,
.no-motion .hero-content,
.no-motion .swap-item,
.no-motion .card,
.no-motion .ph,
.no-motion .ph img,
.no-motion .swap-shot,
.no-motion .swap-shot img {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.no-motion .swap-media figure { opacity: 1 !important; }
.no-motion .swap-media figure ~ figure { display: none; }
.no-motion .hgal-track { flex-wrap: wrap; height: auto; gap: 24px; }
.no-motion .card-img img { opacity: 0.34 !important; }
.no-motion .nav-overlay { display: none; }
