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

:root {
  --mono: 'Space Mono', monospace;
  --pill-bg: #2d2d2d;
  --pill-border: #b6b6b6;
  --text-dim: #acacac;
}

html { scroll-behavior: smooth; }

body {
  position: relative;
  background: #000;
  color: #fff;
  font-family: var(--mono);
  overflow-x: hidden;
}

/* ── GRID OVERLAY ── */
.grid-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-content: start;
}

.grid-cell {
  height: 45vh;
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  box-sizing: border-box;
  position: relative;
}

/* ── NAV PILL ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.6rem 2rem;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.nav-pill {
  pointer-events: all;
}

.nav-pill {
  background: rgba(45, 45, 45, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  border-radius: 16px;
  height: 64px;
  min-width: 640px;
  overflow: hidden;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 32px;
}

/* ── NAV MENU (expanded content) ── */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 20px 20px;
}

.nav-menu-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}

.nav-menu-img {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
}

.nav-menu-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.nav-menu-item:hover .nav-menu-img img {
  transform: scale(1.2);
}

.nav-menu-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  padding: 0 4px;
}

.porsche-logo {
  height: 14px;
  width: auto;
  display: block;
}

.nav-menu-view {
  color: rgba(255,255,255,0.35);
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1px;
  background: #d9d9d9;
  border: 0.5px solid var(--pill-border);
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center;
}


.nav-hamburger.open span:first-child {
  transform: rotate(45deg) translate(0px, 3.5px);
}

.nav-hamburger.open span:last-child {
  transform: rotate(-45deg) translate(0px, -3.5px);
}

