/* 603 Cyber — site styles
   One stylesheet, no framework. Tokens first, then layout, then components. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --ink: #15201b;
  --slate: #52615a;
  --paper: #f4f6f3;
  --white: #ffffff;
  --line: #d3dbd5;
  --spruce: #0e3b2e;
  --spruce-deep: #0a2c22;
  --spruce-soft: #e3ebe6;
  --signal: #19e35b;
  --on-dark: #e9f1ec;
  --on-dark-muted: #a9c0b4;

  /* Type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --step-3: clamp(2.5rem, 1.4rem + 4.4vw, 4.5rem);

  /* Space & layout */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 72rem;
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 6px;

  --focus: var(--spruce);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; font-stretch: 115%; line-height: 1.1; text-wrap: balance; }
h1 { font-size: var(--step-3); font-weight: 760; line-height: 1.02; letter-spacing: -0.015em; }
h2 { font-size: var(--step-2); font-weight: 720; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 680; font-stretch: 108%; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--spruce); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--signal); color: var(--spruce-deep);
  padding: 0.6rem 1rem; border-radius: var(--radius); font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Dark surfaces ------------------------------------------------------- */

.dark { background: var(--spruce); color: var(--on-dark); --focus: var(--signal); }
.dark a { color: var(--white); }

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

.btn {
  display: inline-flex; white-space: nowrap; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 650; font-stretch: 105%;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--spruce); color: var(--white); }
.btn-primary:hover { background: var(--spruce-deep); }
.dark .btn-primary { background: var(--signal); color: var(--spruce-deep); }
.dark .btn-primary:hover { background: #4bf080; }
.btn-ghost { border-color: currentColor; color: var(--spruce); }
.btn-ghost:hover { background: var(--spruce-soft); }
.dark .btn-ghost { color: var(--on-dark); border-color: rgba(233, 241, 236, 0.45); }
.dark .btn-ghost:hover { background: rgba(233, 241, 236, 0.08); border-color: var(--on-dark); }

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

.site-header { position: relative; z-index: 2; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--white); white-space: nowrap;
  font-size: 1.3rem; font-weight: 720; font-stretch: 125%; letter-spacing: 0.01em;
}
.dark .brand { color: var(--white); }
.brand img { width: 2.15rem; }

.site-nav ul { display: flex; align-items: center; gap: clamp(0.75rem, 2.5vw, 2rem); list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  color: var(--on-dark); text-decoration: none; font-weight: 520; font-size: 1rem;
  padding-block: 0.35rem; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--on-dark-muted); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--signal); }
.site-nav .btn { padding: 0.6rem 1rem; }

@media (max-width: 40rem) {
  .site-nav .nav-optional { display: none; }
  .site-header .brand { font-size: 1.1rem; gap: 0.55rem; }
  .site-header .brand img { width: 1.8rem; }
  .site-nav ul { gap: 1rem; }
  .site-nav .btn { padding: 0.55rem 0.8rem; font-size: 0.95rem; }
}

/* Hero (home) ---------------------------------------------------------- */

.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center; gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 9vw, 7.5rem);
}
.hero h1 { color: var(--white); max-width: 14ch; }
.hero-lede { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.55; color: var(--on-dark-muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

.hero-mark { justify-self: end; width: min(100%, 26rem); }
.hero-mark img { width: 100%; transform-origin: 49.7% 44.2%; }

@media (prefers-reduced-motion: no-preference) {
  .hero-mark img { animation: shield-turn 1.6s cubic-bezier(0.2, 0.7, 0.1, 1) 0.15s both; }
}
@keyframes shield-turn {
  from { transform: rotate(-120deg) scale(0.92); opacity: 0; }
  35%  { opacity: 1; }
  to   { transform: rotate(0deg) scale(1); opacity: 1; }
}

@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-self: start; width: 7rem; }
}

/* Page head (inner pages) --------------------------------------------- */

.page-head .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }
.page-head h1 { color: var(--white); }
.page-head p { margin-top: 1.25rem; font-size: var(--step-1); color: var(--on-dark-muted); max-width: 40rem; }

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

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p { margin-top: 1rem; color: var(--slate); font-size: var(--step-1); line-height: 1.55; }

/* Engagement steps ----------------------------------------------------- */

