/* =====================================================================
   Home page — layout on top of the shared design system.
   ===================================================================== */

/* ---- Hero (full-width headline, two-column row below) ---------------- */
.hero { padding-top: clamp(6.5rem, 5rem + 6vw, 9rem); padding-bottom: var(--section-y); }
.hero-title {
  font-size: clamp(2.2rem, 1.2rem + 3.4vw, 3.25rem); /* up to 52px, matches original */
  margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
}
/* gradient phrase ("studio …") always starts its own line, so "studio" is
   never on line 1; the white text above still wraps naturally with width */
.hero-title .gradient-text { display: block; }
.hero-row { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 3.5rem); align-items: start; }
.hero-sub { font-size: var(--step-1); color: var(--text-soft); font-weight: 500; line-height: 1.45; max-width: 46ch; margin-bottom: 1.5rem; }

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-bottom: 2rem;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-soft);
}
.hero-points svg {
  width: 16px; height: 16px;
  color: var(--green);
  flex-shrink: 0;
}
.hero-ctas { display: flex; flex-direction: column; gap: 0.75rem; }

@media (min-width: 600px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
}
/* Mobile: show the video right under the headline, before the subheadline */
.hero-media { order: -1; }
@media (min-width: 980px) {
  .hero-row { grid-template-columns: 0.85fr 1.15fr; }
  .hero-media { order: 0; }
}

/* ---- The shift ------------------------------------------------------ */
.shift-grid { display: grid; gap: 1rem; max-width: 980px; margin-inline: auto; }
.shift-col h3 { font-size: var(--step-1); margin-bottom: 1.1rem; }
.shift-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.shift-col li { position: relative; padding-left: 1.85rem; color: var(--text-soft); line-height: 1.5; }
.shift-col li::before { position: absolute; left: 0; top: -1px; font-weight: 700; font-size: 1.1rem; }
.shift-col--no { background: rgba(248, 113, 113, 0.05); border-color: rgba(248, 113, 113, 0.18); }
.shift-col--no h3 { color: var(--red); }
.shift-col--no li::before { content: '✗'; color: var(--red); }
.shift-col--yes { background: rgba(34, 197, 94, 0.05); border-color: rgba(34, 197, 94, 0.18); }
.shift-col--yes h3 { color: var(--green); }
.shift-col--yes li::before { content: '✓'; color: var(--green); }

@media (min-width: 760px) {
  .shift-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* ---- How it works --------------------------------------------------- */
.steps { list-style: none; display: grid; gap: 1rem; counter-reset: step; }
.step { position: relative; }
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-warm);
  font-weight: 800; color: #fff;
  margin-bottom: 1rem;
}
.step h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); }

@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
/* 3-step variant (Install / Record / Send) before the full-width Delivery card */
@media (min-width: 820px) { .steps--three { grid-template-columns: repeat(3, 1fr); } }

/* Process headline: break the two sentences onto their own lines from ~tablet
   up; on small phones let it wrap balanced (no orphaned word). */
#how-it-works h2 { text-wrap: balance; }
.brk { display: none; }
@media (min-width: 600px) { .brk { display: inline; } }

/* Step 4: a normal card on mobile (the full-width Delivery callout reads poorly
   on narrow screens), the full-width callout from tablet up. */
.delivery { display: none; }
@media (min-width: 820px) {
  .step--alt { display: none; }
  .delivery { display: block; }
}

.callout {
  margin-top: 1rem;
  text-align: center;
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(249, 115, 22, 0.2);
}
.callout h3 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.callout p { color: var(--text-soft); max-width: 52ch; margin-inline: auto; }

/* Step 4 — Delivery (full-width card) */
.delivery .delivery-step {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  margin-bottom: 1rem;
}
.delivery .delivery-step .step-num {
  width: 40px; height: 40px;
  font-size: var(--step-0);
  margin-bottom: 0;
}

/* ---- Results (set gallery: 3 images per set) ------------------------ */
/* Wider than the 1200 content column so the 3 angles get maximum size */
.wrap-wide { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
/* Results: set-name pills + looping coverflow of set thumbnails. */

/* Set-name pills (select the centered set + at-a-glance list of every set) */
.set-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.set-pill {
  cursor: pointer;
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--step--1);
  font-weight: 600;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.set-pill:hover { color: #fff; border-color: var(--line-strong); }
.set-pill.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(6,182,212,0.12));
  border-color: rgba(249,115,22,0.45);
}
/* Coverflow stage: selected set large in center, neighbors peek each side, loops */
.cf { --cf-w: 80vw; position: relative; }
@media (min-width: 720px)  { .cf { --cf-w: min(64vw, 720px); } }
@media (min-width: 1200px) { .cf { --cf-w: min(56vw, 820px); } }
/* clip the off-screen slides HORIZONTALLY only (overflow-x:clip, not hidden)
   so the page can't widen — but the active card's bottom border/shadow show */
