/* Foundation: fonts, tokens and document defaults. */
@font-face {
  font-family: 'Ubuntu Sans Mono';
  src: url('assets/fonts/ubuntu-sans-mono-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080d14;
  --bg-soft: var(--panel);
  --panel: #101925;
  --panel-2: #142131;
  --line: rgba(121, 183, 213, 0.15);
  --line-strong: rgba(121, 183, 213, 0.32);
  --text: #eef2f5;
  --soft-white: #e5e7eb;
  --gold: #d6b875;
  --section-title: var(--gold);
  --grey-text: #d5dde4;
  --grey-meta: #b4bfc9; /* date rows: a step darker than --grey-text */
  --muted: var(--grey-text);
  --accent: #bac8d3;
  --accent-soft: var(--grey-text);
  --ice: #79b7d5;
  --status: #72d69b;
  --surface-scanlines: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    rgba(229, 231, 235, 0.03) 3px 4px
  );
  --surface-grid-line: color-mix(in srgb, var(--line) 35%, transparent);
  --surface-grid:
    linear-gradient(var(--surface-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-grid-line) 1px, transparent 1px);
  --lift-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
  --body-copy: var(--grey-text);
  --detail-copy: var(--grey-text);
  --terminal-bg: #05080c;
  --terminal-header: var(--panel);
  --terminal-input: #40e0e8;
  --terminal-amber: var(--gold);
  --terminal-red: #ff6e66;
  --cursor-blink: 1.2s; /* full on/off cycle for every terminal cursor */
  --anchor-offset: 0px;
  --mono: 'Cascadia Code', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --terminal-mono: 'Ubuntu Sans Mono', var(--mono);
  --sans: 'Helvetica Neue', Arial, sans-serif;
  --max: 1180px;
  --space-row: 0.5rem;
  --space-group: 1rem;
  --space-section: 2rem;
  --section-inset: 1.15rem;
  --timeline-gutter: 1.4rem;
  --timeline-line-width: 1px;
  --rail-indent: 2.6rem;
  --nav-button-width: 7.6rem;
  /* Center of a 1.35rem x 1.25 item title line: where every row diamond sits. */
  --title-line-center: calc(1.35rem * 1.25 / 2);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
section[id],
h2[id],
.earlier-content {
  scroll-margin-top: var(--anchor-offset);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  background: var(--surface-scanlines);
}
a {
  color: inherit;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bootstrap-icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: currentColor;
  stroke: none;
}
.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-120%);
}
.skip-link:focus {
  transform: translateY(0);
}
.skip-link:hover {
  background: var(--ice);
}

