:root {
  --bg: #060708;
  --bg-soft: #0d1013;
  --panel: rgba(13, 15, 18, 0.76);
  --panel-strong: rgba(13, 15, 18, 0.92);
  --panel-solid: #111317;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(247, 196, 52, 0.26);
  --text: #f2efe7;
  --muted: #aca38f;
  --accent: #f7c434;
  --accent-strong: #fff0ae;
  --accent-cold: #7dc7ff;
  --accent-warm: #ff9966;
  --radius: 6px;
  --shadow: 0 28px 84px rgba(0, 0, 0, 0.4);
  --content-width: min(1320px, calc(100vw - 1.4rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 10%, rgba(125, 199, 255, 0.1), transparent 26%),
    radial-gradient(circle at 84% 14%, rgba(247, 196, 52, 0.1), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(255, 153, 102, 0.06), transparent 24%),
    linear-gradient(180deg, #050607 0%, #08090b 38%, #050607 100%);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

img,
svg,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

button,
a,
input,
textarea {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  padding: 0;
}

strong {
  color: var(--text);
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -6;
  opacity: 0.95;
}

.page-noise,
.bg-grid,
.bg-glow,
#fx-layer {
  pointer-events: none;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.05;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.9) 1px, transparent 0);
  background-size: 18px 18px;
  mix-blend-mode: soft-light;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 18%, black 22%, transparent 74%);
}

.bg-glow {
  position: fixed;
  z-index: -4;
  filter: blur(56px);
  opacity: 0.14;
}

.glow-a {
  top: 4rem;
  left: -6rem;
  width: 24rem;
  height: 24rem;
  background: var(--accent-cold);
}

.glow-b {
  right: -4rem;
  top: 18rem;
  width: 20rem;
  height: 20rem;
  background: var(--accent);
}

#fx-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 40;
}

.fx-particle {
  position: absolute;
  width: 0.38rem;
  height: 0.38rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-cold));
  box-shadow: 0 0 18px rgba(247, 196, 52, 0.32);
  animation: particle-burst 720ms cubic-bezier(.18,.9,.28,1) forwards;
}

.fx-beam,
.fx-impact {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: screen;
}

.fx-beam {
  width: var(--beam-length, 120px);
  height: var(--beam-width, 2px);
  border-radius: 999px;
  transform-origin: 0 50%;
  background:
    linear-gradient(
      90deg,
      rgba(125, 199, 255, 0) 0%,
      rgba(125, 199, 255, 0.84) 16%,
      rgba(255, 255, 255, 1) 48%,
      rgba(255, 248, 204, 0.98) 66%,
      rgba(247, 196, 52, 0.92) 84%,
      rgba(247, 196, 52, 0) 100%
    );
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.94),
    0 0 22px rgba(247, 196, 52, 0.52);
  animation: beam-shot 320ms cubic-bezier(.2,.9,.25,1) forwards;
  animation-delay: var(--beam-delay, 0ms);
}

.fx-beam--cool {
  background:
    linear-gradient(
      90deg,
      rgba(125, 199, 255, 0) 0%,
      rgba(125, 199, 255, 0.92) 16%,
      rgba(255, 255, 255, 1) 46%,
      rgba(214, 244, 255, 0.98) 68%,
      rgba(125, 199, 255, 0.88) 84%,
      rgba(125, 199, 255, 0) 100%
    );
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.92),
    0 0 24px rgba(125, 199, 255, 0.46);
}

.fx-beam--echo {
  opacity: 0.72;
}

.fx-impact {
  width: var(--impact-size, 24px);
  height: var(--impact-size, 24px);
  border: 1px solid rgba(255, 248, 204, 0.92);
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.7),
    0 0 34px rgba(247, 196, 52, 0.36);
  transform: translate(-50%, -50%) rotate(45deg) scale(0.28);
  animation: impact-pulse 420ms cubic-bezier(.18,.92,.22,1) forwards;
}

.fx-impact::before,
.fx-impact::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 34%;
  height: 34%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.78);
}

.fx-impact::after {
  width: 100%;
  height: 1px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.94), transparent);
}

.fx-impact--cool {
  border-color: rgba(214, 244, 255, 0.94);
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.68),
    0 0 34px rgba(125, 199, 255, 0.38);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: var(--content-width);
  margin: 0 auto;
  padding: 0.9rem 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(14px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 8, 9, 0.92), rgba(7, 8, 9, 0.58));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.brand-dot {
  width: 0.68rem;
  height: 0.68rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-cold));
  box-shadow: 0 0 18px rgba(247, 196, 52, 0.38);
}

.brand-line,
.site-nav a,
.eyebrow,
.metric-label,
.core-label,
.detail-kicker,
.frame-kicker,
.stack-kicker,
.contact-label,
.featured-kicker,
.slider-index,
.orbit-tag,
.meta-pill,
.video-modal__title,
.video-modal__close {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.brand-line {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 0.48rem 0.7rem;
  border: 1px solid transparent;
  font-size: 0.74rem;
  color: var(--muted);
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(247, 196, 52, 0.08);
  outline: none;
}

main,
.site-footer {
  width: var(--content-width);
  margin: 0 auto;
}

.section {
  padding: 2.6rem 0;
  scroll-margin-top: 8.25rem;
}

.home-stack {
  padding-top: 0.5rem;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.eyebrow,
.metric-label,
.core-label,
.detail-kicker,
.frame-kicker,
.stack-kicker,
.contact-label,
.featured-kicker,
.slider-index {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
}

.section-heading h2,
.hero h1,
.map-detail h3,
.feature-copy h3,
.frame-copy h3,
.contact-copy h2,
.timeline-card h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  margin: 0.45rem 0 0;
  max-width: 14ch;
  font-size: clamp(1.8rem, 3.4vw, 3.15rem);
  line-height: 0.98;
}

.section-copy,
.hero-intro,
.metric-card p,
.map-core p,
.map-detail p,
.frame-copy p,
.timeline-card p,
.stack-card p,
.contact-copy p {
  color: var(--muted);
}

.hero {
  min-height: min(86vh, 860px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
  padding: 0.44rem 0.72rem;
  border: 1px solid var(--line-strong);
  background: rgba(247, 196, 52, 0.08);
  color: var(--accent);
  font-size: 0.78rem;
}

.meta-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(247, 196, 52, 0.34);
}

.hero h1 {
  margin: 0.9rem 0 0;
  max-width: 11.8ch;
  font-size: clamp(2.3rem, 4.9vw, 4.45rem);
  line-height: 0.95;
  text-wrap: balance;
}

.spark-word {
  display: inline-block;
  color: var(--accent-strong);
  text-shadow: 0 0 16px rgba(247, 196, 52, 0.12);
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.spark-word:hover,
.burst-target:hover .spark-word,
.spark-word.is-energized {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(247, 196, 52, 0.28);
  transform: translateY(-1px);
}

.hero-intro {
  max-width: 61ch;
  margin: 1rem 0 0;
  font-size: 0.98rem;
}

.hero-metrics {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.metric-card,
.map-core,
.map-node,
.map-detail-shell,
.frame-card,
.timeline-card,
.stack-card,
.contact-card,
.feature-stage,
.feature-rail {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--shadow);
  backdrop-filter: blur(14px);
}

.metric-card {
  min-height: 100%;
  padding: 0.95rem;
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.metric-card:hover,
.metric-card:focus-within {
  border-color: var(--line-strong);
}

.metric-card strong {
  display: block;
  margin: 0.45rem 0 0.28rem;
  font-size: 1rem;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.45rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-line {
  position: relative;
  width: 2.9rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(247, 196, 52, 0.18), rgba(247, 196, 52, 0.82));
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -0.16rem;
  right: -0.18rem;
  width: 0.44rem;
  height: 0.44rem;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(247, 196, 52, 0.4);
  animation: cue-drift 2.2s ease-in-out infinite;
}

.hero-visual {
  min-height: 620px;
  display: grid;
  place-items: center;
  padding-top: 0.8rem;
}

.portrait-lab {
  --mx: 0;
  --my: 0;
  position: relative;
  width: min(700px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.portrait-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portrait-link {
  fill: none;
  stroke: rgba(247, 196, 52, 0.16);
  stroke-width: 0.28;
  stroke-dasharray: 2.6 2.2;
  animation: dash-drift 8s linear infinite;
}

.portrait-rings,
.portrait-grid,
.portrait-scan,
.portrait-beam,
.portrait-layer {
  position: absolute;
  inset: 0;
}

.portrait-rings {
  inset: 10%;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 44px rgba(125, 199, 255, 0.08), inset 0 0 30px rgba(247, 196, 52, 0.04);
}

.ring-a {
  animation: pulse-ring 8.6s linear infinite;
}

.ring-b {
  inset: 9%;
  border-style: dashed;
  animation: spin-slow 18s linear infinite reverse;
}

.ring-c {
  inset: 18%;
  opacity: 0.7;
  animation: spin-slow 12.5s linear infinite;
}

.portrait-shell {
  position: relative;
  width: min(400px, 70%);
  aspect-ratio: 0.92 / 1.1;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0f12;
  transform:
    perspective(1100px)
    rotateX(calc(var(--my) * -4deg))
    rotateY(calc(var(--mx) * 5deg));
  box-shadow:
    0 26px 74px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(125, 199, 255, 0.06);
}

.portrait-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(140deg, rgba(247, 196, 52, 0.86), rgba(125, 199, 255, 0.3), rgba(247, 196, 52, 0.52));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.portrait-layer {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-base {
  filter: grayscale(100%) contrast(1.15) brightness(0.84);
}

.portrait-cyan,
.portrait-warm {
  mix-blend-mode: screen;
  opacity: 0.34;
}

.portrait-cyan {
  transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 11px));
  filter:
    grayscale(100%)
    contrast(1.2)
    brightness(1.06)
    sepia(1)
    hue-rotate(132deg)
    saturate(2.2);
}

.portrait-warm {
  transform: translate(calc(var(--mx) * -10px), calc(var(--my) * -9px));
  filter:
    grayscale(100%)
    contrast(1.12)
    brightness(0.96)
    sepia(1)
    hue-rotate(320deg)
    saturate(1.9);
}

.portrait-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mix-blend-mode: screen;
  opacity: 0.22;
}

.portrait-scan {
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0 5px,
    rgba(247, 196, 52, 0.08) 5px 6px
  );
  opacity: 0.34;
  animation: scan-pan 8s linear infinite;
}

.portrait-beam {
  background: linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, 0.14) 38%, transparent 52%);
  transform: translateX(-120%);
  animation: beam-sweep 7.2s ease-in-out infinite;
}

.orbit-tag {
  position: absolute;
  padding: 0.4rem 0.66rem;
  border: 1px solid rgba(247, 196, 52, 0.2);
  background: rgba(7, 9, 12, 0.78);
  color: var(--accent);
  font-size: 0.7rem;
  box-shadow: var(--shadow);
  animation: orbit-float 5.8s ease-in-out infinite;
}

.orbit-tag-a {
  top: 16%;
  left: 4%;
}

.orbit-tag-b {
  top: 18%;
  right: 2%;
}

.orbit-tag-c {
  bottom: 15%;
  left: 7%;
}

.orbit-tag-d {
  bottom: 18%;
  right: 8%;
}

.orbit-tag-e {
  top: 40%;
  left: 1%;
}

.orbit-tag-f {
  bottom: 6%;
  left: 38%;
}

.orbit-tag-g {
  top: 54%;
  right: -1%;
}

.orbit-tag-h {
  top: 2%;
  left: 36%;
}

.orbit-tag-i {
  bottom: -2%;
  right: 22%;
}

.orbit-tag-b,
.orbit-tag-e,
.orbit-tag-h {
  animation-delay: -1.2s;
}

.orbit-tag-c,
.orbit-tag-f,
.orbit-tag-i {
  animation-delay: -2.4s;
}

.orbit-tag-d,
.orbit-tag-g {
  animation-delay: -3.1s;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.44fr);
  gap: 1rem;
  align-items: stretch;
}

.feature-stage {
  overflow: hidden;
}

