/* =========================================================
   Wiedemann Jasalu — Senior UI/UX refonte
   Direction : éditorial asymétrique · Bento 2.0 · anti-card overuse
   Typo : Montserrat · Accent : #A8423B · Base : off-white warm
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "ss01", "ss02";
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============ TOKENS ============ */
:root {
  /* Palette (off-black, warm neutrals, single accent) */
  --paper: #FAF7F2;
  --paper-2: #F2EDE5;
  --cream: #F5F0E8;

  --ink: #0F0D0C;
  --ink-1: #191614;
  --ink-2: #25201D;
  --gray-800: #3A332E;
  --gray-700: #4F4842;
  --gray-600: #6F665E;
  --gray-500: #918880;
  --gray-400: #B5ACA4;
  --gray-300: #D6CDC4;
  --gray-200: #ECE5DC;
  --gray-100: #F5F0E8;
  --white: #FFFFFF;

  --red: #A8423B;
  --red-soft: #C56860;
  --red-deep: #7C2D27;
  --red-tint: #F4E2DF;
  --red-bg: #FBEEEB;
  --red-shadow: rgba(168, 66, 59, 0.18);

  /* Type */
  --font: "Montserrat", "Helvetica Neue", system-ui, sans-serif;

  /* Type scale fluid (tighter for tracking-tighter principle) */
  --t-xs: clamp(0.72rem, 0.69rem + 0.13vw, 0.78rem);
  --t-sm: clamp(0.82rem, 0.79rem + 0.18vw, 0.92rem);
  --t-base: clamp(0.96rem, 0.92rem + 0.22vw, 1.08rem);
  --t-lg: clamp(1.12rem, 1.04rem + 0.4vw, 1.28rem);
  --t-xl: clamp(1.3rem, 1.18rem + 0.55vw, 1.55rem);
  --t-2xl: clamp(1.55rem, 1.38rem + 0.85vw, 1.92rem);
  --t-3xl: clamp(1.82rem, 1.57rem + 1.25vw, 2.4rem);
  --t-4xl: clamp(2.18rem, 1.78rem + 2vw, 3.06rem);
  --t-5xl: clamp(2.5rem, 1.96rem + 2.7vw, 3.7rem);
  --t-6xl: clamp(2.95rem, 2.18rem + 3.85vw, 4.55rem);
  --t-7xl: clamp(3.5rem, 2.4rem + 5.5vw, 5.85rem);
  --t-8xl: clamp(4.2rem, 2.5rem + 8.5vw, 7.9rem);
  --t-9xl: clamp(5rem, 2.6rem + 12vw, 10.5rem);
  --t-display: clamp(5.6rem, 2.5rem + 16vw, 13rem);

  /* Layout */
  --container: 1400px;
  --container-narrow: 1080px;
  --container-wide: 1620px;
  --pad-x: clamp(1.25rem, 0.5rem + 3.5vw, 3.5rem);
  --section: clamp(5rem, 3rem + 8vw, 9rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Tinted shadows (red-shifted) */
  --shadow-sm: 0 2px 8px rgba(15, 13, 12, 0.04);
  --shadow-md: 0 10px 40px -10px rgba(168, 66, 59, 0.15), 0 4px 12px rgba(15, 13, 12, 0.05);
  --shadow-lg: 0 30px 60px -15px rgba(168, 66, 59, 0.2), 0 12px 28px -10px rgba(15, 13, 12, 0.08);
  --shadow-xl: 0 50px 100px -20px rgba(168, 66, 59, 0.25), 0 20px 40px -15px rgba(15, 13, 12, 0.1);

  --radius: 4px;
  --radius-lg: 24px;
  --radius-xl: 40px;
}

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Horizontal-overflow clip on html only — keeps body as normal flow so
   `position: sticky` works inside it. */
html {
  overflow-x: clip;
}

/* Fine grain texture overlay (fixed, pointer-events-none for perf) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--red); color: var(--paper); }

/* ============ LOADER (curtains + logo) ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  isolation: isolate;
}

.loader-panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background: var(--ink);
  transition: transform 1.1s cubic-bezier(0.86, 0, 0.07, 1);
  will-change: transform;
}

.loader-panel-top { top: 0; }
.loader-panel-bottom { bottom: 0; }

.loader.is-revealing .loader-panel-top { transform: translate3d(0, -100%, 0); }
.loader.is-revealing .loader-panel-bottom { transform: translate3d(0, 100%, 0); }

.loader-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  z-index: 2;
  color: var(--paper);
  transition: opacity 0.5s var(--ease);
}

.loader.is-revealing .loader-center { opacity: 0; }

.loader-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  animation: loaderFade 0.7s var(--ease-out) 0.15s forwards;
}

.loader-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  animation: loaderFade 0.7s var(--ease-out) 0.3s forwards;
}

.loader-w1 { color: var(--paper); }
.loader-w2 { color: var(--red-soft); }

.loader-bar {
  position: relative;
  margin-top: 1.25rem;
  width: 200px;
  height: 1px;
  background: rgba(250, 247, 242, 0.16);
  overflow: hidden;
  opacity: 0;
  animation: loaderFade 0.7s var(--ease-out) 0.45s forwards;
}

.loader-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red-soft);
  animation: loaderProgress 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.55s forwards;
}

@keyframes loaderFade {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes loaderProgress {
  0%   { width: 0; }
  60%  { width: 78%; }
  100% { width: 100%; }
}

/* Lock scroll while loader is visible */
html.is-loading,
html.is-loading body {
  overflow: hidden;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  html.is-loading, html.is-loading body { overflow: auto; height: auto; }
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--ink);
}

p {
  max-width: 65ch;
  line-height: 1.7;
  color: var(--gray-700);
}

strong { font-weight: 700; color: var(--ink); }

em {
  font-style: normal;
  color: var(--red);
  font-weight: 900;
}

.num, .tabular {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Kicker (mandatory pre-headline) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.kicker::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.kicker-light { color: rgba(250, 247, 242, 0.75); }
.kicker-light::before { background: rgba(250, 247, 242, 0.5); }

.lead {
  font-size: var(--t-lg);
  font-weight: 400;
  line-height: 1.55;
  color: var(--gray-700);
  max-width: 56ch;
}

.red { color: var(--red); }

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  position: relative;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  position: relative;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  position: relative;
}

.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: clamp(3rem, 1.5rem + 4vw, 5rem); }

.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-paper-2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-red { background: var(--red); color: var(--paper); }

.bg-ink ::selection { background: var(--paper); color: var(--ink); }
.bg-red ::selection { background: var(--paper); color: var(--red); }

.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--paper); }
.bg-ink p { color: rgba(250, 247, 242, 0.7); }
.bg-ink strong { color: var(--paper); }

.bg-red h1, .bg-red h2, .bg-red h3, .bg-red h4 { color: var(--paper); }
.bg-red em { color: var(--paper); font-weight: 900; }
.bg-red p { color: rgba(250, 247, 242, 0.9); }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1.1rem;
  transform: translate3d(0, 0, 0);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), padding 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  will-change: transform;
}

.site-header.is-hidden { transform: translate3d(0, -110%, 0); }

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  padding-block: 0.7rem;
  border-bottom-color: var(--gray-200);
}

.site-header.is-dark { color: var(--paper); }

.site-header.is-dark.is-scrolled {
  background: color-mix(in srgb, var(--ink) 85%, transparent);
  border-bottom-color: rgba(250, 247, 242, 0.1);
}

.site-header.is-dark .nav a { color: var(--paper); }
.site-header.is-dark .brand-wordmark .w1 { color: var(--paper); }
.site-header.is-dark .header-phone {
  color: var(--paper);
  border-color: rgba(250, 247, 242, 0.3);
}
.site-header.is-dark .header-phone:hover { background: var(--paper); color: var(--ink); }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  line-height: 1;
}

.brand-icon { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; display: block; }

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.brand-wordmark .w1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
}

.brand-wordmark .w2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red);
  margin-top: 1px;
}

.nav {
  display: flex;
  gap: clamp(1rem, 0.4rem + 1.8vw, 2.4rem);
  justify-content: center;
}

.nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-1);
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--red);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
  will-change: transform;
}

.nav a:hover, .nav a.is-active { color: var(--red); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-end { display: flex; align-items: center; gap: 1rem; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-1);
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--ink-1);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
}

