/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --bg-deep: #13101a;
  --bg-mid: #1c1820;
  --bg-surface: #221e28;
  --accent: #cba8d5;
  --accent-dim: rgba(196,160,212,0.4);
  --accent-glow: rgba(212,176,224,0.14);
  --accent-border: rgba(196,160,212,0.18);
  --accent-hover: rgba(220,180,228,0.38);
  --accent-warm: #e8d4b8;
  --text-primary: #ede6f4;
  --text-secondary: #d8cce0;
  --text-tertiary: rgba(220,196,232,0.72);
  --glass-bg: rgba(196,160,212,0.05);
  --glass-bg-hover: rgba(196,160,212,0.09);
  --font-display: 'Crimson Pro', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --section-gap: 8px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   WOOD GRAIN BACKGROUND (persistent)
   ============================================ */
.wood-base {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(81deg, rgba(150,95,55,0.35) 0px, rgba(110,70,42,0.24) 2px, rgba(170,110,65,0.28) 4px, transparent 6px, transparent 9px),
    repeating-linear-gradient(83deg, rgba(135,85,50,0.28) 0px, rgba(100,62,38,0.18) 1.5px, transparent 3px, transparent 11px),
    repeating-linear-gradient(79deg, rgba(160,105,62,0.20) 0px, transparent 2px, transparent 16px),
    repeating-linear-gradient(85deg, rgba(90,55,32,0.14) 0px, transparent 1px, transparent 22px),
    repeating-linear-gradient(77deg, rgba(180,120,72,0.12) 0px, rgba(140,90,52,0.16) 5px, transparent 7px, transparent 35px),
    linear-gradient(170deg, #261c20 0%, #1c1218 40%, #241c26 100%);
}

/* ============================================
   GLASS SECTIONS
   ============================================ */
.glass-section {
  position: relative;
  z-index: 1;
  background: rgba(17,14,20,0.78);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 40px;
}
.wood-gap {
  height: 12px;
  position: relative;
  z-index: 1;
}
.coin-divide {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.coin-divide::before, .coin-divide::after {
  content: "";
  flex: 1;
  max-width: 160px;
  height: 0.5px;
  background: var(--accent-border);
}
.coin-divide img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 0 0.5px rgba(196,160,212,0.35), 0 2px 10px rgba(0,0,0,0.55);
}
.secret-details summary { color: var(--text-tertiary); font-size: 11px; }
.pm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 12px; }
.pm-tile { display: block; padding: 12px; border: 0.5px solid var(--accent-border); border-radius: 8px; background: var(--glass-bg); color: var(--text-secondary); text-decoration: none; transition: border-color 0.2s; }
.pm-tile:hover { border-color: var(--accent-hover); }
.pm-tile img { display: block; width: 100%; height: auto; border-radius: 6px; }
.pm-tile span { display: block; margin-top: 10px; font-size: 13px; line-height: 1.5; }
@media (max-width: 520px) { .pm-tiles { grid-template-columns: 1fr; } }

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 26px 0 4px;
}
.photo-strip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 0.5px solid var(--accent-border);
}
@media (max-width: 640px) { .photo-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; } .photo-strip img:last-child { grid-column: 1 / -1; } }
.secret-details img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 6px;
  margin: 10px 0 2px;
}

/* ============================================
   STICKY NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  transition: background 0.5s, padding 0.5s, border-color 0.5s;
  background: transparent;
}
.nav.scrolled {
  background: rgba(17,14,20,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--accent-border);
  padding: 8px 20px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 260px;
  padding: 6px 12px;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.25;
  color: #f7f1fb;
  text-decoration: none;
  background: rgba(196,160,212,0.12);
  border: 1px solid rgba(203,168,213,0.55);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.nav a:hover, .nav a:focus-visible {
  color: #13101a;
  background: var(--accent);
  border-color: var(--accent);
}
.nav a:focus-visible { outline: 2px solid var(--accent-warm); outline-offset: 2px; }

/* ============================================
   SECTION LABELS & TITLES
   ============================================ */
.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.section-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 720px;
}

/* ============================================
   GLOW LINE
   ============================================ */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,160,212,0.25), transparent);
  position: relative;
  margin: 40px 0;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(3px);
  transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
              filter 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ============================================
   HERO
   ============================================ */
#home .section-inner {
  padding-top: 120px;
  padding-bottom: 60px;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin: 0 0 8px;
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-thesis {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.2vw, 21px);
  font-style: normal;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 640px;
}
.hero-thesis strong {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.hero-thesis p + p { margin-top: 14px; }
.hero-thesis a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); }
.hero-thesis a:hover { color: var(--accent-warm); border-bottom-color: var(--accent-warm); }


/* ============================================
   ABOUT
   ============================================ */
