/* ==========================================================
   JESSE GUNZEL | AI DIRECTOR
   style.css — Industrial Digital Aesthetic
   Red × Black × White
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

/* --- Variables --- */
:root {
  --black:      #080808;
  --white:      #F0F0EC;
  --red:        #CC0000;
  --red-dim:    #990000;
  --gray-dark:  #111111;
  --gray:       #1A1A1A;
  --gray-mid:   #2E2E2E;
  --gray-light: #888888;
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
  --nav-h:      68px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: none; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* --- Noise Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9990;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red-dim); }

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed;
  width: 7px; height: 7px;
  background: var(--red-dim);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
.cursor-ring {
  position: fixed;
  width: 34px; height: 34px;
  border: 1px solid var(--red-dim);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
  opacity: 0.6;
}
.cursor-ring.hover { width: 56px; height: 56px; opacity: 0.25; }

/* ============================
   NAVIGATION
   ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-mid);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 48px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s;
}
.nav-logo em { color: var(--red-dim); font-style: normal; }
.nav-logo:hover em { color: var(--white); }
.nav-logo:hover { color: var(--red-dim); }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin-left: auto;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 22px;
  height: var(--nav-h);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.25s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--white); }

.nav-arrow {
  font-size: 8px;
  color: var(--red-dim);
  transition: transform 0.25s;
  display: inline-block;
}
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 210px;
  background: rgba(10,10,10,0.98);
  border: 1px solid var(--gray-mid);
  border-top: 2px solid var(--red-dim);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.nav-item:hover .dropdown,
.nav-item.open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.dropdown-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(46,46,46,0.5);
  transition: all 0.2s;
}
.dropdown-item:last-child a { border-bottom: none; }
.dropdown-item a::before { content: '→'; color: var(--red-dim); flex-shrink: 0; }
.dropdown-item a:hover {
  color: var(--white);
  background: rgba(255,0,0,0.05);
  padding-left: 28px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: none;
  padding: 8px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white);
  transition: all 0.28s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(8,8,8,0.99);
  border-bottom: 2px solid var(--red-dim);
  padding: 28px 32px 36px;
  z-index: 998;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  display: block;
}
.mobile-nav-link {
  display: block;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--gray-light);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-mid);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--white); }
.mobile-projects-toggle { display: flex; justify-content: space-between; align-items: center; }
.mobile-arrow { font-size: 26px; color: var(--red-dim); transition: transform 0.25s; }
.mobile-submenu {
  padding: 8px 0 8px 20px;
  display: none;
  background: rgba(255,0,0,0.03);
  border-left: 2px solid var(--red-dim);
  margin-bottom: 4px;
}
.mobile-submenu.open { display: block; }
.mobile-submenu a {
  display: block;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-submenu a::before { content: '→ '; color: var(--red-dim); }
.mobile-submenu a:hover { color: var(--white); }

/* ============================
   PAGE WRAPPER
   ============================ */
.page-wrapper { padding-top: var(--nav-h); }

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-h));
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px 120px;
  overflow: hidden;
}

/* Video Carousel (Swiper)
   .hero .hero-video-swiper has specificity (0,2,0) — beats Swiper's
   .swiper rule (0,1,0) which sets position:relative and z-index:1 */
