/* ============================================================
   Ultragency · shared stylesheet
   ============================================================ */

:root {
  --warm-white: #fdfcf9;
  --paper: #f6f3eb;
  --paper-2: #efeae0;
  --ink: #0f1110;
  --ink-soft: #2a2c2a;
  --ink-mute: #76776f;
  --line: #ebe5d7;
  --line-soft: #f1ecde;

  --c-violet: #6f4ce8;
  --c-coral: #f08364;
  --c-amber: #e9b86a;
  --c-cyan: #5fc7dc;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;

  /* Atmosphere palette · default = Ultragency (icy blue + warm amber + cream) */
  --atm-1: #a8d4e8;
  --atm-2: #e8b878;
  --atm-3: #f5e8d2;
  --atm-opacity-1: 0.50;
  --atm-opacity-2: 0.42;
  --atm-opacity-3: 0.32;
}

body[data-palette="ultragency"] {
  --atm-1: #a8d4e8; --atm-2: #e8b878; --atm-3: #f5e8d2;
  --atm-opacity-1: 0.50; --atm-opacity-2: 0.42; --atm-opacity-3: 0.32;
}
body[data-palette="talensix"] {
  --atm-1: #a8e8e0; --atm-2: #d4c2f5; --atm-3: #f5e6d4;
  --atm-opacity-1: 0.65; --atm-opacity-2: 0.60; --atm-opacity-3: 0.45;
}
body[data-palette="spectrum"] {
  --atm-1: #4dc9e8; --atm-2: #e89860; --atm-3: #ffd47a;
  --atm-opacity-1: 0.45; --atm-opacity-2: 0.38; --atm-opacity-3: 0.32;
}
body[data-palette="solaris"] {
  --atm-1: #ffb84d; --atm-2: #ff8a5c; --atm-3: #ffdca8;
  --atm-opacity-1: 0.50; --atm-opacity-2: 0.42; --atm-opacity-3: 0.34;
}
body[data-palette="boreal"] {
  --atm-1: #5fd6a8; --atm-2: #4dc9e8; --atm-3: #ffd47a;
  --atm-opacity-1: 0.45; --atm-opacity-2: 0.40; --atm-opacity-3: 0.32;
}
body[data-palette="aurora"] {
  --atm-1: #c5a5f5; --atm-2: #5fc8e0; --atm-3: #ffc874;
  --atm-opacity-1: 0.48; --atm-opacity-2: 0.42; --atm-opacity-3: 0.34;
}
body[data-palette="dawn"] {
  --atm-1: #9b7df0; --atm-2: #f0856a; --atm-3: #f0c068;
  --atm-opacity-1: 0.50; --atm-opacity-2: 0.42; --atm-opacity-3: 0.34;
}
body[data-palette="citrus"] {
  --atm-1: #ffd147; --atm-2: #ff9460; --atm-3: #ffeaa3;
  --atm-opacity-1: 0.50; --atm-opacity-2: 0.42; --atm-opacity-3: 0.34;
}

/* DEEP & MASCULINE · for darker direction option */
body[data-palette="cobalt"] {
  --atm-1: #2a5cb8; --atm-2: #4a8de8; --atm-3: #d4a060;
  --atm-opacity-1: 0.55; --atm-opacity-2: 0.45; --atm-opacity-3: 0.38;
}
body[data-palette="midnight"] {
  --atm-1: #1a2e5e; --atm-2: #4a6da8; --atm-3: #e0b86a;
  --atm-opacity-1: 0.62; --atm-opacity-2: 0.48; --atm-opacity-3: 0.42;
}
body[data-palette="forge"] {
  --atm-1: #3a3530; --atm-2: #c88a3a; --atm-3: #e8c898;
  --atm-opacity-1: 0.55; --atm-opacity-2: 0.52; --atm-opacity-3: 0.42;
}
body[data-palette="ember"] {
  --atm-1: #5a2820; --atm-2: #d4582a; --atm-3: #f0a865;
  --atm-opacity-1: 0.52; --atm-opacity-2: 0.50; --atm-opacity-3: 0.42;
}
body[data-palette="ocean"] {
  --atm-1: #1a4870; --atm-2: #3a8db0; --atm-3: #58c8dc;
  --atm-opacity-1: 0.60; --atm-opacity-2: 0.48; --atm-opacity-3: 0.40;
}
body[data-palette="forest"] {
  --atm-1: #2c4a3a; --atm-2: #5a8a68; --atm-3: #c8a87a;
  --atm-opacity-1: 0.55; --atm-opacity-2: 0.45; --atm-opacity-3: 0.38;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--warm-white); overflow-x: clip; }
body {
  background: var(--warm-white);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--ink); color: var(--warm-white); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ============ HEADER ============ */