.header-phone:hover {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
  transform: translateY(-1px);
}

.header-phone svg { width: 12px; height: 12px; }

.nav-toggle { display: none; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.05rem 1.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.25s var(--ease), box-shadow 0.35s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  will-change: transform;
}

.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px var(--red-shadow), 0 6px 16px rgba(15, 13, 12, 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--gray-400);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn-light:hover {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
  transform: translateY(-2px);
}

/* ============ GLASSMORPHISM BUTTONS ============ */
/* Light glass — for dark/video backgrounds (hero) */
.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 10px 32px rgba(0, 0, 0, 0.18);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 16px 44px rgba(0, 0, 0, 0.24);
}

.btn-glass-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-glass-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Dark glass — for light backgrounds */
.btn-glass-dark {
  background: rgba(15, 13, 12, 0.55);
  color: var(--paper);
  border: 1px solid rgba(15, 13, 12, 0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 30px rgba(15, 13, 12, 0.2);
}

.btn-glass-dark:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(168, 66, 59, 0.32);
}

.btn-arrow { display: inline-block; line-height: 1; transition: transform 0.4s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(0.35em); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid currentColor;
  transition: gap 0.3s var(--ease-out), color 0.3s var(--ease);
}

.link-arrow:hover { gap: 1rem; color: var(--red); }
.link-arrow.is-red { color: var(--red); }
.link-arrow.is-light { color: var(--paper); }

/* ============ HERO ASYMÉTRIQUE (anti-center) ============ */
.hero {
  position: relative;
  padding-top: clamp(8rem, 5vw + 6rem, 11rem);
  padding-bottom: clamp(4rem, 2rem + 4vw, 6rem);
  overflow: hidden;
}

/* Full-page video hero */
.hero-full {
  min-height: 100dvh;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: flex-end;
}

.hero-full .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  background: var(--ink);
}

/* On phones the portrait crop hides the sides — anchor the video to the right
   so the interesting subject (on the right of the frame) stays visible. */
@media (max-width: 768px) {
  .hero-full .hero-video {
    object-position: right center;
  }
}

.hero-full .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 12, 11, 0.55) 0%, rgba(14, 12, 11, 0.15) 30%, rgba(14, 12, 11, 0.55) 65%, rgba(14, 12, 11, 0.92) 100%),
    linear-gradient(90deg, rgba(14, 12, 11, 0.55) 0%, transparent 55%);
}

.hero-full-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(7rem, 4rem + 7vw, 10rem) clamp(3rem, 2rem + 3vw, 4.5rem);
}

.hero-full .hero-content { max-width: 800px; }

.hero-full .hero-title {
  color: var(--paper);
}

.hero-full .hero-title em {
  color: var(--red-soft);
  font-weight: 900;
}

.hero-full .hero-lead {
  color: rgba(250, 247, 242, 0.86);
  max-width: 56ch;
}

.hero-full .hero-meta {
  border-top-color: rgba(250, 247, 242, 0.2);
}

.hero-full .hero-meta-num { color: var(--paper); }
.hero-full .hero-meta-num em { color: var(--red-soft); }
.hero-full .hero-meta-label { color: rgba(250, 247, 242, 0.6); }

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.65);
  pointer-events: none;
}

.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(250, 247, 242, 0.7));
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  animation: scrollLine 2.2s var(--ease-luxe) infinite;
  will-change: transform;
}

@keyframes scrollLine {
  0% { transform: translate3d(0, -100%, 0); }
  50% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, 100%, 0); }
}

@media (max-width: 900px) {
  .hero-full { align-items: flex-end; }
  .hero-full-content { padding-block: 7rem 4rem; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 1rem + 3vw, 4.5rem);
  align-items: end;
}

.hero-content > * + * { margin-top: 1.5rem; }

.hero-title {
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 18ch;
}

.hero-title em {
  color: var(--red);
  font-weight: 900;
}

.hero-lead {
  font-size: var(--t-lg);
  color: var(--gray-700);
  max-width: 50ch;
  line-height: 1.55;
  margin-top: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.hero-meta {
  display: flex;
  gap: clamp(1.5rem, 1rem + 1.5vw, 3rem);
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-300);
}

.hero-meta-item { display: flex; flex-direction: column; gap: 0.4rem; }

.hero-meta-num {
  font-size: var(--t-3xl);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-meta-num em { color: var(--red); font-weight: 900; }

.hero-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  transform: translateY(-1.5rem);
  will-change: transform;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.hero-media img {
  transition: transform 1.5s var(--ease-out);
}

.hero-media:hover img { transform: scale(1.04); }

.hero-video {
  background: var(--gray-200);
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 13, 12, 0.15));
  pointer-events: none;
}

.hero-media-tag {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(250, 247, 242, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ============ PAGE HERO (interior, asymétrique gauche) ============ */
.page-hero {
  padding-top: clamp(8rem, 5vw + 6rem, 11rem);
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: clamp(2rem, 1rem + 3vw, 5rem);
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.02;
  max-width: 16ch;
}

.page-hero h1 em { color: var(--red); font-weight: 900; }

.page-hero-deck {
  font-size: var(--t-lg);
  color: var(--gray-700);
  line-height: 1.55;
  max-width: 44ch;
  padding-bottom: 0.5rem;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gray-600);
}

.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep, .breadcrumb .current { color: var(--red); }

/* ============ MARQUEE (kinetic) ============ */
.marquee {
  overflow: hidden;
  padding-block: 2.5rem;
  border-block: 1px solid var(--gray-300);
  background: var(--paper);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  will-change: transform;
}

/* GSAP takes over marquee when JS is loaded */
html.js-anim .marquee-track { animation: none; }

.marquee-item {
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 4rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.045em;
  display: inline-flex;
  align-items: center;
  gap: 4rem;
}

.marquee-item em { color: var(--red); font-weight: 900; }

.marquee-item::after {
  content: "✦";
  color: var(--red);
  font-weight: 400;
  font-size: 0.55em;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ============ ZIG-ZAG MAGAZINE BLOCK ============ */
.zigzag {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 1rem + 4vw, 6rem);
  align-items: center;
}

.zigzag.reverse {
  grid-template-columns: 7fr 5fr;
  direction: rtl;
}

.zigzag.reverse > * { direction: ltr; }

.zigzag-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}

.zigzag-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-out);
  will-change: transform;
}

.zigzag-visual:hover img { transform: scale(1.04); }

.zigzag-visual::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid var(--red);
  z-index: -1;
  transform: translate(16px, 16px);
  pointer-events: none;
  border-radius: var(--radius);
}

.zigzag-body > * + * { margin-top: 1.5rem; }

.zigzag-body h2 {
  font-size: var(--t-6xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin-top: 0.5rem;
}

.zigzag-body h2 em { color: var(--red); font-weight: 900; }

.zigzag-body p { font-size: var(--t-base); color: var(--gray-700); line-height: 1.7; }

.zigzag-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-block: 1.5rem;
  border-block: 1px solid var(--gray-300);
}

.zigzag-stat-num {
  font-size: var(--t-3xl);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.zigzag-stat-num em { color: var(--red); font-weight: 900; }

.zigzag-stat-label {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* ============ SECTION HEAD (asymétrique) ============ */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: end;
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-300);
}

.section-head-num {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-600);
  padding-bottom: 0.45rem;
  font-variant-numeric: tabular-nums;
}

.section-head h2 {
  font-size: var(--t-7xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 18ch;
}

.section-head h2 em { color: var(--red); font-weight: 900; }

.section-head-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-300);
}

