/* Vektor Systems — one stylesheet for both pages. No JavaScript, self-hosted
   Inter (weights 400/500 only), strict CSP: all styling lives here, none inline. */

/* ---------- Fonts: Inter self-hosted, split Latin/Cyrillic per weight ---------- */

@font-face {
  font-family: Inter;
  src: url("/fonts/inter-regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+0180-024F, U+1E9E, U+2000-206F, U+20A0-20BF, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-regular-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+2116;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-medium-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+0180-024F, U+1E9E, U+2000-206F, U+20A0-20BF, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-medium-cyrillic.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+2116;
}

/* ---------- Design tokens ---------- */

:root {
  --ink:      #0D1B2A;   /* headings, wordmark */
  --body:     #2B3743;   /* body copy */
  --muted:    #5A6672;   /* secondary text, labels */
  --accent:   #0D5E8C;   /* links, primary action */
  --accent-dark: #094A6E;
  --on-accent:#FFFFFF;
  --line:     #E3E8EE;   /* hairlines */
  --line-2:   #D3DBE3;
  --bg:       #FFFFFF;   /* page ground */
  --panel:    #F4F6F9;   /* light section band */
  --ink-band: #0D1B2A;   /* dark bands / footer */
  --on-ink:   #C7D2DD;   /* body text on dark */
  --on-ink-strong: #FFFFFF;

  --maxw: 68rem;
  --prose: 40rem;
  --gutter: 24px;

  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06);
  --shadow: 0 8px 30px rgba(13, 27, 42, .08);
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: Inter, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.35em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  color: var(--accent);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.skip:focus { left: 12px; top: 12px; z-index: 20; }

/* ---------- Wordmark ---------- */

.brand { display: inline-flex; align-items: baseline; text-decoration: none; line-height: 1; }
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5ch;
  font-variant-ligatures: none;
}
.wordmark-name {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.wm-tor { color: var(--accent); }
.wordmark-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateY(-1px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
}
.nav-link {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.nav-link:hover { color: var(--ink); }
.nav-cta {
  color: var(--accent);
}
.nav-cta:hover { color: var(--accent-dark); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn svg { width: 15px; height: 15px; }
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover { background: var(--accent-dark); color: var(--on-accent); }
.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Hero ---------- */

.hero { border-bottom: 1px solid var(--line); }
.hero .container {
  padding-top: clamp(64px, 10vw, 128px);
  padding-bottom: clamp(56px, 9vw, 112px);
}
.hero-inner { max-width: 46rem; }
.hero-title {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0 0 24px;
}
.hero-sub {
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Generic section ---------- */

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--panel { background: var(--panel); border-block: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.14; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }

/* ---------- Principles grid ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(28px, 4vw, 44px) clamp(32px, 5vw, 56px);
}
.principle { position: relative; padding-top: 22px; border-top: 2px solid var(--accent); }
.principle h3 { font-size: 19px; margin-bottom: 10px; }
.principle p { color: var(--body); margin: 0; }

/* ---------- Statement band ---------- */

.statement {
  background: var(--ink-band);
  color: var(--on-ink);
}
.statement .container { padding-block: clamp(56px, 8vw, 96px); }
.statement blockquote {
  margin: 0;
  max-width: 48rem;
}
.statement .eyebrow { color: #8FA3B5; }
.statement p {
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.3;
  color: var(--on-ink-strong);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Founder teaser (index) ---------- */

.teaser-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.teaser-card img {
  width: 132px; height: 132px;
  border-radius: 12px;
  object-fit: cover;
}
.teaser-name { font-size: 20px; margin-bottom: 4px; }
.teaser-role { color: var(--muted); font-size: 14px; margin: 0 0 14px; letter-spacing: 0.02em; }
.teaser-card p.teaser-line { color: var(--body); margin: 0 0 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-band);
  color: var(--on-ink);
}
.site-footer .container {
  padding-block: clamp(40px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: flex-end;
  justify-content: space-between;
}
.site-footer .wordmark-name { color: #fff; }
.site-footer .wm-tor { color: #4FA3D1; }
.site-footer .wordmark-sub { color: #7C8FA1; }
.footer-meta { color: var(--on-ink); font-size: 15px; line-height: 1.7; text-align: right; }
.footer-meta a { color: #9FD0EA; }
.footer-meta a:hover { color: #fff; }
.footer-legal { color: #6E8096; font-size: 13px; margin-top: 6px; }

/* ---------- Founder page ---------- */

.person { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }
.person-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.person-portrait {
  width: 200px; height: 200px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.person-name { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 10px; }
.person-role { color: var(--accent); font-weight: 500; font-size: 16px; letter-spacing: 0.02em; margin: 0; }

.person-body { max-width: var(--prose); }
.person-body p { font-size: 18px; line-height: 1.68; margin-bottom: 1.3em; }
.person-body .lead { font-size: 20px; color: var(--ink); }

.person-closing {
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: clamp(36px, 5vw, 52px) 0 0;
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
  max-width: var(--prose);
}

/* Facts strip */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 40px;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.fact-label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px;
}
.fact-value { color: var(--ink); font-size: 15.5px; line-height: 1.55; margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .person-head { grid-template-columns: 1fr; text-align: left; }
  .person-portrait { width: 148px; height: 148px; }
  .teaser-card { grid-template-columns: 1fr; text-align: left; }
  .teaser-card img { width: 120px; height: 120px; }
  .footer-meta { text-align: left; }
  .site-footer .container { align-items: flex-start; }
}

@media (max-width: 420px) {
  .nav-link:not(.nav-cta) { display: none; }
}

/* ---------- Motion ---------- */

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

/* ---------- Print ---------- */

@media print {
  html, body { background: #fff; color: #000; }
  .site-header, .site-footer, .skip, .hero-cta { display: none; }
  a { color: #000; }
  .statement { background: #fff; color: #000; }
  .statement p { color: #000; }
}