header.site {
  position: fixed; inset: 0 0 auto 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in oklab, var(--warm-white) 78%, transparent);
}
.site-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  font-family: 'Material Symbols Outlined';
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  position: relative;
  animation: mark-breathe 4.2s ease-in-out infinite;
  will-change: transform, opacity;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  opacity: 0;
  pointer-events: none;
  animation: mark-ring 4.2s ease-out infinite;
}
.brand-mark::after { animation-delay: 2.1s; }
@keyframes mark-breathe {
  0%, 100% { transform: scale(1);    opacity: 1;    }
  50%      { transform: scale(1.05); opacity: 0.94; }
}
@keyframes mark-ring {
  0%   { transform: scale(0.8);  opacity: 0.30; }
  70%  { transform: scale(1.9);  opacity: 0;    }
  100% { transform: scale(1.9);  opacity: 0;    }
}

.brand-name {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.contact-pill {
  display: inline-flex; align-items: center;
  padding: 9px 18px;
  background: var(--ink); color: var(--warm-white);
  border-radius: 999px;
  font-weight: 500; font-size: 13px;
  letter-spacing: -0.005em;
  transition: opacity .25s ease, transform .25s ease;
}
.contact-pill:hover { opacity: 0.82; transform: translateY(-1px); }

/* ============ HERO ============ */
main { padding-top: 68px; }

.hero {
  position: relative;
  padding-top: clamp(24px, 3.4vw, 44px);
  padding-bottom: clamp(36px, 6vw, 80px);
  isolation: isolate;
  overflow: clip;
}

.atmosphere {
  position: absolute;
  inset: -10% -8% -20% -8%;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}
.atmosphere .layer {
  position: absolute;
  border-radius: 50%;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  mix-blend-mode: multiply;
  filter: blur(80px);
  -webkit-filter: blur(80px);
}
.atmosphere .layer-1 {
  width: 55%;
  height: 70%;
  left: 4%;
  top: 38%;
  background: radial-gradient(closest-side, var(--atm-1) 0%, transparent 72%);
  opacity: var(--atm-opacity-1, 0.65);
  animation: dance-1 26s cubic-bezier(.6,.02,.4,.98) infinite;
}
.atmosphere .layer-2 {
  width: 60%;
  height: 72%;
  right: -2%;
  top: -4%;
  background: radial-gradient(closest-side, var(--atm-2) 0%, transparent 72%);
  opacity: var(--atm-opacity-2, 0.60);
  animation: dance-2 31s cubic-bezier(.5,0,.5,1) infinite;
}
.atmosphere .layer-3 {
  width: 42%;
  height: 48%;
  left: 32%;
  top: 36%;
  background: radial-gradient(closest-side, var(--atm-3) 0%, transparent 70%);
  opacity: var(--atm-opacity-3, 0.45);
  animation: dance-3 22s cubic-bezier(.55,.05,.45,.95) infinite;
}
.atmosphere .layer-4 {
  width: 36%;
  height: 42%;
  left: 16%;
  top: 0;
  background: radial-gradient(closest-side, var(--atm-1) 0%, var(--atm-2) 50%, transparent 80%);
  opacity: var(--atm-opacity-3, 0.45);
  animation: dance-4 38s cubic-bezier(.5,.05,.5,.95) infinite;
}
@media (max-width: 720px) {
  .atmosphere .layer { filter: blur(36px); -webkit-filter: blur(36px); }
}
@media (prefers-reduced-motion: reduce) {
  .atmosphere .layer { animation: none !important; }
}

/* Halo 1 · bottom-left base · sweeps up & right, returns through the centre */
@keyframes dance-1 {
  0%   { transform: translate3d(-30%,  12%, 0) scale(1)    rotate(0deg);   opacity: 0.30; }
  22%  { transform: translate3d(-12%,  -4%, 0) scale(1.10) rotate(4deg);   opacity: 1;    }
  48%  { transform: translate3d( 18%, -14%, 0) scale(1.18) rotate(9deg);   opacity: 0.95; }
  72%  { transform: translate3d( 36%,  10%, 0) scale(1.04) rotate(3deg);   opacity: 0.40; }
  100% { transform: translate3d(-30%,  12%, 0) scale(1)    rotate(0deg);   opacity: 0.30; }
}
/* Halo 2 · top-right base · counter-sweeps lower-left */
@keyframes dance-2 {
  0%   { transform: translate3d( 30%, -10%, 0) scale(1)    rotate(0deg);   opacity: 0.35; }
  25%  { transform: translate3d( 12%,  12%, 0) scale(1.14) rotate(-5deg);  opacity: 1;    }
  52%  { transform: translate3d(-18%,  16%, 0) scale(1.22) rotate(-10deg); opacity: 0.95; }
  78%  { transform: translate3d(-34%, -10%, 0) scale(1.06) rotate(-3deg);  opacity: 0.40; }
  100% { transform: translate3d( 30%, -10%, 0) scale(1)    rotate(0deg);   opacity: 0.35; }
}
/* Halo 3 · fast pulse in the centre, accent for warmth */
@keyframes dance-3 {
  0%   { transform: translate3d(  0,   0,  0) scale(0.95) rotate(0deg);   opacity: 0.35; }
  35%  { transform: translate3d( 20%,  16%, 0) scale(1.25) rotate(5deg);   opacity: 1;    }
  65%  { transform: translate3d(-22%, -10%, 0) scale(0.9)  rotate(-7deg);  opacity: 0.50; }
  100% { transform: translate3d(  0,   0,  0) scale(0.95) rotate(0deg);   opacity: 0.35; }
}
/* Halo 4 · slow wide breath, weaves through the top half */
@keyframes dance-4 {
  0%   { transform: translate3d(-10%, -6%, 0) scale(0.9)  rotate(-3deg);  opacity: 0.25; }
  30%  { transform: translate3d( 16%,  4%, 0) scale(1.15) rotate(2deg);   opacity: 0.85; }
  60%  { transform: translate3d( 8%,  16%, 0) scale(1.05) rotate(6deg);   opacity: 1;    }
  85%  { transform: translate3d(-18%,  8%, 0) scale(1)    rotate(-1deg);  opacity: 0.50; }
  100% { transform: translate3d(-10%, -6%, 0) scale(0.9)  rotate(-3deg);  opacity: 0.25; }
}

h1.display {
  margin-top: 0;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 7.6vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--ink);
  max-width: 16ch;
}

