/* Veridian Ops — veridianops.com
   Design tokens live in :root; everything below uses them.
   Layout is flex/grid throughout — cards and terminal lines can be added or
   removed without touching this file. */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/space-grotesk-v22-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-v22-latin-700.woff2') format('woff2');
}

:root {
  --bg: #0e1113;
  --bg-panel: #13181a;
  --bg-terminal: #0a0d0e;
  --bg-band: #10171a;
  --border: #1f2629;
  --border-card: #232b2e;
  --text: #e6ebe8;
  --text-soft: #b7c1bb;
  --muted: #8b968f;
  --faint: #5c6864;
  --accent: #4cd99a;
  --accent-soft: #7fe6b6;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 14px;
  z-index: 10;
}
.skip-link:focus { left: 16px; color: var(--bg); }

.kicker {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
}

.muted { color: var(--muted); font-size: 15px; }
.narrow { max-width: 640px; }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px var(--gutter);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { color: var(--accent-soft); }
.site-header nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
}
.site-header nav a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.site-header nav a:hover { color: var(--text); }
.site-header nav a.nav-contact { color: var(--accent); }
.site-header nav a.nav-contact:hover { color: var(--accent-soft); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(48px, 7vw, 88px);
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero h1 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 700;
}
.hero .sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 14px 22px;
  border-radius: 6px;
}
.btn:hover { background: var(--accent-soft); color: var(--bg); }

/* Terminal */
.terminal {
  display: flex;
  flex-direction: column;
  background: var(--bg-terminal);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2e3a3e;
}
.t-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin-left: 8px;
}
.terminal-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  min-height: 452px; /* height of the finished session — keeps the layout
                        stable while the animation types it out */
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
}
.t-line { color: var(--text); }
.t-prompt { color: var(--accent); }
.t-out { color: var(--muted); padding-left: 16px; }
.t-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0 12px;
  color: var(--muted);
  padding-left: 16px;
}
.t-accent { color: var(--accent); }
.t-gap { margin-bottom: 12px; }
.t-cursor {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .t-cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(44px, 6vw, 72px) var(--gutter);
  border-top: 1px solid var(--border);
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.section h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; }

/* Service cards — grid adapts to any number of cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 28px;
}
.card-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.card h3 { font-size: 20px; font-weight: 700; }
.card p:not(.card-label):not(.card-tags) {
  font-size: 15px;
  color: var(--muted);
}
.card-tags {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin-top: auto;
}

/* Approach */
.steps {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text);
}
.steps .sep { color: var(--faint); }

/* About */
.about {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
}
.about-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 660px;
}

/* Contact band */
.contact-band {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  padding: clamp(56px, 7vw, 80px) var(--gutter);
  border-top: 1px solid var(--border);
  background: var(--bg-band);
}
.contact-band h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; }
.contact-mail {
  font-family: var(--mono);
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 480px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .t-row { grid-template-columns: minmax(0, 1fr); }
  .t-row span:first-child { color: var(--text-soft); }
  .terminal-body { min-height: 0; }
}
