/* Home — sparse spatial canvas with floating "instruments".
 *
 * Two-screen layout:
 *   Screen 1 (.stage)    — current line: POVA 8, Curve 02, POVA 7 Pro
 *   Screen 2 (.lineage)  — older line: Curve gen 1, POVA 7, 6 Pro, 5 Pro
 *
 * The user scrolls past the first viewport to discover the lineage
 * — the hero stays uncluttered, glance-test friendly. */

.home {
  position: relative;
  /* 100dvh = dynamic viewport height — accounts for mobile browser
   * address bar collapsing. Without it on iOS Safari / Android Chrome
   * the page falsely measures itself as 100vh of "address-bar-visible"
   * state, then when the bar collapses the bottom of the hero copy is
   * clipped behind the browser chrome. dvh follows live. */
  min-height: 100dvh;
  width: 100vw;
  overflow-x: hidden;
}

/* Stage — the first viewport. position: relative so instruments
 * resolve their percentage-based tops against the stage box itself,
 * and so the lineage section flows naturally below it. */
.stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
}

/* Each product card is absolutely positioned at viewport-% coords.
 * Hovering drives the halo + ticker via [data-product] attribute. */
.instrument {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: var(--pova-white);
  /* slight float baseline + idle drift */
  animation: float 8s var(--ease-in-out) infinite;
  transition: transform var(--t-med) var(--ease-out), filter var(--t-med) var(--ease-out);
  will-change: transform;
}
.instrument:nth-child(2) { animation-delay: -2s; animation-duration: 9s; }
.instrument:nth-child(3) { animation-delay: -4s; animation-duration: 7.5s; }
.instrument:nth-child(4) { animation-delay: -6s; animation-duration: 10s; }

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50%      { transform: translate(-50%, -50%) translateY(-14px); }
}

.instrument:hover,
.instrument:focus-visible {
  filter: brightness(1.05);
  z-index: 10;
}

/* Satellites (everything except the hero) sit ABOVE the hero at every
 * state. The hero's bounding box at desktop is 870×743 and fully
 * encloses the Curve top-left satellite. Without an explicit stack
 * order, the hero's own :hover (z:10) covers the satellites and steals
 * their clicks. Pinning satellites at z:12 (rest) and z:20 (hover)
 * guarantees they're always reachable. */
.instrument[data-pos="tl"],
.instrument[data-pos="tr"],
.instrument[data-pos="br"],
.instrument[data-pos^="legacy-"] { z-index: 12; }
.instrument[data-pos="tl"]:hover,
.instrument[data-pos="tl"]:focus-visible,
.instrument[data-pos="tr"]:hover,
.instrument[data-pos="tr"]:focus-visible,
.instrument[data-pos="br"]:hover,
.instrument[data-pos="br"]:focus-visible,
.instrument[data-pos^="legacy-"]:hover,
.instrument[data-pos^="legacy-"]:focus-visible { z-index: 20; }
.instrument:hover .inst-photo,
.instrument:hover .inst-silhouette,
.instrument:focus-visible .inst-photo,
.instrument:focus-visible .inst-silhouette {
  transform: scale(1.04);
}

/* Photo / silhouette container */
.inst-photo,
.inst-silhouette {
  display: block;
  transition: transform var(--t-slow) var(--ease-out), filter var(--t-med) var(--ease-out);
}

/* Real product photo — transparent PNGs, drop straight onto the field
 * with a soft shadow for lift. No blend mode (renders are pre-isolated). */