.hero-lede {
  margin-top: clamp(28px, 3.2vw, 40px);
  max-width: 52ch;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.hero-lede .strong {
  color: var(--ink);
  font-weight: 500;
}

.hero-cta {
  margin-top: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
}
.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.form-row > .email-input { flex: 1 1 220px; min-width: 0; order: 1; }
.form-row > .opt-in { flex-basis: 100%; order: 2; }
.form-row > .signup-error { flex-basis: 100%; order: 4; }
.form-row > .btn-primary { order: 3; }
@media (max-width: 520px) {
  .form-row > .email-input { flex-basis: 100%; }
  .form-row > .btn-primary { flex-basis: 100%; }
}
.email-input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.email-input::placeholder { color: var(--ink-mute); }
.email-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ink) 6%, transparent);
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px;
  background: var(--ink);
  color: var(--warm-white);
  border-radius: 12px;
  font-weight: 500; font-size: 14px;
  letter-spacing: -0.005em;
  transition: background .25s ease, transform .2s ease;
  white-space: nowrap;
}
.btn-primary:hover { background: #000; }
.btn-primary svg { width: 14px; height: 14px; }

.secondary-link {
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color .2s ease;
  align-self: flex-start;
}
.secondary-link:hover { color: var(--ink); }
.secondary-link .arr { transition: transform .25s ease; }
.secondary-link:hover .arr { transform: translate(2px, -2px); }

h1.display .refract {
  position: relative;
  background: linear-gradient(
    100deg,
    var(--ink) 0%,
    var(--ink) 18%,
    color-mix(in oklab, var(--atm-1) 90%, var(--ink) 10%) 42%,
    color-mix(in oklab, var(--atm-2) 90%, var(--ink) 10%) 58%,
    color-mix(in oklab, var(--atm-3) 90%, var(--ink) 10%) 72%,
    var(--ink) 92%,
    var(--ink) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: refract-drift 14s ease-in-out infinite alternate;
}
@keyframes refract-drift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Light shaft · OFF (too heavy in current direction) */
.atmosphere .shaft { display: none; }
/* Atmosphere thread / shaft · removed in favor of pure luminous masses */

/* ============ HERO KEYLINE · bandeau éditorial intégré ============ */
.hero-keyline {
  margin-top: clamp(26px, 3.6vw, 42px);
  padding-top: clamp(18px, 2.2vw, 26px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 16px);
  max-width: 100%;
}
.hero-keyline .capacities {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1vw, 14px) clamp(14px, 1.8vw, 22px);
  align-items: baseline;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-transform: none;
}
.hero-keyline .capacities .kw {
  white-space: nowrap;
  transition: color .25s ease;
}
.hero-keyline .capacities .kw:hover { color: var(--ink-soft); }
.hero-keyline .capacities .sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: color-mix(in oklab, var(--atm-2) 50%, var(--ink-mute));
  opacity: 0.55;
  display: inline-block;
  flex-shrink: 0;
  position: relative;
  top: -3px;
}
.hero-keyline .manifesto {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: 60ch;
}

@media (max-width: 720px) {
  .hero-keyline .capacities {
    font-size: clamp(20px, 5.5vw, 26px);
  }
}

/* ============ FRAGMENTS ============ */
.fragments-section {
  padding-top: clamp(72px, 11vw, 140px);
  padding-bottom: clamp(80px, 12vw, 160px);
  border-top: 1px solid var(--line-soft);
}

.fragments-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(48px, 7vw, 88px);
}
@media (max-width: 760px) {
  .fragments-head { grid-template-columns: 1fr; }
}
.small-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 500;
}
.small-label::before {
  content: ""; width: 32px; height: 1px; background: currentColor; opacity: .35;
}
.fragments-head h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 22ch;
  margin-top: 18px;
}

.fragments-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.frag {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  border-radius: 18px;
  background: color-mix(in oklab, var(--warm-white) 80%, white);
  border: 1px solid var(--line-soft);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s ease, box-shadow .35s ease;
}
.frag:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -36px rgba(15,17,16,0.18);
}
.frag .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.frag h3 {
  margin-top: auto;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 22ch;
}