.feature-media {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(6, 7, 9, 0.14) 52%, rgba(6, 7, 9, 0.84)),
    radial-gradient(circle at top right, rgba(247, 196, 52, 0.12), transparent 30%);
}

.feature-media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.feature-copy {
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
}

.feature-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.feature-copy h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 0.96;
}

.feature-tone {
  margin: 0;
  color: var(--accent-cold);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.feature-rail {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 0.65rem;
}

.thumb-button {
  width: 100%;
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(15, 17, 20, 0.96);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.thumb-button strong {
  display: block;
  font-size: 0.96rem;
}

.thumb-button small {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.thumb-button:hover,
.thumb-button:focus-visible,
.thumb-button.is-active {
  border-color: var(--line-strong);
  background: rgba(247, 196, 52, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-row span {
  padding: 0.42rem 0.68rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.86rem;
}

.chip-row.compact span {
  font-size: 0.8rem;
}

.skill-morph-grid {
  display: flex;
  gap: 0.85rem;
  min-height: 560px;
}

.skill-morph-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  transition:
    flex-grow 320ms ease,
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.skill-morph-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005)),
    radial-gradient(circle at top right, rgba(247, 196, 52, 0.1), transparent 34%);
  z-index: 1;
  pointer-events: none;
}

.skill-morph-card.is-active {
  flex-grow: 2.4;
  border-color: var(--line-strong);
}

.skill-morph-card:hover,
.skill-morph-card:focus-within {
  transform: translateY(-2px);
}

.skill-morph-media,
.skill-morph-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.skill-morph-media img {
  object-fit: cover;
  filter: grayscale(24%) saturate(0.82) brightness(0.5);
  transition: transform 320ms ease, filter 320ms ease;
}

.skill-morph-card.is-active .skill-morph-media img {
  transform: scale(1.04);
  filter: grayscale(0%) saturate(1) brightness(0.62);
}

.skill-morph-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(6, 8, 10, 0.08), rgba(6, 8, 10, 0.92) 72%);
}

.skill-morph-copy h3 {
  margin: 0.45rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  line-height: 1;
}

.skill-morph-copy > p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.skill-morph-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition:
    max-height 320ms ease,
    opacity 240ms ease,
    transform 320ms ease;
}

.skill-morph-card.is-active .skill-morph-detail {
  max-height: 16rem;
  opacity: 1;
  transform: translateY(0);
}

.skill-morph-detail p {
  margin: 0.8rem 0 0;
  color: var(--text);
}

.skill-morph-detail .chip-row {
  margin-top: 0.85rem;
}

.map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 1rem;
  align-items: stretch;
}

.map-stage {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(247, 196, 52, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow: var(--shadow);
}

.map-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
}

.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.4;
  stroke-dasharray: 8 10;
  transition: stroke 220ms ease, stroke-width 220ms ease, opacity 220ms ease;
}

.map-stage[data-active="previs"] .line-previs,
.map-stage[data-active="mapping"] .line-mapping,
.map-stage[data-active="vp"] .line-vp,
.map-stage[data-active="events"] .line-events,
.map-stage[data-active="feasibility"] .line-feasibility,
.map-stage[data-active="troubleshooting"] .line-troubleshooting {
  stroke: rgba(247, 196, 52, 0.76);
  stroke-width: 2.3;
  opacity: 1;
}

.map-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(290px, calc(100% - 4rem));
  padding: 1rem;
  transform: translate(-50%, -50%);
  text-align: center;
}

.map-core strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.08rem;
}

.map-core p {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
}

.map-node {
  position: absolute;
  width: 11.6rem;
  padding: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.map-node span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-node strong {
  display: block;
  font-size: 0.95rem;
}

.map-node:hover,
.map-node:focus-visible,
.map-node.is-active {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(247, 196, 52, 0.08), rgba(255, 255, 255, 0.01)),
    var(--panel-strong);
  outline: none;
}

.node-previs {
  top: 8%;
  left: 8%;
}

.node-mapping {
  top: 9%;
  right: 7%;
}

.node-vp {
  top: 43%;
  right: 3%;
}

.node-events {
  bottom: 9%;
  right: 11%;
}

.node-feasibility {
  bottom: 10%;
  left: 8%;
}

.node-troubleshooting {
  top: 43%;
  left: 3%;
}

.map-detail-shell {
  padding: 1.15rem;
  overflow: hidden;
}

.map-detail {
  display: none;
}

.map-detail.is-active {
  display: block;
}

.map-detail h3 {
  margin: 0.55rem 0 0.7rem;
  font-size: clamp(1.4rem, 2vw, 2.05rem);
  line-height: 0.96;
}

.map-detail p {
  margin: 0;
}

.frames-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.frame-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  transform: translate3d(0, 0, 0);
}

.frame-tilt {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 180ms ease;
}

.frame-toolbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(7, 8, 9, 0.92), rgba(7, 8, 9, 0.34));
}

.frame-toolbar::before {
  content: "";
  width: 2.4rem;
  height: 0.42rem;
  background:
    linear-gradient(90deg,
      rgba(247, 196, 52, 0.9) 0 0.42rem,
      transparent 0.42rem 0.6rem,
      rgba(255, 255, 255, 0.34) 0.6rem 1.02rem,
      transparent 1.02rem 1.2rem,
      rgba(125, 199, 255, 0.9) 1.2rem 1.62rem,
      transparent 1.62rem);
}

.frame-window-label {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.frame-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.frame-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(4, 6, 8, 0.22) 56%, rgba(4, 6, 8, 0.92));
}

.frame-card:hover img,
.frame-card:focus-within img {
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.03);
}

.frame-copy {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
}

.frame-copy h3 {
  margin: 0.4rem 0 0.35rem;
  max-width: 16ch;
  font-size: clamp(1.02rem, 1.6vw, 1.38rem);
  line-height: 1;
}

.frame-copy p {
  margin: 0;
  max-width: 28ch;
  font-size: 0.9rem;
}

.frame-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.frame-a {
  grid-column: span 5;
  min-height: 420px;
}

.frame-b {
  grid-column: span 7;
  min-height: 380px;
}

.frame-c,
.frame-d,
.frame-e {
  grid-column: span 4;
  min-height: 340px;
}

.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(320px, 0.42fr);
  gap: 1rem;
}

.timeline-stack {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline-stack::before {
  content: "";
  position: absolute;
  left: 4.72rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(247, 196, 52, 0.28), rgba(247, 196, 52, 0.03));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-year {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.timeline-year::after {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(247, 196, 52, 0.34);
}

.timeline-card {
  padding: 1rem 1.05rem;
}

.timeline-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.resume-side {
  display: grid;
  gap: 1rem;
}

.stack-card {
  padding: 1rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.logo-card {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.68rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.logo-card img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.08);
}

.logo-card span {
  font-size: 0.86rem;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 86% 14%, rgba(247, 196, 52, 0.08), transparent 34%),
    radial-gradient(circle at 18% 88%, rgba(125, 199, 255, 0.08), transparent 30%),
    var(--panel);
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  margin: 0.45rem 0 0.7rem;
  max-width: 13ch;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 0.96;
}

.contact-card {
  display: grid;
  gap: 0.34rem;
  align-content: start;
  padding: 1.05rem;
}

.contact-link {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.72rem 0.92rem;
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background-color 170ms ease,
    color 170ms ease,
    box-shadow 170ms ease;
}

.btn:hover,
.btn:focus-visible,
.contact-link:hover,
.contact-link:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  border-color: rgba(247, 196, 52, 0.28);
  background: linear-gradient(135deg, rgba(247, 196, 52, 0.18), rgba(247, 196, 52, 0.08));
  color: var(--accent-strong);
  box-shadow: 0 14px 36px rgba(247, 196, 52, 0.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.text-link {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer code {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 440ms ease, transform 480ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-shatter] {
  display: inline-block;
  white-space: pre-wrap;
}

.shatter-piece {
  display: inline-block;
  transform: translate3d(0, 0, 0) rotate(0deg);
  opacity: 1;
  filter: blur(0);
  transition:
    transform 360ms cubic-bezier(.2,.9,.2,1),
    color 260ms ease,
    opacity 260ms ease,
    filter 260ms ease;
}

.shatter-piece.is-lasered {
  color: #fff;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.78),
    0 0 30px rgba(247, 196, 52, 0.42);
  transform: translate3d(0, -1px, 0) scale(1.08);
}

[data-shatter].is-shattering .shatter-piece {
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0) rotate(var(--rot, 0deg));
  color: var(--accent);
  opacity: var(--op, 0.55);
  filter: blur(var(--blur, 4px));
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 6, 8, 0.8);
  backdrop-filter: blur(14px);
}

.video-modal__panel {
  width: min(1100px, 100%);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(9, 10, 12, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.56);
}

.video-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.video-modal__title {
  color: var(--text);
  font-size: 0.78rem;
}

.video-modal__close {
  min-height: 2rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.video-modal__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #050607;
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.026);
    opacity: 1;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes scan-pan {
  from {
    transform: translateY(-14%);
  }
  to {
    transform: translateY(14%);
  }
}

@keyframes beam-sweep {
  0%,
  18% {
    transform: translateX(-120%);
  }
  36%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes cue-drift {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.9;
  }
  50% {
    transform: translateX(0.56rem);
    opacity: 1;
  }
}

@keyframes particle-burst {
  from {
    opacity: 0.96;
    transform: translate3d(var(--dx-start, 0), var(--dy-start, 0), 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(var(--dx-end, 0), var(--dy-end, 0), 0) scale(0.2);
  }
}

@keyframes beam-shot {
  0% {
    opacity: 0;
    transform: rotate(var(--beam-angle, 0deg)) scaleX(0.06);
  }
  20% {
    opacity: 1;
    transform: rotate(var(--beam-angle, 0deg)) scaleX(1.02);
  }
  100% {
    opacity: 0;
    transform: rotate(var(--beam-angle, 0deg)) scaleX(1.04);
  }
}

@keyframes impact-pulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.24);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(1.56);
  }
}

@keyframes orbit-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@keyframes dash-drift {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 14;
  }
}

.bg-scanfield,
.bg-orbits {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-scanfield {
  z-index: -4;
  opacity: 0.1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%, rgba(255, 255, 255, 0.012) 50%, transparent 76%),
    repeating-linear-gradient(180deg, transparent 0 24px, rgba(125, 199, 255, 0.035) 24px 25px);
  mix-blend-mode: screen;
  animation: scanfield-drift 18s linear infinite;
}

.bg-orbits {
  z-index: -4;
  background:
    radial-gradient(circle at 20% 18%, rgba(125, 199, 255, 0.1), transparent 0 18%),
    radial-gradient(circle at 78% 34%, rgba(247, 196, 52, 0.08), transparent 0 16%),
    radial-gradient(circle at 60% 72%, rgba(255, 153, 102, 0.06), transparent 0 12%);
  filter: blur(40px);
  opacity: 0.45;
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.8rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(247, 196, 52, 0), rgba(247, 196, 52, 0.9), rgba(125, 199, 255, 0));
  transform: scaleX(0.32);
  transform-origin: left center;
  transition: transform 220ms ease, opacity 220ms ease;
  opacity: 0.5;
}

.metric-card:hover,
.metric-card:focus-within {
  transform: translateY(-4px) scale(1.01);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(14, 16, 19, 0.92);
}

.metric-card:hover::after,
.metric-card:focus-within::after {
  transform: scaleX(1);
  opacity: 1;
}

.hero-visual {
  overflow: visible;
}

.portrait-lab {
  overflow: visible;
}

.hero-system-panel,
.hero-reel-panel,
.atlas-card,
.gallery-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.006)),
    rgba(10, 12, 15, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-system-panel {
  position: absolute;
  right: 0;
  bottom: 18%;
  z-index: 3;
  width: min(270px, 42%);
  padding: 0.95rem;
}

.hero-system-label {
  margin: 0;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-system-panel strong {
  display: block;
  margin-top: 0.42rem;
  font-size: 1rem;
}

.hero-system-panel p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-system-panel .chip-row {
  margin-top: 0.75rem;
}

.hero-reel-panel {
  position: absolute;
  left: -1%;
  bottom: 8%;
  z-index: 3;
  width: min(340px, 48%);
  min-height: 222px;
  overflow: hidden;
  cursor: pointer;
}

.hero-reel-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 26%, rgba(4, 6, 8, 0.18) 58%, rgba(4, 6, 8, 0.92));
  pointer-events: none;
}

