/* ===========================================================================
   ANÚR - styles
   Dark, minimalist, quietly art-deco. Restraint over decoration.
   =========================================================================== */

/* Self-hosted Colabero (title & highlight face). It ships as a single
   upright file, so it is registered for both styles and the full weight range
   to stop the browser synthesising a faux italic or bold. Files live in /fonts. */
@font-face {
  font-family: 'Colabero';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Colabero.ttf') format('truetype');
}
@font-face {
  font-family: 'Colabero';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Colabero.ttf') format('truetype');
}

:root {
  /* Palette */
  --bg: #0A0A0B;          /* near-black, faintly warm */
  --black: #050506;       /* deepest black: vignettes, footer */
  --oxblood: #3D0103;     /* primary red accent */
  --crimson: #A31621;     /* highlight - hairlines / hover only, sparingly */
  --text: #EDEAE4;        /* warm off-white */
  --muted: #8A8786;       /* muted text */

  /* Hairlines */
  --line: rgba(237, 234, 228, 0.08);
  --line-oxblood: rgba(110, 20, 35, 0.45);

  /* Type */
  --font-title: 'Colabero', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);  /* gentle, soft */
  --slow: 1100ms;
  --med: 650ms;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-gap: clamp(6rem, 14vh, 12rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* no font inflation in iOS landscape */
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

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

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

/* Visible focus for keyboard users */
:focus-visible {
  outline: 1px solid var(--crimson);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -4rem;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--text);
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 100;
  transition: top var(--med) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------------------
   Glassmorphism utility - frosted dark glass. Applied with restraint.
   --------------------------------------------------------------------------- */
.glass {
  background: rgba(237, 234, 228, 0.04);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
  border: 1px solid rgba(237, 234, 228, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(237, 234, 228, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------------------------------------------------------------------------
   Glass navigation
   --------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 0.9rem clamp(1.25rem, 5vw, 3rem);
  /* clear the notch / rounded corners on phones (viewport-fit=cover) */
  padding-top: calc(0.9rem + env(safe-area-inset-top, 0px));
  padding-left: calc(clamp(1.25rem, 5vw, 3rem) + env(safe-area-inset-left, 0px));
  padding-right: calc(clamp(1.25rem, 5vw, 3rem) + env(safe-area-inset-right, 0px));
  /* start transparent over the hero; glass fades in on scroll (.scrolled) */
  background: transparent;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background var(--med) var(--ease),
    backdrop-filter var(--med) var(--ease),
    border-color var(--med) var(--ease),
    transform 900ms var(--ease);
}
.site-nav.nav-hidden { transform: translateY(-100%); }
.site-nav.nav-hidden:focus-within { transform: none; }
.site-nav.scrolled {
  background: rgba(10, 10, 11, 0.45);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  border-bottom: 1px solid var(--line);
}
.site-nav__brand {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text);
  padding-left: 0.34em;
}
.site-nav__links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  list-style: none;
  margin: 0 auto 0 clamp(1rem, 4vw, 3rem);
  padding: 0;
}
.site-nav__links a {
  position: relative;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--med) var(--ease);
}
.site-nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 1px;
  background: var(--crimson);
  transition: width var(--med) var(--ease);
}
.site-nav__links a:hover { color: var(--text); }
.site-nav__links a:hover::after { width: 100%; }

.site-nav__cta {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--line-oxblood);
  transition: border-color var(--med) var(--ease), background var(--med) var(--ease);
}
.site-nav__cta:hover {
  border-color: var(--crimson);
  background: rgba(163, 22, 33, 0.10);
}

@media (max-width: 760px) {
  .site-nav__links { display: none; }
  .site-nav__brand { margin-right: auto; }
  /* 44px touch target */
  .site-nav__cta { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; }
}

/* Small uppercase label, used for section markers and form labels */
.section-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 0 0 clamp(3rem, 7vh, 5rem);
}
/* small crimson tick above the label */
.section-label::before {
  content: '';
  display: block;
  width: 1px;
  height: 2.25rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(to bottom, transparent, var(--crimson));
  transform: scaleY(var(--tick, 1));
  transform-origin: top;
}

/* Fine double-rule divider between sections */
.rule {
  height: 1px;
  background: var(--line);
  width: min(90%, 60rem);
  margin: 0 auto clamp(3rem, 8vh, 6rem);
}
.rule--double {
  position: relative;
  background: transparent;
  height: 5px;
}
.rule--double::before,
.rule--double::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.rule--double::before { top: 0; }
.rule--double::after { bottom: 0; background: var(--line-oxblood); }

/* ---------------------------------------------------------------------------
   Scroll reveal - slow opacity/transform only. Disabled under reduced-motion.
   --------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
/* When GSAP drives motion, CSS transitions would fight its per-frame updates. */
.gsap-on .reveal { transition: none; will-change: auto; }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Hairline reading-progress bar (scaled by GSAP; invisible without it). */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 95;
  height: 1px;
  background: linear-gradient(to right, var(--oxblood), var(--crimson));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Chapter divider - hairlines drawn out from a turning crimson diamond, with
   the chapter number left and its name right. Static without GSAP; script.js
   draws the lines (--draw), sweeps a glint (--glint) and turns the diamond.
   --------------------------------------------------------------------------- */
