@font-face {
  font-family: "Futura Boo";
  src: url("./fonts/Futura-Boo.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Futura Bol";
  src: url("./fonts/Futura-Bol.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100%;
  font-family: Helvetica, Arial, sans-serif;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    background 0.3s,
    color 0.3s;
}

a {
  text-decoration: none;
  color: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}
* {
  scrollbar-width: none;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  flex-shrink: 0;
  border-bottom: 1px solid #000;
  transition:
    background 0.3s,
    border-color 0.3s;
}

.logo {
  font-size: 40px;
  letter-spacing: 1.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-brand {
  font-family: "Futura Boo", Helvetica, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0px;
  position: relative;
  display: inline-block;
  min-width: 200px;
  height: 1.2em;
  filter: url(#threshold) blur(0.6px);
}
.morph-text {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  white-space: nowrap;
  font-family: "Futura Boo", Helvetica, Arial, sans-serif;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  user-select: none;
}
.morph-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.logo-eye {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
}
.nav-link:hover {
  opacity: 0.6;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-link {
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
}
.search-link:hover {
  opacity: 0.6;
}
.search-input {
  font-size: 15px;
  letter-spacing: 0.3px;
  border: none;
  outline: none;
  padding: 0;
  width: 180px;
  max-width: 180px;
  font-family: Helvetica, Arial, sans-serif;
  display: none;
  background: transparent;
  color: inherit;
  text-align: right;
}
.search-input.active {
  display: block;
}
.search-link.hidden {
  display: none;
}

.mode-wrap {
  position: relative;
}
.mode-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
}
.mode-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}
.mode-btn.open svg {
  transform: rotate(180deg);
}

.mode-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 80px;
  display: none;
  z-index: 200;
  border: 1px solid #000;
  background: #fff;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.mode-dropdown.open {
  display: block;
}
.mode-option {
  padding: 8px 14px;
  font-size: 15px;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
  transition:
    background 0.3s,
    color 0.3s;
}
.mode-option:last-child {
  border-bottom: none;
}
.mode-option:hover,
.mode-option.active {
  background: #000;
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  transition: background 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 150;
  flex-direction: column;
  padding: 80px 24px 24px;
  transition: background 0.3s;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
}
.mobile-menu a,
.mobile-menu .mode-mobile {
  font-size: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
  display: block;
}

/* ── Hero Section ── */
.hero-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid #000;
  transition:
    background 0.3s,
    border-color 0.3s;
}
body.dark .hero-section {
  background: #000;
  border-color: #fff;
}
.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 48px;
}
.hero-top {
  text-align: center;
  margin-bottom: 40px;
}
.hero-small-text {
  display: block;
  font-family: "Futura Boo", Helvetica, Arial, sans-serif;
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 400;

  letter-spacing: 1px;
  margin-bottom: 8px;
  color: #000;
  transition: color 0.3s;
}
body.dark .hero-small-text {
  color: #fff;
}
.hero-title {
  font-family: "Futura Bol", "Futura Boo", Helvetica, Arial, sans-serif;
  font-size: clamp(80px, 16vw, 220px);
  font-weight: bold;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: #000;
  transition: color 0.3s;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}
body.dark .hero-title {
  color: #fff;
}

/* Hero text parts that slide apart */
.hero-text-left,
.hero-text-right {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-text-left.spread {
  transform: translateX(-0.12em);
}
.hero-text-right.spread {
  transform: translateX(0.12em);
}

/* The SVG "o" / eye shape - always visible, inline with text */
.hero-o-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Fixed size - large enough for both O and eye shapes */
  width: 0.92em;
  height: 0.58em;
  position: relative;
  vertical-align: baseline;
  /* Offset to align with baseline of text */
  top: 0.04em;
  /* Pull wardr and be closer to the O */
  margin-left: -0.08em;
  margin-right: -0.15em;
}
.hero-o-svg svg {
  overflow: visible;
  display: block;
  /* Fixed pixel-like size so the SVG doesn't rescale during morph */
  width: 100%;
  height: 100%;
}
#endPaths {
  visibility: hidden;
}
#startPaths {
  fill: #000;
  transition: fill 0.3s;
}
body.dark #startPaths {
  fill: #fff;
}

/* Blink animation for the hero morph SVG */
#startPaths.blinking {
  animation: heroEyeBlink 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}
