/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --bg: #0b0d10;
  --panel: #131619;
  --panel-2: #191d21;
  --line: rgba(236, 231, 222, 0.09);
  --line-strong: rgba(236, 231, 222, 0.18);
  --ink: #ece7de;
  --ink-dim: #9aa0a6;
  --ink-faint: #5d6268;
  --ember: #ff6a39;
  --ember-2: #ffb347;
  --steel: #7fe3d4;

  --display: "Big Shoulders Display", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--ember); color: #14100c; }

/* focus visibility */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

/* ==========================================================================
   Fluid canvas layer
   ========================================================================== */
#fluid {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.72;
}

.no-fluid #fluid { display: none; }
.no-fluid .hero { background-image: radial-gradient(60% 50% at 30% 20%, rgba(255, 106, 57, 0.16), transparent 60%), radial-gradient(50% 40% at 80% 70%, rgba(127, 227, 212, 0.10), transparent 60%); }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); position: relative; z-index: 1; }

/* Sections must remain transparent so the fixed WebGL canvas can show through.
   The body still supplies the same dark background, while .wrap keeps content
   above the canvas. */
section { position: relative; z-index: auto; background: transparent; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: 0.01em; margin: 0; }

.section-head { margin-bottom: 1.8rem; max-width: 640px; }
.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  margin-top: 0.6rem;
  color: var(--ink);
}
.section-head p { color: var(--ink-dim); font-size: 1.02rem; max-width: 46ch; margin-top: 0.9rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(11, 13, 16, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--ember);
  font-family: var(--display);
  font-size: 1rem;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px dashed var(--line);
  border-radius: 6px;
}

.nav-links { display: flex; gap: 2.1rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-bottom: 4px;
}
.nav-links a::before {
  content: attr(data-index);
  color: var(--ink-faint);
  margin-right: 0.5em;
  font-size: 0.75em;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0%;
  background: linear-gradient(90deg, var(--ember), var(--ember-2));
  transition: width 0.35s cubic-bezier(.4,0,.2,1);
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-strong);
  padding: 0.55rem 1rem;
  border-radius: 3px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.nav-cta:hover { border-color: var(--ember); color: var(--ember-2); background: rgba(255, 106, 57, 0.06); }

/* ==========================================================================
   Ember / Signal cursor mode switch
   ========================================================================== */
.mode-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.6rem;
}
.mode-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  transition: color 0.3s ease;
}
.mode-label-ember { color: var(--ember-2); }
.switch { position: relative; display: inline-block; width: 38px; height: 20px; cursor: pointer; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-track {
  position: absolute; inset: 0;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.switch-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ember-2);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), background 0.3s ease;
}
.switch input:checked + .switch-track { border-color: rgba(127, 227, 212, 0.5); }
.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(18px);
  background: var(--steel);
}
.switch input:focus-visible + .switch-track { outline: 2px solid var(--steel); outline-offset: 2px; }
@media (max-width: 900px) {
  .mode-switch { margin-left: 0.6rem; }
  .mode-label { display: none; }
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.menu-toggle span { top: 19px; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(11, 13, 16, 0.97);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}
.mobile-panel.open { opacity: 1; visibility: visible; }
.mobile-panel a {
  font-family: var(--display);
  font-size: 2.6rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-dim);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.25s ease;
}
.mobile-panel.open a { opacity: 1; transform: translateY(0); }
.mobile-panel.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-panel.open a:nth-child(2) { transition-delay: 0.12s; }
.mobile-panel.open a:nth-child(3) { transition-delay: 0.19s; }
.mobile-panel.open a:nth-child(4) { transition-delay: 0.26s; }
.mobile-panel a:hover { color: var(--ember-2); }