.about-layout {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 28px;
}
.about-photo img {
  width: 150px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 0.5px solid var(--accent-border);
  filter: saturate(0.85);
}
.about-bio p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-bio p:last-child { margin-bottom: 0; }

/* Highlight Cards */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.highlight-card {
  padding: 24px;
  background: var(--glass-bg);
  border: 0.5px solid var(--accent-border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.highlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(196,160,212,0.05) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.highlight-card:hover::before { opacity: 1; }
.highlight-card:hover { border-color: var(--accent-hover); }
.highlight-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.highlight-card-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Resume Downloads */
.resume-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  max-width: 520px;
}
.resume-dl {
  display: block;
  padding: 10px 18px;
  border-radius: 0;
  background: var(--glass-bg);
  border: 0.5px solid var(--accent-border);
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
  transition: all 0.3s;
  letter-spacing: 0.3px;
  text-align: center;
}
.resume-dl:hover {
  background: var(--glass-bg-hover);
  color: var(--accent);
  border-color: var(--accent-hover);
}
.resume-dl-primary {
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--accent);
  color: var(--bg-deep);
  border: 0.5px solid var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.resume-dl-primary:hover {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  color: var(--bg-deep);
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-frame {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 0.5px solid var(--accent-border);
  position: relative;
  transition: all 0.3s;
}
.video-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(196,160,212,0.04) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.video-frame:hover::before { opacity: 1; }
.video-frame:hover { border-color: var(--accent-hover); }
.video-info { padding: 20px 24px; }
.video-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.video-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}


/* ============================================
   STRATEGY / SYSTEMS SECTION
   ============================================ */
.accordion-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  width: 100%;
  text-align: left;
}
.accordion-arrow {
  font-size: 22px;
  line-height: 34px;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  text-align: center;
  border-radius: 50%;
  color: var(--bg-deep);
  background: var(--accent);
  transition: transform 0.4s;
}
.accordion-trigger.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.accordion-body.open { max-height: 12000px; }

/* Systems Cards */
.systems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.system-card {
  padding: 24px;
  background: var(--glass-bg);
  border: 0.5px solid var(--accent-border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.system-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(196,160,212,0.05) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.system-card:hover::before { opacity: 1; }
.system-card:hover { border-color: var(--accent-hover); }
.system-card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.system-card-name a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); }
.system-card-name a:hover { color: var(--accent-warm); border-bottom-color: var(--accent-warm); }
.system-card-code {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.system-card-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.system-card-details {
  margin-top: 14px;
  font-size: 13px;
}
.system-card-details summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  list-style: none;
  padding: 10px 0;
  transition: color 0.2s;
}
.system-card-details summary::-webkit-details-marker { display: none; }
.system-card-details summary:hover { color: var(--accent-warm); }
.system-card-details[open] summary { color: var(--accent-warm); margin-bottom: 8px; }
.system-card-details-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-top: 4px;
  border-top: 0.5px solid var(--accent-border);
  margin-top: 6px;
}

/* Case Study */
.case-study {
  padding: 32px;
  background: var(--glass-bg);
  border: 0.5px solid var(--accent-border);
  border-radius: 16px;
  margin-top: 28px;
  position: relative;
  overflow: hidden;
}
.case-study::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(196,160,212,0.04) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.case-study:hover::before { opacity: 1; }

/* ============================================
   GATEFORCE BRAND OVERRIDE, green and black
   ============================================ */