.inst-photo {
  height: var(--inst-size, 280px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
  transition: filter var(--t-med) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.instrument:hover .inst-photo {
  filter: drop-shadow(0 50px 80px rgba(0, 0, 0, 0.7));
}

/* SVG silhouette — for products without a photo */
.inst-silhouette {
  height: var(--inst-size, 220px);
  width: auto;
}
.inst-silhouette path,
.inst-silhouette rect,
.inst-silhouette circle {
  fill: #1a1a1a;
  stroke: rgba(255, 255, 255, 0.10);
  stroke-width: 1;
}
.inst-silhouette .accent {
  fill: rgba(255, 255, 255, 0.04);
}

/* Inline label below each instrument — appears on hover */
.inst-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
  pointer-events: none;
}
.instrument:hover .inst-label,
.instrument:focus-visible .inst-label,
.instrument.is-tapped .inst-label {
  opacity: 1;
  transform: translateY(0);
}
.instrument:focus-visible {
  outline: 2px solid var(--pova-orange);
  outline-offset: 12px;
  border-radius: 8px;
}
/* Touch devices: kill the focus-visible outline. Some mobile browsers
 * fire :focus-visible on tap, which made the instrument look like it
 * had a big orange "selector box" around it after a tap. The tap
 * pulse (.is-tapped) and the field halo color shift already give
 * touch feedback without needing the outline. */
@media (hover: none), (pointer: coarse) {
  .instrument:focus-visible,
  .instrument:focus { outline: none; }
}
.inst-label .name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.inst-label .meta {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.3em;
  opacity: 0.7;
  white-space: nowrap;
}

/* Layout — POVA 8 sits dead-centre as the singular subject; Curve 02
 * and 7 Pro orbit it as satellites. Hierarchy by size and stillness:
 * the hero is the gravity well, everything else floats around it. */

/* hero = POVA 8 — centered. Dominant scale, page's focal point.
 * Sized large to compensate for the 3/4 render's loose crop (the phone
 * subject only occupies ~40% of the source canvas). max-height keeps
 * clearance above the top wordmark and below the hero copy. */
.instrument[data-pos="hero"] { left: 50%; top: 50%; transform: translate(-50%, -50%); --inst-size: 1100px; }
.instrument[data-pos="hero"] .inst-photo { max-width: none; max-height: 78vh; }
.instrument[data-pos="hero"]:hover { transform: translate(-50%, -50%); }
.instrument[data-pos="hero"]:hover .inst-photo { transform: scale(1.03); }

/* tr = POVA Curve 02 — top-right satellite, orbiting the hero */
.instrument[data-pos="tr"] { left: 84%; top: 26%; transform: translate(-50%, -50%); --inst-size: 260px; }
.instrument[data-pos="tr"]:hover { transform: translate(-50%, -50%); }
.instrument[data-pos="tr"]:hover .inst-photo { transform: scale(1.04); }

/* br = POVA 7 Pro — bottom-right satellite. Right-side satellites
 * (tr + br) bracket the hero on its right; manifesto copy occupies
 * the left so the composition stays balanced and uncollided. */
.instrument[data-pos="br"] { left: 86%; top: 74%; transform: translate(-50%, -50%); --inst-size: 180px; }
.instrument[data-pos="br"]:hover { transform: translate(-50%, -50%); }
.instrument[data-pos="br"]:hover .inst-photo { transform: scale(1.04); }

/* Hero copy — bottom-left, pinned to the first viewport. Absolute
 * inside .stage so it scrolls away when the user reveals the lineage,
 * instead of stickying over the second screen. */
.hero-copy {
  position: absolute;
  bottom: 60px;
  left: 80px;
  z-index: 50;
  max-width: 460px;
  font-family: var(--font-serif);
  font-weight: 200;
  font-size: 17px;
  line-height: 1.5;
  color: var(--pova-white);
  opacity: 0.95;
}
.hero-copy .label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 18px;
  color: var(--pova-orange);
}
.hero-copy .tagline {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 14ch;
  color: var(--pova-white);
  opacity: 1;
}
.hero-copy p {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 0;
}

/* (.nav-pill rules moved to chrome.css — shared across home + product pages) */

