/* Vortex Cybersecurity — site styles
   Palette: deep spruce base, frost text, brand green #06cc85 and amber #ffc200 from the logo. */

:root {
  --spruce-950: #04110d;
  --spruce-900: #08201a;
  --spruce-800: #0d2b23;
  --spruce-700: #15392f;
  --spruce-600: #1f4a3e;
  --lichen: #93b5a6;
  --frost: #e4f3ec;
  --phosphor: #06cc85;      /* logo green */
  --amber: #ffc200;         /* logo eyes */
  --phosphor-bright: #3ff0a8;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.5rem;
  --step-2: 2rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 2.66rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.6vw, 3.55rem);
  --step-5: clamp(2.7rem, 1.2rem + 6.2vw, 5.9rem);

  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --max: 76rem;
  --radius-s: 6px;
  --radius-l: 22px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  --progress: 0;
  --header-h: calc(4.5rem + 1px + env(safe-area-inset-top, 0px));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--spruce-900);
  color: var(--frost);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-top: var(--header-h);
}

/* Film grain over everything: gives the flat greens some depth.
   Deliberately position:absolute, not fixed: iOS Safari samples the status-bar colour from the topmost
   fixed layer at the top edge, and a faint full-screen fixed layer there blocks it from seeing the header. */
body { position: relative; }
body::after {
  content: ""; position: absolute; inset: 0; z-index: 200; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--phosphor) 60%, transparent); text-underline-offset: 0.2em; }
a:hover { color: var(--phosphor); }

:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--phosphor); color: var(--spruce-950); }

.sr-only {
  position: absolute !important; 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: 1rem; top: -4rem; z-index: 300;
  background: var(--phosphor); color: var(--spruce-950);
  padding: 0.6rem 1rem; border-radius: var(--radius-s); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Page transitions (Chrome, Edge, Safari 18.2+) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.28s ease both; }
::view-transition-new(root) { animation: vt-in 0.42s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(0.985); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.015); filter: blur(6px); } }

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

.site-header {
  /* Fixed (not sticky) with a solid colour: iOS 26 Safari only paints the status-bar strip
     from an opaque element fixed to the top of the page; theme-color is ignored there. */
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background-color: var(--spruce-900);
  border-bottom: 1px solid var(--spruce-700);
}
/* Reading progress along the header's bottom edge */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--phosphor));
  transform-origin: 0 50%; transform: scaleX(var(--progress));
  box-shadow: 0 0 12px var(--phosphor);
}

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }

.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; font-family: var(--font-display); font-weight: 600;
  font-size: 1.15rem; letter-spacing: -0.01em; white-space: nowrap;
}
@media (max-width: 420px) {
  .brand { font-size: 1rem; gap: 0.55rem; }
  .brand img { width: 36px; height: 36px; }
  .menu-toggle .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-toggle { padding-inline: 0.8rem; }
}
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand:hover { color: var(--frost); }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { text-decoration: none; padding: 0.5rem 0.8rem; border-radius: 999px; font-size: 0.98rem; color: var(--lichen); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--frost); background: var(--spruce-800); }

.lang {
  margin-left: 0.5rem; display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--spruce-600); border-radius: 999px; padding: 3px;
}
/* Doubled class beats every .nav a rule, so both halves always match in size */
.lang.lang a, .lang.lang span {
  display: inline-grid; place-items: center;
  min-width: 2.75rem; height: 2rem; padding: 0 0.7rem; margin: 0;
  border: 0; border-radius: 999px;
  font: 600 0.82rem/1 var(--font-body); letter-spacing: 0.04em;
  text-decoration: none;
}
.lang.lang span { background: var(--frost); color: var(--spruce-950); }
.lang.lang a { color: var(--lichen); background: transparent; }
.lang.lang a:hover { color: var(--frost); background: var(--spruce-800); }

