@import url('https://fonts.googleapis.com/css2?family=VT323&family=Special+Elite&family=Oswald:wght@300;400;500&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #110d07;
  --bg-shelf:  #1e1509;
  --bg-shelf2: #2a1e0f;
  --wood:      #3d2c14;
  --wood-edge: #5a3e1c;

  --universal:      #c0390b;
  --universal-dark: #7a2106;
  --universal-light:#f9ddd5;

  --univ-dest:      #6b3fa0;
  --univ-dest-dark: #42256a;
  --univ-dest-light:#ede0f9;

  --themeit:        #0e7c72;
  --themeit-dark:   #095950;
  --themeit-light:  #d4f2ef;

  --seaworld:       #1756a9;
  --seaworld-dark:  #0e3870;
  --seaworld-light: #d6e8fa;

  --other:          #7a5c2e;
  --other-dark:     #4e3a1a;
  --other-light:    #f5ecd8;

  --amber:    #f5c842;
  --text:     #e8d9c0;
  --text-dim: #8a7055;
  --font-display: 'VT323', monospace;
  --font-body:    'Special Elite', serif;
  --font-ui:      'Oswald', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Scanlines overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.07) 3px,
    rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ─── Header ─── */
.site-header {
  text-align: center;
  padding: 3.5rem 2rem 2rem;
  border-bottom: 1px solid rgba(245,200,66,0.15);
  position: relative;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--amber), transparent);
}

.header-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 88px);
  color: var(--text);
  letter-spacing: 6px;
  line-height: 1;
  text-shadow: 0 0 40px rgba(245,200,66,0.2);
}

.site-subtitle {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--text-dim);
  margin-top: 0.75rem;
  text-transform: uppercase;
}

.vcr-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(245,200,66,0.2);
  padding: 6px 18px;
  border-radius: 2px;
}

.vcr-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: blink 1.4s step-end infinite;
}

.vcr-text {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--amber);
  letter-spacing: 2px;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─── Nav ─── */
.shelf-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
}

.nav-btn {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-btn:hover,
.nav-btn.active {
  border-color: var(--amber);
  color: var(--amber);
}

/* ─── Shelf sections ─── */
.shelf-section {
  padding: 2.5rem 3rem 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.section-company {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--text);
}

.section-years {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.section-role {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-left: auto;
  text-align: right;
  line-height: 1.6;
}

/* ─── The Shelf ─── */
.shelf-wrap {
  position: relative;
}

.shelf-board {
  background: var(--bg-shelf);
  border-left: 3px solid var(--wood);
  border-right: 3px solid var(--wood);
  padding: 24px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  min-height: 160px;
  position: relative;
}

.shelf-edge {
  position: relative;
  height: 18px;
  background: var(--wood);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.7);
  margin-bottom: 0.5rem;
}

.shelf-edge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--wood-edge);
}

/* ─── VHS Tape ─── */
.vhs-tape {
  position: relative;
  width: 72px;
  flex-shrink: 0;
  text-decoration: none;
  display: block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.vhs-tape:hover {
  transform: translateY(-22px);
  z-index: 10;
}

.vhs-tape.coming-soon {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.vhs-body {
  width: 72px;
  height: 116px;
  border-radius: 3px 3px 6px 6px;
  position: relative;
  overflow: hidden;
  border-top: 4px solid rgba(255,255,255,0.08);
  border-bottom: 2px solid rgba(0,0,0,0.5);
}

/* top slot */
.vhs-body::before {
  content: '';
  position: absolute;
  top: 0; left: 12px; right: 12px;
  height: 3px;
  background: rgba(0,0,0,0.6);
  border-radius: 0 0 2px 2px;
}

.vhs-label {
  position: absolute;
  left: 5px; right: 5px;
  top: 18px; bottom: 24px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 4px;
  gap: 3px;
}

.vhs-event {
  font-family: var(--font-display);
  font-size: 12px;
  text-align: center;
  line-height: 1.15;
  letter-spacing: 0.5px;
  font-weight: normal;
}

.vhs-year-tag {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 1.5px;
  opacity: 0.65;
}

.vhs-role-tag {
  font-family: var(--font-ui);
  font-size: 7.5px;
  letter-spacing: 0.5px;
  opacity: 0.55;
  text-align: center;
  line-height: 1.3;
  margin-top: 1px;
}

/* reel window */
.vhs-reel-window {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 16px;
  background: rgba(0,0,0,0.55);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.reel {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #0d0a05;
  border: 1.5px solid rgba(255,255,255,0.12);
}

/* tooltip */
.vhs-tooltip {
  position: absolute;
  bottom: 126px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #1a1208;
  padding: 4px 8px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 13px;
  white-space: nowrap;
  letter-spacing: 1px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.vhs-tape:hover .vhs-tooltip { opacity: 1; }

/* ─── Footer ─── */
.site-footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--amber); }

.footer-copy {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

/* ─── PROJECT PAGE ─── */
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 2rem 3rem;
  display: block;
  transition: color 0.2s;
}

.project-back:hover { color: var(--amber); }

.project-hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.project-tape-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2rem;
}

.tape-chip {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 2px;
  text-transform: uppercase;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: 4px;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-meta {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* image gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 3rem;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.06);
  background: #1e1509;
  display: block;
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #1e1509;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
}

.project-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2.5rem;
  max-width: 680px;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
}

.detail-block {}

.detail-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.detail-value {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--text);
}

/* ─── Responsive ─── */
@media (max-width: 700px) {
  .shelf-section { padding: 2rem 1.25rem 3rem; }
  .section-role { display: none; }
  .project-back { padding: 1.5rem; }
  .project-hero { padding: 0 1.25rem 3rem; }
}

/* ─── YouTube Embed ─── */
.media-section {
  margin-bottom: 3rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: #1e1509;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.media-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

/* ─── YouTube Thumbnail Player ─── */
.yt-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  border: 1px solid rgba(255,255,255,0.06);
}

.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.yt-thumb:hover img { opacity: 0.75; }

.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.yt-play-btn {
  width: 56px;
  height: 56px;
  background: rgba(180,0,0,0.88);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}

.yt-thumb:hover .yt-play-btn {
  transform: scale(1.1);
  background: #cc0000;
}

.yt-play-btn svg {
  width: 22px;
  height: 22px;
  fill: white;
  margin-left: 3px;
}

/* when clicked, swap to iframe */
.yt-thumb.playing {
  aspect-ratio: 16/9;
}

.yt-thumb.playing iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── VHS 8-bit icons ─── */
.vhs-icon {
  display: block;
  margin: 0 auto 3px;
  image-rendering: pixelated;
}
