/* ==========================================================================
   POLYPEINT — Le Cahier de Plans
   Direction: architectural elevation / construction drawing set.
   Tokens below are the built world's law; do not drift from them locally.
   ========================================================================== */

:root {
  /* -- Palette: the world is Committed — blueprint blue owns full-bleed fields,
     tracing-paper cream carries dense reading, ink is never pure black,
     stamp red is rationed to certification marks and the one call action. -- */
  --blue-950: #0a2140;
  --blue-900: #0e2c54;
  --blue-800: #14396b;
  --blue-700: #1c4a85;
  --blue-line: #f2ecdc;      /* linework drawn on blue */
  --blue-line-dim: #b9c6da;  /* secondary linework/labels on blue */

  --paper: #efe7d8;
  --paper-light: #f8f3e8;
  --paper-deep: #e2d8c3;

  --ink: #232a31;
  --ink-soft: #4b5259;
  --ink-on-blue: #eef1f5;

  --stamp-red: #b23a2e;
  --stamp-red-dim: #8f2e24;

  --line-hair: rgba(35, 42, 49, 0.18);
  --line-hair-on-blue: rgba(242, 236, 220, 0.28);

  /* -- Type -- */
  --font-display: "Archivo Expanded", "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Martian Mono", "Fragment Mono", ui-monospace, monospace;

  /* -- Rhythm -- */
  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --space-7: 10rem;

  --measure: 68ch;
  --radius-stamp: 4px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -- Reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

/* -- Browser surfaces carry the world too -- */
::selection { background: var(--stamp-red); color: var(--ink-on-blue); }
:focus-visible {
  outline: 2px solid var(--stamp-red);
  outline-offset: 3px;
  border-radius: 2px;
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb {
  background: var(--blue-800);
  border: 3px solid var(--paper-deep);
  border-radius: 8px;
}
html { scrollbar-color: var(--blue-800) var(--paper-deep); }

/* ==========================================================================
   Scale bar — scroll progress rendered as an architect's scale ruler.
   ========================================================================== */
.scale-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 90;
  background: var(--line-hair);
}
.scale-bar__fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    var(--stamp-red) 0 8px,
    transparent 8px 10px
  );
  transform-origin: left;
}

/* ==========================================================================
   Title block — persistent header, styled as a drawing set's cover strip.
   ========================================================================== */
.titleblock {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--blue-800);
  color: var(--ink-on-blue);
  border-bottom: 1px solid var(--line-hair-on-blue);
}
.titleblock__row {
  max-width: 84rem;
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.titleblock__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink-on-blue);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  white-space: nowrap;
}
.titleblock__mark small {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--blue-line-dim);
  letter-spacing: 0.08em;
}

.sommaire {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.sommaire a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--blue-line-dim);
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-stamp);
  transition: color 0.2s var(--ease-out-expo), border-color 0.2s var(--ease-out-expo), background 0.2s var(--ease-out-expo);
  white-space: nowrap;
}
.sommaire a:hover,
.sommaire a[aria-current="page"] {
  color: var(--ink-on-blue);
  border-color: var(--line-hair-on-blue);
  background: rgba(242, 236, 220, 0.08);
}
.sommaire a[aria-current="page"] { color: var(--ink-on-blue); font-weight: 700; }

.call-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-on-blue);
  background: var(--stamp-red);
  border: 1px solid var(--stamp-red);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
  transition: background 0.2s var(--ease-out-expo), transform 0.2s var(--ease-out-expo);
}
.call-stamp:hover { background: var(--stamp-red-dim); transform: translateY(-1px); }
.call-stamp svg { width: 15px; height: 15px; flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-hair-on-blue);
  color: var(--ink-on-blue);
  border-radius: var(--radius-stamp);
  padding: 0.5rem;
  flex: none;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .titleblock .call-stamp span { display: none; }
  .titleblock .call-stamp { padding: 0.55rem; }
  .titleblock .call-stamp svg { width: 17px; height: 17px; }
  .titleblock__row { gap: var(--space-1); padding: var(--space-1) var(--space-2); }
  .titleblock__mark { font-size: 1.1rem; }
  .titleblock__mark small { display: none; }
}

