/* =========================================================================
   T.R.R Versailles — Design System
   Cabinet d'architecte × construction premium
   ========================================================================= */

/* --- Tokens ----------------------------------------------------------- */
:root {
  /* Palette */
  --ink: #0E1B5F;          /* encre, bleu nuit, héritage */
  --ink-deep: #060B33;
  --accent: #C84B31;        /* sienne brûlée, matériau */
  --accent-soft: #E0B49A;
  --plaster: #F5F1E8;       /* plâtre brut */
  --stone: #EAE3D3;         /* pierre claire */
  --paper: #FFFFFF;
  --ink-text: #0A0A0F;
  --ink-soft: #2A2A33;
  --muted: #7A7268;
  --line: #DDD5C5;
  --line-dark: #1A1A33;

  /* Surface */
  --bg: var(--plaster);
  --surface: var(--paper);
  --surface-dark: var(--ink);
  --text: var(--ink-text);
  --text-soft: var(--ink-soft);
  --text-muted: var(--muted);
  --text-on-dark: #F4F1EB;
  --border: var(--line);

  /* Typography */
  --f-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Scale (clamp) */
  --t-hero: clamp(2.25rem, 1.3rem + 2.8vw, 4rem);
  --t-h1: clamp(2.25rem, 1.5rem + 3.6vw, 4.5rem);
  --t-h2: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
  --t-h3: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  --t-h4: clamp(1.1rem, 0.95rem + 0.6vw, 1.35rem);
  --t-body: clamp(1rem, 0.92rem + 0.25vw, 1.0625rem);
  --t-small: 0.875rem;
  --t-eyebrow: 0.78rem;

  /* Spacing scale (8pt + golden) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --s-11: 12rem;

  /* Layout */
  --container: 1320px;
  --container-narrow: 920px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --section-y: clamp(4rem, 2rem + 8vw, 9rem);
  --radius: 0;             /* architectural : pas d'arrondi */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 600ms;

  /* Z-index */
  --z-nav: 50;
  --z-overlay: 80;
  --z-modal: 100;
}

