/* ============================================================
   VELETIS — light editorial
   type: Newsreader (display) / Switzer (text)
   ============================================================ */

:root {
  --paper: #faf9f6;
  --paper-tint: #f3f1ec;
  --ink: #191817;
  --ink-soft: #55524d;
  --ink-faint: #8d8982;
  --line: rgba(25, 24, 23, 0.14);
  --line-soft: rgba(25, 24, 23, 0.08);
  --accent: #2743d0;
  --accent-deep: #1d33a6;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Switzer", -apple-system, "Segoe UI", sans-serif;
  --container: 1160px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- type ---------- */

h1, h2 {
  font-family: var(--serif);
  font-weight: 480;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
  font-variation-settings: "opsz" 60;
}

h1 { font-size: clamp(44px, 6.2vw, 84px); }
h2 { font-size: clamp(32px, 4vw, 54px); }

h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.kicker {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
}

.lede {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  max-width: 58ch;
}

a { color: inherit; text-decoration: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover { background: var(--accent-deep); }

.btn-quiet {
  border-color: var(--line);
  color: var(--ink);
}
.btn-quiet:hover { border-color: var(--ink); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
}
.wordmark-glyph { color: var(--accent); flex-shrink: 0; }

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.site-nav a { transition: color 0.15s; }
.site-nav a:hover { color: var(--ink); }

.header-right { display: flex; align-items: center; gap: 16px; }
.btn-header { padding: 11px 22px; font-size: 13.5px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  padding: 0 11px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero { padding-top: clamp(72px, 11vh, 140px); }

.hero-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-center .kicker { margin-bottom: 26px; }
.hero-center h1 { margin-bottom: 26px; max-width: 18ch; }
.hero-center .lede { margin-bottom: 40px; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.figures-band {
  margin-top: clamp(64px, 10vh, 120px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.figures-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.figure {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.figure + .figure { border-left: 1px solid var(--line-soft); }
.figure strong {
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variation-settings: "opsz" 40;
}
.figure strong span { color: var(--accent); }
.figure em {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- sections ---------- */

.section { padding: clamp(80px, 12vh, 150px) 0; }
.section-tinted {
  background: var(--paper-tint);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-mark {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(48px, 7vh, 80px);
}

.roman {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--accent);
  min-width: 44px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

/* ---------- capabilities ---------- */

.cap-list { border-top: 1px solid var(--line); }

.cap-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(28px, 4vh, 44px) 0;
  border-bottom: 1px solid var(--line);
}

.cap-no {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 10px;
}

.cap-head h3 {
  font-family: var(--serif);
  font-weight: 470;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 44;
}

.cap-row > p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  max-width: 58ch;
  align-self: center;
}

/* ---------- method / flow ---------- */

.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: clamp(48px, 7vh, 72px);
}

.flow-node {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 26px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.flow-node-core {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.flow-node-core .flow-label { color: var(--accent); }

.flow-label {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 480;
  letter-spacing: -0.01em;
}
.flow-sub {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.flow-link {
  width: clamp(28px, 5vw, 80px);
  flex-shrink: 0;
  position: relative;
}
.flow-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  border-top: 1px dashed var(--ink-faint);
}
.flow-link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--ink-faint);
  border-right: 1px solid var(--ink-faint);
  transform: translateY(-50%) rotate(45deg);
}

.method-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.method-col h3 {
  margin-bottom: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
.method-col p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- security / governance ---------- */

.gov-list { border-top: 1px solid var(--line); }

.gov-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 4vw, 72px);
  padding: clamp(26px, 4vh, 38px) 0;
  border-bottom: 1px solid var(--line);
}

.gov-row dt {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 480;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 40;
}

.gov-row dd {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  max-width: 62ch;
}

/* ---------- company ---------- */

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.company-grid .section-mark { margin-bottom: 0; }

.company-copy p {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
}
.company-copy p + p { margin-top: 20px; }
.company-copy em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
}

/* ---------- contact ---------- */

.section-contact { padding-bottom: clamp(90px, 13vh, 170px); }
.contact-lede { margin-bottom: 52px; }

.contact-rows {
  border-top: 1px solid var(--ink);
  max-width: 760px;
}
.contact-row {
  display: grid;
  grid-template-columns: 220px 1fr 40px;
  gap: 20px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.25s;
}
.contact-row:hover { padding-left: 12px; }
.contact-row:hover .contact-arrow { color: var(--accent); transform: translateX(4px); }
.contact-row:hover .contact-value { color: var(--accent); }
.contact-label {
  color: var(--ink-faint);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contact-value {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 470;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.contact-arrow {
  color: var(--ink-faint);
  font-size: 20px;
  text-align: right;
  transition: color 0.2s, transform 0.2s;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-tint);
  padding: clamp(52px, 8vh, 84px) 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 480;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.footer-tag { color: var(--ink-faint); font-size: 14px; line-height: 1.6; }

.footer-head {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.footer-col p:not(.footer-head):not(.footer-logo):not(.footer-tag) {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}
.footer-col a { border-bottom: 1px solid transparent; transition: color 0.15s, border-color 0.15s; }
.footer-col a:hover { color: var(--ink); border-bottom-color: var(--line); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  color: var(--ink-faint);
  font-size: 13px;
}

/* ---------- reveal ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .cap-row { grid-template-columns: 1fr; gap: 14px; }
  .cap-row > p { align-self: start; }
  .company-grid { grid-template-columns: 1fr; }
  .gov-row { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
    display: none;
    z-index: 99;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 15px var(--pad);
    font-size: 17px;
    color: var(--ink);
    border-top: 1px solid var(--line-soft);
  }
  .nav-toggle { display: flex; }

  .figures-row { grid-template-columns: repeat(2, 1fr); }
  .figure { border-top: 1px solid var(--line-soft); }
  .figure:nth-child(-n+2) { border-top: none; }
  .figure + .figure { border-left: none; }
  .figure:nth-child(even) { border-left: 1px solid var(--line-soft); }

  .method-cols { grid-template-columns: 1fr; gap: 28px; }

  .flow { flex-direction: column; }
  .flow-link { width: 100%; height: 40px; }
  .flow-link::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: none; border-left: 1px dashed var(--ink-faint); }
  .flow-link::after {
    top: auto; bottom: 1px; right: auto; left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .section-mark { flex-direction: column; gap: 14px; }
  .roman { min-width: 0; align-self: flex-start; }

  .contact-row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .contact-label { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .btn-header { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