.divider {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.75rem);
  max-width: 92rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5rem) var(--gutter);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(237, 234, 228, 0.72);
}
/* Low oxblood glow on the horizon behind the diamond */
.divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(46rem, 80%);
  height: 9rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(110, 20, 35, 0.22), transparent);
  pointer-events: none;
}
/* Equal side columns keep the diamond on the page centre */
.divider__num,
.divider__name {
  flex: 0 0 clamp(5rem, 14vw, 11rem);
  white-space: nowrap;
}
.divider__num {
  color: var(--crimson);
  font-variant-numeric: tabular-nums;
}
.divider__num span { color: var(--muted); }
.divider__name { text-align: right; }

.divider__line {
  position: relative;
  flex: 1;
  height: 1px;
  overflow: hidden;
  transform: scaleX(var(--draw, 1));
}
.divider__line--l {
  background: linear-gradient(to right, transparent, rgba(237, 234, 228, 0.18) 30%, rgba(163, 22, 33, 0.75));
  transform-origin: right;
}
.divider__line--r {
  background: linear-gradient(to left, transparent, rgba(237, 234, 228, 0.18) 30%, rgba(163, 22, 33, 0.75));
  transform-origin: left;
}
/* Travelling glint */
.divider__line::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  background: linear-gradient(to right, transparent, var(--crimson), transparent);
  opacity: 0.9;
}
.divider__line--r::after { left: 0;  transform: translateX(calc(var(--glint, -100) * 1%)); }
.divider__line--l::after { right: 0; transform: translateX(calc(var(--glint, -100) * -1%)); }

.divider__mark {
  flex: none;
  width: 9px;
  height: 9px;
  border: 1px solid var(--crimson);
  background: rgba(163, 22, 33, 0.25);
  transform: rotate(calc(45deg + var(--turn, 0) * 1deg)) scale(var(--pop, 1));
  box-shadow: 0 0 12px rgba(163, 22, 33, 0.55);
}

@media (max-width: 600px) {
  .divider__name { display: none; } /* number + lines carry it on phones */
  .divider__num { flex-basis: auto; }
}

/* ===========================================================================
   SECTION 1 - HERO
   =========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* stable: dvh would reflow as the mobile toolbar collapses */
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--black);
}

.hero__bg,
.hero__canvas,
.hero__overlay,
.hero__grain,
.hero__vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Event backdrop photograph. Replace the URL with a real event photo
   (e.g. url('img/hero.jpg')). Darkened + lightly desaturated so it sits
   behind the brand and lets the velvet sheen read over it. */
.hero__bg {
  z-index: 0;
  background-image: url('img/bgg.jpeg');
  /* background-image: url("https://images.unsplash.com/photo-1536392706976-e486e2ba97af?q=80&w=2970&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"); */
  background-size: cover;
  background-position: center;
  filter: grayscale(0.45) brightness(0.62) contrast(1.08);
  transform: scale(1.08); /* headroom for parallax */
  will-change: transform;
}

/* Velvet shader laid ON TOP of the photo as a translucent overlay, so the
   folds + red read clearly while the event scene glimmers through. */
.hero__canvas {
  display: block;
  z-index: 1;
  mix-blend-mode: normal;
  opacity: 0.72;
}

/* Dark scrim for legibility of the centered brand. */
.hero__overlay {
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 50%, rgba(5, 5, 6, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.55) 0%, rgba(5, 5, 6, 0.25) 35%, rgba(5, 5, 6, 0.7) 100%);
}

/* Film grain overlay */
.hero__grain {
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Soft vignette for depth */
.hero__vignette {
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(120% 110% at 50% 45%, transparent 52%, rgba(5, 5, 6, 0.85) 100%);
}

/* three.js hero scene (desktop only, injected by hero-fx.js) */
.hero__fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.hero__fx.is-ready { opacity: 1; }
.hero__inner {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 var(--gutter);
}

/* Breathing crimson glow behind the title - guarantees visible red + motion */
.hero__inner::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 42%;
  width: min(42rem, 80vw);
  height: min(20rem, 40vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(163, 22, 33, 0.34), rgba(110, 20, 35, 0.12) 45%, transparent 72%);
  filter: blur(46px);
  pointer-events: none;
  animation: glow 9s var(--ease) infinite;
}
@keyframes glow {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.92); }
  50%      { opacity: 0.95; transform: translate(-50%, -50%) scale(1.12); }
}

.brand {
  font-family: var(--font-title);
  font-weight: 500;
  margin: 0;
  /* Colabero is wide (~1.45em a glyph): 14vw keeps all four letters on one
     line on phones, and the svh cap keeps it on screen in phone landscape. */
  font-size: clamp(2.5rem, min(14vw, 26svh), 12rem);
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--text);
  /* oxblood glow */
  text-shadow:
    0 0 24px rgba(163, 22, 33, 0.45),
    0 0 70px rgba(110, 20, 35, 0.30);
  line-height: 1;
}
.brand span {
  display: inline-block;   /* required for letter-level transforms */
  will-change: transform, opacity;
}