.menu-toggle { display: none; }

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
    background: transparent; color: var(--frost); font: inherit; font-size: 0.95rem;
    border: 1px solid var(--spruce-600); border-radius: 999px; padding: 0.45rem 0.95rem; cursor: pointer;
  }
  .menu-toggle .bars { width: 16px; height: 10px; position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform 0.25s ease, top 0.25s ease;
  }
  .menu-toggle .bars::before { top: 0; }
  .menu-toggle .bars::after { top: 8px; }
  .menu-toggle[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--spruce-900);
    border-bottom: 1px solid var(--spruce-600);
    padding: 0.5rem max(var(--gutter), env(safe-area-inset-right, 0px)) 1.25rem max(var(--gutter), env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav.is-open { display: flex; animation: drop 0.28s var(--ease-out); }
  .nav a { padding: 0.95rem 0.25rem; border-radius: 0; border-bottom: 1px solid var(--spruce-700); font-size: 1.1rem; color: var(--frost); }
  .nav a:hover, .nav a[aria-current="page"] { background: transparent; color: var(--phosphor); }
  .lang { margin: 1.1rem 0 0; align-self: flex-start; }
  .lang.lang a, .lang.lang span { height: 2.5rem; min-width: 3.25rem; font-size: 0.9rem; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

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

.hero {
  position: relative; isolation: isolate;
  min-height: min(calc(100svh - var(--header-h)), 58rem);
  display: grid; align-items: center;
  padding-block: clamp(3rem, 9vh, 6rem);
}

.hero-visual { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-visual canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
          mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

/* The brand mark sits in the eye of the vortex; JS feeds --eye-x / --eye-y */
.vortex-eye {
  position: absolute; left: 0; top: 0; width: clamp(118px, 11vw, 172px); aspect-ratio: 1;
  transform: translate(calc(var(--eye-x, 72vw) - 50%), calc(var(--eye-y, 50%) - 50%));
  display: grid; place-items: center; pointer-events: none;
}
.vortex-eye .emblem { position: relative; width: 100%; height: 100%; }
.vortex-eye img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 22px rgba(6, 204, 133, 0.5)); }
@media (prefers-reduced-motion: no-preference) {
  .vortex-eye .emblem { animation: breathe 6s ease-in-out infinite; }
}
@keyframes breathe { 50% { transform: scale(1.035); } }

/* The octopus's amber eyes glow brighter as the pointer nears, flare on tap, and blink now and then.
   JS sets --glow (0..1.4) and --lid (1 open, 0 shut); positions are measured from the logo file. */
.vortex-eye { --glow: 0.45; --lid: 1; }
.eye-glow, .eye-lid { position: absolute; pointer-events: none; }
.eye-glow {
  width: 17%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 70, 0.95) 0, rgba(255, 194, 0, 0.5) 22%, rgba(255, 194, 0, 0) 62%);
  mix-blend-mode: screen;
  opacity: var(--glow);
  transform: translate(-50%, -50%) scaleY(var(--lid));
}
.eye-lid {
  width: 4.6%; height: 3.8%; border-radius: 50%; background: #06cc85;
  transform: translate(-50%, -50%) scaleY(calc(1 - var(--lid)));
}
.eye-glow.l, .eye-lid.l { left: 42.14%; top: 27.94%; }
.eye-glow.r, .eye-lid.r { left: 58.16%; top: 27.95%; }

.vortex-eye::before {
  content: ""; position: absolute; inset: -35%; border-radius: 50%;
  /* soft dark falloff behind the emblem so the particles never crowd it; no visible edge */
  background: radial-gradient(circle, rgba(8, 32, 26, 0.85) 0%, rgba(8, 32, 26, 0.45) 35%, rgba(8, 32, 26, 0) 68%);
}

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--spruce-900) 0%, color-mix(in srgb, var(--spruce-900) 82%, transparent) 32%, transparent 62%);
}

.hero-copy { max-width: 40rem; }

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 700;
  font-variation-settings: "wdth" 90;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 1.6rem;
  text-wrap: balance;
}

/* Decrypting headline */
.decrypt .w { display: inline-block; white-space: nowrap; }
.decrypt .c { display: inline-block; text-align: center; }
.decrypt .c.is-scrambled { color: var(--phosphor-bright); text-shadow: 0 0 18px rgba(6, 204, 133, 0.6); }
.js [data-decrypt] { visibility: hidden; animation: failsafe 0s 2.5s forwards; }
.js [data-decrypt].is-ready { visibility: visible; animation: none; }
@keyframes failsafe { to { visibility: visible; } }

.hero .lede {
  font-size: clamp(1.12rem, 1rem + 0.5vw, 1.35rem);
  color: var(--lichen);
  max-width: 34rem;
  margin: 0 0 2.4rem;
  text-wrap: pretty;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3.1rem; padding: 0.75rem 1.4rem; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease, transform 0.35s var(--ease-out);
  transform: translate(var(--tx, 0), var(--ty, 0));
}
.btn-primary { background: var(--phosphor); color: var(--spruce-950); box-shadow: 0 0 0 0 rgba(6, 204, 133, 0); }
.btn-primary:hover { color: var(--spruce-950); box-shadow: 0 0 32px 2px rgba(6, 204, 133, 0.45); }
.btn-ghost { border-color: var(--spruce-600); color: var(--frost); background: color-mix(in srgb, var(--spruce-900) 60%, transparent); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--frost); color: var(--frost); }
.btn:active { transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.97); }