.frag .accent-line {
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--c-violet) 15%,
    var(--c-coral) 45%,
    var(--c-amber) 75%,
    transparent 100%);
  opacity: 0;
  transition: opacity .4s ease, transform .6s ease;
  transform-origin: left;
  transform: scaleX(0.6);
}
.frag:hover .accent-line { opacity: 0.55; transform: scaleX(1); }

.frag .frag-wash {
  position: absolute; inset: 0; z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}
.frag .frag-wash svg { width: 100%; height: 100%; display: block; }

.frag.a { grid-column: span 7; min-height: 300px; }
.frag.b { grid-column: span 5; }
.frag.c { grid-column: span 5; }
.frag.d { grid-column: span 7; }
.frag.e { grid-column: span 12; min-height: 280px; }

@media (max-width: 900px) {
  .frag.a, .frag.b, .frag.c, .frag.d, .frag.e { grid-column: span 12; }
}

.frag.e {
  background: var(--ink);
  color: var(--warm-white);
  border-color: var(--ink);
  align-items: start;
  justify-content: space-between;
  padding: clamp(36px, 4vw, 56px);
}
.frag.e .num { color: color-mix(in oklab, var(--warm-white) 55%, transparent); }
.frag.e h3 {
  color: var(--warm-white);
  margin-top: auto;
  font-size: clamp(28px, 3.4vw, 48px);
  max-width: 18ch;
  letter-spacing: -0.035em;
}
.frag.e .frag-wash { opacity: 0.55; }

/* ============================================================
   DOMAINES · liste compacte, élégante, respirante
   ============================================================ */
.domains-section {
  padding-top: clamp(80px, 11vw, 140px);
  padding-bottom: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line-soft);
}

.domains-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
@media (max-width: 760px) {
  .domains-head { grid-template-columns: 1fr; align-items: start; }
}
.domains-head h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 22ch;
  margin-top: 18px;
}

/* ============================================================
   DOMAINES · bento asymétrique, cartes vivantes
   ============================================================ */
.domains-bento {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.4vw, 20px);
}

.dom-card {
  --accent: var(--ink-mute);
  --accent-soft: color-mix(in oklab, var(--accent) 14%, transparent);
  position: relative;
  background: color-mix(in oklab, var(--warm-white) 60%, white);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: clamp(26px, 2.8vw, 38px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 22px);
  isolation: isolate;
  overflow: hidden;
  transition:
    border-color 1.4s cubic-bezier(.22, 1, .36, 1),
    background  1.4s cubic-bezier(.22, 1, .36, 1);
}
/* Accent vertical · côté gauche, fin et discret */
.dom-card::before {
  content: "";
  position: absolute;
  top: clamp(22px, 2.4vw, 32px);
  bottom: clamp(22px, 2.4vw, 32px);
  left: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.35;
  border-radius: 0 2px 2px 0;
  transition: opacity .9s ease, top .9s ease, bottom .9s ease;
}
.dom-card:hover {
  border-color: color-mix(in oklab, var(--accent) 18%, var(--line));
  background: color-mix(in oklab, var(--warm-white) 55%, white);
}
.dom-card:hover::before {
  opacity: 0.55;
}

/* Bento spans */
.dom-card.v-large    { grid-column: span 8; min-height: 320px; }
.dom-card.v-standard { grid-column: span 4; min-height: 320px; }
.dom-card.v-compact  { grid-column: span 4; min-height: 210px; }
.dom-card.v-wide     { grid-column: span 12; min-height: 200px; }

/* Watermark · grand numéro en filigrane, très discret */
.dom-watermark {
  position: absolute;
  top: -10px;
  right: -4px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(84px, 9vw, 132px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.dom-card.v-compact .dom-watermark,
.dom-card.v-wide .dom-watermark {
  font-size: clamp(64px, 6.5vw, 96px);
  top: -6px;
}

/* Head · eyebrow + pulse */
.dom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.dom-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--accent) 45%, var(--ink-soft));
}
.dom-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}
.dom-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
}
.dom-card:hover .dom-pulse {
  opacity: 0.6;
}

/* Titres */
.dom-card h3 {
  position: relative;
  z-index: 1;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.dom-card.v-large    h3 { font-size: clamp(28px, 2.8vw, 36px); max-width: 18ch; }
.dom-card.v-standard h3 { font-size: clamp(22px, 1.9vw, 26px); max-width: 14ch; }
.dom-card.v-compact  h3 { font-size: clamp(19px, 1.7vw, 22px); max-width: 16ch; }
.dom-card.v-wide     h3 { font-size: clamp(24px, 2.2vw, 30px); max-width: 22ch; }

/* Lede */
.dom-lede {
  position: relative;
  z-index: 1;
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* Quote · uniquement sur les vedettes */
.dom-quote {
  position: relative;
  z-index: 1;
  font-family: 'Hanken Grotesk', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.35;
  color: color-mix(in oklab, var(--accent) 45%, var(--ink));
  letter-spacing: -0.015em;
  max-width: 30ch;
  padding-top: 4px;
  border-top: 1px solid var(--line-soft);
  margin-top: 2px;
}

/* Chips outputs */
.dom-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  position: relative;
  z-index: 1;
}
.dom-chips li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  color: color-mix(in oklab, var(--accent) 55%, var(--ink-soft));
  border: 1px solid color-mix(in oklab, var(--accent) 18%, var(--line-soft));
  transition: background .6s ease, color .6s ease, border-color .6s ease;
}
.dom-card:hover .dom-chips li {
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border-color: color-mix(in oklab, var(--accent) 28%, var(--line-soft));
}

