:root {
  --ink: #102138;
  --ink-soft: #1b304d;
  --paper: #f4f1ea;
  --white: #fffdf9;
  --blue: #2c68df;
  --blue-light: #9fc4ff;
  --line: rgba(16, 33, 56, .16);
  --muted: #667386;
  --radius: 20px;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.55; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; color: white; transition: background .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(16,33,56,.94); backdrop-filter: blur(14px); box-shadow: 0 1px rgba(255,255,255,.08); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid currentColor; border-radius: 50%; font-size: 14px; }
.brand-photo { flex: none; overflow: hidden; border-color: rgba(255,255,255,.55); background: #c8d1c0 url("/assets/maxim-markov.png") 50% 24% / 400% auto no-repeat; box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.site-nav > a:not(.nav-cta) { opacity: .78; transition: opacity .2s; }
.site-nav > a:hover { opacity: 1; }
.nav-cta { padding: 11px 17px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.nav-toggle { display: none; color: inherit; border: 0; background: none; width: 40px; height: 40px; padding: 9px; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; background: currentColor; margin: 5px 0; }

.hero { position: relative; overflow: hidden; min-height: 780px; padding: 154px 0 34px; color: white; background: var(--ink); }
.hero-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.17) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.17) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right, transparent, #000 35%, #000); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: 4%; top: 11%; background: #2c68df; opacity: .13; filter: blur(100px); border-radius: 50%; }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.06fr .94fr; gap: 80px; align-items: center; }
.hero-layout > *, .split-heading > *, .cases-layout > *, .diagnostic-shell > * { min-width: 0; }
.eyebrow, .section-index { margin: 0 0 24px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { color: var(--blue-light); }
.eyebrow span { display: inline-block; width: 24px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 9px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 28px; font-size: clamp(48px, 5.8vw, 82px); line-height: .98; letter-spacing: -.055em; max-width: 800px; }
h1 em { color: var(--blue-light); font-style: normal; font-weight: inherit; }
.hero-lead { max-width: 650px; margin-bottom: 35px; color: #c7d0dd; font-size: 19px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 4px; cursor: pointer; font-weight: 750; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: #2158bc; }
.button-light { color: var(--ink); background: white; }
.button-ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.button:disabled { opacity: .45; cursor: default; transform: none; }
.text-link { display: inline-flex; gap: 14px; align-items: center; font-weight: 750; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

.hero-system { position: relative; min-height: 440px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.16); border-radius: 2px; backdrop-filter: blur(8px); }
.system-head, .system-foot { display: flex; justify-content: space-between; padding: 18px 20px; font-size: 10px; letter-spacing: .14em; color: #aebcce; }
.system-head { border-bottom: 1px solid rgba(255,255,255,.12); }
.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #76df9a; box-shadow: 0 0 0 5px rgba(118,223,154,.1); }
.system-core { position: relative; height: 325px; display: grid; place-items: center; overflow: hidden; }
.core-label { position: relative; z-index: 3; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 60px rgba(44,104,223,.4); }
.core-label strong { font-size: 34px; line-height: 1; }.core-label span { font-size: 10px; opacity: .78; }
.orbit { position: absolute; border: 1px solid rgba(159,196,255,.26); border-radius: 50%; }
.orbit-one { width: 240px; height: 240px; }.orbit-two { width: 360px; height: 360px; }
.node { position: absolute; padding: 7px 11px; background: var(--ink); border: 1px solid rgba(159,196,255,.35); font-size: 11px; color: #dce9ff; }
.node-a { top: 58px; left: 49px; }.node-b { top: 64px; right: 44px; }.node-c { bottom: 50px; left: 40px; }.node-d { bottom: 44px; right: 33px; }
.system-foot { align-items: end; border-top: 1px solid rgba(255,255,255,.12); letter-spacing: 0; font-size: 11px; }
.system-foot strong { color: white; font-size: 12px; }
.signal-row { position: relative; z-index: 2; margin-top: 78px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.16); display: grid; grid-template-columns: repeat(4,1fr); font-size: 10px; letter-spacing: .14em; color: #94a6bc; }

.about { background: var(--white); }
.about-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(45px, 8vw, 110px); align-items: center; }
.about-photo { position: relative; min-height: 620px; margin: 0; overflow: hidden; background: #c8d1c0; }
.about-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(16,33,56,.08); pointer-events: none; }
.about-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 50% 24%; }
.about-copy h2 { max-width: 760px; }
.about-copy > p:not(.section-index) { max-width: 700px; color: var(--muted); font-size: 18px; }
.about-focus { display: flex; flex-wrap: wrap; gap: 9px; margin: 35px 0; }
.about-focus span { padding: 9px 13px; border: 1px solid var(--line); color: var(--ink); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: 120px 0; }
.section-index { color: var(--blue); }
.split-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
h2 { margin-bottom: 25px; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -.05em; }
.split-heading > div > p { max-width: 680px; color: var(--muted); font-size: 18px; }
.tension-grid { margin-top: 65px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 25px; align-items: stretch; }
.tension-grid article { padding: 34px; border: 1px solid var(--line); min-height: 230px; }
.tension-grid article > span { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.tension-grid h3 { margin: 44px 0 12px; font-size: 25px; letter-spacing: -.025em; }.tension-grid p { color: var(--muted); max-width: 440px; }
.tension-grid .accent-card { background: white; border-color: white; box-shadow: 0 20px 60px rgba(16,33,56,.08); }
.tension-arrow { display: grid; place-items: center; color: var(--blue); font-size: 28px; }

.section-dark { color: white; background: var(--ink); }
.section-top { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.section-dark h2 { color: white; }
.method-list { list-style: none; padding: 0; margin: 70px 0 0; border-top: 1px solid rgba(255,255,255,.16); }
.method-list li { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.method-list li > span { color: var(--blue-light); font-family: Georgia, serif; font-size: 42px; font-style: italic; }
.method-list li > div { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: baseline; }
.method-list h3 { margin: 0; font-size: 25px; }.method-list p { margin: 0; color: #aeb9c9; }

.service-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 60px; }
.service-card { min-height: 390px; padding: 30px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.service-card.service-featured { grid-row: span 2; min-height: 798px; background: var(--blue); color: white; border-color: var(--blue); }
.service-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.service-featured .service-meta { color: #cfe0ff; }
.service-card h3 { margin: 70px 0 18px; max-width: 500px; font-size: 34px; line-height: 1.08; letter-spacing: -.04em; }
.service-featured h3 { margin-top: 145px; font-size: clamp(40px, 4vw, 58px); }
.service-card > p { color: var(--muted); max-width: 560px; }.service-featured > p { color: #d8e5ff; font-size: 18px; }
.service-card ul { list-style: none; padding: 0; margin: 30px 0; border-top: 1px solid rgba(255,255,255,.25); }
.service-card li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.service-card li::before { content: "+"; margin-right: 12px; color: #d8e5ff; }
.service-bottom { margin-top: auto; padding-top: 25px; display: flex; justify-content: space-between; align-items: end; border-top: 1px solid var(--line); }
.service-featured .service-bottom { border-color: rgba(255,255,255,.25); }.service-bottom strong { font-size: 24px; }.service-bottom a { font-weight: 750; }

.cases { background: #e9e6df; }
.cases-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: end; }
.cases-layout > div > p:last-child { max-width: 460px; color: var(--muted); font-size: 18px; }
.case-placeholder { min-height: 420px; padding: 36px; background: var(--ink); color: white; display: flex; flex-direction: column; justify-content: space-between; }
.case-status { color: var(--blue-light); font-size: 10px; letter-spacing: .14em; }.case-status span { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #f5b85b; }
.case-schema { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; color: #c4cfdd; }.case-schema i { flex: 1; height: 1px; background: rgba(255,255,255,.25); }
.case-placeholder > p { max-width: 560px; margin-bottom: 0; color: #aeb9c9; font-size: 18px; }

.diagnostic { color: white; background: var(--blue); }
.diagnostic .section-index { color: #cfe0ff; }
.diagnostic-shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.diagnostic-copy { position: sticky; top: 110px; }.diagnostic-copy > p:not(.section-index) { color: #d8e5ff; font-size: 18px; max-width: 440px; }
.diagnostic-progress { margin-top: 55px; color: #d8e5ff; font-size: 12px; }.diagnostic-progress > div { height: 4px; margin-top: 9px; background: rgba(255,255,255,.2); }.diagnostic-progress i { display: block; width: 0; height: 100%; background: white; transition: width .3s; }
.diagnostic-card { min-height: 510px; padding: 40px; color: var(--ink); background: var(--white); }
.diagnostic-card fieldset { display: none; border: 0; padding: 0; margin: 0; }.diagnostic-card fieldset.active { display: block; }
.diagnostic-card legend { margin-bottom: 35px; font-size: clamp(25px,3vw,36px); font-weight: 750; line-height: 1.2; letter-spacing: -.035em; }
.diagnostic-card label { display: flex; align-items: center; gap: 12px; padding: 17px; margin: 11px 0; border: 1px solid var(--line); cursor: pointer; transition: border .2s, background .2s; }.diagnostic-card label:has(input:checked) { border-color: var(--blue); background: #edf3ff; }
.diagnostic-card input { accent-color: var(--blue); width: 18px; height: 18px; }
.diagnostic-controls { display: flex; justify-content: space-between; gap: 12px; margin-top: 45px; }
.diagnostic-result strong { display: block; margin: 25px 0 30px; color: var(--blue); font-size: 70px; letter-spacing: -.06em; }.diagnostic-result h3 { font-size: 34px; letter-spacing: -.04em; }.diagnostic-result p:not(.result-label) { color: var(--muted); font-size: 17px; }.result-label { color: var(--blue); font-size: 10px; letter-spacing: .14em; }.restart { margin-left: 20px; border: 0; border-bottom: 1px solid; background: none; cursor: pointer; }

.journal { background: var(--white); }
.journal-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.article-grid { margin-top: 55px; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.article-card { min-height: 350px; padding: 26px; border: 1px solid var(--line); display: flex; flex-direction: column; transition: background .2s, transform .2s; }.article-card[href]:hover { background: #eef3fb; transform: translateY(-4px); }
.article-card > span { color: var(--blue); font-size: 10px; letter-spacing: .12em; }.article-card h3 { margin: 80px 0 18px; font-size: 25px; line-height: 1.15; letter-spacing: -.03em; }.article-card p { color: var(--muted); }.article-card i { margin-top: auto; font-style: normal; font-weight: 750; }.article-coming { opacity: .62; }

.cta-section { padding: 90px 0; color: white; background: var(--ink); }.cta-layout { display: flex; align-items: end; justify-content: space-between; gap: 50px; }.cta-layout h2 { margin: 0; }.cta-layout .button { flex: none; }
.site-footer { padding: 70px 0 25px; color: white; background: #091525; }.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }.footer-brand { margin-bottom: 14px; }.footer-grid > div { display: flex; flex-direction: column; align-items: start; gap: 8px; }.footer-grid > div > span { margin-bottom: 10px; color: #75859a; font-size: 10px; letter-spacing: .13em; }.footer-grid p { color: #75859a; }.footer-legal { padding-top: 24px; color: #aeb9c9; font-size: 12px; line-height: 1.6; }.footer-bottom { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; color: #75859a; font-size: 11px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 30px, 700px); }
  .nav-toggle { display: block; z-index: 32; }
  .site-nav { position: fixed; inset: 0; z-index: 31; padding: 110px 28px 40px; background: var(--ink); flex-direction: column; align-items: start; font-size: 25px; transform: translateX(100%); transition: transform .25s; }.site-nav.open { transform: none; }.site-nav .nav-cta { margin-top: 20px; }
  .hero { padding-top: 125px; }.hero-layout, .about-layout, .split-heading, .section-top, .cases-layout, .diagnostic-shell { grid-template-columns: 1fr; gap: 40px; }.hero-system { min-height: 410px; }.signal-row { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .about-photo { min-height: 720px; }
  .section { padding: 85px 0; }.tension-grid { grid-template-columns: 1fr; }.tension-arrow { transform: rotate(90deg); }
  .method-list li { grid-template-columns: 70px 1fr; }.method-list li > div { grid-template-columns: 1fr; gap: 10px; }
  .service-grid { grid-template-columns: 1fr; }.service-card.service-featured { min-height: 650px; grid-row: auto; }.service-featured h3 { margin-top: 100px; }
  .diagnostic-copy { position: static; }.article-grid { grid-template-columns: 1fr; }.article-card { min-height: 280px; }.article-card h3 { margin-top: 55px; }
  .cta-layout { align-items: start; flex-direction: column; }.footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero { min-height: auto; }.hero-layout { gap: 55px; }.hero-system { min-height: 375px; }.system-core { height: 280px; }.orbit-two { width: 315px; height: 315px; }.node-a { left: 18px; }.node-b { right: 15px; }.node-c { left: 14px; }.node-d { right: 10px; }
  .about-photo { min-height: 520px; }.about-copy > p:not(.section-index) { font-size: 17px; }
  h1 { font-size: 46px; overflow-wrap: anywhere; }.hero-lead { font-size: 17px; }.hero-actions { align-items: start; flex-direction: column; }
  .section { padding: 70px 0; }.tension-grid article, .service-card, .case-placeholder, .diagnostic-card { padding: 24px; }.service-card.service-featured { min-height: 590px; }.service-featured h3 { margin-top: 70px; font-size: 42px; }
  .case-schema { display: grid; grid-template-columns: 1fr; }.case-schema i { width: 1px; height: 18px; margin-left: 12px; }
  .diagnostic-result strong { font-size: 58px; }.restart { display: block; margin: 20px 0 0; }
  .journal-head { align-items: start; flex-direction: column; }.footer-grid { grid-template-columns: 1fr 1fr; }.footer-grid > div:first-child { grid-column: 1 / -1; }.footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.reveal { opacity: 1; transform: none; transition: none; } }