@media (prefers-reduced-motion: no-preference) {
  .hero .lede, .hero .actions { animation: rise 0.9s var(--ease-out) both; animation-delay: 0.55s; }
  .hero .actions { animation-delay: 0.7s; }
  .hero-visual { animation: fade 1.8s ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }

/* Mobile: the vortex gets its own stage above the headline instead of hiding behind it */
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; padding-block: 0 3.5rem; }
  .hero::before { display: none; }
  .hero-visual { position: relative; inset: auto; height: min(58svh, 30rem); margin-bottom: -4.5rem; }
  .hero-visual canvas {
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
            mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
  }
  .hero-copy { position: relative; }
  .hero h1 { margin-bottom: 1.2rem; }
  .hero .lede { margin-bottom: 1.8rem; }
  .actions .btn { flex: 1 1 auto; }
}


/* ---------- Sections ---------- */

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section + .section { border-top: 1px solid var(--spruce-700); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.about-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: end;
}
.about-grid p { margin: 0; color: var(--lichen); max-width: 32rem; font-size: 1.2rem; }
.about-grid p + p { margin-top: 1.1rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Statement that lights up word by word as it scrolls through the viewport */
.js .illuminate .word { color: color-mix(in srgb, var(--frost) 18%, var(--spruce-700)); transition: color 0.35s ease, text-shadow 0.6s ease; }
.js .illuminate .word.lit { color: var(--frost); }
.js .illuminate .word.lit.edge { color: var(--phosphor-bright); text-shadow: 0 0 24px rgba(6, 204, 133, 0.5); }

/* Services: a ruled list that wakes up under the pointer (desktop) or as it crosses mid-screen (touch) */
.services-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.services-head p { margin: 0; color: var(--lichen); max-width: 26rem; }

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--spruce-600); }
.service {
  --mx: 20%; --my: 50%;
  position: relative; isolation: isolate;
  display: grid; gap: 1rem 3rem;
  grid-template-columns: 3.25rem minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: start;
  padding: 2.25rem 1.25rem;
  margin-inline: -1.25rem;
  border-bottom: 1px solid var(--spruce-600);
}
.service::before {
  content: ""; position: absolute; inset: 4px 0; z-index: -1; border-radius: 14px; opacity: 0;
  background: radial-gradient(28rem 14rem at var(--mx) var(--my), rgba(6, 204, 133, 0.12), transparent 70%);
  transition: opacity 0.4s ease;
}
.service::after {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 2px; border-radius: 2px;
  background: var(--phosphor); box-shadow: 0 0 14px var(--phosphor);
  transform: scaleY(0); transition: transform 0.45s var(--ease-out);
}
.service.is-active::before { opacity: 1; }
.service.is-active::after { transform: scaleY(1); }
.service svg { width: 3.25rem; height: 3.25rem; color: var(--phosphor); }
.service svg * { stroke-dasharray: 160; stroke-dashoffset: 0; }
.service.is-active svg * { animation: draw 1.1s var(--ease-out) both; }
@keyframes draw { from { stroke-dashoffset: 160; } }
.service h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.1; margin: 0.2rem 0 0; transition: color 0.3s ease; }
.service.is-active h3 { color: var(--frost); }
.service p { margin: 0.35rem 0 0; color: var(--lichen); max-width: 34rem; }
@media (max-width: 860px) {
  .service { grid-template-columns: 2.75rem minmax(0, 1fr); padding-inline: 1rem; margin-inline: -1rem; }
  .service svg { width: 2.75rem; height: 2.75rem; }
  .service p { grid-column: 2; margin-top: 0; }
}

/* Contact panel with a border that catches the light under the pointer */
.contact {
  --mx: 85%; --my: 0%;
  position: relative; isolation: isolate;
  background:
    radial-gradient(60rem 30rem at 110% -20%, color-mix(in srgb, var(--phosphor) 16%, transparent), transparent 60%),
    var(--spruce-800);
  border-radius: var(--radius-l);
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: radial-gradient(26rem 26rem at var(--mx) var(--my), var(--phosphor), var(--spruce-600) 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.contact .section-title { font-size: var(--step-3); max-width: 30rem; }
.contact > p { color: var(--lichen); max-width: 34rem; margin: 1rem 0 0; }

.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 2.5rem; }
.email-big {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.55rem, 0.9rem + 3.6vw, 3.6rem);
  letter-spacing: -0.03em; line-height: 1.1;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(transparent 88%, var(--phosphor) 88%, var(--phosphor) 94%, transparent 94%);
}
.email-big:hover { color: var(--phosphor); }

