@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Manrope:wght@400;500;600&family=Space+Mono:wght@400;500&display=swap');

:root {
  --bone: #F4F1EA;
  --sand: #E9E3D6;
  --ink: #17181C;
  --vermilion: #E4392B;
  --steel: #3B5C8A;
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --section-pad: clamp(4.5rem, 7vw, 7.5rem);
  --max: 1180px;
  --grid-line: rgba(59, 92, 138, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bone);
}
img { max-width: 100%; height: auto; display: block; }
a { color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { opacity: 0.82; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.14; margin: 0 0 1rem; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5vw, 4.75rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }

.surface-bone { background: var(--bone); color: var(--ink); }
.surface-sand { background: var(--sand); color: var(--ink); }
.surface-ink { background: var(--ink); color: var(--bone); }
.surface-vermilion { background: var(--vermilion); color: var(--bone); }

.grid-texture {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vermilion);
  font-weight: 500;
}
.eyebrow-steel { color: var(--steel); }
.hairline { border: none; border-top: 1px solid rgba(23, 24, 28, 0.12); margin: 2rem 0; }
.hairline-light { border-top-color: rgba(244, 241, 234, 0.2); }

.container { width: min(var(--max), 92vw); margin: 0 auto; }
section { padding: var(--section-pad) 0; }
.section-head { margin-bottom: 2.25rem; max-width: 42rem; }
.lead { font-size: 1.15rem; max-width: 38rem; opacity: 0.88; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, color 0.35s;
}
.site-header.is-scrolled {
  background: rgba(244, 241, 234, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(23, 24, 28, 0.08);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4vw;
  max-width: 1280px;
  margin: 0 auto;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border: 2px solid var(--vermilion);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::before,
.logo-mark::after {
  content: '';
  position: absolute;
  background: var(--vermilion);
}
.logo-mark::before { width: 1px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.logo-mark::after { height: 1px; width: 100%; top: 50%; left: 0; transform: translateY(-50%); }

.nav-list { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-list a { text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.45rem;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border-radius: 2px;
  transition: filter 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary { background: var(--vermilion); color: var(--bone); }
.btn-secondary { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn-steel { background: var(--steel); color: var(--bone); }
.btn:hover { filter: brightness(1.05); box-shadow: 0 4px 18px rgba(23, 24, 28, 0.12); transform: translateY(-1px); }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; }

/* Hero LA FRAPPE — light bone-paper */
.hero-frappe {
  min-height: 92vh;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 6rem 0 3rem;
  overflow: hidden;
  background: var(--bone);
}
.hero-frappe::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.65;
  z-index: 1;
  pointer-events: none;
}
.hero-plate {
  margin: 1.75rem 0 1.5rem;
  border: 1px solid rgba(23, 24, 28, 0.2);
  position: relative;
  overflow: hidden;
}
.hero-plate::before,
.hero-plate::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--vermilion);
  border-style: solid;
  z-index: 2;
}
.hero-plate::before { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.hero-plate::after { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
.hero-plate img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.hero-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--vermilion);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.hero-stages span::before { content: '· '; color: var(--vermilion); }
.hero-stages span:first-child::before { content: ''; }
@media (max-width: 860px) { .hero-frappe { min-height: 80vh; } }
.reticle {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0.35;
}
.reticle-tl { top: 18%; left: 6%; width: 80px; height: 80px; border: 1px solid var(--steel); border-right: none; border-bottom: none; }
.reticle-br { bottom: 22%; right: 8%; width: 100px; height: 100px; border: 1px solid var(--vermilion); border-left: none; border-top: none; }
.reticle-center {
  top: 42%; left: 58%;
  width: 48px; height: 48px;
  border: 1px solid var(--vermilion);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.reticle-center::before,
.reticle-center::after {
  content: '';
  position: absolute;
  background: var(--vermilion);
}
.reticle-center::before { width: 1px; height: 140%; left: 50%; top: -20%; transform: translateX(-50%); }
.reticle-center::after { height: 1px; width: 140%; top: 50%; left: -20%; transform: translateY(-50%); }

.hero-content { position: relative; z-index: 4; padding: 0 4vw; max-width: 1280px; margin: 0 auto; width: 100%; }
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6.5rem 0 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.hero-label {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 0.5rem;
  opacity: 0.12;
  position: absolute;
  top: 5.5rem;
  right: 4vw;
  pointer-events: none;
  user-select: none;
}
.hero-accent { color: var(--vermilion); }
.hero-sub { max-width: 36rem; font-size: 1.1rem; opacity: 0.88; }
.trust-strip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(59, 92, 138, 0.2);
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.metric-num { font-family: var(--font-mono); font-size: 2rem; color: var(--vermilion); font-weight: 500; display: block; }
.metric-label { font-size: 0.88rem; color: var(--steel); }

.stage-card {
  padding: 1.75rem;
  border: 1px solid rgba(59, 92, 138, 0.25);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 2px;
}
.stage-num { font-family: var(--font-mono); color: var(--vermilion); font-size: 0.78rem; margin-bottom: 0.5rem; }

.cap-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.cap-card {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid rgba(59, 92, 138, 0.22);
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
.cap-card::before {
  content: attr(data-num);
  position: absolute;
  right: 1rem; top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 3rem;
  color: rgba(23, 24, 28, 0.05);
  font-weight: 500;
}

.photo-card {
  position: relative;
  border: 1px solid rgba(59, 92, 138, 0.28);
  overflow: hidden;
  border-radius: 2px;
  background: #fff;
}
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-caption { font-size: 0.82rem; color: var(--steel); padding: 0.75rem 1rem; border-top: 1px solid rgba(59, 92, 138, 0.12); }

.case-block {
  padding: 2rem;
  border-left: 3px solid var(--vermilion);
  background: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}
.disclaimer { font-size: 0.9rem; color: var(--steel); border-top: 1px solid rgba(59, 92, 138, 0.2); padding-top: 1.25rem; margin-top: 2rem; }

.page-hero { padding: 8rem 0 3rem; }
.page-hero h1 { max-width: 20ch; }

.site-footer { padding: 3rem 0 2rem; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-bottom { border-top: 1px solid rgba(59, 92, 138, 0.22); padding-top: 1.5rem; color: var(--steel); font-size: 0.85rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.95rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(23, 24, 28, 0.18);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  border-radius: 2px;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; }
.form-check input { margin-top: 0.25rem; flex-shrink: 0; }
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.alert { padding: 1rem 1.25rem; border-radius: 2px; margin-bottom: 1.5rem; font-size: 0.95rem; }
.alert-ok { background: rgba(59, 92, 138, 0.12); border: 1px solid var(--steel); }
.alert-err { background: rgba(228, 57, 43, 0.1); border: 1px solid var(--vermilion); }

.faq-item { border-bottom: 1px solid rgba(23, 24, 28, 0.1); padding: 1.25rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-family: var(--font-head); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .a { padding-top: 0.85rem; color: rgba(23, 24, 28, 0.88); }

.legal-prose { max-width: 46rem; }
.legal-prose h2 { font-size: 1.45rem; margin-top: 2.5rem; }
.legal-prose h3 { font-size: 1.15rem; margin-top: 1.75rem; }

.split-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; align-items: center; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.25rem 0;
  transform: translateY(110%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 24px rgba(23, 24, 28, 0.12);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner .container { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(23, 24, 28, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal.is-open { opacity: 1; pointer-events: auto; }
.cookie-panel {
  max-width: 420px;
  width: 100%;
  padding: 2rem;
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(23, 24, 28, 0.2);
}

.error-page { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.error-page h1 { font-size: clamp(2rem, 4vw, 3rem); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bone);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 8px 24px rgba(23, 24, 28, 0.1);
    border-top: 1px solid rgba(23, 24, 28, 0.08);
  }
  .nav-list.is-open { display: flex; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .metric-row { grid-template-columns: 1fr; }
  .hero-label { display: none; }
}
