/* =====================================================
   MIKI — Design System
   Earthy contemporary · sans-serif · cream/olive/bronze
   ===================================================== */

:root {
  /* Brand */
  --primary: #34412f;
  --secondary: #be913c;

  /* Light theme (default) */
  --bg:        #f1ece0;
  --bg-alt:    #e7decb;
  --bg-deep:   #34412f;
  --surface:   #f7f3e9;
  --ink:       #1a1f15;
  --ink-soft:  #3d4234;
  --ink-mute:  #6d6e5f;
  --line:      rgba(26,31,21,0.14);
  --line-soft: rgba(26,31,21,0.07);
  --accent:    #be913c;
  --accent-deep:#8c6a26;
  --on-deep:   #f1ece0;

  /* Type */
  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body:    "Hanken Grotesk", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-2xl: 48px;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.dark,
[data-theme="dark"] {
  --bg:        #14180f;
  --bg-alt:    #1c2117;
  --bg-deep:   #0d100a;
  --surface:   #1f2519;
  --ink:       #f1ece0;
  --ink-soft:  #d9d3c2;
  --ink-mute:  #9a9886;
  --line:      rgba(241,236,224,0.14);
  --line-soft: rgba(241,236,224,0.06);
  --accent:    #d4a653;
  --accent-deep:#be913c;
  --on-deep:   #f1ece0;
}

.dark body::before,
body.dark::before,
[data-theme="dark"] body::before,
body[data-theme="dark"]::before {
  mix-blend-mode: screen;
  opacity: 0.10;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--secondary); color: var(--primary); }

/* Grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  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.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.12 0 0 0 0 0.08 0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme="dark"] body::before,
body[data-theme="dark"]::before {
  mix-blend-mode: screen;
  opacity: 0.10;
}

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 8vw, 124px); font-weight: 500; }
h2 { font-size: clamp(36px, 5.5vw, 76px); font-weight: 500; }
h3 { font-size: clamp(24px, 2.6vw, 38px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.05; }
h4 { font-family: var(--f-display); font-size: 22px; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
p  { margin: 0; }

em.bronze, .bronze-italic {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.italic { font-style: italic; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.no-dot::before { display: none; }

.lead {
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
}

.mono {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.underline-bronze {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 6px;
  background-position: 0 90%;
  background-repeat: no-repeat;
  padding: 0 2px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(72px, 11vw, 144px);
  position: relative;
}
.section.tight { padding-block: clamp(48px, 7vw, 96px); }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .row {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px 16px 30px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all .35s var(--ease);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.btn .arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease), background .35s var(--ease);
}
.btn .arrow svg { width: 14px; height: 14px; }
.btn:hover .arrow { transform: translate(2px,-2px) rotate(0deg); }

.btn--primary {
  background: var(--primary);
  color: #f1ece0;
}
.btn--primary .arrow { background: var(--secondary); color: var(--primary); }
.btn--primary:hover { background: #1f261b; }

.btn--gold {
  background: var(--secondary);
  color: var(--primary);
}
.btn--gold .arrow { background: var(--primary); color: var(--secondary); }
.btn--gold:hover { background: #ad8030; }

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

.btn--mini {
  padding: 10px 18px;
  font-size: 14px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
  display: inline-block;
  flex: none;
  overflow: hidden;
}
.logo-mark::before {
  content: "";
  position: absolute;
  inset: 4px 4px auto auto;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--secondary);
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: auto auto 4px 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg);
}
.logo small {
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  padding-left: 2px;
}

.nav-links {
  display: flex; gap: 6px;
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--bg-alt);
  color: var(--ink);
}
.nav-cta { display: flex; gap: 10px; align-items: center; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: inline-block; }

.menu-btn { display: none; }

/* ---------- Style switcher ---------- */
.style-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.style-switch .lbl {
  color: var(--ink-mute);
  margin-right: 6px;
}
.style-switch .opt {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: all .25s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.style-switch .opt:hover { background: var(--bg-alt); color: var(--ink); }
.style-switch .opt.active {
  background: var(--primary);
  color: var(--on-deep);
}
.style-switch .opt .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--secondary);
  display: inline-block;
}
.style-switch .opt.active .dot { background: var(--on-deep); }