.hero .hero-video-swiper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}
.hero .hero-video-swiper .swiper-wrapper,
.hero .hero-video-swiper .swiper-slide {
  height: 100%;
}
.hero .hero-video-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
  background: #111;
}
.hero .hero-video-swiper .swiper-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(8,8,8,0.55);
  pointer-events: none;
  z-index: 1;
}
/* Video.js background player — wrapper div fills the slide */
.hero-video-swiper .video-js {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}
/* Actual <video> tech element covers the area */
.hero-video-swiper .vjs-tech {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Slide loader — centred animated bar shown before video plays */
.slide-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.slide-loader::before {
  content: 'LOADING';
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(180,140,80,0.75);
}
.slide-loader.hidden { display: none; }
@keyframes loader-sweep {
  0%   { transform: translateX(-40px); }
  100% { transform: translateX(120px); }
}
.slide-loader-fill {
  animation: loader-sweep 1.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
/* Hide all Video.js chrome — purely decorative background player */
.hero-video-swiper .vjs-big-play-button,
.hero-video-swiper .vjs-control-bar,
.hero-video-swiper .vjs-loading-spinner,
.hero-video-swiper .vjs-error-display,
.hero-video-swiper .vjs-text-track-display {
  display: none !important;
}
.hero-video--iframe {
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100vh;
  min-width: 177.78vh; /* 16:9 */
  border: none;
}

/* Swiper pagination — industrial style */
.hero-swiper-pagination {
  position: absolute !important;
  bottom: 28px !important;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}
.hero-swiper-pagination .swiper-pagination-bullet {
  width: 20px; height: 4px;
  border-radius: 0;
  background: var(--gray-light);
  opacity: 0.4;
  margin: 0 !important;
  transition: all 0.3s var(--ease);
}
.hero-swiper-pagination .swiper-pagination-bullet-active {
  width: 44px;
  background: var(--red-dim);
  opacity: 1;
}

/* Slide Caption */
.slide-caption {
  position: absolute;
  bottom: 122px;
  right: 48px;
  z-index: 2;
  max-width: 300px;
  text-align: right;
  pointer-events: none;
}
.slide-caption-eye {
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red-dim);
  margin-bottom: 8px;
}
.slide-caption-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 36px);
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.slide-caption-desc {
  font-size: 10px;
  line-height: 1.7;
  color: var(--gray-light);
}

/* Grid Lines */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,0,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 1;
}

/* Scanlines */
.hero-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Red side bar */
.hero-bar {
  position: absolute;
  right: 0; top: 15%; bottom: 15%;
  width: 3px;
  background: var(--red-dim);
  animation: pulse-bar 2.5s ease-in-out infinite;
  z-index: 2;
}
@keyframes pulse-bar {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.hero-content { position: relative; z-index: 4; max-width: 1300px; }


.hero-name {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 186px);
  line-height: 0.87;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

/* Glitch effect */
.glitch-wrap { position: relative; display: inline-block; }
.glitch-wrap::before,
.glitch-wrap::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch-wrap::before {
  color: var(--gray-light);
  animation: g1 4s infinite steps(2);
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%);
}
.glitch-wrap::after {
  color: #00e5ff;
  animation: g2 4s infinite steps(2) 0.12s;
  clip-path: polygon(0 62%, 100% 62%, 100% 100%, 0 100%);
  opacity: 0.25;
}
@keyframes g1 {
  0%,88%,100% { transform: translate(0); }
  90%          { transform: translate(-4px, 1px); }
  93%          { transform: translate(4px, -2px); }
  96%          { transform: translate(-2px, 1px); }
}
@keyframes g2 {
  0%,88%,100% { transform: translate(0); }
  90%          { transform: translate(4px, -1px); }
  93%          { transform: translate(-3px, 2px); }
  96%          { transform: translate(2px, -1px); }
}

.hero-role {
  font-family: var(--font-display);
  font-size: clamp(35px, 4.7vw, 68px);
  letter-spacing: 0.18em;
  color: var(--red-dim);
  margin-bottom: 44px;
}
.hero-role .cursor-blink {
  display: inline-block;
  width: 3px; height: 0.85em;
  background: var(--red-dim);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  margin-left: 6px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-body {
  max-width: 365px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray-light);
  margin-bottom: 48px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.28s var(--ease);
  position: relative;
}
.btn-primary {
  background: var(--red-dim); color: var(--white);
  border: 1px solid var(--red-dim);
}
.btn-primary:hover { background: transparent; color: var(--red-dim); }
.btn-ghost {
  background: var(--black); color: var(--gray-light);
  border: 1px solid var(--gray-mid);
}
.btn-ghost:hover { border-color: var(--red-dim); color: var(--white); }


/* ============================
   TICKER
   ============================ */
.ticker {
  background: var(--red-dim);
  overflow: hidden; padding: 9px 0;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: tick 22s linear infinite;
}
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.t-text {
  font-size: 9.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--whitek);
  padding: 0 28px; flex-shrink: 0;
}
.t-sep { color: rgba(0,0,0,0.25); }

/* ============================
   SECTION COMMONS
   ============================ */
.section { padding: 100px 48px; }
.section--no-top { padding-top: 0; }
.section-max { max-width: 1300px; margin: 0 auto; }

.s-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; flex-wrap: wrap;
  gap: 16px; margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-mid);
}
.s-eye {
  font-size: 14px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--red-dim);
  margin-bottom: 10px;
}
.s-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 86px);
  letter-spacing: 0.015em; line-height: 0.9;
}
.s-more {
  font-size: 14px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red-dim);
  text-decoration: none; white-space: nowrap;
  transition: opacity 0.2s;
}
.s-more:hover { opacity: 0.5; }

