/* ===== Tokens ===== */
:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --bg-2: #0f1114;
  --surface: #14171b;
  --surface-2: #1a1e23;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f3f2ee;
  --muted: #a5a9b0;
  --dim: #868b93;
  --accent: #ff5b1f;
  --accent-2: #ff8a3d;
  --accent-ink: #160800;
  --accent-soft: rgba(255, 91, 31, .12);
  --ok: #5ee08a;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --r: 16px;
  --r-sm: 10px;
  --wrap: 1240px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; }
.skip:focus { top: 12px; }

.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(94, 224, 138, .6); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 224, 138, .55); } 70% { box-shadow: 0 0 0 9px rgba(94, 224, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 224, 138, 0); } }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s; }
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translate(3px, -2px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -12px rgba(255, 91, 31, .7); }
.btn--accent:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(11, 12, 14, .72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.logo__mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 800 14px/1 var(--display); letter-spacing: -.02em; flex: none; }
.logo__name { font-size: 15.5px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a { position: relative; padding: 6px 0; transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px; }
.nav__cta { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), top .25s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%); opacity: .55; }
.hero__glow { position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -260px; background: radial-gradient(circle, rgba(255, 91, 31, .28), transparent 62%); filter: blur(10px); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5.6vw, 82px); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 30px; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { max-width: 600px; font-size: 19px; color: var(--muted); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 34px; color: var(--muted); font-size: 15px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__facts b { color: var(--text); font-family: var(--display); font-weight: 700; font-size: 18px; margin-right: 6px; }

.hero__visual { position: relative; padding-bottom: 92px; }
.portrait { position: relative; margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); aspect-ratio: 1 / 1; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 12, 14, .85)); }
.portrait figcaption { position: absolute; left: 22px; top: 20px; z-index: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.portrait figcaption .mono { color: var(--text); }

.console { position: absolute; left: -48px; right: 24px; bottom: 0; background: rgba(16, 18, 21, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 80px -30px #000; font-family: var(--mono); font-size: 13px; overflow: hidden; }
.console__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.console__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3036; }
.console__bar i:first-child { background: var(--accent); }
.console__bar span:first-of-type { margin-left: 8px; }
.console__live { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--ok); }
.console__body { padding: 12px 16px 14px; display: grid; gap: 5px; min-height: 176px; }
.console__body li { display: grid; grid-template-columns: 86px 1fr auto; gap: 12px; white-space: nowrap; }
.c-sys { color: var(--accent); }
.c-sys::before { content: "▸ "; color: var(--dim); }
.c-msg { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.c-ok { color: var(--ok); }
.js .console__body li { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s var(--ease); }
.js .console__body li.is-on { opacity: 1; transform: none; }
.console__body li.is-typing .c-msg::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===== Numbers ===== */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.numbers__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.num { display: flex; flex-direction: column; gap: 8px; padding: 34px 22px; border-left: 1px solid var(--line); transition: background .25s; }
.num:first-child { border-left: 0; padding-left: 0; }
.num:hover { background: var(--accent-soft); }
.num b { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw, 28px); line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }
.num span { color: var(--muted); font-size: 14.5px; line-height: 1.4; }

/* ===== Sections ===== */
.section { padding: 120px 0; }
.head { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 12px 48px; align-items: end; margin-bottom: 44px; }
.head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.head h2, .about h2, .calc h2, .path h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.7vw, 52px); line-height: 1.08; letter-spacing: -.03em; }
.head__aside { color: var(--muted); font-size: 16px; margin: 0; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 14px; cursor: pointer; color: var(--muted); transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.filters__status { min-height: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); margin-bottom: 22px; text-transform: uppercase; letter-spacing: .06em; }