.nav-model {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ── POWER STAT BLOCK ── */
.powerstat-block {
  position: absolute;
  top: 360vh;
  left: 40%;
  width: 60%;
  height: 45vh;
  z-index: 60;
  overflow: hidden;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.powerstat-ticker {
  display: flex;
  white-space: nowrap;
  animation: powerstat-scroll 20s linear infinite;
}

.powerstat-ticker span {
  font-family: 'Special Gothic Condensed One', sans-serif;
  font-size: 400px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}

@keyframes powerstat-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── ENGINE COPY BLOCK ── */
.enginecopy-block {
  position: absolute;
  top: 405vh;
  left: 0%;
  width: 20%;
  height: 45vh;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  padding: 24px 1.5rem 0;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

/* ── STAT BLOCK ── */
.stat-block {
  position: absolute;
  top: 90vh;
  left: 20%;
  width: 40%;
  height: 45vh;
  z-index: 60;
  display: flex;
  align-items: center;
  pointer-events: none;
  overflow: hidden;
}

.stat-ticker {
  display: flex;
  white-space: nowrap;
  animation: stat-scroll 20s linear infinite;
  animation-play-state: paused;
}

.stat-ticker span {
  font-family: 'Special Gothic Condensed One', sans-serif;
  font-size: 400px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
}

@keyframes stat-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── DISCLAIMER BLOCK ── */
.disclaimer-block {
  position: absolute;
  top: 135vh;
  left: 20%;
  width: 20%;
  height: 45vh;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  padding: 24px 1.5rem 0;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* ── TOP SPEED BLOCK ── */
.topspeed-block {
  position: absolute;
  top: 225vh;
  left: 60%;
  width: 40%;
  height: 45vh;
  z-index: 60;
  display: flex;
  align-items: center;
  pointer-events: none;
  overflow: hidden;
}

.topspeed-ticker {
  display: flex;
  white-space: nowrap;
  animation: topspeed-scroll 20s linear infinite;
}

.topspeed-ticker span {
  font-family: 'Special Gothic Condensed One', sans-serif;
  font-size: 400px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}

@keyframes topspeed-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── GT3 RS TICKER ── */
.gt3rs-ticker-wrap {
  position: absolute;
  top: 180vh;
  left: 40%;
  width: 60%;
  height: 45vh;
  z-index: 60;
  overflow: hidden;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.gt3rs-ticker {
  display: flex;
  white-space: nowrap;
  animation: gt3rs-scroll 20s linear infinite;
}

.gt3rs-ticker span {
  font-family: 'Special Gothic Condensed One', sans-serif;
  font-size: 400px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}

@keyframes gt3rs-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── PORSCHE CREST ── */
.crest-block {
  position: absolute;
  top: 540vh;
  left: 40%;
  width: 20%;
  height: 45vh;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.crest-logo {
  height: 30%;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ── BODY COPY BLOCK ── */
.bodycopy-block {
  position: absolute;
  top: 315vh;
  left: 20%;
  width: 20%;
  height: 45vh;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  padding: 24px 1.5rem 0;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

/* ── SPORTMADE TICKER ── */
.sportmade-ticker-wrap {
  position: absolute;
  top: 270vh;
  left: 20%;
  width: 40%;
  height: 45vh;
  z-index: 60;
  overflow: hidden;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.sportmade-ticker {
  display: flex;
  white-space: nowrap;
  animation: sportmade-scroll 25s linear infinite;
}

.sportmade-ticker span {
  font-family: 'Special Gothic Condensed One', sans-serif;
  font-size: 400px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}

@keyframes sportmade-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── AERO COPY BLOCK ── */
.aerocopy-block {
  position: absolute;
  top: 495vh;
  left: 80%;
  width: 20%;
  height: 45vh;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  padding: 24px 1.5rem 0;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

/* ── AERODYNAMIC TICKER ── */
.aero-ticker-wrap {
  position: absolute;
  top: 450vh;
  left: 20%;
  width: 60%;
  height: 45vh;
  z-index: 60;
  overflow: hidden;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.aero-ticker {
  display: flex;
  white-space: nowrap;
  animation: aero-scroll 30s linear infinite;
}

.aero-ticker span {
  font-family: 'Special Gothic Condensed One', sans-serif;
  font-size: 400px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}

@keyframes aero-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── TURBO TICKER ── */
.turbo-ticker-wrap {
  position: absolute;
  top: 45vh;
  left: 60%;
  width: 40%;
  height: 45vh;
  z-index: 60;
  overflow: hidden;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.turbo-ticker {
  display: flex;
  white-space: nowrap;
  animation: turbo-scroll 30s linear infinite;
}

.turbo-ticker span {
  font-family: 'Special Gothic Condensed One', sans-serif;
  font-size: 400px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  flex-shrink: 0;
}

@keyframes turbo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── PANELS ── */
.panel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  cursor: zoom-in;
}

.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  transition: transform 0.6s ease;
}


/* panel variants — match Figma layout proportions */
.panel-full { width: 100%; }

.panel-left {
  width: 75%;         /* ~1198/1600 */
}

.panel-right {
  width: 50%;         /* ~806/1600 */
  margin-left: auto;  /* right-aligned */
}

.panel-center {
  width: 50%;
  margin: 0 auto;
  height: 60vh;
}

/* ── VIDEO SECTION ── */
.video-section {
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.video-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--text-dim);
  padding-bottom: 1rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.12);
}

.video-wrap video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  background: #000;
}

/* ── FOOTER ── */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 2rem;
  border-top: 0.5px solid rgba(255,255,255,0.12);
  border-bottom: 0.5px solid rgba(255,255,255,0.12);
  color: var(--text-dim);
}

.footer-title {
  display: block;
  width: 100%;
  text-align: justify;
  text-align-last: justify;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

/* ── LIGHTBOX ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#lightbox.open { display: flex; }

#lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
}

.lb-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
  cursor: pointer;
  font-family: var(--mono);
  transition: color 0.2s;
}

.lb-close:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .panel-left, .panel-right, .panel-center {
    width: 100%;
    margin: 0;
    height: 60vh;
  }
  .nav-pill { min-width: 260px; }
}