/* ============================
   ABOUT
   ============================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.about-text p {
  font-size: 13px; line-height: 2;
  color: var(--gray-light); margin-bottom: 18px;
}
.about-text p strong { color: var(--white); font-weight: 500; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag {
  padding: 5px 13px;
  font-size: 8.5px; letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--gray-mid); color: var(--gray-light);
  transition: all 0.2s;
}
.tag:hover { border-color: var(--red-dim); color: var(--red-dim); }

.info-box {
  background: var(--gray-dark);
  border: 1px solid var(--gray-mid);
  border-left: 3px solid var(--red-dim);
  padding: 28px 30px;
}
.info-box-label {
  font-size: 11.5px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--red-dim);
  margin-bottom: 20px;
}
.info-list { list-style: none; }
.info-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; border-bottom: 1px solid rgba(46,46,46,0.5);
  font-size: 11px; color: var(--gray-light);
  gap: 12px;
}
.info-list li:last-child { border-bottom: none; }
.info-list li strong { color: var(--white); font-weight: 400; }
.rdot { width: 5px; height: 5px; background: var(--red-dim); border-radius: 50%; flex-shrink: 0; }

/* ============================
   PROJECT CARDS (HOME FEATURED)
   ============================ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-mid);
  border: 1px solid var(--gray-mid);
}

.proj-card {
  background: var(--black);
  padding: 36px 32px;
  position: relative; overflow: hidden;
  text-decoration: none; display: flex;
  flex-direction: column; justify-content: flex-end;
  min-height: 270px;
  transition: background 0.28s;
}
.proj-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--red-dim);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.proj-card:hover::before { transform: scaleX(1); }
.proj-card:hover { background: var(--gray-dark); }

.proj-ghost-num {
  position: absolute; top: 12px; right: 16px;
  font-family: var(--font-display);
  font-size: 72px; color: rgba(255,255,255,0.06);
  line-height: 1; pointer-events: none; user-select: none;
}
.proj-cat {
  font-size: 11.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red-dim);
  margin-bottom: 10px;
}
.proj-title {
  font-family: var(--font-display);
  font-size: 28px; letter-spacing: 0.02em;
  color: var(--white); margin-bottom: 10px;
  line-height: 1;
}
.proj-desc {
  font-size: 12px; color: var(--gray-light);
  line-height: 1.7; margin-bottom: 18px;
}
.proj-arrow {
  font-size: 24px; color: var(--red-dim);
  transition: transform 0.25s;
  display: inline-block;
  align-self: flex-end;
}
.proj-card:hover .proj-arrow { transform: translateX(7px); }

.proj-card.wide {
  grid-column: span 2; min-height: 360px;
}
.proj-card.wide .proj-title { font-size: 46px; }

/* ============================
   PAGE HERO (inner pages)
   ============================ */
.page-hero {
  padding: 80px 48px 60px;
  border-bottom: 1px solid var(--gray-mid);
  position: relative; overflow: hidden;
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,0,0,0.090) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,0,0.090) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--red-dim);
  margin-bottom: 18px; position: relative; z-index: 2;
}
.page-hero-eyebrow::before {
  content: ''; display: block;
  width: 40px; height: 1px; background: var(--red-dim);
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 10.5vw, 150px);
  line-height: 0.86; letter-spacing: -0.01em;
  position: relative; z-index: 2;
}
.page-hero-sub {
  max-width: 520px; margin-top: 28px;
  font-size: 13px; line-height: 1.85;
  color: var(--gray-light); position: relative; z-index: 2;
}

/* ============================
   PROJECT LIST (category pages)
   ============================ */
.proj-section { padding: 56px 48px 100px; }