.cf-stage { position: relative; height: calc(var(--cf-w) * 0.5625); overflow-x: clip; overflow-y: visible; }
.cf-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--cf-w);
  transform: translateX(-50%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
  will-change: transform, opacity;
}
/* Active card gets a stronger border + shadow; iframe (when present) sits inside */
.cf-slide .vidcard-btn:hover { transform: none; }
.cf-slide.is-active .vidcard-btn {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

.cf-nav { display: flex; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
/* Per-set caption under the thumbnail: title + description (+ tiny spec note) */
.cf-caption {
  max-width: 54ch;
  min-height: 4.5em; /* reserve space so the arrows don't jump between sets */
  margin: 1.1rem auto 0;
  text-align: center;
}
/* inline-block so the gradient maps across the TEXT (full cyan->orange),
   not the full centered block (which would only show the middle colors) */
.cf-title { display: inline-block; font-size: var(--step-1); font-weight: 700; margin-bottom: 0.3rem; }
.cf-desc { color: var(--text-soft); font-size: var(--step-0); line-height: 1.45; }
/* understated spec disclosure: small, faint, its own line under the copy */
.cf-spec {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.cf-spec[hidden] { display: none; }
.carousel-btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.carousel-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(249,115,22,0.4); transform: translateY(-1px); }
.carousel-btn--sm { width: 38px; height: 38px; }

.vidcard-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9; /* always has dimensions, independent of inner content */
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.vidcard-btn:hover { border-color: rgba(255,255,255,0.55); transform: translateY(-3px); }
.vidcard-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.vidcard-btn:hover .vidcard-poster { transform: scale(1.03); }
/* Inline Stream iframe injected into the active card; fills the 16:9 box */
.vidcard-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  z-index: 2;
}
/* ---- The wall (full-bleed auto-scrolling marquee of production stills) - */
.wall { padding-block: var(--section-y); border-top: 1px solid var(--line); overflow: hidden; }
.marquee {
  --tile: clamp(210px, 18vw, 320px);
  --m-gap: clamp(0.6rem, 0.4rem + 0.5vw, 1rem);
  display: flex;
  flex-direction: column;
  gap: var(--m-gap);
  /* soft fade at both edges so the rows bleed into the page */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-row { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 80s linear infinite;
}
.marquee-row--rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.faceitem {
  flex: 0 0 auto;
  width: var(--tile);
  margin-right: var(--m-gap); /* margin (not flex gap) keeps the loop seamless */
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
}
.faceitem img {
  width: 100%;
  aspect-ratio: 13 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.faceitem:hover img { transform: scale(1.05); }

/* ---- Solutions (3 cards across; each has an in-card peek carousel) --- */
.solution-tag {
  font-size: var(--step--1); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--cyan-light);
}
.solutions-grid { display: grid; gap: clamp(1rem, 0.7rem + 1vw, 1.5rem); }
/* align-items:start so expanding one card's "Learn more" grows only that card,
   not all three (grid would otherwise stretch them to equal height) */
@media (min-width: 860px) { .solutions-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }

.sol-card { display: flex; flex-direction: column; padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); }
.sol-card .solution-tag { margin-top: 0.25rem; }
.sol-card h3 { font-size: var(--step-1); margin: 0.3rem 0 0.7rem; }
.sol-card > p { color: var(--text-soft); line-height: 1.5; margin-bottom: 1.1rem; }
.sol-card > p { margin-bottom: 1.1rem; }
.sol-points { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.4rem; }
.sol-points li { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--text-soft); font-size: var(--step-0); }
.sol-points svg { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* One 16:9 visual per card (still now; muted autoplay loop later) */
.sol-visual {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
  margin-bottom: 0.7rem;
}
.sol-visual img, .sol-visual video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
/* small single-line location/context caption under each loop */
.sol-loc { margin: 0 0 1.1rem; font-size: var(--step--1); line-height: 1.3; }
.sol-loc-name { font-weight: 600; color: var(--text-soft); }
.sol-loc-place { color: var(--text-faint); }

/* "Learn more" expander */
.sol-more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  align-self: flex-start;
  background: none; border: none; padding: 0.3rem 0;
  color: var(--orange); font-weight: 600; font-size: var(--step-0); cursor: pointer;
}
.sol-more-chev { width: 18px; height: 18px; transition: transform 0.25s ease; }
.sol-more[aria-expanded="true"] .sol-more-chev { transform: rotate(180deg); }
.sol-detail { margin-top: 0.9rem; }
.sol-detail[hidden] { display: none; }
.sol-detail .btn { align-self: flex-start; }

/* ---- CTA ------------------------------------------------------------ */
.cta-inner { text-align: center; max-width: 640px; }
.cta-inner .lead { margin: 0.75rem auto 1.75rem; }
.cta-inner .btn-block { max-width: 320px; margin-inline: auto; }
.cta-inner .thanks-back { margin-top: 1.4rem; font-size: var(--step--1); }
.cta-inner .thanks-back a { color: var(--text-muted); text-decoration: none; }
.cta-inner .thanks-back a:hover { color: #fff; }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; gap: clamp(2rem, 1.4rem + 3vw, 4rem); }
.contact-intro h2 { margin-bottom: 1rem; }
.contact-intro .lead { margin-bottom: 1.5rem; }
.contact-email {
  display: inline-block;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--cyan-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-email:hover { color: #fff; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--text-soft); }
.field-opt { color: var(--text-faint); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--step-0);
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.04);
}
.contact-form .btn { width: 100%; margin-top: 0.3rem; }

@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
