/* ═══════════════════════════════════════════════════════════════
   smart-3.css — Smart #3 personal showcase page  v20260517a
   ═══════════════════════════════════════════════════════════════ */


/* ─── HERO ───────────────────────────────────────────────────── */
.s3-hero {
  position: relative;
  height: 100svh;
  background: #050508;
  /* No overflow:hidden — media clipped by .s3-hero-img (contain:paint).
     Meta-bar uses bottom:-4px to cover GPU bleed. */
}

.s3-hero-img {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Slight scale + center origin gives the parallax a stationary
     "depth zoom" feel without needing extra height. smart-3.js
     animates `scale` instead of `yPercent`. */
  transform-origin: center center;
}
.s3-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.s3-hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(5,5,8,0.55) 0%, transparent 55%),
    linear-gradient(to top,   rgba(5,5,8,0.75) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.s3-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 0 var(--gutter) 6.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


.s3-hero-text {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-width: 55%;
}

.s3-hero-label {
  opacity: 0;
  animation: s3FadeUp .7s var(--ease) 0s both;
}

.s3-title {
  font: 500 clamp(40px, 5.8vw, 76px)/1.0 var(--sans);
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
  opacity: 0;
  animation: s3FadeUp .9s var(--ease) .15s both;
}

.s3-scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.s3-scroll-cue-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.25));
}
.s3-scroll-cue-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: s3ScrollBounce 1.6s ease-in-out infinite;
}

@keyframes s3FadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes s3ScrollBounce {
  0%, 100% { transform: translateY(0); opacity: .35; }
  50%       { transform: translateY(7px); opacity: .9; }
}


/* ─── SHARED SECTION BASE ────────────────────────────────────── */
.s3-section {
  background: var(--dark);
  border-top: 1px solid var(--rule);
}

.s3-section-title {
  font-size: var(--t-h1);
  font-weight: var(--fw-h1);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: .75rem 0 1.5rem;
}

.s3-body {
  font-size: var(--t-body-lg);
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.1rem;
}


/* ─── 02 THE PROJECT ─────────────────────────────────────────── */
.s3-the-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 55vh;
}

.s3-project-heading {
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 5rem);
  border-right: 1px solid var(--rule);
  align-self: stretch;
  display: flex;
  align-items: center;
}

.s3-project-heading .s3-section-title {
  font-size: clamp(2rem, 3.8vw, 4.2rem);
  line-height: 1.05;
  margin: 0;
}

.s3-project-text {
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 5rem);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.s3-project-text .label {
  display: block;
  margin-bottom: .25rem;
}

.s3-project-images {
  position: relative;
  min-height: 65vh;
}

.s3-project-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.s3-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}


/* ─── 03 INTERIOR 360° ──────────────────────────────────────── */
.s3-interior {
  padding-block: clamp(5rem, 10vw, 9rem);
}


.s3-360-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050508;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  cursor: grab;
}
.s3-360-wrap:active { cursor: grabbing; }

.s3-360-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.s3-360-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  background: rgba(5,5,8,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font: 400 var(--t-xs)/1 var(--sans);
  letter-spacing: .08em;
  color: rgba(255,255,255,0.6);
  pointer-events: none;
  transition: opacity .4s;
  white-space: nowrap;
}
.s3-360-hint.is-hidden { opacity: 0; }

/* Enter overlay — sits over the canvas until user clicks through.
   inset: -2px keeps the overlay slightly larger than the wrap so
   ScrollSmoother sub-pixel scrolling can't expose the canvas edge. */
.s3-360-overlay {
  position: absolute;
  inset: -2px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center,
      rgba(5, 5, 8, 0.65) 0%,
      rgba(5, 5, 8, 0.92) 65%,
      rgba(5, 5, 8, 0.98) 100%);
  cursor: pointer;
  transition: opacity .7s var(--ease, cubic-bezier(.22,.61,.36,1));
  will-change: opacity;
}
.s3-360-overlay.is-dismissed {
  opacity: 0;
  pointer-events: none;
}

.s3-360-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
  padding: 0 2rem;
  pointer-events: none; /* clicks go to the overlay itself */
}

.s3-360-overlay-icon {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: .5rem;
}

.s3-360-overlay-content .label {
  color: var(--accent, #0095FF);
}

.s3-360-overlay-title {
  font: 300 clamp(28px, 4vw, 44px)/1.1 var(--sans);
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 1rem;
}

.s3-360-enter-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: var(--text);
  font: 500 var(--t-sm)/1 var(--sans);
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.s3-360-enter-btn:hover {
  background: rgba(0, 149, 255, 0.15);
  border-color: rgba(0, 149, 255, 0.6);
  transform: translateY(-1px);
}
.s3-360-enter-btn svg {
  transition: transform .25s ease;
}
.s3-360-enter-btn:hover svg {
  transform: translateX(2px);
}


/* ─── 05 DETAIL CLOSE-UPS ───────────────────────────────────── */
.s3-details {
  position: relative;
  height: 100vh;
}

.s3-detail-item {
  position: absolute;
  inset: 0;
  height: 100vh;
  overflow: hidden;
}
.s3-detail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.s3-detail-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,8,0.7) 0%, transparent 50%);
  pointer-events: none;
}
.s3-detail-caption {
  position: absolute;
  bottom: 3.5rem;
  left: var(--gutter);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.s3-detail-name {
  font: 300 clamp(26px, 4vw, 54px)/1 var(--sans);
  letter-spacing: -0.02em;
  color: var(--text);
}


/* ─── 06 THE CONFIGURATOR ───────────────────────────────────── */
.s3-configurator {
  position: relative;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s3-config-video {
  position: absolute;
  inset: 0;
}
.s3-config-video video,
.s3-config-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.s3-config-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,5,8,0.45);
  pointer-events: none;
}

.s3-config-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 860px;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.s3-config-content .label { margin-bottom: 0; }

.s3-config-title {
  font: 300 clamp(32px, 5.5vw, 72px)/1.05 var(--sans);
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
}

.s3-config-title__line { white-space: nowrap; }

.s3-config-content .s3-body { max-width: 600px; }


/* ─── 07 STUDIO FILM ─────────────────────────────────────────── */
.s3-film {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.s3-film-head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.s3-film-head .label { display: block; margin-bottom: .75rem; }
.s3-film-head .s3-section-title { margin-top: 0; }

.s3-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050508;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.s3-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ─── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Hero */
  .s3-hero-img { height: 100%; top: 0; }
  .s3-hero-img img { object-position: 60% center; }

  /* The Project — stack on mobile */
  .s3-the-project { grid-template-columns: 1fr; min-height: auto; }
  .s3-project-heading {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 4rem var(--gutter);
  }
  .s3-project-text { padding: 4rem var(--gutter); }

  /* Interior 360 */
  .s3-360-wrap { aspect-ratio: 4 / 3; }

  /* Colour story — 2×3 grid, no horizontal pin */
  .s3-colours-pin {
    height: auto;
    overflow: visible;
  }
  .s3-colours-track {
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    transform: none !important;
  }
  .s3-colour-card {
    flex: 0 0 50%;
    height: 60vw;
  }

  /* Detail close-ups — vertical stack */
  .s3-details { padding-bottom: 0; }
  .s3-detail-item {
    position: relative;
    height: 75vw;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Configurator */
  .s3-config-title { font-size: clamp(28px, 8vw, 48px); }
}

@media (max-width: 600px) {
  .s3-colour-card { flex: 0 0 100%; height: 70vw; }
}