/* Featured cases */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 30px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .3s var(--ease), opacity .3s, filter .3s; }
.case::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at var(--mx, 80%) var(--my, 0%), rgba(255, 91, 31, .13), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.case:hover { border-color: rgba(255, 91, 31, .55); transform: translateY(-3px); }
.case:hover::before { opacity: 1; }
.case__body { display: flex; flex-direction: column; flex: 1; position: relative; }
.cases > .case:last-child:nth-child(even) { grid-column: 1 / -1; }
.cases > .case:last-child:nth-child(even) .case__text { max-width: 720px; }
.minis__title { margin: 56px 0 0; color: var(--muted); }
.case--hero { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; padding: 0; }
.case--hero .case__body { padding: 36px 0 36px 36px; display: flex; flex-direction: column; }
.case__shots { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding: 36px 30px 0; background: linear-gradient(160deg, #1d1410, #121418 60%); border-left: 1px solid var(--line); overflow: hidden; }
.case__shots img { width: 44%; max-width: 230px; border-radius: 14px 14px 0 0; border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 20px 60px -20px #000; transition: transform .5s var(--ease); }
.case__shots img:nth-child(2) { transform: translateY(26px); }
.case--hero:hover .case__shots img:first-child { transform: translateY(-8px); }
.case--hero:hover .case__shots img:nth-child(2) { transform: translateY(14px); }
.case__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 26px; }
.case__arrow { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text); transition: background .25s, border-color .25s, transform .25s var(--ease); flex: none; }
.case:hover .case__arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }
.case__metric { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.035em; color: var(--accent); white-space: nowrap; }
.case__mlabel { color: var(--muted); font-size: 14.5px; margin: 6px 0 26px; }
.case h3 { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.case__link { color: inherit; }
.case__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--r); }
.case__link:focus-visible { outline: none; }
.case:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.case h3 small { display: block; font-family: var(--body); font-weight: 500; font-size: 16px; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.case__text { margin: 14px 0 22px; color: #d4d5d7; font-size: 16px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; margin-bottom: 16px; font-size: 13px; }
.flow li { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.flow li.flow__arr { padding: 0; background: none; border: 0; color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; padding: 4px 9px; border-radius: 6px; color: var(--muted); border: 1px solid var(--line); }
.is-dim { opacity: .18; filter: grayscale(1); transform: scale(.985); pointer-events: none; }

/* Compact cases */
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.mini { padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg)); transition: opacity .3s, filter .3s, transform .3s var(--ease), border-color .3s; }
.mini:hover { border-color: var(--line-2); }
.mini__metric { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--accent); margin-bottom: 12px; }
.mini h3 { font-size: 17.5px; line-height: 1.3; margin-bottom: 10px; }
.mini p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }

/* ===== About ===== */
.about { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about__photo { margin: 0; position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; }
.about__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: var(--text); }
.about h2 { margin-bottom: 26px; }
.about__lead { font-size: 20px; color: var(--text); }
.about__copy > p:not(.kicker) { color: var(--muted); max-width: 640px; }
.about__copy > .about__lead { color: var(--text); }
.streak { margin-top: 34px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.streak li { display: grid; grid-template-columns: 70px 190px 1fr; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.streak__year { color: var(--accent); }
.streak b { font-weight: 600; }
.streak li > span:last-child { color: var(--muted); font-size: 15.5px; }

/* ===== Hermes ===== */
.pipe { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 26px; }
.pipe::before { content: ""; position: absolute; left: 6%; right: 6%; top: 44px; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(255, 91, 31, .15)); }
.pipe::after { content: ""; position: absolute; top: 40px; left: 6%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px 4px rgba(255, 91, 31, .7); animation: travel 4.5s var(--ease) infinite; }
@keyframes travel { 0% { left: 6%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 93%; opacity: 0; } }
.pipe li { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.pipe__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); margin-bottom: 14px; font-size: 13px; }
.pipe b { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.pipe span:last-child { color: var(--muted); font-size: 14.5px; }
.hermes__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 24px; border-radius: var(--r); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--display); font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14.5px; }
.stat--link { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transition: transform .25s var(--ease); }
.stat--link span { color: rgba(22, 8, 0, .85); }
.stat--link b { font-size: 30px; }
.stat--link:hover { transform: translateY(-3px); }