@keyframes heroEyeBlink {
  0% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.05);
  }
  100% {
    transform: scaleY(1);
  }
}

/* Hero footer row - single horizontal line */
.hero-footer-row {
  display: flex;
  justify-content: center;
  padding-top: 24px;
}
.hero-footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  justify-content: center;
}
.hero-caption {
  font-size: 11px;
  line-height: 1.35;
  color: #000;
  transition: color 0.3s;
  text-align: left;
  max-width: 280px;
  margin: 0;
}
body.dark .hero-caption {
  color: #fff;
}
.hero-logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.hero-av-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s;
}
body.dark .hero-av-logo {
  filter: invert(1);
}
.hero-brand-block {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.hero-brand-name {
  font-family: "Futura Boo", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #000;
  transition: color 0.3s;
}
body.dark .hero-brand-name {
  color: #fff;
}
.hero-brand-sub {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: #000;
  transition: color 0.3s;
}
body.dark .hero-brand-sub {
  color: #fff;
}
.hero-film-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s;
}
body.dark .hero-film-logo {
  filter: invert(1);
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 100svh;
  }
  .hero-inner {
    padding: 40px 24px 36px;
  }
  .hero-top {
    margin-bottom: 36px;
  }
  .hero-footer-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .hero-caption {
    max-width: 100%;
    text-align: center;
    flex-basis: 100%;
  }
  .hero-logo-group {
    justify-content: center;
  }
}

.page-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.main {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  min-height: 100%;
}

.left-panel {
  position: relative;
}

.decade-header-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  padding: 10px 24px 0;
  transition: background 0.3s;
}