/* Sub-nav (project category pages) */
.proj-subnav {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--gray-mid);
  margin-bottom: 40px;
}
.proj-subnav-link {
  padding: 12px 20px; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
  color: #777; text-decoration: none;
  transition: color .2s;
}
.proj-subnav-link--active {
  color: var(--white);
  border-bottom: 2px solid #FF0000;
}
.pl-desc {
  font-size: 12.5px; color: #777;
  margin-top: 6px; line-height: 1.6;
  max-width:90%;
}
.pl-status--inactive { color: #777; }
.proj-nav-row {
  display: flex; gap: 16px;
  margin-top: 56px; flex-wrap: wrap;
}

/* Info box status */
.info-status--active {
  color: #FF0000; font-size: 10px; letter-spacing: 0.15em;
}

/* CTA Band (index.html) */
.cta-band {
  padding: 80px 48px;
  border-top: 1px solid var(--gray-mid);
  text-align: center;
}
.cta-band-eye {
  font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: #FF0000; margin-bottom: 18px;
}
.cta-band-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 80px);
  margin-bottom: 28px; line-height: 0.9;
}
.cta-band-title em { color: #FF0000; font-style: normal; }
.cta-band .btn-primary { font-size: 11px; }

.proj-list {
  display: grid; gap: 1px;
  background: var(--gray-mid);
  border: 1px solid var(--gray-mid);
}

.pl-item {
  background: var(--black);
  position: relative;
}
.pl-item::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red-dim);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s var(--ease);
  z-index: 1;
}
.pl-item-header:hover ~ * { background: transparent; }
.pl-item-header:hover::before,
.pl-item.is-open::before { transform: scaleY(1); }
.pl-item-header {
  padding: 28px 40px;
  display: grid;
  grid-template-columns: 56px 1fr 32px;
  align-items: center; gap: 28px;
  cursor: pointer;
  transition: background 0.25s;
}
.pl-item-header:hover { background: var(--gray-dark); }
.pl-item.is-open .pl-item-header { background: var(--gray-dark); }
.pl-toggle {
  font-size: 36px; line-height: 1; font-weight: 300;
  color: var(--red-dim);
  transition: transform 0.35s var(--ease);
  user-select: none; text-align: center;
}
.pl-item.is-open .pl-toggle { transform: rotate(45deg); }

/* Drawer */
.pl-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.pl-item.is-open .pl-drawer { grid-template-rows: 1fr; }
.pl-drawer-inner { overflow: hidden; min-height: 0; }
.pl-drawer-content {
  padding: 32px 40px 44px;
  border-top: 1px solid var(--gray-mid);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.pl-swiper {
  position: relative;
  width: 100%;
}
.pl-swiper .swiper-slide {
  aspect-ratio: 16/9;
  background: var(--gray);
  overflow: hidden;
  position: relative;
}
.pl-swiper .swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  margin-top: 12px;
}
.pl-swiper .swiper-pagination-bullet {
  background: #aaa;
  opacity: 1;
}
.pl-swiper .swiper-pagination-bullet-active {
  background: var(--red-dim);
}
.pl-swiper .swiper-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
/* video.js inside project drawer */
.pl-swiper .video-js {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
}
.pl-swiper .vjs-tech {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.pl-swiper .vjs-error-display,
.pl-swiper .vjs-text-track-display { display: none !important; }
.pl-swiper .swiper-button-next,
.pl-swiper .swiper-button-prev {
  color: var(--red-dim);
  --swiper-navigation-size: 26px;
  width: 48px;
  height: 48px;
  top: 43%;
}
.pl-swiper .swiper-button-next::after,
.pl-swiper .swiper-button-prev::after {
  text-shadow: 0 0 1px var(--red-dim);
}
.pl-drawer-info {
  display: flex; flex-direction: column;
  gap: 20px; justify-content: center;
}
.pl-drawer-body {
  font-size: 13px; line-height: 1.9; color: var(--gray-light);
}
.pl-drawer-body span { color: #ffffff; font-weight: 700; }

.pl-num {
  font-family: var(--font-display);
  font-size: 36px; color: var(--gray-mid);
  transition: color 0.25s; line-height: 1;
}
.pl-item-header:hover .pl-num,
.pl-item.is-open .pl-num { color: var(--red-dim); }

.pl-cat {
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red-dim);
  margin-bottom: 6px;
}
.pl-title {
  font-family: var(--font-display);
  font-size: 32px; letter-spacing: 0.02em;
  color: var(--white); line-height: 1;
}
.pl-content { display: grid; grid-template-columns: 1fr auto; column-gap: 28px; }
.pl-cat { grid-column: 1; }
.pl-title { grid-column: 1; }
.pl-meta { grid-column: 2; grid-row: 1 / 4; align-self: center; text-align: right; }
.pl-desc { grid-column: 1; }
.pl-year {
  font-size: 13px; letter-spacing: 0.1em;
  color: var(--gray-light); display: block;
}
.pl-status {
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red-dim);
  margin-top: 4px; display: block;
}