/* Couleurs d'accent par catégorie */
.dom-card[data-cat="veille"]     { --accent: var(--c-cyan);   }
.dom-card[data-cat="intel"]      { --accent: var(--c-violet); }
.dom-card[data-cat="auto"]       { --accent: var(--c-amber);  }
.dom-card[data-cat="creation"]   { --accent: var(--c-coral);  }
.dom-card[data-cat="production"] { --accent: var(--c-amber);  }
.dom-card[data-cat="recherche"]  { --accent: var(--c-violet); }
.dom-card[data-cat="structure"]  { --accent: color-mix(in oklab, var(--ink) 65%, var(--ink-soft)); }

/* Atmosphère interne très discrète sur les vedettes */
.dom-card.v-large::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 60%;
  aspect-ratio: 1;
  right: -20%;
  bottom: -30%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 9%, transparent), transparent 70%);
  filter: blur(50px);
  opacity: 0.4;
  pointer-events: none;
}

/* Responsive · le bento se replie progressivement */
@media (max-width: 1100px) {
  .dom-card.v-large    { grid-column: span 12; min-height: 240px; }
  .dom-card.v-standard { grid-column: span 6; }
  .dom-card.v-compact  { grid-column: span 6; }
  .dom-card.v-wide     { grid-column: span 12; }
}
@media (max-width: 720px) {
  .dom-card.v-large,
  .dom-card.v-standard,
  .dom-card.v-compact,
  .dom-card.v-wide { grid-column: span 12; min-height: 0; }
  .dom-watermark { font-size: clamp(72px, 16vw, 110px); }
}

@media (prefers-reduced-motion: reduce) {
  .dom-card, .dom-card::before, .dom-chips li { transition: none; }
}

/* ============================================================
   MANIFESTE · centré, rythme strong/soft, séparateurs fins
   ============================================================ */
.manifeste-section {
  padding-top: clamp(96px, 13vw, 160px);
  padding-bottom: clamp(96px, 13vw, 160px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.manifeste-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line-soft);
}
/* Atmosphere wash · vivante mais très discrète */
.manifeste-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 25% 30%, color-mix(in oklab, var(--atm-1) 22%, transparent) 0%, transparent 70%),
    radial-gradient(40% 50% at 75% 70%, color-mix(in oklab, var(--atm-2) 20%, transparent) 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.55;
}

.manifeste-inner {
  max-width: 1080px;
  text-align: center;
}
.m-eyebrow {
  display: inline-flex;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.m-eyebrow::before { display: none; }
.manifeste-lines {
  display: flex;
  flex-direction: column;
  /* dividers via box-shadow on each line */
}
.m-line {
  font-family: 'Hanken Grotesk', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.15;
  padding: clamp(22px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line-soft);
  text-wrap: balance;
}
.m-line:last-child { border-bottom: 0; }
.m-line.strong {
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.m-line.soft {
  font-weight: 400;
  color: var(--ink-mute);
  font-size: clamp(17px, 1.9vw, 24px);
  letter-spacing: -0.015em;
  padding-top: clamp(16px, 2vw, 24px);
  padding-bottom: clamp(16px, 2vw, 24px);
}
.m-accent {
  background: linear-gradient(100deg,
    color-mix(in oklab, var(--c-violet) 92%, var(--ink) 8%) 0%,
    color-mix(in oklab, var(--c-coral)  88%, var(--ink) 12%) 50%,
    color-mix(in oklab, var(--c-amber)  90%, var(--ink) 10%) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: refract-drift 14s ease-in-out infinite alternate;
}

/* ============================================================
   FLOWS INLINE · accordéon déployé dans la section Domaines
   ============================================================ */
.flows-reveal {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CTA centré sous la liste des domaines */
.reveal-flows-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px 13px 18px;
  border-radius: 999px;
  background: var(--warm-white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.reveal-flows-btn:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -22px rgba(15,17,16,0.35);
}
.reveal-flows-btn .reveal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-amber);
  position: relative;
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--c-amber) 60%, transparent);
  animation: pulse-amber 2.6s ease-in-out infinite;
}
.reveal-flows-btn .reveal-chevron {
  width: 14px; height: 14px;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
  opacity: 0.7;
}
.reveal-flows-btn:hover .reveal-chevron { opacity: 1; }
.reveal-flows-btn.is-open .reveal-chevron { transform: rotate(180deg); }