.hero__tagline {
  margin: clamp(1.5rem, 4vh, 2.5rem) 0 0;
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--muted);
  /* nudge for the letter-spacing pushing text right */
  padding-left: 0.5em;
}
@media (max-width: 420px) {
  .hero__tagline { letter-spacing: 0.34em; padding-left: 0.34em; }
}

/* Barely-there scroll cue */
.scroll-cue {
  position: absolute;
  bottom: calc(clamp(1.5rem, 5vh, 3rem) + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: block;
  width: 28px;
  height: 56px;
}
.scroll-cue__line {
  display: block;
  width: 1px;
  height: 100%;
  margin: 0 auto;
  background: linear-gradient(to bottom, transparent, var(--text));
  opacity: 0.5;
  transform-origin: top;
  animation: cue 2.8s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 0.55; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}

/* ===========================================================================
   SECTION 2 - GALLERY (horizontal film strip)
   Default: a native swipe carousel with scroll-snap (phones, no JS, reduced
   motion). .gallery--pinned (added by script.js on wide screens) turns it
   into a pinned strip that vertical scroll drives sideways.
   =========================================================================== */
.gallery {
  position: relative;
  padding: var(--section-gap) 0;
  overflow: hidden;
}
.gallery__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vh, 3rem);
}

.gallery__track {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4.5rem);
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain; /* a swipe past the end won't trigger browser back */
  scroll-padding-inline: var(--gutter);
}
.gallery__track::-webkit-scrollbar { display: none; }

/* Pinned mode: one viewport tall, the track is moved by GSAP. */
.gallery--pinned { padding: 0; }
.gallery--pinned .gallery__inner {
  height: 100vh;
  height: 100dvh;
  justify-content: center;
  padding-top: 4rem; /* clear the fixed nav */
}
.gallery--pinned .gallery__track {
  width: max-content;
  overflow: visible;
  scroll-snap-type: none;
  will-change: transform;
}

/* Intro + outro panels bookending the strip */
.gallery__intro,
.gallery__outro {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.gallery__intro { width: min(34rem, 82vw); padding-right: clamp(1rem, 4vw, 4rem); }
.gallery__outro { width: min(24rem, 78vw); padding-left: clamp(0rem, 2vw, 2rem); }

.gallery__label {
  position: relative;
  margin: 0 0 clamp(1.5rem, 4vh, 2.5rem);
  padding-left: 3.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.25rem;
  height: 1px;
  background: var(--crimson);
}
.gallery__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  line-height: 1.5; /* Colabero's capitals ride high; give each line room */
  letter-spacing: 0.01em;
  color: var(--text);
}
.gallery__title span { display: block; }
/* Pinned strip: the panel sizes to its lines instead of wrapping words. */
.gallery--pinned .gallery__intro { width: auto; }
.gallery--pinned .gallery__title span { white-space: nowrap; }
.gallery__title em { font-style: normal; color: var(--crimson); }

.gallery__hint {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery__hint-swipe { display: none; }
@media (max-width: 900px) {
  .gallery__hint-scroll { display: none; }
  .gallery__hint-swipe { display: inline; }
}
.gallery__hint-line {
  position: relative;
  width: 4rem;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}
.gallery__hint-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--crimson);
  animation: hint 2.6s var(--ease) infinite;
}
@keyframes hint {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.gallery__outro-text {
  margin: 0 0 1.75rem;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.4vw, 1.5rem);
  line-height: 2;
  color: var(--text);
}
.gallery__outro-link {
  position: relative;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 0.4rem;
}
.gallery__outro-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--crimson);
  transform-origin: left;
  transition: transform var(--med) var(--ease);
}
.gallery__outro-link:hover::after { transform: scaleX(0.4); }

/* Frames. Height is set per size; width follows from the aspect ratio. */
.gallery__item {
  flex: 0 0 auto;
  position: relative;
  margin: 0;
  scroll-snap-align: center;
  --h: 54vh;
  --ar: 4 / 5;
}
.gallery__item--lg   { --h: 64vh; }
.gallery__item--md   { --h: 50vh; }
.gallery__item--wide { --h: 50vh; --ar: 3 / 2; }
.gallery__item--low  { margin-top: 12vh; }
.gallery__item--high { margin-bottom: 12vh; }

.gallery__media {
  position: relative;
  overflow: hidden;
  height: var(--h);
  aspect-ratio: var(--ar);
  background: #0f0d0e;
  will-change: transform;
}

/* Parallax layer: wider than the frame so the photo can drift sideways. */
.gallery__plx {
  position: absolute;
  inset: 0 -10%;
}
.gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Unified grade: slightly desaturated, warmed and deepened. */
  filter: saturate(0.72) sepia(0.14) contrast(1.06) brightness(0.8);
  transform: scale(1.01);
  transition: transform 1.6s var(--ease), filter 1.2s var(--ease);
}

/* Tone overlay: an oxblood colour wash pulls every photo into one palette,
   and a soft shade deepens edges and the lower third. */