.hero-reel-video {
  width: 100%;
  height: 100%;
  min-height: 222px;
  object-fit: cover;
  opacity: 0.92;
  filter: saturate(1.02) contrast(1.03) brightness(0.88);
}

.hero-reel-copy {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.85rem;
  z-index: 1;
}

.hero-reel-copy h3 {
  margin: 0.42rem 0 0;
  max-width: 13ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.16rem;
  line-height: 0.98;
}

.orbit-tag {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.orbit-tag.is-active {
  animation: none;
  transform: translate3d(var(--pull-x, 0), var(--pull-y, 0), 0) scale(1.08);
  border-color: rgba(247, 196, 52, 0.65);
  color: var(--accent-strong);
  background: rgba(13, 15, 18, 0.96);
  box-shadow: 0 0 26px rgba(247, 196, 52, 0.18), var(--shadow);
}

.feature-atlas {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.atlas-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
}

.atlas-card:nth-child(1),
.atlas-card:nth-child(6) {
  grid-column: span 2;
  min-height: 320px;
}

.atlas-card__tilt,
.gallery-card__tilt {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 180ms ease;
}

.atlas-card img,
.gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}

.atlas-card::after,
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 9, 0.04), transparent 28%, rgba(6, 7, 9, 0.9)),
    radial-gradient(circle at top right, rgba(247, 196, 52, 0.12), transparent 28%);
  pointer-events: none;
}

.atlas-card:hover img,
.gallery-card:hover img,
.atlas-card:focus-within img,
.gallery-card:focus-within img {
  transform: scale(1.05);
  filter: saturate(1.04) contrast(1.04);
}

.atlas-card__copy,
.gallery-card__copy {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
}

.atlas-card__copy h3,
.gallery-card__copy h3,
.gallery-heading h3 {
  margin: 0.42rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.atlas-card__copy h3 {
  max-width: 15ch;
  font-size: 1.24rem;
}

.atlas-card__copy p,
.gallery-card__copy p,
.gallery-heading p {
  margin: 0.45rem 0 0;
}

.worked-marquee {
  position: relative;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.006)),
    rgba(10, 12, 15, 0.84);
}

.worked-marquee::before,
.worked-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 1;
}

.worked-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(6, 7, 8, 1), rgba(6, 7, 8, 0));
}

.worked-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(6, 7, 8, 1), rgba(6, 7, 8, 0));
}

.worked-marquee__track {
  display: flex;
  width: max-content;
  gap: 0.65rem;
  padding: 0.8rem;
  animation: marquee-slide 34s linear infinite;
}

.worked-marquee__track span {
  padding: 0.46rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.worked-marquee:hover .worked-marquee__track {
  animation-play-state: paused;
}

.skill-morph-grid {
  display: grid;
  gap: 0.8rem;
  min-height: auto;
}

.skill-morph-card {
  min-height: 116px;
  display: block;
  flex: none;
}

.skill-morph-card.is-active {
  min-height: 268px;
  flex: none;
}

.skill-morph-copy {
  justify-content: space-between;
  padding: 1.05rem;
  background: linear-gradient(90deg, rgba(6, 8, 10, 0.28) 0, rgba(6, 8, 10, 0.72) 26%, rgba(6, 8, 10, 0.95) 62%);
}

.skill-morph-head {
  max-width: 52rem;
}

.skill-morph-copy h3 {
  max-width: 18ch;
  font-size: clamp(1.14rem, 1.6vw, 1.68rem);
}

.skill-morph-copy > p,
.skill-morph-head > p {
  max-width: 44rem;
}

.skill-morph-detail {
  max-width: 44rem;
}

.skill-morph-card.is-active .skill-morph-detail {
  max-height: 20rem;
}

.frame-copy p {
  max-width: 34ch;
}

.gallery-shell {
  margin-top: 1.3rem;
  display: grid;
  gap: 1rem;
}

.gallery-heading h3 {
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  max-width: 16ch;
}

.signal-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.gallery-card:nth-child(1),
.gallery-card:nth-child(4),
.gallery-card:nth-child(7) {
  grid-column: span 2;
  min-height: 340px;
}

.gallery-card__number {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  z-index: 2;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.gallery-card__copy h3 {
  max-width: 15ch;
  font-size: 1.18rem;
}

@keyframes scanfield-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(24px);
  }
}

@keyframes marquee-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.333%);
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .brand-line {
    white-space: normal;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .feature-layout,
  .resume-grid,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: 620px;
  }

  .feature-media,
  .feature-media img {
    min-height: 400px;
  }
}

@media (max-width: 860px) {
  :root {
    --content-width: min(1320px, calc(100vw - 1rem));
  }

  .section {
    padding: 2rem 0;
  }

  .hero {
    min-height: auto;
    gap: 1.3rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.9rem);
  }

  .hero-metrics,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .skill-morph-grid {
    flex-direction: column;
    min-height: auto;
  }

  .skill-morph-card,
  .skill-morph-card.is-active {
    min-height: 240px;
    flex-basis: auto;
  }

  .skill-morph-detail {
    max-height: 16rem;
    opacity: 1;
    transform: none;
  }

  .hero-visual {
    min-height: 500px;
  }

  .portrait-shell {
    width: min(340px, 80%);
  }

  .hero-note {
    position: static;
    max-width: none;
    margin-top: 0.8rem;
  }

  .frames-grid {
    grid-template-columns: 1fr;
  }

  .frame-a,
  .frame-b,
  .frame-c,
  .frame-d,
  .frame-e {
    grid-column: span 1;
    min-height: 300px;
  }

  .timeline-stack::before {
    left: 0.3rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-left: 1.2rem;
  }

  .timeline-year::after {
    position: absolute;
    left: -1.2rem;
  }
}

@media (max-width: 720px) {
  .site-nav a {
    padding: 0.42rem 0.62rem;
    font-size: 0.7rem;
  }

  .feature-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-visual {
    min-height: 430px;
  }

  .portrait-shell {
    width: min(290px, 84%);
  }

  .orbit-tag {
    font-size: 0.62rem;
    padding: 0.34rem 0.54rem;
  }

  .orbit-tag-e,
  .orbit-tag-f,
  .orbit-tag-g,
  .orbit-tag-h,
  .orbit-tag-i {
    display: none;
  }

  .contact-actions,
  .feature-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-media,
  .feature-media img {
    min-height: 310px;
  }
}

@media (max-width: 1120px) {
  .hero-visual {
    min-height: 720px;
  }

  .feature-atlas,
  .signal-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-system-panel {
    right: 1rem;
    bottom: 12%;
  }

  .hero-reel-panel {
    left: 0;
    bottom: 2%;
  }
}

@media (max-width: 860px) {
  .hero-visual {
    min-height: 720px;
  }

  .skill-morph-card,
  .skill-morph-card.is-active {
    min-height: 240px;
  }

  .hero-system-panel,
  .hero-reel-panel {
    position: static;
    width: 100%;
    max-width: none;
  }

  .hero-reel-panel {
    min-height: 200px;
    margin-top: 1rem;
  }

  .feature-atlas,
  .signal-gallery {
    grid-template-columns: 1fr;
  }

  .atlas-card:nth-child(1),
  .atlas-card:nth-child(6),
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(4),
  .gallery-card:nth-child(7) {
    grid-column: span 1;
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .portrait-lab {
    aspect-ratio: auto;
  }

  .feature-copy h3 {
    font-size: 1.36rem;
  }

  .hero-system-panel,
  .hero-reel-copy,
  .atlas-card__copy,
  .gallery-card__copy {
    left: 0.8rem;
    right: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .bg-glow,
  #bg-canvas {
    display: none;
  }
}

/* Current sci-fi root pass overrides */

.bg-grid {
  opacity: 0.8;
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 16%, black 28%, transparent 82%);
}

.bg-scanfield {
  opacity: 0.18;
}

.bg-orbits {
  opacity: 0.62;
  filter: blur(28px);
}

.glow-a {
  width: 30rem;
  height: 30rem;
}

.glow-b {
  width: 26rem;
  height: 26rem;
}

.home-stack {
  position: relative;
  padding-top: 0.2rem;
}

.home-stack::before {
  content: "";
  position: absolute;
  left: -6vw;
  right: -6vw;
  top: 2rem;
  height: min(70vh, 760px);
  border-top: 1px solid rgba(247, 196, 52, 0.12);
  border-bottom: 1px solid rgba(125, 199, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(247, 196, 52, 0.08), transparent 16%, transparent 84%, rgba(125, 199, 255, 0.08)),
    radial-gradient(circle at 68% 34%, rgba(125, 199, 255, 0.08), transparent 24%),
    radial-gradient(circle at 28% 52%, rgba(247, 196, 52, 0.05), transparent 26%);
  pointer-events: none;
  opacity: 0.9;
}

.hero {
  position: relative;
  min-height: min(78vh, 780px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.4rem;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 2.2rem 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(247, 196, 52, 0), rgba(247, 196, 52, 0.34), rgba(125, 199, 255, 0.22), rgba(247, 196, 52, 0));
  pointer-events: none;
}

.hero-copy {
  padding-top: 0.45rem;
}

.hero h1 {
  max-width: 10.4ch;
}

.hero-intro {
  max-width: 56ch;
}

.hero-metrics {
  margin-top: 1.15rem;
  gap: 0.75rem;
}

.metric-card {
  position: relative;
  min-height: 100%;
  padding: 1rem 1rem 1.1rem;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.045);
  clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 1rem 100%, 0 calc(100% - 1rem));
  pointer-events: none;
}

.metric-card:hover,
.metric-card:focus-within {
  transform: translateY(-5px) scale(1.012);
}

.metric-card strong {
  font-size: 1.06rem;
}

.hero-visual {
  min-height: 660px;
  padding-top: 0;
}

.portrait-lab {
  width: min(760px, 100%);
  aspect-ratio: 1 / 1;
}

.portrait-links {
  filter: drop-shadow(0 0 12px rgba(247, 196, 52, 0.08));
}

.portrait-link {
  stroke-width: 0.36;
}

.portrait-link-fine {
  stroke: rgba(125, 199, 255, 0.26);
  stroke-width: 0.24;
  opacity: 0.92;
}

.portrait-hud,
.portrait-reticle {
  position: absolute;
  pointer-events: none;
}

.portrait-hud {
  border: 1px solid rgba(255, 255, 255, 0.08);
  mix-blend-mode: screen;
}

.portrait-hud::before,
.portrait-hud::after,
.portrait-reticle::before,
.portrait-reticle::after {
  content: "";
  position: absolute;
  background: rgba(247, 196, 52, 0.4);
}

.portrait-hud-a {
  inset: 10% 14% 14% 8%;
  transform: rotate(-8deg);
  border-color: rgba(125, 199, 255, 0.16);
  clip-path: polygon(8% 0, 100% 0, 100% 82%, 92% 100%, 0 100%, 0 18%);
}

.portrait-hud-b {
  inset: 16% 10% 10% 14%;
  transform: rotate(7deg);
  border-color: rgba(247, 196, 52, 0.16);
  clip-path: polygon(0 0, 92% 0, 100% 18%, 100% 100%, 8% 100%, 0 82%);
}

.portrait-hud-a::before,
.portrait-hud-b::before {
  top: 1rem;
  left: 1rem;
  width: 3.6rem;
  height: 1px;
}

.portrait-hud-a::after,
.portrait-hud-b::after {
  right: 1rem;
  bottom: 1rem;
  width: 1px;
  height: 3.6rem;
}

