/* Digitalizi landing. Tokens first, then base, then sections.
   Shape system: pills for buttons, 24px for tiles, 14px for inputs. */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f4f7fd;
  --bg-2: #e9effb;
  --surface: #ffffff;
  --surface-2: #eef3fc;
  --ink: #08112b;
  --ink-2: #435070;
  --ink-3: #5a6785;
  --line: rgba(8, 17, 43, 0.1);
  --line-2: rgba(8, 17, 43, 0.22);
  --accent: #1f5ff5;
  --accent-ink: #1450d8;
  --accent-soft: rgba(31, 95, 245, 0.1);
  --orb-core: #f4f7fd;
  --orb-1: #d6e5ff;
  --orb-2: #86b6ff;
  --orb-3: #3f8cff;
  --orb-violet: rgba(139, 124, 246, 0.45);
  --grain: 0.035;
  --shadow: 0 1px 2px rgba(10, 30, 90, 0.06), 0 12px 32px -12px rgba(10, 30, 90, 0.18);

  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
  --r-tile: 24px;
  --r-field: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #03050c;
    --bg-2: #070b17;
    --surface: #0a101f;
    --surface-2: #0e1628;
    --ink: #eef3ff;
    --ink-2: #a9b6d3;
    --ink-3: #8393b4;
    --line: rgba(150, 180, 255, 0.14);
    --line-2: rgba(150, 180, 255, 0.3);
    --accent-ink: #7db1ff;
    --accent-soft: rgba(79, 140, 255, 0.14);
    --orb-core: #02030a;
    --orb-1: #08206b;
    --orb-2: #0f4fe0;
    --orb-3: #4fb4ff;
    --orb-violet: rgba(139, 124, 246, 0.5);
    --grain: 0.06;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #03050c;
  --bg-2: #070b17;
  --surface: #0a101f;
  --surface-2: #0e1628;
  --ink: #eef3ff;
  --ink-2: #a9b6d3;
  --ink-3: #8393b4;
  --line: rgba(150, 180, 255, 0.14);
  --line-2: rgba(150, 180, 255, 0.3);
  --accent-ink: #7db1ff;
  --accent-soft: rgba(79, 140, 255, 0.14);
  --orb-core: #02030a;
  --orb-1: #08206b;
  --orb-2: #0f4fe0;
  --orb-3: #4fb4ff;
  --orb-violet: rgba(139, 124, 246, 0.5);
  --grain: 0.06;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