.gallery__media::before,
.gallery__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 1.2s var(--ease);
}
.gallery__media::before {
  background: var(--oxblood);
  mix-blend-mode: color;
  opacity: 0.3;
}
.gallery__media::after {
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(5, 5, 6, 0.55) 100%),
    linear-gradient(to top, rgba(5, 5, 6, 0.45) 0%, transparent 45%);
}

/* Active (centred) or hovered frame: the wash lifts, colour returns. */
.gallery__item.is-active .gallery__media::before { opacity: 0.14; }
.gallery__item.is-active .gallery__media img {
  filter: saturate(0.95) sepia(0.06) contrast(1.06) brightness(0.92);
}
/* Hover only where there is a real pointer; on touch it would stick after a tap. */
@media (hover: hover) {
  .gallery__item:hover .gallery__media::before { opacity: 0.14; }
  .gallery__item:hover .gallery__media img {
    filter: saturate(0.95) sepia(0.06) contrast(1.06) brightness(0.92);
    transform: scale(1.05);
  }
  .gallery__item:hover .gallery__caption { opacity: 1; }
}

/* Caption sits under the frame; it never widens the frame. */
.gallery__caption {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  width: 0;
  min-width: 100%;
  padding-top: 1rem;
  opacity: 0.4;
  transition: opacity var(--slow) var(--ease);
}
.gallery__item.is-active .gallery__caption { opacity: 1; }

.gallery__index {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--crimson);
  font-variant-numeric: tabular-nums;
}
.gallery__place {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}
.gallery__word {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Phones / narrow: frames sized by width so the swipe strip feels native. */
@media (max-width: 900px) {
  /* Width-led, but capped by height so landscape phones keep the frame on screen. */
  .gallery__media { height: auto; width: min(74vw, calc(66svh * (var(--ar)))); }
  .gallery__item--wide .gallery__media { width: min(86vw, calc(60svh * (var(--ar)))); }
  .gallery__caption { gap: 0.7rem; }
  .gallery__place { font-size: 0.95rem; }
  .gallery__item--low,
  .gallery__item--high { margin: 0; }
  .gallery__track { align-items: flex-start; }
  .gallery__intro { align-self: center; }
  .gallery__outro { align-self: center; }
}

/* ===========================================================================
   SECTION - VISION (oversized editorial statement)
   =========================================================================== */
.vision {
  padding: var(--section-gap) var(--gutter);
  max-width: 92rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  row-gap: clamp(2.5rem, 6vh, 4rem);
  align-items: end;
}

.vision__label {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-left: 3.25rem;
}
.vision__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.25rem;
  height: 1px;
  background: var(--crimson);
}

.vision__statement {
  grid-column: 1 / span 8;
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.9rem, 5.4vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}
.vision__statement .line {
  display: block;
  /* clip mask for the line-by-line reveal */
  overflow: hidden;
}
.vision__statement em {
  font-style: normal;
  color: var(--crimson);
}
.vision__statement .word { will-change: opacity; }

.vision__body {
  grid-column: 9 / -1;
  align-self: end;
  max-width: 26rem;
}
.vision__body p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}
.vision__body p:last-child { margin-bottom: 0; }
.vision__body em {
  font-style: normal;
  color: var(--text);
}

@media (max-width: 900px) {
  .vision { align-items: start; }
  .vision__statement { grid-column: 1 / -1; }
  .vision__body { grid-column: 1 / -1; max-width: 38rem; }
}

/* ===========================================================================
   SECTION - DISCIPLINES (glass cards)
   =========================================================================== */
.disciplines {
  padding: var(--section-gap) var(--gutter);
  max-width: 92rem;
  margin: 0 auto;
}
.disc__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.disc-card {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--med) var(--ease), border-color var(--med) var(--ease),
    box-shadow var(--med) var(--ease);
}
@media (hover: hover) {
  .disc-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-oxblood);
    box-shadow:
      inset 0 1px 0 rgba(237, 234, 228, 0.08),
      0 30px 70px rgba(0, 0, 0, 0.55),
      0 0 40px rgba(110, 20, 35, 0.12);
  }
}
.disc-card__idx {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--crimson);
  font-variant-numeric: tabular-nums;
}
.disc-card__title {
  margin: auto 0 0.75rem;
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: 0.01em;
  color: var(--text);
}
.disc-card__text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}
@media (max-width: 1100px) { .disc__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .disc__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .disc__grid { grid-template-columns: 1fr; }
  .disc-card { min-height: 0; } }

/* ===========================================================================
   SECTION - THE ANÚR FORMULA (five values set as an equation)
   =========================================================================== */