/* --- Reset minimal ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
p { line-height: 1.65; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--plaster); }

/* --- Layout ----------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--text-on-dark); }
.section--paper { background: var(--paper); }
.section--stone { background: var(--stone); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
}

/* --- Typographie ------------------------------------------------------ */
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  flex-wrap: wrap;
  max-width: 100%;
  word-break: break-word;
  min-width: 0;
}
.eyebrow > * { min-width: 0; }
@media (max-width: 640px) {
  .eyebrow { letter-spacing: 0.12em; }
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--light { color: rgba(244, 241, 235, 0.6); }
.section--dark .eyebrow { color: rgba(244, 241, 235, 0.55); }
.section--dark .eyebrow::before { background: rgba(244, 241, 235, 0.4); }

.display { font-size: var(--t-hero); font-family: var(--f-display); font-weight: 400; line-height: 0.98; letter-spacing: -0.035em; }
.h1 { font-size: var(--t-h1); font-family: var(--f-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.025em; }
.h2 { font-size: var(--t-h2); font-family: var(--f-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.022em; }
.h3 { font-size: var(--t-h3); font-family: var(--f-display); font-weight: 400; line-height: 1.15; letter-spacing: -0.018em; }
.h4 { font-size: var(--t-h4); font-family: var(--f-display); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.1rem, 0.95rem + 0.55vw, 1.35rem); line-height: 1.55; color: var(--text-soft); max-width: 60ch; }
.section--dark .lead { color: rgba(244, 241, 235, 0.78); }
.text-mono { font-family: var(--f-mono); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-ink { color: var(--ink); }
.italic { font-style: italic; }

/* Numéro de section, format "01 / SERVICE" */
.section-num {
  font-family: var(--f-mono);
  font-size: var(--t-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: var(--s-3);
  font-weight: 500;
}
.section-num .num { color: var(--ink); font-weight: 600; }
.section--dark .section-num { color: rgba(244, 241, 235, 0.5); }
.section--dark .section-num .num { color: var(--accent-soft); }

/* Drop cap pour les éditos */
.dropcap::first-letter {
  font-family: var(--f-display);
  font-size: 4.5rem;
  line-height: 0.85;
  float: left;
  padding: 0.3rem 0.6rem 0 0;
  color: var(--accent);
  font-weight: 400;
}

/* --- Liens ------------------------------------------------------------ */
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-bottom: 2px;
  color: inherit;
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.link-underline:hover::after { transform-origin: left; transform: scaleX(0); animation: link-underline-in var(--dur) var(--ease-out) forwards 0.05s; }
@keyframes link-underline-in { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }

/* --- Boutons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}
.btn .arrow {
  width: 1rem; height: 1rem;
  transition: transform var(--dur) var(--ease-out);
  flex-shrink: 0;
}
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--ink);
  color: var(--plaster);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--accent);
  color: var(--plaster);
  border-color: var(--accent);
}
.btn--accent:hover {
  background: #A93A22;
  border-color: #A93A22;
  transform: translateY(-1px);
}

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

.btn--ghost-light {
  background: transparent;
  color: var(--plaster);
  border-color: rgba(244, 241, 235, 0.4);
}
.btn--ghost-light:hover {
  border-color: var(--plaster);
  background: rgba(244, 241, 235, 0.05);
}

.btn--link {
  padding: 0;
  background: transparent;
  color: inherit;
  border-radius: 0;
}
.btn--link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.btn--link:hover::after { transform-origin: left; transform: scaleX(0); animation: link-underline-in var(--dur) var(--ease-out) forwards 0.05s; }

/* --- Navigation ------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  background: transparent;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), padding var(--dur) var(--ease-out);
  padding: 1.4rem 0;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border);
  padding: 0.85rem 0;
}
.nav.is-dark {
  background: rgba(14, 27, 95, 0.6);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: rgba(244, 241, 235, 0.08);
}
.nav.is-dark.is-scrolled {
  background: rgba(14, 27, 95, 0.94);
  border-bottom-color: rgba(244, 241, 235, 0.12);
}
.nav.is-dark .nav__link,
.nav.is-dark .nav__brand-name,
.nav.is-dark .nav__brand-meta { color: var(--plaster); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  z-index: 2;
}
.nav__brand-mark {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nav__brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav__brand-text { line-height: 1; display: flex; flex-direction: column; gap: 2px; }
.nav__brand-name {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__brand-meta {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav__item {}
.nav__link {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0.9rem; right: 0.9rem;
  bottom: 0.25rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--accent); }

/* --- Dropdown "Prestations" --- */
.nav__item { position: relative; }
.nav__caret {
  display: inline-block;
  width: 10px; height: 10px;
  margin-left: 0.4rem;
  vertical-align: middle;
  transition: transform 0.25s var(--ease-out);
  flex-shrink: 0;
}
.nav__item.has-dropdown > .nav__link { padding-right: 0.65rem; }
.nav__item.has-dropdown.is-open > .nav__link .nav__caret,
.nav__item.has-dropdown:hover > .nav__link .nav__caret { transform: rotate(180deg); }
.nav__item.has-dropdown.is-open > .nav__link,
.nav__item.has-dropdown:hover > .nav__link { color: var(--accent); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 380px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem;
  box-shadow: 0 24px 60px -20px rgba(14, 27, 95, 0.25), 0 4px 16px -6px rgba(14, 27, 95, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0s 0.2s;
  z-index: 50;
}
.nav__item.has-dropdown:hover > .nav__dropdown,
.nav__item.has-dropdown.is-open > .nav__dropdown,
.nav__item.has-dropdown:focus-within > .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0s 0s;
}
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0; right: 0;
  height: 8px;
  background: transparent;
}
.nav__dropdown-overview {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  background: var(--plaster);
  margin-bottom: 0.3rem;
  transition: background 0.15s;
  position: relative;
  padding-right: 2.4rem; /* laisse la place à la flèche à droite */
}
.nav__dropdown-overview .arrow {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
}
.nav__dropdown-overview:hover .arrow {
  transform: translateY(-50%) translateX(3px);
}
.nav__dropdown-overview:hover { background: var(--stone); }
.nav__dropdown-overview-num {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.nav__dropdown-overview-icon,
.nav__dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--plaster);
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}
.nav__dropdown-icon svg,
.nav__dropdown-overview-icon svg {
  width: 20px;
  height: 20px;
}
.nav__dropdown-overview:hover .nav__dropdown-overview-icon {
  background: var(--stone);
}
.nav__dropdown-link:hover .nav__dropdown-icon {
  background: var(--stone);
}
.nav__dropdown-link.is-current .nav__dropdown-icon {
  background: var(--accent);
  color: var(--plaster);
}
.nav__dropdown-overview-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.nav__dropdown-overview-text strong {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--f-display);
  letter-spacing: -0.01em;
}
.nav__dropdown-overview-text em {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: normal;
  margin-top: 0.1rem;
}
.nav__dropdown-sep {
  height: 1px;
  background: var(--line);
  margin: 0.3rem 0.5rem;
}
.nav__dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.nav__dropdown-link:hover { background: var(--plaster); }
.nav__dropdown-link.is-current { background: var(--plaster); color: var(--accent); }
.nav__dropdown-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.nav__dropdown-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--f-display);
  letter-spacing: -0.01em;
}
.nav__dropdown-link.is-current .nav__dropdown-name { color: var(--accent); }
.nav__dropdown-tag {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.nav.is-dark .nav__dropdown {
  background: var(--ink-deep);
  border-color: rgba(244, 241, 235, 0.12);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
}
.nav.is-dark .nav__dropdown-overview { background: rgba(244, 241, 235, 0.06); color: var(--plaster); }
.nav.is-dark .nav__dropdown-overview:hover { background: rgba(244, 241, 235, 0.1); }
.nav.is-dark .nav__dropdown-overview .arrow { color: var(--plaster); }
.nav.is-dark .nav__dropdown-sep { background: rgba(244, 241, 235, 0.12); }
.nav.is-dark .nav__dropdown-link:hover { background: rgba(244, 241, 235, 0.06); }
.nav.is-dark .nav__dropdown-link.is-current { background: rgba(244, 241, 235, 0.08); }
.nav.is-dark .nav__dropdown-name,
.nav.is-dark .nav__dropdown-overview-text strong { color: var(--plaster); }
.nav.is-dark .nav__dropdown-tag,
.nav.is-dark .nav__dropdown-overview-text em { color: rgba(244, 241, 235, 0.55); }
.nav.is-dark .nav__dropdown-overview-icon,
.nav.is-dark .nav__dropdown-icon {
  background: rgba(244, 241, 235, 0.08);
  color: var(--plaster);
}
.nav.is-dark .nav__dropdown-link.is-current .nav__dropdown-icon {
  background: var(--accent-soft);
  color: var(--ink-deep);
}
.nav.is-dark .nav__dropdown-link.is-current .nav__dropdown-name { color: var(--accent-soft); }

/* Mobile drawer sub-items */
.nav__drawer-link--parent { font-weight: 600; }
.nav__drawer-link--child {
  padding-left: 1.5rem;
  font-size: 0.85rem;
  color: rgba(244, 241, 235, 0.7);
  background: rgba(0, 0, 0, 0.15);
}
.nav__drawer-link--child.is-current { color: var(--accent-soft); background: rgba(0, 0, 0, 0.25); }
.nav__drawer-link--child:hover { color: var(--plaster); }
.nav__drawer-child-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 0.6rem;
  color: rgba(244, 241, 235, 0.55);
  flex-shrink: 0;
}
.nav__drawer-link--child.is-current .nav__drawer-child-icon { color: var(--accent-soft); }
.nav__drawer-child-icon svg { width: 16px; height: 16px; }