@media (max-width: 780px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 7rem;
  padding-bottom: clamp(3rem, 7vh, 5.5rem);
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8,10,12,.92) 0%, rgba(8,10,12,.74) 43%, rgba(8,10,12,.34) 74%, rgba(8,10,12,.52) 100%),
    linear-gradient(0deg, rgba(8,10,12,.72) 0%, rgba(8,10,12,.05) 48%),
    url("../assets/photos/photo-030.webp") center 48% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(11,13,16,.08), rgba(11,13,16,0) 55%, var(--bg));
  z-index: 0;
}
.hero .wrap { width: 100%; }
.hero-kicker { margin-bottom: 1rem; text-shadow: 0 2px 18px rgba(0,0,0,.65); }
.hero h1 {
  font-size: clamp(4rem, 11vw, 8.2rem);
  line-height: 0.86;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 4px 40px rgba(0,0,0,.55);
}
.hero h1 span { color: var(--ember); }
.hero-sub {
  max-width: 55ch;
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  color: #d0ccc5;
  margin-top: 1.25rem;
  text-shadow: 0 2px 18px rgba(0,0,0,.72);
}
.hero-actions { display: flex; gap: .8rem; margin-top: 1.8rem; flex-wrap: wrap; }
.btn {
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.82rem 1.25rem;
  border-radius: 3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-primary { background: var(--ember); color: #16110c; border: 1px solid var(--ember); }
.btn-primary:hover { transform: translateY(-2px); background: var(--ember-2); border-color: var(--ember-2); }
.btn-ghost { border: 1px solid rgba(236,231,222,.42); color: var(--ink); background: rgba(8,10,12,.22); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--steel); color: var(--steel); }
.hero-scroll {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.5rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(236,231,222,.62); text-decoration: none;
}
.hero-scroll span { font-size: 1rem; }
@media (max-width: 680px) {
  .hero { min-height: 88svh; background-position: 58% center; padding-bottom: 2.5rem; }
  .hero-sub { max-width: 40ch; }
}

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 2.6rem 1.4rem;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--ember-2);
  line-height: 1;
}
.stat .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-top: 0.6rem;
  display: block;
}
@media (max-width: 780px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
}

/* ==========================================================================
   About / duality
   ========================================================================== */
.duality { padding: 4.75rem 0; }
.duality-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 3rem;
}
.duality-grid .divider { background: var(--line); }
.duality-col .tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.duality-col h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
  margin: 0.6rem 0 1rem;
}
.duality-col p { color: var(--ink-dim); }
.duality-col:last-child .tag { color: var(--ember-2); }
@media (max-width: 780px) {
  .duality-grid { grid-template-columns: 1fr; }
  .duality-grid .divider { height: 1px; width: 100%; }
}

/* ==========================================================================
   Galleries (Projects / Photos)
   ========================================================================== */
.gallery-section { padding: 4.75rem 0; }
.gallery-section.alt { background: var(--panel); }
.rack-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding: 0.7rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.rack-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.rack-btn .led {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
  box-shadow: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  flex: none;
}
.rack-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.rack-btn.is-active {
  color: var(--ink);
  border-color: var(--ember);
  background: rgba(255, 106, 57, 0.08);
}
.rack-btn.is-active .led {
  background: var(--ember);
  box-shadow: 0 0 6px 1px rgba(255, 106, 57, 0.7);
}
.gallery figure.is-hidden { display: none; }

.carousel { position: relative; }
.carousel-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: .9rem;
}
.carousel-hint {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--ink-faint);
}
.carousel-controls { display: flex; gap: .5rem; }
.carousel-btn {
  width: 42px; height: 38px;
  border: 1px solid var(--line-strong); border-radius: 4px;
  background: rgba(19,22,25,.78); color: var(--ink);
  font-size: 1.05rem; cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, color .2s ease;
}
.carousel-btn:hover { border-color: var(--steel); color: var(--steel); transform: translateY(-1px); }
.carousel-btn:disabled { opacity: .28; cursor: default; transform: none; }