.formula {
  overflow-x: clip; /* the result's wide entrance tracking must not widen the page */
  padding: clamp(4.5rem, 10vh, 8rem) var(--gutter);
  max-width: 88rem;
  margin: 0 auto;
  text-align: center;
}
.formula__intro {
  max-width: 42rem;
  margin: 0 auto clamp(2.5rem, 5vh, 3.75rem);
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.85;
}
.formula__equation {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.4rem, 0.9vw, 0.85rem);
}
/* Filled frosted panel per value — solid, not an empty outline. */
.formula__value {
  position: relative;
  flex: 1 1 9.5rem;
  max-width: 15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: clamp(1.6rem, 2.4vw, 2.25rem) clamp(0.9rem, 1.3vw, 1.35rem);
  background: rgba(237, 234, 228, 0.045);
  border: 1px solid rgba(237, 234, 228, 0.10);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(237, 234, 228, 0.05),
    0 20px 45px rgba(0, 0, 0, 0.35);
  transition: border-color var(--med) var(--ease),
    background var(--med) var(--ease),
    transform var(--med) var(--ease),
    box-shadow var(--med) var(--ease);
}
@media (hover: hover) {
  .formula__value:hover {
    border-color: var(--line-oxblood);
    background: rgba(110, 20, 35, 0.10);
    transform: translateY(-6px);
    box-shadow:
      inset 0 1px 0 rgba(237, 234, 228, 0.06),
      0 28px 60px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(110, 20, 35, 0.18);
  }
}
.formula__num {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--crimson);
  font-variant-numeric: tabular-nums;
}
.formula__value em {
  font-family: var(--font-title);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1rem, 2.8vw, 1rem);
  line-height: 1.1;
  color: var(--text);
}
.formula__value small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
  max-width: 12rem;
}
.formula__op {
  align-self: center;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--crimson);
  opacity: 0.8;
}
/* Conclusion: a full-width oxblood rule, then the result centred beneath it. */
.formula__sum {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(0.6rem, 1.2vw, 1rem);
  margin-top: clamp(2rem, 4vh, 3rem);
  padding-top: clamp(2rem, 4vh, 3rem);
  position: relative;
}
/* Oxblood rule; GSAP draws it out from the centre via --rule. */
.formula__sum::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-oxblood);
  transform: scaleX(var(--rule, 1));
}
.formula__op--equals {
  opacity: 1;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}
.formula__result {
  font-family: var(--font-title);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--text);
  text-shadow: 0 0 34px rgba(163, 22, 33, 0.35);
}

@media (max-width: 760px) {
  .formula__equation { flex-direction: column; align-items: center; }
  .formula__value { max-width: 26rem; width: 100%; flex: none; padding: 1.35rem 1.25rem; }
  .formula__op { padding: 0; line-height: 1; }
  .formula__sum { flex-direction: row; }
  .formula__result { font-size: clamp(1.6rem, 7.5vw, 3rem); }
}

/* ===========================================================================
   MARQUEE - animated band of the occasions we compose
   =========================================================================== */
.marquee {
  overflow: hidden;
  padding: clamp(2.5rem, 6vh, 4.5rem) 0;
  border-top: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  white-space: nowrap;
  will-change: transform;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-family: var(--font-title);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: 0.01em;
  color: var(--text);
  opacity: 0.55;
}
.marquee__track .dot { color: var(--crimson); font-family: var(--font-body); opacity: 0.9; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }
/* script.js takes over: scroll-reactive speed, direction and lean. */
.marquee--js .marquee__track { animation: none; }

/* ===========================================================================
   SECTION - PROCESS (numbered steps)
   =========================================================================== */
.process {
  padding: var(--section-gap) var(--gutter);
  max-width: 70rem;
  margin: 0 auto;
}
.process__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.process__step {
  display: grid;
  grid-template-columns: clamp(4rem, 10vw, 7rem) 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding: clamp(1.75rem, 4vh, 2.75rem) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
/* Crimson rule drawn over the hairline as each step arrives (--draw). */
.process__step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--crimson), var(--line-oxblood) 60%, transparent);
  transform: scaleX(var(--draw, 0));
  transform-origin: left;
}
.process__step:last-child { border-bottom: 1px solid var(--line); }
.process__num {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--crimson);
  opacity: 0.85;
  line-height: 1;
}
.process__title {
  margin: 0 0 0.6rem;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  color: var(--text);
}
.process__text {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ===========================================================================
   SECTION - FAQ (native <details>, so answers stay in the HTML for crawlers)
   =========================================================================== */
.faq {
  padding: var(--section-gap) var(--gutter);
}
.faq__list {
  max-width: 52rem;
  margin: 0 auto;
}
.faq__item {
  border-top: 1px solid var(--line);
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vh, 1.75rem) 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 300;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  flex: none;
  color: var(--crimson);
  font-family: var(--font-title);
  font-size: 1.4em;
  line-height: 1;
  transition: transform var(--med) var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a {
  margin: 0;
  padding: 0 0 clamp(1.25rem, 3vh, 1.75rem);
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.75;
}
.faq__a a {
  color: var(--text);
  border-bottom: 1px solid var(--line-oxblood);
}

/* ===========================================================================
   SECTION 3 - CONTACT (exclusive glass enquiry)
   =========================================================================== */
.contact {
  position: relative;
  isolation: isolate;
  padding: var(--section-gap) var(--gutter);
}
/* three.js motes behind the form (desktop only, injected by form-fx.js) */
.contact__fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.4s var(--ease);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.contact__fx.is-ready { opacity: 1; }

.contact__inner {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact__eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 3.25rem;
  position: relative;
}
.contact__eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 2.25rem; height: 1px;
  background: var(--crimson);
}

.contact__lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.02em;
  margin: 0 0 1.25rem;
}