.copy-btn {
  font: 600 0.95rem/1 var(--font-body); color: var(--frost); min-height: 44px;
  background: transparent; border: 1px solid var(--spruce-600); border-radius: 999px;
  padding: 0.7rem 1.1rem; cursor: pointer; display: inline-flex; gap: 0.5rem; align-items: center;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.3s ease;
}
.copy-btn:hover { border-color: var(--frost); }
.copy-btn[data-state="done"] { border-color: var(--phosphor); color: var(--phosphor); box-shadow: 0 0 24px rgba(6, 204, 133, 0.35); }
.copy-btn svg { width: 1rem; height: 1rem; }

.contact-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--spruce-600); }
.contact-links a { color: var(--lichen); }
.contact-links a:hover { color: var(--phosphor); }

/* ---------- Inner pages (support, privacy) ---------- */

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--spruce-700); }
.page-hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 70%);
          mask-image: linear-gradient(90deg, transparent 20%, #000 70%);
}
.page-hero h1 { font-family: var(--font-display); font-size: var(--step-4); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 1.25rem; max-width: 46rem; text-wrap: balance; }
.page-hero .lede { color: var(--lichen); font-size: 1.25rem; max-width: 40rem; margin: 0 0 2rem; }
.page-hero .meta { color: var(--lichen); font-size: var(--step--1); margin: 0 0 1rem; }
@media (max-width: 760px) {
  .page-hero canvas { opacity: 0.35; -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 60%); mask-image: linear-gradient(180deg, #000 10%, transparent 60%); }
}

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 0.35rem 2rem; margin: 2.25rem 0 0; font-size: 1rem; }
.facts dt { color: var(--lichen); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 0.75rem; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 4rem; }
.split + .split { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--spruce-700); }
.split h2 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.split p { margin: 0 0 1rem; color: var(--lichen); max-width: 38rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.checklist li {
  display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.9rem;
  padding: 1.2rem 1.3rem; border: 1px solid var(--spruce-600); border-radius: 14px; background: var(--spruce-800);
}
.checklist svg { width: 1.6rem; height: 1.6rem; color: var(--phosphor); margin-top: 0.15rem; }
.checklist strong { display: block; font-weight: 600; color: var(--frost); }
.checklist span { color: var(--lichen); font-size: 1rem; }

.doc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
.toc { position: sticky; top: 6rem; align-self: start; font-size: 0.95rem; }
.toc p { color: var(--lichen); margin: 0 0 0.75rem; font-weight: 600; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; border-left: 1px solid var(--spruce-600); }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--lichen); transition: color 0.2s ease, border-color 0.2s ease; }
.toc a::before { content: counter(toc) ". "; }
.toc a:hover, .toc a.is-active { color: var(--frost); border-left-color: var(--phosphor); }

.prose { max-width: 42rem; }
.prose section + section { margin-top: 3.25rem; }
.prose h2 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 1rem; }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.4rem; }
.prose p, .prose li { color: var(--lichen); }
.prose p { margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--phosphor); }
.prose strong { color: var(--frost); font-weight: 600; }

@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; gap: 2.5rem; }
  .toc { position: static; }
}

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

.site-footer { border-top: 1px solid var(--spruce-700); padding-block: 3rem calc(3rem + env(safe-area-inset-bottom, 0px)); margin-top: 0; background: var(--spruce-950); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: start; }
.footer-logo { display: inline-block; }
.footer-logo img { width: 168px; height: auto; }
.site-footer .tag { color: var(--lichen); margin: 0.75rem 0 0; font-size: 0.98rem; max-width: 26rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.98rem; }
.footer-links a { color: var(--lichen); text-decoration: none; }
.footer-links a:hover { color: var(--phosphor); }
.footer-base { width: 100%; color: color-mix(in srgb, var(--lichen) 70%, transparent); font-size: var(--step--1); padding-top: 1.5rem; border-top: 1px solid var(--spruce-700); margin: 0; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 1rem; padding: 4rem var(--gutter); }
.notfound h1 { font-family: var(--font-display); font-size: var(--step-4); margin: 0; letter-spacing: -0.03em; }
.notfound p { color: var(--lichen); margin: 0 0 1rem; }
.notfound .actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
.notfound-logo { margin: 0 auto 1rem; }