.portrait-reticle {
  inset: 28%;
  border: 1px solid rgba(247, 196, 52, 0.18);
  clip-path: polygon(16% 0, 84% 0, 100% 16%, 100% 84%, 84% 100%, 16% 100%, 0 84%, 0 16%);
  animation: spin-slow 20s linear infinite;
}

.portrait-reticle::before {
  left: 50%;
  top: -2rem;
  width: 1px;
  height: calc(100% + 4rem);
  transform: translateX(-50%);
}

.portrait-reticle::after {
  top: 50%;
  left: -2rem;
  width: calc(100% + 4rem);
  height: 1px;
  transform: translateY(-50%);
}

.portrait-shell {
  width: min(420px, 69%);
  aspect-ratio: 0.88 / 1.08;
  border: 1px solid rgba(247, 196, 52, 0.22);
  clip-path: polygon(14% 0, 86% 0, 100% 16%, 100% 84%, 86% 100%, 14% 100%, 0 84%, 0 16%);
  background:
    radial-gradient(circle at 50% 14%, rgba(125, 199, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(15, 18, 22, 0.96), rgba(8, 10, 12, 0.98));
  transform:
    perspective(1400px)
    rotateX(calc(var(--my) * -5.5deg))
    rotateY(calc(var(--mx) * 7deg));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.56),
    0 0 140px rgba(125, 199, 255, 0.08),
    inset 0 0 44px rgba(247, 196, 52, 0.06);
}

.portrait-shell::before {
  inset: 0;
  padding: 1px;
  background: linear-gradient(145deg, rgba(247, 196, 52, 0.9), rgba(125, 199, 255, 0.28), rgba(247, 196, 52, 0.52));
}

.portrait-shell::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(125, 199, 255, 0.15);
  clip-path: polygon(14% 0, 86% 0, 100% 16%, 100% 84%, 86% 100%, 14% 100%, 0 84%, 0 16%);
  pointer-events: none;
}

.portrait-base {
  filter: grayscale(100%) contrast(1.18) brightness(0.78);
}

.portrait-cyan,
.portrait-warm {
  opacity: 0.42;
}

.portrait-cyan {
  transform: translate(calc(var(--mx) * 18px), calc(var(--my) * 14px));
}

.portrait-warm {
  transform: translate(calc(var(--mx) * -14px), calc(var(--my) * -11px));
}

.portrait-grid {
  background-size: 18px 18px;
  opacity: 0.26;
}

.portrait-scan {
  opacity: 0.48;
}

.portrait-beam {
  animation-duration: 5.8s;
}

.orbit-tag {
  padding: 0.38rem 0.6rem;
  border-color: rgba(247, 196, 52, 0.24);
  background: rgba(6, 9, 12, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
}

.orbit-tag::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 50%;
  width: 0.3rem;
  height: 0.3rem;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(247, 196, 52, 0.34);
}

.orbit-tag {
  padding-left: 0.95rem;
}

.orbit-tag.is-active {
  transform: translate3d(var(--pull-x, 0), var(--pull-y, 0), 0) scale(1.06);
}

.section-heading h2 {
  max-width: 16ch;
}

.feature-layout {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-stage {
  padding: 1rem;
}

.feature-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(320px, 0.78fr);
  gap: 1rem;
}

.feature-media,
.feature-dock {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.004)),
    rgba(7, 9, 12, 0.98);
}

.feature-media {
  min-height: 520px;
}

.feature-media::before,
.feature-dock::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 16%, rgba(6, 8, 10, 0.16) 60%, rgba(6, 8, 10, 0.85)),
    radial-gradient(circle at top right, rgba(247, 196, 52, 0.12), transparent 28%);
  pointer-events: none;
  z-index: 1;
}

.feature-media img {
  min-height: 520px;
  transition: transform 360ms ease, filter 360ms ease;
}

.feature-stage:hover .feature-media img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.03);
}

.feature-dock {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 520px;
}

.feature-dock[data-mode="video"] .feature-dock__video,
.feature-dock[data-mode="image"] .feature-dock__image {
  z-index: 0;
}

.feature-dock__bar,
.media-modal__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(7, 8, 9, 0.96), rgba(7, 8, 9, 0.68));
}

.feature-dock__video,
.feature-dock__image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.9);
}

.feature-dock__copy {
  position: relative;
  z-index: 2;
  padding: 0.88rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(6, 8, 10, 0.2), rgba(6, 8, 10, 0.94));
}

.feature-dock__copy p {
  margin: 0;
}

.feature-dock__copy p + p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.feature-copy {
  gap: 0.8rem;
  padding: 1rem 0 0;
}

.feature-copy h3 {
  max-width: 14ch;
  font-size: clamp(1.78rem, 3vw, 2.86rem);
}

.feature-summary,
#feature-summary {
  max-width: 62ch;
}

.feature-actions {
  margin-top: 0.1rem;
}

.btn,
.dock-open {
  min-height: 2.5rem;
  padding: 0.72rem 0.92rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn:hover,
.btn:focus-visible,
.dock-open:hover,
.dock-open:focus-visible {
  box-shadow: 0 0 0 1px rgba(247, 196, 52, 0.14), 0 16px 34px rgba(0, 0, 0, 0.28);
}

.dock-open {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.feature-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.thumb-button--feature {
  position: relative;
  min-height: 156px;
  padding: 0;
  overflow: hidden;
  align-content: end;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 15, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--shadow);
}

.thumb-button--feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.66;
  transition: transform 260ms ease, opacity 260ms ease, filter 260ms ease;
}

.thumb-button--feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 10, 0.02), rgba(6, 8, 10, 0.1) 28%, rgba(6, 8, 10, 0.94)),
    linear-gradient(90deg, rgba(247, 196, 52, 0.1), transparent 28%, transparent 72%, rgba(125, 199, 255, 0.08));
}

.thumb-button__copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: 100%;
  gap: 0.28rem;
  padding: 0.9rem;
}

.thumb-button--feature strong {
  font-size: 0.94rem;
}

.thumb-button--feature small {
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.thumb-button--feature:hover img,
.thumb-button--feature:focus-visible img,
.thumb-button--feature.is-active img {
  transform: scale(1.05);
  opacity: 0.84;
  filter: saturate(1.04);
}

.thumb-button--feature:hover,
.thumb-button--feature:focus-visible,
.thumb-button--feature.is-active {
  border-color: rgba(247, 196, 52, 0.34);
  transform: translateY(-2px);
}

.feature-atlas {
  margin-top: 1.15rem;
}

.frame-tilt,
.atlas-card__tilt,
.gallery-card__tilt,
.feature-dock {
  cursor: pointer;
}

.frame-card,
.atlas-card,
.gallery-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.frame-card::before,
.atlas-card::before,
.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 1;
}

.gallery-shell {
  margin-top: 1.5rem;
}

.gallery-heading h3 {
  max-width: 18ch;
}

.media-modal[hidden] {
  display: none;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 5, 8, 0.86);
  backdrop-filter: blur(14px);
}

.media-modal__panel {
  width: min(1280px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid var(--line-strong);
  background: rgba(8, 10, 12, 0.97);
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.58);
}

.media-modal__image,
.media-modal__video {
  width: 100%;
  max-height: min(78vh, 880px);
  background: #050607;
  object-fit: contain;
}

.media-modal__caption {
  margin: 0;
  padding: 0.95rem 1rem 1rem;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-visual {
    order: -1;
    min-height: 620px;
  }

  .feature-stage-grid {
    grid-template-columns: 1fr;
  }

  .feature-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }
}

@media (max-width: 860px) {
  .home-stack::before {
    left: -2vw;
    right: -2vw;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 560px;
  }

  .portrait-shell {
    width: min(360px, 72%);
  }

  .feature-stage {
    padding: 0.85rem;
  }

  .feature-media {
    min-height: 360px;
  }

  .feature-media img {
    min-height: 360px;
  }

  .feature-dock {
    min-height: 300px;
  }

  .feature-rail {
    grid-template-columns: 1fr;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .hero-visual {
    min-height: 430px;
  }

  .portrait-shell {
    width: min(292px, 84%);
  }

  .portrait-hud-a,
  .portrait-hud-b {
    display: none;
  }

  .orbit-tag {
    font-size: 0.58rem;
    padding: 0.3rem 0.44rem 0.3rem 0.84rem;
  }

  .orbit-tag-e,
  .orbit-tag-h,
  .orbit-tag-i {
    display: none;
  }

  .feature-copy h3 {
    font-size: 1.48rem;
  }

  .feature-media,
  .feature-media img {
    min-height: 300px;
  }

  .feature-dock {
    min-height: 260px;
  }

  .feature-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .dock-open {
    width: 100%;
  }
}

/* Launch-ready pass */

.site-header {
  padding: 0.55rem 0 0.7rem;
}

.home-stack::before,
.hero::before {
  display: none;
}

.home-stack {
  padding-top: 0.1rem;
}

.hero {
  min-height: auto;
  align-items: start;
  gap: 0.95rem;
  padding-top: 0.15rem;
}

.hero-copy {
  padding-top: 0;
}

.hero h1 {
  margin-top: 0.55rem;
  max-width: 10.4ch;
}

.hero-intro {
  margin-top: 0.8rem;
  max-width: 57ch;
}

.hero-metrics {
  margin-top: 1rem;
  gap: 0.75rem;
}

.scroll-cue {
  margin-top: 1rem;
}

.hero-visual {
  min-height: 580px;
  align-self: start;
  padding-top: 0;
}

.portrait-lab {
  width: min(760px, 100%);
  aspect-ratio: 1 / 1;
}

.portrait-links,
.portrait-hud-svg {
  transition: transform 140ms ease;
}

.portrait-links {
  opacity: 0.72;
  transform: translate(calc(var(--mx) * 8px), calc(var(--my) * 8px));
}

.portrait-link {
  stroke: rgba(247, 196, 52, 0.16);
  stroke-width: 0.32;
}

.portrait-link-fine {
  stroke: rgba(247, 196, 52, 0.24);
  stroke-width: 0.2;
}

.portrait-hud-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.94;
  mix-blend-mode: screen;
  transform: translate(calc(var(--mx) * 12px), calc(var(--my) * 12px));
  animation: hud-flicker 4.6s steps(3, end) infinite;
}

.hud-ring {
  fill: none;
  stroke: rgba(247, 196, 52, 0.34);
  stroke-width: 2.2;
}

.hud-ring-outer {
  stroke-width: 2.6;
}

.hud-ring-mid {
  stroke-width: 1.8;
}

.hud-ring-inner {
  stroke-width: 1.4;
}

.hud-ring-dash {
  stroke-width: 3.2;
  stroke-dasharray: 7 18;
  transform-origin: 360px 360px;
  animation: spin-slow 18s linear infinite;
}

.hud-ring-dash-b {
  stroke-dasharray: 2 16;
  animation-direction: reverse;
  animation-duration: 14s;
}

.hud-ring-soft {
  stroke-width: 1;
  opacity: 0.28;
}

.hud-guide,
.hud-wave {
  fill: none;
  stroke: rgba(247, 196, 52, 0.48);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.hud-guide {
  opacity: 0.44;
}

.hud-wave {
  opacity: 0.9;
}

.hud-copy,
.hud-arc {
  font-family: "IBM Plex Mono", monospace;
  fill: rgba(247, 196, 52, 0.92);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hud-copy {
  font-size: 12px;
}

.hud-arc-major {
  font-size: 22px;
  font-weight: 600;
}

.hud-arc-secondary {
  font-size: 15px;
  opacity: 0.84;
}

.hud-arc-small {
  font-size: 12px;
  opacity: 0.72;
}

.hud-node {
  fill: var(--accent);
}

.portrait-shell {
  width: min(432px, 72%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  border: 1px solid rgba(247, 196, 52, 0.24);
  background: #0a0c0e;
  transform:
    perspective(1400px)
    rotateX(calc(var(--my) * -5deg))
    rotateY(calc(var(--mx) * 6deg));
  box-shadow:
    0 0 0 1px rgba(247, 196, 52, 0.12),
    0 34px 90px rgba(0, 0, 0, 0.56),
    0 0 120px rgba(247, 196, 52, 0.08);
}

.portrait-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 250, 185, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(247, 196, 52, 0.14), transparent 38%, rgba(247, 196, 52, 0.08)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 6px);
  -webkit-mask: none;
  mask: none;
  mix-blend-mode: screen;
  opacity: 0.36;
  animation: hud-flicker 5.2s steps(2, end) infinite reverse;
}

.portrait-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 60%, rgba(247, 196, 52, 0.1), transparent 54%),
    linear-gradient(125deg, transparent 28%, rgba(255, 255, 255, 0.12) 42%, transparent 54%);
  clip-path: none;
  pointer-events: none;
  mix-blend-mode: screen;
}