.contact__sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.8;
}
.contact__assurance {
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin: 0;
  opacity: 0.85;
}
.contact__assurance span { color: var(--crimson); margin-right: 0.5rem; }

/* Glass enquiry panel */
.form {
  position: relative;
  text-align: left;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  isolation: isolate;
}
/* Soft light that follows the cursor across the glass (pointer devices) */
.form::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(163, 22, 33, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity var(--med) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .form:hover::before,
  .form:focus-within::before { opacity: 1; }
}

/* Progress: a hairline that fills as the enquiry takes shape */
.form__progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  row-gap: 0.7rem;
  margin-bottom: clamp(1.75rem, 3.5vh, 2.5rem);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.form__progress-count { font-variant-numeric: tabular-nums; letter-spacing: 0.14em; }
.form__progress-count [data-progress] { color: var(--text); }
.form__progress-track {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.form__progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--oxblood), var(--crimson));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform var(--slow) var(--ease);
}

/* Every field shares one rhythm: a label row, a control row, and a message
   slot below (error / hint / counter), so columns line up exactly. */
.form {
  --label-h: 1.6rem;
  --ctl-h: 3rem;
  --slot-h: 1.6rem;
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(0.5rem, 1.2vw, 0.9rem) clamp(1.5rem, 3vw, 2.25rem);
}
.field {
  position: relative;
  padding-bottom: var(--slot-h);
}
.field--full { grid-column: 1 / -1; }

.field > label,
.field legend {
  display: block;
  height: var(--label-h);
  margin: 0;
  padding: 0;
  font-size: 0.62rem;
  line-height: 1rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__opt { color: rgba(138, 135, 134, 0.6); letter-spacing: 0.12em; }

.field input,
.field textarea {
  display: block;
  width: 100%;
  height: var(--ctl-h);
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem; /* >=16px, or iOS Safari zooms the page on focus */
  font-weight: 300;
  transition: border-color var(--med) var(--ease);
}
.field textarea {
  min-height: var(--ctl-h);
  padding: 0.75rem 0;
  line-height: 1.5rem;
  resize: none;
  overflow: hidden;
}
.field input:focus,
.field textarea:focus { outline: none; }

/* Floating labels: rest on the control row, rise into the label row in use */
.field--float { padding-top: var(--label-h); }
.field--float label {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--label-h);
  height: auto;
  font-size: 1rem;
  font-weight: 300;
  line-height: var(--ctl-h);
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: top var(--med) var(--ease), font-size var(--med) var(--ease),
    line-height var(--med) var(--ease), letter-spacing var(--med) var(--ease),
    color var(--med) var(--ease);
}
.field--float.is-active label,
.field--float.is-filled label {
  top: 0;
  font-size: 0.62rem;
  line-height: 1rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.field--float.is-active label { color: var(--text); }

/* Underline that draws in from the left on focus */
.field__line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--label-h) + var(--ctl-h) - 1px);
  height: 1px;
  background: linear-gradient(90deg, var(--crimson), var(--oxblood));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--med) var(--ease);
}
/* the textarea grows, so its line follows the bottom edge instead */
.field textarea ~ .field__line { top: auto; bottom: var(--slot-h); }
.field.is-active .field__line { transform: scaleX(1); }

/* Small check once a required field is valid */
.field__tick {
  position: absolute;
  right: 0.1rem;
  top: calc(var(--label-h) + var(--ctl-h) / 2 - 0.3rem);
  width: 0.7rem;
  height: 0.38rem;
  border-left: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  transform: rotate(-45deg) scale(0.4);
  opacity: 0;
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
}
.field.is-valid .field__tick { opacity: 0.8; transform: rotate(-45deg) scale(1); }
.field.is-valid input { padding-right: 1.5rem; }

/* The message slot under each control */
.field__hint,
.field__count,
.field__error {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--slot-h);
  padding-top: 0.45rem;
  font-size: 0.7rem;
  line-height: 1.15rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.field__hint,
.field__count {
  color: var(--muted);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
}
.field__count { text-align: right; font-variant-numeric: tabular-nums; }
.field.is-active .field__hint,
.field.is-active .field__count,
.field.is-filled .field__count { opacity: 1; transform: none; }
.field.invalid .field__hint { opacity: 0; }

.field__error { letter-spacing: 0.08em; color: var(--crimson); }
.field.invalid input,
.field.invalid textarea { border-bottom-color: var(--crimson); }
.field.invalid label { color: var(--crimson); }
.field.shake { animation: field-shake 0.45s var(--ease); }
@keyframes field-shake {
  20% { transform: translateX(-6px); }
  45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
}