.case-study-gateforce {
  background: #0d0f15;
  border: 1px solid rgba(46, 204, 113, 0.32);
}
.case-study-gateforce::before {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(46, 204, 113, 0.10) 0%, transparent 60%);
}
.case-study-gateforce:hover {
  border-color: rgba(46, 204, 113, 0.72);
}
.case-study-gateforce .case-study-label {
  color: #5eea91;
}
.case-study-gateforce .case-study-title {
  color: #f0fff5;
}
.case-study-gateforce .case-study-body {
  color: #b8d4c2;
}
.gf-verdict-row {
  display: flex;
  gap: 10px;
  margin: 4px 0 20px;
  flex-wrap: wrap;
}
.gf-verdict-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 0;
  border: 1px solid;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
}
.gf-verdict-pill.adopt {
  color: #5eea91;
  border-color: rgba(94, 234, 145, 0.55);
  background: rgba(46, 204, 113, 0.08);
}
.gf-verdict-pill.park {
  color: #e8c54e;
  border-color: rgba(232, 197, 78, 0.55);
  background: rgba(232, 197, 78, 0.06);
}
.gf-verdict-pill.reject {
  color: #ec7567;
  border-color: rgba(236, 117, 103, 0.55);
  background: rgba(236, 117, 103, 0.06);
}
.gf-example { margin-top: 18px; padding: 18px 20px; border: 1px solid rgba(46,204,113,0.32); background: rgba(46,204,113,0.05); }
.gf-example-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #5eea91; margin-bottom: 10px; }
.gf-example-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-top: 0.5px solid rgba(46,204,113,0.18); color: #b8d4c2; font-size: 15px; line-height: 1.6; }
.gf-example-key { color: #f0fff5; font-weight: 500; }
.gf-example-note { margin-top: 10px; font-size: 12px; color: #8fb39c; }
.gf-example .gf-verdict-pill { margin-right: 8px; vertical-align: middle; }
.contact-intro { font-size: 16px; color: var(--text-secondary); max-width: 520px; margin: 0 auto 8px; line-height: 1.7; }
@media (max-width: 600px) { .gf-example-row { grid-template-columns: 1fr; gap: 4px; } }
.resume-dl-gate {
  background: rgba(46, 204, 113, 0.1) !important;
  border-color: rgba(46, 204, 113, 0.6) !important;
  color: #5eea91 !important;
}
.resume-dl-gate:hover {
  background: rgba(46, 204, 113, 0.2) !important;
  border-color: #2ecc71 !important;
  color: #f0fff5 !important;
}
.case-study-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.case-study-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gate-logo {
  height: 52px;
  width: auto;
  border-radius: 4px;
  flex-shrink: 0;
  opacity: 0.92;
}
.case-study-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}



/* ============================================
   CONTACT
   ============================================ */
.contact-links-centered {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.contact-pill {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 0;
  background: var(--glass-bg);
  border: 0.5px solid var(--accent-border);
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.3s;
}
.contact-pill:hover {
  background: var(--glass-bg-hover);
  color: var(--accent);
  border-color: var(--accent-hover);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  background: rgba(17,14,20,0.9);
  padding: 40px;
  text-align: center;
  border-top: 0.5px solid var(--accent-border);
}
.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.footer-social a {
  display: inline-block;
  padding: 8px 4px;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-social a:hover { color: var(--accent); }
.footer-record { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--text-tertiary); }
.footer-record a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); padding: 4px 0; }
.footer-record a:hover { color: var(--accent-warm); border-bottom-color: var(--accent-warm); }


/* ============================================
   V2 ADDITIONS, chips, hints, anchor cards
   ============================================ */
/* ============================================
   SYSTEMS PRODUCER EXPLAINER (tab interface)
   ============================================ */
.sp-explainer {
  background: var(--glass-bg);
  border: 0.5px solid var(--accent-border);
  border-radius: 16px;
  padding: 32px;
  margin: 24px 0 36px 0;
  position: relative;
}
.sp-explainer-head {
  margin-bottom: 22px;
}
.sp-explainer-doorsign {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  line-height: 1.25;
}
.sp-tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.sp-tab-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 12px;
  background: linear-gradient(180deg, rgba(232,212,184,0.04) 0%, rgba(232,212,184,0.09) 100%);
  border: 0.5px solid rgba(232, 212, 184, 0.16);
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.82em;
  font-weight: 500;
  letter-spacing: 0.7px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-feature-settings: "kern" 1;
}
.sp-tab-btn:hover {
  background: linear-gradient(180deg, rgba(232,212,184,0.08) 0%, rgba(232,212,184,0.14) 100%);
  border-color: rgba(232, 212, 184, 0.28);
  color: var(--text-primary);
}
.sp-tab-btn.active {
  background: linear-gradient(180deg, rgba(232,212,184,0.12) 0%, rgba(232,212,184,0.20) 100%);
  border-color: rgba(232, 212, 184, 0.38);
  border-bottom: 2px solid var(--accent-warm);
  color: var(--accent-warm);
}
.sp-tab-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sp-tab-body {
  min-height: 60px;
}
.sp-tab-content {
  display: none;
  animation: spFadeIn 0.25s ease;
}
.sp-tab-content.active {
  display: block;
}
.sp-tab-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 14px 0;
  font-size: 1em;
}
.sp-tab-content p:last-child {
  margin-bottom: 0;
}
@keyframes spFadeIn {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero subtitle becomes a subtle link to the explainer */
.hero-tagline-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.hero-tagline-link:hover {
  color: var(--accent-warm);
}
.hero-tagline-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .sp-explainer { padding: 22px; margin: 18px 0 28px 0; }
  .sp-tab-buttons { flex-direction: column; gap: 6px; }
  .sp-tab-btn { flex: none; width: 100%; }
}
.highlight-card { position: relative; }
a.highlight-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.highlight-card:hover {
  color: inherit;
  border-color: var(--accent-hover);
}
.see-resume-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  margin-top: 12px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 0;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.watch-youtube-hint {
  display: block;
  margin-top: 10px;
  text-align: right;
  font-size: 12px;
  color: var(--accent);
  opacity: 0.85;
  letter-spacing: 0.3px;
  transition: opacity 0.2s ease;
}
.highlight-card:hover .watch-youtube-hint { opacity: 1; }