.decade-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 16px;
}
.decade-title {
  font-family: "Futura Boo", Helvetica, Arial, sans-serif;
  font-size: 120px;
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -2px;
}
.decade-toggle {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.decade-toggle svg {
  width: 64px;
  height: 64px;
  transition: transform 0.2s;
}
.decade-toggle.open svg {
  transform: rotate(180deg);
}

.decade-line {
  height: 1px;
  background: #000;
  transition: background 0.3s;
}

.decade-dropdown {
  display: none;
  background: #fff;
  position: relative;
  z-index: 50;
  transition: background 0.3s;
  border: 1px solid #000;
  border-top: none;
}
.decade-dropdown.open {
  display: block;
}
body.dark .decade-dropdown {
  border-color: #fff;
}
.decade-option {
  padding: 16px 20px;
  font-size: 20px;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
  transition:
    background 0.3s,
    color 0.3s;
}
.decade-option:hover {
  background: #f0f0f0;
}
.decade-option.active {
  background: #000;
  color: #fff;
}

.thumbnails-area {
  padding: 16px 24px 80vh;
}

.decade-section {
  margin-bottom: 40px;
}
.decade-section:last-child {
  margin-bottom: 0;
}
.decade-section-label {
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.thumb-cell {
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.thumb-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.thumb-cell:hover img {
  opacity: 0.75;
}
.thumb-cell.active {
  outline: 1px solid #000;
  outline-offset: -1px;
  opacity: 1;
}
body.dark .thumb-cell.active {
  outline-color: #fff;
}

.middle-panel {
  border-left: 1px solid #000;
  padding: 24px 28px 40px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: border-color 0.3s;
}

.detail-year {
  font-size: 18px;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.detail-desc {
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.detail-credit {
  font-size: 13px;
  line-height: 1.25;
}

.right-panel {
  border-left: 1px solid #000;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  transition: border-color 0.3s;
}
.right-panel img {
  width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  object-position: top;
  border: 1px solid #000;
  transition: border-color 0.3s;
}
body.dark .right-panel img {
  border-color: #fff;
}

.bottom-section {
  border-top: 1px solid #000;
  transition: border-color 0.3s;
}

.bottom-content {
  padding: 48px 24px 80px;
}

.bottom-title {
  font-size: 48px;
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 16px;
}

.bottom-desc {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 24px;
  max-width: 600px;
}

.bottom-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #000;
  color: #fff;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  font-family: Helvetica, Arial, sans-serif;
  transition:
    background 0.3s,
    color 0.3s;
}
.bottom-btn:hover {
  opacity: 0.8;
}

.footer {
  border-top: 1px solid #000;
  transition: border-color 0.3s;
}

.footer-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #000;
  transition: border-color 0.3s;
}
.footer-row:last-child {
  border-bottom: none;
}

.footer-cell {
  padding: 14px 24px;
  font-size: 13px;
  border-right: 1px solid #000;
  display: flex;
  align-items: center;
  transition: border-color 0.3s;
}
.footer-cell:last-child {
  border-right: none;
}
.footer-cell a {
  text-decoration: none;
  color: inherit;
}
.footer-cell a:hover {
  opacity: 0.6;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.footer-icons a {
  display: flex;
  align-items: center;
}
.footer-icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: fill 0.3s;
}

.mobile-detail-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 300;
  overflow-y: auto;
  padding: 0;
  transition: background 0.3s;
}
.mobile-detail-overlay.open {
  display: block;
}
.mobile-detail-top {
  position: sticky;
  top: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #000;
  z-index: 10;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.mobile-detail-back {
  font-size: 16px;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}
.mobile-detail-body {
  padding: 24px;
}
.mobile-detail-body img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  margin-bottom: 24px;
}
.mobile-detail-body .detail-year {
  margin-bottom: 12px;
}
.mobile-detail-body .detail-desc {
  font-size: 15px;
  margin-bottom: 16px;
}
.mobile-detail-body .detail-credit {
  font-size: 12px;
}

/* Dark mode */
body.dark {
  background: #000;
  color: #fff;
}
body.dark .header {
  background: #000;
  border-color: #fff;
}
body.dark .hamburger span {
  background: #fff;
}
body.dark .decade-header-sticky {
  background: #000;
}
body.dark .decade-line {
  background: #fff;
}
body.dark .decade-dropdown {
  background: #000;
}
body.dark .decade-option {
  border-color: #333;
}
body.dark .decade-option:hover {
  background: #222;
}
body.dark .decade-option.active {
  background: #fff;
  color: #000;
}
body.dark .middle-panel {
  border-color: #fff;
}
body.dark .right-panel {
  border-color: #fff;
}
body.dark .bottom-section {
  border-color: #fff;
}
body.dark .bottom-btn {
  background: #fff;
  color: #000;
}
body.dark .footer {
  border-color: #fff;
}
body.dark .footer-row {
  border-color: #fff;
}
body.dark .footer-cell {
  border-color: #fff;
}
body.dark .mode-dropdown {
  background: #000;
  border-color: #fff;
}
body.dark .mode-option {
  border-color: #333;
}
body.dark .mode-option:hover,
body.dark .mode-option.active {
  background: #fff;
  color: #000;
}
body.dark .mobile-menu {
  background: #000;
}
body.dark .mobile-menu a,
body.dark .mobile-menu .mode-mobile {
  border-color: #333;
}
body.dark .mobile-detail-overlay {
  background: #000;
}
body.dark .mobile-detail-top {
  background: #000;
  border-color: #fff;
}
body.dark .search-input {
  color: #fff;
}

@media (max-width: 1280px) {
  .decade-title {
    font-size: 90px;
    letter-spacing: -1px;
  }
  .decade-toggle {
    width: 48px;
    height: 48px;
  }
  .decade-toggle svg {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 1024px) {
  .main {
    grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr);
  }
  .thumb-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }
  .decade-title {
    font-size: 72px;
    letter-spacing: -1px;
  }
  .decade-toggle {
    width: 40px;
    height: 40px;
  }
  .decade-toggle svg {
    width: 40px;
    height: 40px;
  }
  .decade-dropdown {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  html {
    overflow: auto;
  }
  body {
    overflow: auto;
    display: block;
  }

  .nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .header {
    padding: 16px 20px;
  }

  .page-body {
    overflow: visible;
  }

  .main {
    display: block;
    min-height: auto;
  }

  .left-panel {
    padding: 0;
  }

  .decade-header-sticky {
    padding: 10px 20px 0;
  }

  .thumbnails-area {
    padding: 16px 20px 60vh;
  }

  .middle-panel,
  .right-panel {
    display: none;
  }

  .thumb-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .decade-header {
    padding: 8px 0 12px;
  }
  .decade-title {
    font-size: 72px;
  }
  .decade-toggle svg {
    width: 28px;
    height: 28px;
  }
  .decade-option {
    font-size: 16px;
    padding: 12px 14px;
  }
  .decade-section-label {
    font-size: 13px;
  }

  .footer-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-cell {
    padding: 12px 16px;
    font-size: 12px;
  }

  .bottom-content {
    padding: 32px 20px 60px;
  }
}
