/* ============================================
   SECTION LAYOUTS — Editorial Cream Theme
   Hero, Portfolio, About, Services,
   Testimonials, Contact, Footer, Nav
   ============================================ */

/* ═══ PRELOADER ═══ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  overflow: hidden;
}
.preloader__name span {
  display: inline-block;
  transform: translateY(100%);
  animation: preloaderSlideUp 0.6s var(--ease-smooth) forwards;
}
.preloader__bar {
  width: 200px;
  height: 2px;
  background: var(--border-color);
  border-radius: 1px;
  overflow: hidden;
}
.preloader__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 1px;
  animation: preloaderFill 0.4s var(--ease-in-out) 0.1s forwards;
}

@keyframes preloaderSlideUp {
  to { transform: translateY(0); }
}
@keyframes preloaderFill {
  to { width: 100%; }
}

/* ═══ NAVIGATION ═══ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  transition: all var(--duration-normal) var(--ease-out);
  background: transparent;
}
.navbar.scrolled {
  background: #000000;
  border-bottom: 1px solid var(--border-color);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: var(--fw-bold);
  font-style: italic;
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  transition: color var(--duration-fast) var(--ease-out);
}
.navbar__logo:hover { color: var(--accent); }

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.navbar__link {
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--text-tertiary);
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--duration-normal) var(--ease-out);
}
.navbar__link:hover,
.navbar__link.active {
  color: var(--text-primary);
}
.navbar__link:hover::after,
.navbar__link.active::after { width: 100%; }
.navbar__link.active {
  color: var(--text-primary);
}
.navbar__link.active::after {
  width: 100%;
  background: var(--accent);
}

.navbar__cta {
  padding: 10px 24px;
  font-size: var(--fs-label);
}

/* Mobile hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  
}
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}
.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.navbar__hamburger.active span:nth-child(2) { opacity: 0; }
.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-sticky) - 1);
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}
.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: var(--fw-bold);
  font-style: italic;
  letter-spacing: var(--ls-tight);
  color: var(--text-tertiary);
  transition: color var(--duration-fast) var(--ease-out);
}
.mobile-menu__link:hover { color: var(--accent); }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__canvas {
  width: 100%;
  height: 100%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 950px;
  padding: 0 var(--container-padding);
}
.hero__label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}
.hero__name {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  font-style: italic;
  letter-spacing: var(--ls-tight);
  line-height: 0.95;
  margin-bottom: var(--space-md);
  color: var(--accent);
}
.hero__name .char {
  display: inline-block;
}
.hero__title {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}
.hero__tagline {
  font-size: var(--fs-body);
  color: var(--text-tertiary);
  margin-bottom: var(--space-xl);
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}
.hero__cta {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll-text {
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--text-muted);
  writing-mode: vertical-lr;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--text-muted);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ═══ PORTFOLIO SECTION ═══ */
.portfolio {
  position: relative;
  background: transparent;
}

/* Outer wrapper — simple vertical stack for tier groups */
.portfolio__tiers-container {
  display: flex;
  flex-direction: column;
}

/* Inner grid inside each tier group */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: start;
}
.portfolio-item {
  width: 100%;
}
.portfolio-card--hero {
  column-span: all;
}
.portfolio-item.hidden-card {
  display: none !important;
}

/* ── Tiers Visual Grouping ── */
.portfolio__tier-group {
  padding: var(--space-xl) 0;
  transition: opacity 0.4s var(--ease-out);
}
.portfolio__tier-group.hidden-group {
  display: none !important;
}
.portfolio__tier-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
}
.portfolio__tier-sub {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}
.portfolio__tier-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: var(--ls-tight);
  margin: 0;
}
.portfolio__tier-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
  margin: 0;
}

/* Tier 2 Alternate Shade */
.portfolio__tier-group[data-tier="tier-2"] {
  background: rgba(20, 20, 20, 0.5);
  margin: 0 calc(-1 * var(--container-padding));
  padding: var(--space-xl) var(--container-padding);
}

/* ═══ ABOUT SECTION ═══ */
.about {
  position: relative;
  background: rgba(20, 20, 20, 0.4);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}
