/* RoboIns · plain CSS, no build step */
:root {
  --ink: #0F0C20;
  --ink-2: #171128;
  --ink-3: #221a3a;
  --violet: #3A1C71;
  --lavender: #7048A4;
  --neon: #D76D77;
  --accent: #FFAF7B;
  --paper: #F7F5FB;
  --paper-2: #EEEAF6;
  --text: #1d1830;
  --text-2: #5b5470;
  --line: #e2dcef;
  --on-dark: #f3f0fa;
  --on-dark-2: #aaa3c2;
  --line-dark: rgba(255,255,255,.09);
  --grad: linear-gradient(100deg, #FFAF7B 0%, #D76D77 45%, #A87FFF 100%);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20,10,50,.04), 0 12px 32px -12px rgba(40,20,90,.18);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lavender); text-underline-offset: 3px; }
a:hover { color: var(--neon); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
address { font-style: normal; }
.icon { width: 24px; height: 24px; flex: none; }
.small { font-size: .875rem; }
.muted { color: var(--text-2); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(15,12,32,.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-dark); color: var(--on-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; }
.brand:hover { color: #fff; }
.logo-mark { width: 38px; height: 38px; }
.logo-ring { transform-origin: 50px 50px; transform-box: view-box; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.brand:hover .logo-ring { transform: rotate(180deg); }
.wordmark { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.wordmark b { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; color: #fff; }
.wordmark b span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark small { margin-top: 5px; font-size: .62rem; font-weight: 600; letter-spacing: .24em; margin-right: -.24em; text-transform: uppercase; color: var(--on-dark-2); white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--on-dark-2); text-decoration: none; font-size: .93rem; font-weight: 500; transition: color .2s, background .2s; }
.main-nav ul a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav ul a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.09); }
.nav-extra { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; border: 1px solid var(--line-dark); border-radius: 999px; padding: 3px; }
.lang-switch a { font-size: .75rem; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; color: var(--on-dark-2); text-decoration: none; }
.lang-switch a[aria-current] { background: rgba(255,255,255,.12); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--on-dark); padding: 8px; cursor: pointer; }
.nav-toggle .i-close { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 650; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-grad { background: var(--grad); color: var(--ink); box-shadow: 0 8px 28px -8px rgba(215,109,119,.55); }
.btn-grad:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 12px 34px -8px rgba(215,109,119,.7); }
.btn-ghost { border-color: rgba(255,255,255,.22); color: var(--on-dark); }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.05); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--violet); color: #fff; }
.btn-line { border-color: var(--line); color: var(--text); background: #fff; }
.btn-line:hover { border-color: var(--lavender); color: var(--lavender); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: radial-gradient(1200px 600px at 75% 20%, rgba(112,72,164,.35), transparent 60%),
              radial-gradient(800px 500px at 10% 90%, rgba(215,109,119,.18), transparent 60%), var(--ink);
  margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, var(--ink)); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; min-height: min(88vh, 820px); display: flex; flex-direction: column; justify-content: center; padding-top: 72px; padding-bottom: 96px; }
.hero h1 { max-width: 15ch; margin-bottom: .35em; }
.hero .lead { max-width: 40rem; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--on-dark-2); }
.section .lead { color: var(--text-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lavender); margin-bottom: 18px;
}
.hero .eyebrow, .section-dark .eyebrow, .page-hero .eyebrow { color: var(--accent); }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); font-size: .8rem; color: var(--on-dark-2); margin-bottom: 26px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,175,123,.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,175,123,0); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.hero-quote { margin-top: 56px; padding-left: 18px; border-left: 2px solid; border-image: var(--grad) 1; max-width: 36rem; color: var(--on-dark-2); font-size: .98rem; }

