.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@font-face {
  font-family: 'Breton';
  src: url('../assets/fonts/Breton.woff2') format('opentype');
  font-weight: normal; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'other';
  src: url('../assets/fonts/Machine.otf') format('opentype');
  font-weight: normal; font-style: normal; font-display: block;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { width: 100%; height: 100%; scrollbar-width: none; overflow: hidden; }
html::-webkit-scrollbar { display: none; }
body {
  width: 100%; height: 100%; overflow: hidden;
  background: #0a0a0a; color: #f0f0f0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-title {
  position: fixed;
  top: 3rem; left: 3rem;
  z-index: 10000;
  font-family: 'Breton', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #f0f0f0;
  line-height: 1.2;
  pointer-events: none;
}

.back-btn {
  position: fixed;
  top: 3rem; right: 3rem;
  z-index: 100;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
}
.chr-hover {
  display: inline-flex; gap: 0;
  cursor: pointer; text-decoration: none; color: inherit;
}
.ch-wrap {
  position: relative; overflow: hidden; display: inline-block;
}
.ch-top, .ch-bot {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem; font-weight: 600;
  letter-spacing: 0em; text-transform: uppercase;
  line-height: 1.2;
  color: rgba(255,255,255,0.5);
  transition: transform 0.6s cubic-bezier(0.87, 0, 0.13, 1), color 0.3s ease;
  transition-delay: calc(var(--i) * 28ms);
}
.ch-bot { position: absolute; top: 100%; left: 0; }
.chr-hover:hover .ch-top { transform: translateY(-100%); }
.chr-hover:hover .ch-bot { transform: translateY(-100%); }
.chr-hover:hover .ch-top,
.chr-hover:hover .ch-bot { color: rgba(255,255,255,0.9); }

.scroll-hint {
  position: fixed;
  bottom: 3rem; left: 3rem;
  z-index: 100;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  opacity: 0;
}

.cube-viewport {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 1400px);
  height: min(80vh, 800px);
  border-radius: 242px;
  overflow: hidden;
  z-index: 10;
  opacity: 0;
}
.cube-viewport::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 242px;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.45);
  pointer-events: none;
  z-index: 20;
}
.cube-scene {
  width: 100%; height: 100%;
  perspective: 1600px;
}
.cube {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}
.cube-face {
  position: absolute;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  overflow: hidden;
}

.face-content {
  position: relative; width: 100%; height: 100%; display: flex;
}
.face-content.layout-left { flex-direction: row; }
.face-content.layout-right { flex-direction: row-reverse; }

.face-cover {
  position: relative; width: 66.666%; height: 100%;
  overflow: hidden; flex-shrink: 0;
}
.face-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}
.face-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}
.face-name {
  position: absolute; z-index: 2;
  font-family: 'Breton', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  font-weight: 300; letter-spacing: -0.02em;
  color: #f0f0f0; line-height: 1.15;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
  max-width: 80%;
}
.layout-left .face-name { top: 2rem; right: 2rem; text-align: right; }
.layout-right .face-name { top: 2rem; left: 2rem; }

.face-info {
  position: relative; width: 33.333%; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.5rem; overflow: hidden; flex-shrink: 0;
}
.face-info-bg {
  position: absolute; inset: -40px; z-index: 0;
  filter: blur(80px) saturate(1.6); opacity: 0.7;
}
.face-info-bg img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.5);
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}
.face-info::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.55); z-index: 1;
}
.face-info-content { position: relative; z-index: 2; }
.face-category {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 1.2rem;
}
.face-year {
  font-family: 'other', sans-serif;
  font-size: 0.85rem; color: #ff1e00; margin-bottom: 1rem;
}
.face-desc {
  font-family: 'Breton', sans-serif;
  font-size: clamp(0.88rem, 1.05vw, 1.05rem);
  line-height: 1.6; color: rgba(255,255,255,0.55);
  margin-bottom: 1.2rem;
}
.face-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.face-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.35em 0.7em; border-radius: 50px;
}

.ruler {
  position: fixed;
  top: 50%;
  z-index: 15;
  opacity: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #fff 12%, #fff 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #fff 12%, #fff 88%, transparent 100%);
}

.counter-wrap {
  position: fixed;
  z-index: 15;
  display: flex;
  align-items: center;
  opacity: 0;
}
.counter-window {
  overflow: hidden;
  height: 2.4rem;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #fff 25%, #fff 75%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #fff 25%, #fff 75%, transparent 100%);
}
.counter-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.counter-num {
  font-family: 'Breton', sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #f0f0f0;
  line-height: 2.4rem;
  height: 2.4rem;
  text-align: left;
  white-space: nowrap;
}
.counter-num .dim {
  color: rgba(255,255,255,0.25);
}

.scroll-chevron {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
}
.scroll-chevron svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255,255,255,0.35);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-overlay {
  position: fixed; inset: 0;
  background: #0a0a0a;
  z-index: 9999;
  pointer-events: none;
}

@media (max-width: 768px) {
  .cube-viewport { border-radius: 20px; }
  .face-content.layout-left,
  .face-content.layout-right { flex-direction: column; }
  .face-cover { width: 100%; height: 60%; }
  .face-info { width: 100%; height: 40%; padding: 1.2rem; }
  .layout-left .face-name { top: 1rem; right: 1rem; font-size: clamp(1.2rem, 5vw, 2rem); }
  .layout-right .face-name { top: 1rem; left: 1rem; font-size: clamp(1.2rem, 5vw, 2rem); }
  .face-desc { font-size: clamp(0.85rem, 2.8vw, 1.1rem); }
  .page-title { top: 1.5rem; left: 1.5rem; font-size: clamp(1.8rem, 7vw, 3rem); }
  .back-btn { top: 1.5rem; right: 1.5rem; }
  .scroll-hint { bottom: 1.5rem; left: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