/* Projects overview cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--gray-mid);
  border: 1px solid var(--gray-mid);
  margin-top: 56px;
}
.cat-card {
  background: var(--black);
  padding: 48px 36px; min-height: 320px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: background 0.28s;
}
.cat-card::after {
  content: attr(data-num);
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-display); font-size: 100px;
  color: rgba(255,255,255,0.03); line-height: 1;
  pointer-events: none;
}
.cat-card::before {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--red-dim);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.32s var(--ease);
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card:hover { background: var(--gray-dark); }

.cat-icon { font-size: 28px; margin-bottom: 20px; }
.cat-label {
  font-size: 8.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red-dim);
  margin-bottom: 10px;
}
.cat-name {
  font-family: var(--font-display);
  font-size: 38px; letter-spacing: 0.02em;
  color: var(--white); line-height: 1;
  margin-bottom: 14px;
}
.cat-desc { font-size: 10.5px; color: var(--gray-light); line-height: 1.7; }

/* ============================
   CONTACT
   ============================ */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.88; margin-bottom: 28px;
}
.contact-info p {
  font-size: 11.5px; line-height: 1.9;
  color: var(--gray-light); margin-bottom: 44px;
}
.ch-list { list-style: none; }
.ch-item {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 15px 0; border-bottom: 1px solid var(--gray-mid);
}
.ch-item:first-child { border-top: 1px solid var(--gray-mid); }
.ch-label {
  font-size: 8.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gray-light);
}
.ch-value {
  font-size: 12px; color: var(--white);
  text-decoration: none; transition: color 0.2s;
  cursor: default;
}
.ch-value:hover { color: var(--red-dim); }
.ch-value--booked { color: #FF0000; }

/* Terminal */
.terminal {
  background: var(--gray-dark);
  border: 1px solid var(--gray-mid);
  border-top: 2px solid var(--red-dim);
}
.terminal-bar {
  padding: 11px 16px;
  border-bottom: 1px solid var(--gray-mid);
  display: flex; align-items: center; gap: 7px;
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.r { background: #FF5F57; }
.t-dot.y { background: #FFBD2E; }
.t-dot.g { background: #28C840; }
.terminal-ttl {
  font-size: 12.5px; letter-spacing: 0.1em;
  color: var(--gray-light); margin-left: 10px;
}
.terminal-body { padding: 28px 30px 30px; }

.f-group { margin-bottom: 22px; }
.f-label {
  display: block; font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red-dim); margin-bottom: 7px;
}
.f-label::before { content: '> '; }
.page-contact .f-label { font-size: 11.5px; }
.f-input, .f-textarea {
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid var(--gray-mid);
  color: var(--white); font-family: var(--font-mono);
  font-size: 12px; padding: 10px 0;
  outline: none; caret-color: var(--red-dim);
  transition: border-color 0.2s; cursor: none;
}
.f-input:focus { border-bottom-color: var(--red-dim); }
.f-textarea {
  resize: vertical; min-height: 90px;
  padding: 10px; border: 1px solid var(--gray-mid);
}
.f-textarea:focus { border-color: var(--red-dim); }
.f-submit {
  width: 100%; background: var(--red-dim);
  color: var(--white); border: none;
  padding: 15px 0; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; cursor: none;
  transition: all 0.25s; margin-top: 8px;
}
.f-submit:hover { background: var(--white); color: var(--black); }
.f-submit--sent {
  background: #1a1a1a;
  color: #FF0000;
  border: 1px solid #FF0000;
}
.f-input--error { border-bottom-color: #FF0000; }
.f-textarea.f-input--error { border-color: #FF0000; }
.f-error {
  display: block; font-size: 9.5px;
  letter-spacing: 0.08em; color: #FF0000;
  margin-top: 6px; font-family: var(--font-mono);
}

#contact-turnstile { margin: 4px 0 12px; }
#contact-turnstile-error { display: none; margin-bottom: 12px; }
#contact-turnstile-error.visible { display: block; }

/* ── Contact Page ─────────────────────────────────────────── */
.contact-services { margin-top: 44px; }
.contact-services-label {
  font-size: 8.5px; letter-spacing: .25em;
  text-transform: uppercase; color: #FF0000; margin-bottom: 18px;
}
.contact-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.terminal-prompt {
  font-size: 11.5px; letter-spacing: .1em;
  color: #777; margin-bottom: 24px;
}
.terminal-prompt em { color: #FF0000; }
.t-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}
.t-line--1 { animation: type-1 1.4s steps(34, end) 0.5s both; }
.t-line--2 { animation: type-2 0.8s steps(20, end) 2.2s both; }
.t-line--3 { animation: type-3 0.72s steps(18, end) 3.3s both; }
@keyframes type-1 { from { max-width: 0 } to { max-width: 350px } }
@keyframes type-2 { from { max-width: 0 } to { max-width: 210px } }
@keyframes type-3 { from { max-width: 0 } to { max-width: 200px } }
.t-cursor { animation: cursor-blink 0.7s step-end 4.1s infinite; }
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
select.f-input {
  border-bottom: 1px solid var(--gray-mid);
  color: var(--white); appearance: none;
}
select.f-input option { background: #1a1a1a; }
.honeypot {
  position: absolute; left: -9999px; top: -9999px;
}
.form-note {
  margin-top: 16px; font-size: 9.5px;
  letter-spacing: .1em; color: #555;
}
.form-note em { color: #FF0000; }
.contact-cta-section { padding: 0 48px 80px; }
.contact-cta {
  background: #111; border: 1px solid var(--gray-mid);
  border-left: 3px solid #FF0000;
  padding: 32px 40px; display: flex;
  align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; max-width: 1300px;
}
.contact-cta-label {
  font-size: 8.5px; letter-spacing: .25em;
  text-transform: uppercase; color: #FF0000; margin-bottom: 8px;
}
.contact-cta-email {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; color: var(--white);
}

/* ============================
   FOOTER
   ============================ */
footer {
  border-top: 1px solid var(--gray-mid);
  padding: 28px 48px;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.foot-logo {
  font-family: var(--font-display);
  font-size: 17px; letter-spacing: 0.07em;
  color: var(--white);
}
.foot-logo em { color: var(--red-dim); font-style: normal; }
.foot-copy { font-size: 9.5px; letter-spacing: 0.1em; color: var(--gray-light); }
.foot-copy em { color: var(--red-dim); font-style: normal; }
.foot-links { display: flex; gap: 20px; list-style: none; }
.foot-links a {
  font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray-light);
  text-decoration: none; transition: color 0.2s;
}
.foot-links a:hover { color: var(--red-dim); }

/* ============================
   ANIMATIONS / UTILITIES
   ============================ */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }

/* Page slide-in */
.page-curtain {
  position: fixed; inset: 0;
  background: var(--red-dim);
  z-index: 99999;
  transform-origin: top;
  animation: curtain 0.55s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes curtain {
  from { transform: scaleY(1); }
  to   { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1080px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-card.wide { grid-column: span 2; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-layout { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 58px; }
  .nav { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section, .proj-section { padding: 60px 22px; }
  .hero { padding: 60px 22px 100px; }
  .hero-bar { display: none; }
  .hero-body { font-size: 13px; line-height: 1.7; margin-bottom: 35px; }
  .hero-role { font-size: clamp(30px, 3.5vw, 52px); }
  .page-home .btn-primary { padding: 13px 19px; }
  .page-home .slide-caption-desc { display: none; }
  .page-home .slide-caption-eye { margin-bottom: 3px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-card.wide { grid-column: span 1; min-height: 270px; }
  .proj-card.wide .proj-title { font-size: 34px; }
  .cat-grid { grid-template-columns: 1fr; }
  .pl-item-header { grid-template-columns: 42px 1fr 32px; padding: 20px 22px; gap: 16px; }
  .pl-content { grid-template-columns: 1fr; }
  .pl-meta { grid-column: 1; grid-row: auto; align-self: start; text-align: left; display: flex; gap: 12px; align-items: center; margin: 2px 0; }
  .pl-drawer-content { grid-template-columns: 1fr; padding: 24px 22px 36px; }

  .page-hero { padding: 60px 22px 44px; }
  .contact-cta-section { padding: 0 22px 60px; }
  .terminal-body { padding: 20px 18px 24px; }
  footer { padding: 22px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .cursor-dot, .cursor-ring { display: none; }
  .slide-caption {
    right: 0;
    left: 0;
    bottom: 48px;
    max-width: none;
    text-align: center;
    padding: 0 22px;
  }
}

@media (max-width: 480px) {
  .s-header { flex-direction: column; align-items: flex-start; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    height: auto;
    min-height: calc(100vh - var(--nav-h));
    padding: 40px 22px 60px;
  }
  .hero-name { font-size: clamp(48px, 10vw, 80px); margin-bottom: 10px; }
  .hero-role { font-size: clamp(20px, 3.5vw, 36px); }
  .hero-body { font-size: 12px; line-height: 1.6; margin-bottom: 20px; }
}

/* ==============================================
   COOKIE CONSENT BANNER
   ============================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #111111;
  border-top: 1px solid rgba(191, 155, 48, 0.3);
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.6);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text {
  flex: 1;
}

.cookie-text h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: #bf9b30;
  margin: 0 0 4px 0;
}

.cookie-text p {
  font-family: 'Crimson Pro', serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #b0aca5;
  margin: 0;
}

.cookie-text a {
  color: #bf9b30;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-text a:hover {
  color: #d4af37;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: #bf9b30;
  color: #111111;
}

.cookie-btn-accept:hover {
  background: #d4af37;
  box-shadow: 0 0 12px rgba(191, 155, 48, 0.35);
}

.cookie-btn-reject {
  background: transparent;
  color: #b0aca5;
  border: 1px solid rgba(176, 172, 165, 0.3);
}

.cookie-btn-reject:hover {
  border-color: #b0aca5;
  color: #e0dcd5;
}

.cookie-btn-settings {
  background: transparent;
  color: #807c75;
  border: 1px solid rgba(128, 124, 117, 0.2);
  font-size: 0.85rem;
  padding: 10px 16px;
}

.cookie-btn-settings:hover {
  border-color: rgba(128, 124, 117, 0.5);
  color: #b0aca5;
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    padding: 18px 20px;
    gap: 16px;
  }
  .cookie-actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* ==============================================
   COOKIE PREFERENCES MODAL
   ============================================== */

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  background: #1a1a1a;
  border: 1px solid rgba(191, 155, 48, 0.2);
  max-width: 520px;
  width: 90%;
  padding: 28px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.cookie-modal-overlay.visible .cookie-modal {
  transform: translateY(0);
}

.cookie-modal-body {
  overflow-y: auto;
  max-height: 55vh;
  margin-bottom: 20px;
  padding-right: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  scrollbar-width: thin;
  scrollbar-color: rgba(191,155,48,0.3) transparent;
}
.cookie-modal-body::-webkit-scrollbar { width: 4px; }
.cookie-modal-body::-webkit-scrollbar-thumb { background: rgba(191,155,48,0.3); border-radius: 2px; }
.cookie-modal-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: rgba(191,155,48,0.8);
  margin: 16px 0 6px;
}
.cookie-modal-body p { margin: 0 0 12px; }
.cookie-modal-body a { color: rgba(191,155,48,0.8); }

.cookie-modal h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: #bf9b30;
  margin: 0 0 16px 0;
}

.cookie-category {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-category:last-of-type {
  border-bottom: none;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-category-name {
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  font-size: 1rem;
  color: #e0dcd5;
}

.cookie-category-desc {
  font-family: 'Crimson Pro', serif;
  font-size: 0.85rem;
  color: #807c75;
  margin-top: 4px;
  line-height: 1.45;
}

.cookie-toggle {
  position: relative;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #333;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #807c75;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: rgba(191, 155, 48, 0.3);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
  background: #bf9b30;
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Nav audio headphones */
.nav-headphones-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav-headphones-btn:hover { opacity: 1; }
.nav-headphones-btn.playing { opacity: 1; }
.nav-headphones-btn svg { width: 26px; height: 26px; fill: white; display: block; }
.nav-headphones-btn.playing svg { fill: rgba(180,140,80,0.9); }
.nav-headphones-li { display: flex; align-items: center; }
.nav-headphones-mobile { display: none; }
@media (max-width: 768px) {
  .nav-headphones-li { display: none; }
  .nav-headphones-mobile { display: flex; margin-left: auto; }
  .nav-toggle { margin-left: 0; }
}
.pl-headphones-btn {
  margin-bottom: 12px;
  gap: 8px;
}
.pl-headphones-btn::after {
  content: 'PLAY SOUNDTRACK';
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.pl-headphones-btn:hover::after,
.pl-headphones-btn.playing::after { color: rgba(180,140,80,0.9); }
