/* ============================================================
   RUNOUT FILMS — Component Styles
   Nav, Footer, Buttons, Cards, Cursor, Transitions, Preloader
   ============================================================ */

/* ============================================================
   1. PRELOADER (Minimal Black Screen + Yellow Scrambled Text)
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-preloader);
  background-color: transparent;
  overflow: hidden;
  pointer-events: auto;
}

/* Three cascading curtain layers (Front Black -> Yellow Accent -> Back Black) */
.preloader__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.preloader__layer--back {
  background-color: #000000;
  z-index: 1;
}

.preloader__layer--accent {
  background-color: var(--color-accent, #FFDE05);
  z-index: 2;
}

.preloader__layer--front {
  background-color: #000000;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preloader__matrix-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 88%;
  max-width: 1080px;
  padding: 0 var(--space-4);
  user-select: none;
}

/* Left Column */
.preloader__left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(2.5rem, 6vh, 5rem);
}

.preloader__meta-tag {
  font-family: monospace, var(--font-body);
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  text-transform: uppercase;
  opacity: 0.95;
}

.preloader__dot-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__cross-svg {
  width: clamp(60px, 7vw, 85px);
  height: clamp(60px, 7vw, 85px);
  overflow: visible;
}

.preloader__cross-svg .dot-static {
  fill: var(--color-accent);
  opacity: 0.85;
}

/* Right Column */
.preloader__right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.preloader__matrix-wrap {
  width: clamp(280px, 42vw, 540px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.preloader__matrix-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}

/* Square elements in matrix: inactive squares completely hidden */
.preloader__matrix-svg .matrix-dot {
  fill: var(--color-accent);
  opacity: 0;
  transition: opacity 0.05s ease;
}

.preloader__matrix-svg .matrix-dot.active {
  opacity: 1;
}

.preloader__brand-tag {
  font-family: monospace, var(--font-body);
  font-size: clamp(0.7rem, 0.95vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  text-transform: uppercase;
  opacity: 0.75;
}

/* Responsive adjustment for tablet/mobile */
@media (max-width: 768px) {
  .preloader__matrix-container {
    flex-direction: column-reverse;
    justify-content: center;
    gap: 3.5rem;
    text-align: center;
  }

  .preloader__left-col {
    align-items: center;
    gap: 1.5rem;
  }

  .preloader__right-col {
    align-items: center;
  }
}

/* Skip preloader on internal transitions */
.skip-preloader .preloader {
  display: none !important;
}

/* ============================================================
   2. PAGE TRANSITION
   ============================================================ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: var(--z-transition);
  pointer-events: none;
}

.page-transition__panel {
  position: absolute;
  inset: 0;
  background-color: var(--color-bg-primary);
  transform: scaleY(0);
  transform-origin: top;
}

.page-transition__panel--accent {
  background-color: var(--color-accent);
}

/* ============================================================
   3. CUSTOM CURSOR (Sticky Grid Crosshair & Expanding Square Block)
   ============================================================ */
.plus-line-wrapper {
  position: fixed;
  inset: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  overflow: hidden;
}

/* 1. Full-Height Vertical Thin Line (Locked to cursor X) */
.verical-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  will-change: transform;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

/* 2. Full-Width Horizontal Thin Line (Locked to cursor Y) */
.horizontal-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  will-change: transform;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

/* 3. Central Square Block Cursor situated at the exact intersection */
.cursor-block {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  margin-left: -7px;
  border: 1.5px solid var(--color-text-primary);
  background-color: transparent;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, width, height, margin;
  transition: width 0.35s var(--ease-out-expo),
    height 0.35s var(--ease-out-expo),
    margin 0.35s var(--ease-out-expo),
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.3s ease;
}

/* Center pip inside the square block */
.cursor-block__inner {
  width: 4px;
  height: 4px;
  background-color: var(--color-accent);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Center Label (VIEW / PLAY) inside the big expanded transparent square */
.cursor-block__label {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out-expo);
}

.cursor-block__text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-primary);
  text-transform: uppercase;
}

.cursor-block__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

/* 4. State Interactions */

/* Hovering over links / buttons */
.plus-line-wrapper.is-hover-link .cursor-block {
  width: 26px;
  height: 26px;
  margin-top: -13px;
  margin-left: -13px;
  border-color: var(--color-accent);
  background-color: rgba(255, 222, 5, 0.15);
}

.plus-line-wrapper.is-hover-link .verical-line,
.plus-line-wrapper.is-hover-link .horizontal-line {
  background-color: rgba(255, 222, 5, 0.35);
}

/* Hovering over work / media cards -> Expands into big transparent square */
.plus-line-wrapper.is-hover-card .cursor-block {
  width: 96px;
  height: 96px;
  margin-top: -48px;
  margin-left: -48px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(255, 222, 5, 0.15);
}

