/* ═══════════════════════════════════════════════════════════════
   smeg.css — SMEG mixer project page
   Mirrors comet700.css hero / meta-bar / section idioms for
   visual consistency across project sub-pages.
   ═══════════════════════════════════════════════════════════════ */


/* ─── SECTION 1: HERO ────────────────────────────────────────── */
.smeg-hero {
  position: relative;
  min-height: 100svh;
  background: #050508;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Right-shifted product image with left-edge mask */
.smeg-hero-img {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.smeg-hero-img img {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-52%);
  width: 68%;
  height: auto;
  object-fit: contain;
  -webkit-mask: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 18%, black 42%);
          mask: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 18%, black 42%);
}

/* Bottom gradient for text readability */
.smeg-hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,8,0.92) 0%, rgba(5,5,8,0.4) 35%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* Lower-left text block */
.smeg-hero-content {
  position: relative;
  z-index: 2;
  padding: var(--nav-h) var(--gutter) 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.smeg-back {
  display: inline-block;
  font: 400 var(--t-sm)/1 var(--sans);
  letter-spacing: .06em;
  color: rgba(255,255,255,0.45);
  padding-top: 2rem;
  transition: color .2s;
  align-self: flex-start;
}
.smeg-back:hover { color: rgba(255,255,255,0.8); }

.smeg-hero-text {
  padding-bottom: 5rem;
  max-width: 480px;
  margin-top: auto;
  padding-top: clamp(35vh, 42vh, 50vh);
}

.smeg-title {
  font: 300 clamp(32px, 5vw, 62px)/1.12 var(--sans);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: smegFadeUp .9s var(--ease) .2s both;
}

.smeg-hero-body {
  font-size: var(--t-body-lg);
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  max-width: 460px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(14px);
  animation: smegFadeUp .8s var(--ease) .42s both;
}

.smeg-cta {
  align-self: flex-start;
  opacity: 0;
  transform: translateY(10px);
  animation: smegFadeUp .8s var(--ease) .6s both;
}

/* Meta bar — full-width strip anchored to hero bottom */
.smeg-meta-bar {
  position: relative;
  z-index: 3;
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(5,5,8,0.8);
  backdrop-filter: blur(12px);
  opacity: 0;
  animation: smegFadeUp .7s var(--ease) .85s both;
}
.smeg-meta-item {
  flex: 1;
  padding: 1.1rem var(--gutter);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.smeg-meta-item:last-child { border-right: none; }
.smeg-meta-label {
  display: block;
  font: 800 var(--t-xs)/1 var(--sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(55,115,230,0.85);
  margin-bottom: .4rem;
}
.smeg-meta-value {
  display: block;
  font: 400 var(--t-sm)/1.3 var(--sans);
  color: rgba(255,255,255,0.75);
}

@keyframes smegFadeUp {
  from { opacity: 0; transform: translateY(var(--ty, 16px)); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ─── SHARED SECTION BASE ────────────────────────────────────── */
.smeg-section {
  background: var(--dark);
  border-top: 1px solid var(--rule);
  padding-block: clamp(5rem, 10vw, 9rem);
}

.smeg-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;
}

.smeg-body {
  font-size: var(--t-body-lg);
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.1rem;
}
.smeg-body--lede {
  font-size: var(--t-body-lg);
  color: rgba(255,255,255,0.78);
  max-width: 56ch;
  margin-inline: auto;
}


/* ─── SECTION 2: THE OPENER ─────────────────────────────────── */
.smeg-opener-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.smeg-opener-text .label { margin-bottom: 1.5rem; }

.smeg-opener-image {
  overflow: hidden;
  border-radius: 3px;
}
.smeg-opener-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.smeg-opener-image:hover img { transform: scale(1.03); }


/* ─── SECTION 3: THE TEARDOWN ───────────────────────────────── */
.smeg-teardown-head {
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vh, 4rem);
  text-align: center;
}
.smeg-teardown-head .label { margin-bottom: 1rem; }
.smeg-teardown-head .smeg-section-title { margin-top: 0; }

.smeg-teardown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-inline: var(--gutter);
}
.smeg-teardown-item {
  margin: 0;
}
.smeg-teardown-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  transition: transform .8s var(--ease);
}
.smeg-teardown-item:hover img { transform: scale(1.03); }
.smeg-teardown-item figcaption {
  margin-top: 1rem;
  font-size: var(--t-body);
  line-height: 1.5;
  color: rgba(255,255,255,0.55);
}


/* ─── SECTION 4: THE HERO FILM ──────────────────────────────── */
.smeg-film-section { padding-bottom: clamp(5rem, 10vw, 9rem); }

.smeg-film-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vh, 3.5rem);
}
.smeg-film-head .label { margin-bottom: 1rem; }
.smeg-film-head .smeg-section-title { margin-top: 0; }