.gallery.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  padding-bottom: .9rem;
  -webkit-overflow-scrolling: touch;
}
.gallery.carousel-track::-webkit-scrollbar { height: 7px; }
.gallery.carousel-track::-webkit-scrollbar-track { background: transparent; }
.gallery.carousel-track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.gallery figure {
  flex: 0 0 clamp(250px, 31vw, 360px);
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  cursor: zoom-in;
  scroll-snap-align: start;
}
.gallery figure img {
  width: 100%;
  height: clamp(280px, 34vw, 390px);
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1), filter 0.6s ease;
  filter: grayscale(22%) contrast(1.02);
}
.gallery figure:hover img { transform: scale(1.045); filter: grayscale(0%) contrast(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.6rem 1rem .8rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .03em;
  color: var(--ink);
  background: linear-gradient(to top, rgba(0,0,0,.84), transparent);
  opacity: .82;
  transition: opacity .3s ease;
}
.gallery figure:hover figcaption { opacity: 1; }
@media (max-width: 680px) {
  .gallery figure { flex-basis: 82vw; }
  .gallery figure img { height: 62vw; min-height: 280px; }
  .carousel-hint { display: none; }
  .carousel-top { justify-content: flex-end; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(6,7,9,0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--ember); color: var(--ember-2); }
.lightbox-cap { position: absolute; bottom: 2rem; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-dim); }

/* ==========================================================================
   CV / Experience
   ========================================================================== */
.cv-section { padding: 4.75rem 0; }
.timeline { border-top: 1px solid var(--line); margin-top: 3rem; }
.role {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--line);
}
.role time {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}
.role h3 { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 0.1rem; }
.role .org { color: var(--steel); font-family: var(--mono); font-size: 0.85rem; margin-bottom: 1rem; display: block; }
.role ul { margin: 0; padding-left: 1.1rem; color: var(--ink-dim); }
.role li { margin-bottom: 0.45rem; }
@media (max-width: 700px) {
  .role { grid-template-columns: 1fr; gap: 0.5rem; }
}

.cv-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3.5rem; }
.cv-columns h3 {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags span {
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink-dim);
}
.cv-columns ul { margin: 0; padding-left: 1.1rem; color: var(--ink-dim); }
@media (max-width: 780px) { .cv-columns { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact / Footer
   ========================================================================== */
.contact {
  padding: 7rem 0 5rem;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.contact h2 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  text-transform: uppercase;
  line-height: 0.95;
}
.contact a.email {
  color: var(--ember-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 179, 71, 0.4);
}
.contact a.email:hover { border-bottom-color: var(--ember-2); }
.contact-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; }
.social-links { display: flex; gap: 1.2rem; }
.social-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  padding: 0.6rem 1rem;
  border-radius: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.social-links a:hover { color: var(--steel); border-color: var(--steel); }

/* ==========================================================================
   Traceroute scroll indicator
   ========================================================================== */
.traceroute {
  position: fixed;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.trace-line {
  position: absolute;
  left: 3px;
  top: 0; bottom: 0;
  width: 1px;
  background-image: linear-gradient(var(--line-strong) 60%, transparent 40%);
  background-size: 1px 6px;
}
.trace-packet {
  position: absolute;
  left: -2px;
  top: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px 2px rgba(255, 106, 57, 0.65);
  transition: top 0.12s linear, background 0.3s ease, box-shadow 0.3s ease;
}
body.mode-signal .trace-packet {
  background: var(--steel);
  box-shadow: 0 0 8px 2px rgba(127, 227, 212, 0.6);
}
.hop { position: relative; display: flex; align-items: center; gap: 0.7rem; }
.hop-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  flex: none;
}
.hop-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.hop:hover .hop-label { opacity: 1; transform: translateX(0); }
.hop.active .hop-dot { background: var(--ember-2); box-shadow: 0 0 6px 1px rgba(255, 179, 71, 0.6); }
.hop.active .hop-label { opacity: 1; transform: translateX(0); color: var(--ink-dim); }

@media (max-width: 1080px) {
  .traceroute { display: none; }
}

footer.site-footer {
  padding: 1.6rem var(--gutter);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Skills and certifications grouping */
.skills-panel { min-width: 0; }
.skill-group + .skill-group { margin-top: 1.55rem; }
.skill-group h4 {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
}
.tags .featured-cert {
  flex-basis: 100%;
  color: var(--ink);
  border-color: var(--ember);
  background: rgba(255, 106, 57, 0.07);
}

/* ========================================================================== 
   Signal contact console
   ========================================================================== */
.contact { padding: 5.25rem 0 3.5rem; }
.contact-shell { display: grid; grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr); gap: clamp(2.5rem,6vw,6rem); align-items: start; }
.contact-intro { position: sticky; top: 7rem; }
.contact-intro h2 { margin: .35rem 0 1.1rem; }
.contact-intro p { max-width: 38ch; color: var(--ink-dim); margin: 0; }
.contact-side-note { margin-top: 1.5rem; font: 0.7rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-dim); }
.status-dot { display:inline-block; width:7px; height:7px; margin-right:.45rem; border-radius:50%; background:var(--steel); box-shadow:0 0 12px rgba(127,227,212,.75); }
.contact-sep { padding: 0 .45rem; opacity:.45; }