.portrait-layer {
  object-fit: cover;
}

.portrait-base {
  filter:
    grayscale(100%)
    contrast(1.22)
    brightness(0.72)
    sepia(1)
    saturate(5.8)
    hue-rotate(-6deg);
}

.portrait-cyan {
  opacity: 0.22;
  transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 12px));
  filter:
    grayscale(100%)
    contrast(1.18)
    brightness(0.9)
    sepia(1)
    saturate(8)
    hue-rotate(10deg);
}

.portrait-warm {
  opacity: 0.26;
  transform: translate(calc(var(--mx) * -12px), calc(var(--my) * -10px));
  filter:
    grayscale(100%)
    contrast(1.16)
    brightness(0.88)
    sepia(1)
    saturate(8)
    hue-rotate(-18deg);
}

.portrait-grid {
  background-size: 16px 16px;
  opacity: 0.12;
}

.portrait-scan {
  opacity: 0.22;
  animation-duration: 4.5s;
}

.portrait-beam {
  opacity: 0.34;
  animation-duration: 4.8s;
}

.orbit-tag {
  z-index: 3;
  animation: none;
  padding: 0.34rem 0.5rem 0.34rem 0.84rem;
  border-color: rgba(247, 196, 52, 0.24);
  background: rgba(8, 10, 12, 0.78);
  color: var(--accent);
  font-size: 0.66rem;
  backdrop-filter: blur(10px);
}

.orbit-tag:hover,
.orbit-tag:focus-visible,
.orbit-tag.is-active {
  animation-play-state: paused;
}

.orbit-tag::before {
  left: 0.36rem;
  width: 0.24rem;
  height: 0.24rem;
}

.orbit-tag-a {
  top: 8%;
  left: 7%;
}

.orbit-tag-b {
  top: 18%;
  right: 2%;
}

.orbit-tag-c {
  bottom: 16%;
  left: 5%;
}

.orbit-tag-d {
  bottom: 18%;
  right: 10%;
}

.orbit-tag-e {
  top: 46%;
  left: -1%;
}

.orbit-tag-f {
  bottom: 6%;
  left: 38%;
}

.orbit-tag-g {
  top: 54%;
  right: -1%;
}

.orbit-tag-h {
  top: 5%;
  left: 38%;
}

.orbit-tag-i {
  bottom: 4%;
  right: 24%;
}

@keyframes hud-flicker {
  0%,
  100% {
    opacity: 0.94;
  }
  9% {
    opacity: 0.82;
  }
  10% {
    opacity: 0.98;
  }
  28% {
    opacity: 0.88;
  }
  29% {
    opacity: 0.95;
  }
  63% {
    opacity: 0.8;
  }
  64% {
    opacity: 0.97;
  }
}

@media (max-width: 1120px) {
  .hero {
    gap: 0.7rem;
  }

  .hero-visual {
    min-height: 540px;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding-top: 0.45rem;
  }

  .hero-visual {
    min-height: 500px;
  }

  .portrait-shell {
    width: min(360px, 74%);
  }

  .hud-arc-major {
    font-size: 18px;
  }

  .hud-arc-secondary {
    font-size: 13px;
  }

  .hud-arc-small,
  .hud-copy {
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  .hero {
    gap: 0.5rem;
  }

  .hero h1 {
    margin-top: 0.45rem;
  }

  .hero-visual {
    min-height: 390px;
  }

  .portrait-shell {
    width: min(292px, 82%);
  }

  .portrait-hud-svg {
    inset: 6% 0 0;
  }

  .hud-copy,
  .hud-arc-small {
    display: none;
  }

  .orbit-tag {
    font-size: 0.56rem;
  }
}

.portrait-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  transform: translate(calc(var(--mx) * 10px), calc(var(--my) * 10px));
  opacity: 0.82;
}

.portrait-network__link,
.portrait-network__mesh {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.portrait-network__link {
  stroke: rgba(247, 196, 52, 0.2);
  stroke-width: 0.22;
  stroke-dasharray: 1.2 1.6;
}

.portrait-network__mesh {
  stroke: rgba(125, 199, 255, 0.12);
  stroke-width: 0.14;
}

.portrait-network__link.is-active,
.portrait-network__mesh.is-active {
  stroke: rgba(247, 196, 52, 0.7);
}

.portrait-network__node {
  fill: rgba(247, 196, 52, 0.54);
  opacity: 0.72;
}

.portrait-network__node.is-active {
  fill: rgba(255, 240, 174, 0.96);
  filter: drop-shadow(0 0 10px rgba(247, 196, 52, 0.4));
}

.portrait-lab[data-mode="diagnostic"] .portrait-network {
  opacity: 0.56;
}

.portrait-lab[data-mode="diagnostic"] .hud-arc-major {
  opacity: 0.46;
}

.portrait-lab[data-mode="diagnostic"] .hud-wave,
.portrait-lab[data-mode="diagnostic"] .hud-guide {
  opacity: 1;
}

.portrait-lab[data-mode="diagnostic"] .portrait-scan {
  opacity: 0.34;
}

.portrait-lab[data-mode="mesh"] .portrait-network {
  opacity: 1;
}

.portrait-lab[data-mode="mesh"] .portrait-network__mesh {
  stroke: rgba(247, 196, 52, 0.22);
}

.portrait-lab[data-mode="mesh"] .hud-ring-dash {
  animation-duration: 10s;
}

.portrait-lab[data-mode="mesh"] .portrait-shell::after {
  background:
    radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(255, 240, 174, 0.24), transparent 24%),
    radial-gradient(circle at 50% 60%, rgba(247, 196, 52, 0.12), transparent 54%),
    linear-gradient(125deg, transparent 28%, rgba(255, 255, 255, 0.14) 42%, transparent 54%);
}

.portrait-shell::after {
  background:
    radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(255, 240, 174, 0.22), transparent 22%),
    radial-gradient(circle at 50% 60%, rgba(247, 196, 52, 0.1), transparent 54%),
    linear-gradient(125deg, transparent 28%, rgba(255, 255, 255, 0.12) 42%, transparent 54%);
}

.portrait-shell::before {
  background:
    radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(255, 250, 185, 0.08), transparent 18%),
    radial-gradient(circle at 50% 16%, rgba(255, 250, 185, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(247, 196, 52, 0.14), transparent 38%, rgba(247, 196, 52, 0.08)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 6px);
}

.feature-stage-grid {
  align-items: stretch;
}

.feature-media {
  cursor: pointer;
}

.feature-media.is-playable::after {
  content: "";
  position: absolute;
  inset: auto;
  right: auto;
  bottom: auto;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 4.6rem;
  height: 4.6rem;
  border: 1px solid rgba(247, 196, 52, 0.4);
  background:
    radial-gradient(circle at center, rgba(7, 9, 12, 0.62), rgba(7, 9, 12, 0.2)),
    linear-gradient(135deg, rgba(247, 196, 52, 0.16), rgba(247, 196, 52, 0.04));
  box-shadow: 0 0 24px rgba(247, 196, 52, 0.14);
  transform: translate(-50%, -50%);
  clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
  pointer-events: none;
}

.feature-media.is-playable::before {
  content: "";
  position: absolute;
  inset: auto;
  right: auto;
  bottom: auto;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 1.05rem solid rgba(255, 240, 174, 0.96);
  border-top: 0.68rem solid transparent;
  border-bottom: 0.68rem solid transparent;
  transform: translate(-34%, -50%);
  pointer-events: none;
}

.feature-media:hover::after,
.feature-media:focus-visible::after {
  box-shadow: 0 0 34px rgba(247, 196, 52, 0.22);
}

.feature-dock {
  grid-template-rows: minmax(0, 1fr) auto;
  cursor: pointer;
}

.feature-dock__copy {
  padding-top: 0.72rem;
}

.feature-dock__copy .frame-kicker {
  font-size: 0.78rem;
}

.feature-dock__copy p + p {
  font-size: 0.92rem;
}

.feature-dock__video,
.feature-dock__image {
  min-height: 100%;
}

.frame-tilt,
.atlas-card__tilt,
.gallery-card__tilt {
  cursor: default;
}

.frame-actions .btn-secondary {
  letter-spacing: 0.08em;
}

@media (max-width: 560px) {
  .portrait-network {
    opacity: 0.56;
  }

  .feature-media.is-playable::after {
    width: 3.5rem;
    height: 3.5rem;
  }

  .feature-media.is-playable::before {
    border-left-width: 0.8rem;
    border-top-width: 0.52rem;
    border-bottom-width: 0.52rem;
  }
}

.portrait-lab {
  --signal-x: 50%;
  --signal-y: 50%;
  --cursor-x: 50%;
  --cursor-y: 50%;
}

.portrait-lab::before,
.portrait-lab::after {
  content: "";
  position: absolute;
  inset: 4%;
  pointer-events: none;
}

.portrait-lab::before {
  z-index: 0;
  opacity: 0.42;
  clip-path: polygon(11% 18%, 28% 8%, 49% 4%, 71% 8%, 88% 17%, 96% 32%, 95% 61%, 86% 83%, 66% 94%, 35% 95%, 13% 84%, 5% 61%, 5% 34%);
  background:
    radial-gradient(circle at var(--signal-x) var(--signal-y), rgba(247, 196, 52, 0.2), transparent 0 12%),
    linear-gradient(145deg, rgba(247, 196, 52, 0.12), transparent 28%, rgba(125, 199, 255, 0.14) 52%, transparent 72%),
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.05) 8% 8.4%, transparent 8.4% 18%, rgba(255, 255, 255, 0.03) 18% 18.4%, transparent 18.4% 100%);
  filter: drop-shadow(0 0 18px rgba(247, 196, 52, 0.1));
  transform: translate(calc(var(--mx) * 18px), calc(var(--my) * 18px));
}

.portrait-lab::after {
  inset: 7%;
  z-index: 1;
  opacity: 0.7;
  clip-path: polygon(14% 19%, 29% 10%, 49% 7%, 70% 10%, 85% 18%, 92% 31%, 91% 60%, 83% 81%, 65% 90%, 36% 91%, 17% 82%, 9% 61%, 9% 33%);
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(255, 240, 174, 0.16), transparent 0 11%),
    radial-gradient(circle at 50% 50%, rgba(125, 199, 255, 0.06), transparent 58%);
  mix-blend-mode: screen;
  transform: translate(calc(var(--mx) * -14px), calc(var(--my) * -14px));
}

.portrait-hud-svg {
  transform:
    translate(calc(var(--mx) * 18px), calc(var(--my) * 18px))
    rotate(calc(var(--mx) * 1.4deg));
}

.hud-ring {
  stroke: rgba(247, 196, 52, 0.4);
}

.hud-ring-soft {
  stroke: rgba(255, 240, 174, 0.22);
  stroke-width: 1.2;
}

.hud-sector,
.hud-poly,
.hud-bar {
  vector-effect: non-scaling-stroke;
}

.hud-sector {
  fill: none;
  stroke: rgba(247, 196, 52, 0.42);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 26 580;
  opacity: 0.64;
  animation: hud-sector-sweep 16s linear infinite;
}

.hud-sector-b {
  stroke: rgba(125, 199, 255, 0.32);
  animation-duration: 19s;
  animation-direction: reverse;
}

.hud-sector-c {
  stroke: rgba(255, 240, 174, 0.26);
  stroke-dasharray: 18 560;
  animation-duration: 22s;
}

