/* Thalix Health: the company site. Tokens first; dark mode follows the system unless the visitor
   picks a theme (data-theme on <html>, set by theme.js). */
:root {
  --bg: #f7f6f2;
  --bg-alt: #eeede7;
  --surface: #ffffff;
  --ink: #14181b;
  --ink-2: #384046;
  --muted: #69716f;
  --line: #e0e0d9;
  --line-strong: #cbcbc2;
  --accent: #0b6b6a;
  --accent-hover: #085857;
  --on-accent: #ffffff;
  --accent-soft: #ddefed;
  --accent-ink: #0a5958;
  --navy: #0f2a4a;
  --dot: #f59e0b;
  --wait: #a35a06;
  --wait-soft: #fcefd9;
  --band: radial-gradient(120% 140% at 100% 0%, #0b5f60 0%, rgba(11, 95, 96, 0) 55%), #0f2a4a;
  --band-ink: #e9f2f4;
  --band-muted: #a9bec8;
  --band-line: rgba(233, 242, 244, 0.12);
  --band-accent: #5eead4;
  --bad: #b42318;
  --shadow: 0 1px 2px rgba(15, 42, 74, 0.05), 0 12px 32px -12px rgba(15, 42, 74, 0.2);
  --shadow-sm: 0 1px 2px rgba(15, 42, 74, 0.06), 0 4px 12px -6px rgba(15, 42, 74, 0.16);
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1112;
    --bg-alt: #141718;
    --surface: #1a1e20;
    --ink: #edf1f0;
    --ink-2: #cdd4d3;
    --muted: #949d9b;
    --line: #283033;
    --line-strong: #384245;
    --accent: #5eead4;
    --accent-hover: #99f6e4;
    --on-accent: #052625;
    --accent-soft: #10302f;
    --accent-ink: #7eeedb;
    --wait: #f5a524;
    --wait-soft: #35270c;
    --band: radial-gradient(120% 140% at 100% 0%, #0a4a4b 0%, rgba(10, 74, 75, 0) 55%), #0b1b2e;
    --band-line: rgba(233, 242, 244, 0.1);
    --bad: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 16px -8px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1112;
  --bg-alt: #141718;
  --surface: #1a1e20;
  --ink: #edf1f0;
  --ink-2: #cdd4d3;
  --muted: #949d9b;
  --line: #283033;
  --line-strong: #384245;
  --accent: #5eead4;
  --accent-hover: #99f6e4;
  --on-accent: #052625;
  --accent-soft: #10302f;
  --accent-ink: #7eeedb;
  --wait: #f5a524;
  --wait-soft: #35270c;
  --band: radial-gradient(120% 140% at 100% 0%, #0a4a4b 0%, rgba(10, 74, 75, 0) 55%), #0b1b2e;
  --band-line: rgba(233, 242, 244, 0.1);
  --bad: #ff8a80;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 16px -8px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand-name span { font-weight: 400; color: var(--muted); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: color 0.15s; }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; transition: background 0.15s, color 0.15s; }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
h1 { font-family: var(--serif); font-size: clamp(2.75rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.015em; }
h1 em { font-style: italic; color: var(--accent-ink); }
h2 { font-family: var(--serif); font-size: clamp(2.1rem, 3.8vw, 3.15rem); line-height: 1.06; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 600px; }

/* Hero */
.hero { padding: 72px 0 104px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lead { margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.assurances { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.assurances li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.assurances svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero-art { position: relative; margin: 0; isolation: isolate; padding: 8px 0 28px 28px; }
.hero-art::before { content: ""; position: absolute; inset: -40px -60px -20px -20px; z-index: -1; background-image: radial-gradient(var(--line-strong) 1px, transparent 1.2px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); opacity: 0.8; }
.hero-art::after { content: ""; position: absolute; width: 380px; height: 380px; right: -80px; top: -60px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent); filter: blur(10px); }
.hero-art figcaption { position: absolute; right: 0; bottom: 0; font-size: 12px; color: var(--muted); }

.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.tab { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 13.5px/1 var(--sans); cursor: pointer; transition: background 0.15s, color 0.15s, box-shadow 0.15s; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.board .steps, .board .board-head { transition: opacity 0.25s ease; }
.board.swap .steps, .board.swap .board-head { opacity: 0; }
.board { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px 22px 16px; }
.board-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.board-kicker { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.board-head strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill-live { background: var(--accent-soft); color: var(--accent-ink); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s ease-in-out infinite; }
.pill-wait { background: var(--wait-soft); color: var(--wait); margin-left: auto; align-self: center; }

.steps { position: relative; }
.steps li { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; }
.steps li::before { content: ""; position: absolute; left: 10px; top: 34px; bottom: -12px; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps li.done::before { background: var(--accent); opacity: 0.45; }
.steps .dot { position: relative; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.steps .dot svg { width: 13px; height: 13px; fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.steps li.done .dot { background: var(--accent); border-color: var(--accent); }
.steps li.wait .dot { border-color: var(--wait); }
.steps li.wait .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wait); }
.steps li.wait .dot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--wait); opacity: 0; animation: ring 2.4s ease-out infinite; }
.steps b { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.steps small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.steps li:not(.done):not(.wait) b { color: var(--ink-2); }
.board-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.board-foot span { display: inline-flex; align-items: center; gap: 6px; }
.board-foot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.float-chip { position: absolute; left: 0; bottom: -26px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); animation: float 6s ease-in-out infinite; }
.float-chip svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--accent-soft); fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.float-chip b { display: block; font-size: 13.5px; font-weight: 600; }
.float-chip small { display: block; font-size: 12.5px; color: var(--muted); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes ring { 0% { transform: scale(0.7); opacity: 0.7; } 80%, 100% { transform: scale(1.25); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Sections */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 + .lead { margin-top: 20px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card { padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card .num { display: block; margin-bottom: 40px; font: 400 15px/1 var(--serif); font-size: 22px; color: var(--accent-ink); }
.card h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.15; letter-spacing: -0.005em; margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: 15.5px; }

.service { padding: 4px 0 0; border-top: 1px solid var(--line-strong); padding-top: 28px; }
.service .icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 12px; background: var(--accent-soft); }
.service .icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--ink-2); font-size: 15.5px; }

.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area { padding: 26px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s, transform 0.2s; }
.area:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.area h3 { font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.1; margin-bottom: 16px; }
.area li { position: relative; padding: 7px 0 7px 18px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); border-top: 1px solid var(--line); }
.area li::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
.areas-more { margin-top: 32px; color: var(--ink-2); font-size: 16px; }
.areas-more a { color: var(--accent-ink); font-weight: 500; text-underline-offset: 3px; white-space: nowrap; }
.areas-more a::after { content: " →"; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.timeline li { position: relative; padding-top: 64px; }
.timeline li::before { content: ""; position: absolute; top: 19px; left: 52px; right: -28px; height: 1px; background: var(--line-strong); }
.timeline li:last-child::before { display: none; }
.t-num { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); font: 400 20px/1 var(--serif); color: var(--accent-ink); }
.timeline li:first-child .t-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.timeline h3 { margin-bottom: 10px; }
.timeline p { color: var(--ink-2); font-size: 15.5px; }

/* Platform band: dark in both themes */
.band { padding: 112px 0; background: var(--band); color: var(--band-ink); }
.band h2 { color: var(--band-ink); }
.band .eyebrow { color: var(--band-accent); }
.band .lead { color: var(--band-muted); }
.platform { gap: 0; border-top: 1px solid var(--band-line); border-left: 1px solid var(--band-line); }
.platform article { padding: 32px 28px 36px; border-right: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
.p-label { display: block; margin-bottom: 14px; font-family: var(--serif); font-size: 28px; line-height: 1.1; color: var(--band-ink); }
.platform p { color: var(--band-muted); font-size: 15.5px; }

.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.principles article { padding: 32px 0 36px; border-top: 1px solid var(--line-strong); }
.principles h3 { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 400; line-height: 1.12; margin-bottom: 12px; }
.principles p { color: var(--ink-2); font-size: 16px; max-width: 460px; }

/* Contact */
.contact-in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.contact-copy h2 { margin-bottom: 20px; }
.contact-copy .lead { margin-bottom: 36px; }
.who-title { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.who li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; }
.who li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.direct { margin-top: 28px; color: var(--ink-2); }
.direct a { color: var(--accent-ink); font-weight: 500; text-underline-offset: 3px; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 36px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 10px; }
.opt { font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); font: 400 15.5px/1.4 var(--sans); transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.field textarea { resize: vertical; min-height: 128px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--bad); }
.field .err { font-size: 13px; color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--ink-2); transition: background 0.15s, border-color 0.15s, color 0.15s; user-select: none; }
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 500; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 13.5px; color: var(--muted); margin: -4px 0 24px; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.status { font-size: 14px; color: var(--ink-2); }
.status.error { color: var(--bad); }
.status a { color: inherit; font-weight: 500; }
.sent { text-align: center; padding: 48px 12px; }
.sent:focus { outline: none; }
.sent-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%; background: var(--accent-soft); }
.sent-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sent h3 { font-family: var(--serif); font-size: 30px; font-weight: 400; margin-bottom: 8px; }
.sent p { color: var(--ink-2); }

/* Footer */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.foot-brand p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.foot-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.foot-meta a { color: var(--ink-2); text-decoration: none; }
.foot-meta a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Reveal on scroll (only with scripts; content is visible without them) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* 404 */
.lost { min-height: calc(100vh - 68px - 130px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost h1 { margin-bottom: 16px; }
.lost p { color: var(--ink-2); margin-bottom: 32px; }

/* Responsive */
@media (max-width: 1040px) {
  .areas { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .timeline li:nth-child(2)::before { display: none; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero { padding: 48px 0 80px; }
  .hero-in { grid-template-columns: 1fr; gap: 56px; }
  .hero-art { max-width: 560px; }
  .grid-3 { grid-template-columns: 1fr; }
  .platform { grid-template-columns: repeat(2, 1fr); }
  .contact-in { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .section, .band { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .lead { font-size: 17px; }
  .grid-2, .grid-4, .principles, .platform, .areas { grid-template-columns: 1fr; }
  .grid-4 { gap: 36px; }
  .principles { gap: 0; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { padding: 0 0 32px 64px; }
  .timeline li::before, .timeline li:nth-child(2)::before { display: block; top: 48px; bottom: 4px; left: 19.5px; right: auto; width: 1px; height: auto; }
  .timeline li:last-child::before { display: none; }
  .timeline li:last-child { padding-bottom: 0; }
  .t-num { top: -4px; }
  .hero-art { padding: 0 0 28px; }
  .float-chip { position: relative; left: auto; bottom: auto; margin: 12px 0 0; animation: none; }
  .steps .pill-wait { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px 20px; border-radius: 16px; }
  .card, .area { padding: 24px 20px; }
  .tabs { display: flex; flex-wrap: nowrap; }
  .tab { flex: 1 1 auto; min-width: 0; padding: 0 6px; font-size: 13px; }
  .card .num { margin-bottom: 28px; }
  .btn-sm { padding: 0 14px; }
}
@media (max-width: 345px) {
  .brand-name span { display: none; }
}

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