.signal-form { border:1px solid var(--line-strong); background:rgba(7,10,12,.74); box-shadow:0 30px 90px rgba(0,0,0,.22); position:relative; overflow:hidden; }
.signal-form::before { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(rgba(255,255,255,.014) 1px,transparent 1px); background-size:100% 28px; opacity:.45; }
.signal-topline { position:relative; z-index:1; display:flex; justify-content:space-between; padding:.8rem 1rem; border-bottom:1px solid var(--line-strong); color:var(--ink-dim); font:0.68rem var(--mono); letter-spacing:.1em; background:rgba(255,255,255,.018); }
.signal-form fieldset,.signal-form textarea,.signal-identity,.signal-actions { position:relative; z-index:1; }
.signal-fieldset { border:0; margin:0; padding:1.25rem 1.25rem .9rem; }
.signal-fieldset legend { padding-top:1.2rem; color:var(--ink-dim); font:0.72rem var(--mono); text-transform:uppercase; letter-spacing:.08em; }
.signal-types { display:flex; flex-wrap:wrap; gap:.55rem; }
.signal-types label { cursor:pointer; }
.signal-types input { position:absolute; opacity:0; pointer-events:none; }
.signal-types span { display:block; border:1px solid var(--line-strong); color:var(--ink-dim); padding:.52rem .75rem; font:0.72rem var(--mono); transition:.2s ease; }
.signal-types input:checked + span { color:#071012; background:var(--steel); border-color:var(--steel); box-shadow:0 0 24px rgba(127,227,212,.15); }
body:not(.mode-signal) .signal-types input:checked + span { background:var(--ember-2); border-color:var(--ember-2); }
.signal-prompt { display:block; position:relative; z-index:1; padding:.6rem 1.25rem .3rem; color:var(--ink); font:0.85rem var(--mono); }
.prompt-mark { color:var(--steel); margin-right:.4rem; }
body:not(.mode-signal) .prompt-mark { color:var(--ember-2); }
.signal-form textarea { display:block; width:calc(100% - 2.5rem); margin:0 1.25rem 1rem; resize:vertical; min-height:150px; border:0; border-left:2px solid var(--line-strong); border-radius:0; padding:.9rem 1rem; background:rgba(255,255,255,.025); color:var(--ink); font:0.95rem/1.6 var(--mono); outline:none; }
.signal-form textarea:focus { border-left-color:var(--steel); background:rgba(127,227,212,.035); }
body:not(.mode-signal) .signal-form textarea:focus { border-left-color:var(--ember-2); background:rgba(255,179,71,.025); }
.signal-form textarea::placeholder,.signal-identity input::placeholder { color:rgba(190,198,201,.42); }
.signal-identity { display:grid; grid-template-columns:1fr 1fr; gap:1px; border-top:1px solid var(--line-strong); border-bottom:1px solid var(--line-strong); background:var(--line-strong); }
.signal-identity label { background:rgba(7,10,12,.92); padding:.8rem 1.25rem 1rem; }
.signal-identity label > span { display:block; color:var(--ink-dim); font:0.66rem var(--mono); text-transform:uppercase; letter-spacing:.08em; margin-bottom:.25rem; }
.signal-identity input { width:100%; border:0; border-bottom:1px solid transparent; background:transparent; color:var(--ink); padding:.35rem 0; font:0.92rem var(--mono); outline:none; }
.signal-identity input:focus { border-bottom-color:var(--steel); }
body:not(.mode-signal) .signal-identity input:focus { border-bottom-color:var(--ember-2); }
.signal-actions { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1rem 1.25rem; }
.signal-send { appearance:none; border:1px solid var(--steel); background:transparent; color:var(--steel); padding:.7rem 1.15rem; font:0.72rem var(--mono); text-transform:uppercase; letter-spacing:.09em; cursor:pointer; transition:.2s ease; }
.signal-send:hover { background:var(--steel); color:#071012; }
body:not(.mode-signal) .signal-send { border-color:var(--ember-2); color:var(--ember-2); }
body:not(.mode-signal) .signal-send:hover { background:var(--ember-2); color:#100b05; }
.signal-send:disabled { opacity:.55; cursor:wait; }
.send-busy { display:none; }
.signal-form.sending .send-idle { display:none; }
.signal-form.sending .send-busy { display:inline; }
.signal-status { min-height:1.2em; text-align:right; color:var(--ink-dim); font:0.7rem var(--mono); }
.signal-status.ok { color:var(--steel); }
.signal-status.err { color:#ff8d7b; }
.signal-trap { position:absolute!important; left:-9999px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.contact-grid { grid-column:1 / -1; margin-top:0; padding-top:1.5rem; border-top:1px solid var(--line); }
@media (max-width:820px){ .contact-shell{grid-template-columns:1fr}.contact-intro{position:static}.signal-identity{grid-template-columns:1fr}.contact-grid{grid-column:auto}.contact{padding-top:4rem} }
@media (max-width:520px){ .signal-types{display:grid;grid-template-columns:1fr 1fr}.signal-types span{text-align:center}.signal-actions{align-items:flex-start;flex-direction:column}.signal-status{text-align:left}.contact-side-note{line-height:2}.contact-sep{display:none} }
\n\n/* ==========================================================================\n   2026-08 polish pass: quieter background, continuous flow, compact galleries\n   ========================================================================== */\n/* Keep the fluid cursor visible from top to bottom instead of hiding it behind\n   opaque section panels. */\n.gallery-section.alt,\n.contact { background: transparent; }\n\n/* A soft continuous rhythm rather than stacked rectangular panels. */\n.duality, .gallery-section, .cv-section { padding: 3.4rem 0; }\n.contact { padding: 4.6rem 0 3.6rem; border-top: 0; }\n.duality::before, .gallery-section::before, .contact::before {\n  content: "";\n  position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px;\n  max-width: var(--max); margin: 0 auto;\n  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line) 70%, transparent);\n  opacity: .7;\n}\n.section-head { margin-bottom: 1.25rem; }\n.section-head p { margin-top: .65rem; }\n\n/* Smaller gallery objects: more work visible, less billboard. */\n.gallery.carousel-track { gap: .72rem; padding-bottom: .55rem; }\n.gallery figure { flex: 0 0 clamp(150px, 16vw, 205px); border-radius: 5px; }\n.gallery figure img { height: clamp(175px, 20vw, 235px); }\n.gallery figcaption { padding: 2rem .72rem .58rem; font-size: .64rem; }\n.carousel-top { margin-bottom: .6rem; }\n.carousel-btn { width: 36px; height: 33px; }\n\n/* Resume intentionally lives on its own page. */\n.resume-hero { min-height: 58svh; display: flex; align-items: flex-end; padding: 9rem 0 4rem; }\n.resume-hero h1 { font-size: clamp(4rem, 12vw, 9rem); line-height: .82; text-transform: uppercase; }\n.resume-hero p { color: var(--ink-dim); max-width: 58ch; margin: 1.4rem 0 0; }\n.resume-page .standalone-cv { padding-top: 1rem; }\n.resume-page .standalone-cv > .wrap > .section-head { display: none; }\n.site-footer a { color: inherit; text-decoration: none; }\n.site-footer a:hover { color: var(--steel); }\n\n@media (max-width: 680px) {\n  .duality, .gallery-section { padding: 2.8rem 0; }\n  .gallery figure { flex-basis: 58vw; }\n  .gallery figure img { height: 68vw; min-height: 0; }\n  .contact { padding: 3.8rem 0 3rem; }\n}\n
/* Cursor fluid is an interface layer, not a page background. Keeping it above
   page sections makes the trail follow the pointer everywhere, including the
   photographic hero and contact console. It never captures clicks. */
#fluid { z-index: 35; opacity: .86; mix-blend-mode: screen; filter: saturate(1.16) contrast(1.08); }

/* ==========================================================================
   Extra-compact galleries
   ========================================================================== */
/* User wanted these roughly half the previous polished size. */
.gallery.carousel-track { gap: .55rem; }
.gallery figure { flex: 0 0 clamp(90px, 9vw, 118px); }
.gallery figure img { height: clamp(108px, 11vw, 138px); }
.gallery figcaption {
  padding: 1.55rem .52rem .4rem;
  font-size: .55rem;
  line-height: 1.2;
}
.carousel-btn { width: 32px; height: 30px; }
.carousel-hint { font-size: .62rem; }

@media (max-width: 680px) {
  .gallery figure { flex-basis: 38vw; max-width: 145px; }
  .gallery figure img { height: 45vw; max-height: 175px; }
}

/* ==========================================================================
   2026-08-12 FUTURE FIELD CONSOLE PASS
   ========================================================================== */
:root {
  --bg: #070a0d;
  --panel: rgba(10, 15, 19, .72);
  --panel-2: rgba(13, 20, 24, .78);
  --line: rgba(139, 238, 225, .10);
  --line-strong: rgba(139, 238, 225, .26);
  --ink: #eef5f3;
  --ink-dim: #95a6a6;
  --ink-faint: #526263;
  --steel: #8beee1;
  --ember: #ff7448;
  --ember-2: #ffc069;
}

body {
  background:
    linear-gradient(rgba(139,238,225,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,238,225,.018) 1px, transparent 1px),
    radial-gradient(ellipse at 75% 18%, rgba(92, 224, 216, .045), transparent 31rem),
    var(--bg);
  background-size: 88px 88px, 88px 88px, auto, auto;
}

/* The fluid simulation is a true viewport HUD overlay. It must outrank all
   normal content stacking contexts, including transformed gallery cards and
   the isolated photographic hero. Navigation and the lightbox stay above it. */
#fluid {
  z-index: 5000 !important;
  opacity: .96 !important;
  mix-blend-mode: screen !important;
  filter: saturate(1.25) contrast(1.12) brightness(1.06);
}
.site-nav, .mobile-panel { z-index: 6000; }
.traceroute { z-index: 5500; }
.lightbox { z-index: 7000; }
.hero { isolation: auto; }

/* restrained viewport instrumentation */
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 20;
}
body::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 2.4rem, rgba(139,238,225,.07) 2.4rem 2.45rem, transparent 2.45rem),
    linear-gradient(0deg, transparent 0 2.4rem, rgba(139,238,225,.055) 2.4rem 2.45rem, transparent 2.45rem);
  opacity: .32;
}
body::after {
  left: 0; right: 0; top: -18vh; height: 18vh;
  background: linear-gradient(to bottom, transparent, rgba(139,238,225,.05), transparent);
  animation: jvScan 14s linear infinite;
  opacity: .34;
}
@keyframes jvScan { to { transform: translateY(136vh); } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; display: none; } }

