/* ==========================================================
   TOKENS
   ========================================================== */
:root {
  --bg:            #090C12;
  --bg-panel:      #0F141C;
  --bg-panel-2:    #141A24;
  --line:          #212A38;
  --line-soft:     #171E29;

  --text:          #E6ECF5;
  --text-muted:    #7C8CA6;
  --text-faint:    #4A5568;

  --accent:        #4C8DFF;   /* prompt / cursor blue */
  --accent-dim:    #2F5FC4;
  --accent-teal:   #22D3EE;   /* cyan glow */

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body:    "Inter", -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1160px;
}

/* ==========================================================
   RESET
   ========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  scrollbar-color: var(--accent-dim) var(--bg);
  scrollbar-width: thin;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 6px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  padding-bottom: 42px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: none; cursor: none; }

::selection {
  background: var(--accent);
  color: #0D0F12;
}

@media (hover: none), (pointer: coarse) {
  body, a, button { cursor: auto; }
  .cursor-ring { display: none; }
}

/* ==========================================================
   CURSOR
   ========================================================== */
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease),
              opacity .3s ease, border-color .25s ease, background .25s ease;
  mix-blend-mode: difference;
}

.cursor-ring.is-visible { opacity: 1; }

.cursor-ring.is-active {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
}

/* ==========================================================
   TEXTURE — subtle film grain
   ========================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(76,141,255,.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(46,196,182,.05), transparent 60%);
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .35;
  background: repeating-linear-gradient(
    to bottom,
    rgba(76, 141, 255, 0.035) 0px,
    rgba(76, 141, 255, 0.035) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

/* ==========================================================
   REVEAL ANIMATION
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================
   TYPOGRAPHY HELPERS
   ========================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "$";
  color: var(--text-faint);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: .01em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-lead {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.section-head { margin-bottom: 56px; }

section {
  position: relative;
  z-index: 3;
  padding: 120px max(5vw, 24px);
}

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px max(5vw, 24px);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(13, 15, 18, 0.75);
  backdrop-filter: blur(10px);
  border-color: var(--line);
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: .06em;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo__mark { color: var(--accent); font-size: 13px; }
.logo__slash { color: var(--text-faint); }
.logo__cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}

.nav { display: flex; gap: 36px; align-items: center; }

.nav__link {
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color .25s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.nav__link--cta {
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav-toggle span {
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .25s var(--ease), background .25s ease, border-color .25s ease, color .25s ease;
}

.btn--primary {
  background: var(--accent);
  color: #06090F;
}
.btn--primary:hover { transform: translateY(-2px); background: #6BA1FF; }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
  overflow: hidden;
}

.frame-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
}

.frame-row {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 96px;
  will-change: transform;
}
.frame-row:nth-child(1) { top: 6%;  transform: rotate(-2.2deg); }
.frame-row:nth-child(2) { top: 40%; transform: rotate(1.6deg); }
.frame-row:nth-child(3) { top: 74%; transform: rotate(-1.4deg); }

.frame-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: drift 46s linear infinite;
}
.frame-track--reverse { animation-direction: reverse; animation-duration: 58s; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.frame {
  width: 108px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}

.frame--select {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(76,141,255,.28), 0 0 22px -4px rgba(76,141,255,.6);
  background: rgba(76,141,255,.06);
}

@media (max-width: 700px) {
  .frame { width: 78px; height: 48px; }
  .frame-row { height: 64px; }
}

.hero__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 32px;
}

.rec-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.timecode {
  font-family: var(--font-mono);
  color: var(--text-faint);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: .96;
  text-transform: uppercase;
  letter-spacing: .005em;
  max-width: 14ch;
}
.hero__title--accent { color: var(--accent); }

.hero__subtitle {
  margin-top: 28px;
  max-width: 480px;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.hero__actions {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: max(5vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.scroll-cue__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ==========================================================
   TOOLS / MARQUEE (rooter)
   ========================================================== */