.plus-line-wrapper.is-hover-card .cursor-block__inner {
  opacity: 0;
  transform: scale(0);
}

.plus-line-wrapper.is-hover-card .cursor-block__label {
  opacity: 1;
  transform: scale(1);
}

.plus-line-wrapper.is-hover-card .verical-line,
.plus-line-wrapper.is-hover-card .horizontal-line {
  background-color: rgba(255, 222, 5, 0.35);
}

/* Mouse Down / Press State */
.plus-line-wrapper.is-down .cursor-block {
  transform: scale(0.9);
}

/* ============================================================
   4. NAVIGATION BAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: height 0.5s var(--ease-out-expo);
}

.navbar.is-scrolled {
  height: var(--nav-height-compact);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar__logo {
  display: flex;
  align-items: center;
  margin-left: -4px;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.3s ease;
  text-decoration: none;
}

.navbar.is-menu-open .navbar__logo {
  opacity: 0;
  pointer-events: none;
}

.navbar__logo-img {
  height: 24px;
  width: auto;
  display: block;
  transform-origin: left center;
  will-change: transform;
}

.navbar.is-scrolled .navbar__logo {
  transform: scale(0.9);
}

.navbar__menu-trigger {
  display: inline-flex;
  align-items: center;
  height: 28px;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 0 0 0 8px;
  margin-right: -4px;
  border-radius: var(--radius-full);
  transition: color var(--duration-fast) ease;
  position: relative;
}

.navbar__menu-trigger:hover {
  color: var(--color-accent);
}

/* Smooth rolling text ticker for Menu <-> Close */
.navbar__menu-trigger .menu-label {
  position: relative;
  display: inline-grid;
  place-items: center start;
  overflow: hidden;
  height: 12px;
  min-width: 36px;
  line-height: 1;
  text-align: left;
}

.navbar__menu-trigger .menu-label__text {
  grid-area: 1 / 1;
  line-height: 1;
  transition: opacity 0.55s ease, transform 0.55s var(--ease-out-expo);
  display: block;
}

.navbar__menu-trigger .menu-label__text--close {
  opacity: 0;
  transform: translateY(100%);
}

.navbar__menu-trigger.is-active .menu-label__text--menu {
  opacity: 0;
  transform: translateY(-100%);
}

.navbar__menu-trigger.is-active .menu-label__text--close {
  opacity: 1;
  transform: translateY(0);
}

/* Vertical Three-Stick (III) <-> Cross (X) Animation */
.navbar__menu-trigger .menu-icon {
  width: 12px;
  height: 12px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.navbar__menu-trigger .menu-bar {
  transform-box: view-box;
  transition: transform 0.55s var(--ease-out-expo),
              opacity 0.4s ease;
}

/* Default state: III (Three vertical sticks matching cap-height) */
.navbar__menu-trigger .menu-bar--1 {
  transform-origin: 2.5px 6.6px;
  transform: translate(0, 0) rotate(0deg) scaleY(1);
}

.navbar__menu-trigger .menu-bar--2 {
  transform-origin: 6px 6.6px;
  transform: translate(0, 0) scaleY(1);
  opacity: 1;
}

.navbar__menu-trigger .menu-bar--3 {
  transform-origin: 9.5px 6.6px;
  transform: translate(0, 0) rotate(0deg) scaleY(1);
}

/* Active state: Middle bar collapses, Left and Right sticks cross into a perfectly centered X */
.navbar__menu-trigger.is-active .menu-bar--1 {
  transform: translate(3.5px, 0) rotate(45deg) scaleY(1.2);
}

.navbar__menu-trigger.is-active .menu-bar--2 {
  transform: scaleY(0);
  opacity: 0;
}

.navbar__menu-trigger.is-active .menu-bar--3 {
  transform: translate(-3.5px, 0) rotate(-45deg) scaleY(1.2);
}

/* ============================================================
   5. FULL-SCREEN NAV OVERLAY (Two-Layer Cascading Curtain)
   ============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99; /* Below navbar (100), above all page sections (max 15) */
  background-color: transparent;
  pointer-events: none;
  overflow: hidden;
}

.nav-overlay.is-open {
  pointer-events: auto;
}

/* Two curtain layers (Yellow Accent underneath, Black Content on top) */
.nav-overlay__layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  backface-visibility: hidden;
}

.nav-overlay__layer--accent {
  background-color: var(--color-accent, #FFDE05);
  z-index: 1;
}

.nav-overlay__layer--content {
  background-color: var(--color-bg-primary, #0a0a0a);
  z-index: 2;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.nav-overlay__content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  /* allow wrapping on narrow heights/widths */
  padding-top: calc(var(--nav-height) + var(--space-6));
  padding-bottom: var(--space-8);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  gap: var(--space-8);
  min-height: min-content;
}

.nav-overlay__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nav-overlay__link {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 3.5rem);
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  padding: var(--space-1) 0;
  opacity: 0;
  transform: translateY(40px);
  overflow: hidden;
  transition: color 0.3s ease;
}

.nav-overlay__link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.2s var(--ease-out-expo);
}