/* Header, navigation and native resume disclosure. */
.site-header {
  position: relative;
  top: 0;
  z-index: 20;
  width: 100%;
  background: rgba(8, 13, 20, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition:
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.site-header,
.site-footer,
.header-inner,
.signal-strip,
.footer-inner {
  max-width: var(--max);
  margin-inline: auto;
}
.header-inner {
  min-height: 70px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  row-gap: 0.35rem;
  padding: 0.8rem var(--section-inset);
}
.site-header.scrolled {
  background: rgba(8, 13, 20, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 700 0.8rem var(--mono);
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
}
.brand-text {
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-text span {
  color: var(--grey-text);
}
.brand:is(:hover, :focus-visible) {
  color: var(--ice);
}
.brand:is(:hover, :focus-visible) .brand-text span {
  color: inherit;
}
.brand:is(:hover, :focus-visible) .brand-mark {
  color: var(--ice);
  border-color: var(--ice);
}
.site-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  order: 3;
  flex: 1 0 100%;
  gap: 0.4rem;
  padding-top: 0.4rem;
}
.site-nav a,
.footer-links a,
.header-resume,
.resume-options summary {
  font: 600 0.7rem var(--mono);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-nav a,
.header-resume,
.resume-options summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--accent-soft);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.site-nav a,
.footer-links a {
  --nav-cut: 8px;
  --nav-edge: var(--soft-white);
  --nav-fill: var(--bg-soft);
  position: relative;
  isolation: isolate;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
}
.site-nav a::before,
.site-nav a::after,
.footer-links a::before,
.footer-links a::after,
.resume-menu::before,
.resume-menu::after {
  content: '';
  position: absolute;
  pointer-events: none;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--nav-cut)),
    calc(100% - var(--nav-cut)) 100%,
    0 100%
  );
  transition: background 0.2s ease;
}
.site-nav a::before,
.footer-links a::before,
.resume-menu::before {
  inset: -1px;
  z-index: -2;
  background: var(--nav-edge);
}
.site-nav a::after,
.footer-links a::after,
.resume-menu::after {
  --nav-cut: 7.414px;
  inset: 0;
  z-index: -1;
  background-color: var(--nav-fill);
}
.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  --nav-fill: var(--panel-2);
  color: var(--text);
}
.resume-actions {
  position: relative;
  display: flex;
  flex: none;
  margin-left: auto;
}
.header-resume {
  flex: none;
  width: max-content;
  margin: 0;
  gap: 0.45rem;
  border-color: var(--gold);
  color: var(--gold);
  border-radius: 0;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.header-resume:hover,
.header-resume:focus-visible {
  background-color: color-mix(in srgb, var(--gold) 16%, var(--panel));
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.header-resume:active {
  background-color: color-mix(in srgb, var(--gold) 24%, var(--panel));
  box-shadow: inset 0 2px 4px #0006;
}
.header-resume svg {
  width: 15px;
  height: 15px;
}
.resume-options summary {
  position: relative;
  isolation: isolate;
  width: 44px;
  height: 100%;
  padding: 0;
  border-left: 0;
  border-radius: 0;
  border-color: transparent;
  background: transparent;
  color: var(--bg);
  cursor: pointer;
  list-style: none;
}
.resume-options summary::-webkit-details-marker {
  display: none;
}
.resume-options summary::before {
  content: '';
  position: absolute;
  inset: -1px -1px -1px 0;
  z-index: -1;
  pointer-events: none;
  background: var(--gold);
  background-image: linear-gradient(135deg, rgba(229, 231, 235, 0.08), rgba(8, 13, 20, 0.18));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.resume-options summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.resume-options[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}
.resume-options summary:is(:hover, :focus-visible),
.resume-options[open] summary {
  filter: brightness(1.1);
}
.resume-menu {
  --nav-cut: 8px;
  --nav-edge: color-mix(in srgb, var(--gold) 55%, var(--panel));
  --nav-fill: var(--panel);
  position: absolute;
  isolation: isolate;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: 180px;
  max-width: calc(100vw - 32px);
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 8px 10px #0006);
}
.resume-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 0;
  color: var(--gold);
  font: 400 0.8rem var(--mono);
  text-decoration: none;
}
.resume-menu a + a {
  border-top: 1px solid var(--line);
}
.resume-menu a:is(:hover, :focus-visible) {
  background: var(--panel-2);
  box-shadow: inset 2px 0 var(--gold);
  color: var(--gold);
  outline-offset: -2px;
}
/* Hero identity, portrait and social links. */
.hero {
  position: relative;
  min-height: 0;
  display: grid;
  align-items: center;
  gap: var(--space-section);
  padding: var(--space-section) var(--section-inset);
  max-width: var(--max);
  margin: auto;
}
.hero-copy,
.hero-identity {
  display: flex;
  flex-direction: column;
  gap: var(--space-row);
  min-width: 0;
}
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  left: -360px;
  bottom: -100px;
  border-radius: 50%;
  background: rgba(186, 200, 211, 0.055);
  filter: blur(80px);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--surface-grid);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-weight: 400;
}
h3 {
  font-weight: 600;
}
h1 {
  margin: 0 0 1.4rem;
  color: var(--text);
  font: 400 clamp(2rem, 4vw, 3.25rem) / 1.14 var(--sans);
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}
#hero-title {
  margin-bottom: 0;
  color: var(--ice);
}
.hero-terminal {
  margin: 0;
  width: 100%;
}
.hero-role {
  margin: 0;
  font: 500 clamp(1.05rem, 2vw, 1.375rem) / 1.4 var(--sans);
  text-wrap: balance;
}
/* Shared softened white treatment; colored accents and terminal whites keep their own tokens. */
.hero-role,
.brand,
.hero-contact a,
.veteran-badge-copy,
.veteran-badge-copy .text-highlight:not(.text-green),
.acronym-tooltip,
.section .company,
.section .service-statement,
.section .text-highlight:not(.text-green) {
  color: var(--soft-white);
  text-shadow: none;
  -webkit-text-stroke: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.hero-role .text-highlight {
  color: inherit;
  font-weight: inherit;
}
.hero-degree {
  margin: 0;
  color: var(--status);
  font: 400 1rem/1.5 var(--sans);
}
.hero-degree-detail {
  display: block;
  font-size: 0.875rem;
}
.veteran-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  width: calc(100% - 32px);
  max-width: 100%;
  text-align: center;
  gap: 0.65rem;
  margin: -34px auto 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--lift-shadow);
  color: var(--text);
  font: 600 0.72rem var(--mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.veteran-badge .badge-air-force {
  flex: none;
  width: 40px;
  height: 40px;
  display: block;
}
.veteran-badge-copy {
  min-width: 0;
}
.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  scroll-margin-top: var(--anchor-offset);
}
.hero-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 0.85rem var(--sans);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.25em;
}
.hero-contact a:is(:hover, :focus-visible),
.social-links a:is(:hover, :focus-visible) {
  color: var(--ice);
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-group);
  margin: 0;
}
.social-links a {
  display: inline-flex;
  min-height: 44px;
  gap: 0.45rem;
  align-items: flex-start;
  padding-bottom: 1.3rem;
  color: var(--ice);
  font: 600 0.72rem/1.5 var(--mono);
  text-decoration: none;
}
.social-links a:is(:hover, :focus-visible) {
  filter: brightness(1.15);
}
.social-links svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
  stroke: none;
}
.social-links svg[data-brand='youtube'] {
  width: 22px;
  height: 18px;
}