@media (max-width: 960px) {
  .nav__dropdown { display: none; }
}

.nav__cta {
  margin-left: 0.5rem;
  padding: 0.65rem 1.2rem;
  font-size: 0.88rem;
}

/* Hamburger */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  z-index: 2;
}
.nav__toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast);
  transform-origin: center;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--plaster);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  padding: 6rem var(--gutter) 3rem;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease-out);
  overflow-y: auto;
}
.nav__drawer.is-open { transform: translateY(0); }
.nav__drawer-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 2rem; }
.nav__drawer-link {
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.4rem + 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--plaster);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(244, 241, 235, 0.12);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.nav__drawer-link .num {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  font-weight: 500;
  text-transform: uppercase;
}
.nav__drawer-foot {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 241, 235, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: rgba(244, 241, 235, 0.6);
}
.nav__drawer-foot a { color: var(--plaster); }

@media (max-width: 960px) {
  .nav__list, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* --- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(620px, 88vh, 920px);
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  background: var(--ink);
  color: var(--plaster);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.95);
  transform: scale(1.05);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 51, 0.55) 0%, rgba(6, 11, 51, 0.75) 60%, rgba(6, 11, 51, 0.95) 100%);
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(244, 241, 235, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 241, 235, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero__container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  width: 100%;
  align-items: end;
}
@media (min-width: 900px) {
  .hero__container { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); align-items: end; }
}
.hero__lead { max-width: 30ch; }
.hero__title {
  font-size: var(--t-hero);
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--plaster);
  max-width: 16ch;
}
.hero__title em {
  font-style: italic;
  color: var(--accent-soft);
  font-feature-settings: "ss01";
}
.hero__sub {
  margin-top: 1.4rem;
  font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.1rem);
  color: rgba(244, 241, 235, 0.75);
  max-width: 50ch;
  line-height: 1.5;
}
.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244, 241, 235, 0.7);
}
.hero__meta-row { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(244, 241, 235, 0.15); gap: 1rem; flex-wrap: wrap; }
.hero__meta-row > span:first-child { flex-shrink: 0; }
.hero__meta-row > strong { color: var(--plaster); font-weight: 500; text-align: right; word-break: break-word; }
.hero__meta-row:last-child { border-bottom: 0; }
@media (max-width: 640px) {
  .hero__meta-row { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .hero__meta-row > strong { text-align: left; }
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(244, 241, 235, 0.6);
  z-index: 1;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--plaster));
  animation: scroll-pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes scroll-pulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Hero compact (pages intérieures) */