.about__text h3 {
  margin-bottom: var(--space-md);
}
.about__bio {
  margin-bottom: var(--space-lg);
  max-width: 55ch;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) 0;
  border-top: 2px solid var(--border-strong);
  border-bottom: 1px solid var(--border-color);
}
.stat__number {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: var(--fs-label);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.about__sidebar-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

/* ═══ SERVICES SECTION ═══ */
.services {
  position: relative;
  background: var(--bg-primary);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* ═══ TESTIMONIALS SECTION ═══ */
.testimonials {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.testimonials__track-wrapper {
  overflow: hidden;
  margin: 0 calc(-1 * var(--container-padding));
  padding: var(--space-sm) 0;
}
.testimonials__track {
  display: flex;
  gap: var(--space-md);
  animation: testimonialScroll 40s linear infinite;
  width: max-content;
}
.testimonials__track:hover {
  animation-play-state: paused;
}
@keyframes testimonialScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══ CONTACT SECTION ═══ */
.contact {
  position: relative;
  background: var(--bg-primary);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}
.contact__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact__info h3 {
  margin-bottom: var(--space-md);
}
.contact__info p {
  margin-bottom: var(--space-xl);
}
.contact__detail {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  font-size: var(--fs-body);
  transition: color var(--duration-fast) var(--ease-out);
}
.contact__detail:hover { color: var(--accent); }
.contact__detail svg {
  width: 20px; height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact__social {
  margin-top: var(--space-lg);
}
.contact__social-label {
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}

.contact__form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}
.contact__form-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  font-style: italic;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl);
}
.form-success.show { display: block; }
.form-success__icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-md);
  color: var(--accent);
}
.form-success__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
}

/* ═══ FOOTER ═══ */
.footer {
  background: var(--bg-dark);
  color: #f0f0f0;
  padding: var(--space-xl) 0 var(--space-lg);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  font-style: italic;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-sm);
  color: #ffffff;
}
.footer__brand-desc {
  font-size: var(--fs-small);
  color: #888888;
  max-width: 350px;
  margin-bottom: var(--space-md);
}
.footer__heading {
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: #ffffff;
  margin-bottom: var(--space-md);
}
.footer__link {
  display: block;
  font-size: var(--fs-small);
  color: #888888;
  margin-bottom: var(--space-xs);
  transition: color var(--duration-fast) var(--ease-out);
}
.footer__link:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__copyright {
  font-size: var(--fs-label);
  color: #555555;
}
.footer__back-top {
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: #888888;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--duration-fast) var(--ease-out);
}
.footer__back-top:hover { color: var(--accent); }
.footer__back-top svg { width: 14px; height: 14px; }

/* ═══ CUSTOM CURSOR ═══ */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-smooth),
              height 0.3s var(--ease-smooth),
              border-color 0.3s;
}
.cursor-dot.hovering {
  width: 12px; height: 12px;
  background: rgba(255, 62, 17, 0.6);
}
.cursor-ring.hovering {
  width: 50px; height: 50px;
  border-color: rgba(255, 62, 17, 0.25);
}

@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ═══ VIEW FINDER HUD ═══ */
.viewfinder {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  padding: 30px;
}
.viewfinder__corner {
  position: absolute;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.viewfinder__corner--tl { top: 30px; left: 30px; border-right: none; border-bottom: none; }
.viewfinder__corner--tr { top: 30px; right: 30px; border-left: none; border-bottom: none; }
.viewfinder__corner--bl { bottom: 30px; left: 30px; border-right: none; border-top: none; }
.viewfinder__corner--br { bottom: 30px; right: 30px; border-left: none; border-top: none; }

.viewfinder__hud {
  position: absolute;
  left: 50px;
  right: 50px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  top: 45px;
}
.viewfinder__hud-left,
.viewfinder__hud-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.viewfinder__rec {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
}
.viewfinder__rec-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ═══ AMBIENT VIDEO PORTALS ═══ */
.ambient-portals {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.ambient-portal {
  position: absolute;
  overflow: hidden;
  border-radius: 0;
  transition: transform 0.15s ease-out, filter 0.1s ease-out;
  opacity: 0.7;
  filter: brightness(1.2) contrast(1.1);
  will-change: filter;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at center, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 75%);
  mask-image: radial-gradient(ellipse 90% 90% at center, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 75%);
}

/* Heavy vignette to feather all edges into the black background */
.ambient-portal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  box-shadow:
    inset 0 0 3vw 3vw #0a0a0a,
    inset 0 0 6vw 5vw rgba(10,10,10,0.95),
    inset 0 0 10vw 8vw rgba(10,10,10,0.8),
    inset 0 0 14vw 10vw rgba(10,10,10,0.5);
}

.ambient-portal--1 {
  top: 0%;
  right: -2%;
  width: 42vw;
  transform: rotate(4deg) scaleX(-1);
}

.ambient-portal--2 {
  top: 5%;
  left: 8%;
  width: 45vw;
  transform: rotate(-5deg);
}

.ambient-portal__video {
  width: 100%;
  height: auto;
  display: block; /* removes gap below video */
}
.ambient-portal__overlay {
  display: none; /* Removed in favor of mask-image */
}

