/* =========================================================================
   Лаборатория №40 — section styles
   ========================================================================= */

/* ---------------- NAV ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg-page) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg-page) 88%, transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.nav-logo { flex: none; display: flex; align-items: center; }
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 0.95rem; color: var(--text-muted);
  transition: color .2s; position: relative; padding: 4px 0;
}
.nav-links a:hover { color: var(--text-heading); }
.nav-cta { flex: none; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------------- HERO ---------------- */
.hero {
  min-height: calc(var(--section-min-h) - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(64px, 8vw, 120px);
  overflow: hidden;
  position: relative;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none; opacity: 1;
  filter: brightness(1.12);
}
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(135% 120% at 50% 35%, transparent 62%, rgba(31,36,48,0.45) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative; z-index: 2;
}
.hero-copy { max-width: 36rem; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lede { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-micro { color: var(--text-mono); letter-spacing: 0.04em; text-transform: none; font-size: 0.82rem; }

/* hero visual shell */
.hero-visual { position: relative; min-height: 380px; }
.hv { display: none; }
:root[data-hero="layered"]   .hv-layered  { display: block; }
:root[data-hero="realistic"] .hv-real     { display: block; }
:root[data-hero="stylized"]  .hv-styl     { display: block; }

/* shared interview/synth bits */
.seg-tag {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em;
  color: #e6d2cf; background: var(--accent-soft); border: 1px solid rgba(168,65,62,0.35);
  padding: 2px 7px; border-radius: 5px; text-transform: none;
}
.hv-q { color: var(--text-heading); font-weight: 600; font-size: 0.98rem; margin: 12px 0 8px; line-height: 1.4; }
.hv-a { color: var(--text-body); font-size: 0.92rem; line-height: 1.55; }
.hv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-transform: none; font-size: 0.7rem; }

/* bars (shared synthesis widget) */
.bars { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; }
.bars li { display: grid; grid-template-columns: 1fr 84px auto; align-items: center; gap: 12px; }
.bars--compact li { grid-template-columns: 1fr auto; }
.bar-label { font-size: 0.82rem; color: var(--text-muted); line-height: 1.25; }
.bar-track { position: relative; height: 7px; border-radius: 4px; background: rgba(242,239,232,0.08); overflow: hidden; }
.bars--compact .bar-track { width: 100%; }
.bar-fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  border-radius: 4px; background: var(--text-mono);
  transition: width 1.1s var(--ease);
}
.bar-fill.is-accent { background: var(--accent); }
[data-bars].filled .bar-fill { width: var(--w); }
:root.no-motion [data-bars] .bar-fill { transition: none; width: var(--w); }
.bar-val { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-heading); }

/* --- variant: LAYERED --- */
.hv-layered { position: relative; padding: 8px 8px 40px; }
.hv-dots {
  position: absolute; right: -6%; top: -10%; width: 220px; aspect-ratio: 1;
  opacity: 0.55; pointer-events: none;
}
.hv-transcript { position: relative; z-index: 2; padding: 20px 22px; max-width: 88%; }
.hv-transcript .hv-signals { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.hv-synth {
  position: relative; z-index: 3; margin-top: -18px; margin-left: auto;
  width: 86%; padding: 18px 20px;
  box-shadow: var(--shadow-pop);
  transform: translateX(6%);
}
.hv-synth-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }

/* --- variant: REALISTIC (window) --- */
.win { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border-strong); background: var(--bg-deep); box-shadow: var(--shadow-pop); }
.win-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--bg-card-2); border-bottom: 1px solid var(--border); }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(242,239,232,0.18); }
.win-title { text-transform: none; letter-spacing: 0.02em; color: var(--text-muted); font-size: 0.72rem; }
.win-meta { margin-left: auto; text-transform: none; color: var(--text-mono); }
.win-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; }
.win-thread { padding: 18px 18px; border-right: 1px solid var(--border); }
.wt-head { display: flex; align-items: center; gap: 8px; text-transform: none; color: var(--text-mono); font-size: 0.66rem; margin-bottom: 7px; }
.win-synth { padding: 18px 18px; display: flex; flex-direction: column; gap: 6px; background: rgba(0,0,0,0.12); }

/* --- variant: STYLIZED --- */
.hv-styl-card { padding: 26px 26px; box-shadow: var(--shadow-pop); }
.hv-styl-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hv-styl-quote { color: var(--text-heading); font-size: 1.22rem; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; text-wrap: pretty; }
.hv-styl-cite { display: block; margin-top: 12px; text-transform: none; color: var(--text-mono); }
.hv-styl-divider { height: 1px; background: var(--border); margin: 22px 0 16px; }