/* sub page hero */
.page-hero {
  position: relative; overflow: hidden; color: var(--on-dark); background: var(--ink);
  margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 72px) 0 72px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(700px 360px at 85% 0%, rgba(112,72,164,.55), transparent 65%),
              radial-gradient(500px 300px at 0% 100%, rgba(215,109,119,.22), transparent 65%);
}
.page-hero .hexes { position: absolute; right: -60px; top: 50%; transform: translateY(-46%); width: 420px; opacity: .22; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 20ch; }
.page-hero .lead { max-width: 44rem; margin: 0; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--paper-2); }
.section-white { background: #fff; }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark .lead, .section-dark .muted { color: var(--on-dark-2); }
.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.top { align-items: start; }
.split > *, .grid > * { min-width: 0; }
body { overflow-x: hidden; }

.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-3px); border-color: #d3c8ea; box-shadow: 0 1px 2px rgba(20,10,50,.04), 0 22px 44px -16px rgba(40,20,90,.28); }
.card h3 { margin-top: 18px; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(135deg, rgba(112,72,164,.12), rgba(255,175,123,.18)); color: var(--violet);
}
.section-dark .card { background: var(--ink-2); border-color: var(--line-dark); box-shadow: none; }
.section-dark .card:hover { border-color: rgba(255,175,123,.35); }
.section-dark .card .ico { background: rgba(255,255,255,.06); color: var(--accent); }
.section-dark .card p { color: var(--on-dark-2); }
.card .tag { position: absolute; top: 24px; right: 24px; font: 700 .72rem/1 var(--mono); letter-spacing: .08em; color: var(--text-2); }

/* problem chain */
.chain { padding: 0; margin: 0; counter-reset: c; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.chain li { list-style: none; position: relative; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 16px; padding: 22px 20px; }
.chain li::before {
  counter-increment: c; content: "0" counter(c); display: block; font: 700 .8rem/1 var(--mono); letter-spacing: .1em; margin-bottom: 14px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chain li:not(:last-child)::after { content: ""; position: absolute; top: 30px; right: -12px; width: 10px; height: 10px; border-top: 2px solid var(--neon); border-right: 2px solid var(--neon); transform: rotate(45deg); opacity: .7; }
.chain h3 { font-size: 1rem; color: #fff; margin: 0 0 8px; }
.chain p { font-size: .88rem; color: var(--on-dark-2); margin: 0; }
.chain-loop { margin-top: 22px; display: flex; align-items: center; gap: 12px; color: var(--on-dark-2); font-size: .92rem; }
.chain-loop .icon { color: var(--accent); }

/* callout */
.notice {
  display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(58,28,113,.06), rgba(255,175,123,.12)); border: 1px solid #e6d9ee;
}
.notice .icon { color: var(--neon); width: 28px; height: 28px; margin-top: 2px; }
.notice p { margin: 0; }
.notice strong { color: var(--ink); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); background: #faf8fd; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td code, .code { font: 700 .82rem var(--mono); color: var(--violet); background: rgba(112,72,164,.09); padding: 3px 7px; border-radius: 6px; white-space: nowrap; }

/* matrix tiles */
.matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 16px; padding: 20px; transition: border-color .3s, transform .3s; }
.tile:hover { border-color: rgba(255,175,123,.45); transform: translateY(-2px); }
.tile .code { background: rgba(255,175,123,.1); color: var(--accent); }
.tile h3 { font-size: 1rem; margin: 14px 0 6px; color: #fff; }
.tile p { font-size: .87rem; color: var(--on-dark-2); margin: 0; }
.section:not(.section-dark) .tile { background: #fff; border-color: var(--line); }
.section:not(.section-dark) .tile h3 { color: var(--text); }
.section:not(.section-dark) .tile p { color: var(--text-2); }
.section:not(.section-dark) .tile .code { background: rgba(112,72,164,.09); color: var(--violet); }

/* flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: f; }
.flow > div { position: relative; padding: 0 22px 0 0; }
.flow > div::before {
  counter-increment: f; content: counter(f); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: var(--ink); font-weight: 800; margin-bottom: 16px; position: relative; z-index: 1;
}
.flow > div:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 40px; right: 0; height: 2px; background: linear-gradient(90deg, var(--neon), transparent); opacity: .5; }
.flow h3 { font-size: 1.02rem; }
.flow p { font-size: .9rem; color: var(--text-2); }
.section-dark .flow p { color: var(--on-dark-2); }

/* record mock */
.record {
  font: .84rem/1.75 var(--mono); background: var(--ink); color: #d9d2ee; border-radius: var(--radius); padding: 26px 28px;
  border: 1px solid var(--line-dark); box-shadow: 0 30px 60px -30px rgba(15,12,32,.6); overflow-x: auto; white-space: pre;
}
.record .k { color: var(--accent); }
.record .s { color: #b9f5c8; }
.record .c { color: #7d7598; }
.record-head { display: flex; gap: 6px; margin-bottom: 16px; }
.record-head i { width: 10px; height: 10px; border-radius: 50%; background: #3a3354; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--lavender), transparent); }
.timeline li { position: relative; padding: 0 0 34px 56px; }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--lavender); }
.timeline li.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(255,175,123,.22); }
.section-dark .timeline li::before { background: var(--ink); }
.timeline .phase { font: 700 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--neon); }
.timeline h3 { margin: 8px 0 6px; }
.timeline p { margin: 0; color: var(--text-2); }
.section-dark .timeline p { color: var(--on-dark-2); }

/* checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { width: 20px; height: 20px; color: var(--neon); margin-top: 4px; }
.checks.no .icon { color: var(--text-2); }

/* membership tiers */
.tier { display: flex; flex-direction: column; }
.tier .who { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--neon); }
.tier ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .93rem; color: var(--text-2); }
.tier li::before { content: "—"; color: var(--lavender); margin-right: 8px; }
.tier.featured { border: 0; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; }