.smeg-film-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);
}

.smeg-film-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .6;
  filter: brightness(.7) saturate(1.1);
  transition: opacity .4s var(--ease);
}
.smeg-film-frame.is-playing .smeg-film-poster,
.smeg-film-frame.is-playing .smeg-film-play { opacity: 0; pointer-events: none; }

.smeg-film-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.smeg-play-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(5,5,8,0.5);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.smeg-play-circle svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
  color: var(--text);
}
.smeg-play-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color .4s, transform .4s var(--ease);
}
.smeg-film-play:hover .smeg-play-circle {
  border-color: rgba(55,115,230,0.8);
  background: rgba(55,115,230,0.15);
  box-shadow: 0 0 30px rgba(55,115,230,0.4);
}
.smeg-film-play:hover .smeg-play-ring {
  border-color: rgba(55,115,230,0.35);
  transform: scale(1.2);
}

.smeg-film-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}
.smeg-film-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.smeg-film-credibility {
  margin: 1.75rem auto 0;
  max-width: 640px;
  text-align: center;
  font-size: var(--t-body);
  color: rgba(255,255,255,0.45);
  font-style: italic;
}


/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .smeg-hero-img img { width: 100%; right: 0; transform: translateY(-50%); }
  .smeg-hero-content { padding-bottom: 0; }
  .smeg-hero-text { padding-top: 30vh; }

  .smeg-meta-bar { flex-wrap: wrap; }
  .smeg-meta-item { width: 50%; border-right: none; }

  .smeg-opener-inner { grid-template-columns: 1fr; }
  .smeg-opener-image { order: -1; }
  .smeg-opener-image img { aspect-ratio: 16 / 10; }

  .smeg-teardown-grid { grid-template-columns: 1fr; }

  .smeg-film-frame { aspect-ratio: 16 / 10; }
}

@media (max-width: 600px) {
  .smeg-meta-item { width: 100%; }
}

/* ═══ SMEG GALLERY ════════════════════════════════════════════ */
.smeg-gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--dark);
  border-top: 1px solid var(--rule);
  padding-top: calc(var(--nav-h) + 1.5rem);
}

.smeg-gal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.smeg-gal-counter {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--sans);
}

.smeg-gal-track {
  display: flex;
  align-items: center;
  gap: 4vw;
  padding: 0 8vw 5rem;
  width: max-content;
  will-change: transform;
}

.smeg-gal-item {
  position: relative;
  flex-shrink: 0;
  height: 82vh;
  width: calc(82vh * 16 / 9); /* explicit 16:9 — never depends on image load state */
}

.smeg-gal-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
}

.smeg-gal-img-wrap img {
  height: 100%;
  width: 110%;      /* 10% wider for parallax room */
  margin-left: -5%; /* centre by default */
  display: block;
  object-fit: cover;
  will-change: transform;
}

.smeg-gal-caption {
  position: absolute;
  bottom: -2rem;
  left: 0;
  opacity: 0;
}

.smeg-gal-caption .label {
  color: rgba(255, 255, 255, 0.5);
}