.portrait-panel {
  width: min(100%, 420px);
  justify-self: center;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 1;
  padding: 10px;
  border: 2px solid var(--accent);
  box-shadow: var(--lift-shadow);
  background: linear-gradient(
    135deg,
    rgba(186, 200, 211, 0.14),
    transparent 48%,
    rgba(121, 183, 213, 0.12)
  );
}
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 13%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(121, 183, 213, 0.12);
  filter: blur(50px);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 25%;
}
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  background: linear-gradient(to top, rgba(8, 13, 20, 0.72), transparent 35%);
  pointer-events: none;
}
/* Section 06 channel action. */
.channel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 0.7rem;
  min-height: 56px;
  margin-bottom: var(--space-row);
  color: var(--ice);
  font: 400 clamp(1rem, 2vw, 1.5rem) / 1.3 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}
.channel-link svg[data-brand] {
  flex: none;
  width: 40px;
  height: 28px;
  color: var(--terminal-red);
  fill: currentColor;
  stroke: none;
}
.channel-link svg[data-brand] path {
  fill: var(--bg);
}
.channel-link:is(:hover, :focus-visible) {
  color: color-mix(in srgb, var(--ice) 75%, var(--soft-white));
}
.channel-link:focus-visible,
.degree-logo-link:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
  border-radius: 4px;
}
/* Career metrics and shared section structure. */
.signal-strip {
  background: var(--bg-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.signal-strip div {
  padding: 1.35rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.signal-strip strong,
.signal-strip span {
  display: block;
  text-align: center;
}
.text-green,
.text-highlight.text-green,
.signal-strip .text-green {
  color: var(--status);
}
.signal-strip strong {
  color: var(--grey-text);
  font: 700 1.4rem var(--mono);
}
.signal-strip span {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section {
  --content-inset: var(--section-inset);
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-section) var(--section-inset);
}
.section h2.section-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0;
  margin-bottom: var(--space-group);
  margin-left: calc(0px - var(--content-inset));
  margin-right: calc(0px - var(--section-inset));
  color: var(--section-title);
  font: 400 clamp(1.1rem, 3.5vw, 2.75rem) / 1.3 var(--mono);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.section-label::before,
.section-label::after {
  content: '';
  height: calc(2px + 1pt);
  background: var(--line);
  pointer-events: none;
}
.section-label::before {
  flex: 0 0 var(--section-inset);
}
.section-label::after {
  flex: 1;
  min-width: 0.5rem;
}
/* Section 01: two items in the Experience pattern (title, optional date, bullets or body copy). */
.section-track.intro-layout {
  display: grid;
  gap: var(--space-section);
}
.intro-item {
  margin: 0;
}
.intro-item p:not(.date) {
  margin: 0;
  color: var(--detail-copy);
  font-size: 1rem;
}
/* Experience timeline and section rails. */
.timeline {
  position: relative;
  padding-left: var(--timeline-gutter);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--title-line-center);
  bottom: 0;
  width: var(--timeline-line-width);
  background: var(--accent);
}
.role {
  position: relative;
  padding: 0 0 var(--space-section) 1.2rem;
}
.role-marker,
.timeline-end-marker,
.section-node,
.section-rail-end,
.section-row-node {
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold);
  background: var(--bg);
  box-shadow: 0 0 12px rgba(186, 200, 211, 0.38);
}
.role-marker,
.timeline-end-marker {
  position: absolute;
  left: calc(0px - var(--timeline-gutter) + var(--timeline-line-width) / 2);
  top: calc(var(--title-line-center) - 5px);
  transform: translateX(-50%) rotate(45deg);
}
.timeline-end-marker {
  left: calc(var(--timeline-line-width) / 2);
  top: auto;
  bottom: 0;
  transform: translate(-50%, 50%) rotate(45deg);
  pointer-events: none;
}
.section-track {
  position: relative;
  display: flow-root;
  --rail-start: calc(0.2rem + 5px);
}
.section-track::before {
  content: '';
  position: absolute;
  left: calc(0px - var(--rail-indent));
  top: var(--rail-start);
  bottom: 0;
  width: var(--timeline-line-width);
  background: var(--accent);
  pointer-events: none;
}
.intro-section .section-track,
#expertise .section-track,
#education .section-track,
#credentials .section-track,
[aria-labelledby='creator-title'] .section-track {
  --rail-start: var(--title-line-center);
}
[data-section-rail] {
  --content-inset: calc(var(--section-inset) + var(--rail-indent));
  padding-left: var(--content-inset);
}
.section-node,
.section-rail-end,
.section-row-node {
  position: absolute;
  left: calc(0px - var(--rail-indent) + var(--timeline-line-width) / 2);
  top: var(--rail-start);
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}
.section-rail-end {
  top: auto;
  bottom: 0;
  transform: translate(-50%, 50%) rotate(45deg);
}
.section-row-node {
  top: 0.5lh;
}
.role header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: var(--space-row);
}
.date {
  display: block;
  margin: 0 0 var(--space-row);
  color: var(--grey-meta);
  font: 400 0.75rem var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
/* Item titles share one style; row diamonds sit on their first line. */
.role h3,
.intro-item h3,
.expertise-list h3,
.education-list h3,
.certification-list h3,
.creator-heading {
  position: relative;
  color: var(--ice);
  margin: 0 0 var(--space-row);
  font-size: 1.35rem;
  line-height: 1.25;
}
.company {
  margin-bottom: var(--space-row);
  font-size: 0.95rem;
  font-weight: 700;
}
.company span {
  color: var(--muted);
  font-weight: 400;
}
.role .date,
.education-list .date,
.certification-list .date {
  margin-bottom: 0;
}
.role ul,
.intro-item ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--detail-copy);
}
.role li,
.intro-item li {
  margin-bottom: var(--space-row);
  padding-left: 0.2rem;
}
.role li::marker,
.intro-item li::marker {
  color: var(--accent);
}
.intro-item li:last-child {
  margin-bottom: 0;
}
.earlier-content .role:last-child {
  padding-bottom: 0;
}