@media (max-width: 640px) {
  .style-switch { padding: 4px; flex-wrap: wrap; gap: 4px; width: 100%; }
  .style-switch .lbl { padding: 4px 10px; }
  .style-switch .opt { flex: 1; justify-content: center; font-size: 10px; padding: 8px 10px; letter-spacing: 0.12em; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 80px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}
@media (max-width: 1080px) {
  .hero-grid {
    display: flex;
    flex-direction: column-reverse;
  }
}
.hero h1 {
  font-size: clamp(40px,7.2vw, 120px);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.hero h1 .line { display: block; }
.hero h1 .indent { padding-left: clamp(20px, 7vw, 100px); }
.hero-meta {
  display: flex; gap: 28px;
  margin-top: 36px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.hero-meta .lead { flex: 1 1 360px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 220px 220px 24px 24px;
  overflow: hidden;
}
.hero-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 18px;
}
.tag {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--bg);
}
.tag.solid { background: var(--primary); color: var(--on-deep); border-color: var(--primary); }
.prime-label { display: inline; }
.prime-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.cta-title { font-size: clamp(32px, 6vw, 48px); line-height: 1.2; }
.cta-sub { font-size: clamp(16px, 4vw, 18px); max-width: 60ch; margin: 20px auto; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 1080px) {
  .prime-label { display: none; }
  .prime-specs { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .cta-title { margin-top: 16px; }
  .cta-sub { font-size: 14px; max-width: 85vw; margin: 16px auto; }
  .cta-buttons { flex-direction: column; gap: 10px; }
  .cta-buttons .btn { width: 100%; }
  .ring { display: none; }
}
.tag.gold  { background: var(--secondary); color: var(--primary); border-color: var(--secondary); }

/* Photo placeholder */
.ph {
  position: relative;
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--primary) 92%, white) 0,
      color-mix(in oklab, var(--primary) 92%, white) 14px,
      color-mix(in oklab, var(--primary) 78%, white) 14px,
      color-mix(in oklab, var(--primary) 78%, white) 28px);
  color: var(--on-deep);
  overflow: hidden;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 30%, transparent 0%, rgba(0,0,0,0.25) 100%);
}
.ph-label {
  position: absolute;
  inset: auto 14px 14px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(241,236,224,0.85);
  z-index: 2;
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
}
.ph-label::before {
  content: "▢";
  display: inline-block;
}
.ph.gold {
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--secondary) 86%, white) 0,
      color-mix(in oklab, var(--secondary) 86%, white) 14px,
      color-mix(in oklab, var(--secondary) 72%, black) 14px,
      color-mix(in oklab, var(--secondary) 72%, black) 28px);
  color: var(--primary);
}
.ph.gold .ph-label { color: rgba(26,31,21,0.78); }
.ph.cream {
  background:
    repeating-linear-gradient(135deg,
      var(--bg-alt) 0,
      var(--bg-alt) 14px,
      color-mix(in oklab, var(--bg-alt) 80%, var(--primary)) 14px,
      color-mix(in oklab, var(--bg-alt) 80%, var(--primary)) 28px);
  color: var(--primary);
}
.ph.cream .ph-label { color: var(--ink-soft); }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding-block: 24px;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  font-family: var(--f-display);
  font-size: clamp(32px, 4.4vw, 64px);
  letter-spacing: -0.02em;
  color: var(--ink);
  align-items: center;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-track .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--secondary);
  display: inline-block;
}
.marquee-track .italic { color: var(--accent); font-style: italic; font-weight: 400; }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Prime feature banner ---------- */
.prime-feature {
  background: var(--primary);
  color: var(--on-deep);
  border-radius: var(--r-2xl);
  padding: clamp(40px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}
.prime-feature .corner {
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 220px;
  background: var(--secondary);
  border-radius: 0 var(--r-2xl) 0 100%;
}
.prime-feature .corner::after {
  content: "PRIME";
  position: absolute;
  bottom: 22px; right: 30px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 26px;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.prime-feature h2 { color: var(--on-deep); max-width: 14ch; }
.prime-feature .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
  margin-top: clamp(28px, 4vw, 56px);
  position: relative; z-index: 2;
}
.prime-feature p { color: rgba(241,236,224,0.86); max-width: 50ch; }
.prime-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  border-top: 1px solid rgba(241,236,224,0.18);
  padding-top: 32px;
  position: relative; z-index: 2;
}
.stat .num {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--secondary);
}
.stat .num.cream { color: var(--on-deep); }
.stat .lbl {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(241,236,224,0.7);
  margin-top: 10px;
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.service {
  grid-column: span 4;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 36px 32px 32px;
  position: relative;
  transition: background .3s var(--ease);
  cursor: default;
  min-height: 280px;
  display: flex; flex-direction: column;
}
.service:nth-child(3n) { border-right: 0; }
.service:hover { background: var(--bg-alt); }
.service .num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 22px;
}
.service h3 { margin-bottom: 14px; }
.service p { color: var(--ink-soft); font-size: 15.5px; }
.service .arrow-corner {
  position: absolute;
  bottom: 26px; right: 26px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.service:hover .arrow-corner {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
  transform: rotate(-45deg);
}

/* ---------- About MIKI ---------- */
.about {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: stretch;
}
.about-text h2 { margin-bottom: 28px; max-width: 18ch; }
.about-text .lead { margin-bottom: 24px; }
.about-pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}
.about-pair {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.about-pair .k {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.about-pair .v {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.about-media {
  display: grid;
  grid-template-rows: 2fr 1fr;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.about-media .a {
  grid-column: 1 / 3; grid-row: 1 / 2;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 320px;
}
.about-media .b {
  grid-column: 1 / 2; grid-row: 2 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 200px;
}
.about-media .c {
  grid-column: 2 / 3; grid-row: 2 / 3;
  border-radius: var(--r-xl);
  background: var(--bg-alt);
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.about-media .c .big {
  font-family: var(--f-display);
  font-size: 56px;
  line-height: 0.95;
  color: var(--primary);
  letter-spacing: -0.03em;
}
[data-theme="dark"] .about-media .c .big { color: var(--secondary); }

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-alt);
  border-radius: var(--r-2xl);
  padding: clamp(40px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}
.contact h2 { max-width: 14ch; }
.contact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
.contact-item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.contact-item .k {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.contact-item .v {
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: -0.01em;
}

/* ---------- CTA ---------- */
.cta-band {
  background: var(--primary);
  color: var(--on-deep);
  border-radius: var(--r-2xl);
  padding: clamp(56px, 7vw, 110px) clamp(40px, 5vw, 80px);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band h2 {
  color: var(--on-deep);
  font-size: clamp(44px, 7vw, 104px);
  max-width: 16ch;
  margin: 0 auto;
}
.cta-band h2 em { color: var(--secondary); font-style: italic; font-weight: 400; }
.cta-band .sub {
  margin: 24px auto 32px;
  max-width: 52ch;
  color: rgba(241,236,224,0.78);
}
.cta-band .ring {
  position: absolute;
  border: 1px solid rgba(190,145,60,0.4);
  border-radius: 50%;
}
.cta-band .ring.r1 { width: 480px; height: 480px; top: -240px; right: -120px; }
.cta-band .ring.r2 { width: 320px; height: 320px; bottom: -160px; left: -80px; border-color: rgba(241,236,224,0.16); }

/* ---------- Footer ---------- */
.footer {
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.footer .dot { color: var(--accent); margin: 0 8px; }

/* ---------- Sub-page hero ---------- */
.sub-hero {
  padding-top: clamp(40px, 5vw, 56px);
  padding-bottom: clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}
.sub-hero .crumbs {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.sub-hero .crumbs a { color: var(--ink-soft); }
.sub-hero .crumbs .sep { color: var(--accent); }
.sub-hero h1 {
  font-size: clamp(48px, 8vw, 132px);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.sub-hero .row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
  margin-top: 36px;
}
.sub-hero .meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--r-xl);
}
.sub-hero .meta-grid .item .k {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.sub-hero .meta-grid .item .v {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ---------- Generic article section ---------- */
.article-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 4vw, 80px);
  padding-block: clamp(56px, 7vw, 104px);
  border-bottom: 1px solid var(--line);
}
.article-section .side {
  position: sticky;
  top: 100px;
  align-self: start;
}
.article-section .side .num {
  font-family: var(--f-display);
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--secondary);
  line-height: 0.9;
  margin-bottom: 18px;
}
.article-section .side .label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.article-section .body h2 { margin-bottom: 28px; max-width: 18ch; }
.article-section .body .lead { margin-bottom: 28px; }
.article-section .body p { color: var(--ink-soft); max-width: 64ch; margin-bottom: 18px; }

/* feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
}
.feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.feature-list li::before {
  content: "";
  width: 14px; height: 14px; margin-top: 6px;
  border-radius: 50%;
  background: var(--secondary);
  display: inline-block;
}
.feature-list .t {
  font-family: var(--f-display);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.feature-list .d {
  font-size: 15px;
  color: var(--ink-soft);
}

/* Goal cards */
.goals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.goal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  position: relative;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.goal-card .head {
  display: flex; align-items: center; justify-content: space-between;
}
.goal-card .num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.goal-card .icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 500;
}
.goal-card h4 { margin-top: 32px; }

/* Timeline */
.timeline {
  margin-top: 32px;
  display: grid;
  gap: 0;
}
.tline {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.tline:last-child { border-bottom: 1px solid var(--line); }
.tline .phase {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.tline .what h4 { margin-bottom: 8px; }
.tline .what p { color: var(--ink-soft); margin: 0; max-width: 64ch; }

/* Impact stats */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.impact-card {
  background: var(--primary);
  color: var(--on-deep);
  border-radius: var(--r-lg);
  padding: 26px 24px 22px;
  display: flex; flex-direction: column;
  min-height: 200px;
  justify-content: space-between;
}
.impact-card:nth-child(2) { background: var(--secondary); color: var(--primary); }
.impact-card:nth-child(3) { background: var(--bg-alt); color: var(--ink); border: 1px solid var(--line); }
.impact-card .num {
  font-family: var(--f-display);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.impact-card .lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.78;
}
.impact-card p {
  margin-top: 14px;
  font-size: 15px;
  opacity: 0.85;
  max-width: 28ch;
}

/* ---------- Form (inscription) ---------- */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(48px, 5vw, 88px);
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: clamp(28px, 4vw, 56px);
}
.form-section {
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-child { border-bottom: 0; }
.form-section .label-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
}
.form-section h3 {
  font-size: 24px;
  font-weight: 500;
}
.form-section .step {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.field label .req { color: var(--accent); margin-left: 4px; }
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  font-size: 16px;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
}
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus {
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 140px; }
.field .hint {
  font-size: 13px;
  color: var(--ink-mute);
}
.field .counter {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-align: right;
  margin-top: -2px;
}

/* Radio chips */
.chip-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.chip {
  position: relative;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 14.5px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.chip input:checked + span {
  background: var(--primary);
  color: var(--on-deep);
  border-color: var(--primary);
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span:hover { border-color: var(--primary); }

.submit-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.consent {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 56ch;
}
.consent input {
  margin-top: 4px;
  width: 18px; height: 18px;
  accent-color: var(--primary);
  flex: none;
}

/* Sidebar */
.side-card {
  position: sticky;
  top: 100px;
  background: var(--primary);
  color: var(--on-deep);
  border-radius: var(--r-xl);
  padding: 32px;
  overflow: hidden;
}
.side-card .pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.side-card h3 {
  color: var(--on-deep);
  margin-bottom: 16px;
}
.side-card p {
  color: rgba(241,236,224,0.78);
  font-size: 15px;
}
.side-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.side-card li {
  display: flex; gap: 10px;
  border-top: 1px solid rgba(241,236,224,0.18);
  padding-top: 14px;
  font-size: 14.5px;
  color: rgba(241,236,224,0.9);
}
.side-card li::before {
  content: "→";
  color: var(--secondary);
  flex: none;
}

/* Form success */
.success {
  text-align: center;
  padding: 48px 24px;
}
.success .mark {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 32px;
  margin-bottom: 22px;
}
.success h3 { margin-bottom: 14px; }
.success p { color: var(--ink-soft); max-width: 48ch; margin: 0 auto; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero .t04 { display: none; }
  .prime-feature .eyebrow { display: none; }
  .prime-specs { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
  .hero-portrait { aspect-ratio: 4/3; border-radius: var(--r-2xl); max-height: 520px; }
  .prime-feature .grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-media .a { min-height: 280px; }
  .contact { grid-template-columns: 1fr; }
  .sub-hero .row { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .service { grid-column: span 6; }
  .service:nth-child(3n) { border-right: 1px solid var(--line); }
  .service:nth-child(2n) { border-right: 0; }
  .article-section { grid-template-columns: 1fr; }
  .article-section .side { position: static; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: transparent; border: 1px solid var(--line);
    color: var(--ink);
  }
  .service { grid-column: span 12; }
  .service:nth-child(2n) { border-right: 0; }
  .impact-grid { grid-template-columns: 1fr; }
  .goals { grid-template-columns: 1fr; }
  .prime-stats { grid-template-columns: 1fr; }
  .about-pairs { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .about-media { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .about-media .a, .about-media .b, .about-media .c {
    grid-column: 1 / -1;
  }
  .tline { grid-template-columns: 1fr; gap: 8px; }
  .hero h1 .indent { padding-left: 0; }
  .nav-cta .btn { display: none; }
}

/* Reveal animations - triggered by RevealAnimator component */
@keyframes revealInAuto {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
