/* Velorian Security — site styles
   Brand: Midnight #0D1117, Deep #080C10, Navy slate #1A1F2E,
   Teal #1D9E75, Teal mid #5DCAA5, Ice white #E8F5F1
   Type: Syne (display), DM Sans (body) */

:root {
  --midnight: #0D1117;
  --deep: #080C10;
  --slate: #1A1F2E;
  --slate-2: #232a3d;
  --teal: #1D9E75;
  --teal-mid: #5DCAA5;
  --ice: #E8F5F1;
  --ink-2: #a9b8b3;      /* secondary text on midnight, 7.9:1 */
  --ink-3: #7d8c88;      /* tertiary text, 4.9:1 */
  --rule: #263041;
  --danger: #f2a08f;

  --display: "Syne", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.5rem + 3.6vw, 4.1rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--ice);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-mid); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ice); }
:focus-visible { outline: 2px solid var(--teal-mid); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--teal); color: var(--deep); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 64ch; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--teal); color: var(--deep); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.005em; line-height: 1.25; }
p { margin: 0 0 1em; }
.lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--midnight) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ice); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0; margin-top: 1px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ice); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); padding-bottom: 4px; }
.nav .btn { padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); color: var(--ice); border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: 0.9rem; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--deep); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--teal-mid); }
  .nav .btn { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--teal); color: var(--deep);
  font-family: var(--display); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.005em;
  padding: 14px 24px; border-radius: var(--radius); text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--teal-mid); color: var(--deep); }
.btn-quiet { background: transparent; color: var(--ice); box-shadow: inset 0 0 0 1px var(--rule); }
.btn-quiet:hover { background: var(--slate); color: var(--ice); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
section + section { border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: end; margin-bottom: 56px; }
.section-head p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero .tagline { color: var(--teal-mid); font-family: var(--display); font-weight: 600; font-size: 1rem; margin-bottom: 22px; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin: 26px 0 34px; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { position: relative; }
.hero-figure figcaption { font-size: var(--step--1); color: var(--ink-3); margin-top: 14px; max-width: 52ch; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero h1 { max-width: 16ch; } }

/* Diagram: the one animated moment. A packet travels the path once on load. */
.diagram .path-live { stroke-dasharray: 6 10; }
.diagram .pulse { offset-rotate: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  .diagram .path-live { animation: dash 2.4s linear infinite; }
  @keyframes dash { to { stroke-dashoffset: -32; } }
  .diagram .layer-glow { animation: glow 3.6s ease-in-out infinite; }
  @keyframes glow { 0%, 100% { opacity: .35; } 50% { opacity: .8; } }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); max-width: 18ch; }
.page-head .lede { margin-top: 22px; max-width: 58ch; }

/* ---------- Ruled service list ---------- */
.ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ruled > li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 16px 48px; padding: 34px 0; border-bottom: 1px solid var(--rule); }
.ruled h3 { font-size: var(--step-2); }
.ruled .who { color: var(--teal-mid); font-size: var(--step--1); margin-top: 10px; }
.ruled p { margin: 0; color: var(--ink-2); }
.ruled .deliv { margin: 0; padding: 0; list-style: none; font-size: var(--step--1); color: var(--ink-2); }
.ruled .deliv li { padding: 4px 0 4px 16px; position: relative; }
.ruled .deliv li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 1px; background: var(--teal); }
.ruled .supporting { padding-left: 0; }
.ruled .supporting h3 { font-size: var(--step-1); color: var(--ink-2); }
@media (max-width: 860px) { .ruled > li { grid-template-columns: 1fr; } }

/* ---------- Process (a real sequence, so numbered) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; border-top: 2px solid var(--teal); }
.steps li { counter-increment: step; padding: 22px 22px 0 0; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 700; color: var(--teal-mid); font-size: 0.95rem; margin-bottom: 12px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { font-size: var(--step--1); color: var(--ink-2); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Two-column prose ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; }
.split > :first-child h2 { position: sticky; top: 104px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > :first-child h2 { position: static; } }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.facts div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: var(--step--1); color: var(--ink-3); margin-bottom: 4px; }
.facts dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Work entries ---------- */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work article { background: var(--slate); border-radius: var(--radius); padding: 32px; border-left: 3px solid var(--teal); }
.work .ctx { font-size: var(--step--1); color: var(--teal-mid); margin-bottom: 10px; }
.work h3 { margin-bottom: 14px; }
.work p { color: var(--ink-2); margin: 0 0 12px; }
.work p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .work { grid-template-columns: 1fr; } }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--slate); overflow: hidden; position: relative; display: grid; place-items: center; border: 1px solid var(--rule); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .mono { font-family: var(--display); font-weight: 800; font-size: 4.2rem; color: var(--teal); letter-spacing: -0.04em; }
.portrait-cap { font-size: var(--step--1); color: var(--ink-3); margin-top: 12px; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } .portrait { max-width: 240px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--deep); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: var(--ink-2); margin: 14px 0 0; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 80px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.next-steps { list-style: none; padding: 0; margin: 28px 0 32px; counter-reset: n; }
.next-steps li { counter-increment: n; position: relative; padding: 0 0 18px 36px; color: var(--ink-2); }
.next-steps li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--slate); color: var(--teal-mid); font-family: var(--display); font-weight: 700; font-size: 0.8rem; display: grid; place-items: center; }
.next-steps strong { color: var(--ice); font-weight: 500; }

form.contact { background: var(--slate); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.92rem; margin-bottom: 7px; color: var(--ice); }
.field .opt { color: var(--ink-3); font-size: 0.85rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ice);
  background: var(--midnight); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 12px 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-mid); box-shadow: 0 0 0 3px rgba(93, 202, 165, .18); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { min-height: 70px; margin: 4px 0 20px; }
.form-note { font-size: var(--step--1); color: var(--ink-3); margin: 14px 0 0; }
.form-status { margin: 16px 0 0; font-size: 0.95rem; min-height: 1.4em; }
.form-status.ok { color: var(--teal-mid); }
.form-status.err { color: var(--danger); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--rule); background: var(--deep); padding: 48px 0 40px; font-size: var(--step--1); color: var(--ink-3); }
footer .wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
footer h2 { font-family: var(--body); font-size: 0.92rem; font-weight: 500; color: var(--ice); margin-bottom: 12px; letter-spacing: 0; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { padding: 3px 0; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ice); text-decoration: underline; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; align-content: center; }
.lost h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); margin-bottom: 18px; }