.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(1.25rem, 3vw, 2.5rem);
  list-style: none; margin: 0; padding: 0;
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 2px solid var(--spruce); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 1.5rem;
  font-size: 3.25rem; line-height: 1; font-weight: 300; font-stretch: 125%; color: var(--spruce);
}
.steps h3 { margin-bottom: 0.6rem; }
.steps p { color: var(--slate); }

.throughout {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1rem;
  margin-top: 2.5rem; padding: 1.1rem 1.35rem;
  background: var(--spruce-soft); border-left: 4px solid var(--spruce); border-radius: 0 var(--radius) var(--radius) 0;
}
.throughout strong { font-stretch: 108%; font-weight: 680; }
.throughout span { color: var(--slate); }

@media (max-width: 60rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; } }
@media (max-width: 34rem) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps li::before { font-size: 2.25rem; margin-bottom: 0.75rem; }
}

/* Deliverables (split layout) ----------------------------------------- */

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-intro p { margin-top: 1rem; color: var(--slate); max-width: 30rem; }
.split-intro .btn { margin-top: 2rem; }

.deliverables { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.deliverables li {
  display: grid; grid-template-columns: 2.25rem 1fr; gap: 0 1rem;
  padding-block: 1.4rem; border-bottom: 1px solid var(--line);
}
.deliverables svg { width: 1.6rem; height: 1.6rem; color: var(--spruce); margin-top: 0.15rem; }
.deliverables h3 { font-size: 1.125rem; }
.deliverables p { grid-column: 2; color: var(--slate); margin-top: 0.3rem; }

@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }

/* Services page -------------------------------------------------------- */

.services-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }

.service-index { position: sticky; top: 2rem; }
.service-index h2 { font-size: 1rem; font-stretch: 105%; font-weight: 650; color: var(--slate); margin-bottom: 0.75rem; }
.service-index ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.service-index a {
  display: block; padding: 0.45rem 0 0.45rem 1rem; margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--ink); text-decoration: none; font-size: 0.975rem; line-height: 1.35;
}
.service-index a:hover { border-left-color: var(--spruce); color: var(--spruce); }

.service { padding-block: 0 clamp(3rem, 6vw, 4.5rem); }
.service + .service { padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.service h2 { max-width: 22ch; }
.service .lede { margin-top: 1.1rem; font-size: var(--step-1); line-height: 1.55; max-width: 40rem; }
.service .body { margin-top: 1rem; color: var(--slate); max-width: 40rem; }

.includes { margin-top: 1.75rem; }
.includes h3 { font-size: 1rem; font-stretch: 105%; margin-bottom: 0.6rem; }
.includes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 2rem; max-width: 40rem; }
@media (max-width: 34rem) { .includes ul { grid-template-columns: 1fr; } }
.includes li { position: relative; padding-left: 1.6rem; }
.includes li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.65rem; height: 0.65rem; border: 2px solid var(--spruce); border-radius: 50%;
}

@media (max-width: 56rem) {
  .services-layout { grid-template-columns: 1fr; }
  .service-index { position: static; }
}

/* Contact band ---------------------------------------------------------- */

.contact .wrap { padding-block: clamp(3.5rem, 8vw, 6rem); }
.contact h2 { color: var(--white); }
.contact p { margin-top: 1rem; color: var(--on-dark-muted); max-width: 34rem; }
.contact-email {
  display: inline-block; margin-top: 1.75rem;
  font-size: clamp(1.35rem, 0.9rem + 2vw, 2rem); font-weight: 620; font-stretch: 110%;
  color: var(--white); text-decoration-color: var(--signal); text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}
.contact-email:hover { text-decoration-thickness: 4px; }

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

.site-footer { background: var(--spruce-deep); color: var(--on-dark-muted); font-size: var(--step--1); --focus: var(--signal); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  padding-block: 2rem;
  border-top: 1px solid rgba(233, 241, 236, 0.12);
}
.site-footer .brand { font-size: 1rem; }
.site-footer .brand img { width: 1.6rem; }
.footer-tagline { color: var(--on-dark-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--on-dark); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* 404 ------------------------------------------------------------------ */

.notfound { min-height: 60vh; display: grid; align-content: center; }