/* Occasion: chips instead of a dropdown */
.field--chips {
  border: 0;
  margin: 0 0 clamp(1.5rem, 3vh, 2rem);
  padding: 0;
  min-width: 0;
}
.field--chips legend { margin-bottom: 0.9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; cursor: pointer; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0 1.05rem;
  border: 1px solid rgba(237, 234, 228, 0.14);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(237, 234, 228, 0.02);
  transition: color var(--med) var(--ease), border-color var(--med) var(--ease),
    background-color var(--med) var(--ease), transform 0.25s var(--ease);
  user-select: none;
  -webkit-user-select: none;
}
.chip span::before {
  content: '';
  width: 0;
  height: 5px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 8px rgba(163, 22, 33, 0.9);
  transition: width var(--med) var(--ease), margin var(--med) var(--ease);
  margin-right: -0.55rem;
}
.chip:hover span { color: var(--text); border-color: rgba(237, 234, 228, 0.32); }
.chip:active span { transform: scale(0.97); }
.chip input:checked + span {
  color: var(--text);
  border-color: rgba(163, 22, 33, 0.85);
  background: rgba(61, 1, 3, 0.45);
}
.chip input:checked + span::before { width: 5px; margin-right: 0; }
.chip input:focus-visible + span { outline: 1px solid var(--text); outline-offset: 3px; }

/* Guests: a quiet stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--ctl-h);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--med) var(--ease);
}
.field--stepper.is-active .stepper { border-bottom-color: var(--crimson); }
.stepper input {
  flex: 1;
  height: auto;
  min-width: 0;
  border: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input::placeholder { color: var(--muted); }
.stepper__btn {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(237, 234, 228, 0.14);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color var(--med) var(--ease), background-color var(--med) var(--ease),
    transform 0.2s var(--ease);
}
.stepper__btn:hover { border-color: var(--crimson); background: rgba(61, 1, 3, 0.35); }
.stepper__btn:active { transform: scale(0.92); }
.stepper__btn:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }
.stepper input.bump { animation: bump 0.3s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }

.form__foot {
  margin-top: clamp(1.75rem, 3.5vh, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.form__note {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.form__foot .form__fail,
.form__foot .form__confirm { flex-basis: 100%; }

@media (max-width: 820px) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact__eyebrow { padding-left: 3.25rem; }
}
@media (max-width: 520px) {
  .form__grid { grid-template-columns: 1fr; row-gap: 0.25rem; }
  .form { padding: 1.5rem 1.25rem; }
  .chip span { padding: 0 0.9rem; }
  .submit { width: 100%; padding-left: 1.35rem; letter-spacing: 0.2em; }
  .form__note { width: 100%; text-align: center; }
}

/* Send: a hairline pill that fills with oxblood on hover */
.submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 3.25rem;
  padding: 0 0.5rem 0 1.6rem;
  border: 1px solid rgba(237, 234, 228, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--med) var(--ease), transform 0.2s var(--ease);
}
.submit::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--oxblood), #6E0F18);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--med) var(--ease);
}
.submit:hover,
.submit:focus-visible { border-color: var(--crimson); }
.submit:hover::after,
.submit:focus-visible::after { transform: scaleX(1); }
.submit:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }
.submit:active { transform: scale(0.98); }
.submit__arrow {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  transition: transform var(--med) var(--ease), background-color var(--med) var(--ease);
}
.submit:hover .submit__arrow { transform: translateX(3px) rotate(-45deg); }

.form__confirm {
  margin-top: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.form__confirm[hidden] { display: none; }

/* Shown if the enquiry could not be sent */
.form__fail {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--crimson);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
}
.form__fail[hidden] { display: none; }
.form__fail a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-oxblood);
  transition: border-color var(--med) var(--ease);
}
.form__fail a:hover { border-bottom-color: var(--crimson); }

/* Honeypot - kept off-screen rather than display:none, which bots skip */
.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Focused programmatically after the dialog closes (for screen readers);
   it is a status message, not a control, so no focus box. */