@media (max-width: 860px) {
  .sommaire { display: none; }
  .nav-toggle { display: inline-flex; }
  .titleblock.nav-open .sommaire {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--blue-900);
    padding: var(--space-2) var(--space-3) var(--space-3);
    border-bottom: 1px solid var(--line-hair-on-blue);
    gap: 0;
  }
  .titleblock.nav-open .sommaire a { padding: 0.75rem 0.5rem; }
}

/* ==========================================================================
   Sheet header — every page opens as a numbered planche.
   ========================================================================== */
.sheet-header {
  max-width: 84rem;
  margin: 0 auto;
  padding: var(--space-4) var(--space-3) var(--space-2);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  border-bottom: 1px solid var(--line-hair);
}
.sheet-header__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--stamp-red);
  flex: none;
}
.sheet-header__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--ink-soft);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.wrap {
  max-width: 84rem;
  margin: 0 auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}
.wrap--narrow { max-width: 56rem; }

section { position: relative; }
.band { padding: var(--space-6) 0; }
.band--tight { padding: var(--space-5) 0; }
.band--blue { background: var(--blue-800); color: var(--ink-on-blue); }
.band--paper-deep { background: var(--paper-deep); }

@media (max-width: 640px) {
  .band { padding: var(--space-5) 0; }
  .band--tight { padding: var(--space-4) 0; }
}

.kicker-free-heading {
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.4rem);
  line-height: 1.04;
  max-width: 20ch;
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 62ch;
}
.band--blue .lede { color: var(--blue-line-dim); }

/* ==========================================================================
   Hero — elevation drawing that develops into the built photograph.
   ========================================================================== */
.hero {
  position: relative;
  background: var(--blue-800);
  color: var(--ink-on-blue);
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
}
.hero__elevation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__elevation svg { width: 100%; height: 100%; }
.hero__elevation .draw {
  fill: none;
  stroke: var(--blue-line);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.85;
}
.hero__elevation .draw--dim { stroke: var(--line-hair-on-blue); opacity: 0.55; }
.hero.is-drawn .draw { animation: draw-line 1.5s var(--ease-out-expo) forwards; }
.hero.is-drawn .draw:nth-child(1) { animation-delay: 0s; }
.hero.is-drawn .draw:nth-child(2) { animation-delay: 0.06s; }
.hero.is-drawn .draw:nth-child(3) { animation-delay: 0.12s; }
.hero.is-drawn .draw:nth-child(4) { animation-delay: 0.18s; }
.hero.is-drawn .draw:nth-child(5) { animation-delay: 0.24s; }
.hero.is-drawn .draw:nth-child(6) { animation-delay: 0.3s; }
.hero.is-drawn .draw:nth-child(7) { animation-delay: 0.36s; }
.hero.is-drawn .draw:nth-child(8) { animation-delay: 0.42s; }
.hero.is-drawn .draw:nth-child(9) { animation-delay: 0.48s; }
.hero.is-drawn .draw:nth-child(10) { animation-delay: 0.54s; }
.hero.is-drawn .draw:nth-child(11) { animation-delay: 0.6s; }
.hero.is-drawn .draw:nth-child(12) { animation-delay: 0.66s; }
.hero.is-drawn .draw:nth-child(n+13) { animation-delay: 0.72s; }
.hero__elevation .dim-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--blue-line-dim);
  opacity: 0;
}
.hero.is-drawn .dim-label { animation: fade-in 0.6s var(--ease-out-expo) 1.8s forwards; }

@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

.hero__photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.6s var(--ease-out-expo);
}
.hero.is-revealed .hero__photo { clip-path: inset(0 0 0 0); }
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  filter: saturate(1.03);
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(8, 23, 39, 0.92) 0%,
    rgba(8, 23, 39, 0.86) 38%,
    rgba(8, 23, 39, 0.55) 62%,
    rgba(8, 23, 39, 0.16) 85%,
    rgba(8, 23, 39, 0.04) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-6) var(--space-3) var(--space-5);
}
.hero__inner { max-width: 84rem; margin: 0 auto; }
.hero__title {
  font-size: clamp(2.4rem, 1.7rem + 3.6vw, 5.4rem);
  line-height: 0.98;
  max-width: 18ch;
  color: var(--ink-on-blue);
  text-shadow: 0 2px 18px rgba(4, 12, 22, 0.55);
}
.hero__sub {
  margin-top: var(--space-3);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--blue-line);
  max-width: 72ch;
  text-shadow: 0 1px 14px rgba(4, 12, 22, 0.6);
}
.hero__actions {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.hero__actions .call-stamp {
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
}
.hero__since {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--blue-line-dim);
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .hero { min-height: 100vh; }
}

