/* EOF Security — eof.red
   Palette and voice derived from the brand mark:
   charcoal #1e1f22 · cream #ebe7d9 · signal red #f55139 */

/* ---------- fonts (self-hosted) ---------- */

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/archivo-black-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plex-mono-500.woff2") format("woff2");
}

/* ---------- tokens ---------- */

:root {
  --bg: #17181a;
  --panel: #1e1f22;
  --panel-2: #232529;
  --line: #2d2f34;
  --cream: #ebe7d9;
  --dim: #a09e92;
  --red: #f55139;
  --red-press: #d9432e;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --measure: 46rem;
}

/* ---------- base ---------- */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cream); text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red); }

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

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

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.2rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }

.lede {
  color: var(--dim);
  font-size: 1.1875rem;
  max-width: var(--measure);
}

.mono { font-family: var(--mono); }

/* Section eyebrow: a code comment, because that is what it is —
   an annotation on the content that follows. */
.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
.brand b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  font-style: italic;
}
.brand b span { color: var(--red); }
.brand:hover b { color: var(--cream); }

.site-nav {
  display: flex;
  gap: 1.6rem;
  font-family: var(--mono);
  font-size: 0.9rem;
}
.site-nav a {
  color: var(--dim);
  text-decoration: none;
  padding: 0.2rem 0;
}
.site-nav a:hover { color: var(--cream); }
.site-nav a[aria-current="page"] {
  color: var(--cream);
  border-bottom: 2px solid var(--red);
}

/* ---------- hero ---------- */

.hero { padding: clamp(4.5rem, 11vh, 8rem) 0 clamp(3.5rem, 8vh, 6rem); }

.hero h1 { max-width: 56rem; margin: 0.9rem 0 1.4rem; }

/* the block cursor: the one moving thing on the page */
.cursor {
  display: inline-block;
  width: 0.52em;
  height: 0.88em;
  margin-left: 0.12em;
  background: var(--red);
  vertical-align: baseline;
  transform: translateY(0.08em);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--bg);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: lowercase;
  text-decoration: none;
  padding: 0.95rem 1.5rem;
  border: 0;
}
.btn:hover { background: var(--red-press); color: var(--bg); }

.cta-aside {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--dim);
}
.cta-aside a { color: var(--dim); }
.cta-aside a:hover { color: var(--red); }

/* ---------- sections ---------- */

.section { padding: clamp(3.5rem, 8vh, 6rem) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- service rows ---------- */

.svc {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem 2.5rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--line);
  margin: 0 -1rem;
}
.svc:last-of-type { border-bottom: 1px solid var(--line); }
.svc:hover { background: var(--panel); }

/* Engagement depth: the four services are ordered by how far
   into your organization the engagement reaches. */
.svc-depth {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--red);
  letter-spacing: 0.04em;
  padding-top: 0.35rem;
}
.svc-depth small {
  display: block;
  color: var(--dim);
  font-weight: 400;
  margin-top: 0.4rem;
  letter-spacing: 0;
}

.svc-body h3 { margin-bottom: 0.6rem; }
.svc-body p { color: var(--dim); max-width: var(--measure); }
.svc-body p strong { color: var(--cream); font-weight: 600; }

.svc-meta {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--dim);
  margin-top: 0.9rem;
}
.svc-meta a {
  color: var(--red);
  text-decoration: none;
}
.svc-meta a:hover { text-decoration: underline; }

.svc-list { margin-top: 2.5rem; }

.h1-sm { font-size: clamp(2rem, 6.5vw, 3.4rem); }

.term-after { margin-top: 1.25rem; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-grid .portrait img { border: 1px solid var(--line); }
.portrait figcaption {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--dim);
  margin-top: 0.7rem;
}
.about-grid h2 { margin-bottom: 0.4rem; }
.about-grid .role {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--red);
  margin-bottom: 1.4rem;
}
.about-grid p { color: var(--dim); margin-bottom: 1.1rem; max-width: var(--measure); }
.about-grid p strong { color: var(--cream); font-weight: 600; }

/* ---------- terminal block ---------- */

.term {
  background: var(--panel);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 44rem;
  margin-top: 2.5rem;
}
.term-title {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  color: var(--dim);
}
.term pre {
  padding: 1.1rem 1.2rem 1.3rem;
  overflow-x: auto;
}
.term .p { color: var(--dim); }      /* prompt / syntax */
.term .k { color: var(--red); }      /* keywords */
.term .v { color: var(--cream); }    /* values */

/* ---------- cta band ---------- */

.band {
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.band .wrap {
  padding-top: clamp(3.5rem, 8vh, 5.5rem);
  padding-bottom: clamp(3.5rem, 8vh, 5.5rem);
}
.band h2 { max-width: 40rem; margin-bottom: 1.9rem; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 2rem;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--dim);
}
.foot-grid a { color: var(--dim); }
.foot-grid a:hover { color: var(--red); }
.foot-note { font-family: var(--mono); font-size: 0.8rem; }

/* The file ends the way every file should. */
.eof-mark {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--red);
  text-align: center;
  margin-top: 3.2rem;
}

/* ---------- error page ---------- */

.errpage { padding: clamp(5rem, 18vh, 11rem) 0; }
.errpage .eyebrow::after { display: none; }
.errpage h1 { margin: 0.9rem 0 1.2rem; }
.errpage .err-copy { color: var(--dim); max-width: var(--measure); }
.errpage .cta-row { margin-top: 2rem; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .svc { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.6rem 1rem; }
  .svc-depth { padding-top: 0; }
  .svc-depth small { display: inline; margin-left: 0.75rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .portrait { max-width: 26rem; }
  .site-nav { gap: 1.1rem; font-size: 0.85rem; }
}