@keyframes pulse-amber {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--c-amber) 55%, transparent); }
  50%      { box-shadow: 0 0 0 7px color-mix(in oklab, var(--c-amber) 0%, transparent); }
}

/* Accordéon · grid-rows trick pour transition de hauteur fluide */
.flows-inline {
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s cubic-bezier(.22, 1, .36, 1);
}
.flows-inline.is-open { grid-template-rows: 1fr; }
.flows-inline > .flows-inline-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .4s ease .05s, transform .55s cubic-bezier(.22, 1, .36, 1);
}
.flows-inline.is-open > .flows-inline-inner {
  opacity: 1;
  transform: none;
}

.flows-inline-inner {
  padding-top: clamp(36px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}

.flows-inline-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 56ch;
}
.flows-inline-head .small-label::before { display: none; }
.flows-inline-head p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.flows-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-amber);
  margin-right: 10px;
  display: inline-block;
  position: relative;
  top: -1px;
  animation: pulse-amber 2.6s ease-in-out infinite;
}

.flows-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.flow-pill {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-mute);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.flow-pill:hover { color: var(--ink); border-color: var(--ink-mute); }
.flow-pill.is-active {
  background: var(--ink);
  color: var(--warm-white);
  border-color: var(--ink);
}

.flows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 980px) { .flows-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .flows-grid { grid-template-columns: 1fr; } }

.flow-card {
  position: relative;
  background: color-mix(in oklab, var(--warm-white) 70%, white);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
  overflow: hidden;
}
.flow-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--c-amber) 50%, transparent 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.flow-card:hover {
  border-color: color-mix(in oklab, var(--ink) 20%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -28px rgba(15,17,16,0.22);
}
.flow-card:hover::before { opacity: 0.6; }
.flow-card.is-hidden { display: none; }

.flow-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.flow-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.tag-veille     { color: color-mix(in oklab, var(--c-cyan)   60%, var(--ink-soft)); border-color: color-mix(in oklab, var(--c-cyan)   45%, var(--line)); background: color-mix(in oklab, var(--c-cyan)   10%, transparent); }
.tag-intel      { color: color-mix(in oklab, var(--c-violet) 60%, var(--ink-soft)); border-color: color-mix(in oklab, var(--c-violet) 45%, var(--line)); background: color-mix(in oklab, var(--c-violet) 10%, transparent); }
.tag-auto       { color: color-mix(in oklab, var(--c-amber)  60%, var(--ink-soft)); border-color: color-mix(in oklab, var(--c-amber)  55%, var(--line)); background: color-mix(in oklab, var(--c-amber)  12%, transparent); }
.tag-ia         { color: color-mix(in oklab, var(--c-coral)  60%, var(--ink-soft)); border-color: color-mix(in oklab, var(--c-coral)  45%, var(--line)); background: color-mix(in oklab, var(--c-coral)  10%, transparent); }
.tag-structure  { color: var(--ink-soft); border-color: var(--line); background: color-mix(in oklab, var(--ink) 4%, transparent); }
.tag-creation   { color: color-mix(in oklab, var(--c-coral)  55%, var(--ink-soft)); border-color: color-mix(in oklab, var(--c-coral)  40%, var(--line)); background: color-mix(in oklab, var(--c-coral)  8%, transparent); }
.tag-production { color: color-mix(in oklab, var(--c-cyan)   55%, var(--ink-soft)); border-color: color-mix(in oklab, var(--c-cyan)   40%, var(--line)); background: color-mix(in oklab, var(--c-cyan)   8%, transparent); }

.flow-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.flow-state .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.state-live .dot {
  background: var(--c-amber);
  animation: pulse-amber 2.8s ease-in-out infinite;
}
.state-live { color: color-mix(in oklab, var(--c-amber) 50%, var(--ink-soft)); }
.state-on   .dot { background: var(--c-violet); opacity: 0.75; }
.state-on   { color: color-mix(in oklab, var(--c-violet) 50%, var(--ink-soft)); }
.state-idle .dot { background: transparent; border: 1px solid var(--ink-mute); }

.flow-card h3 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.flow-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
}

.flow-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.flow-rhythm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.flow-bar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.flow-bar i {
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: color-mix(in oklab, var(--ink) 8%, transparent);
}
.flow-bar i.b1 { background: color-mix(in oklab, var(--c-violet) 55%, transparent); }
.flow-bar i.b2 { background: color-mix(in oklab, var(--c-amber)  60%, transparent); }
.flow-bar i.b3 { background: color-mix(in oklab, var(--c-cyan)   55%, transparent); }

.flows-inline-footnote {
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
  margin-top: 4px;
  max-width: 56ch;
}

/* ============================================================
   FLOWS · exemple concret + stack (ancrage réel)
   ============================================================ */
