:root {
  --ink: #0a0d12;
  --panel: #10151c;
  --panel-2: #0d1117;
  --line: #1f2731;
  --text: #edf0f3;
  --muted: #8b95a3;
  --teal: #5cc8d6;
  --ok: #5fd39b;
  --warn: #f0b45c;
  --alert: #f2726b;
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 72px);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: 13px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px;
  font: 500 15px/1.2 var(--sans); text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn-light { background: #edf0f3; color: #0a0d12; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 20px rgba(0,0,0,.35); }
.btn-light:hover { background: #fff; }
.btn-dark { background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.btn-dark:hover { border-color: #3a4553; }

/* Nav: full-width and plain, as in v1 */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter);
  background: linear-gradient(var(--ink) 0%, rgba(10, 13, 18, 0) 100%);
  border-bottom: 1px solid transparent;
  /* Size the fade to include the border; otherwise it repeats into the 1px border strip and
     draws a dark line across the hero. */
  background-origin: border-box;
  transition: background-color .4s cubic-bezier(.32,.72,0,1), border-color .4s cubic-bezier(.32,.72,0,1);
}
/* Once the page has scrolled, the bar turns to frosted glass so content passing under it
   softens instead of colliding with the links. Over the hero it stays open. */
.nav.is-scrolled {
  background: rgba(10, 13, 18, .7);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, .06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-scrolled { background: rgba(10, 13, 18, .94); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.nav-sentinel { position: absolute; top: 80px; left: 0; width: 1px; height: 1px; pointer-events: none; }
.wordmark {
  color: var(--text); text-decoration: none; white-space: nowrap;
  font: 600 28px/1 var(--sans); letter-spacing: -0.025em;
}
/* The 7's drawing has cap height 100 in a 160-unit box, 26 above the cap line and 34 below the
   baseline. Geist's cap height is 0.71em, so: height 1.6 x 0.71em, dropped 0.34 x 0.71em. */
.wm-7 { height: 1.136em; width: auto; vertical-align: -0.2414em; margin-left: .02em; overflow: visible; fill: currentColor; }
.wm-7 .wm-blade { fill: var(--teal); }  /* blade half teal, matching the tab icon */
.nav nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav nav a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative; min-height: max(100svh, 640px);
  display: grid; place-items: center; text-align: center;
  padding: 120px var(--gutter) 72px; overflow: hidden;
}
#glow, .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback { display: none; background: radial-gradient(ellipse 60% 50% at 50% 50%, #0a0d12 30%, #0d4a55 55%, #0a0d12 80%); }
.no-webgl #glow { display: none; }
.no-webgl .hero-fallback { display: block; }
/* Fade the animation into the page at the bottom edge. */
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(rgba(10,13,18,0), var(--ink)); pointer-events: none; }
.hero-text { position: relative; z-index: 1; max-width: 72rem; }
.hero h1 {
  margin: 0 0 24px;
  font-weight: 600; font-size: clamp(38px, 5.6vw, 84px); line-height: 1.04; letter-spacing: -0.04em;
  text-shadow: 0 2px 30px rgba(10, 13, 18, .55);
}
/* Each sentence holds its own line; on narrow screens they wrap, balanced. */
.hero h1 span { display: block; white-space: nowrap; }
@media (max-width: 640px) { .hero h1 span { white-space: normal; text-wrap: balance; } }
.lede { margin: 0 auto 36px; max-width: 32rem; font-size: 19px; color: #d3d9e0; text-shadow: 0 1px 16px rgba(10,13,18,.8); }
.hero-note { margin: 18px 0 0; color: #7d8794; }

/* Two-tone section headings: a bold line, then a quieter one. */
.pair {
  margin: 0 auto; max-width: 48rem; text-align: center;
  font-weight: 600; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; letter-spacing: -0.025em;
  text-wrap: balance;
}
.pair span { display: block; color: #6f7a88; font-weight: 500; }
/* Keeps a hyphenated phrase from breaking across lines in a heading. */
.nowrap { white-space: nowrap; font-weight: inherit; }

section:not(.hero) { padding: clamp(88px, 14vh, 160px) var(--gutter); position: relative; }

.chip {
  font: 500 12px/1 var(--mono); padding: 6px 9px; border-radius: 999px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.alert { color: var(--alert); background: rgba(242, 114, 107, .1); }
.chip.warn { color: var(--warn); background: rgba(240, 180, 92, .1); }
.chip.ok { color: var(--ok); background: rgba(95, 211, 155, .1); }

/* Security: copy and services on the left, the layer diagram pinned on the right. The
   item in the middle of the screen is lit, and its layer glows in the diagram. */
.sec {
  /* Section padding sits inside the box, so add it back: content lines up with the AI section. */
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px);
}
.sec .pair, .ai .pair { margin: 0; text-align: left; }
.svc { list-style: none; margin: 56px 0 0; padding: 0 0 16vh; }
.svc li {
  padding: 30px 0 32px 28px; border-left: 1px solid var(--line);
  transition: border-color .5s cubic-bezier(.32,.72,0,1), opacity .5s cubic-bezier(.32,.72,0,1);
}
.svc.is-live li { opacity: .42; }
.svc.is-live li.is-on { opacity: 1; border-left-color: var(--teal); }
.svc h3 { margin: 0 0 8px; font-size: 21px; font-weight: 500; letter-spacing: -0.015em; }
.svc p { margin: 0; color: #a3acb8; max-width: 44ch; }
.svc .tags { color: color-mix(in srgb, var(--teal) 75%, #8b95a3); margin-top: 14px; font-size: 12.5px; }

/* AI: the ASCII ring fills the section behind the copy, to the right. */
.ai { overflow: hidden; }
.ai-figure { position: absolute; inset: 0; }
.ai-figure canvas { width: 100%; height: 100%; display: block; }
.ai-copy { position: relative; max-width: var(--wrap); margin: 0 auto; }
.ai-copy > * { max-width: 620px; }
.ai-grid { margin: 56px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; }
.ai-grid dt { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 8px; }
.ai-grid dd { margin: 0; color: #a3acb8; font-size: 16px; }
.ai-grid .tags { color: #b9dd6a; opacity: .8; margin-top: 12px; font-size: 12.5px; }

/* About: two columns on the content width (copy left, the person right), then principles. */
.about-grid, .contact-grid {
  position: relative; max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.about .pair, .contact .pair { margin: 0; text-align: left; }
.about-lede { max-width: 36rem; margin: 28px 0 0; color: #b9c1cc; font-size: 18px; }
.about-card { padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.015); }
/* The person behind the security work: photo, name, one line, LinkedIn. */
.person { display: flex; align-items: center; gap: 18px; }
.person-photo {
  position: relative; flex: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line);
  color: #8b95a3; font-weight: 500; letter-spacing: .02em;
}
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person-text { display: grid; gap: 2px; }
.person-text b { font-weight: 500; font-size: 18px; }
.person-text .mono { color: #7d8794; font-size: 12.5px; }
.person-link { color: var(--teal); font-size: 15px; text-decoration: none; margin-top: 4px; }
.person-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.certs { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.certs li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; color: #c6cdd6; background: rgba(255,255,255,.015); }
.principles {
  list-style: none; max-width: var(--wrap); margin: clamp(56px, 8vh, 88px) auto 0; padding: 32px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line);
}
.principles b { display: block; font-weight: 500; font-size: 17px; margin-bottom: 6px; }
.principles span { color: #a3acb8; font-size: 15px; }

/* Contact: the ask left, the next steps right, over a faint contour texture. */
.contact { overflow: hidden; }
.contact::before {
  content: ''; position: absolute; left: 50%; bottom: -260px; width: 900px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(92,200,214,.14), transparent 70%);
  pointer-events: none;
}
/* Static contour lines, faded out at the edges so they sit behind the content, not on it. */
.contours {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 55%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 55%, #000 20%, transparent 75%);
}
.contact-lede { max-width: 32rem; margin: 20px 0 0; color: #b9c1cc; font-size: 18px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* The steps hang off a plain rule, like the services list. */
.next { list-style: none; margin: 0; padding: 4px 0 4px 28px; display: grid; gap: 26px; border-left: 1px solid var(--line); }
.next li { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; }
.next .mono { grid-row: span 2; color: #5d6876; padding-top: 3px; }
.next b { font-weight: 500; font-size: 18px; }
.next p { margin: 4px 0 0; color: #a3acb8; font-size: 15px; }

/* Grid, not space-between: equal side columns keep the contact group on the page's true centre. */
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 28px; padding: 32px var(--gutter); border-top: 1px solid var(--line); color: #5d6876; font-size: 15px; }  /* 15% up from 13px */
.foot > :last-child { justify-self: end; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 5px 28px; }
@media (max-width: 1080px) {
  .foot { grid-template-columns: 1fr; }
  .foot > :last-child { justify-self: start; }
}
.foot a { display: inline-flex; align-items: center; gap: 8px; color: #8b95a3; text-decoration: none; transition: color .2s; }
.foot-ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.foot a:hover { color: var(--text); }

@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body { font-size: 16px; }
  .nav nav a { font-size: 14px; }
  .sec { grid-template-columns: 1fr; }
  .svc { margin-top: 36px; padding-bottom: 0; }
  .svc li { padding: 24px 0 26px 20px; }
  .ai-figure { position: relative; inset: auto; height: 340px; margin: -24px calc(-1 * var(--gutter)) 8px; }
  .ai { display: flex; flex-direction: column; }
  .ai-copy > * { max-width: none; }
  .ai-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .window-bar { grid-template-columns: auto 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .svc li { transition: none; }
}