/* Smaller screens — keep the centered-hero composition, scale satellites. */
@media (max-width: 1100px) {
  .instrument[data-pos="hero"] { --inst-size: 460px; left: 50%; top: 50%; }
  .instrument[data-pos="tr"]   { --inst-size: 240px; left: 84%; top: 28%; }
  .instrument[data-pos="br"]   { --inst-size: 170px; left: 84%; top: 76%; }
  .hero-copy { left: 40px; bottom: 40px; }
}
@media (max-width: 900px) {
  .instrument[data-pos="hero"] { --inst-size: 380px; }
  .instrument[data-pos="tr"]   { --inst-size: 200px; left: 84%; top: 26%; }
  .instrument[data-pos="br"]   { --inst-size: 140px; left: 84%; top: 78%; }
}
/* Mobile — version-priority constellation.
 *   01 / POVA 8       — newest, hero, top-centre, biggest
 *   02 / POVA Curve 02 — most important launch of the year, follows
 *                        POVA 8 in size and prominence. Sits below + to
 *                        the side as a clear second hero.
 *   03 / POVA 7 Pro   — older numbered, small bottom satellite
 *   04 / POVA Curve   — oldest, smallest bottom satellite */
/* Mobile constellation — all four products stay clear of:
 *   • Top strip (chrome: cart pill, about pill, wordmark, comp number)
 *   • Bottom-left text strip (hero copy)
 * Hierarchy: POVA 8 dominant, Curve 02 close second, 7 Pro + Curve tiny. */
/* Mobile constellation — strict no-overlap zones.
 *  Top  0-12%  : chrome only
 *  Hero 14-50% : POVA 8 alone, centred
 *  Mid  56-78% : Curve 02 alone, right
 *  Bot  84-96% : 7 Pro corner satellite (right)
 *  Side mid-left: Curve gen 1 (small, tucked) */
@media (max-width: 700px) {
  /* Mobile composition — hero centered, two satellites flanking,
   * manifesto pinned to the bottom. The lineage band lives below
   * the stage in normal flow (no 200vh hack needed). */
  .instrument[data-pos="hero"] { display: flex; --inst-size: 320px; left: 50%; top: 38%; }
  .instrument[data-pos="hero"] .inst-photo { max-width: 100vw; }
  .instrument[data-pos="tr"]   { display: flex; --inst-size: 120px; left: 76%; top: 18%; }
  /* Satellites: drop max-width: 96vw — the wrapper's --inst-size
   * already controls width via .inst-photo's natural aspect ratio.
   * The 96vw override let the image scale beyond its wrapper on
   * narrow screens, pushing the right edge of the Curve 02 satellite
   * off the viewport. Wrapper-based sizing keeps it on-screen. */
  .instrument[data-pos="br"]   { display: flex; --inst-size: 100px; left: 76%; top: 70%; }
  /* Hero copy — give the H1 + scroll-cue more vertical room.
   * Bottom: 80 places the H1 above the trust-ribbon and clear of
   * the scroll-cue (which sits at bottom: 32 below). */
  .hero-copy { left: 20px; right: 20px; bottom: 80px; max-width: 92%; }
  .hero-copy .tagline { font-size: clamp(28px, 8vw, 38px); max-width: 16ch; }
}
@media (max-width: 420px) {
  .instrument[data-pos="hero"] { --inst-size: 260px; top: 36%; }
  .instrument[data-pos="tr"]   { --inst-size: 100px; left: 80%; top: 16%; }
  .instrument[data-pos="br"]   { --inst-size: 84px;  left: 80%; top: 72%; }
  .hero-copy { bottom: 76px; font-size: 13px; max-width: 92%; }
  .hero-copy .tagline { font-size: 28px; max-width: 16ch; }
}
/* Touch devices: reveal product labels by default since hover doesn't apply.
 * Also kill the float animation on touch — battery-friendly, and mobile
 * already reads the field as static. */
@media (hover: none) {
  .inst-label { opacity: 0.85; transform: none; }
  .instrument { animation: none; }
}

/* ----------------------------------------------------------------------
 * Kinetic full-bleed typographic statement — sits on top of the field
 * but behind the floating instruments. FH Lecturis at display-xl scale,
 * scroll-scrubbed parallax. The brand says itself before it shows itself.
 * (Per critic § "What Would Make This Awwwards-Worthy" item 3.)
 * ---------------------------------------------------------------------- */