.section-head-row h2 {
  font-size: var(--t-7xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 18ch;
}

.section-head-row h2 em { color: var(--red); font-weight: 900; }

/* ============ BENTO 2.0 ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-cell {
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15),
    0 8px 32px rgba(15, 13, 12, 0.06);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out), background 0.5s var(--ease-out);
  overflow: hidden;
  will-change: transform;
  min-height: 280px;
}

.bento-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), var(--red-bg), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.bento-cell:hover::before { opacity: 1; }

.bento-cell:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 24px 60px -10px rgba(168, 66, 59, 0.18),
    0 12px 28px -10px rgba(15, 13, 12, 0.08);
}

.bento-cell > * { position: relative; z-index: 1; }

.bento-cell.c-4 { grid-column: span 4; }
.bento-cell.c-5 { grid-column: span 5; }
.bento-cell.c-6 { grid-column: span 6; }
.bento-cell.c-7 { grid-column: span 7; }
.bento-cell.c-8 { grid-column: span 8; }

.bento-cell-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bento-cell-num::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.bento-cell h3 {
  font-size: var(--t-3xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 0.85rem;
}

.bento-cell h3 em { color: var(--red); font-weight: 900; }

.bento-cell p {
  font-size: var(--t-sm);
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
  max-width: 40ch;
}

.bento-cell-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.bento-cell-arrow::after {
  content: "→";
  transition: transform 0.4s var(--ease-out);
  will-change: transform;
}

.bento-cell:hover .bento-cell-arrow::after { transform: translateX(0.4em); }

/* Feature bento with image background */
.bento-cell.is-feature {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  min-height: 380px;
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}

.bento-cell.is-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 13, 12, 0.4) 0%, rgba(15, 13, 12, 0.85) 100%);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.bento-cell.is-feature h3 { color: var(--paper); }
.bento-cell.is-feature h3 em { color: var(--paper); }
.bento-cell.is-feature p { color: rgba(250, 247, 242, 0.78); }
.bento-cell.is-feature .bento-cell-num { color: rgba(250, 247, 242, 0.6); }
.bento-cell.is-feature .bento-cell-arrow { color: var(--paper); }

.bento-cell.is-red {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}

.bento-cell.is-red h3 { color: var(--paper); }
.bento-cell.is-red h3 em { color: var(--paper); font-weight: 900; }
.bento-cell.is-red p { color: rgba(250, 247, 242, 0.9); }
.bento-cell.is-red .bento-cell-num { color: rgba(250, 247, 242, 0.8); }
.bento-cell.is-red .bento-cell-arrow { color: var(--paper); }
.bento-cell.is-red:hover { box-shadow: 0 30px 60px -15px rgba(168, 66, 59, 0.45); }

.services-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 1.5rem + 2vw, 4rem);
}

/* ============ SVC3D — 3D HELIX CAROUSEL ============ */
.svc3d {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
  /* Top padding so the sticky header (top: 50vh + translateY(-50%)) doesn't poke
     up above the section start and overlap the previous section's background. */
  padding-top: clamp(120px, 14vh, 200px);
  /* overflow-x: clip contains the 3D helix cards (which extend past the viewport
     on narrow screens) WITHOUT creating a scroll container — so the inner
     position: sticky pin keeps working. `hidden` would break the pin. */
  overflow-x: clip;
}