/* Where I've worked */
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.work-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 22px 14px; min-height: 124px; background: var(--glass-bg); border: 0.5px solid var(--accent-border); border-radius: 4px; color: var(--text-primary); text-decoration: none; transition: all 0.3s; }
a.work-tile:hover { border-color: var(--accent-hover); background: var(--glass-bg-hover); }
.work-tile img { display: block; max-height: 44px; max-width: calc(100% - 24px); width: auto; object-fit: contain; padding: 8px 12px; box-sizing: content-box; background: rgba(255,255,255,0.92); border-radius: 4px; }
.work-name { font-family: var(--font-display); font-size: 18px; line-height: 1.2; }
.work-role { font-size: 12px; color: var(--text-secondary); letter-spacing: 0.3px; line-height: 1.5; }
.reel-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 0; background: var(--accent); color: var(--bg-deep); font-weight: 600; font-size: 14px; text-decoration: none; letter-spacing: 0.3px; transition: background 0.3s; }
.reel-btn .reel-icon { width: 24px; height: 24px; }
.reel-btn:hover { background: var(--accent-warm); }
.reel-icon { flex: none; }

/* Contact buttons stacked */
.contact-stack { flex-direction: column; align-items: center; gap: 12px; }
.contact-stack .contact-pill { min-width: 260px; text-align: center; }
.contact-pill-alt { color: var(--text-secondary); }

/* Static explainer paragraphs (pilot block) */
.sp-static p { color: var(--text-secondary); line-height: 1.7; margin: 0 0 14px 0; font-size: 1em; }
.sp-static p:last-child { margin-bottom: 0; }
.depth-tabs { margin: 0 0 8px 0; }
.case-study.reveal + .sp-explainer { margin-top: 20px; }

.depth-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.depth-link:hover { color: var(--accent-warm); }

/* Print: white background, dark text, no decoration. We care about the environment. */
@media print {
  .wood-base, .nav, .glow-line, .accordion-arrow, .coin-divide { display: none !important; }
  html, body, .glass-section, .footer, .highlight-card, .system-card, .case-study, .sp-explainer, .video-frame, .gf-example {
    background: #fff !important; color: #111 !important; box-shadow: none !important; backdrop-filter: none !important; border-color: #bbb !important;
  }
  .hero-name, .section-label, .section-title, .highlight-card-title, .system-card-name, .case-study-title, .sp-explainer-doorsign, .hero-tagline, .hero-thesis, .hero-thesis span, .about-bio p, .highlight-card-body, .system-card-body, .case-study-body, .sp-tab-content p, .sp-static p, .section-intro, .video-desc, .video-title, .footer-copy, .system-card-code, .case-study-label, .work-tile, .work-name, .work-role, .sp-tab-btn, .gf-verdict-pill, .see-resume-chip, .watch-youtube-hint, .system-card-details summary, .system-card-details-body, .reel-btn, .contact-pill, .resume-dl, .gf-example-row, .gf-example-key, .gf-example-label, .gf-example-note, .contact-intro {
    color: #111 !important;
  }
  .sp-tab-content { display: block !important; animation: none !important; opacity: 1 !important; }
  .sp-tab-content + .sp-tab-content { margin-top: 14px; }
  #home .section-inner { padding-top: 24px; }
  .sp-tab-buttons, .work-tile img { display: none !important; }
  .reel-btn, .resume-dl-primary, .contact-pill, .resume-dl { background: #fff !important; border: 1px solid #bbb !important; }
  a { color: #111 !important; text-decoration: underline; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .accordion-body { max-height: none !important; overflow: visible !important; }
  .section-inner { padding: 24px 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .section-inner { padding: 60px 24px; }
  .nav, .nav.scrolled { padding: 7px 8px; gap: 5px; }
  .nav a { font-size: 11px; padding: 5px 9px; max-width: 100%; }
  #home .section-inner { padding-top: 140px; }
  html { scroll-padding-top: 115px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { text-align: center; }
  .about-photo img { margin: 0 auto; }
  .highlights-grid { grid-template-columns: 1fr; }
  .systems-grid { grid-template-columns: 1fr; }
}

/* Inner pages (About, GateForce85), 2026-10-22: short header, the name links home */
.page-head .section-inner { padding-top: 110px; padding-bottom: 36px; }
.hero-name a { color: inherit; text-decoration: none; }
.hero-name a:hover { color: var(--accent-warm); }
@media (max-width: 768px) { .page-head .section-inner { padding-top: 135px; padding-bottom: 28px; } }