.site-nav {
  padding-top: .85rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(5, 9, 12, .72);
  border-color: rgba(139,238,225,.14);
  box-shadow: 0 12px 55px rgba(0,0,0,.28);
}
.brand-mark {
  border-color: rgba(139,238,225,.42);
  box-shadow: inset 0 0 18px rgba(139,238,225,.055), 0 0 20px rgba(139,238,225,.035);
}
.nav-links a::after { background: linear-gradient(90deg, transparent, var(--steel), transparent); }
.nav-cta,
.btn,
.carousel-btn,
.signal-send {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.hero {
  min-height: 94svh;
  border-bottom: 0;
}
.hero::before {
  content: "SYS/JV  •  LINK 01  •  LITTLE ROCK AR";
  position: absolute;
  right: var(--gutter);
  top: 7.1rem;
  z-index: 2;
  font: 500 .62rem/1 var(--mono);
  letter-spacing: .14em;
  color: rgba(139,238,225,.62);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.hero::after {
  background:
    linear-gradient(to bottom, rgba(7,10,13,.03), rgba(7,10,13,0) 52%, var(--bg) 100%),
    linear-gradient(90deg, rgba(139,238,225,.055) 1px, transparent 1px);
  background-size: auto, 22vw 100%;
}
.hero .wrap::before {
  content: "01 / ENTRY";
  display: block;
  width: fit-content;
  margin-bottom: 1rem;
  padding: .35rem .55rem;
  border: 1px solid rgba(139,238,225,.22);
  color: rgba(139,238,225,.78);
  font: .62rem var(--mono);
  letter-spacing: .12em;
  background: rgba(5,9,12,.28);
  backdrop-filter: blur(8px);
}
.hero h1 {
  letter-spacing: -.025em;
  text-shadow: 0 5px 38px rgba(0,0,0,.72), 0 0 42px rgba(139,238,225,.035);
}
.hero-sub {
  border-left: 1px solid rgba(139,238,225,.30);
  padding-left: 1.15rem;
}
.hero-actions { margin-top: 1.45rem; }
.btn-primary {
  background: rgba(255,116,72,.94);
  box-shadow: 0 0 28px rgba(255,116,72,.10);
}
.btn-ghost { border-color: rgba(139,238,225,.34); }

/* sections flow like one instrument surface instead of discrete blocks */
.duality, .gallery-section, .contact { padding-top: 3rem; padding-bottom: 3rem; }
.duality::before, .gallery-section::before, .contact::before {
  left: max(var(--gutter), calc((100vw - var(--max))/2 + var(--gutter)));
  right: var(--gutter);
  max-width: none;
  background: linear-gradient(90deg, rgba(139,238,225,.44), rgba(139,238,225,.08) 28%, transparent 78%);
}
.section-head { position: relative; padding-left: 1rem; }
.section-head::before {
  content: "";
  position: absolute; left: 0; top: .35rem; bottom: .3rem; width: 1px;
  background: linear-gradient(var(--steel), transparent);
}
.section-head h2 { letter-spacing: -.015em; }
.eyebrow { color: rgba(139,238,225,.76); }

.duality-grid {
  border: 1px solid rgba(139,238,225,.12);
  background: linear-gradient(135deg, rgba(13,20,24,.58), rgba(7,10,13,.18));
  backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.duality-col { padding: 1.65rem; }
.duality-col .tag { color: rgba(139,238,225,.70); }
.divider { background: linear-gradient(transparent, rgba(139,238,225,.22), transparent); }

/* compact media rail: small objects, futuristic index-card feel */
.carousel {
  border-top: 1px solid rgba(139,238,225,.11);
  padding-top: .7rem;
}
.carousel-hint { color: rgba(149,166,166,.72); }
.gallery.carousel-track { gap: .42rem; }
.gallery figure {
  flex: 0 0 clamp(78px, 7vw, 98px);
  border: 1px solid rgba(139,238,225,.12);
  background: rgba(9,14,17,.46);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}
.gallery figure::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(139,238,225,.025);
}
.gallery figure img {
  height: clamp(94px, 9vw, 116px);
  filter: grayscale(45%) contrast(1.03) brightness(.90);
}
.gallery figure:hover { border-color: rgba(139,238,225,.46); }
.gallery figure:hover img { transform: scale(1.055); filter: grayscale(0) contrast(1.08) brightness(.98); }
.gallery figcaption {
  padding: 1.35rem .45rem .38rem;
  font-size: .55rem;
  line-height: 1.25;
  letter-spacing: .06em;
  background: linear-gradient(transparent, rgba(5,9,12,.90));
}
.carousel-btn { width: 31px; height: 29px; border-color: rgba(139,238,225,.22); }

/* contact console gets a little more spacecraft, a little less form */
.signal-console {
  border-color: rgba(139,238,225,.22);
  box-shadow: 0 24px 90px rgba(0,0,0,.34), inset 0 0 55px rgba(139,238,225,.018);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.signal-console::before {
  background: linear-gradient(90deg, transparent, rgba(139,238,225,.10), transparent);
}
.signal-topline { color: rgba(139,238,225,.62); }
.signal-form textarea,
.signal-identity label { background: rgba(5,9,12,.64); }

.site-footer {
  border-top-color: rgba(139,238,225,.10);
  background: linear-gradient(180deg, transparent, rgba(139,238,225,.018));
}

@media (max-width: 680px) {
  body { background-size: 52px 52px, 52px 52px, auto, auto; }
  body::before { display: none; }
  .hero::before { display: none; }
  .gallery figure { flex-basis: 22vw; max-width: 92px; }
  .gallery figure img { height: 27vw; max-height: 112px; }
  .gallery figcaption { display: none; }
  .duality-grid { clip-path: none; }
}
.hero-telemetry {
  display: flex; flex-wrap: wrap; gap: .55rem 1.1rem;
  margin-top: 1rem;
  color: rgba(139,238,225,.58);
  font: .58rem var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero-telemetry span::before { content: "●"; margin-right: .42rem; font-size: .45rem; color: var(--steel); text-shadow: 0 0 9px var(--steel); }


/* ========================================================================== 
   2026-08-12 SOFT FUTURE GEOMETRY PASS
   Rounded where it helps; still technical, not bubbly.
   ========================================================================== */

/* Contact console: actual form class, intentionally overriding the older
   clipped-corner treatment. */
.signal-form {
  border-radius: 22px;
  clip-path: none;
  border-color: rgba(139,238,225,.24);
  box-shadow:
    0 28px 90px rgba(0,0,0,.34),
    inset 0 0 60px rgba(139,238,225,.02),
    0 0 0 1px rgba(255,255,255,.015);
}
.signal-form::before { border-radius: inherit; }
.signal-topline {
  border-radius: 22px 22px 0 0;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}
.signal-types span {
  border-radius: 10px;
  background: rgba(7,12,15,.45);
}
.signal-form textarea {
  border: 1px solid rgba(139,238,225,.12);
  border-left: 2px solid var(--line-strong);
  border-radius: 12px;
}
.signal-identity {
  margin: 0 1.25rem 1rem;
  border: 1px solid rgba(139,238,225,.12);
  border-radius: 14px;
  overflow: hidden;
}
.signal-identity label:first-child { border-radius: 13px 0 0 13px; }
.signal-identity label:last-child { border-radius: 0 13px 13px 0; }
.signal-send {
  border-radius: 10px;
  clip-path: none;
}

/* Softer instrument panels */
.duality-grid {
  border-radius: 18px;
  clip-path: none;
  overflow: hidden;
}
.gallery figure {
  border-radius: 12px;
  clip-path: none;
  overflow: hidden;
}
.gallery figure::before { border-radius: inherit; }
.carousel-btn,
.nav-cta,
.btn {
  border-radius: 10px;
  clip-path: none;
}
.hero .wrap::before {
  border-radius: 8px;
}
.hero-telemetry span {
  padding: .28rem .5rem;
  border: 1px solid rgba(139,238,225,.10);
  border-radius: 999px;
  background: rgba(5,9,12,.24);
  backdrop-filter: blur(6px);
}
.brand-mark { border-radius: 10px; }

/* Keep the future language crisp: rounded shells, square-ish internals. */
@media (max-width: 820px) {
  .signal-identity label:first-child,
  .signal-identity label:last-child { border-radius: 0; }
  .signal-identity label:first-child { border-radius: 13px 13px 0 0; }
  .signal-identity label:last-child { border-radius: 0 0 13px 13px; }
}