/* ===== Strengths ===== */
.turf { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.turf__card { padding: 34px; border-radius: var(--r); background: linear-gradient(150deg, rgba(255, 91, 31, .16), var(--surface) 55%); border: 1px solid rgba(255, 91, 31, .3); }
.turf__card .mono { color: var(--accent); margin-bottom: 14px; }
.turf__card h3 { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.turf__card > p:not(.mono) { color: var(--muted); }
.turf__card ul { display: grid; gap: 10px; margin-top: 22px; }
.turf__card li { display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; color: var(--muted); }
.turf__card li b { color: var(--text); font-family: var(--display); font-size: 17px; white-space: nowrap; }
.powers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.power { padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.power h3 { font-size: 17.5px; line-height: 1.3; margin-bottom: 10px; }
.power p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.power .mono { margin-top: auto; padding-top: 16px; color: var(--accent); font-size: 12px; }

/* ===== Calculator ===== */
.calc { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; }
.calc__intro { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 12px 48px; align-items: end; }
.calc__intro .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.calc__intro p:not(.kicker) { color: var(--muted); }
.calc__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field span { font-size: 14px; color: var(--muted); }
.field input, .field select { min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); font-size: 16.5px; transition: border-color .2s; width: 100%; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }
.calc__result { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--r); border: 1px solid rgba(255, 91, 31, .35); background: linear-gradient(160deg, rgba(255, 91, 31, .12), var(--surface) 50%); }
.calc__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc__nums div { display: flex; flex-direction: column; gap: 4px; }
.calc__nums b { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; }
.calc__nums div:last-child b { color: var(--accent); }
.calc__nums span { color: var(--muted); font-size: 14.5px; }
.calc__case { padding: 18px 20px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 15.5px; }
.calc__case .mono { color: var(--accent); display: block; margin-bottom: 8px; }
.calc__case b { display: block; font-size: 17px; margin-bottom: 4px; }
.calc__case p { color: var(--muted); margin: 0; }
.calc__case a { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; }
.calc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; }
.calc__note { color: var(--dim); font-size: 13.5px; }