.kinetic-statement,
.kinetic-statement.scroll-parallax {
  position: absolute;
  bottom: 18%;
  left: 50%;
  margin: 0;
  transform: translateX(-50%) translate3d(0, var(--parallax-y, 0), 0);
  z-index: 0;                     /* sits BEHIND every floating instrument */
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 12vw, 220px);
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--pova-white);
  opacity: 0.12;                  /* visible — wave 2 was 0.06 (a ghost) */
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  text-transform: none;
  /* Subtle drop shadow so the lockup separates from the field grid even
   * at low opacity, without lifting the contrast off-brand. */
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
@media (max-width: 900px) {
  .kinetic-statement {
    bottom: 10%;
    font-size: clamp(46px, 18vw, 120px);
  }
}
@media (max-width: 600px) {
  /* Wave 2 hid this on mobile — but the kinetic statement is the brand
   * landing. Bring it back at a smaller scale, lower opacity, repositioned
   * above the bottom hero copy block so it never collides. */
  .kinetic-statement {
    display: block;
    bottom: auto;
    top: 12%;
    font-size: clamp(40px, 14vw, 72px);
    opacity: 0.10;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kinetic-statement { transform: translateX(-50%) !important; }
}

/* ============================================================
 * Scroll cue — bottom-centre of the stage. Mono caption + thin
 * vertical rule that drops on a slow loop. Affordance only —
 * the rest of the homepage tells you to look down by being
 * shorter than the document.
 * ============================================================ */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 60;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pova-white);
  opacity: 0.55;
  transition: opacity var(--t-med) var(--ease-out);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.3em;
}
.scroll-cue:hover,
.scroll-cue:focus-visible { opacity: 1; outline: none; }
.scroll-cue-rule {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--pova-white) 40%, transparent);
  animation: scroll-cue-drop 2.6s var(--ease-in-out) infinite;
}
.scroll-cue-text { white-space: nowrap; }
@keyframes scroll-cue-drop {
  0%   { transform: translateY(-6px); opacity: 0.2; }
  50%  { transform: translateY(2px);  opacity: 0.8; }
  100% { transform: translateY(10px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-rule { animation: none; opacity: 0.6; }
}
@media (max-width: 700px) {
  /* Scroll-cue on mobile — was at bottom:100 which collided with the
   * H1 (now at bottom:80, wrapping to ~3 lines). Drop it to bottom:24
   * inside the trust-ribbon zone, AND drop the vertical rule so it's
   * just the "↓ THE LINE SO FAR" label sitting cleanly between the
   * H1 and the trust-ribbon. */
  .scroll-cue { bottom: 24px; font-size: 9px; letter-spacing: 0.25em; }
  .scroll-cue-rule { display: none; }
  /* Hidden when there's a trust-ribbon overlap risk on the tiniest
   * viewports; trust-ribbon is the more important brand element. */
}
@media (max-width: 420px) {
  .scroll-cue { display: none; }
}

/* ============================================================
 * LINEAGE BAND — second viewport. Older POVA devices live here in
 * a clean horizontal rail, revealed when the user scrolls past the
 * hero. Same black field continues; just a quieter density.
 * ============================================================ */
.lineage {
  position: relative;
  width: 100%;
  /* min-height: 100vh + justify-content: center was forcing the section
   * to fill the viewport even when its content was shorter — that created
   * a big empty band below the row that made the "How we got here" title
   * appear to crowd the top chrome on scroll and pushed the footer way
   * down the page. Let the section be content-height with normal padding. */
  padding: 120px 80px 100px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 64px;
}

.lineage-header {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lineage-header .label {
  display: block;
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.55;
}
.lineage-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--pova-white);
}
.lineage-sub {
  font-family: var(--font-serif);
  font-weight: 200;
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
  opacity: 0.65;
  max-width: 540px;
}

/* Lineage row — editorial scatter, NOT a comparison grid. Each item
 * lives at its own y-baseline, its own scale, its own slight tilt.
 * No card frames, no equal alignment. The eye trips across the
 * row instead of sliding down it. Brutal, not corporate. */
/* Lineage row — chronological progression band, NOT a memorial scatter.
 * Brand book §6: "Built to evolve — every new product should feel like
 * progress, not a repeat." Phones share a baseline, scale grows left→right
 * (older→newer), a thin orange spine connects them as a timeline. Reads as
 * a series moving forward, not products laid to rest. */
.lineage-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: end;
  min-height: 420px;
  padding: 32px 0 56px;
}
/* Progression spine removed — phones now read on their own without the orange hairline. */
.lineage-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--pova-white);
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  transition: transform var(--t-med) var(--ease-out), filter var(--t-med) var(--ease-out), opacity var(--t-med) var(--ease-out);
  opacity: 0.95;
  filter: saturate(1);
  min-height: 0;
  gap: 16px;
}
/* Year-tick removed — phones read on their own without the orange dot. */
.lineage-item::after { content: none; }
/* Progressive scale — older on the left (smaller), newer on the right
 * (slightly larger). Subtle, not theatrical. All on the same baseline. */