/* people */
.person { display: flex; gap: 18px; align-items: flex-start; }
.avatar {
  width: 64px; height: 64px; flex: none; border-radius: 18px; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: var(--ink);
  background: var(--grad);
}
.avatar.empty { background: var(--paper-2); color: var(--text-2); border: 1px dashed #c9bfdf; }
.person .role { font-size: .85rem; color: var(--neon); font-weight: 650; margin-bottom: 6px; }
.person p { font-size: .93rem; color: var(--text-2); margin: 0; }
.person { position: relative; }
.person-links { position: absolute; top: 22px; right: 20px; display: flex; gap: 2px; }
.person-links a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #a29bb8; transition: color .2s, background .2s; }
.person-links a:hover { color: var(--violet); background: var(--paper-2); }
.person-links .icon { width: 18px; height: 18px; }
.person:has(.person-links) h3 { padding-right: 72px; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 72px); color: var(--on-dark);
  background: radial-gradient(600px 300px at 90% 10%, rgba(255,175,123,.25), transparent 60%),
              radial-gradient(600px 400px at 0% 100%, rgba(112,72,164,.6), transparent 60%), var(--ink-2);
}
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: var(--on-dark-2); max-width: 40rem; }
.cta-band .hero-actions { margin-top: 26px; }

/* prose (legal pages) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #3a3450; }
.prose .placeholder { background: #fff4e8; border-radius: 4px; padding: 0 4px; color: #8a4a12; }

/* contact */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .ico { flex: none; }
.contact-card h3 { margin: 0 0 4px; font-size: 1rem; }
.contact-card p { margin: 0; }
.big-mail { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; text-decoration: none; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.stats > div { background: var(--ink); padding: 26px 24px; }
.stats strong { display: block; font-size: 2.1rem; letter-spacing: -.03em; line-height: 1.1; }
.stats span { font-size: .88rem; color: var(--on-dark-2); }

/* footer */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: 72px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { margin-top: 18px; max-width: 30rem; }
.site-footer h3 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #7d7598; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 22px 24px 28px; border-top: 1px solid var(--line-dark); font-size: .85rem; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .main-nav ul a { padding: 8px 9px; font-size: .88rem; }
  .chain { grid-template-columns: repeat(2, 1fr); }
  .chain li::after { display: none; }
  .matrix { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 18px;
    background: var(--ink); padding: 18px 24px 28px; border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { font-size: 1.05rem; padding: 12px 10px; }
  .nav-extra { justify-content: space-between; }
  .g3, .split, .footer-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .flow > div::after { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .page-hero .hexes { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .g2, .g4, .chain, .matrix, .flow { grid-template-columns: 1fr; }
  .hero-inner { min-height: auto; padding-top: 64px; padding-bottom: 72px; }
  .hero canvas { opacity: .35; }
  .card { padding: 22px; }
  th, td { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- contact modal ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: 640px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; color: var(--text); }
.modal::backdrop { background: rgba(15,12,32,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-box { position: relative; background: #fff; border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(15,12,32,.6); overflow: hidden; }
.modal-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.modal-head { display: flex; gap: 16px; align-items: center; padding: 28px 28px 8px; }
.modal-head .ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; flex: none; background: linear-gradient(135deg, rgba(112,72,164,.12), rgba(255,175,123,.18)); color: var(--violet); }
.modal-head h2 { font-size: 1.45rem; margin: 0 0 2px; }
.modal-head p { margin: 0; }
.modal-x { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: var(--text-2); cursor: pointer; padding: 6px; border-radius: 8px; }
.modal-x:hover { background: var(--paper-2); color: var(--text); }
.modal-body { padding: 16px 28px 8px; display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; font-weight: 400; color: var(--text); width: 100%;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lavender); box-shadow: 0 0 0 4px rgba(112,72,164,.14); background: #fff; }
.field .invalid, .field input.invalid, .field textarea.invalid { border-color: var(--neon); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--text-2); }
.check input { margin-top: 3px; accent-color: var(--lavender); width: 16px; height: 16px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form-status.err { color: #b4232f; }
.form-status.ok { color: #1f7a45; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 28px 26px; }
.modal-box.done .modal-body > :not(.form-status), .modal-box.done .modal-foot .btn { display: none; }
.modal-box.done .form-status { font-size: 1.05rem; padding: 18px 0 8px; }
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .modal-head, .modal-body, .modal-foot { padding-left: 20px; padding-right: 20px; }
}

/* ---------- cookie consent ---------- */
.consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: flex-start; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-box {
  pointer-events: auto; max-width: 520px; background: #fff; color: var(--text); border-radius: 20px; padding: 22px 22px 18px;
  box-shadow: 0 30px 60px -20px rgba(15,12,32,.45), 0 0 0 1px rgba(15,12,32,.06); animation: modal-in .4s cubic-bezier(.2,.8,.2,1);
}
.consent h2 { font-size: 1.05rem; margin: 0 0 6px; }
.consent p { font-size: .88rem; color: var(--text-2); margin: 0 0 14px; }
.consent-cats { display: grid; gap: 10px; margin: 0 0 14px; }
.consent-cats[hidden] { display: none; }
.consent-cat { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.consent-cat input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--lavender); flex: none; }
.consent-cat b { display: block; font-size: .9rem; }
.consent-cat small { display: block; font-size: .8rem; color: var(--text-2); line-height: 1.45; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.consent-actions [hidden] { display: none; }
.consent-main { display: flex; gap: 8px; }
.consent-main .btn { min-width: 120px; justify-content: center; }
@media (max-width: 520px) {
  .consent { left: 8px; right: 8px; bottom: 8px; }
  .consent-actions, .consent-main { width: 100%; }
  .consent-main .btn { flex: 1; min-width: 0; }
  .consent-actions > .btn { width: 100%; justify-content: center; order: 2; }
}
@media (max-width: 640px) {
  .person-links { position: static; margin: 10px 0 0 -7px; }
  .person:has(.person-links) h3 { padding-right: 0; }
}