/* ---------------- HONESTY ---------------- */
.honesty-inner { display: flex; align-items: flex-start; gap: clamp(18px, 3vw, 40px); }
.honesty-tag {
  flex: none; align-self: center; padding: 7px 13px; border: 1px solid var(--border-strong);
  border-radius: 999px; color: var(--text-mono);
}
.honesty-text { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.32rem); line-height: 1.55; color: var(--text-body); max-width: 70ch; text-wrap: pretty; }

/* ---------------- WHAT IS A SYNTH AUDIENCE ---------------- */
.synthex { position: relative; overflow: hidden; }
.synthex-dots {
  position: absolute; inset: -8% -6% auto auto;
  width: min(620px, 56vw); aspect-ratio: 1;
  right: -6%; top: -4%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  opacity: 0.5;
}
.synthex-inner { position: relative; z-index: 2; max-width: 96ch; }
.synthex-h { margin-bottom: 20px; }
.synthex-lede {
  font-size: clamp(1.08rem, 1rem + 0.55vw, 1.34rem); line-height: 1.6;
  color: var(--text-body); text-wrap: pretty; margin-bottom: 18px;
}
.synthex-lede strong { color: var(--text-heading); }
.synthex-sub { color: var(--text-muted); font-size: 1.02rem; line-height: 1.6; max-width: 87ch; text-wrap: pretty; }

/* ---------------- HOW IT WORKS ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); position: relative; }
.step { position: relative; padding: 28px 26px 30px; overflow: hidden; }
.step-num { display: block; color: var(--accent-hover); font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 16px; }
.step h3 { margin-bottom: 10px; }
.step-dots { position: absolute; right: -28px; bottom: -28px; width: 150px; aspect-ratio: 1; opacity: 0.4; pointer-events: none; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------------- REPORT ---------------- */
.report-inner { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.report-copy .eyebrow { margin-bottom: 18px; }
.report-copy h2 { margin-bottom: 16px; }
.report-copy .lede { margin-bottom: 24px; }
.report-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.report-list li { display: grid; gap: 2px; padding-left: 20px; position: relative; }
.report-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.report-list strong { font-size: 0.98rem; }
.report-list span { color: var(--text-muted); font-size: 0.9rem; line-height: 1.45; }

/* report mock */
.report-mock { position: relative; }
.rm { padding: 22px 22px; display: grid; gap: 14px; }
.rm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.rm-head-l { display: grid; gap: 4px; }
.rm-title { color: var(--text-heading); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.rm-block { position: relative; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r); background: rgba(0,0,0,0.10); }
.rm-block-label { display: block; margin-bottom: 9px; color: var(--text-mono); }
/* anatomy callouts */
.rm-block[data-callout]::after {
  content: attr(data-callout);
  position: absolute; top: 12px; right: -9px; transform: translateX(100%);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em;
  color: var(--text-mono); white-space: nowrap;
  padding-left: 14px;
  display: none;
}
.rm-block[data-callout]::before {
  content: ""; position: absolute; top: 16px; right: -9px; width: 9px; height: 1px; background: var(--border-strong); display: none;
}
@media (min-width: 1200px) {
  .rm > .rm-block[data-callout]::after,
  .rm > .rm-block[data-callout]::before { display: block; }
  .rm { margin-right: 92px; }
}
.rm-persona-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pp { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--text-body); background: rgba(242,239,232,0.04); border: 1px solid var(--border); padding: 5px 10px; border-radius: 999px; }
.pp-dot { width: 8px; height: 8px; border-radius: 50%; }
.pp-dot.ok { background: var(--ok); } .pp-dot.warn { background: var(--warn); } .pp-dot.err { background: var(--error); }
.rm-quote p { color: var(--text-heading); font-size: 0.98rem; line-height: 1.45; font-style: italic; margin-bottom: 6px; }
.rm-quote .mono { text-transform: none; }
.rm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wtp-scale { display: flex; height: 30px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.wtp-seg { display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--text-muted); width: var(--w); background: rgba(242,239,232,0.05); }
.wtp-seg.is-accent { background: var(--accent-soft); color: #e6d2cf; border-inline: 1px solid rgba(168,65,62,0.3); }
.rm-mini { display: block; margin-top: 8px; text-transform: none; color: var(--text-mono); font-size: 0.68rem; }
.rm-plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rm-plan-list li { font-size: 0.84rem; color: var(--text-body); padding-left: 16px; position: relative; }
.rm-plan-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent-hover); }
@media (max-width: 980px) { .report-inner { grid-template-columns: 1fr; } .rm { margin-right: 0; } }