/* ===== Path ===== */
.path__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.path__head { position: sticky; top: 110px; }
.path__head h2 { margin-bottom: 22px; }
.path__head p:not(.kicker) { color: var(--muted); }
.timeline { position: relative; border-left: 1px solid var(--line-2); }
.timeline li { position: relative; display: grid; grid-template-columns: 128px 1fr; gap: 20px; padding: 0 0 30px 32px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.tl__y { color: var(--muted); padding-top: 3px; }
.timeline b { display: block; font-size: 18px; margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: 15.5px; }
.tl--now::before { background: var(--accent) !important; border-color: var(--accent) !important; box-shadow: 0 0 16px 3px rgba(255, 91, 31, .6); }
.tl--now .tl__y, .tl--now b { color: var(--accent); }
.timeline li:hover::before { border-color: var(--accent); }

/* ===== Stack ===== */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack__g { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); }
.stack__g h3 { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.stack__g p { color: var(--text); font-size: 15px; line-height: 1.6; }

/* ===== Contact ===== */
.contact { padding: 120px 0 110px; background: radial-gradient(900px 500px at 15% 0%, rgba(255, 91, 31, .2), transparent 60%), var(--bg); border-top: 1px solid var(--line); }
.contact__title { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 56px; max-width: 1100px; }
.contact__title em { font-style: normal; color: var(--accent); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__text p:first-child { font-size: 22px; line-height: 1.45; }
.contact__links { display: grid; gap: 12px; }
.clink { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--line-2); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.clink .mono { color: var(--muted); }
.clink b { font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.clink i { font-style: normal; font-size: 20px; transition: transform .25s var(--ease); }
.clink:hover { border-color: var(--text); transform: translateY(-2px); }
.clink:hover i { transform: translate(3px, -3px); }
.clink--main { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.clink--main .mono { color: rgba(22, 8, 0, .85); }
.clink--main:hover { background: var(--accent-2); border-color: var(--accent-2); }
.copy { justify-self: start; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px dashed var(--line-2); background: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.copy:hover { color: var(--text); border-color: var(--text); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14.5px; }
.footer__in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .mono { margin-left: auto; color: var(--dim); }
.footer__nav { display: flex; gap: 18px; }
.footer a:hover { color: var(--text); }

/* ===== Reveal ===== */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ===== Case page ===== */
.cp-hero { padding: 64px 0 56px; position: relative; overflow: hidden; }
.cp-hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -300px; background: radial-gradient(circle, rgba(255, 91, 31, .22), transparent 62%); pointer-events: none; }
.crumbs { display: flex; gap: 10px; color: var(--muted); font-size: 14.5px; margin-bottom: 34px; }
.crumbs a:hover { color: var(--text); }
.cp-title { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 72px); line-height: 1.04; letter-spacing: -.035em; max-width: 1050px; margin-bottom: 26px; }
.cp-lead { font-size: 20px; color: var(--muted); max-width: 820px; }
.cp-metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.cp-metrics__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cp-metric { padding: 30px 24px; border-left: 1px solid var(--line); }
.cp-metric:first-child { border-left: 0; padding-left: 0; }
.cp-metric b { display: block; text-wrap: balance; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; line-height: 1.1; color: var(--accent); margin-bottom: 8px; }
.cp-metric span { color: var(--muted); font-size: 15px; }
.cp-body { padding: 80px 0 100px; }
.cp-grid { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
.cp-block { margin-bottom: 48px; }
.cp-block h2 { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; margin-bottom: 16px; }
.cp-block p { color: #d4d5d7; font-size: 17.5px; }
.cp-list { display: grid; gap: 12px; counter-reset: did; }
.cp-list li { position: relative; padding: 16px 18px 16px 58px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); counter-increment: did; }
.cp-list li::before { content: counter(did, decimal-leading-zero); position: absolute; left: 18px; top: 17px; font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.cp-result { padding: 26px; border-radius: var(--r); border: 1px solid rgba(255, 91, 31, .35); background: linear-gradient(150deg, rgba(255, 91, 31, .14), var(--surface) 60%); }
.cp-result p { color: var(--text); }
.cp-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.cp-card { padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.cp-card h3 { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.cp-card p { color: var(--muted); font-size: 15.5px; }
.cp-card .btn { width: 100%; justify-content: center; margin-top: 16px; }
.cp-card a.link { display: block; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 15px; }
.cp-card a.link:first-of-type { border-top: 0; padding-top: 0; }
.cp-card a.link:hover { color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.gallery button { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; text-align: left; transition: border-color .25s, transform .25s var(--ease); }
.gallery button:hover { border-color: var(--accent); transform: translateY(-3px); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #0e1013; border-radius: 8px; }
.gallery span { font-size: 14px; color: var(--muted); }
.gallery span b { color: var(--accent); font-family: var(--mono); font-weight: 400; margin-right: 6px; }
.viewer { max-width: min(92vw, 900px); max-height: 92vh; padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); color: var(--text); }
.viewer::backdrop { background: rgba(0, 0, 0, .8); backdrop-filter: blur(4px); }
.viewer img { max-height: 80vh; width: auto; margin: 0 auto; }
#viewer-frame { min-height: 120px; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.viewer__bar button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: none; cursor: pointer; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px; border-radius: var(--r); border: 1px solid var(--line); transition: border-color .25s; margin-top: 24px; }
.next:hover { border-color: var(--accent); }
.next .mono { color: var(--muted); display: block; margin-bottom: 8px; }
.next b { font-family: var(--display); font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.02em; }
.next i { font-style: normal; font-size: 28px; color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav { gap: 18px; font-size: 14.5px; }
  .minis, .powers, .stack { grid-template-columns: repeat(2, 1fr); }
  .numbers__grid { grid-template-columns: repeat(3, 1fr); }
  .num:nth-child(4) { border-left: 0; padding-left: 0; }
  .num:nth-child(n+4) { border-top: 1px solid var(--line); }
  .hermes__stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 18px; box-shadow: 0 30px 60px -20px #000; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .nav__cta { display: block; margin-top: 14px; padding: 14px 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-align: center; }
  .nav a.is-active::after { display: none; }
  .burger { display: block; margin-left: auto; }
  .header__cta { display: none; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .section { padding: 84px 0; }
  .hero { padding: 28px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__visual { display: contents; }
  .portrait { order: -1; }
  .console { order: 2; }
  .portrait { aspect-ratio: 16 / 11; border-radius: 18px; }
  .portrait img { object-position: 50% 20%; }
  .console { position: relative; left: auto; right: auto; }
  .console__body { min-height: 0; }
  .console__body li { grid-template-columns: 74px 1fr auto; gap: 8px; font-size: 12px; }
  .hero__title { margin-bottom: 22px; }
  .hero__lead { font-size: 17.5px; }
  .head, .calc__intro { grid-template-columns: 1fr; }
  .cases, .turf { grid-template-columns: 1fr; }
  .case--hero { grid-template-columns: 1fr; gap: 0; }
  .case--hero .case__body { padding: 26px; }
  .case__shots { order: -1; border-left: 0; border-bottom: 1px solid var(--line); padding: 24px 20px 0; max-height: 300px; }
  .case { padding: 26px; }
  .about__grid, .path__grid, .contact__grid, .calc__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__photo img { aspect-ratio: 4 / 4.2; }
  .path__head { position: static; }
  .pipe { grid-template-columns: 1fr; gap: 10px; }
  .pipe::before { left: 42px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), rgba(255, 91, 31, .15)); }
  .pipe::after { display: none; }
  .pipe li { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 16px 18px; }
  .pipe__n { margin-bottom: 0; }
  .pipe span:last-child { flex-basis: 100%; padding-left: 58px; margin-top: -8px; }
  .cp-grid { grid-template-columns: 1fr; gap: 24px; }
  .cp-aside { position: static; }
  .cp-body { padding: 56px 0 72px; }
}
@media (max-width: 600px) {
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .num, .num:first-child, .num:nth-child(4) { padding: 24px 0 24px 16px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .num:nth-child(odd) { border-left: 0; padding-left: 0; }
  .num:nth-child(-n+2) { border-top: 0; }
  .num:last-child { grid-column: 1 / -1; }
  .minis, .powers, .stack, .hermes__stats { grid-template-columns: 1fr; }
  .calc__form { grid-template-columns: 1fr; padding: 20px; }
  .calc__result { padding: 22px; }
  .streak li { grid-template-columns: 56px 1fr; gap: 4px 12px; }
  .streak li > span:last-child { grid-column: 2; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 24px; }
  .clink { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 18px 20px; }
  .clink .mono { grid-column: 1 / -1; }
  .clink b { font-size: 17px; }
    .hero__facts { gap: 8px 22px; }
  .footer .mono { margin-left: 0; }
  .flow li.flow__arr { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .next { padding: 24px; }
  .cp-metrics__grid { grid-template-columns: 1fr 1fr; }
  .cp-metric { padding: 22px 16px; border-top: 1px solid var(--line); }
  .cp-metric:nth-child(odd) { border-left: 0; padding-left: 0; }
}

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

/* ===== Hero: роль ===== */
.hero__role { max-width: 600px; margin: -18px 0 30px; padding-left: 14px; border-left: 2px solid var(--accent); color: var(--text); font-size: 16.5px; }

/* ===== Работодателю ===== */
.hire { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hire__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.hire h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 22px; }
.hire__copy > p:not(.kicker) { color: var(--muted); }
.hire__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hire__facts { margin: 0; display: grid; gap: 14px; }
.hire__facts div { padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.hire__facts dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.hire__facts dd { margin: 0; color: #d4d5d7; font-size: 16px; }

/* ===== Калькулятор: допущения ===== */
.calc__assume { margin: 0; color: var(--dim); font-size: 13.5px; }

/* ===== Страница кейса: период и роль ===== */
.cp-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.cp-facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cp-facts dd { margin: 0; font-weight: 600; }

/* ===== Резюме ===== */
.resume { max-width: 860px; padding-top: 48px; padding-bottom: 96px; }
.resume__tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.resume__head { padding-bottom: 26px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.resume h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -.03em; line-height: 1.05; }
.resume__title { margin: 12px 0 6px; font-size: 19px; color: var(--accent); font-weight: 600; }
.resume__contacts { color: var(--muted); font-size: 15px; }
.resume section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.resume h2 { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.resume section h2 + p + h2 { margin-top: 22px; }
.resume p, .resume li { color: #d9dadc; font-size: 16px; }
.resume ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.resume li::marker { color: var(--accent); }
.job { padding: 14px 0; }
.job + .job { border-top: 1px dashed var(--line); }
.resume__note { margin: 0 0 6px; color: var(--muted) !important; font-size: 15px !important; }
.job__when { margin: 0 0 4px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.job h3 { font-size: 18px; line-height: 1.35; margin-bottom: 10px; }
.resume__skills { list-style: none !important; padding-left: 0 !important; }
.resume__skills b { color: var(--text); }

/* ===== Планшет: две колонки там, где хватает места ===== */
@media (min-width: 601px) and (max-width: 860px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
  .hero__visual { display: block; order: 0; padding-bottom: 0; }
  .portrait { aspect-ratio: 4 / 5; }
  .console { margin-top: 14px; }
  .console__body li { grid-template-columns: 1fr auto; }
  .console__body .c-sys { grid-column: 1 / -1; margin-top: 6px; }
  .console__body li:first-child .c-sys { margin-top: 0; }
  .turf { grid-template-columns: 1fr 1fr; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case__metric { white-space: normal; font-size: 30px; }
  .hire__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .hire__grid { grid-template-columns: 1fr; gap: 32px; }
  .powers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .powers { grid-template-columns: 1fr; }
}

/* ===== Печать (резюме в PDF) ===== */
@media print {
  @page { size: A4; margin: 11mm 13mm 12mm; }
  :root { color-scheme: light; --text: #111; --muted: #444; --dim: #555; --accent: #b83a0b; --line: #ddd; --line-2: #bbb; --display: "Segoe UI", Arial, sans-serif; --body: "Segoe UI", Arial, sans-serif; --mono: "Segoe UI", Arial, sans-serif; }
  html, body { background: #fff !important; color: #111; font-family: var(--body); }
  .resume h1 { font-weight: 700; letter-spacing: -.01em; }
  .header, .footer, .skip, .resume__tools { display: none !important; }
  .resume { max-width: none; padding: 0; }
  .resume__head { padding-bottom: 8pt; margin-bottom: 0; }
  .resume h1 { font-size: 21pt; }
  .resume__title { font-size: 11pt; margin: 4pt 0 2pt; }
  .resume__contacts, .resume p, .resume li { color: #222 !important; font-size: 9.3pt; line-height: 1.42; }
  .resume section { padding: 7pt 0; break-inside: auto; }
  .resume h2 { font-size: 8.5pt; margin-bottom: 5pt; }
  .resume section h2 + p + h2 { margin-top: 8pt; }
  .resume ul { gap: 1.5pt; padding-left: 14pt; }
  .job { break-inside: avoid; padding: 4pt 0; }
  .job__when { font-size: 8.5pt; margin-bottom: 1pt; }
  .job h3 { font-size: 10pt; color: #111; margin-bottom: 3pt; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== 404 ===== */
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-top: 40px; padding-bottom: 40px; }
.notfound .logo { margin-bottom: 40px; }
.notfound h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.03em; max-width: 900px; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; }