.svc3d::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(168, 66, 59, 0.18) 0%, transparent 65%),
    radial-gradient(60% 60% at 0% 100%, rgba(168, 66, 59, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.svc3d > * { position: relative; z-index: 1; }

.svc3d-header {
  position: sticky;
  top: 50vh;
  transform: translate3d(0, -50%, 0);
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: center;
  z-index: 1;
  pointer-events: none;
}

.svc3d-header .kicker { color: rgba(250, 247, 242, 0.7); }
.svc3d-header .kicker::before { background: rgba(250, 247, 242, 0.5); }

.svc3d-header h2 {
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--paper);
  margin: 1rem 0 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.svc3d-header h2 em {
  color: var(--red-soft);
  font-style: normal;
  font-weight: 900;
}

.svc3d-header p {
  margin: 1.25rem auto 0;
  max-width: 56ch;
  color: rgba(250, 247, 242, 0.78);
  font-size: var(--t-base);
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.svc3d-wrap {
  position: relative;
}

.svc3d-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  /* No overflow: hidden here — it forces the stage's transform-style to flat
     and breaks 3D ordering between the model-viewer and the cards. */
  z-index: 5;
}

.svc3d-stage {
  position: absolute;
  inset: 0;
  perspective: 1500px;
  perspective-origin: 50% 50%;
  /* preserve-3d so the model-viewer (a sibling of the rail) takes part in the
     same 3D depth context as the cards — cards on the front side end up
     visually in FRONT of the model, cards on the back side end up BEHIND it.
     NB: `display: flex` is intentionally avoided here because any display
     other than block/inline forces the used value of transform-style to flat. */
  transform-style: preserve-3d;
}

.svc3d-rail {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateY(0deg) translateY(0);
  will-change: transform;
}

/* ---- 3D model (spiral staircase) at the heart of the cylinder ---- */
.svc3d-model {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  pointer-events: none;
  /* Explicit translateZ(0) so the model-viewer occupies the central plane of
     the cylinder in the stage's 3D context. Cards orbit at translateZ(±460),
     so front-facing cards naturally stack IN FRONT of the model and
     back-facing cards stack BEHIND it. */
  transform: translate3d(0, 0, 0);
  transform-style: preserve-3d;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: transparent;
  --progress-mask: transparent;
  filter: drop-shadow(0 30px 60px rgba(168, 66, 59, 0.25));
}

.svc3d-model::part(default-progress-bar) { display: none; }

@media (max-width: 900px) {
  .svc3d-model {
    width: 480px;
    height: 480px;
    margin: -240px 0 0 -240px;
  }
}

@media (max-width: 600px) {
  .svc3d-model {
    width: 340px;
    height: 340px;
    margin: -170px 0 0 -170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc3d-model { opacity: 0.6; }
}

.svc3d-card {
  --i: 0;
  --card-w: min(396px, 50.4vw);
  --card-h: min(270px, 33.3vw);
  --angle-step: 50deg;
  --y-step: 80px;
  --radius: 460px;

  position: absolute;
  left: 0;
  top: 0;
  width: var(--card-w);
  height: var(--card-h);
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  border-radius: 18px;
  background: var(--ink);
  border: 1px solid rgba(250, 247, 242, 0.16);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 40px -10px rgba(168, 66, 59, 0.22),
    0 60px 130px -20px rgba(0, 0, 0, 0.85),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transform-style: preserve-3d;
  transform:
    rotateY(calc(var(--i) * var(--angle-step)))
    translateZ(var(--radius))
    translateY(calc(var(--i) * var(--y-step)));
  transition: filter 0.6s ease, opacity 0.6s ease, box-shadow 0.4s ease;
  filter: brightness(0.5) saturate(0.7);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.svc3d-card.is-active {
  filter: brightness(1) saturate(1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 60px -10px rgba(168, 66, 59, 0.35),
    0 90px 180px -30px rgba(0, 0, 0, 0.92),
    0 1px 0 rgba(255, 255, 255, 0.24) inset;
}

/* Hover lift — applies to any card under the cursor (works even on side cards
   to invite exploration). The bg image zooms, title shifts up, and a red
   ring tightens around the card. */
.svc3d-card:hover {
  filter: brightness(1.08) saturate(1.15);
  border-color: rgba(168, 66, 59, 0.7);
  box-shadow:
    0 0 0 1px rgba(168, 66, 59, 0.6),
    0 0 80px -8px rgba(168, 66, 59, 0.55),
    0 90px 180px -30px rgba(0, 0, 0, 0.92),
    0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.svc3d-card .svc3d-card-bg {
  transition: transform 0.6s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)), filter 0.5s ease;
}

.svc3d-card:hover .svc3d-card-bg {
  transform: scale(1.06);
  filter: saturate(1.2) brightness(1.05);
}

.svc3d-card .svc3d-card-text {
  transition: transform 0.5s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.svc3d-card:hover .svc3d-card-text {
  transform: translateY(-4px);
}

.svc3d-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: inherit;
  filter: saturate(1.05) brightness(0.92);
}

.svc3d-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(15, 13, 12, 0) 40%, rgba(15, 13, 12, 0.55) 72%, rgba(15, 13, 12, 0.92) 100%);
  pointer-events: none;
  z-index: 1;
}

.svc3d-card-text {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.4rem;
  z-index: 2;
  color: var(--paper);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.svc3d-card-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(250, 247, 242, 0.55);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.75rem;
}

.svc3d-card-title {
  font-size: clamp(1.35rem, 0.95rem + 1.1vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  font-weight: 800;
  margin: 0 0 0.6rem;
  color: var(--paper);
}

.svc3d-card-title em {
  color: var(--red-soft);
  font-style: normal;
  font-weight: 900;
}

.svc3d-card-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(250, 247, 242, 0.82);
  max-width: 48ch;
  margin: 0;
}

.svc3d-dots {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 5;
}

.svc3d-dot {
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: rgba(250, 247, 242, 0.18);
  transition: background 0.3s, width 0.3s;
}

.svc3d-dot.is-active {
  background: var(--red-soft);
  width: 42px;
}

.svc3d-cta {
  position: absolute;
  bottom: calc(5vh + 36px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(250, 247, 242, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.25s var(--ease);
}

.svc3d-cta:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 900px) {
  .svc3d-card {
    --card-w: min(270px, 58.5vw);
    --card-h: min(180px, 37.8vw);
    --angle-step: 50deg;
    --y-step: 60px;
    --radius: 340px;
  }
  .svc3d-stage { perspective: 1100px; }
  .svc3d-card-text { left: 1rem; right: 1rem; bottom: 1rem; }
  .svc3d-cta { padding: 0.7rem 1.2rem; font-size: 0.72rem; }
}

@media (max-width: 600px) {
  .svc3d-card {
    --card-w: min(216px, 64.8vw);
    --card-h: min(180px, 54vw);
    --angle-step: 60deg;
    --y-step: 40px;
    --radius: 320px;
  }
  .svc3d-stage { perspective: 900px; }
  .svc3d-card-title { font-size: 1.1rem; line-height: 1.18; }
  .svc3d-card-desc { font-size: 0.82rem; line-height: 1.45; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .svc3d-card-num { font-size: 0.66rem; margin-bottom: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .svc3d-card { transition: none; filter: brightness(1) saturate(1); }
  .svc3d-rail { transform: none !important; }
}

/* ============ SERVICES STICKY STACK ============ */
.sticky-stack {
  position: relative;
  display: grid;
  gap: 1.25rem;
}

.sticky-card {
  position: sticky;
  top: 6rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15),
    0 18px 48px -15px rgba(168, 66, 59, 0.12),
    0 6px 18px rgba(15, 13, 12, 0.05);
}

.sticky-card-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sticky-card-num::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.sticky-card h3 {
  font-size: var(--t-5xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 1rem;
}

.sticky-card h3 em { color: var(--red); font-weight: 900; }

.sticky-card p {
  font-size: var(--t-base);
  color: var(--gray-700);
  line-height: 1.65;
}

.sticky-card-visual {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}

.sticky-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-out);
  will-change: transform;
}

.sticky-card-visual:hover img { transform: scale(1.04); }

/* ============ ACCORDION SCROLL (Notre maison) ============ */
.accordion-section { position: relative; }

/* Sticky variant — aside stays at top of viewport (CSS position:sticky)
   while items collapse one by one in the scrolling stack.
   No GSAP pin = no scroll spacer = no trailing empty space. */
.accordion-section-sticky {
  padding-top: clamp(5rem, 3rem + 4vw, 7rem);
  padding-bottom: clamp(2rem, 1rem + 1.5vw, 3rem);
}

.accordion-section-sticky .acc-aside {
  position: sticky;
  top: clamp(5rem, 3rem + 4vw, 7rem);
  align-self: start;
}

@media (max-width: 900px) {
  .accordion-section-sticky .acc-aside {
    position: static;
    top: auto;
  }
}

.acc-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 1rem + 4vw, 5.5rem);
  align-items: start;
}

.acc-aside {
  position: sticky;
  top: 7rem;
}

.acc-aside .section-head-num { display: block; margin-bottom: 1rem; }

.acc-aside h2 {
  font-size: var(--t-7xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 14ch;
}

.acc-aside h2 em { color: var(--red); font-weight: 900; }

.acc-aside-deck {
  margin-top: 1.5rem;
  font-size: var(--t-base);
  color: var(--gray-700);
  max-width: 38ch;
  line-height: 1.65;
}

.acc-stack {
  border-top: 1px solid var(--gray-300);
}

.acc-item {
  border-bottom: 1px solid var(--gray-300);
  padding-block: clamp(1.5rem, 1rem + 1.2vw, 2.25rem);
  cursor: pointer;
  position: relative;
  transition: padding-block 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.acc-header {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.acc-num {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.acc-title {
  font-size: var(--t-3xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
  transition: color 0.4s var(--ease);
}

.acc-title em {
  color: var(--red);
  font-weight: 900;
}

.acc-header::after {
  content: "";
  width: 22px;
  height: 22px;
  position: relative;
  background:
    linear-gradient(currentColor 0 0) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor 0 0) center / 1.5px 12px no-repeat;
  color: var(--ink);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), color 0.4s var(--ease);
  flex-shrink: 0;
}

.acc-item:not(.is-collapsed) .acc-header::after {
  background:
    linear-gradient(currentColor 0 0) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor 0 0) center / 0 12px no-repeat;
  color: var(--red);
  transform: rotate(180deg);
}

.acc-content {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  transition: grid-template-rows 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s cubic-bezier(0.65, 0, 0.35, 1), margin-top 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  opacity: 1;
  margin-top: 1.25rem;
  margin-left: calc(56px + 1.25rem);
}

.acc-content > p {
  min-height: 0;
  font-size: var(--t-base);
  color: var(--gray-700);
  line-height: 1.75;
  max-width: 58ch;
}

.acc-item.is-collapsed .acc-content {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
}

.acc-item:hover .acc-title { color: var(--red); }
.acc-item:hover .acc-header::after { color: var(--red); }

/* Last item is meant to be the currently-open one when the section is fully scrolled */
.acc-stack > .acc-item:last-child {
  border-bottom: none;
  padding-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .acc-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .acc-aside { position: static; }
  .acc-aside h2 { font-size: var(--t-5xl); }
  .acc-header { grid-template-columns: auto 1fr auto; gap: 1rem; }
  .acc-title { font-size: var(--t-2xl); }
  .acc-content { margin-left: 0; }
}

/* ============ RÉALISATIONS — MARQUEE HERO ============ */
/* Inspired by AnimatedMarqueeHero: centered tagline + heading + CTA on top,
   continuous horizontal marquee of slightly-rotated image cards at the bottom,
   with a soft gradient mask top & bottom. */
.real-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(5rem, 4rem + 4vw, 7.5rem) var(--pad-x) 0;
  isolation: isolate;
}

.real-hero::before {
  /* Subtle warm vignette so the marquee feels grounded */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 30%, rgba(168, 66, 59, 0.06) 0%, transparent 60%),
    radial-gradient(80% 45% at 50% 100%, rgba(20, 20, 22, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.real-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
}

.real-hero-content .kicker {
  margin-bottom: 1.4rem;
}

.real-hero-title {
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.real-hero-title em {
  font-style: normal;
  color: var(--red);
  font-weight: 900;
}

.real-hero-word {
  display: inline-block;
  margin-right: 0.25em;
}

.real-hero-desc {
  margin: 1.5rem auto 0;
  max-width: 52ch;
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--gray-700);
}

.real-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.95rem 1.8rem;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(168, 66, 59, 0.55);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.real-hero-cta:hover {
  background: var(--red-soft, #b04e46);
  box-shadow: 0 18px 38px -10px rgba(168, 66, 59, 0.7);
}

.real-hero-cta span {
  transition: transform 0.35s ease;
}

.real-hero-cta:hover span {
  transform: translateX(4px);
}

.real-hero-marquee {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 38%;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  display: flex;
  align-items: center;
}

.real-hero-track {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 0.5rem + 1vw, 1.5rem);
  white-space: nowrap;
  will-change: transform;
  animation: real-hero-scroll 38s linear infinite;
  padding-inline: clamp(1rem, 0.5rem + 1vw, 1.5rem);
}

html.js-anim .real-hero-track { animation: none; }

@keyframes real-hero-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.real-hero-card {
  --rot: 0deg;
  position: relative;
  flex-shrink: 0;
  display: block;
  width: clamp(180px, 14vw, 240px);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--gray-100);
  box-shadow:
    0 18px 38px -18px rgba(20, 20, 22, 0.35),
    0 4px 10px -4px rgba(20, 20, 22, 0.18);
  transform: rotate(var(--rot));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.real-hero-card:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.03);
  box-shadow:
    0 28px 50px -18px rgba(20, 20, 22, 0.45),
    0 6px 14px -4px rgba(20, 20, 22, 0.22);
}

.real-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .real-hero {
    min-height: auto;
    padding: 5rem var(--pad-x) 3rem;
  }
  .real-hero-marquee {
    position: relative;
    height: auto;
    margin-top: 3rem;
    padding-block: 1.5rem;
  }
  .real-hero-card {
    width: clamp(140px, 38vw, 200px);
  }
}