.hud-poly {
  fill: rgba(247, 196, 52, 0.03);
  stroke: rgba(247, 196, 52, 0.26);
  stroke-width: 2.2;
  opacity: 0.68;
  filter: drop-shadow(0 0 14px rgba(247, 196, 52, 0.14));
}

.hud-poly-b {
  stroke: rgba(125, 199, 255, 0.24);
}

.hud-poly-c {
  stroke: rgba(255, 240, 174, 0.26);
}

.hud-bar {
  stroke: rgba(255, 240, 174, 0.44);
  stroke-width: 2;
  opacity: 0.66;
}

.hud-node-soft {
  opacity: 0.58;
  filter: drop-shadow(0 0 10px rgba(247, 196, 52, 0.32));
}

.portrait-shell {
  width: min(454px, 74%);
  border: 0;
  background: radial-gradient(circle at 50% 46%, rgba(12, 14, 16, 0.96) 0 34%, rgba(9, 11, 14, 0.66) 54%, rgba(7, 9, 12, 0.06) 72%, transparent 86%);
  clip-path: none;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, rgba(0, 0, 0, 1) 0 34%, rgba(0, 0, 0, 0.96) 48%, rgba(0, 0, 0, 0.88) 58%, rgba(0, 0, 0, 0.54) 69%, transparent 86%);
  mask-image: radial-gradient(circle at 50% 46%, rgba(0, 0, 0, 1) 0 34%, rgba(0, 0, 0, 0.96) 48%, rgba(0, 0, 0, 0.88) 58%, rgba(0, 0, 0, 0.54) 69%, transparent 86%);
  box-shadow:
    0 0 0 1px rgba(247, 196, 52, 0.1),
    0 0 0 18px rgba(247, 196, 52, 0.02),
    0 36px 90px rgba(0, 0, 0, 0.58),
    0 0 140px rgba(247, 196, 52, 0.08);
}

.portrait-shell::before {
  opacity: 0.54;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(255, 244, 176, 0.16), transparent 0 15%),
    radial-gradient(circle at 50% 14%, rgba(255, 250, 185, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(247, 196, 52, 0.18), transparent 36%, rgba(247, 196, 52, 0.08)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 6px);
}

.portrait-shell::after {
  opacity: 0.88;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(255, 240, 174, 0.24), transparent 0 18%),
    radial-gradient(circle at 50% 60%, rgba(247, 196, 52, 0.16), transparent 46%),
    conic-gradient(from 90deg at 50% 50%, transparent 0 16%, rgba(255, 255, 255, 0.08) 16% 19%, transparent 19% 37%, rgba(125, 199, 255, 0.08) 37% 41%, transparent 41% 61%, rgba(247, 196, 52, 0.08) 61% 65%, transparent 65% 100%),
    linear-gradient(125deg, transparent 28%, rgba(255, 255, 255, 0.12) 42%, transparent 54%);
}

.portrait-layer {
  -webkit-mask-image: radial-gradient(circle at 50% 46%, rgba(0, 0, 0, 1) 0 36%, rgba(0, 0, 0, 0.96) 50%, rgba(0, 0, 0, 0.78) 62%, transparent 86%);
  mask-image: radial-gradient(circle at 50% 46%, rgba(0, 0, 0, 1) 0 36%, rgba(0, 0, 0, 0.96) 50%, rgba(0, 0, 0, 0.78) 62%, transparent 86%);
}

.portrait-base {
  opacity: 0.86;
  filter:
    grayscale(100%)
    contrast(1.22)
    brightness(0.74)
    sepia(1)
    saturate(5.8)
    hue-rotate(-6deg)
    drop-shadow(0 0 18px rgba(247, 196, 52, 0.16));
}

.portrait-cyan,
.portrait-warm {
  opacity: 0.46;
}

.portrait-grid {
  background-size: 18px 18px;
  opacity: 0.3;
  transform: translate(calc(var(--mx) * -10px), calc(var(--my) * -10px));
}

.portrait-scan {
  opacity: 0.46;
}

.portrait-beam {
  opacity: 0.82;
}

.orbit-tag {
  backdrop-filter: blur(12px);
  will-change: transform, box-shadow;
  transform:
    translate3d(
      calc(var(--pull-x, 0px) + var(--avoid-x, 0px) + var(--pulse-x, 0px)),
      calc(var(--pull-y, 0px) + var(--avoid-y, 0px) + var(--pulse-y, 0px)),
      0
    )
    rotateZ(var(--pulse-rot, 0deg))
    scale(var(--pulse-scale, 1));
}

.orbit-tag.is-active {
  box-shadow: 0 0 34px rgba(247, 196, 52, 0.22), var(--shadow);
}

.portrait-network {
  opacity: 0.94;
  transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 14px));
}

.portrait-network__link {
  stroke: rgba(247, 196, 52, 0.26);
  stroke-width: 0.28;
}

.portrait-network__mesh {
  stroke: rgba(125, 199, 255, 0.18);
  stroke-width: 0.18;
}

.portrait-network__link.is-active,
.portrait-network__mesh.is-active {
  stroke: rgba(255, 240, 174, 0.78);
}

.portrait-network__node {
  opacity: 0.82;
  filter: drop-shadow(0 0 8px rgba(247, 196, 52, 0.28));
}

.bg-grid {
  opacity: 0.84;
}

.bg-orbits {
  opacity: 0.56;
}

.feature-atlas {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.atlas-card {
  min-height: 250px;
}

.atlas-card:nth-child(1),
.atlas-card:nth-child(4) {
  grid-column: span 2;
  min-height: 320px;
}

.atlas-card__copy,
.gallery-card__copy,
.gallery-card__number {
  pointer-events: none;
}

@keyframes hud-sector-sweep {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -640;
  }
}

@media (max-width: 980px) {
  .feature-atlas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-card:nth-child(1),
  .atlas-card:nth-child(4) {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .portrait-lab::before,
  .portrait-lab::after {
    inset: 8%;
  }

  .portrait-shell {
    width: min(348px, 84%);
  }

  .feature-atlas {
    grid-template-columns: 1fr;
  }

  .atlas-card:nth-child(1),
  .atlas-card:nth-child(4) {
    grid-column: auto;
    min-height: 270px;
  }
}

:root {
  --field-x: 0;
  --field-y: 0;
  --field-cursor-x: 50%;
  --field-cursor-y: 50%;
}

.site-header {
  margin-bottom: 0.18rem;
}

.worked-marquee--top {
  width: var(--content-width);
  margin: 0 auto 0.55rem;
  z-index: 22;
}

.worked-marquee--top .worked-marquee__track {
  padding-top: 0.68rem;
  padding-bottom: 0.68rem;
}

.worked-marquee__track span {
  display: inline-flex;
  align-items: center;
  transform: translate3d(0, var(--dock-lift, 0px), 0) scale(var(--dock-scale, 1));
  transform-origin: center bottom;
  filter: brightness(var(--dock-bright, 1)) saturate(1.02);
  box-shadow:
    0 0 var(--dock-glow, 0px) rgba(247, 196, 52, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition:
    transform 120ms ease,
    filter 120ms ease,
    color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.worked-marquee:hover .worked-marquee__track span {
  color: var(--text);
  border-color: rgba(247, 196, 52, 0.16);
}

.shatter-piece {
  transform: translate3d(var(--hover-tx, 0px), var(--hover-ty, 0px), 0) scale(var(--hover-scale, 1)) rotate(var(--hover-rot, 0deg));
  text-shadow: 0 0 var(--hover-glow, 0px) rgba(247, 196, 52, 0.38);
}

[data-shatter].is-shattering .shatter-piece {
  transform:
    translate3d(calc(var(--hover-tx, 0px) + var(--tx, 0px)), calc(var(--hover-ty, 0px) + var(--ty, 0px)), 0)
    scale(var(--hover-scale, 1))
    rotate(var(--hover-rot, 0deg))
    rotate(var(--rot, 0deg));
}

.bg-grid,
.bg-scanfield,
.bg-orbits,
.glow-a,
.glow-b {
  transition: transform 160ms ease-out;
}

.bg-grid {
  position: fixed;
  overflow: hidden;
  opacity: 0.92;
  transform: translate(calc(var(--field-x) * -42px), calc(var(--field-y) * -42px)) scale(1.15);
  transform-origin: center;
}

.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--field-cursor-x) var(--field-cursor-y), rgba(255, 248, 204, 0.28), transparent 0 20%);
  mix-blend-mode: screen;
  opacity: 0.96;
}

.bg-scanfield {
  opacity: 0.2;
  transform: translate(calc(var(--field-x) * 28px), calc(var(--field-y) * 38px));
}

.bg-orbits {
  opacity: 0.7;
  transform: translate(calc(var(--field-x) * 68px), calc(var(--field-y) * 68px)) scale(1.2);
}

.glow-a {
  transform: translate(calc(var(--field-x) * -52px), calc(var(--field-y) * -34px));
}

.glow-b {
  transform: translate(calc(var(--field-x) * 44px), calc(var(--field-y) * 26px));
}

.portrait-lab {
  --signal-shift-x: 0px;
  --signal-shift-y: 0px;
  --cursor-force: 0;
  perspective: 2600px;
  perspective-origin: calc(50% + var(--mx) * 42%) calc(50% + var(--my) * 42%);
  transform-style: preserve-3d;
}

.portrait-links {
  transform:
    translate(
      calc(var(--mx) * 18px + var(--signal-shift-x, 0px) * 0.18),
      calc(var(--my) * 18px + var(--signal-shift-y, 0px) * 0.18)
    )
    rotateX(calc(var(--my) * -25deg))
    rotateY(calc(var(--mx) * 34deg))
    rotateZ(calc(var(--mx) * 4.2deg))
    translateZ(132px);
  transform-style: preserve-3d;
  transition: transform 70ms linear;
}

.portrait-link {
  stroke-width: 0.88;
}

.portrait-link-fine {
  stroke-width: 0.56;
}

.portrait-lab::before {
  transform:
    translate(
      calc(var(--mx) * 30px + var(--signal-shift-x, 0px) * 0.22),
      calc(var(--my) * 30px + var(--signal-shift-y, 0px) * 0.22)
    )
    rotateX(calc(var(--my) * -18deg))
    rotateY(calc(var(--mx) * 22deg))
    translateZ(24px);
}

.portrait-lab::after {
  transform:
    translate(
      calc(var(--mx) * -30px + var(--signal-shift-x, 0px) * -0.16),
      calc(var(--my) * -30px + var(--signal-shift-y, 0px) * -0.16)
    )
    rotateX(calc(var(--my) * 14deg))
    rotateY(calc(var(--mx) * -18deg))
    translateZ(168px);
}

.portrait-hud-svg {
  transform:
    translate(
      calc(var(--mx) * 36px + var(--signal-shift-x, 0px) * 0.28),
      calc(var(--my) * 36px + var(--signal-shift-y, 0px) * 0.28)
    )
    rotateX(calc(var(--my) * -30deg))
    rotateY(calc(var(--mx) * 38deg))
    rotateZ(calc(var(--mx) * 5.4deg))
    translateZ(198px);
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 calc(14px + var(--cursor-force, 0) * 18px) rgba(255, 244, 176, 0.16));
  transition: transform 65ms linear, filter 120ms ease;
}

.hud-guide {
  stroke-width: 2.3;
  opacity: 0.74;
}

.portrait-shell {
  transform:
    translate3d(calc(var(--signal-shift-x, 0px) * 0.34), calc(var(--signal-shift-y, 0px) * 0.34), 0)
    perspective(1700px)
    rotateX(calc(var(--my) * -24deg))
    rotateY(calc(var(--mx) * 32deg))
    rotateZ(calc(var(--mx) * 5.6deg))
    translateZ(calc(62px + var(--cursor-force, 0) * 28px));
  transition: transform 60ms linear, filter 120ms ease;
}

.portrait-network {
  transform:
    translate(
      calc(var(--mx) * 28px + var(--signal-shift-x, 0px) * 0.26),
      calc(var(--my) * 28px + var(--signal-shift-y, 0px) * 0.26)
    )
    rotateX(calc(var(--my) * -24deg))
    rotateY(calc(var(--mx) * 30deg))
    translateZ(178px);
  transition: transform 70ms linear;
}