.tools { background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.timeline-ruler {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-bottom: 48px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.section-head { max-width: var(--container); margin-left: auto; margin-right: auto; margin-bottom: 56px; }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 22s linear infinite;
}

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

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

.clip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 20px 28px;
  min-width: 260px;
  transition: transform .3s var(--ease), border-color .3s ease;
}
.clip:hover { transform: translateY(-4px); border-color: var(--accent); }

.clip--ae { border-left-color: #7C9EFF; }
.clip--ps { border-left-color: #22D3EE; }

.clip__badge {
  font-family: var(--font-display);
  font-size: 22px;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(76,141,255,.14);
  color: var(--accent);
}
.clip--ae .clip__badge { background: rgba(124,158,255,.16); color: #7C9EFF; }
.clip--ps .clip__badge { background: rgba(34,211,238,.14); color: #22D3EE; }

.clip__info strong { display: block; font-size: 15px; }
.clip__info small { color: var(--text-muted); font-size: 12.5px; }

/* ==========================================================
   CHANGELOG
   ========================================================== */
.changelog__list {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.changelog__entry {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

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

.changelog__entry p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
}

.changelog__entry--current {
  grid-template-columns: 90px auto 1fr;
}

.changelog__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 3px 9px;
  border-radius: 999px;
  justify-self: start;
}

.changelog__entry--current p { grid-column: 1 / -1; }

@media (max-width: 620px) {
  .changelog__entry,
  .changelog__entry--current {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .changelog__entry--current p { grid-column: auto; }
  .changelog__tag { justify-self: start; }
}

/* ==========================================================
   WORK — featured video showcase (the highlighted section)
   ========================================================== */
.work {
  position: relative;
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* ambient glow behind the grid to pull the eye here */
.work__glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: min(900px, 90vw);
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(76,141,255,.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.work .section-head,
.video-grid,
.work__note {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  gap: 20px;
}

.video-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: linear-gradient(155deg, #21262c, #14171a);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.video-card--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.video-card--empty {
  border: 1.5px dashed var(--line);
  background: linear-gradient(155deg, #1a1e22, #131619);
}

.video-card--filled {
  padding: 0;
  align-items: flex-end;
  border: 1px solid var(--line);
  background: #000;
}

.video-card__frame {
  position: absolute;
  inset: 0;
}
.video-card__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-card--filled .video-card__meta {
  position: relative;
  z-index: 2;
  margin: 10px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(5,7,11,.72);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -18px rgba(76,141,255,.38);
}

.video-card--empty:hover {
  border-color: var(--accent);
}

.video-card__tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(13,15,18,.6);
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: transform .3s var(--ease), color .3s ease, border-color .3s ease;
}
.video-card__play svg { width: 18px; height: 18px; margin-left: 2px; }

.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.12);
  color: var(--accent);
  border-color: var(--accent);
}

.video-card--featured .video-card__play {
  width: 76px;
  height: 76px;
}
.video-card--featured .video-card__play svg { width: 24px; height: 24px; }

.video-card__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.video-card__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-muted);
}

.video-card__label {
  font-size: 12.5px;
  color: var(--text-faint);
}

.work__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: .95rem;
}

.work__note-icon { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

.work__note-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  font-weight: 600;
}
.work__note-link:hover { color: var(--text); border-color: var(--text); }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact { background: var(--bg-panel); border-top: 1px solid var(--line); }

.contact__inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact__inner .eyebrow, .contact__inner .section-title, .contact__inner .section-lead { margin-left: auto; margin-right: auto; }
.contact__inner .eyebrow { justify-content: center; }

.contact__email {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  text-transform: lowercase;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  transition: color .25s ease;
}
.contact__email:hover { color: var(--accent); }

.contact__socials {
  margin-top: 36px;
  display: flex;
  gap: 14px;
}

.social-link {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-muted);
  background: var(--bg-panel-2);
  transition: color .25s ease, border-color .25s ease, transform .25s var(--ease), background .25s ease;
}
.social-link svg { width: 19px; height: 19px; }

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(76,141,255,.08);
  transform: translateY(-3px);
}

.social-link--copy.is-copied {
  color: var(--accent-teal);
  border-color: var(--accent-teal);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  padding: 48px 24px 96px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer__copy { text-align: center; }

/* ==========================================================
   NEOFETCH-STYLE SPECS
   ========================================================== */
.neofetch {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-panel);
}