/* Education, certifications and expertise. */
.expertise-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Items in sections 03 to 05 are spaced like roles: 32px apart, no rules, none after the last. */
.education-list article,
.expertise-list li,
.certification-list li {
  padding: 0 0 var(--space-section);
}
.education-list article:last-child,
.expertise-list li:last-child,
.certification-list li:last-child {
  padding-bottom: 0;
}
.education-list article {
  position: relative;
}
.degree-detail {
  margin: 0 0 var(--space-row);
  color: var(--muted);
  font-size: 0.9rem;
}
.education-list .degree-with-logo,
.certification-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem;
  align-items: center;
  gap: 0.75rem;
}
.degree-logo,
.certification-logo {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}
.certification-logo {
  padding: 4px;
  border: 3px solid var(--ice);
  border-radius: 8px;
  background: #fff;
}
.certification-logo--microsoft {
  padding: 0;
}
.degree-logo-link,
.certification-logo-link {
  display: block;
  width: fit-content;
}
.degree-logo-link:is(:hover, :focus-visible),
.certification-logo-link:is(:hover, :focus-visible) {
  filter: brightness(1.15);
}
.education-list p a,
.certification-list .company a {
  text-underline-offset: 0.2em;
  text-decoration-color: var(--line-strong);
}
.education-list p a:is(:hover, :focus-visible),
.certification-list .company a:is(:hover, :focus-visible) {
  color: var(--ice);
  text-decoration-color: currentColor;
}
.credentials-section {
  min-width: 0;
}
/* Section 05: one column of certification entries (name, issuer, date). */
.certification-list {
  display: grid;
  gap: 0 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.text-highlight {
  color: var(--text);
  font-weight: 700;
}
.section h3,
.section .text-highlight,
.section strong,
.section b {
  font-weight: 400;
}
.expertise-list p {
  margin: 0;
  color: var(--detail-copy);
  font-size: 1rem;
}
/* Terminal: fixed summary, native input, mirrors and decorative chrome. */
.terminal-window {
  position: relative;
  z-index: 11;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--terminal-bg);
  font-family: var(--terminal-mono);
  box-shadow: var(--lift-shadow);
}
.terminal-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--terminal-header);
  color: var(--ice);
  font: 1rem var(--terminal-mono);
}
.terminal-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--terminal-amber);
  white-space: nowrap;
}
.terminal-caption {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  margin-left: auto;
  white-space: nowrap;
}
.terminal-caption:enabled {
  cursor: pointer;
}
.terminal-caption:enabled::after {
  content: '';
  position: absolute;
  inset: -10px 0;
  min-height: 44px;
}
.terminal-caption:enabled:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.terminal-host {
  color: var(--terminal-red);
  font-weight: 700;
}
.terminal-punctuation {
  color: var(--text);
}
.terminal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.terminal-dot:first-child {
  background: var(--terminal-red);
}
.terminal-dot:nth-child(2) {
  background: var(--terminal-amber);
}
.terminal-dot:nth-child(3) {
  background: var(--accent);
  margin-right: 0.45rem;
}
.terminal-body {
  counter-reset: vim-line;
  padding: 1.25rem 1rem;
  background: var(--terminal-bg);
  color: var(--body-copy);
  font: 400 1rem/1.65 var(--terminal-mono);
}
.vim-line {
  counter-increment: vim-line;
  display: grid;
  align-items: start;
  grid-template-columns: 2ch minmax(0, 1fr);
  column-gap: 1rem;
  min-height: 1.65em;
}
.vim-line-number {
  color: var(--ice);
  text-align: right;
  user-select: none;
}
.vim-line-number::before {
  content: counter(vim-line);
}
.terminal-input-gutter {
  position: relative;
  align-self: stretch;
  pointer-events: none;
}
.terminal-line-number {
  position: absolute;
  right: 0;
}
.vim-text {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.vim-text .text-highlight {
  font-weight: inherit;
}
.terminal-intro-character {
  transition: opacity var(--terminal-intro-fade) linear;
}
.terminal-intro-hidden {
  opacity: 0;
}
.hero-summary {
  position: relative;
}
.vim-cursor {
  width: 1ch;
  height: 1.15em;
  background: var(--terminal-input);
}
/* One cursor: during the reveal terminal.js moves it over the summary from the intro's
   geometry (negative offsets from the input wrap); a focused input takes it back. */
.terminal-intro-active .terminal-input-wrap:not(:focus-within) > .vim-cursor {
  display: block;
  top: var(--caret-y, 0.15em);
  left: var(--caret-x, 0);
}
.terminal-intro-active .vim-line:not(:focus-within) .terminal-input-gutter::before {
  visibility: hidden;
}
.hero-summary .acronym[data-typing] {
  color: var(--text);
  text-decoration: none;
  pointer-events: none;
}
.terminal-input-wrap {
  position: relative;
  display: grid;
}
.terminal-input-wrap::after,
.terminal-input,
.terminal-caret-mirror {
  white-space: break-spaces;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.terminal-input-wrap::after,
.terminal-input {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  min-height: 1.65em;
}
.terminal-input-wrap::after {
  content: attr(data-value) ' ';
  visibility: hidden;
}
.terminal-input {
  width: 100%;
  height: 100%;
  resize: none;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
  color: var(--terminal-input);
  caret-color: var(--terminal-input);
  caret-shape: block;
}
.terminal-input:focus {
  outline: none;
}
.terminal-input-wrap > .vim-cursor {
  position: absolute;
  top: 0.15em;
  left: 0;
  pointer-events: none;
}
.terminal-input-wrap:focus-within > .vim-cursor,
.terminal-input-wrap.has-input > .vim-cursor {
  display: none;
}
.terminal-caret-mirror {
  position: absolute;
  inset: 0 0 auto;
  visibility: hidden;
  pointer-events: none;
}
.terminal-input-wrap.has-block-caret > .terminal-input {
  caret-color: transparent;
}
.terminal-input-wrap.has-block-caret:focus-within > .vim-cursor {
  display: block;
  top: var(--caret-y, 0.15em);
  left: var(--caret-x, 0);
}
.vim-cursor {
  display: inline-block;
  vertical-align: -0.15em;
  animation: vim-blink var(--cursor-blink) steps(1, end) infinite;
}
.terminal-input-wrap.is-moving > .vim-cursor {
  animation: none;
  opacity: 1;
}
@keyframes vim-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
.vim-ruler {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  margin-top: 0.5rem;
  color: var(--ice);
  font: inherit;
  user-select: none;
}
.vim-position::before {
  content: counter(vim-line) ',1';
}
.vim-position[data-position]::before {
  content: attr(data-position);
}
.vim-ruler::before {
  content: '-- INSERT --';
  margin-right: auto;
}

.creator-copy p {
  margin: 0;
  color: var(--muted);
}

/* Footer and responsive layout. */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font: 400 0.75rem/1.6 var(--mono);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 70px;
  padding: 0.8rem 0.75rem;
}
.footer-brand {
  flex: none;
  min-width: 44px;
  font-family: var(--sans);
}
.footer-brand .brand-text {
  display: none;
}
.footer-links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.footer-links a {
  justify-content: center;
  min-width: 44px;
  padding: 0.5rem 0.375rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--accent-soft);
}
.site-footer a:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
}
.footer-copyright {
  display: none;
}
/* Visitor motion switch (motion.js): plain rectangular footer slider. */
.motion-switch {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin: 0 0 0 auto;
  padding: 0 0.375rem;
  border: 0;
  background: none;
  color: var(--accent-soft);
  font: 600 0.7rem var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.motion-switch-label::before {
  content: 'Motion';
}
/* Plain four-sided 40x22 track (no corner cut), 1px edge, square knob. */
.motion-switch-track {
  position: relative;
  flex: none;
  width: 40px;
  height: 22px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.motion-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.motion-switch[aria-checked='true'] .motion-switch-track {
  border-color: var(--ice);
  background: color-mix(in srgb, var(--ice) 18%, var(--panel));
}
.motion-switch[aria-checked='true'] .motion-switch-knob {
  transform: translateX(18px);
  background: var(--ice);
}
.motion-switch:is(:hover, :focus-visible) {
  color: var(--text);
}
.motion-switch:is(:hover, :focus-visible) .motion-switch-track {
  background: var(--panel-2);
}
.motion-switch:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
}
.motion-switch + .footer-links {
  margin-left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 479px), (min-width: 860px) and (max-width: 1099px) {
  .brand-text {
    display: none;
  }
}
@media (min-width: 640px) {
  :root {
    --section-inset: 2rem;
  }
  .site-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .signal-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .signal-strip div {
    border-bottom: 0;
  }
}
@media (max-width: 859px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) clamp(112px, 34vw, 200px);
    align-items: start;
    gap: var(--space-row) var(--space-group);
  }
  .hero-copy {
    display: contents;
  }
  .hero-copy > * {
    grid-column: 1 / -1;
  }
  .hero-identity {
    grid-column: 1;
    grid-row: 1;
  }
  .portrait-panel {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    justify-self: end;
  }
  .portrait-frame {
    padding: 5px;
  }
  .portrait-frame::after {
    inset: 5px;
  }
  .veteran-badge {
    flex-direction: column;
    gap: 4px;
    width: calc(100% - 8px);
    margin-top: -12px;
    padding: 8px 4px;
  }
  .veteran-badge .badge-air-force {
    width: 28px;
    height: 28px;
  }
}
@media (min-width: 860px) {
  :root {
    --anchor-offset: 90px;
  }
  .site-header {
    position: sticky;
  }
  .header-inner {
    flex-wrap: nowrap;
  }
  .resume-actions {
    margin-right: var(--space-group);
  }
  .site-nav {
    order: 0;
    flex: 0 1 auto;
    margin-left: 0;
    grid-template-columns: repeat(4, var(--nav-button-width));
    padding-top: 0;
  }
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.7fr);
  }
  .portrait-panel {
    justify-self: end;
  }
  .intro-layout {
    align-items: start;
  }
  .footer-inner {
    gap: var(--space-group);
    padding-inline: var(--section-inset);
  }
  .footer-copyright {
    display: inline;
  }
  .footer-links {
    gap: 0.4rem;
  }
  .footer-links a {
    padding-inline: 0.7rem;
  }
}
@media (min-width: 1100px) {
  :root {
    --rail-indent: 3.4rem;
  }
  .role {
    padding-left: 2rem;
  }
  .footer-brand .brand-text {
    display: inline;
  }
}
/* Inline explanations and viewport-positioned tooltips. */
.acronym {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: inherit;
  vertical-align: baseline;
  text-decoration: underline dotted var(--ice);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: help;
}
.acronym:is(:hover, :focus-visible) {
  color: var(--ice);
}
.acronym:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}
.acronym-tooltip,
.download-tooltip {
  position: fixed;
  z-index: 100;
  width: max-content;
  max-width: calc(100vw - 24px);
  border-radius: 4px;
  background: var(--panel);
  overflow-wrap: anywhere;
  overflow: auto;
}
.acronym-tooltip {
  padding: 12px 16px;
  border: 1px solid var(--ice);
  box-shadow: 0 6px 24px #0006;
  font: 400 0.875rem/1.6 var(--sans);
}
.acronym-tooltip[hidden],
.download-tooltip[hidden] {
  display: none;
}
.download-tooltip {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ice);
  box-shadow: 0 4px 12px #0004;
  font: 400 0.75rem/1.4 var(--sans);
}
/* Print: light paper palette, hidden chrome and decoration, unbroken roles. */
@media print {
  @page {
    margin: 14mm;
  }
  :root {
    color-scheme: light;
    --bg: #fff;
    --panel: #fff;
    --panel-2: #fff;
    --text: #111;
    --soft-white: var(--text);
    --grey-text: #333;
    --grey-meta: #555;
    --accent: #555;
    --ice: #1d5b7c;
    --gold: #6b5420;
    --status: #1f6b45;
    --line: #bbb;
    --line-strong: #999;
    --terminal-bg: #fff;
    --terminal-input: #111;
    --terminal-red: #111;
    --lift-shadow: none;
    --surface-scanlines: none;
    --surface-grid: none;
  }
  body {
    background: #fff;
    color: #111;
  }
  body::before,
  .skip-link,
  .site-nav,
  .resume-actions,
  .hero-grid,
  .hero::after,
  .portrait-frame::before,
  .portrait-frame::after,
  .terminal-title,
  .vim-line-number,
  .terminal-input-wrap,
  .vim-ruler,
  .footer-links,
  .motion-switch,
  .acronym-tooltip,
  .download-tooltip {
    display: none !important;
  }
  .site-header {
    position: static;
    background: none;
    backdrop-filter: none;
  }
  .site-header,
  .site-footer {
    box-shadow: none;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 160px;
    align-items: start;
  }
  .hero-copy {
    display: flex;
  }
  .portrait-panel {
    width: 160px;
    justify-self: end;
  }
  .portrait-frame {
    padding: 4px;
  }
  .veteran-badge {
    width: calc(100% - 8px);
    margin-top: -12px;
    padding: 6px 4px;
    gap: 4px;
    flex-direction: column;
  }
  .veteran-badge .badge-air-force {
    width: 28px;
    height: 28px;
  }
  .social-links a[href^='http']::after {
    content: ' ' attr(href);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
  }
  .terminal-window {
    border: 0;
    border-radius: 0;
    background: none;
    font-family: var(--sans);
  }
  .terminal-body {
    padding: 0;
    font-family: var(--sans);
  }
  .vim-line {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }
  .terminal-intro-hidden {
    opacity: 1;
  }
  .role-marker,
  .timeline-end-marker,
  .section-node,
  .section-rail-end,
  .section-row-node {
    box-shadow: none;
  }
  .acronym {
    text-decoration: none;
  }
  .role,
  .service-callout,
  .education-list article,
  .expertise-list li,
  .certification-list li,
  .signal-strip {
    break-inside: avoid;
  }
  .section h2.section-label,
  .role h3,
  .role header {
    break-after: avoid;
  }
  .signal-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .signal-strip div {
    border-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vim-cursor {
    animation: none !important;
    opacity: 1;
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Visitor motion toggle (motion.js): the same rules as reduced motion, by attribute. */
html[data-motion='off'] .vim-cursor {
  animation: none !important;
  opacity: 1;
}
html[data-motion='off'] {
  scroll-behavior: auto;
}
html[data-motion='off'] *,
html[data-motion='off'] *::before,
html[data-motion='off'] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