/* ---------------- PRODUCT FAMILY ---------------- */
.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.prod { position: relative; padding: 28px 26px 30px; display: flex; flex-direction: column; }
.prod-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.prod-verb { font-size: 0.78rem; letter-spacing: 0.16em; color: var(--text-mono); }
.prod-icon { width: 46px; height: 46px; margin-bottom: 18px; }
.prod h3 { margin-bottom: 10px; }
.prod > p { color: var(--text-body); margin-bottom: 18px; }
.prod .muted { color: var(--text-muted); }
.prod-meta { margin: auto 0 0; display: grid; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.prod-meta div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.prod-meta dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mono); padding-top: 2px; }
.prod-meta dd { margin: 0; font-size: 0.86rem; color: var(--text-body); line-height: 1.4; }
.prod--hero { border-color: rgba(168,65,62,0.5); background: linear-gradient(180deg, rgba(168,65,62,0.10), rgba(168,65,62,0.02) 40%, var(--bg-card)); box-shadow: 0 0 0 1px rgba(168,65,62,0.18), var(--shadow-card); }
.prod-flag { position: absolute; top: -10px; left: 26px; background: var(--accent); color: #FBF4EE; font-size: 0.6rem; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
@media (max-width: 920px) { .family-grid { grid-template-columns: 1fr; } }

/* ---------------- FORUM ---------------- */
.forum-inner { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.forum-copy .eyebrow { margin-bottom: 18px; }
.forum-copy h2 { margin-bottom: 16px; }
.forum-copy .lede { margin-bottom: 14px; }
.forum-callouts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.forum-thread { padding: 18px 18px 16px; }
.ft-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.ft-head .mono { text-transform: none; color: var(--text-muted); }
.ft-msgs { display: grid; gap: 13px; }
.msg { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.msg-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-heading); background: var(--bg-card-2); border: 1px solid var(--border-strong); }
.msg[ data-x] {}
.msg-b { background: rgba(242,239,232,0.035); border: 1px solid var(--border); border-radius: 4px 12px 12px 12px; padding: 10px 13px; }
.msg-name { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 600; color: var(--text-heading); margin-bottom: 3px; }
.msg-name i { font-style: normal; font-size: 0.6rem; color: #e6d2cf; background: var(--accent-soft); border: 1px solid rgba(168,65,62,0.3); padding: 1px 5px; border-radius: 4px; }
.msg-b p { font-size: 0.9rem; color: var(--text-body); line-height: 1.45; }
.msg-tag { display: inline-block; margin-top: 7px; text-transform: none; color: var(--accent-hover); font-size: 0.64rem; }
.msg--anchor .msg-b { border-color: rgba(168,65,62,0.4); }
.msg--drift .msg-b { border-color: rgba(168,65,62,0.4); background: var(--accent-soft); }
.ft-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); text-transform: none; color: var(--text-mono); font-size: 0.74rem; line-height: 1.5; }
@media (max-width: 920px) { .forum-inner { grid-template-columns: 1fr; } }

/* ---------------- NOT CHATGPT ---------------- */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 22px); }
.cmp-col { padding: 26px 26px; border-radius: var(--r-md); border: 1px solid var(--border); }
.cmp-them { background: rgba(242,239,232,0.015); }
.cmp-us { background: var(--bg-card); border-color: rgba(168,65,62,0.35); box-shadow: 0 0 0 1px rgba(168,65,62,0.12); }
.cmp-h { display: block; margin-bottom: 18px; text-transform: none; letter-spacing: 0.02em; font-size: 0.9rem; }
.cmp-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cmp-col li { position: relative; padding-left: 26px; font-size: 0.95rem; line-height: 1.5; }
.cmp-them li { color: var(--text-muted); }
.cmp-them li::before { content: "—"; position: absolute; left: 0; color: var(--text-mono); }
.cmp-us li { color: var(--text-body); }
.cmp-us li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
@media (max-width: 760px) { .cmp { grid-template-columns: 1fr; } }

/* ---------------- ENTERPRISE ---------------- */
.ent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.ent { padding: 28px 26px; background: var(--bg-card); border-color: var(--border-strong); }
.ent h3 { margin-bottom: 12px; }
.ent-cta { margin-top: 32px; }
@media (max-width: 920px) { .ent-grid { grid-template-columns: 1fr; } }

/* ---------------- CALIBRATION ---------------- */
.calib-inner { max-width: 50rem; }
.calib-inner .eyebrow { margin-bottom: 18px; }
.calib-h { margin-bottom: 18px; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }

/* ---------------- PRICING ---------------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 20px); align-items: stretch; }
.price { padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; }
.price-verb { font-size: 0.74rem; letter-spacing: 0.16em; color: var(--text-mono); margin-bottom: 6px; }
.price h3 { font-size: 1.08rem; margin-bottom: 14px; min-height: 2.4em; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-from { text-transform: none; color: var(--text-mono); font-size: 0.8rem; }
.price-num { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 500; color: var(--text-heading); letter-spacing: -0.02em; }
.price-cur { font-size: 1.3rem; color: var(--text-heading); }
.price-req { font-family: var(--font-mono); font-size: 1.4rem; color: var(--text-heading); }
.price .btn { margin-top: auto; align-self: flex-start; }
.price--accent { border-color: rgba(168,65,62,0.5); box-shadow: 0 0 0 1px rgba(168,65,62,0.15), var(--shadow-card); }
.price--ent { background: var(--bg-deep); border-color: var(--border-strong); }
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr 1fr; } .price h3 { min-height: 0; } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------------- SECURITY ---------------- */
.security-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.sec-copy .eyebrow { margin-bottom: 18px; }
.sec-copy h2 { margin-bottom: 20px; }
.sec-badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border: 1px solid rgba(111,174,106,0.35); background: rgba(111,174,106,0.08); border-radius: 999px; color: #cfe8cc; text-transform: none; letter-spacing: 0.04em; }
.sec-shield { width: 13px; height: 15px; flex: none; background: var(--ok); -webkit-mask: var(--shield-mask) center/contain no-repeat; mask: var(--shield-mask) center/contain no-repeat; }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sec-list li { position: relative; padding-left: 26px; color: var(--text-body); line-height: 1.55; }
.sec-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ok); }
@media (max-width: 860px) { .security-inner { grid-template-columns: 1fr; } }

/* ---------------- FAQ ---------------- */
.faq-inner { max-width: 820px; }
.faq-list { border-top: 1px solid var(--border); }
.qa { border-bottom: 1px solid var(--border); }
.qa summary {
  list-style: none; cursor: pointer; padding: 22px 4px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; font-size: 1.08rem; font-weight: 500; color: var(--text-heading);
  transition: color .2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: #fff; }
.qa-mark { position: relative; flex: none; width: 16px; height: 16px; }
.qa-mark::before, .qa-mark::after { content: ""; position: absolute; background: var(--text-muted); border-radius: 2px; transition: transform .25s var(--ease), background .2s; }
.qa-mark::before { top: 7px; left: 0; width: 16px; height: 2px; }
.qa-mark::after { top: 0; left: 7px; width: 2px; height: 16px; }
.qa[open] .qa-mark::after { transform: scaleY(0); }
.qa[open] .qa-mark::before { background: var(--accent-hover); }
.qa-body { overflow: hidden; }
.qa-body p { padding: 0 4px 24px; color: var(--text-muted); max-width: 68ch; line-height: 1.6; }
.qa[open] summary { color: #fff; }

/* ---------------- FINAL CTA ---------------- */
.final { background: var(--bg-section); padding-block: clamp(80px, 10vw, 140px); overflow: hidden; position: relative; }
.final-bg { position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 75%); }
.final-inner { position: relative; text-align: center; max-width: 40rem; margin-inline: auto; }
.final-inner h2 { margin-bottom: 18px; }
.final-inner .lede { margin: 0 auto 30px; }
.final-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 18px; }
.final-micro { color: var(--text-mono); text-transform: none; letter-spacing: 0.04em; }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding-top: 64px; padding-bottom: 36px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); padding-bottom: 48px; }
.footer-brand img { margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols > div { display: grid; gap: 12px; align-content: start; }
.footer-h { color: var(--text-mono); margin-bottom: 4px; }
.footer-cols a { color: var(--text-muted); font-size: 0.92rem; transition: color .2s; }
.footer-cols a:hover { color: var(--text-heading); }
.footer-legal { padding-top: 28px; border-top: 1px solid var(--border); color: var(--text-mono); text-transform: none; letter-spacing: 0.02em; font-size: 0.74rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------------- MODAL ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(16px, 4vw, 48px); }
.modal[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(10,12,18,0.7); backdrop-filter: blur(4px); animation: fade .3s var(--ease); }
.modal-card { position: relative; width: min(620px, 100%); max-height: 86vh; overflow: auto; padding: 36px clamp(24px, 4vw, 44px); box-shadow: var(--shadow-pop); animation: pop .35s var(--ease); }
.modal-x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--text-muted); font-size: 0.9rem; display: grid; place-items: center; transition: color .2s, border-color .2s; }
.modal-x:hover { color: var(--text-heading); border-color: var(--text-muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

/* responsive hero stack */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .hero-canvas { opacity: 1; }
}