.nav-overlay__link:hover {
  color: var(--color-accent);
}

.nav-overlay__link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-overlay__link.is-active {
  color: var(--color-accent);
}

.nav-overlay__link-number {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-right: var(--space-4);
  vertical-align: super;
}

/* Side panel in overlay */
.nav-overlay__side {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-top: 0;
  padding-bottom: var(--space-6);
  opacity: 0;
  transform: translateX(30px);
}

.nav-overlay__contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.nav-overlay__contact-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.nav-overlay__contact-value {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text-primary);
  transition: color 0.2s ease;
}

.nav-overlay__contact-value:hover {
  color: var(--color-accent);
}

.nav-overlay__socials {
  display: flex;
  gap: var(--space-5);
}

.nav-overlay__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  color: var(--color-text-primary);
  transition: border-color 0.3s ease,
    color 0.3s ease,
    background-color 0.3s ease;
}

.nav-overlay__social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: var(--color-accent-dim);
}

.nav-overlay__social-link svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   6. MEET THE OWNER CARD
   ============================================================ */
.ceo-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.4s ease,
    background-color 0.4s ease;
}

.ceo-card:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent-dim);
}

.ceo-card__portrait {
  width: 64px;
  height: 80px;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-surface);
  flex-shrink: 0;
}

.ceo-card__info {
  flex: 1;
}

.ceo-card__name {
  font-family: var(--font-display);
  font-size: var(--text-body-lg);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.ceo-card__role {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.ceo-card__arrow {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo);
}

.ceo-card:hover .ceo-card__arrow {
  transform: translateX(4px);
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-bg-primary);
  border: 2px solid var(--color-accent);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-bg-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
}

.btn--primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn--primary:hover {
  color: var(--color-accent);
}

.btn__text {
  position: relative;
  z-index: 1;
}

.btn__icon {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-primary);
  padding: var(--space-2) 0;
  border-radius: 0;
  text-transform: none;
  letter-spacing: var(--tracking-normal);
  font-size: var(--text-body);
}

.btn--ghost::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.btn--ghost:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn--ghost:hover {
  color: var(--color-accent);
}

/* Button loading state */
.btn.is-loading {
  pointer-events: none;
  cursor: wait;
}

.btn.is-loading .btn__text {
  opacity: 1;
}

.btn.is-loading .btn__icon {
  display: none;
}

.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(0, 0, 0, 0.2);
  border-top-color: currentColor;
  animation: btn-spin 0.75s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.btn--outline .btn__spinner,
.btn--ghost .btn__spinner {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: currentColor;
}

.btn.is-loading .btn__spinner {
  display: inline-block;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   8. FILTER PILLS
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.filter-pill {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}

.filter-pill:hover {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

.filter-pill.is-active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-primary);
}

/* ============================================================
   9. PROJECT CARDS
   ============================================================ */
.project-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-surface);
}

.project-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-bg-surface);
  overflow: hidden;
  position: relative;
}

.project-card__media img,
.project-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.project-card:hover .project-card__media img,
.project-card:hover .project-card__media video {
  transform: scale(1.05);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__play-icon {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.4s var(--ease-out-expo),
    opacity 0.3s ease;
}

.project-card:hover .project-card__play-icon {
  transform: scale(1);
  opacity: 1;
}

.project-card__play-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-bg-primary);
}

.project-card__info {
  padding: var(--space-5);
}

.project-card__client {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
  display: block;
}

.project-card__title {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-3);
  display: block;
}

.project-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.project-card__tag {
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

/* ============================================================
   11. TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.tab {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: var(--space-4) var(--space-6);
  color: var(--color-text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  background: none;
  border: none;
}

.tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out-expo);
}

.tab:hover {
  color: var(--color-text-primary);
}

.tab.is-active {
  color: var(--color-accent);
}

.tab.is-active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
}

.tab-content.is-active {
  display: block;
}

/* ============================================================
   12. FESTIVAL BADGES / LAURELS
   ============================================================ */
.laurel-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 160px;
}

.laurel-badge--highlight {
  border-color: var(--color-border);
  background-color: var(--color-bg-surface);
}

.laurel-badge__image {
  width: 100%;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.laurel-badge__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.laurel-badge__festival {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-1);
}

.laurel-badge__result {
  font-family: var(--font-display);
  font-size: var(--text-body);
  color: var(--color-text-primary);
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.site-footer {
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-primary);
}

.footer__upper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-8);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer__logo {
  max-width: 260px;
  height: auto;
  display: block;
}