.page-hero {
  background: var(--ink);
  color: var(--plaster);
  padding: 11rem 0 5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85);
}
.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 27, 95, 0.5) 0%, rgba(6, 11, 51, 0.95) 100%);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: end;
}
@media (min-width: 768px) {
  .page-hero__inner { grid-template-columns: 7fr 5fr; }
}
.page-hero__title {
  font-size: var(--t-h1);
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--plaster);
  max-width: 18ch;
}
.page-hero__title em { font-style: italic; color: var(--accent-soft); }
.page-hero__meta {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244, 241, 235, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.page-hero__meta strong { color: var(--plaster); font-weight: 500; }

/* --- Section header (architectural) ---------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-8);
  align-items: end;
}
@media (min-width: 768px) {
  .section-head { grid-template-columns: 1fr 1.2fr; gap: var(--s-7); }
}
.section-head__title { max-width: 14ch; }
.section-head__body { max-width: 50ch; }
.section-head__body p + p { margin-top: 1rem; }

/* --- Cards & tiles ---------------------------------------------------- */
.tile {
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(14, 27, 95, 0.18);
}
.tile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
}
.tile__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__media-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--ink);
  color: var(--plaster);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
}
.tile__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}
.tile__num {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.tile__title {
  font-size: var(--t-h4);
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.tile__desc { color: var(--text-soft); font-size: 0.95rem; line-height: 1.55; }
.tile__foot {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Service tile (no image, more compact) */
.service {
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  isolation: isolate;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  text-decoration: none;
  color: inherit;
  min-height: 320px;
}
.service:hover { background: var(--ink); color: var(--plaster); border-color: var(--ink); }
.service:hover .service__num,
.service:hover .service__meta { color: rgba(244, 241, 235, 0.55); }
.service:hover .service__title { color: var(--plaster); }
.service__num {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: auto;
}
.service__title {
  font-size: var(--t-h4);
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin-top: 2.5rem;
}
.service__meta {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-top: 0.8rem;
}
.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 1.5rem;
  color: var(--accent);
  border: 1px solid var(--border);
  background: var(--paper);
  flex-shrink: 0;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.service__icon svg {
  width: 22px;
  height: 22px;
}
.service:hover .service__icon {
  background: var(--accent);
  color: var(--plaster);
  border-color: var(--accent);
}
.service__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text);
}
.service__cta .arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease-out);
}
.service:hover .service__cta { color: var(--plaster); }
.service:hover .service__cta .arrow { transform: translateX(4px); }