/* ============ MASONRY GALLERY ============ */
.masonry {
  columns: 3;
  column-gap: clamp(1rem, 0.5rem + 1vw, 1.5rem);
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: clamp(1rem, 0.5rem + 1vw, 1.5rem);
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  text-decoration: none;
  color: inherit;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.2s var(--ease-out);
  will-change: transform;
}

.masonry-item:hover img { transform: scale(1.05); }

.masonry-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 13, 12, 0.55));
  pointer-events: none;
}

.masonry-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.masonry-label small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.35rem;
  color: rgba(250, 247, 242, 0.82);
}

/* ============ DIVIDE-Y LISTS (anti-card) ============ */
.divide-list {
  border-top: 1px solid var(--gray-300);
}

.divide-list-item {
  display: grid;
  grid-template-columns: 64px 1fr 2fr auto;
  gap: clamp(1rem, 0.5rem + 1.5vw, 2.5rem);
  padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  border-bottom: 1px solid var(--gray-300);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s var(--ease), padding-inline 0.3s var(--ease);
}

.divide-list-item:hover { background: var(--cream); padding-inline: 0.75rem; }

.divide-list-num {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.divide-list-title {
  font-size: var(--t-3xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.divide-list-title em { color: var(--red); font-weight: 900; }

.divide-list-desc {
  font-size: var(--t-base);
  color: var(--gray-700);
  line-height: 1.6;
  max-width: 50ch;
}

.divide-list-arrow {
  font-size: 1.5rem;
  color: var(--ink);
  transition: transform 0.4s var(--ease-out), color 0.3s var(--ease);
  will-change: transform;
}

.divide-list-item:hover .divide-list-arrow { transform: translateX(0.6rem); color: var(--red); }

/* ============ CATEGORIES (réalisations) ============ */
.categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--gray-300);
}

.category-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 1rem + 4vw, 6rem);
  align-items: start;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-bottom: 1px solid var(--gray-300);
}

.category-row-title {
  font-size: var(--t-6xl);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.category-row-title em { color: var(--red); font-weight: 900; }

.category-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  padding-top: 0.8rem;
}

.category-type {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--gray-400);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.2s var(--ease);
}

.category-type:hover {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
  transform: translateY(-2px);
}

/* ============ ENGAGEMENT (split off-black) ============ */
/* Engagement section with background image */
.engagement-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.engagement-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.engagement-bg::after {
  /* Dark + red wash so the off-black text layout stays readable on the photo */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 13, 13, 0.93) 0%, rgba(14, 13, 13, 0.9) 100%),
    radial-gradient(70% 70% at 100% 0%, rgba(168, 66, 59, 0.26) 0%, transparent 65%);
}

.engagement-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 1rem + 3vw, 5rem);
  align-items: start;
}

.engagement-split-aside {
  position: sticky;
  top: 6rem;
}

.engagement-split-aside h2 {
  font-size: var(--t-7xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-top: 1.5rem;
  max-width: 14ch;
}

.engagement-split-aside h2 em { color: var(--red); font-weight: 900; }

.engagement-split-body > * + * { margin-top: 1.5rem; }

.engagement-split-body p {
  font-size: var(--t-lg);
  line-height: 1.55;
  max-width: 56ch;
}

.cert-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 247, 242, 0.15);
}

.cert-pill {
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(250, 247, 242, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--paper);
}

/* ============ CONTACT BLOCK ============ */
.contact-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 1rem + 4vw, 6rem);
  align-items: start;
}

.contact-info-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--gray-300);
}

.contact-info-item {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--gray-300);
}

.contact-info-item h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 0.55rem;
}

.contact-info-item .value {
  font-size: var(--t-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.2;
}

.contact-info-item .value a {
  position: relative;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.contact-info-item .value a:hover { color: var(--red); border-bottom-color: var(--red); }

.hours-list {
  font-size: 0.96rem;
  line-height: 1.65;
}

.hours-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.4rem;
}

.hours-list dt { color: var(--gray-700); font-weight: 500; }
.hours-list dd { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.contact-form {
  background: rgba(255, 255, 255, 0.6);
  padding: clamp(2rem, 1.25rem + 2vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 1.25rem;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15),
    0 24px 60px -20px rgba(168, 66, 59, 0.15),
    0 8px 22px rgba(15, 13, 12, 0.06);
}

.contact-form-head { margin-bottom: 0.5rem; }
.contact-form-head .kicker { margin-bottom: 1rem; }

.contact-form h2 {
  font-size: var(--t-4xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.contact-form h2 em { color: var(--red); font-weight: 900; }

.contact-form .intro {
  color: var(--gray-700);
  font-size: 0.96rem;
  margin-top: 0.85rem;
}

.field { display: grid; gap: 0.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.field label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.field input,
.field textarea,
.field select {
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-family: var(--font);
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}

.field textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23A8423B' stroke-width='1.6' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit { justify-self: start; margin-top: 0.5rem; }

.map-frame {
  margin-top: 3rem;
  aspect-ratio: 16 / 6;
  background: var(--gray-100);
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
}

.map-frame iframe { width: 100%; height: 100%; border: none; filter: grayscale(0.3) contrast(0.95); }

/* ============ CONTACT BLOCK — LEGACY DARK CTA (deprecated, unused) ============ */
.contact-block-deprecated {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(5rem, 4rem + 4vw, 8rem) 0 clamp(4rem, 3rem + 3vw, 6rem);
  isolation: isolate;
  overflow: hidden;
}

.contact-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(168, 66, 59, 0.22) 0%, transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(168, 66, 59, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.contact-block-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.contact-block-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.contact-block-title {
  font-size: clamp(2.8rem, 1.4rem + 5.4vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--paper);
  margin: 1rem 0 0;
}

.contact-block-title em {
  font-style: normal;
  color: var(--red-soft, #c25c54);
  font-weight: 900;
}

.contact-block-lead {
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.15rem);
  line-height: 1.55;
  color: rgba(250, 247, 242, 0.72);
  max-width: 56ch;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(250, 247, 242, 0.14);
}

.contact-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 3fr auto;
  align-items: center;
  gap: clamp(1rem, 0.5rem + 1.5vw, 2.5rem);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem) 0.5rem;
  border-bottom: 1px solid rgba(250, 247, 242, 0.14);
  color: var(--paper);
  text-decoration: none;
  transition: padding-left 0.5s var(--ease), color 0.4s var(--ease);
  overflow: hidden;
  isolation: isolate;
}

.contact-row::before {
  /* Red sweep that wipes in from the left on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-101%);
  transition: transform 0.55s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: -1;
}

.contact-row:hover {
  padding-left: 1.6rem;
  color: #fff;
}

.contact-row:hover::before {
  transform: translateX(0);
}

.contact-row-label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(250, 247, 242, 0.55);
  transition: color 0.4s var(--ease);
}

.contact-row:hover .contact-row-label {
  color: rgba(255, 255, 255, 0.85);
}

.contact-row-value {
  font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.contact-row-arrow {
  font-size: clamp(1.4rem, 1rem + 1vw, 2rem);
  line-height: 1;
  justify-self: end;
  transition: transform 0.5s var(--ease);
}

.contact-row:hover .contact-row-arrow {
  transform: translateX(6px);
}

.contact-block-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.5rem + 1.5vw, 2.5rem);
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  border-top: 1px solid rgba(250, 247, 242, 0.14);
}

.contact-block-meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-meta-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(250, 247, 242, 0.55);
}

.contact-meta-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .contact-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label arrow"
      "value arrow";
    gap: 0.5rem 1rem;
    padding: 1.5rem 0.25rem;
  }
  .contact-row-label { grid-area: label; }
  .contact-row-value { grid-area: value; font-size: clamp(1.4rem, 1rem + 3vw, 2rem); }
  .contact-row-arrow { grid-area: arrow; align-self: center; }
  .contact-block-meta { grid-template-columns: 1fr; }
}

/* ============ À PROPOS — PROSE / SPLIT / QUALIF / FEDER / PARTNERS ============ */
.about-prose {
  max-width: 760px;
  margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}

.about-prose p {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0 0 1.1rem;
  max-width: none;
}

.about-prose p:last-child { margin-bottom: 0; }

/* Production split */
.about-split {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

.about-split-text .section-head-num { display: inline-block; margin-bottom: 1rem; }

.about-split-text h2 {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 1.5rem;
}

.about-split-text h2 em { font-style: normal; color: var(--red); font-weight: 900; }

.about-split-text p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-700);
  margin: 0 0 1.1rem;
}

.about-split-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 30px 70px -25px rgba(20, 20, 22, 0.4);
}

/* Qualifications card grid */
.qualif-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 0.5rem + 1vw, 1.5rem);
}

.qualif-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--gray-200, #eee);
  border-top: 3px solid var(--red);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.qualif-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -24px rgba(20, 20, 22, 0.28);
}

