/* NRM Cybersecurity Solutions — landing page
   Brand tokens documented in brand.md.
   No external assets; system font stack only. */

:root {
  --bg: #0c0d0e;
  --fg: #ededec;
  --accent: #b5e853;
  --muted: #7d8492;
  --line: #1f2126;

  --max: 880px;
  --pad: clamp(20px, 4vw, 56px);

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-width: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

body {
  /* Guard against horizontal overflow from full-width sections + the fixed dot-rail. */
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.mono { font-family: var(--font-mono); font-size: 0.82em; letter-spacing: 0.02em; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* Off-screen but exposed to assistive tech (keeps accessible names; never display:none). */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ----- Fixed UI ----- */
.brand-mark {
  position: fixed;
  top: var(--pad);
  left: var(--pad);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: #fff;
}
.brand-mark__dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}
.brand-mark__sub { color: var(--muted); margin-left: 4px; font-weight: 400; }

.dots {
  position: fixed;
  top: 50%;
  right: var(--pad);
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0; /* 24px hit boxes sit adjacent; the 8px dots land ~16px apart, ~matching the old rail */
}
/* 24×24 transparent hit target (WCAG 2.5.8); the visible 8px dot is the ::before.
   Circular button so the :focus-visible ring hugs the dot rather than boxing it. */
.dots button {
  width: 24px; height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dots button::before {
  content: "";
  width: 8px; height: 8px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.dots button:hover::before { border-color: var(--fg); }
.dots button.is-active::before {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.25);
}
/* Below ~980px the centered 880px column runs to the gutter and the rail overlaps
   body text; the 8px dots are also too small to tap. Hide it — scroll is the interaction. */
@media (max-width: 980px) { .dots { display: none; } }

/* ----- Section frame ----- */
#scroller { display: block; }

.section {
  min-height: 100vh;
  min-height: 100svh; /* mobile URL-bar safe; full-viewport sections, one per scroll-spy slot */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--pad) * 2) var(--pad);
  border-top: 1px solid var(--line);
  position: relative;
}
.section:first-child { border-top: 0; }

.section__inner {
  width: 100%;
  max-width: var(--max);
}

/* ----- Hero ----- */
.section--hero { padding-top: calc(var(--pad) * 3.5); }
.eyebrow {
  color: var(--muted);
  margin-bottom: clamp(28px, 6vh, 56px);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
}
.hero__title {
  font-size: clamp(44px, 9vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 clamp(24px, 4vh, 40px);
}
.hero__sub {
  font-size: clamp(17px, 1.6vw, 21px);
  max-width: 560px;
  color: #c8c8c4;
  margin: 0 0 clamp(48px, 10vh, 96px);
}
.scroll-hint { color: var(--muted); display: inline-block; }
.scroll-hint .mono { display: inline-block; animation: drift 2.2s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(6px); } }

/* ----- Headings, copy ----- */
.h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 clamp(28px, 5vh, 48px);
}
.h2 .mono { font-size: 0.4em; vertical-align: middle; margin-right: 14px; }
.lede {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  margin: 0 0 24px;
}
.body { font-size: 17px; color: #c8c8c4; margin: 0 0 32px; max-width: 60ch; }
.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.facts li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; font-size: 15px; }
.facts li .mono { align-self: center; }

/* ----- Services grid ----- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line);
  padding: clamp(20px, 2.5vw, 28px);
  background: linear-gradient(180deg, rgba(255,255,255,0.012), transparent);
  transition: border-color 160ms ease, transform 160ms ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card__title { font-size: 18px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.card__body { font-size: 15px; color: #c8c8c4; margin: 0 0 16px; }
.card__tag { display: block; }

/* ----- Principles ----- */
.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.principles li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: start;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(17px, 1.6vw, 20px);
}
.principles li:last-child { border-bottom: 0; }
.principles strong { font-weight: 700; }

/* ----- Contact ----- */
.contact { text-align: left; }
.contact__lede {
  font-size: clamp(18px, 1.8vw, 22px);
  color: #c8c8c4;
  margin: 0 0 clamp(24px, 4vh, 40px);
  max-width: 50ch;
}
.contact__email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-bottom: 6px;
  /* Primary CTA — the one action on the page. Accent underline by default draws the
     eye; the global a:hover shifts the text to accent on hover/focus. */
  border-bottom: 2px solid var(--accent);
  transition: color 160ms ease;
  margin-bottom: clamp(32px, 6vh, 56px);
  word-break: break-all;
}
.contact__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px 32px;
  margin: 0 0 clamp(40px, 8vh, 80px);
  padding: 0;
}
.contact__meta > div { display: grid; gap: 4px; }
.contact__meta dt { margin: 0; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }
.contact__meta dd { margin: 0; font-size: 16px; }
.contact__totop {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  appearance: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 160ms ease;
}
.contact__totop:hover, .contact__totop:focus-visible { color: var(--accent); }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint .mono { animation: none; }
  .card { transition: none; }
}