/* Project card (realisations) */
.projet {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
  text-decoration: none;
  color: var(--plaster);
  aspect-ratio: 4 / 5;
}
.projet img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out), filter var(--dur-slow) var(--ease-out);
  filter: brightness(0.78) saturate(0.95);
}
.projet:hover img { transform: scale(1.06); filter: brightness(0.9) saturate(1); }
.projet__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-5);
  background: linear-gradient(180deg, transparent 40%, rgba(6, 11, 51, 0.85) 100%);
}
.projet__tag {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  margin-bottom: 0.4rem;
}
.projet__title {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 1rem + 1.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.projet__meta {
  margin-top: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(244, 241, 235, 0.7);
}

/* Blog card */
.blog-card {
  background: var(--paper);
  border: 1px solid var(--border);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.blog-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone);
}
.blog-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--ink);
  color: var(--plaster);
  padding: 0.35rem 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.blog-card__body {
  padding: 1.8rem;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.blog-card__title {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 0.9rem + 0.5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.8rem;
  color: var(--ink);
}
.blog-card__excerpt {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.2rem;
}
.blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.blog-card__cta .arrow {
  width: 14px; height: 14px;
  transition: transform var(--dur-med) var(--ease-out);
}
.blog-card:hover .blog-card__cta .arrow { transform: translateX(3px); }

/* Split block (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 900px) {
  .split--right { grid-template-columns: 1fr 1.1fr; }
  .split--left { grid-template-columns: 1.1fr 1fr; }
}
.split--right .split__media { order: 1; }
@media (max-width: 899px) {
  .split--right .split__media { order: 0; }
}
.split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--stone);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media-tag {
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.4rem 0.75rem;
}
.split__body { display: flex; flex-direction: column; gap: 1.5rem; }
.split__body .h2 { max-width: 16ch; }
.split__body p { color: var(--text-soft); max-width: 50ch; }
.split__body p + p { margin-top: 0.8rem; }

/* Numbered list / process */
.process {
  display: flex;
  flex-direction: column;
  counter-reset: step;
  border-top: 1px solid var(--border);
}
.process__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-5);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  counter-increment: step;
  position: relative;
}
.process__num {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.4rem;
}
.process__num::before { content: counter(step, decimal-leading-zero); }
.process__title {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 1rem + 0.8vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  margin-bottom: 0.5rem;
}
.process__desc { color: var(--text-soft); max-width: 60ch; font-size: 0.98rem; }

@media (min-width: 768px) {
  .process__item { grid-template-columns: 120px 1fr 1.4fr; gap: var(--s-7); }
}

