/* ==========================================================
   peterek.info – VP//OS theme
   ========================================================== */
:root {
  --bg: #030a1a;
  --bg-deep: #020713;
  --panel: #051129;
  --panel-hi: #071a3a;
  --line: #10284f;
  --line-2: #16366e;
  --line-3: #1f4c93;
  --blue: #2e7bff;
  --cyan: #5fd8ff;
  --cyan-soft: #9fe8ff;
  --green: #7dffc4;
  --orange: #ffb38a;
  --text: #dcebff;
  --text-strong: #f2f8ff;
  --text-2: #a9c3e8;
  --text-3: #93acd0;
  --text-4: #7d9cc8;
  --font-display: 'Oxanium', 'Chakra Petch', system-ui, sans-serif;
  --font-body: 'Chakra Petch', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 6.6vw, 96px);
  --maxw: 1440px;
  --cut: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --cut-lg: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--cyan); }
a:hover { color: #b8f0ff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--text-strong); margin: 0; }
p { margin: 0; }
.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: absolute; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; background: var(--cyan); color: var(--bg); font-family: var(--font-display); text-decoration: none; }
.skip-link:focus { top: 16px; }

/* background grid */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(46,123,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,123,255,.06) 1px, transparent 1px);
  background-size: 80px 80px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- LOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px;
  background: radial-gradient(ellipse at 50% 45%, #0a2356 0%, #041029 40%, #02060f 78%);
  transition: opacity .7s ease, visibility .7s ease;
}
.loader::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(120,190,255,.035) 0 1px, transparent 1px 3px);
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__stage { position: relative; display: grid; place-items: center; }
.loader__ripple {
  position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px;
  border: 1px solid var(--cyan); border-radius: 50%;
  animation: ripple 2s cubic-bezier(.2,.6,.3,1) infinite;
}
.loader__ripple:nth-child(2) { border-color: var(--blue); animation-delay: .66s; }
.loader__ripple:nth-child(3) { animation-delay: 1.33s; }
.loader__logo { position: relative; width: min(640px, 92vw); animation: logo-in .6s cubic-bezier(.2,.7,.2,1) both, logo-pulse 1s ease-in-out .6s infinite; }
.loader__bar { width: min(360px, 70vw); display: flex; flex-direction: column; gap: 12px; }
.loader__track { position: relative; height: 2px; background: #0c2248; overflow: hidden; }
.loader__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 12px var(--cyan); animation: load var(--loader-ms, 2000ms) linear forwards; }
.loader__label { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .3em; color: #8fb4e6; animation: blink 1s ease-in-out infinite; }
.loader__skip { position: absolute; right: 24px; bottom: 20px; min-height: 44px; padding: 0 16px; background: none; border: 0; color: var(--text-4); font-family: var(--font-display); font-size: 12px; letter-spacing: .2em; cursor: pointer; }
.loader__skip:hover { color: #fff; }

@keyframes ripple { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes logo-in { 0% { opacity: 0; transform: scale(.85); filter: blur(10px); } 100% { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes logo-pulse {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(95,216,255,.45)) drop-shadow(0 0 30px rgba(46,123,255,.25)); }
  50% { transform: scale(1.045); filter: drop-shadow(0 0 22px rgba(95,216,255,.95)) drop-shadow(0 0 70px rgba(46,123,255,.7)); }
}
@keyframes load { to { width: 100%; } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes glow { 0%,100% { filter: drop-shadow(0 0 12px rgba(95,216,255,.5)); } 50% { filter: drop-shadow(0 0 30px rgba(95,216,255,1)); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(3,10,26,.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header__in { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
/* originální bílé logo (White.svg) – vždy celé, beze změn */
.logo-plate { display: block; line-height: 0; flex-shrink: 0; }
.logo-plate img { display: block; width: 100%; height: auto; }
.brand__plate { width: 150px; filter: drop-shadow(0 0 8px rgba(95,216,255,.45)); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); font-family: var(--font-display); font-size: 14px; letter-spacing: .16em; }
.nav a { color: var(--text-2); text-decoration: none; transition: color .2s; }
.nav a:hover, .nav a[aria-current="true"] { color: #fff; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-3); background: transparent; color: var(--cyan); cursor: pointer; align-items: center; justify-content: center; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 32px;
  border: 1px solid var(--cyan); background: rgba(95,216,255,.1); color: #e6f8ff;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .22em;
  text-decoration: none; cursor: pointer; clip-path: var(--cut);
  transition: background .25s, color .25s, box-shadow .25s;
}
.btn:hover { background: var(--cyan); color: #02060f; box-shadow: 0 0 36px rgba(95,216,255,.55); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 14px; font-weight: 500; letter-spacing: .16em; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn--ghost { background: transparent; border-color: var(--line-3); color: #b9d3f5; font-weight: 500; clip-path: none; }
.btn--ghost:hover { background: transparent; border-color: var(--cyan); color: #fff; box-shadow: none; }
.link-arrow { font-family: var(--font-display); font-size: 13px; letter-spacing: .2em; text-decoration: none; text-transform: uppercase; }

/* ---------- COMMON ---------- */
.kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: .2em; color: var(--cyan); text-transform: uppercase; }
.section { padding-top: clamp(80px, 9vw, 128px); overflow-x: clip; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.section__head > div { display: flex; flex-direction: column; gap: 16px; }
.h2 { font-size: clamp(32px, 3.9vw, 52px); line-height: 1.1; }
.section__lead { max-width: 440px; font-size: 17px; color: var(--text-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2.4s ease-in-out infinite; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--text-3); padding: 0; margin: 0; list-style: none; }
.tags li { padding: 8px 12px; border: 1px solid var(--line-2); }
.card {
  position: relative; padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line-2); background: var(--panel);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s, background .35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--cyan); background: var(--panel-hi); box-shadow: 0 0 0 1px rgba(95,216,255,.3), 0 24px 60px -20px rgba(46,123,255,.55); }
.corner { position: absolute; width: 24px; height: 24px; border: 0 solid var(--cyan); pointer-events: none; }
.corner--tl { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.corner--tr { right: -1px; top: -1px; border-right-width: 2px; border-top-width: 2px; }
.corner--bl { left: -1px; bottom: -1px; border-left-width: 2px; border-bottom-width: 2px; }
.corner--br { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }

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

/* ---------- HERO ---------- */
.hero { position: relative; overflow-x: clip; padding-top: clamp(40px, 5vw, 72px); padding-bottom: 72px; }
.hero::before { content: ""; position: absolute; right: -10%; top: -80px; width: 900px; height: 900px; max-width: 100vw; pointer-events: none; background: radial-gradient(circle, rgba(46,123,255,.22) 0%, rgba(3,10,26,0) 60%); }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 48px; align-items: start; }
.hero__copy { padding-top: 56px; display: flex; flex-direction: column; gap: 28px; }
.hero__status { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .18em; color: var(--cyan); }
.hero h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.02; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 28px rgba(95,216,255,.55); }
.hero__lead { max-width: 540px; font-size: 19px; color: var(--text-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.hero .tags { padding-top: 20px; }

.holo { display: flex; flex-direction: column; gap: 16px; }
.holo__screen { position: relative; aspect-ratio: 600 / 560; border: 1px solid #143063; background: rgba(4,14,34,.6); cursor: crosshair; touch-action: pan-y; }
.holo__screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.holo__label { position: absolute; top: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--text-4); }
.holo__label--l { left: 20px; } .holo__label--r { right: 20px; }
.holo__core { position: absolute; left: 50%; top: 51%; width: 30%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 10px rgba(95,216,255,.9)) drop-shadow(0 0 28px rgba(46,123,255,.7)); pointer-events: none; }
.holo__modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.holo__mode { min-height: 48px; border: 1px solid var(--line-3); background: transparent; color: #9fc3f0; font-family: var(--font-display); font-size: 13px; letter-spacing: .18em; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.holo__mode:hover { border-color: var(--cyan); color: #fff; }
.holo__mode[aria-pressed="true"] { border-color: var(--cyan); background: rgba(95,216,255,.16); color: #fff; }
.holo__caption { min-height: 48px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.holo__caption b { font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: .14em; color: var(--cyan); margin-right: 6px; }

/* ---------- TICKER ---------- */
.ticker { height: 64px; overflow: hidden; border-block: 1px solid var(--line); background: var(--panel); display: flex; align-items: center; }
.ticker__track { display: flex; gap: 48px; white-space: nowrap; font-family: var(--font-display); font-size: 15px; letter-spacing: .3em; color: #6f8fbf; animation: marquee 38s linear infinite; }
.ticker__track i { font-style: normal; color: var(--cyan); }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: clamp(40px, 6.6vw, 96px); align-items: center; }
.about__visual { position: relative; width: 460px; height: 480px; animation: float 6s ease-in-out infinite; }
.about__ring { position: absolute; left: 0; top: 10px; width: 460px; height: 460px; }
.about__ring--a { opacity: .7; animation: spin 30s linear infinite; }
.about__ring--b { opacity: .6; animation: spin-rev 18s linear infinite; }
.about__halo { position: absolute; left: 90px; top: 100px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(46,123,255,.35), rgba(3,10,26,0) 70%); }
.about__plate { position: absolute; left: 70px; top: 158px; width: 320px; animation: glow 3s ease-in-out infinite; }
.about__id { position: absolute; left: 250px; top: 420px; padding: 12px 16px; border: 1px solid var(--cyan); background: var(--bg); font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--cyan); }
.about__copy { display: flex; flex-direction: column; gap: 28px; }
.about__copy p { max-width: 700px; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 700px; }
.stat { padding: 20px; border: 1px solid var(--line-2); background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--cyan); }
.stat span { font-size: 14px; color: var(--text-3); }

/* ---------- SERVICES ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service { display: flex; flex-direction: column; gap: 18px; }
.service__top { display: flex; justify-content: space-between; align-items: center; }
.service__top span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; color: #6f8fbf; }
.service h3 { font-size: 28px; }
.service p { color: var(--text-2); }
.service .link-arrow { margin-top: auto; padding-top: 6px; }

/* ---------- TIMELINE ---------- */
.timeline { position: relative; }
.timeline__rail { position: relative; overflow-x: auto; scrollbar-width: thin; }
.timeline__rail::before { content: ""; position: absolute; left: 0; right: 0; top: 29px; height: 2px; background: linear-gradient(90deg, var(--line), var(--blue), var(--cyan)); min-width: 760px; }
.timeline__years { position: relative; display: grid; grid-template-columns: repeat(9, minmax(84px, 1fr)); min-width: 760px; list-style: none; margin: 0; padding: 0; }
.timeline__btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; background: transparent; border: 0; color: #8fa9d0; cursor: pointer; font-family: var(--font-display); font-size: 15px; letter-spacing: .08em; transition: color .2s; }
.timeline__btn:hover { color: #fff; }
.timeline__btn i { width: 14px; height: 14px; border: 2px solid var(--cyan); background: var(--bg); transform: rotate(45deg); transition: all .25s; }
.timeline__btn[aria-selected="true"] { color: #fff; }
.timeline__btn[aria-selected="true"] i { width: 22px; height: 22px; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.timeline__panel { margin-top: 24px; min-height: 360px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--blue); background: var(--panel); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; clip-path: var(--cut-lg); }
.timeline__period { display: flex; flex-direction: column; gap: 12px; }
.timeline__period small { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; color: #6f8fbf; }
.timeline__period strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 4vw, 56px); line-height: 1; color: var(--cyan); text-shadow: 0 0 24px rgba(95,216,255,.45); }
.timeline__period span { color: var(--text-3); }
.timeline__jobs { list-style: none; margin: 0; padding: 0; }
.timeline__jobs li { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: logo-in .4s ease both; }
.timeline__jobs b { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--text-strong); }
.timeline__jobs span { font-size: 15px; color: var(--text-2); }

/* ---------- SEMINARS ---------- */
.seminar { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line-2); background: linear-gradient(120deg, #0a2356 0%, var(--panel) 60%); display: flex; gap: 48px; align-items: center; }
.seminar__ring { position: absolute; right: -100px; top: -110px; width: 420px; height: 420px; opacity: .35; animation: spin 30s linear infinite; pointer-events: none; }
.seminar__copy { position: relative; flex: 1; display: flex; flex-direction: column; gap: 20px; }
.seminar h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
.seminar p { max-width: 680px; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.seminar .tags li { border-color: var(--blue); color: #b9d3f5; }
.seminar .btn { position: relative; flex-shrink: 0; }

/* ---------- BLOG ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post { min-height: 210px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.post__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--text-4); }
.post__cat { color: var(--cyan); }
.post__cat--proc { color: var(--green); }
.post__cat--cloud { color: #9fb8ff; }
.post__cat--sec { color: var(--orange); }
.post__title { font-family: var(--font-display); font-weight: 600; font-size: 23px; line-height: 1.25; color: var(--text-strong); }
.post__more { margin-top: auto; font-family: var(--font-display); font-size: 13px; letter-spacing: .2em; color: var(--cyan); }

/* ---------- REFERENCES ---------- */
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ref { margin: 0; display: flex; flex-direction: column; gap: 24px; }
.ref__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; color: var(--cyan); }
.ref__head span:last-child { font-family: var(--font-display); font-size: 44px; line-height: .6; color: var(--blue); }
.ref blockquote { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text); }

/* ---------- CONTACT ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(40px, 5.5vw, 80px); padding-bottom: 96px; }
.contact__copy { display: flex; flex-direction: column; gap: 28px; }
.contact__copy p { font-size: 18px; line-height: 1.7; color: var(--text-2); }
.contact__links { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.contact__link { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 0 20px; border: 1px solid var(--line-2); background: var(--panel); text-decoration: none; font-family: var(--font-mono); font-size: 16px; color: var(--text); transition: border-color .2s; overflow-wrap: anywhere; }
.contact__link:hover { border-color: var(--cyan); color: #fff; }
.form { position: relative; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--blue); background: var(--panel); display: flex; flex-direction: column; gap: 20px; clip-path: var(--cut-lg); }
.form__head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; color: #6f8fbf; }
.form__head span:last-child { color: var(--green); animation: pulse 2.4s ease-in-out infinite; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-display); font-size: 13px; letter-spacing: .16em; color: var(--text-3); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--line-3); border-radius: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; letter-spacing: normal;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { padding: 14px 16px; min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(95,216,255,.18); }
.field input::placeholder, .field textarea::placeholder { color: #5f7aa3; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.form__status { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--green); }
.form__status.is-error { color: var(--orange); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-deep); font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--text-4); }
.footer__in { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__plate { width: 110px; }
.footer a { color: var(--text-4); text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- ARTICLE / BLOG PAGES ---------- */
.page-head { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.crumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; color: var(--text-4); }
.crumbs a { color: var(--text-4); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.page-head h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; max-width: 1000px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; color: var(--text-3); }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 64px; padding-bottom: 96px; }
.prose { font-size: 18px; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; margin-top: 1.8em; }
.prose h3 { font-size: 22px; line-height: 1.3; margin-top: 1.6em; color: var(--cyan-soft); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text-strong); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--cyan); }
.prose ol li::marker { color: var(--cyan); font-family: var(--font-display); }
.prose hr { border: 0; height: 1px; background: linear-gradient(90deg, var(--blue), transparent); margin: 2em 0; }
.prose blockquote { margin-left: 0; padding: 16px 24px; border-left: 2px solid var(--cyan); background: var(--panel); font-family: var(--font-display); font-size: 20px; color: var(--text-strong); }
.prose [lang="en"] h3 { color: var(--text-strong); }
.prose h2[lang="en"] { padding-top: 1.2em; border-top: 1px solid var(--line-2); }
.aside { display: flex; flex-direction: column; gap: 24px; }
.aside__box { position: sticky; top: 120px; padding: 28px; border: 1px solid var(--line-2); background: var(--panel); display: flex; flex-direction: column; gap: 16px; }
.aside__box h2 { font-size: 22px; }
.aside__box p { color: var(--text-2); font-size: 16px; }
.aside__list { list-style: none; margin: 0; padding: 0; }
.aside__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 15px; line-height: 1.4; }
.aside__list a:hover { color: var(--cyan); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-3); background: transparent; color: #9fc3f0; font-family: var(--font-display); font-size: 13px; letter-spacing: .16em; cursor: pointer; }
.filter:hover { border-color: var(--cyan); color: #fff; }
.filter[aria-pressed="true"] { border-color: var(--cyan); background: rgba(95,216,255,.16); color: #fff; }
.post[hidden] { display: none; }

.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; }
.notfound strong { font-family: var(--font-display); font-size: clamp(80px, 14vw, 180px); line-height: 1; color: var(--cyan); text-shadow: 0 0 40px rgba(95,216,255,.5); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__copy { padding-top: 16px; }
  .holo { max-width: 640px; }
  .about { grid-template-columns: 1fr; }
  .about__visual { margin: 0 auto; }
  .posts, .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .aside__box { position: static; }
}
@media (max-width: 980px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 88px 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 28px; background: rgba(3,10,26,.97); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s ease;
  }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 20px; border-bottom: 1px solid var(--cyan); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .services, .contact { grid-template-columns: 1fr; }
  .timeline__panel { grid-template-columns: 1fr; gap: 20px; }
  .seminar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .header__in { height: 72px; }
  .nav { inset: 72px 0 auto 0; }
  .brand__plate { width: 124px; }
  .hero__lead { font-size: 17px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .holo__modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .holo__label--r { display: none; }
  .about__visual { width: 300px; height: 320px; }
  .about__ring { width: 300px; height: 300px; }
  .about__halo { left: 60px; top: 60px; width: 180px; height: 180px; }
  .about__plate { left: 40px; top: 103px; width: 220px; }
  .about__id { left: 120px; top: 280px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 14px 12px; }
  .stat b { font-size: 26px; }
  .stat span { font-size: 12px; }
  .posts, .refs { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
  .footer__in { flex-direction: column; align-items: flex-start; }
  .prose { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