.footer__tagline {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  max-width: 300px;
  line-height: var(--leading-relaxed);
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__nav-label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.footer__nav-link {
  font-size: var(--text-body);
  color: var(--color-text-primary);
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer__nav-link:hover {
  color: var(--color-accent);
}

.footer__ceo-section {
  grid-column: 1 / -1;
}

.footer__ceo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.footer__ceo-grid--single {
  grid-template-columns: 1fr;
}

.footer__ceo-item {
  display: flex;
  flex-direction: column;
}

.footer__ceo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.4s ease,
    background-color 0.4s ease;
  gap: var(--space-6);
  flex: 1;
}

.footer__ceo-banner:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent-dim);
}

.footer__ceo-banner-left {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.footer__ceo-info {
  min-width: 0;
}

.footer__ceo-portrait {
  width: 80px;
  height: 100px;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-surface);
  flex-shrink: 0;
  overflow: hidden;
}

.footer__ceo-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer__ceo-name {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.footer__ceo-role {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

.footer__ceo-arrow {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  transition: transform 0.3s var(--ease-out-expo);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__ceo-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer__ceo-banner:hover .footer__ceo-arrow {
  transform: translateX(6px);
}

@media (max-width: 900px) {
  .footer__ceo-grid {
    grid-template-columns: 1fr;
  }
}

.footer__lower {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__credits {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer__copyright {
  font-size: var(--text-small);
  color: var(--color-text-tertiary);
}

.footer__developer {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  letter-spacing: 0.02em;
}

.footer__developer-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer__developer-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer__socials {
  display: flex;
  gap: var(--space-4);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  color: var(--color-text-secondary);
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: var(--color-accent-dim);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   14. SCROLL CUE
   ============================================================ */
.scroll-cue {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.scroll-cue__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }

  30% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  70% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

.scroll-cue__text {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  writing-mode: vertical-rl;
  letter-spacing: var(--tracking-widest);
}

/* ============================================================
   15. MOBILE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
  .navbar__menu-trigger {
    height: 24px;
    font-size: 0.68rem;
    gap: 5px;
    padding: 0 0 0 6px;
  }

  .navbar__menu-trigger .menu-label {
    height: 10px;
    min-width: 30px;
  }

  .navbar__menu-trigger .menu-icon {
    width: 10px;
    height: 10px;
  }

  .nav-overlay__content {
    flex-direction: column;
    gap: var(--space-6);
    padding-bottom: var(--space-16);
  }

  .nav-overlay__side {
    width: 100%;
    flex-direction: column;
    gap: var(--space-5);
    padding-top: var(--space-6);
    padding-bottom: 12vh;
    /* Extra push to keep it above mobile browser bars */
    border-top: 1px solid var(--color-border);
  }

  .nav-overlay__links {
    gap: 2px;
  }

  .nav-overlay__link {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
    padding: 5px 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    line-height: 1.2;
  }

  .nav-overlay__link-number {
    font-size: 0.78rem;
    margin-right: var(--space-3);
  }

  .footer__upper {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

  .footer__ceo-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: var(--space-4) var(--space-5);
    gap: var(--space-4);
  }

  .footer__ceo-banner-left {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: var(--space-4);
    min-width: 0;
    flex: 1;
  }

  .footer__ceo-portrait {
    width: 64px;
    height: 80px;
    flex-shrink: 0;
  }

  .footer__ceo-name {
    font-size: clamp(0.95rem, 3.4vw, 1.15rem);
    margin-bottom: var(--space-1);
    white-space: normal;
  }

  .footer__ceo-role {
    font-size: clamp(0.72rem, 2.5vw, 0.85rem);
    line-height: var(--leading-normal);
  }

  .footer__ceo-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .footer__lower {
    flex-direction: column;
    text-align: center;
    gap: var(--space-5);
  }

  .footer__credits {
    align-items: center;
    text-align: center;
  }

  .project-modal__content {
    width: 95%;
    max-height: 95vh;
  }

  .project-modal__details {
    padding: var(--space-5);
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-3);
    -webkit-overflow-scrolling: touch;
  }

  .filter-pill {
    flex-shrink: 0;
  }
}

/* Hide on actual mobile/tablet screens */
@media (max-width: 767px) {
  .plus-line-wrapper {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .footer__ceo-banner {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-3);
  }

  .footer__ceo-banner-left {
    gap: var(--space-3);
  }

  .footer__ceo-portrait {
    width: 56px;
    height: 70px;
  }

  .footer__ceo-name {
    font-size: clamp(0.85rem, 3.4vw, 0.98rem);
  }

  .footer__ceo-role {
    font-size: clamp(0.68rem, 2.4vw, 0.78rem);
  }

  .footer__ceo-arrow {
    width: 20px;
    height: 20px;
  }

  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    flex-shrink: 0;
    padding: var(--space-3) var(--space-4);
  }

}