/* ==========================================================================
   Market panels — Bâtiment / Industrie, presented as two elevation planches.
   ========================================================================== */
.markets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-hair);
  border: 1px solid var(--line-hair);
}
.market-panel {
  background: var(--paper);
  padding: var(--space-4);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  transition: background 0.25s var(--ease-out-expo);
}
.market-panel:hover { background: var(--paper-light); }
.market-panel__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--stamp-red);
  letter-spacing: 0.06em;
}
.market-panel__title { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem); }
.market-panel__desc { color: var(--ink-soft); max-width: 42ch; }
.market-panel__figure {
  margin-top: var(--space-2);
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid var(--line-hair);
}
.market-panel__figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15) contrast(1.03); transition: filter 0.4s var(--ease-out-expo), transform 0.6s var(--ease-out-expo); }
.market-panel:hover .market-panel__figure img { filter: grayscale(0) contrast(1.05); transform: scale(1.03); }
.market-panel__go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-800);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.market-panel__go svg { width: 12px; height: 12px; transition: transform 0.25s var(--ease-out-expo); }
.market-panel:hover .market-panel__go svg { transform: translateX(3px); }

.text-link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--blue-800);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.text-link svg { width: 12px; height: 12px; transition: transform 0.25s var(--ease-out-expo); }
.text-link:hover svg { transform: translateX(3px); }

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

/* ==========================================================================
   Stamps — certification marks.
   ========================================================================== */
.stamp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.stamp-card {
  border: 1px solid var(--line-hair);
  background: var(--paper-light);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  position: relative;
}
.stamp-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(178, 58, 46, 0.35);
  pointer-events: none;
  border-radius: 3px;
}
.stamp-card__badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 2px solid var(--stamp-red);
  box-shadow: 0 0 0 3px var(--paper-light);
}
.stamp-card__badge img { max-width: 100%; max-height: 100%; object-fit: contain; }
.stamp-card__name { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.stamp-card__desc { font-size: 0.9375rem; color: var(--ink-soft); }

@media (max-width: 760px) {
  .stamp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .stamp-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Lifecycle strip — protection over time.
   ========================================================================== */
.lifecycle {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line-hair-on-blue);
  overflow-x: auto;
}
.band--blue .lifecycle { border-color: var(--line-hair-on-blue); }
.lifecycle__step {
  flex: 1 1 0;
  min-width: 9rem;
  padding: var(--space-2);
  border-right: 1px solid var(--line-hair-on-blue);
  position: relative;
}
.lifecycle__step:last-child { border-right: none; }
.lifecycle__step-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--blue-line-dim);
  letter-spacing: 0.06em;
}
.lifecycle__step-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  margin-top: 0.35rem;
}

/* ==========================================================================
   Specimen blocks — the services, laid out as sheet entries (no icon cards).
   ========================================================================== */