.qualif-card-codes {
  font-size: clamp(1.3rem, 1rem + 0.9vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.9rem;
}

.qualif-card-title {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  color: var(--ink);
}

.qualif-card-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--gray-700);
  margin: 0;
}

.qualif-card-rge {
  background: var(--ink);
  border-color: var(--ink);
}

.qualif-card-rge .qualif-card-codes { color: var(--red-soft, #d05c52); letter-spacing: 0.02em; }
.qualif-card-rge .qualif-card-title { color: var(--paper); }
.qualif-card-rge .qualif-card-desc { color: rgba(250, 247, 242, 0.72); }

/* FEDER block (dark) with background image */
.about-feder {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.about-feder-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.about-feder-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-feder-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 13, 13, 0.9) 0%, rgba(14, 13, 13, 0.88) 100%),
    radial-gradient(60% 70% at 100% 0%, rgba(168, 66, 59, 0.28) 0%, transparent 62%);
}

.about-feder-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
}

.about-feder-title {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--paper);
  margin: 0;
  max-width: 22ch;
}

.about-feder-title em { font-style: normal; color: var(--red-soft, #d05c52); font-weight: 900; }

.feder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}

.feder-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(250, 247, 242, 0.82);
  margin: 0 0 1.75rem;
}

.feder-aid {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem;
  border-left: 3px solid var(--red);
  background: rgba(250, 247, 242, 0.04);
  border-radius: 0 6px 6px 0;
}

.feder-aid-num {
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--paper);
}

.feder-aid-label {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(250, 247, 242, 0.7);
}

.feder-goals h3 {
  color: var(--paper);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.feder-goals ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feder-goals li {
  position: relative;
  padding: 0 0 1rem 1.75rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(250, 247, 242, 0.82);
}

.feder-goals li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red-soft, #d05c52);
  font-weight: 700;
}

/* Partners */
.partner-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
}

.partner-card {
  background: #fff;
  border: 1px solid var(--gray-200, #eee);
  border-radius: 8px;
  padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 24px 50px -24px rgba(20, 20, 22, 0.3);
}

.partner-logo {
  display: flex;
  align-items: center;
  height: 52px;
  margin-bottom: 1.25rem;
}

.partner-logo img {
  max-height: 44px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
}

.partner-logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
}

.partner-logo-rehau {
  letter-spacing: 0.02em;
  color: #d3122a; /* REHAU brand red */
  font-weight: 800;
}

.partner-logo-installux {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}

.partner-logo-installux::after {
  content: "+";
  color: var(--red);
  font-weight: 800;
  margin-left: 0.1em;
}

.partner-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(168, 66, 59, 0.1);
  color: var(--red);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.partner-card p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--gray-700);
  margin: 0 0 1rem;
}

.partner-card p:last-child { margin-bottom: 0; }

/* Partner wall (full list) */
.partner-wall-intro {
  margin: clamp(2.5rem, 2rem + 1.5vw, 3.5rem) 0 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gray-500);
}

.partner-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.partner-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--gray-300);
  background: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.25s var(--ease);
}

.partner-chip:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .qualif-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .about-split { grid-template-columns: 1fr; }
  .feder-grid { grid-template-columns: 1fr; }
  .partner-cards { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .qualif-grid { grid-template-columns: 1fr; }
}

/* ============ À PROPOS — TIMELINE / STATS / VALUES ============ */
.timeline {
  list-style: none;
  margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0 0;
  padding: 0;
  position: relative;
  max-width: 880px;
}

.timeline::before {
  /* Vertical spine */
  content: "";
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--red) 0%, var(--gray-300) 100%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  padding-bottom: clamp(2rem, 1.5rem + 1.5vw, 3.25rem);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 6px var(--paper);
}

.timeline-body {
  padding-top: 0.4rem;
}

.timeline-body h3 {
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.65rem;
}

.timeline-body h3 em {
  font-style: normal;
  color: var(--red);
  font-weight: 900;
}

.timeline-body p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-700);
  margin: 0;
}

/* Stats band */
.about-stats-section {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 2rem + 3vw, 5rem) 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.about-stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, rgba(168, 66, 59, 0.22) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  padding-left: 1.25rem;
  border-left: 2px solid rgba(168, 66, 59, 0.8);
}

.about-stat-num {
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.about-stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--gray-600);
}

/* Dark context (legacy stats band) keeps light text */
.about-stats-section .about-stat-num { color: var(--paper); }
.about-stats-section .about-stat-label { color: rgba(250, 247, 242, 0.65); }

/* Values cards */
.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0 2.5rem;
}

.about-value-card {
  background: #fff;
  border: 1px solid var(--gray-200, #eee);
  border-radius: 8px;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.about-value-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 20px 44px -22px rgba(20, 20, 22, 0.28);
}

.about-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(168, 66, 59, 0.1);
  color: var(--red);
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.about-value-card h3 {
  font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.45rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.about-value-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0;
}

.about-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 760px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-values { grid-template-columns: 1fr; }
}

/* ============ RÉALISATIONS — FILTRABLE GALLERY + LIGHTBOX ============ */
.gal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: clamp(1.5rem, 1rem + 1vw, 2.5rem) 0 clamp(2rem, 1.5rem + 1.5vw, 3rem);
}

.gal-filter {
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  border: 1px solid var(--gray-300);
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.2s var(--ease);
}

.gal-filter:hover {
  border-color: var(--red);
  color: var(--red);
}

.gal-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.5rem + 1vw, 1.5rem);
}

.gal-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-100);
  outline: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.gal-item.is-hidden {
  display: none;
}

.gal-item:focus-visible {
  box-shadow: 0 0 0 3px var(--red);
}

.gal-item-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.gal-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gal-item:hover .gal-item-media img {
  transform: scale(1.1);
}

.gal-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1rem;
  background: rgba(20, 20, 22, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.gal-item:hover .gal-item-overlay,
.gal-item:focus-visible .gal-item-overlay {
  opacity: 1;
}

.gal-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(250, 247, 242, 0.7);
  color: var(--paper);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
}

.gal-item-title {
  color: var(--paper);
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.3rem);
  letter-spacing: -0.02em;
  margin: 0;
}

.gal-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Lightbox */
.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 0.5rem + 2vw, 3rem);
  background: rgba(12, 11, 10, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.gal-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gal-lb-inner {
  position: relative;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  transform: scale(0.94);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gal-lightbox.is-open .gal-lb-inner {
  transform: scale(1);
}

.gal-lb-img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}

.gal-lb-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--paper);
}

.gal-lb-title {
  margin: 0;
  font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.5rem);
  color: var(--paper);
  letter-spacing: -0.02em;
}

.gal-lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(250, 247, 242, 0.25);
  background: rgba(250, 247, 242, 0.08);
  color: var(--paper);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.2s var(--ease);
}

.gal-lb-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.gal-lb-close {
  top: clamp(1rem, 0.5rem + 2vw, 2rem);
  right: clamp(1rem, 0.5rem + 2vw, 2rem);
}

.gal-lb-prev {
  left: clamp(1rem, 0.5rem + 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
}

.gal-lb-next {
  right: clamp(1rem, 0.5rem + 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
}

.gal-lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.gal-lb-next:hover { transform: translateY(-50%) scale(1.08); }

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

@media (max-width: 560px) {
  .gal-grid { grid-template-columns: 1fr; }
  .gal-lb-prev { left: 0.5rem; }
  .gal-lb-next { right: 0.5rem; }
}

/* ============ SERVICE DETAIL PAGE ============ */
/* Full-bleed image hero on top, then editorial intro, features grid + image,
   and a "discover other services" cross-link block at the bottom. */
.svc-detail-hero {
  position: relative;
  min-height: 78vh;
  min-height: 78dvh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(7rem, 5rem + 5vw, 10rem) 0 clamp(3rem, 2rem + 2vw, 5rem);
}

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

.svc-detail-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-detail-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 20, 22, 0.55) 0%, rgba(20, 20, 22, 0.35) 40%, rgba(20, 20, 22, 0.85) 100%),
    radial-gradient(60% 60% at 100% 0%, rgba(168, 66, 59, 0.25) 0%, transparent 70%);
}