/* ═══ SPECIALTY BADGES (About Section) ═══ */
.about__specialty {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.specialty-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color var(--duration-fast) var(--ease-out);
}
.specialty-item:hover {
  border-color: var(--accent);
}
.specialty-label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
}
.specialty-value {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
}

/* ═══ CURSOR PREVIEW PORTAL ═══ */
.cursor-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  z-index: var(--z-cursor);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
  transform-origin: center center;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-smooth);
}
.cursor-preview.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(2deg);
}
.cursor-preview__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.cursor-preview__frame {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #aaa;
}
.cursor-preview__label {
  color: var(--accent);
}
.cursor-preview__status::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius-full);
  animation: recBlink 1.5s infinite steps(1);
}

/* ═══ LUT TOGGLE SWITCH ═══ */
.lut-toggle {
  display: none;
}

/* ═══ THE GRADE SECTION ═══ */
.grade {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.grade__intro {
  max-width: 700px;
  margin-bottom: var(--space-xl);
}
.grade-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  user-select: none;
  
}
.grade-slider__before,
.grade-slider__after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.grade-slider__before video {
  filter: saturate(0.12) contrast(0.85) brightness(1.1);
}
.grade-slider__after {
  width: 50%;
  overflow: hidden;
  border-right: 1px solid transparent;
  z-index: 2;
}
.grade-slider__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grade-slider__after .grade-slider__video {
  width: var(--slider-width, 100%);
  height: 100%;
  object-fit: cover;
  max-width: none;
}
.grade-slider__label {
  position: absolute;
  top: var(--space-sm);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  padding: 6px 12px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  z-index: 10;
  color: #ffffff;
}
.grade-slider__label--before {
  left: var(--space-sm);
  color: #aaaaaa;
}
.grade-slider__label--after {
  right: var(--space-sm);
  color: var(--accent);
  border-color: rgba(255, 62, 17, 0.3);
}
.grade-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  z-index: 5;
  
  box-shadow: 0 0 15px var(--accent);
  transform: translateX(-50%);
}
.grade-slider__handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(255, 62, 17, 0.3), var(--shadow-lg);
  z-index: 6;
}
.grade-slider__arrow {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  color: var(--accent);
  transform: translateY(-50%);
  z-index: 7;
  pointer-events: none;
}
.grade-slider__arrow--left {
  left: 50%;
  transform: translate(-14px, -50%);
}
.grade-slider__arrow--right {
  left: 50%;
  transform: translate(0px, -50%);
}

/* ═══ TIMELINE HUD ═══ */
.timeline-hud {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 130px;
  background: #0a0a0a;
  border-top: 2px solid var(--border-strong);
  z-index: 180;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: transform 0.4s var(--ease-smooth);
}
.timeline-hud__header {
  height: 28px;
  padding: 0 20px;
  background: #111111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  color: #888888;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.timeline-hud__timecode {
  font-family: monospace;
  color: #ffffff;
  font-size: 11px;
}
.timeline-hud__body {
  position: relative;
  flex: 1;
  display: flex;
  overflow: hidden;
}
.timeline-hud__playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #ffffff;
  z-index: 10;
  pointer-events: none;
}
.timeline-hud__playhead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #ffffff;
}
.timeline-hud__tracks {
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.timeline-hud__tracks::-webkit-scrollbar {
  display: none;
}
.timeline-hud__track {
  display: flex;
  align-items: center;
  height: 33.33%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}
.timeline-hud__track--a1 {
  border-bottom: none;
}
.timeline-hud__track-label {
  position: sticky;
  left: 0;
  width: 32px;
  height: 100%;
  background: #111111;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #555555;
  z-index: 5;
}
.timeline-hud__track-content {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 50vw;
  height: 100%;
}
.timeline-hud__clip {
  height: 22px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 10px;
  white-space: nowrap;
  user-select: none;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}
.timeline-hud__clip--marker {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #aaaaaa;
  
  transition: all var(--duration-fast) var(--ease-out);
}
.timeline-hud__clip--marker:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}
.timeline-hud__clip--marker.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.timeline-hud__clip--video {
  background: #1f2d1f;
  border: 1px solid rgba(80, 180, 80, 0.2);
}
.timeline-hud__clip--filler {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #444;
}

.timeline-hud__clip--audio {
  background: #1e2838;
  border: 1px solid rgba(60, 120, 200, 0.2);
  width: 1650px;
}

/* Offset page bottom to avoid timeline overlap */
body {
  padding-bottom: 130px !important;
}