.flows-example {
  margin-top: clamp(16px, 2vw, 24px);
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: color-mix(in oklab, var(--warm-white) 60%, white);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.flow-pipeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  counter-reset: pipeline;
  position: relative;
}
.flow-pipeline li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 14px 0;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  position: relative;
}
.flow-pipeline li:first-child { border-left-color: var(--c-amber); }
.flow-pipeline .step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: color-mix(in oklab, var(--c-amber) 45%, var(--ink-mute));
  font-weight: 500;
}
.flow-pipeline .step-text {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 760px) {
  .flow-pipeline { grid-template-columns: 1fr; }
}

.flows-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.flows-stack p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  max-width: 72ch;
}

/* ============================================================
   POUR QUI · composition éditoriale, centre de gravité
   ============================================================ */
.audience-section {
  padding-top: clamp(120px, 14vw, 180px);
  padding-bottom: clamp(120px, 14vw, 180px);
  border-top: 1px solid var(--line-soft);
  position: relative;
  isolation: isolate;
  overflow: clip;
}
/* Atmosphère très discrète · ancrage chromatique cohérent avec le reste */
.audience-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 50% at 75% 28%, color-mix(in oklab, var(--atm-1) 16%, transparent) 0%, transparent 70%),
    radial-gradient(40% 44% at 18% 78%, color-mix(in oklab, var(--atm-2) 14%, transparent) 0%, transparent 70%);
  filter: blur(70px);
  opacity: 0.6;
}

.audience-stack {
  max-width: 940px;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 72px);
  align-items: flex-start;
}
.audience-eyebrow {
  margin: 0;
}

/* Phrase principale — sobre, ouvrante */
.audience-head {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink-mute);
  max-width: 30ch;
  text-wrap: balance;
}

/* Ligne meta · capacités en mono */
.audience-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--ink-mute) 80%, var(--c-amber) 20%);
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  width: 100%;
  max-width: 720px;
}

/* Centre de gravité · phrase pivot, plus large, plus haute densité */
.audience-gravity {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.042em;
  color: var(--ink);
  max-width: 20ch;
  text-wrap: balance;
}
.audience-gravity em {
  font-style: normal;
  font-weight: 600;
  background: linear-gradient(95deg,
    color-mix(in oklab, var(--c-violet) 78%, var(--ink) 22%) 0%,
    color-mix(in oklab, var(--c-coral)  78%, var(--ink) 22%) 60%,
    color-mix(in oklab, var(--c-amber)  82%, var(--ink) 18%) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: refract-drift 18s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-flows-btn .reveal-dot,
  .flows-live-dot,
  .state-live .dot { animation: none !important; }
  .flows-inline,
  .flows-inline > .flows-inline-inner { transition: none !important; }
}

/* Studio mention in footer base */
.foot-studio {
  color: color-mix(in oklab, var(--ink-soft) 80%, var(--ink-mute));
  text-transform: none;
  letter-spacing: 0.04em;
}

/* ============ FOOTER ============ */
footer.site {
  border-top: 1px solid var(--line-soft);
  padding: clamp(56px, 7vw, 88px) 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 80px);
  padding-bottom: 56px;
  align-items: start;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand { margin-bottom: 22px; }
.foot-brand p {
  color: var(--ink-soft);
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.55;
}

.foot-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: end;
}
@media (max-width: 760px) {
  .foot-nav { align-items: start; }
}
.foot-nav a {
  font-size: 14px;
  color: var(--ink);
  transition: color .2s ease;
}
.foot-nav a:hover { color: var(--ink-mute); }

.foot-base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap;
  font-weight: 500;
}

/* ============ CONTACT DIALOG ============ */
.contact-dialog {
  border: 0;
  padding: 0;
  margin: auto;
  background: var(--warm-white);
  color: var(--ink);
  border-radius: 24px;
  max-width: 600px;
  width: calc(100% - 24px);
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 40px 80px -30px rgba(15,17,16,0.4);
}
.contact-dialog:not([open]) { display: none; }
.contact-dialog[open] { display: block; }
.contact-dialog::backdrop {
  background: color-mix(in oklab, var(--ink) 35%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.contact-dialog[open] {
  animation: dialog-in .3s ease;
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.dialog-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-mute);
  transition: background .2s ease, color .2s ease;
  z-index: 2;
}
.dialog-close:hover { background: var(--line-soft); color: var(--ink); }

.dialog-inner {
  padding: clamp(24px, 3vw, 36px);
}
.dialog-inner h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 10px;
}
.dialog-inner .dialog-lede {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 46ch;
  margin-bottom: 22px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.contact-form .field--full { grid-column: 1 / -1; }
@media (max-width: 520px) {
  .contact-form { grid-template-columns: 1fr; }
}
.contact-form .field { gap: 4px; }
.contact-form .field input,
.contact-form .field textarea {
  padding: 6px 0 8px;
  font-size: 14.5px;
}
.contact-form .field--textarea textarea { min-height: 56px; max-height: 88px; }
.contact-form .btn-primary { padding: 12px 20px; margin-top: 4px; }
.dialog-inner {
  padding: clamp(24px, 3vw, 36px);
}
.dialog-inner h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-top: 8px;
}
.dialog-inner .dialog-lede {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13.5px;
  max-width: 46ch;
  margin-bottom: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field > span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.field > span em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  opacity: 0.7;
  margin-left: 4px;
}
.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 10px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .25s ease;
  resize: none;
  font-family: inherit;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); opacity: 0.6; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--ink); }