.svc-detail-hero-content {
  position: relative;
  z-index: 1;
}

.svc-detail-num {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(250, 247, 242, 0.75);
}

.svc-detail-title {
  font-size: clamp(2.8rem, 1.4rem + 5.4vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--paper);
  margin: 0.6rem 0 1.5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.svc-detail-title em {
  font-style: normal;
  color: var(--red-soft, #d05c52);
  font-weight: 900;
}

.svc-detail-lead {
  max-width: 56ch;
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.4rem);
  line-height: 1.55;
  color: rgba(250, 247, 242, 0.92);
  margin: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* Breadcrumb light variant for use over dark hero */
.breadcrumb-light a, .breadcrumb-light .current { color: var(--paper); }
.breadcrumb-light .sep, .breadcrumb-light .current { color: rgba(250, 247, 242, 0.6); }
.breadcrumb-light a:hover { color: var(--red-soft, #d05c52); }

/* Intro paragraph */
.svc-detail-intro {
  max-width: 760px;
}

.svc-detail-intro-text {
  margin-top: 1rem;
  font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.5rem);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
  max-width: none;
}

/* Features grid + image */
.svc-detail-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

.svc-detail-features h2 {
  font-size: clamp(2rem, 1.4rem + 2vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0.75rem 0 2rem;
}

.svc-detail-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--gray-300);
}

.svc-detail-feature-list li {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 2fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--gray-300);
}

.svc-feat-label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
}

.svc-feat-text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

.svc-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 30px 70px -25px rgba(20, 20, 22, 0.4);
}

/* Inline CTA + other services */
.svc-detail-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding-block: clamp(2rem, 1.5rem + 1vw, 3rem);
  border-bottom: 1px solid var(--gray-300);
}

.svc-detail-cta h2 {
  font-size: clamp(2rem, 1.4rem + 2vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0.75rem 0 0.5rem;
}

.svc-detail-cta h2 em {
  font-style: normal;
  color: var(--red);
  font-weight: 900;
}

.svc-detail-also {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.svc-detail-also-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.5rem + 1vw, 1.5rem);
  margin-top: 1.5rem;
}

.svc-detail-also-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  transition: transform 0.5s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.svc-detail-also-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.95);
  transition: transform 0.8s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)), filter 0.5s ease;
}

.svc-detail-also-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(20, 20, 22, 0.85) 100%);
  z-index: 1;
}

.svc-detail-also-card > div {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.1rem;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.svc-detail-also-num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(250, 247, 242, 0.7);
  margin-bottom: 0.35rem;
}

.svc-detail-also-card h3 {
  font-size: clamp(1.1rem, 0.9rem + 0.5vw, 1.4rem);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--paper);
  line-height: 1.1;
}

.svc-detail-also-card h3 em {
  font-style: normal;
  color: var(--red-soft, #d05c52);
  font-weight: 900;
}

.svc-detail-also-arrow {
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.4s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.svc-detail-also-card:hover {
  transform: translateY(-4px);
}

.svc-detail-also-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.85);
}

.svc-detail-also-card:hover .svc-detail-also-arrow {
  transform: translateX(6px);
}

@media (max-width: 900px) {
  .svc-detail-grid { grid-template-columns: 1fr; }
  .svc-detail-cta { grid-template-columns: 1fr; align-items: start; }
  .svc-detail-also-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .svc-detail-feature-list li { grid-template-columns: 1fr; gap: 0.4rem; }
  .svc-detail-also-grid { grid-template-columns: 1fr; }
}

/* ============ SERVICES — 5 BLOCKS WITH IMAGES ============ */
/* Bento-style 3+2 grid: three cards in row 1 (each spans 2/6), two cards in
   row 2 (each spans 3/6 = wide). Hover zooms the media, slides body content
   up, and reveals a red gradient overlay. */
.svc-blocks-section {
  padding-top: clamp(2.5rem, 1.5rem + 2vw, 4rem);
}

.svc-blocks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 0.5rem + 1vw, 1.75rem);
}

.svc-block {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--paper);
  isolation: isolate;
  min-height: clamp(380px, 36vw, 520px);
  transition: transform 0.5s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
              box-shadow 0.5s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
  box-shadow:
    0 14px 30px -16px rgba(20, 20, 22, 0.35),
    0 4px 10px -4px rgba(20, 20, 22, 0.15);
}

.svc-block-wide {
  grid-column: span 3;
}

.svc-block-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.svc-block-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  filter: brightness(0.78) saturate(0.95);
}

.svc-block::before {
  /* Bottom-up dark gradient that keeps the label legible regardless of image */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 22, 0) 0%,
    rgba(20, 20, 22, 0.1) 45%,
    rgba(20, 20, 22, 0.7) 80%,
    rgba(20, 20, 22, 0.94) 100%
  );
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.svc-block::after {
  /* Red wipe that appears on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(168, 66, 59, 0.0) 35%,
    rgba(168, 66, 59, 0.55) 85%,
    rgba(168, 66, 59, 0.85) 100%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.svc-block-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: clamp(1.4rem, 1rem + 1vw, 2.2rem);
  transition: transform 0.5s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.svc-block-num {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(250, 247, 242, 0.7);
  margin-bottom: 0.75rem;
}

.svc-block-title {
  font-size: clamp(1.5rem, 1rem + 1.2vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--paper);
  margin: 0 0 0.6rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.svc-block-title em {
  font-style: normal;
  color: var(--red-soft, #d05c52);
  font-weight: 900;
}

.svc-block-desc {
  max-width: 38ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(250, 247, 242, 0.84);
  margin: 0;
  /* Hidden by default; revealed on hover */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
              opacity 0.5s ease,
              margin-top 0.4s ease;
}

.svc-block-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--paper);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.svc-block-cta span {
  display: inline-block;
  transition: transform 0.35s ease;
}

/* Hover states */
.svc-block:hover {
  transform: translateY(-6px);
  box-shadow:
    0 30px 60px -20px rgba(20, 20, 22, 0.45),
    0 8px 18px -4px rgba(168, 66, 59, 0.25);
}

.svc-block:hover .svc-block-media img {
  transform: scale(1.07);
  filter: brightness(0.85) saturate(1.05);
}

.svc-block:hover::after {
  opacity: 1;
}

.svc-block:hover .svc-block-body {
  transform: translateY(-4px);
}

.svc-block:hover .svc-block-desc {
  max-height: 6rem;
  opacity: 1;
  margin-top: 0.4rem;
}

.svc-block:hover .svc-block-cta {
  opacity: 1;
  transform: translateY(0);
}

.svc-block:hover .svc-block-cta span {
  transform: translateX(5px);
}

@media (max-width: 1024px) {
  .svc-blocks { grid-template-columns: repeat(2, 1fr); }
  .svc-block { grid-column: span 1; }
  .svc-block-wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .svc-blocks { grid-template-columns: 1fr; }
  .svc-block, .svc-block-wide { grid-column: span 1; min-height: 320px; }
  .svc-block-desc { max-height: none; opacity: 1; margin-top: 0.4rem; }
  .svc-block-cta { opacity: 1; transform: none; }
}

/* ============ CONTACT — SPLIT FORM CARD ============ */
/* Light, editorial split: typographic aside (title + ways to reach) on the
   left, a real-looking contact form card on the right with underline-style
   inputs that get a red bottom border on focus. */
.contact-form-section {
  position: relative;
  background: var(--paper);
  padding: clamp(5rem, 4rem + 4vw, 8rem) 0;
  overflow: hidden;
  isolation: isolate;
}