.portrait-network__link {
  stroke-width: 0.8;
}

.portrait-network__mesh {
  stroke-width: 0.56;
}

.portrait-network__link.is-active,
.portrait-network__mesh.is-active {
  stroke-width: 1.02;
}

.portrait-base {
  opacity: 0.43;
  mix-blend-mode: screen;
}

.portrait-cyan,
.portrait-warm {
  opacity: 0.72;
}

.frame-tilt,
.atlas-card__tilt,
.gallery-card__tilt,
.feature-media,
.feature-dock,
.thumb-button--feature,
.logo-card,
.skill-morph-card {
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 14px var(--tilt-shadow, 24px) rgba(0, 0, 0, 0.18);
}

.portrait-lab.is-touching .portrait-hud-svg {
  filter: drop-shadow(0 0 36px rgba(255, 244, 176, 0.34));
}

.portrait-lab.is-touching .portrait-shell {
  transform:
    translate3d(calc(var(--signal-shift-x, 0px) * 0.34), calc(var(--signal-shift-y, 0px) * 0.34), 0)
    perspective(1700px)
    rotateX(calc(var(--my) * -26deg))
    rotateY(calc(var(--mx) * 30deg))
    rotateZ(calc(var(--mx) * 5deg))
    translateZ(74px)
    scale(1.035);
}

.portrait-lab.is-touching .portrait-network__link,
.portrait-lab.is-touching .portrait-network__mesh {
  stroke: rgba(255, 244, 176, 0.92);
}

.portrait-lab.is-firing .portrait-hud-svg {
  filter:
    drop-shadow(0 0 42px rgba(255, 255, 255, 0.3))
    drop-shadow(0 0 54px rgba(247, 196, 52, 0.26));
}

.portrait-lab.is-firing .portrait-network__link,
.portrait-lab.is-firing .portrait-network__mesh {
  stroke: rgba(255, 250, 212, 0.96);
}

.portrait-lab.is-firing .portrait-shell::after {
  opacity: 1;
}

.bg-grid::after {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    repeating-linear-gradient(118deg, transparent 0 38px, rgba(255, 255, 255, 0.018) 38px 39px, transparent 39px 74px),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(247, 196, 52, 0.024) 46px 47px, transparent 47px 88px);
  opacity: 0.62;
  transform: translate(calc(var(--field-x) * 30px), calc(var(--field-y) * 30px));
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
    top: auto;
    width: 100%;
    padding-inline: 0.7rem;
  }

  .worked-marquee--top {
    width: 100%;
    margin-bottom: 0.4rem;
    border-left: 0;
    border-right: 0;
  }

  .home-stack {
    padding-top: 0.6rem;
  }

  .home-stack::before {
    top: 3rem;
  }

  .worked-marquee--top {
    margin-bottom: 0.4rem;
  }

  .section {
    scroll-margin-top: 1rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 0.5rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .worked-marquee--top {
    margin-bottom: 0.5rem;
  }

  .worked-marquee--top .worked-marquee__track {
    padding-inline: 0.55rem;
  }

  .worked-marquee__track span {
    padding: 0.38rem 0.58rem;
    font-size: 0.66rem;
  }

  .bg-grid {
    transform: translate(calc(var(--field-x) * -16px), calc(var(--field-y) * -16px)) scale(1.06);
  }

  .bg-grid::after,
  .bg-scanfield {
    opacity: 0.26;
  }

  .bg-orbits {
    transform: translate(calc(var(--field-x) * 20px), calc(var(--field-y) * 20px)) scale(1.08);
  }

  .portrait-links,
  .portrait-network,
  .portrait-hud-svg {
    transform:
      translate(calc(var(--mx) * 10px), calc(var(--my) * 10px))
      rotateX(calc(var(--my) * -9deg))
      rotateY(calc(var(--mx) * 11deg))
      translateZ(52px);
  }
}

/* Performance pass */

#bg-canvas {
  opacity: 0.86;
}

.page-noise {
  opacity: 0.02;
}

.bg-glow,
.bg-scanfield,
.bg-orbits {
  display: none;
}

.bg-grid {
  opacity: 0.56;
  background-size: 34px 34px;
  transform: translate(calc(var(--field-x) * -18px), calc(var(--field-y) * -18px)) scale(1.04);
}

.bg-grid::before {
  background: radial-gradient(circle at var(--field-cursor-x) var(--field-cursor-y), rgba(255, 248, 204, 0.16), transparent 0 14%);
  opacity: 0.52;
}

.bg-grid::after {
  opacity: 0.14;
  transform: translate(calc(var(--field-x) * 12px), calc(var(--field-y) * 12px));
}

.site-header,
.brand-line,
.site-nav a,
.eyebrow,
.metric-label,
.core-label,
.detail-kicker,
.frame-kicker,
.stack-kicker,
.contact-label,
.featured-kicker,
.timeline-card,
.stack-card,
.contact-card,
.feature-stage,
.feature-rail,
.atlas-card,
.gallery-card,
.video-modal,
.hero-system-panel,
.orbit-tag {
  backdrop-filter: none !important;
}

.site-header::before {
  background: linear-gradient(180deg, rgba(7, 8, 9, 0.98), rgba(7, 8, 9, 0.94));
}

.brand-line,
.site-nav a,
.eyebrow,
.metric-label,
.core-label,
.detail-kicker,
.frame-kicker,
.stack-kicker,
.contact-label,
.featured-kicker,
.timeline-card,
.stack-card,
.contact-card,
.feature-stage,
.feature-rail,
.atlas-card,
.gallery-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008)),
    rgba(10, 12, 15, 0.94);
}

.video-modal {
  background: rgba(5, 6, 8, 0.92);
}

.hero-system-panel {
  background: rgba(4, 5, 8, 0.94);
}

.orbit-tag {
  background: rgba(8, 10, 12, 0.88);
}

@media (max-width: 560px) {
  .bg-grid {
    transform: translate(calc(var(--field-x) * -10px), calc(var(--field-y) * -10px)) scale(1.02);
  }
}

/* Hero flattening pass */

.portrait-lab {
  perspective: 1800px;
  perspective-origin: 50% 50%;
}

.portrait-links {
  transform:
    translate(
      calc(var(--mx) * 6px + var(--signal-shift-x, 0px) * 0.08),
      calc(var(--my) * 6px + var(--signal-shift-y, 0px) * 0.08)
    )
    rotateX(calc(var(--my) * -6deg))
    rotateY(calc(var(--mx) * 8deg))
    translateZ(38px);
  transition: transform 180ms ease-out;
}

.portrait-lab::before {
  transform:
    translate(
      calc(var(--mx) * 10px + var(--signal-shift-x, 0px) * 0.08),
      calc(var(--my) * 10px + var(--signal-shift-y, 0px) * 0.08)
    )
    rotateX(calc(var(--my) * -5deg))
    rotateY(calc(var(--mx) * 6deg))
    translateZ(10px);
}

.portrait-lab::after {
  transform:
    translate(
      calc(var(--mx) * -10px + var(--signal-shift-x, 0px) * -0.06),
      calc(var(--my) * -10px + var(--signal-shift-y, 0px) * -0.06)
    )
    rotateX(calc(var(--my) * 4deg))
    rotateY(calc(var(--mx) * -5deg))
    translateZ(52px);
}

.portrait-hud-svg {
  transform:
    translate(
      calc(var(--mx) * 10px + var(--signal-shift-x, 0px) * 0.12),
      calc(var(--my) * 10px + var(--signal-shift-y, 0px) * 0.12)
    )
    rotateX(calc(var(--my) * -8deg))
    rotateY(calc(var(--mx) * 10deg))
    translateZ(64px);
  filter: drop-shadow(0 0 calc(6px + var(--cursor-force, 0) * 8px) rgba(255, 244, 176, 0.1));
  transition: transform 180ms ease-out, filter 180ms ease;
}

.portrait-shell {
  transform:
    translate3d(calc(var(--signal-shift-x, 0px) * 0.12), calc(var(--signal-shift-y, 0px) * 0.12), 0)
    perspective(1200px)
    rotateX(calc(var(--my) * -7deg))
    rotateY(calc(var(--mx) * 9deg))
    translateZ(calc(14px + var(--cursor-force, 0) * 8px));
  transition: transform 180ms ease-out, filter 180ms ease;
}

.portrait-network {
  transform:
    translate(
      calc(var(--mx) * 8px + var(--signal-shift-x, 0px) * 0.1),
      calc(var(--my) * 8px + var(--signal-shift-y, 0px) * 0.1)
    )
    rotateX(calc(var(--my) * -7deg))
    rotateY(calc(var(--mx) * 9deg))
    translateZ(54px);
  transition: transform 180ms ease-out;
}

.portrait-network__link {
  stroke-width: 0.56;
}

.portrait-network__mesh {
  stroke-width: 0.4;
}

.portrait-network__link.is-active,
.portrait-network__mesh.is-active {
  stroke-width: 0.74;
}

.orbit-tag {
  transform:
    translate3d(
      calc(var(--pull-x, 0px)),
      calc(var(--pull-y, 0px)),
      0
    )
    scale(1);
  box-shadow: 0 0 12px rgba(247, 196, 52, 0.1), var(--shadow);
}

.orbit-tag.is-active {
  box-shadow: 0 0 16px rgba(247, 196, 52, 0.14), var(--shadow);
}

.portrait-lab.is-touching .portrait-hud-svg {
  filter: drop-shadow(0 0 18px rgba(255, 244, 176, 0.16));
}

.portrait-lab.is-touching .portrait-shell {
  transform:
    translate3d(calc(var(--signal-shift-x, 0px) * 0.12), calc(var(--signal-shift-y, 0px) * 0.12), 0)
    perspective(1200px)
    rotateX(calc(var(--my) * -8deg))
    rotateY(calc(var(--mx) * 10deg))
    translateZ(18px)
    scale(1.01);
}

.portrait-lab.is-firing .portrait-hud-svg,
.portrait-lab.is-firing .portrait-network__link,
.portrait-lab.is-firing .portrait-network__mesh,
.portrait-lab.is-firing .portrait-shell::after {
  filter: none;
  opacity: inherit;
}

@media (max-width: 560px) {
  .portrait-links,
  .portrait-network,
  .portrait-hud-svg {
    transform:
      translate(calc(var(--mx) * 6px), calc(var(--my) * 6px))
      rotateX(calc(var(--my) * -5deg))
      rotateY(calc(var(--mx) * 6deg))
      translateZ(28px);
  }

  .portrait-shell {
    transform:
      translate3d(0, 0, 0)
      perspective(1000px)
      rotateX(calc(var(--my) * -5deg))
      rotateY(calc(var(--mx) * 6deg))
      translateZ(10px);
  }
}

/* Static lightweight hero */

.portrait-hud-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.portrait-hud-svg {
  z-index: 4;
  overflow: visible;
  transform: none;
}

.hud-ring {
  fill: none;
  stroke: rgba(247, 196, 52, 0.38);
}

.hud-ring-outer {
  stroke-width: 1.5;
}

.hud-ring-mid {
  stroke-width: 2.2;
  opacity: 0.7;
}

.hud-ring-inner {
  stroke-width: 1.6;
  opacity: 0.54;
}

.hud-ring-dash {
  stroke-width: 1.15;
  stroke-dasharray: 11 8;
  opacity: 0.48;
}

.hud-ring-dash-b {
  stroke-dasharray: 4 9;
}

.hud-ring-soft {
  stroke: rgba(255, 239, 168, 0.16);
  stroke-width: 1;
}