/* Grain: fixed, pointer-events none, never on a scrolling container */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
input, textarea, select, button { font: inherit; color: inherit; caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.skip { position: absolute; left: 16px; top: -64px; z-index: 200; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 999px; transition: top 0.2s; }
.skip:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease);
}
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 0.875rem; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 1rem; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 28px -10px rgba(31, 95, 245, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn--primary:hover { background: #2a68fa; transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(31, 95, 245, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent-ink); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; text-decoration: none;
  transition: background-color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.icon-btn:hover { background: var(--accent-soft); border-color: var(--line-2); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn .icon { width: 20px; height: 20px; }

/* ---------- Nav ---------- */
.nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
.nav {
  position: sticky; top: 0; z-index: 80; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 84%, transparent); }
.nav__bar { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark {
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; text-transform: uppercase;
  letter-spacing: 0.3em; text-decoration: none; color: var(--ink); margin-right: -0.3em;
}
.nav__links { display: none; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); transition: color 0.2s, background-color 0.2s; }
.nav__links a:hover { color: var(--ink); background: var(--accent-soft); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__cta { display: none; }
.theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon--sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon--moon { display: none; }
}
.nav__burger .icon--close { display: none; }
.nav__burger[aria-expanded="true"] .icon--close { display: block; }
.nav__burger[aria-expanded="true"] .icon--open { display: none; }

.mobile-menu { position: absolute; inset: var(--nav-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding-block: 16px 24px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu .wrap { display: grid; gap: 4px; }
.mobile-menu a:not(.btn) { padding: 14px 4px; font-size: 1.125rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; }

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100dvh - var(--nav-h)); display: flex; align-items: center; padding-block: 56px 72px; overflow: clip; }
.hero__inner { position: relative; z-index: 2; }
.hero__copy { max-width: 700px; }
.hero__title { font-size: clamp(2.7rem, 7.4vw, 5.1rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.hero__title .line { display: block; }
.hero__title .line--accent { color: var(--accent-ink); }
.hero__sub { margin-top: 28px; max-width: 48ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stage {
  position: absolute; z-index: 1; top: 50%; right: -12%;
  width: min(66vw, 880px); aspect-ratio: 1;
  translate: calc(var(--px, 0) * 16px) calc(-50% + var(--py, 0) * 16px);
  transition: translate 0.6s var(--ease);
}
.orb { position: absolute; inset: 0; border-radius: 50%; }
.orb__glow {
  position: absolute; inset: 0; border-radius: 50%; filter: blur(26px);
  background:
    radial-gradient(circle at 80% 84%, var(--orb-violet), transparent 30%),
    radial-gradient(circle at 86% 16%, color-mix(in srgb, var(--orb-3) 70%, transparent), transparent 26%),
    radial-gradient(closest-side, var(--orb-core) 0 50%, var(--orb-1) 68%, var(--orb-2) 84%, var(--orb-3) 95%, transparent 100%);
  animation: breathe 9s ease-in-out infinite;
}
.orb__ring {
  position: absolute; inset: 2%; border-radius: 50%; opacity: 0.55; filter: blur(14px);
  background: conic-gradient(from 0deg, transparent 0 20%, var(--orb-3) 32%, transparent 46%, var(--orb-violet) 70%, transparent 86%);
  -webkit-mask: radial-gradient(closest-side, transparent 66%, #000 86%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 66%, #000 86%, transparent 100%);
  animation: spin 36s linear infinite;
}
.orbit { position: absolute; inset: 11%; border-radius: 50%; border: 1px solid var(--line-2); animation: spin 80s linear infinite; }
.orbit__node {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--accent-ink); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  animation: spin 80s linear infinite reverse;
}
.orbit__node .icon { width: 24px; height: 24px; }
.orbit__node--a { top: -26px; left: calc(50% - 26px); }
.orbit__node--b { right: -26px; top: calc(50% - 26px); }
.orbit__node--c { bottom: -26px; left: calc(50% - 26px); }
.orbit__node--d { left: -26px; top: calc(50% - 26px); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }

@media (max-width: 899px) {
  .hero { align-items: flex-start; padding-block: 40px 0; min-height: auto; flex-direction: column; }
  .hero__inner { padding-bottom: 8px; }
  .hero__inner { order: 1; }
  .hero__stage { order: 2; position: relative; top: auto; right: auto; translate: none; width: 118vw; margin: 28px -9vw -34vw; flex: none; }
  .orbit__node { width: 44px; height: 44px; }
  .orbit__node--a { top: -22px; left: calc(50% - 22px); }
  .orbit__node--b { right: -22px; top: calc(50% - 22px); }
  .orbit__node--c { bottom: -22px; left: calc(50% - 22px); }
  .orbit__node--d { left: -22px; top: calc(50% - 22px); }
  .hero__cta .btn { width: 100%; }
}

/* Hero entrance: one authored moment */
.js .hero__title .line, .js .hero__sub, .js .hero__cta {
  opacity: 0; transform: translateY(26px); filter: blur(8px);
  animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

/* ---------- Plateformes ---------- */
.stack { padding-block: 24px 40px; }
.stack__title { text-align: center; font-size: 0.9375rem; color: var(--ink-3); }
.stack__logos { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 16px; align-items: center; justify-items: center; }
.stack__logos li { color: var(--ink-3); opacity: 0.85; transition: color 0.3s, opacity 0.3s; display: grid; place-items: center; }
.stack__logos li:hover { color: var(--ink); opacity: 1; }
.logo { width: 34px; height: 34px; fill: currentColor; }
@media (min-width: 720px) { .stack__logos { grid-template-columns: repeat(9, 1fr); gap: 0 12px; } }

/* ---------- Section commons ---------- */
.section { padding-block: clamp(72px, 11vw, 144px); position: relative; }
.section--tint { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.section__head { max-width: 760px; }
.section__head h2, .method__intro h2, .faq h2, .contact__copy h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.03em; }
.section__head p, .method__intro p, .contact__copy p { margin-top: 20px; color: var(--ink-2); max-width: 56ch; font-size: 1.125rem; }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Bento ---------- */
.bento { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 16px; grid-template-columns: 1fr; }
.cell {
  position: relative; overflow: hidden; border-radius: var(--r-tile); padding: clamp(26px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 14px; min-height: 360px; isolation: isolate;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.cell:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cell h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); letter-spacing: -0.02em; margin-top: auto; }
.cell p { color: var(--ink-2); max-width: 46ch; font-size: 1rem; }
.cell__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.cell__icon .icon { width: 26px; height: 26px; }
.ticks { display: grid; gap: 8px; margin-top: 6px; font-size: 0.9375rem; font-weight: 500; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks .icon { margin-top: 0.2em; width: 1.1em; height: 1.1em; color: var(--accent-ink); }

.cell--ai {
  color: #fff; border-color: rgba(120, 170, 255, 0.35);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(80, 160, 255, 0.75), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(139, 124, 246, 0.35), transparent 70%),
    linear-gradient(160deg, #0a2fa8, #081a63);
}
.cell--ai p { color: rgba(255, 255, 255, 0.84); }
.cell--ai .cell__icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.cell--ai .ticks .icon { color: #9dccff; }

.cell--cyber {
  color: #eaf1ff; border-color: rgba(120, 160, 255, 0.22);
  background: radial-gradient(90% 70% at 0% 100%, rgba(79, 140, 255, 0.32), transparent 62%), #060a18;
}
.cell--cyber p { color: #b3c1de; }
.cell--cyber .cell__icon { background: rgba(125, 177, 255, 0.14); color: #9cc6ff; }
.cell--cyber .ticks .icon { color: #7db1ff; }

.cell--mkt { background: radial-gradient(80% 60% at 0% 0%, var(--accent-soft), transparent 70%), var(--surface); }

.cell--media {
  color: #fff; border-color: rgba(120, 190, 255, 0.35);
  background:
    radial-gradient(60% 90% at 100% 100%, rgba(40, 200, 255, 0.55), transparent 65%),
    linear-gradient(140deg, #0a3bc4, #1553e6 60%, #1a66e8);
}
.cell--media p { color: rgba(255, 255, 255, 0.88); }
.cell--media .cell__icon { background: rgba(255, 255, 255, 0.18); color: #fff; }
.cell--media .ticks .icon { color: #b9e6ff; }

@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .cell--ai { grid-column: span 4; }
  .cell--cyber { grid-column: span 2; }
  .cell--mkt { grid-column: span 2; }
  .cell--media { grid-column: span 4; }
  .cell { min-height: 400px; }
  .cell--ai h3, .cell--media h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
}

/* ---------- Méthode ---------- */
.method { display: grid; gap: 48px; }
.method__intro { align-self: start; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding-block: 36px; align-items: start; }
.step + .step { border-top: 1px solid var(--line); }
.step__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s, transform 0.5s var(--ease); }
.step__icon .icon { width: 26px; height: 26px; }
.step.is-active .step__icon { background: var(--accent); color: #fff; border-color: transparent; transform: scale(1.06); box-shadow: 0 12px 28px -10px rgba(31, 95, 245, 0.7); }
.step h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1; }
.step p { margin-top: 12px; color: var(--ink-2); max-width: 52ch; }
@media (min-width: 960px) {
  .method { grid-template-columns: 5fr 7fr; gap: 96px; }
  .method__intro { position: sticky; top: calc(var(--nav-h) + 56px); }
  .step:first-child { padding-top: 0; }
}

/* ---------- Secteurs ---------- */
.sectors { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: 20px; }
.sectors__tabs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; margin-inline: calc(-1 * clamp(20px, 4vw, 48px)); padding-inline: clamp(20px, 4vw, 48px); scrollbar-width: none; }
.sectors__tabs::-webkit-scrollbar { display: none; }
.sectors__tabs button {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-weight: 500; font-size: 0.9375rem; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.sectors__tabs button:hover { color: var(--ink); border-color: var(--line-2); }
.sectors__tabs button:active { transform: scale(0.98); }
.sectors__tabs button[aria-selected="true"] { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 10px 26px -12px rgba(31, 95, 245, 0.8); }
.panel {
  border-radius: var(--r-tile); border: 1px solid var(--line); padding: clamp(28px, 4vw, 52px); min-height: 100%;
  background: radial-gradient(70% 90% at 100% 0%, var(--accent-soft), transparent 65%), var(--surface);
  animation: panelIn 0.6s var(--ease);
}
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.025em; }
.panel dl { margin: 32px 0 0; display: grid; gap: 28px; }
.panel dt { font-weight: 600; font-size: 1.125rem; color: var(--ink); }
.panel dd { margin: 6px 0 0; color: var(--ink-2); max-width: 58ch; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) {
  .sectors { grid-template-columns: 320px 1fr; gap: 28px; align-items: stretch; }
  .sectors__tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .sectors__tabs button { height: 58px; border-radius: 18px; padding: 0 22px; font-size: 1rem; justify-content: flex-start; }
}

/* ---------- Engagements ---------- */
.pledge { background: radial-gradient(60% 80% at 50% 100%, var(--accent-soft), transparent 70%); }
.pledge__title { max-width: 18ch; font-size: clamp(2.2rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.035em; }
.pledge__items { margin-top: clamp(48px, 7vw, 96px); display: grid; gap: 40px; }
.pledge__item { max-width: 380px; }
.pledge__item .icon { width: 32px; height: 32px; color: var(--accent-ink); }
.pledge__item h3 { margin-top: 18px; font-size: 1.35rem; letter-spacing: -0.015em; }
.pledge__item p { margin-top: 8px; color: var(--ink-2); }
@media (min-width: 900px) {
  .pledge__items { grid-template-columns: 1fr 1fr 1fr; gap: 56px; align-items: start; }
  .pledge__item:nth-child(2) { margin-top: 56px; }
  .pledge__item:nth-child(3) { margin-top: 112px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 880px; }
.faq__list { margin-top: 40px; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 4px;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary .icon { width: 28px; height: 28px; padding: 5px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--accent-ink); transition: transform 0.4s var(--ease), background-color 0.25s; }
summary:hover .icon { background: var(--accent-soft); }
details[open] summary .icon { transform: rotate(45deg); }
details p { padding: 0 4px 28px; color: var(--ink-2); max-width: 64ch; animation: panelIn 0.5s var(--ease); }

/* ---------- Contact ---------- */
.contact { overflow: clip; }
.contact__glow {
  position: absolute; z-index: 0; right: -18%; top: 50%; width: min(80vw, 900px); aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; filter: blur(40px); opacity: 0.8; pointer-events: none;
  background:
    radial-gradient(circle at 74% 78%, var(--orb-violet), transparent 30%),
    radial-gradient(closest-side, transparent 0 52%, var(--orb-1) 68%, var(--orb-2) 85%, var(--orb-3) 96%, transparent 100%);
}
.contact__grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.contact__mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-weight: 600; text-decoration: none; color: var(--accent-ink); }
.contact__mail:hover { text-decoration: underline; }
.form {
  display: grid; gap: 20px; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-tile);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; border-radius: var(--r-field); border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
  padding: 14px 16px; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: #e5484d; }
.field__error { min-height: 0; font-size: 0.875rem; color: #e5484d; }
:root[data-theme="light"] .field__error, :root:not([data-theme]) .field__error { color: #c62d33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field__error { color: #ff8a8e; } }
:root[data-theme="dark"] .field__error { color: #ff8a8e; }
.select { position: relative; }
.select select { appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); translate: 0 -75%; rotate: 45deg; pointer-events: none; }
.form__submit { width: 100%; }
.form__status { font-size: 0.9375rem; color: var(--accent-ink); min-height: 1.4em; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 6fr 5fr; gap: 96px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 64px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; display: grid; gap: 18px; justify-items: start; }
.footer__brand p { color: var(--ink-2); max-width: 36ch; }
.footer__social { display: flex; gap: 10px; }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h3 { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; margin-bottom: 4px; }
.footer__col a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; transition: color 0.2s; width: fit-content; }
.footer__col a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer__bottom { margin-top: 56px; padding-block: 24px 32px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.875rem; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .hero__title .line, .js .hero__sub, .js .hero__cta, .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .hero__stage { translate: 0 -50%; }
}