.contact-form-section::before {
  /* Soft warm vignette top-right */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(65% 55% at 100% 0%, rgba(168, 66, 59, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.contact-form-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.contact-form-aside {
  position: sticky;
  top: clamp(5rem, 4rem + 3vw, 7rem);
  align-self: start;
}

.contact-form-title {
  font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ink);
  margin: 1rem 0 0;
}

.contact-form-title em {
  font-style: normal;
  color: var(--red);
  font-weight: 900;
}

.contact-form-lead {
  margin: 1.4rem 0 2.5rem;
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.1rem);
  line-height: 1.55;
  color: var(--gray-700);
  max-width: 42ch;
}

.contact-form-ways {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--gray-300);
}

.contact-form-ways li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--gray-300);
}

.cf-way-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gray-500);
}

.cf-way-value {
  font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
  position: relative;
  display: inline-block;
}

a.cf-way-value::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

a.cf-way-value:hover {
  color: var(--red);
}

a.cf-way-value:hover::after {
  transform: scaleX(1);
}

.cf-way-value-static { color: var(--gray-700); font-weight: 500; }

/* Form card */
.contact-form-card {
  background: #fff;
  border-radius: 6px;
  padding: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  box-shadow:
    0 30px 60px -20px rgba(20, 20, 22, 0.18),
    0 6px 16px -4px rgba(20, 20, 22, 0.08),
    0 0 0 1px rgba(20, 20, 22, 0.04);
}

.cf-row {
  display: grid;
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.cf-row + .cf-row,
.cf-row + .cf-field,
.cf-field + .cf-row,
.cf-field + .cf-field {
  margin-top: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.cf-row-2 {
  grid-template-columns: 1fr 1fr;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
}

.cf-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gray-600);
  transition: color 0.3s var(--ease);
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--gray-300);
  padding: 0.7rem 0;
  outline: none;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
  width: 100%;
  letter-spacing: -0.005em;
}

.cf-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.cf-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23A8423B' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  background-size: 12px 8px;
  padding-right: 1.5rem;
  cursor: pointer;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: var(--gray-400);
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-bottom-color: var(--red);
}

.cf-field:focus-within .cf-label {
  color: var(--red);
}

.cf-actions {
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.cf-consent {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--gray-500);
  max-width: 42ch;
}

.cf-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.6rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 10px 22px -8px rgba(20, 20, 22, 0.35);
}

.cf-submit span {
  transition: transform 0.35s var(--ease);
}

.cf-submit:hover {
  background: var(--red);
  box-shadow: 0 14px 28px -8px rgba(168, 66, 59, 0.5);
  transform: translateY(-2px);
}

.cf-submit:hover span {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-aside { position: relative; top: 0; }
  .cf-row-2 { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(5rem, 3rem + 5vw, 8rem);
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 66, 59, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.site-footer ::selection { background: var(--paper); color: var(--ink); }

.footer-mega {
  font-size: var(--t-8xl);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 4rem;
  max-width: 20ch;
  position: relative;
  z-index: 1;
  /* Override the global h1–h5 rule which sets color: var(--ink) (would render
     black-on-black on the dark footer). */
  color: var(--paper);
}

/* Logo watermark above the footer grid (replaces the mega headline) */
.footer-watermark {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 5rem);
  pointer-events: none;
}

.footer-watermark img {
  width: clamp(160px, 28vw, 340px);
  height: auto;
  opacity: 0.07;
  /* Logo art is red on transparent; lift it to the paper tone so it reads as a
     subtle ghost on the dark footer. */
  filter: brightness(0) invert(1);
  user-select: none;
}

.footer-mega em { color: var(--red); font-weight: 900; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-block: 3rem;
  border-block: 1px solid rgba(250, 247, 242, 0.1);
  position: relative;
  z-index: 1;
}

.footer-brand .brand-wordmark .w1 { color: var(--paper); }

.footer-brand p {
  margin-top: 1.5rem;
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(250, 247, 242, 0.65);
  max-width: 36ch;
}

.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 0.55rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.65);
}

.footer-col a {
  color: rgba(250, 247, 242, 0.65);
  transition: color 0.3s var(--ease);
}

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

.footer-socials { display: flex; gap: 0.6rem; margin-top: 1.5rem; }

.footer-socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 247, 242, 0.2);
  border-radius: 50%;
  color: rgba(250, 247, 242, 0.85);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.25s var(--ease);
}

.footer-socials a:hover {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
  transform: translateY(-2px);
}

.footer-socials svg { width: 15px; height: 15px; fill: currentColor; }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: rgba(250, 247, 242, 0.45);
}

.footer-base a {
  color: rgba(250, 247, 242, 0.6);
  transition: color 0.3s var(--ease);
}

.footer-base a:hover { color: var(--paper); }

/* ============ REVEAL ANIMATIONS ============
   Fallback (no JS): CSS opacity transition handles reveals.
   When JS loads, html.js-anim neutralizes CSS so GSAP can take over.
   ===================================================== */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  will-change: transform, opacity;
}

[data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  will-change: transform, opacity;
}

[data-reveal-stagger].is-in > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* When JS animation engine is loaded, neutralize CSS reveals (GSAP takes over) */
html.js-anim [data-reveal],
html.js-anim [data-reveal-stagger] > * {
  opacity: 1;
  transform: none;
  transition: none;
}

/* SplitType line masks */
.line { overflow: hidden; display: block; }
.line-inner { display: inline-block; will-change: transform; }

/* Magnetic targets — ensure hw acceleration */
.btn, .header-phone, .link-arrow, .filter-chip, .category-type {
  transform: translate3d(0, 0, 0);
}

/* Lenis recommended (avoid scroll jank) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Disable old .page-enter CSS animation since GSAP handles hero entry */
html.js-anim .page-enter > * {
  animation: none;
}

.page-enter > * {
  animation: enter 1s var(--ease-out) backwards;
  will-change: transform, opacity;
}

.page-enter > *:nth-child(1) { animation-delay: 0.1s; }
.page-enter > *:nth-child(2) { animation-delay: 0.2s; }
.page-enter > *:nth-child(3) { animation-delay: 0.3s; }
.page-enter > *:nth-child(4) { animation-delay: 0.4s; }

@keyframes enter {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .masonry { columns: 2; }
}

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }

  .nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--pad-x);
    gap: 1rem;
    z-index: 90;
  }

  .nav.is-open { display: flex; }

  .nav a {
    font-size: var(--t-5xl);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ink);
  }

  .site-header.is-dark .nav a { color: var(--ink); }
  .nav a::after { display: none; }

  .header-end { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: currentColor;
    z-index: 95;
    position: relative;
  }

  .nav-toggle-bars { display: inline-block; width: 22px; height: 12px; position: relative; }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: currentColor;
    transition: transform 0.3s var(--ease);
  }

  .nav-toggle-bars::before { top: 2px; }
  .nav-toggle-bars::after { bottom: 2px; }

  .nav-toggle.is-open { color: var(--ink); }
  .nav-toggle.is-open .nav-toggle-bars::before { transform: translate3d(0, 4px, 0) rotate(45deg); }
  .nav-toggle.is-open .nav-toggle-bars::after { transform: translate3d(0, -4px, 0) rotate(-45deg); }

  .hero { padding-top: 7rem; padding-bottom: 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media { transform: none; aspect-ratio: 4 / 3; }
  .hero-meta { flex-wrap: wrap; gap: 1.25rem 2rem; }

  .page-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .zigzag, .zigzag.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }
  .zigzag-visual::after { display: none; }
  .zigzag-stats { flex-wrap: wrap; }

  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .section-head-row { grid-template-columns: 1fr; gap: 1rem; }

  .bento { grid-template-columns: 1fr; }
  .bento-cell.c-4, .bento-cell.c-5, .bento-cell.c-6, .bento-cell.c-7, .bento-cell.c-8 { grid-column: span 1; }

  .sticky-card {
    position: static;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.75rem;
  }

  .masonry { columns: 1; }

  .divide-list-item {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.5rem 1rem;
    padding-inline: 0 !important;
  }
  .divide-list-desc { grid-column: 1 / -1; padding-top: 0.5rem; }

  .category-row { grid-template-columns: 1fr; gap: 1.25rem; }

  .engagement-split { grid-template-columns: 1fr; }
  .engagement-split-aside { position: static; }

  .contact-split { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-mega { font-size: var(--t-6xl); }
}

@media (max-width: 540px) {
  :root { --pad-x: 1.25rem; }
  .masonry { columns: 1; }
  .hero-meta-item { width: 48%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: translate3d(0, 0, 0); }
  .marquee-track { animation: none; }
}