.hud-guide,
.hud-wave,
.hud-sector,
.hud-poly,
.hud-bar {
  fill: none;
  stroke: rgba(247, 196, 52, 0.42);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hud-guide,
.hud-bar {
  stroke-width: 1.1;
}

.hud-wave,
.hud-sector,
.hud-poly {
  stroke-width: 1.4;
  opacity: 0.72;
}

.hud-node {
  fill: rgba(247, 196, 52, 0.92);
}

.hud-node-soft {
  opacity: 0.64;
}

.hud-arc {
  fill: rgba(247, 196, 52, 0.84);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hud-arc-secondary {
  font-size: 14px;
  fill: rgba(247, 196, 52, 0.82);
}

.hud-arc-small {
  font-size: 13px;
  fill: rgba(247, 196, 52, 0.72);
}

.hud-signal {
  fill: rgba(255, 245, 210, 0.96);
  font-family: "IBM Plex Sans", sans-serif;
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.08em;
  transition: opacity 160ms ease, transform 160ms ease;
}

.hud-signal-right,
.hud-signal-left {
  font-size: 14px;
  letter-spacing: 0.18em;
}

.hud-signal-path {
  transition: fill 160ms ease, opacity 160ms ease, letter-spacing 160ms ease;
}

.portrait-lab[class*="is-active-"] .hud-signal-path {
  fill: rgba(255, 245, 210, 1);
}

.portrait-lab[class*="is-active-"] .hud-ring,
.portrait-lab[class*="is-active-"] .hud-guide,
.portrait-lab[class*="is-active-"] .hud-wave,
.portrait-lab[class*="is-active-"] .hud-sector,
.portrait-lab[class*="is-active-"] .hud-poly,
.portrait-lab[class*="is-active-"] .hud-bar {
  stroke: rgba(247, 196, 52, 0.5);
}

.portrait-shell--static {
  width: min(540px, 92%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  overflow: hidden;
  background: radial-gradient(circle at 50% 44%, rgba(247, 196, 52, 0.1), rgba(10, 12, 15, 0.08) 64%, rgba(10, 12, 15, 0) 78%);
  border: 1px solid rgba(247, 196, 52, 0.18);
  box-shadow:
    0 0 0 1px rgba(247, 196, 52, 0.24),
    0 18px 56px rgba(0, 0, 0, 0.36);
  z-index: 3;
}

.portrait-shell--static::before,
.portrait-shell--static::after {
  display: none;
}

.portrait-photo-ring {
  position: absolute;
  inset: 7.8%;
  border-radius: 50%;
  border: 2px solid rgba(247, 196, 52, 0.74);
  box-shadow: 0 0 18px rgba(247, 196, 52, 0.14);
  z-index: 3;
}

.portrait-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 180ms ease, filter 180ms ease;
}

.portrait-hero--photo {
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.5;
  filter: grayscale(100%) sepia(0.92) hue-rotate(-18deg) saturate(2.6) contrast(1.02) brightness(0.9);
  z-index: 1;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0.86) 79%, rgba(0, 0, 0, 0.42) 89%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0.86) 79%, rgba(0, 0, 0, 0.42) 89%, transparent 100%);
}

.portrait-lab .portrait-shell--static {
  transform: none;
}

.orbit-tag {
  backdrop-filter: none !important;
  animation: none !important;
  transform: none !important;
  transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.orbit-tag.is-active {
  background: rgba(14, 16, 18, 0.92);
  border-color: rgba(247, 196, 52, 0.46);
  box-shadow: 0 0 18px rgba(247, 196, 52, 0.12);
}

@media (max-width: 560px) {
  .hero-visual {
    min-height: 360px;
  }

  .portrait-shell--static {
    width: min(324px, 88%);
  }

  .portrait-hud-svg {
    transform: none;
  }

  .hud-signal {
    font-size: 15px;
  }

  .hud-arc-secondary,
  .hud-arc-small {
    font-size: 11px;
  }

  .orbit-tag-g,
  .orbit-tag-h,
  .orbit-tag-i {
    display: none;
  }
}

/* Hero hard override: lightweight single-unit motion only */

.portrait-lab {
  transform:
    perspective(1200px)
    rotateX(calc(var(--my) * -4deg))
    rotateY(calc(var(--mx) * 5deg));
  transform-style: preserve-3d;
  transition: transform 120ms ease-out;
}

.portrait-lab::before,
.portrait-lab::after {
  display: none !important;
}

.portrait-hud-svg,
.portrait-shell--static,
.portrait-photo-ring,
.portrait-hero--photo,
.orbit-tag {
  will-change: auto;
}

.portrait-hud-svg,
.portrait-shell--static,
.portrait-photo-ring,
.portrait-hero--photo,
.orbit-tag {
  transform: none !important;
  animation: none !important;
}

.hud-ring,
.hud-ring-outer,
.hud-ring-mid,
.hud-ring-inner,
.hud-ring-dash,
.hud-ring-dash-b,
.hud-ring-soft,
.hud-guide,
.hud-wave,
.hud-sector,
.hud-poly,
.hud-bar,
.hud-node,
.hud-node-soft,
.hud-arc,
.hud-signal {
  animation: none !important;
}

.hud-ring-dash,
.hud-ring-dash-b {
  transform: none !important;
}

.hud-signal,
.hud-signal-path {
  fill: rgba(247, 196, 52, 0.9) !important;
}

.portrait-lab[class*="is-active-"] .hud-signal-path {
  fill: rgba(255, 231, 140, 0.98) !important;
}

@media (max-width: 560px) {
  .portrait-lab {
    transform:
      perspective(1000px)
      rotateX(calc(var(--my) * -3deg))
      rotateY(calc(var(--mx) * 3.5deg));
  }
}

/* RecceVis / custom production tools */

.tools-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.48fr);
  column-gap: 2rem;
  align-items: end;
}

.tools-heading .eyebrow,
.tools-heading h2 {
  grid-column: 1;
}

.tools-heading h2 {
  max-width: 13ch;
}

.tools-heading .section-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 56ch;
  margin: 0;
}

.reccevis-console {
  --recce-line: rgba(247, 196, 52, 0.28);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--recce-line);
  background:
    linear-gradient(90deg, rgba(247, 196, 52, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(247, 196, 52, 0.025) 1px, transparent 1px),
    rgba(7, 8, 9, 0.94);
  background-size: 42px 42px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.reccevis-console::before,
.reccevis-console::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 3.2rem;
  height: 3.2rem;
  pointer-events: none;
}

.reccevis-console::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.reccevis-console::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.reccevis-console__bar,
.reccevis-console__identity,
.reccevis-console__status,
.reccevis-screen__label,
.reccevis-module__index,
.reccevis-value span,
.reccevis-node span,
.reccevis-node small {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reccevis-console__bar {
  min-height: 3.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.88);
  font-size: 0.7rem;
}

.reccevis-console__identity,
.reccevis-console__status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.reccevis-console__identity strong {
  color: var(--accent);
  font-size: 0.82rem;
}

.reccevis-console__identity > span:last-child {
  color: var(--muted);
}

.reccevis-mark,
.status-pulse {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  background: var(--accent);
}

.reccevis-mark {
  box-shadow: 0 0 16px rgba(247, 196, 52, 0.5);
}

.status-pulse {
  width: 0.42rem;
  height: 0.42rem;
  box-shadow: 0 0 10px rgba(247, 196, 52, 0.46);
}

.reccevis-console__status {
  color: var(--accent-strong);
}

.reccevis-console__main {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.72fr);
  min-height: 540px;
}

.reccevis-screen {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #020303;
  cursor: zoom-in;
  transform-style: preserve-3d;
  transition: border-color 180ms ease, filter 180ms ease;
}

.reccevis-screen:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -4px;
}

.reccevis-screen img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78) contrast(1.06) brightness(0.8);
  transition: transform 320ms ease, filter 320ms ease;
}

.reccevis-screen:hover img,
.reccevis-screen:focus-visible img {
  transform: scale(1.012);
  filter: saturate(0.96) contrast(1.08) brightness(0.92);
}

.reccevis-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 196, 52, 0.16), transparent 7%, transparent 93%, rgba(247, 196, 52, 0.12)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), transparent 70%, rgba(0, 0, 0, 0.76));
}

.reccevis-screen__scan {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 196, 52, 0.78), transparent);
  opacity: 0;
  transform: translateY(-2rem);
  transition: opacity 180ms ease, transform 520ms cubic-bezier(.2,.85,.2,1);
  pointer-events: none;
}

.reccevis-screen:hover .reccevis-screen__scan,
.reccevis-screen:focus-visible .reccevis-screen__scan {
  opacity: 0.9;
  transform: translateY(17rem);
}

.reccevis-screen__label {
  position: absolute;
  z-index: 3;
  padding: 0.42rem 0.58rem;
  border: 1px solid rgba(247, 196, 52, 0.25);
  background: rgba(3, 4, 5, 0.82);
  color: var(--accent);
  font-size: 0.62rem;
}

.reccevis-screen__label--top {
  top: 0.85rem;
  left: 0.85rem;
}

.reccevis-screen__label--bottom {
  right: 0.85rem;
  bottom: 0.85rem;
}

.reccevis-module {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.3rem, 2.7vw, 2.6rem);
  background: linear-gradient(150deg, rgba(247, 196, 52, 0.055), rgba(8, 10, 12, 0.88) 46%);
}

.reccevis-module::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2.8rem;
  height: 0.6rem;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: 0.48;
}

.reccevis-module__index {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.68rem;
}

.reccevis-module h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.3rem, 4vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.reccevis-module__lead {
  margin: 1rem 0 0;
  color: var(--accent-strong);
  font-size: 1.02rem;
  line-height: 1.35;
}

.reccevis-module__body {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.reccevis-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 1.2rem;
}

.reccevis-capabilities span {
  padding: 0.36rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
}

.reccevis-value {
  display: grid;
  gap: 0.34rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.reccevis-value span {
  color: var(--accent);
  font-size: 0.62rem;
}

.reccevis-value strong {
  font-size: 0.84rem;
  line-height: 1.45;
}

.reccevis-bus {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.92);
}

.reccevis-bus::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 196, 52, 0.46), transparent);
  pointer-events: none;
}

.reccevis-node {
  position: relative;
  min-height: 7.1rem;
  display: grid;
  align-content: end;
  gap: 0.18rem;
  padding: 1.35rem 1rem 0.9rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.reccevis-node:last-child {
  border-right: 0;
}

.reccevis-node::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  transform: translateX(-50%);
  border: 1px solid rgba(247, 196, 52, 0.54);
  background: #070809;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.reccevis-node:hover,
.reccevis-node:focus-visible,
.reccevis-node.is-active {
  color: var(--text);
  background: rgba(247, 196, 52, 0.065);
  outline: none;
}

.reccevis-node:hover::before,
.reccevis-node:focus-visible::before,
.reccevis-node.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(247, 196, 52, 0.62);
  transform: translateX(-50%) scale(1.16);
}

.reccevis-node span {
  color: var(--accent);
  font-size: 0.6rem;
}

.reccevis-node strong {
  font-size: 0.92rem;
}

.reccevis-node small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .tools-heading {
    grid-template-columns: 1fr;
  }

  .tools-heading .section-copy {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0.9rem;
  }

  .reccevis-console__main {
    grid-template-columns: 1fr;
  }

  .reccevis-screen {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .reccevis-screen img {
    min-height: 0;
  }

  .reccevis-module {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .reccevis-console__bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .reccevis-bus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reccevis-bus::before {
    display: none;
  }

  .reccevis-node {
    min-height: 5.5rem;
    border-top: 1px solid var(--line);
  }

  .reccevis-node::before {
    top: 50%;
    left: 0.72rem;
    transform: translateY(-50%);
  }

  .reccevis-node:hover::before,
  .reccevis-node:focus-visible::before,
  .reccevis-node.is-active::before {
    transform: translateY(-50%) scale(1.16);
  }

  .reccevis-node:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .tools-heading h2 {
    max-width: 10ch;
  }

  .reccevis-console__identity > span:last-child,
  .reccevis-screen__label--top {
    display: none;
  }

  .reccevis-screen__label--bottom {
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .reccevis-module {
    min-height: 390px;
    padding: 1.2rem;
  }

  .reccevis-node {
    padding-left: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reccevis-screen__scan {
    display: none;
  }

  .reccevis-screen img,
  .reccevis-node::before {
    transition: none;
  }
}