.form__confirm:focus { outline: none; }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.site-footer {
  background: var(--black);
  text-align: center;
  padding: clamp(3rem, 8vh, 5rem) var(--gutter);
  padding-bottom: calc(clamp(3rem, 8vh, 5rem) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.site-footer__brand {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--text);
  padding-left: 0.6em;
}

.site-footer__rule {
  width: 48px;
  height: 1px;
  background: var(--line-oxblood);
}

.site-footer__email {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 0.6rem 0;
  transition: color var(--med) var(--ease);
}
.site-footer__email:hover { color: var(--text); }

.site-footer__copy {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===========================================================================
   ENQUIRY CONFIRMATION (full-screen dialog)
   Static by default (fully drawn); script.js animates it in with GSAP.
   =========================================================================== */
.confirm {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  padding-top: calc(var(--gutter) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--text);
}
.confirm[hidden] { display: none; }
body.confirm-open { overflow: hidden; }

/* Without the animation the dialog simply sits on black. While the sparkle
   drape plays (.confirm--drape) the canvas paints the curtain instead. */
.confirm { background: var(--black); }
.confirm.confirm--drape { background: transparent; }

.confirm__drape {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.confirm__glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 42%, rgba(110, 20, 35, 0.32), transparent 70%),
    radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.7));
}
.confirm__glow::after { /* film grain, as in the hero */
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.confirm__inner {
  position: relative;
  width: min(56rem, 100%);
  text-align: center;
}

/* Seal: drawn ring + tick, with turning lettering around it. */
.confirm__seal {
  display: block;
  width: clamp(6.5rem, 13vh, 8.5rem);
  height: auto;
  margin: 0 auto clamp(1.25rem, 3vh, 2rem);
  overflow: visible;
}
.confirm__seal text {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  fill: var(--muted);
}
.confirm__ring,
.confirm__tick {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.confirm__ring {
  stroke: var(--crimson);
  stroke-width: 1;
  filter: drop-shadow(0 0 6px rgba(163, 22, 33, 0.7));
}
.confirm__tick {
  stroke: var(--text);
  stroke-width: 1.5;
}

.confirm__eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0.42em;
}
.confirm__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.confirm__line {
  display: block;
  overflow: hidden; /* mask for the rising lines */
  /* Colabero's capitals rise well above the line box: pad the mask so they
     are not clipped, and pull the lines back together with negative margin. */
  padding: 0.45em 0.25em 0.1em;
  margin-top: -0.4em;
}
@media (min-width: 761px) {
  .confirm__line > span { white-space: nowrap; }
}
.confirm__line > span { display: block; }
.confirm__title em { font-style: normal; color: var(--crimson); }

.confirm__text {
  max-width: 30rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* What they sent, as a quiet three-column summary. */
.confirm__details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: clamp(1.75rem, 4vh, 2.5rem) auto 0;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 34rem;
}
.confirm__details[hidden] { display: none; }
.confirm__details div {
  flex: 1 1 8rem;
  padding: 0 1rem;
}
.confirm__details div + div { border-left: 1px solid var(--line); }
@media (max-width: 520px) {
  /* Stack the summary: wrapped columns would leave stray left rules. */
  .confirm__details { flex-direction: column; gap: 0.9rem; }
  .confirm__details div { flex: none; }
  .confirm__details div + div { border-left: none; }
}
.confirm__details dt {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.confirm__details dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.confirm__close {
  position: relative;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  padding: 0.85rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
}
.confirm__close::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--crimson);
  transform: scaleX(var(--u, 1));
  transform-origin: left;
  transition: transform var(--med) var(--ease);
}
.confirm__close:hover::after { transform: scaleX(0.35); }

.confirm__x {
  position: fixed;
  top: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-top, 0px));
  right: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-right, 0px));
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--med) var(--ease), transform var(--med) var(--ease);
}
.confirm__x span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1px;
  background: var(--text);
}
.confirm__x span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.confirm__x span:last-child  { transform: translate(-50%, -50%) rotate(-45deg); }
.confirm__x:hover { border-color: var(--crimson); transform: rotate(90deg); }

/* Submit button while "sending": the arrow turns into a slow spinner */
.submit.is-sending { pointer-events: none; border-color: var(--crimson); }
.submit.is-sending::after { transform: scaleX(1); opacity: 0.6; }
.submit.is-sending .submit__arrow { background: transparent; color: var(--text); }
.submit.is-sending .submit__arrow svg { display: none; }
.submit.is-sending .submit__arrow::before {
  content: '';
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(237, 234, 228, 0.25);
  border-top-color: var(--text);
  animation: sending 0.9s linear infinite;
}
@keyframes sending { to { transform: rotate(360deg); } }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
/* Phones: tighter vertical rhythm, and cheaper compositing. Blur behind the
   cards and form is invisible over a flat background but costly on mobile GPUs. */
@media (max-width: 760px) {
  :root { --section-gap: clamp(4rem, 10vh, 6rem); }
  .section-label { margin-bottom: 2.5rem; }
  .disc-card.glass,
  .form.glass {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(237, 234, 228, 0.05);
    box-shadow: inset 0 1px 0 rgba(237, 234, 228, 0.06), 0 16px 36px rgba(0, 0, 0, 0.4);
  }
  .hero__inner::before { filter: blur(30px); }
  .process__step { grid-template-columns: 3rem 1fr; }
}
/* Offset anchored sections so the fixed glass nav doesn't cover headings. */
.gallery, .vision, .disciplines, .process, .faq, .contact { scroll-margin-top: 5rem; }

/* ===========================================================================
   REDUCED MOTION - single global gate
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .brand span { opacity: 1; }
  .vision__statement .line { overflow: visible; }
  .hero__inner::before { animation: none; opacity: 0.6; }
  .hero__bg { transform: none; }
  .scroll-progress { display: none; }
  .gallery__hint-line::after { animation: none; transform: none; }
  .submit.is-sending .submit__arrow::before { animation-duration: 2.4s; }
  .form__progress-bar,
  .field__line,
  .field--float label,
  .chip span { transition: none; }
  .field.shake,
  .stepper input.bump { animation: none; }
  .scroll-cue__line { animation: none; opacity: 0.4; transform: scaleY(1); }
  .marquee__track { animation: none; transform: translateX(-25%); }
  .disc-card { opacity: 1; transform: none; }
  .gallery__media img,
  .gallery__media::before,
  .gallery__media::after,
  .gallery__caption,
  .gallery__outro-link::after,
  .disc-card,
  .formula__value,
  .submit::after,
  .field input,
  .field textarea,
  .site-nav,
  .site-nav__links a::after,
  .site-footer__email { transition: none; }
}

/* Browser autofill fills fields before any input event: float those labels too */
.field--float:has(input:-webkit-autofill) label {
  top: 0;
  font-size: 0.62rem;
  line-height: 1rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  transition: background-color 9999s 0s;
}