.field--textarea textarea { min-height: 64px; max-height: 120px; }

/* Opt-in checkbox */
.opt-in {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  align-items: start;
  margin-top: 4px;
}
.opt-in input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.opt-in .opt-in-box {
  grid-column: 1;
  grid-row: 1;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--warm-white);
  display: grid;
  place-items: center;
  color: var(--warm-white);
  transition: border-color .2s ease, background .2s ease;
  margin-top: 1px;
  cursor: pointer;
  opacity: 0.85;
}
.opt-in:hover .opt-in-box { opacity: 1; }
.opt-in .opt-in-box svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity .2s ease, transform .2s ease;
}
.opt-in input[type="checkbox"]:checked + .opt-in-box {
  background: var(--ink);
  border-color: var(--ink);
}
.opt-in input[type="checkbox"]:checked + .opt-in-box svg {
  opacity: 1;
  transform: scale(1);
}
.opt-in input[type="checkbox"]:focus-visible + .opt-in-box {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 12%, transparent);
}
.opt-in .opt-in-text {
  grid-column: 2;
  grid-row: 1;
  font-size: 12px;
  line-height: 1.5;
  color: color-mix(in oklab, var(--ink-mute) 85%, transparent);
}
.opt-in .opt-in-text label {
  cursor: pointer;
  margin-right: 4px;
}
.opt-in .opt-in-text a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.opt-in .opt-in-text a:hover { text-decoration-color: var(--ink); color: var(--ink); }
.opt-in .field-error {
  grid-column: 2;
  grid-row: 2;
}
.opt-in.is-invalid .opt-in-box { border-color: #c84c3a; }

/* Hero signup error (sits between opt-in and any next element) */
.signup-error {
  display: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c84c3a;
  margin-top: 2px;
}

/* Validation */
.field.is-invalid input,
.field.is-invalid textarea {
  border-bottom-color: #c84c3a;
}
.field-error {
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c84c3a;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .25s ease, max-height .25s ease, margin-top .25s ease;
}
.field.is-invalid .field-error {
  opacity: 1;
  max-height: 30px;
}
.contact-form .btn-primary { grid-column: 1 / -1; margin-top: 8px; padding: 14px 22px; align-self: stretch; }

/* ============ LEGAL PAGES ============ */
.legal {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(80px, 12vw, 160px);
  max-width: 760px;
}
.legal h1 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-top: 18px;
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 22ch;
}
.legal h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-top: clamp(32px, 4vw, 48px);
  margin-bottom: 12px;
  color: var(--ink);
}
.legal p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 64ch;
}
.legal p + p { margin-top: 12px; }
.legal a.inline { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.legal a.inline:hover { text-decoration-color: var(--ink); }

.legal-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-weight: 500;
}

/* ============ DRAWER (legal pages overlay) ============ */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(560px, 100%);
  z-index: 100;
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.drawer.is-open { transform: translateX(0); pointer-events: auto; }

.drawer-scrim {
  position: fixed;
  inset: 0;
  background: color-mix(in oklab, var(--ink) 30%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  z-index: 99;
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer-panel {
  flex: 1;
  background: var(--warm-white);
  border-left: 1px solid var(--line-soft);
  box-shadow: -30px 0 80px -40px rgba(15,17,16,0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.drawer-head .drawer-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.drawer-close {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background .2s ease, color .2s ease;
}
.drawer-close:hover { background: var(--line-soft); color: var(--ink); }

.drawer-body {
  overflow-y: auto;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 44px) clamp(40px, 6vw, 64px);
}
.drawer-body h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: clamp(24px, 3vw, 36px);
  max-width: 18ch;
}
.drawer-body h3 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  margin-top: clamp(24px, 3vw, 32px);
  margin-bottom: 10px;
  color: var(--ink);
}
.drawer-body p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.65;
}
.drawer-body p + p { margin-top: 10px; }
.drawer-body a.inline {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.drawer-body a.inline:hover { text-decoration-color: var(--ink); }
.drawer-body .drawer-meta {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

body.has-drawer { overflow: hidden; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ============ TWEAKS PANEL ============ */
.tweaks-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147483646;
  width: 260px;
  background: color-mix(in oklab, var(--warm-white) 85%, transparent);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: var(--ink);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.tweaks-panel.is-open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 10px 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.tweaks-head strong {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.tweaks-close {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--ink-mute);
  transition: background .2s ease, color .2s ease;
}
.tweaks-close:hover { background: var(--line-soft); color: var(--ink); }
.tweaks-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.tweaks-section {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.tweaks-palette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.palette-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.palette-opt:hover { border-color: var(--ink-mute); }
.palette-opt.is-active { border-color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }
.palette-opt .sw {
  width: 18px; height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.palette-opt .opt-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.tweaks-hint {
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin-top: 4px;
}