/* --- Stats ------------------------------------------------------------ */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--border);
}
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section--dark .stat__num { color: var(--plaster); }
.stat__num sup {
  font-size: 0.45em;
  color: var(--accent);
  vertical-align: top;
  margin-left: 0.2em;
  font-family: var(--f-body);
  font-weight: 500;
}
.stat__label {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  max-width: 30ch;
}
.section--dark .stat__label { color: rgba(244, 241, 235, 0.6); }

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (min-width: 768px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }

/* --- Image gallery / portfolio --------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery--mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; } }

.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--stone);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--tall { aspect-ratio: 3 / 4; }
.gallery__item--wide { aspect-ratio: 16 / 9; }

/* --- Bandeau logos / certifications ---------------------------------- */
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  align-items: center;
  justify-content: center;
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.logos__item img { height: 32px; width: auto; filter: grayscale(0.5); opacity: 0.85; }

/* --- Témoignage / citation -------------------------------------------- */
.quote {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--border);
}
.quote__mark {
  font-family: var(--f-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--accent);
}
.quote__text {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 28ch;
  color: var(--text);
}
.section--dark .quote__text { color: var(--plaster); }
.quote__author {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
}

/* --- Forms ------------------------------------------------------------ */
.form { display: flex; flex-direction: column; gap: var(--s-5); }
.form__row { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 700px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field__label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.field__label .req { color: var(--accent); margin-left: 0.2em; }
.field__input,
.field__select,
.field__textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease-out);
  border-radius: 0;
  width: 100%;
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field__textarea { min-height: 120px; resize: vertical; padding-top: 0.7rem; }
.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 d='M1 1l5 5 5-5' stroke='%230A0A0F' fill='none' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 0.25rem center; }
.field__check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; color: var(--text-muted); }
.field__check input { margin-top: 0.2rem; accent-color: var(--ink); }
.field__check a { text-decoration: underline; }

.form__status {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.7rem 1rem;
  display: none;
}
.form__status.is-success { display: block; background: rgba(14, 27, 95, 0.08); color: var(--ink); border-left: 2px solid var(--ink); }
.form__status.is-error { display: block; background: rgba(200, 75, 49, 0.08); color: var(--accent); border-left: 2px solid var(--accent); }