.lineage-item:nth-child(1) { transform: scale(0.95); }
.lineage-item:nth-child(2) { transform: scale(0.98); }
.lineage-item:nth-child(3) { transform: scale(1.02); }
.lineage-item:nth-child(4) { transform: scale(1.05); }

.lineage-item:hover,
.lineage-item:focus-visible {
  opacity: 1;
  outline: none;
}
.lineage-item:nth-child(1):hover { transform: scale(0.97); }
.lineage-item:nth-child(2):hover { transform: scale(1.0); }
.lineage-item:nth-child(3):hover { transform: scale(1.04); }
.lineage-item:nth-child(4):hover { transform: scale(1.07); }

.lineage-photo {
  display: block;
  height: 240px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  transition: filter var(--t-slow) var(--ease-out);
}
.lineage-item:hover .lineage-photo,
.lineage-item:focus-visible .lineage-photo {
  filter: drop-shadow(0 20px 50px rgba(255, 124, 38, 0.22)) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.6));
}

.lineage-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  align-items: center;
}

.lineage-label .name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.04em;
}
.lineage-label .meta {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.3em;
  opacity: 0.55;
}

.lineage-all {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pova-white);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.3em;
  opacity: 0.65;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: opacity var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out), gap var(--t-med) var(--ease-out);
}
.lineage-all:hover,
.lineage-all:focus-visible {
  opacity: 1;
  border-color: var(--pova-orange);
  gap: 16px;
  outline: none;
}

/* Tablet — three across, last item wraps to second row. */
@media (max-width: 1100px) {
  .lineage { padding: 100px 48px 80px; }
  .lineage-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .lineage-item { min-height: 280px; }
  .lineage-photo { height: 200px; }
}

/* Mobile — single column stack. */
@media (max-width: 600px) {
  .lineage {
    padding: 80px 24px 60px;
    gap: 56px;
    min-height: auto;
  }
  .lineage-row {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
    gap: 32px 16px;
  }
  .lineage-item {
    padding: 24px 12px;
    min-height: 240px;
    gap: 16px;
  }
  /* Reset desktop scatter rotations — straight grid on small viewports. */
  .lineage-item:nth-child(1),
  .lineage-item:nth-child(2),
  .lineage-item:nth-child(3),
  .lineage-item:nth-child(4) {
    transform: none !important;
    align-items: center;
    padding-left: 0;
  }
  .lineage-item:nth-child(1):hover,
  .lineage-item:nth-child(2):hover,
  .lineage-item:nth-child(3):hover,
  .lineage-item:nth-child(4):hover {
    transform: translateY(-2px) !important;
  }
  .lineage-item:nth-child(1) .lineage-photo,
  .lineage-item:nth-child(2) .lineage-photo,
  .lineage-item:nth-child(3) .lineage-photo,
  .lineage-item:nth-child(4) .lineage-photo {
    height: 200px;
  }
  .lineage-photo { height: 200px; }
  .lineage-all { align-self: flex-start; }
}