.specimen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line-hair);
  align-items: start;
}
.specimen:last-child { border-bottom: none; }
.specimen__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--stamp-red);
  letter-spacing: 0.06em;
}
.specimen__title { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 2rem); margin-top: 0.4rem; }
.specimen__body { color: var(--ink-soft); }
.specimen__list {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9375rem;
}
.specimen__list li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--ink-soft);
}
.specimen__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--stamp-red);
  border-radius: 1px;
  transform: rotate(45deg);
}
.specimen__figure {
  border: 1px solid var(--line-hair);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.specimen__figure img { width: 100%; height: 100%; object-fit: cover; }
.specimen__figure--swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-light);
}
.swatch--plaster {
  width: 100%; height: 100%;
  background-color: var(--paper-light);
  background-image: radial-gradient(var(--line-hair) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
}
.swatch--insulation {
  width: 100%; height: 100%;
  background-color: var(--paper-light);
  background-image: repeating-linear-gradient(
    -35deg,
    var(--line-hair) 0 2px,
    transparent 2px 13px
  );
}
.signage-diagram { width: 100%; height: 100%; background: var(--paper-light); }
.signage-diagram .draw-static { fill: none; stroke: var(--ink-soft); stroke-width: 1.2; }
.signage-diagram .fill-red { fill: var(--stamp-red); }
.signage-diagram text { font-family: var(--font-mono); fill: var(--ink-soft); }
.specimen__caption--swatch { font-style: normal; }
.specimen__caption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

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

/* ==========================================================================
   Certification dossier rows
   ========================================================================== */
.cert-row {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line-hair);
}
.cert-row:last-child { border-bottom: none; }
.cert-badge {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--stamp-red);
  box-shadow: 0 0 0 4px var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  position: relative;
}
.cert-badge img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert-row__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--stamp-red);
  letter-spacing: 0.06em;
}
.cert-row__title { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem); margin-top: 0.3rem; }
.cert-row__body { color: var(--ink-soft); margin-top: 0.6rem; }

@media (max-width: 640px) {
  .cert-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cert-row__body { max-width: 46ch; }
}

/* ==========================================================================
   Gallery strip — small run of additional real project photos.
   ========================================================================== */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.gallery-strip figure {
  margin: 0;
  border: 1px solid var(--line-hair);
  background: var(--paper-light);
}
.gallery-strip .gallery-strip__figure-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
.gallery-strip figcaption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  padding: 0.6rem 0.7rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-hair);
}
@media (max-width: 640px) {
  .gallery-strip { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Proof / monument block
   ========================================================================== */
.proof {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}
.proof__figure { border: 1px solid var(--line-hair-on-blue); overflow: hidden; aspect-ratio: 4/3; }
.proof__figure img { width: 100%; height: 100%; object-fit: cover; }
.proof__logo-card {
  background: var(--paper-light);
  border: 2px solid var(--stamp-red);
  box-shadow: 0 0 0 4px rgba(242, 236, 220, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) var(--space-4);
  aspect-ratio: 4/3;
}
.proof__logo-card img { max-width: 78%; max-height: 62%; object-fit: contain; }
.proof h2 { font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem); }
.proof__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--blue-line-dim);
  margin-top: 0.6rem;
}

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

/* ==========================================================================
   North-arrow / compass wayfinding decoration
   ========================================================================== */
.compass { width: 34px; height: 34px; opacity: 0.85; }
.compass path, .compass line { stroke: currentColor; fill: none; stroke-width: 1.2; }
.compass .n { font-family: var(--font-mono); font-size: 7px; fill: currentColor; }

/* ==========================================================================
   Footer — closing title block.
   ========================================================================== */
.site-footer {
  background: var(--blue-950);
  color: var(--blue-line-dim);
  padding: var(--space-5) 0 var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-4);
}
.footer-grid h3 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-on-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.footer-mark { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: var(--ink-on-blue); }
.footer-tag { margin-top: 0.5rem; font-size: 0.9375rem; max-width: 34ch; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.9375rem; }
.footer-list a { text-decoration: none; color: var(--blue-line-dim); }
.footer-list a:hover { color: var(--ink-on-blue); }
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-hair-on-blue);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ==========================================================================
   Sticky call tab (mobile)
   ========================================================================== */
.call-tab {
  display: none;
}
@media (max-width: 640px) {
  .call-tab {
    display: flex;
    position: fixed;
    left: var(--space-2);
    right: var(--space-2);
    bottom: var(--space-2);
    z-index: 85;
    justify-content: center;
    transition: transform 0.3s var(--ease-out-expo);
  }
  .call-tab .call-stamp {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1rem;
    font-size: 0.9375rem;
    box-shadow: 0 8px 24px rgba(10, 33, 64, 0.35);
  }
}

/* ==========================================================================
   Reveal-on-scroll utility
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Legal page — plain, quiet, on-brand restraint
   ========================================================================== */
.legal {
  padding: var(--space-5) 0 var(--space-6);
}
.legal h2 { font-size: 1.25rem; margin-top: var(--space-4); }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .placeholder {
  border: 1px dashed rgba(178, 58, 46, 0.5);
  background: rgba(178, 58, 46, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}