/* --- Footer ----------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--plaster);
  padding: var(--s-9) 0 var(--s-5);
  position: relative;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(244, 241, 235, 0.15);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-7); }
}
.footer h5 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(244, 241, 235, 0.5);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.footer__brand { display: flex; flex-direction: column; gap: 1.2rem; max-width: 36ch; }
.footer__brand .nav__brand-name { color: var(--plaster); font-size: 1.4rem; }
.footer__brand .nav__brand-meta { color: rgba(244, 241, 235, 0.5); }
.footer__brand p { color: rgba(244, 241, 235, 0.7); font-size: 0.95rem; }
.footer__list { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__list a {
  color: rgba(244, 241, 235, 0.78);
  font-size: 0.95rem;
  transition: color var(--dur-fast);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.footer__list a:hover { color: var(--accent-soft); }
.footer__list .num { font-family: var(--f-mono); font-size: 0.65rem; color: var(--accent-soft); width: 1.5rem; }
.footer__contact { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.92rem; color: rgba(244, 241, 235, 0.78); }
.footer__contact strong { color: var(--plaster); font-weight: 500; }
.footer__contact a:hover { color: var(--accent-soft); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: var(--s-5);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244, 241, 235, 0.45);
}
.footer__bottom a { color: rgba(244, 241, 235, 0.6); }
.footer__bottom a:hover { color: var(--accent-soft); }

/* --- Sticky badge (info) --------------------------------------------- */
.badge-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .badge-strip { grid-template-columns: repeat(3, 1fr); } }
.badge-strip > * {
  padding: var(--s-5);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.badge-strip > *:last-child { border-right: 0; }
@media (max-width: 767px) { .badge-strip > *:last-child { border-bottom: 0; } }
.badge-strip strong {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.badge-strip span {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* --- CTA Banner ------------------------------------------------------- */
.cta-banner {
  background: var(--ink);
  color: var(--plaster);
  padding: var(--s-9) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 8px;
  background: var(--accent);
  z-index: 0;
}
.cta-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: -200px;
  width: 520px;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(200, 75, 49, 0.35) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.cta-banner__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: end;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) { .cta-banner__inner { grid-template-columns: 1.5fr 1fr; gap: var(--s-7); } }
.cta-banner__title {
  font-size: var(--t-h1);
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 18ch;
  color: var(--plaster);
}
.cta-banner__title em { font-style: italic; color: var(--accent-soft); }
.cta-banner__body { max-width: 40ch; color: rgba(244, 241, 235, 0.85); line-height: 1.6; }
.cta-banner .btn--ghost-light {
  border-color: var(--plaster);
  color: var(--plaster);
}
.cta-banner .btn--ghost-light:hover {
  background: var(--plaster);
  color: var(--ink);
}
.cta-banner .btn--accent {
  background: var(--plaster);
  color: var(--ink);
  border-color: var(--plaster);
}
.cta-banner .btn--accent:hover {
  background: var(--accent-soft);
  color: var(--plaster);
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}
.cta-banner .btn--accent .arrow { color: currentColor; }

/* --- Accordion / FAQ -------------------------------------------------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq__item {
  border-bottom: 1px solid var(--border);
  position: relative;
  padding: 0;
  transition: background var(--dur) var(--ease-out);
}
.faq__item[open] { background: var(--paper); }
.faq__item > summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-5) var(--s-4) var(--s-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::marker { display: none; content: ''; }
.faq__item > summary:hover { color: var(--accent); }
.faq__item > summary::after {
  content: '';
  width: 14px;
  height: 14px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-right: 0.4rem;
  transition: transform var(--dur) var(--ease-out);
  flex-shrink: 0;
}
.faq__item[open] > summary::after {
  transform: rotate(-135deg);
  color: var(--accent);
}
.faq__item > p {
  color: var(--text-soft);
  max-width: 65ch;
  padding: 0 0 var(--s-5) 0;
  margin: 0;
  line-height: 1.7;
  font-size: 1rem;
}

/* --- Margin annotations (architectural signature) --------------------- */
.annotate {
  position: relative;
}
.annotate::before {
  content: attr(data-annot);
  position: absolute;
  top: 0;
  left: -3rem;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.5;
}
@media (max-width: 900px) { .annotate::before { display: none; } }

/* --- Reveal animations ----------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal--stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal--stagger.is-in > * { opacity: 1; transform: translateY(0); }
.reveal--stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.reveal--stagger.is-in > *:nth-child(2) { transition-delay: 80ms; }
.reveal--stagger.is-in > *:nth-child(3) { transition-delay: 160ms; }
.reveal--stagger.is-in > *:nth-child(4) { transition-delay: 240ms; }
.reveal--stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }
.reveal--stagger.is-in > *:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal--stagger > * { opacity: 1; transform: none; }
  .hero__bg { transform: none; }
  html { scroll-behavior: auto; }
}

/* --- Page transition (subtle fade) ----------------------------------- */
.page { animation: page-in 0.6s var(--ease-out); }
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Skip link -------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--ink);
  color: var(--plaster);
  padding: 0.6rem 1rem;
  z-index: 999;
  transition: top var(--dur) var(--ease-out);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

/* --- Print ------------------------------------------------------------ */
@media print {
  .nav, .footer, .cta-banner { display: none; }
  body { background: white; color: black; }
}

/* --- Helpers --------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.text-center .section-num { justify-content: center; }
.text-center .section-head__title { margin-left: auto; margin-right: auto; }
.text-center .section-head__body { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }
.flex-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