.neofetch__logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--bg-panel-2);
}
.neofetch__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.neofetch__specs { display: flex; flex-direction: column; gap: 4px; }
.neofetch__specs li { color: var(--text-muted); }
.neofetch__key {
  display: inline-block;
  width: 64px;
  color: var(--accent);
}

@media (max-width: 560px) {
  .neofetch { flex-direction: column; text-align: center; gap: 14px; }
  .neofetch__key { width: auto; margin-right: 8px; }
}

/* ==========================================================
   BOOT SEQUENCE
   ========================================================== */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #05070B;
  color: #9FC3FF;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  padding: 32px max(5vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}

.boot-screen.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-screen__log { display: flex; flex-direction: column; gap: 2px; }
.boot-screen__log div { white-space: pre-wrap; opacity: 0; animation: boot-line .25s ease forwards; }

@keyframes boot-line {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

.boot-screen__ok { color: var(--accent-teal); }
.boot-screen__warn { color: #E8B34A; }
.boot-screen__dim { color: var(--text-faint); }

.boot-screen__skip {
  position: absolute;
  bottom: 24px;
  right: max(5vw, 24px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--text-faint);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  transition: color .2s ease, border-color .2s ease;
}
.boot-screen__skip:hover { color: var(--accent); border-color: var(--accent); }

/* ==========================================================
   TERMINAL WINDOW (hero chrome)
   ========================================================== */
.term-window {
  position: relative;
  z-index: 1;
  width: min(980px, 92vw);
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(15, 20, 28, .82);
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 90px -36px rgba(0,0,0,.65), 0 0 0 1px rgba(76,141,255,.05);
}

.term-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: rgba(20, 26, 36, .9);
  border-bottom: 1px solid var(--line);
}

.term-window__path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.term-window__controls { display: flex; gap: 8px; }
.term-window__btn {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  font-size: 12px;
  color: var(--text-faint);
  border: 1px solid var(--line);
  transition: border-color .2s ease, color .2s ease;
}
.term-window__btn:hover { border-color: var(--accent); color: var(--accent); }
.term-window__btn--close:hover { border-color: #E8604A; color: #E8604A; }

.term-window__body {
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px) clamp(48px, 6vw, 72px);
}

/* keep hero__inner's own layout rules, just drop the outer positioning duties */
.term-window .hero__inner { max-width: none; margin: 0; width: auto; }

@media (max-width: 560px) {
  .term-window { width: 94vw; }
  .term-window__path { font-size: 10.5px; }
}

/* ==========================================================
   OS TASKBAR
   ========================================================== */
.os-panel {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
  background: rgba(9, 12, 18, .82);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.os-panel__logo { color: var(--accent); font-size: 14px; }

.os-panel__workspaces { display: flex; gap: 6px; }
.os-panel__ws {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  border: 1px solid transparent;
  color: var(--text-faint);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.os-panel__ws.is-active,
.os-panel__ws:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(76,141,255,.08);
}

.os-panel__right { display: flex; align-items: center; gap: 16px; }
.os-panel__icon { width: 15px; height: 15px; color: var(--text-faint); }
.os-panel__clock { color: var(--text-muted); letter-spacing: .04em; min-width: 42px; text-align: right; }

@media (max-width: 620px) {
  .os-panel__workspaces { display: none; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(13,15,18,.98);
    padding: 24px max(5vw, 24px) 32px;
    border-bottom: 1px solid var(--line);
    gap: 20px;
  }

  .track { grid-template-columns: 40px 40px 1fr; gap: 16px; }
  section { padding: 90px 24px; }

  .video-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .video-card--featured { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 560px) {
  .hero { padding-top: 120px; }
  .hero__status { flex-wrap: wrap; }
  .timecode { border-left: none; padding-left: 0; }

  .video-grid { grid-template-columns: 1fr; grid-auto-rows: 160px; }
  .video-card--featured { grid-column: span 1; grid-row: span 1; height: 220px; }
}
