/* Photolog landing page — dark, photography-led, GSAP-animated.
   This file styles index.html only; legal pages keep styles.css. */

:root {
  --bg: #0a0a0b;
  --bg-raised: #121214;
  --text: #f5f5f3;
  --muted: #9c9c97;
  --yellow: #ffbe2f;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.06);
  --radius: 20px;
  --nav-h: 68px;
  --content-max: 1600px;
  --gutter: 48px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(var(--content-max), 100% - var(--gutter));
  margin-inline: auto;
}

/* Film grain overlay */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 11, 0.09);
  -webkit-backdrop-filter: blur(5.5px);
  backdrop-filter: blur(5.5px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}

.site-nav.scrolled {
  border-bottom-color: var(--line);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 22.4%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: #0a0a0b;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: var(--yellow);
  transform: scale(1.04);
}

.nav-cta svg {
  width: 13px;
  height: 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 24px) 0 44px;
  overflow: hidden;
  /* Phone height: minimum 600px, growing with the viewport height above that.
     The -77px keeps the camera's top controls clear of the nav and matches the
     prior deployed sizing (includes the +48px frame bump from the Safari fix).
     Width follows the frame aspect. Explicit height (not aspect-ratio) so
     Safari sizes the container correctly. */
  --phone-h: max(600px, calc(100svh - 100px));
  --phone-w: calc(var(--phone-h) / 2.107);
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      600px 600px at 72% 42%,
      rgba(255, 190, 47, 0.2),
      transparent 65%
    ),
    radial-gradient(
      900px 700px at 15% 85%,
      rgba(255, 255, 255, 0.1),
      transparent 60%
    );
}

.hero-inner {
  position: relative;
  /* Centered pair: text + phone sit together in the middle with a controlled
     gap, so the outer margins stay symmetric instead of the text hugging the
     far left while the phone floats right. */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 4vw, 88px);
}

.hero-copy {
  flex: 0 1 540px;
}

.hero-phone-wrap {
  flex: 0 0 var(--phone-w);
  height: var(--phone-h);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 28px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}

.hero h1 {
  font-size: clamp(2.9rem, 6.2vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 26px;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line > span {
  display: block;
}

.hand {
  font-family: var(--font-hand);
  font-style: normal;
  font-weight: 700;
  color: var(--yellow);
  font-size: 1.18em;
  line-height: 0.9;
  display: inline-block;
  transform: rotate(-2.5deg);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 36px;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.appstore-badge {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.appstore-badge:hover {
  transform: scale(1.05);
}

.appstore-badge img {
  display: block;
  height: 54px;
  width: auto;
}

.cta-final .appstore-badge img {
  height: 60px;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.cta-note b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Phone mockup ---------- */
.hero-phone-wrap {
  position: relative;
}

.doodle {
  position: absolute;
  top: 16%;
  left: -34px;
  width: 190px;
  color: var(--yellow);
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1.1;
  transform: rotate(-6deg);
  z-index: 4;
  pointer-events: none;
}

.doodle svg {
  width: 70px;
  margin-top: 6px;
  margin-left: 56px;
}

/* Real-device scale, derived from the 420x912pt Figma mockup. The phone is
   sized against viewport height so it bleeds behind the translucent nav and
   its bottom stays above the fold; width caps keep it sane on huge screens. */
.phone {
  /* --phone-w is inherited from .hero so the text column can align to it.
     The frame tucks partly behind the nav, but the +28 keeps the camera's
     top controls (aperture/flash) clear of it at every window aspect. */
  position: absolute;
  top: calc(-1 * var(--nav-h) + 45px);
  left: 0;
  width: var(--phone-w);
  height: var(--phone-h);
  container-type: size;
  padding: 12px;
  /* screen radius = frame radius minus bezel, so the curves stay concentric */
  --frame-radius: calc(var(--phone-w) * 0.136);
  border-radius: var(--frame-radius);
  background: linear-gradient(155deg, #46464a, #19191b 40%, #0c0c0d 70%, #2c2c2f);
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.7),
    0 30px 60px -30px rgba(0, 0, 0, 0.9),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  will-change: transform;
}

.phone-btn {
  position: absolute;
  right: -2.5px;
  width: 2.5px;
  border-radius: 0 2px 2px 0;
  background: #3c3c40;
}

.phone-btn.power {
  top: 26%;
  height: 9%;
}

.phone-btn.vol-up,
.phone-btn.vol-down {
  right: auto;
  left: -2.5px;
  border-radius: 2px 0 0 2px;
}

.phone-btn.vol-up {
  top: 22%;
  height: 6%;
}

.phone-btn.vol-down {
  top: 30%;
  height: 6%;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--frame-radius) - 12px);
  overflow: hidden;
  /* Safari-only effect: identical to the border-radius clip in Chrome, but
     forces Safari to clip the transformed/video children to the rounded
     screen (overflow:hidden + border-radius + transform leaks in Safari). */
  clip-path: inset(0 round calc(var(--frame-radius) - 12px));
  background: #000;
  transform: translateZ(0);
}

/* Letterboxed viewfinder; geometry from the Figma mockup (420x912pt:
   viewfinder 414x555 at y149, i.e. 16.3% to 77.2%) */
.viewfinder {
  position: absolute;
  top: 17.3%;
  bottom: 21.6%;
  left: 0.8%;
  right: 0.8%;
  border-radius: 5.5cqw;
  overflow: hidden;
  background: #141210;
  transition: top 0.65s cubic-bezier(0.33, 1, 0.45, 1), border-radius 0.65s ease;
}

/* Video mode: feed grows to the full top of the screen (Figma node 242-235) */
.phone-screen.video .viewfinder {
  top: 0;
  border-top-left-radius: calc(var(--frame-radius) - 12px);
  border-top-right-radius: calc(var(--frame-radius) - 12px);
}

.viewfinder video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.island {
  position: absolute;
  top: 3.2cqw;
  left: 50%;
  transform: translateX(-50%);
  width: 28cqw;
  height: 8.2cqw;
  background: #000;
  border-radius: 999px;
  z-index: 7;
}

/* Status bar on the hero phone (time + island + battery) */
.phone-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4.4cqw 6cqw 0;
  color: #fff;
}

.phone-status .mini-time {
  font-size: 3.4cqw;
}

.phone-status .mini-icons {
  gap: 1cqw;
}

.phone-status .mini-icons svg {
  height: 2.7cqw;
}

/* Camera UI overlay (button = 56pt on the 420pt mockup -> 12.6cqw) */
.cam-top {
  position: absolute;
  top: 8%;
  left: 4.5%;
  right: 4.5%;
  z-index: 5;
  display: flex;
  justify-content: space-between;
}

.cam-btn {
  width: 12.6cqw;
  height: 12.6cqw;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(38, 36, 34, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
}

.cam-btn svg {
  width: 5.6cqw;
  height: 5.6cqw;
}

.cam-btn.small {
  position: absolute;
  bottom: 2.9%;
  background: rgba(45, 38, 30, 0.5);
}

.cam-btn.flip {
  left: 4cqw;
}

.cam-btn.rec {
  right: 4cqw;
}

.cam-top-right {
  display: flex;
  gap: 2.2cqw;
}

/* Simulated fingertip tap on the photo/video switcher */
.tap-dot {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  opacity: 0;
  pointer-events: none;
}

.res-btn {
  font-size: 3.3cqw;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phone-screen.video .res-btn {
  opacity: 1;
  transform: scale(1);
}

.cam-btn.rec .icon-photo {
  display: none;
}

.phone-screen.video .cam-btn.rec .icon-video {
  display: none;
}

.phone-screen.video .cam-btn.rec .icon-photo {
  display: block;
}

.focus-box {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 22cqw;
  height: 22cqw;
  margin: -11cqw 0 0 -11cqw;
  border: 2px solid var(--yellow);
  border-radius: 5cqw;
  z-index: 4;
  opacity: 0;
}

.focus-box::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.4cqw;
  height: 3.4cqw;
  margin: -1.7cqw 0 0 -1.7cqw;
  border: 1.5px solid var(--yellow);
  border-radius: 50%;
}

.cam-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  z-index: 6;
  pointer-events: none;
}

.fly-shot {
  position: absolute;
  z-index: 6;
  width: 110px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
}

.fly-play {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
}

.fly-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 56%;
  transform: translate(-50%, -50%);
  border-left: 2.4cqw solid #fff;
  border-top: 1.5cqw solid transparent;
  border-bottom: 1.5cqw solid transparent;
}

.fly-shot.is-video .fly-play {
  display: block;
}

/* 80pt circle in a 96pt ring, center at 71.4% (Figma Frame 64) */
.shutter {
  position: absolute;
  bottom: 23.1%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 18.2cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.shutter-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  transition: background 0.3s ease, transform 0.35s ease, border-radius 0.35s ease;
}

.phone-screen.video .shutter-core {
  background: #ff453a;
}

.phone-screen.video .shutter-core.rec-on {
  transform: scale(0.5);
  border-radius: 26%;
  animation: rec-pulse 1.3s ease-in-out infinite;
}

@keyframes rec-pulse {
  50% {
    opacity: 0.7;
  }
}

.shutter::after {
  content: "";
  position: absolute;
  inset: -1.9cqw;
  border: 0.8cqw solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
}

/* 6 chips at 75pt pitch from x=25; the 6th clips off the right edge
   (Figma node 242-125 shows ~5.5 visible) */
.stack-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 79.7%;
  z-index: 4;
  display: flex;
  justify-content: flex-start;
  padding-left: 5.3cqw;
  gap: 4cqw;
}

.filmstrip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10.3%;
  z-index: 4;
  display: flex;
  gap: 1px;
  background: #000;
}

.filmstrip img {
  flex: 0 0 17cqw;
  min-width: 0;
  height: 100%;
  object-fit: cover;
}

/* 55pt thumbs with ~13pt labels (Figma Frame 50) */
.stack-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.6cqw;
  padding: 2px;
  border-radius: calc(2.2cqw + 2px);
}

.stack-chip img {
  width: 12.5cqw;
  height: 12.5cqw;
  border-radius: 2.2cqw;
  object-fit: cover;
}

.stack-chip span {
  font-size: 3cqw;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
}

.stack-chip.active {
  background: #fff;
}

.stack-chip.active span {
  color: #000;
}

.sorted-pop {
  position: absolute;
  z-index: 7;
  font-family: var(--font-hand);
  font-size: 5.4cqw;
  font-weight: 700;
  color: var(--yellow);
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ---------- Section scaffolding ---------- */
section {
  position: relative;
}

.section-pad {
  padding: clamp(90px, 12vw, 150px) 0;
}

.kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 18ch;
}

.section-title .hand {
  font-size: 1.12em;
}

/* ---------- Marquee ---------- */
.marquee-section {
  padding: clamp(80px, 10vw, 130px) 0 0;
}

.marquee-head {
  text-align: center;
  margin-bottom: clamp(44px, 6vw, 72px);
  padding-inline: 24px;
}

.marquee-head .section-title {
  margin-inline: auto;
}

.marquee-head p {
  color: var(--muted);
  max-width: 52ch;
  margin: 18px auto 0;
}

.marquee {
  overflow: hidden;
  /* Opaque window = the centered content band; cards fade at the band edges.
     On screens <= --content-max, --m-side is 0 so it fades near the screen
     edges as before; on larger screens the fade tracks the 1600px band. */
  --m-side: max(0px, (100vw - var(--content-max)) / 2);
  --m-fade: clamp(40px, 6vw, 90px);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent var(--m-side),
    #000 calc(var(--m-side) + var(--m-fade)),
    #000 calc(100% - var(--m-side) - var(--m-fade)),
    transparent calc(100% - var(--m-side))
  );
  mask-image: linear-gradient(
    90deg,
    transparent var(--m-side),
    #000 calc(var(--m-side) + var(--m-fade)),
    #000 calc(100% - var(--m-side) - var(--m-fade)),
    transparent calc(100% - var(--m-side))
  );
  padding: 10px 0;
}

.marquee + .marquee {
  margin-top: 18px;
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee.reverse .marquee-track {
  animation-direction: reverse;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.stack-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 12px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  white-space: nowrap;
}

.stack-card img {
  width: 56px;
  height: 56px;
  border-radius: 6.5px;
  object-fit: cover;
}

.stack-card .stack-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.stack-card .stack-count {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- How it works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(44px, 6vw, 72px);
}

.how-step {
  border: 1px solid var(--line);
  background: var(--bg-raised);
  border-radius: var(--radius);
  padding: 34px 30px 38px;
}

.how-step .num {
  font-family: var(--font-hand);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  display: block;
  margin-bottom: 18px;
}

.how-step h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.how-step p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Feature rows ---------- */
.feature-row {
  /* Centered pair, like the hero: phone + text together with symmetric margins. */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(40px, 5vw, 96px);
  padding: clamp(60px, 8vw, 110px) 0;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--line);
}

.feature-row:nth-child(even) .feature-media {
  order: 2;
}

.feature-media {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.feature-text {
  flex: 0 1 460px;
}

.mini-phone {
  /* Fluid like the hero phone: grows on large screens, shrinks on small.
     Radii/padding scale off the width so the frame stays proportional. */
  --mp-w: clamp(248px, 26vw, 400px);
  width: var(--mp-w);
  padding: calc(var(--mp-w) * 0.03);
  border-radius: calc(var(--mp-w) * 0.147);
  background: linear-gradient(155deg, #3c3c40, #161618 45%, #0c0c0d);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.65);
}

.mini-phone .mini-screen {
  position: relative;
  border-radius: calc(var(--mp-w) * 0.117);
  overflow: hidden;
  background: #000;
  aspect-ratio: 630 / 1368;
}

.mini-phone .mini-screen > img {
  width: 100%;
  height: 106%;
  object-fit: cover;
  will-change: transform;
}

/* Drawn iOS status bar over the screens' safe area */
.mini-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 0;
  color: #fff;
}

.mini-time {
  flex: 1 1 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.mini-island {
  width: 26%;
  height: 14px;
  background: #000;
  border-radius: 999px;
}

.mini-icons {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.mini-icons svg {
  height: 10px;
  width: auto;
}

/* ---- Live Albums screen replica (Figma node 244-364) ---- */
.albums-phone {
  container-type: inline-size;
}

.albums-screen {
  position: absolute;
  inset: 0;
  background: #000;
}

.albums-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.albums-track {
  display: flex;
  flex-direction: column;
  gap: 4.5cqw;
  margin-top: 32%;
  animation: albums-scroll 75s linear infinite;
  will-change: transform;
}

@keyframes albums-scroll {
  to {
    transform: translateY(-50%);
  }
}

.albums-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5cqw 3.5cqw;
  padding: 0 4.7cqw;
}

.album-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 4.2cqw;
  overflow: hidden;
  margin: 0;
}

.album-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5cqw 2.6cqw 2.2cqw;
  font-size: 3.1cqw;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.album-tile .count {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.albums-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14.5cqw 4.5cqw 3cqw;
  background: linear-gradient(#000 72%, transparent);
}

.ab-side {
  display: flex;
  width: 27cqw;
}

.ab-side.right {
  justify-content: flex-end;
  gap: 2.2cqw;
}

.ab-title {
  font-size: 4cqw;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.ab-btn {
  width: 12.6cqw;
  height: 12.6cqw;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(38, 36, 34, 0.75);
  color: #fff;
}

.ab-btn svg {
  width: 5.4cqw;
  height: 5.4cqw;
}

.albums-search {
  position: absolute;
  right: 4.5cqw;
  bottom: 4.5%;
  z-index: 2;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: rgba(38, 36, 34, 0.6);
}

/* ---- Live photo-detail / info screen replica ---- */
.info-phone {
  container-type: inline-size;
}

.info-screen {
  position: absolute;
  inset: 0;
  background: #000;
  color: #fff;
}

.info-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.info-track {
  animation: info-scroll 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes info-scroll {
  0%,
  15% {
    transform: translateY(0);
  }

  37%,
  52% {
    transform: translateY(-27%);
  }

  72%,
  84% {
    transform: translateY(-56%);
  }

  100% {
    transform: translateY(calc(-100% + 196cqw));
  }
}

.info-photo {
  display: block;
  width: 100%;
  margin-top: 38cqw;
}

.info-thumbs {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  padding: 3.6cqw 4.7cqw 1cqw;
  margin-bottom: 13cqw;
}

.info-thumbs img {
  width: 11cqw;
  border-radius: 2cqw;
}

.info-thumbs img.active {
  box-shadow: 0 0 0 2px #fff;
}

.info-body {
  padding: 2cqw 4.7cqw 10cqw;
}

.info-body p {
  margin: 0;
}

.info-date {
  font-size: 5.6cqw;
  font-weight: 700;
  margin: 3cqw 0 4.5cqw !important;
}

.info-note {
  font-size: 5cqw;
  color: #8e8e93;
}

.info-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 4.5cqw 0;
}

.info-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 2.5cqw 0;
}

.info-label {
  display: block;
  font-size: 4.2cqw;
  font-weight: 600;
  color: #8e8e93;
  margin: 0 0 2.5cqw !important;
}

.info-link {
  font-size: 4.2cqw;
  color: #0a84ff;
}

.info-textblock {
  background: #161618;
  border-radius: 3.5cqw;
  padding: 3.5cqw 4cqw;
  font-size: 4.4cqw;
  line-height: 1.45;
  margin: 0 0 3cqw !important;
}

.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 2cqw;
}

.info-chips span {
  background: #161618;
  border-radius: 2.5cqw;
  padding: 2.2cqw 3.2cqw;
  font-size: 3.9cqw;
  max-width: 40cqw;
}

.info-map {
  display: block;
  width: 100%;
  border-radius: 3.5cqw;
}

.info-coords {
  font-size: 5cqw;
}

.info-tech {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3.2cqw 6cqw;
  margin: 0;
  font-size: 4.3cqw;
}

.info-tech dt {
  color: #8e8e93;
  font-weight: 600;
}

.info-tech dd {
  margin: 0;
  word-break: break-all;
}

.info-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14.5cqw 4.5cqw 3cqw;
  background: linear-gradient(rgba(0, 0, 0, 0.8) 55%, transparent);
}

.info-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4%;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6.5cqw;
}

.act {
  width: 14cqw;
  height: 14cqw;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(28, 28, 30, 0.85);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.act svg {
  width: 6cqw;
  height: 6cqw;
}

.act.act-info svg {
  width: 8cqw;
  height: 8cqw;
}

.act.act-del {
  background: rgba(255, 69, 58, 0.26);
  color: #ff453a;
}

.feature-text h3 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  max-width: 16ch;
}

.feature-text p {
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 18px;
}

.feature-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-text li {
  position: relative;
  padding-left: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Absolute bullet (not a flex gap) so the text after <b> flows inline and
   doesn't get a stray space inserted before punctuation like a comma. */
.feature-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

.feature-text li b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Privacy band ---------- */
.privacy-band {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(255, 190, 47, 0.07), transparent 70%),
    var(--bg-raised);
  text-align: center;
}

.privacy-band .section-title {
  margin-inline: auto;
}

.privacy-band p {
  color: var(--muted);
  max-width: 56ch;
  margin: 20px auto 36px;
}

.privacy-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.privacy-pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
}

.privacy-band a {
  color: var(--muted);
  font-size: 0.88rem;
  display: inline-block;
  margin-top: 30px;
}

/* ---------- Final CTA ---------- */
.cta-final {
  text-align: center;
  padding: clamp(110px, 14vw, 190px) 0;
  overflow: hidden;
}

.cta-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 30px;
  border-radius: 22.4%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55));
}

.cta-final h2 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 22px;
}

.cta-final h2 .hand {
  font-size: 1.15em;
}

.cta-final p {
  color: var(--muted);
  margin-bottom: 40px;
}


/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.copyright {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Consent banner ---------- */
.consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 460px;
  margin-inline: auto;
  z-index: 70;
  background: rgba(18, 18, 20, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.6);
}

.consent-banner p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.consent-actions {
  display: flex;
  gap: 10px;
}

.consent-actions button {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  background: var(--text);
  color: #0a0a0b;
}

.consent-actions .button-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ---------- Reveal defaults (JS removes) ---------- */
.gsap-ready [data-reveal] {
  opacity: 0;
}

/* Hide the hero copy + phone before first paint (class added by an inline
   head script) so the GSAP intro can't flash visible -> hidden -> animate in.
   The intro reveals them; reduced-motion / no-JS never add the class. */
html.intro-anim [data-hero],
html.intro-anim [data-phone] {
  opacity: 0;
}

/* Short laptop/desktop viewports: tighten the hero so the CTA stays above the fold */
/* Short two-column viewports: tighten hero type so the CTA stays above fold */
@media (min-width: 769px) and (max-height: 820px) {
  .eyebrow {
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    margin-bottom: 18px;
  }

  .lede {
    font-size: 1.02rem;
    margin-bottom: 24px;
  }
}

/* The hand-drawn doodle only has room on roomy desktops; hide it once the
   two-column hero tightens up. */
@media (max-width: 960px) {
  .doodle {
    display: none;
  }
}

/* ---------- Responsive: stack the hero/features for tablets & phones ---------- */
@media (max-width: 768px) {
  .hero {
    min-height: 0;
    padding-top: calc(var(--nav-h) + 40px);
  }

  .hero-inner {
    flex-direction: column;
    gap: 44px;
    text-align: center;
  }

  .hero-copy {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .lede {
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  /* Mobile: headline leads, phone follows below it. */
  .hero-phone-wrap {
    flex: 0 0 auto;
    height: auto;
    display: flex;
    justify-content: center;
  }

  .phone {
    --phone-w: min(92vw, 44svh);
    position: relative;
    top: auto;
    left: auto;
  }

  .doodle {
    display: none;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .feature-row {
    flex-direction: column;
    gap: 44px;
    text-align: center;
  }

  .feature-text {
    flex: 0 1 auto;
  }

  .feature-row:nth-child(even) .feature-media {
    order: 0;
  }

  .feature-text h3,
  .feature-text p {
    margin-inline: auto;
  }

  .feature-text ul {
    align-items: center;
  }

  .feature-text li {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    padding: 7px 14px;
    white-space: nowrap;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .albums-track {
    animation: none;
  }

  .info-track {
    animation: none;
  }

  .gsap-ready [data-reveal] {
    opacity: 1;
  }
}

/* ============================================================
   LAYOUT B — reversible experiment.
   Toggle by adding/removing class="layout-b" on <body>.
   To remove entirely: delete this block + the .nav-eyebrow and
   .hero-lockup elements in index.html.
   Desktop/tablet only (>=769px); mobile keeps the default layout.
   - Eyebrow pill moves into the nav (left); logo + "Get the app" hidden.
   - A Photolog icon + wordmark lockup appears in the hero, above the CTA.
   ============================================================ */
.nav-eyebrow,
.hero-lockup {
  display: none;
}

@media (min-width: 769px) {
  body.layout-b .logo,
  body.layout-b .nav-cta {
    display: none;
  }

  body.layout-b .nav-eyebrow {
    display: inline-flex;
    margin: 0;
    background: rgba(0, 0, 0, 0.3);
  }

  body.layout-b .hero-copy > .eyebrow {
    display: none;
  }

  /* Equal breathing room above and below the lockup. Zero the lede's own
     bottom margin so it doesn't compound (collapse with) the top gap. */
  body.layout-b .hero-copy .lede {
    margin-bottom: 0;
  }

  body.layout-b .hero-lockup {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.5vw, 22px);
    margin: clamp(30px, 3.6vw, 46px) 0;
  }

  body.layout-b .lockup-icon {
    width: clamp(64px, 7.5vw, 104px);
    height: clamp(64px, 7.5vw, 104px);
    border-radius: 22.4%;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 16px 34px rgba(0, 0, 0, 0.5);
  }

  body.layout-b .lockup-word {
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
  }

  /* Match the mockup: supporting note left, App Store badge right. */
  body.layout-b .hero-cta .appstore-badge {
    order: 2;
  }
}

/* ============================================================
   AURORA — ambient animated background (subtle).
   A few large, blurred warm glows that slowly drift behind all
   content, with an optional scroll-parallax added via GSAP.
   Sits at z-index -1 (above the body bg, below content + grain).
   To remove: delete this block and the .aurora element in index.html.
   ============================================================ */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.aurora-blob.a {
  width: 55vw;
  height: 55vw;
  top: -14vw;
  right: -10vw;
  background: radial-gradient(circle, rgba(255, 190, 47, 0.1), transparent 68%);
  animation: aurora-a 26s ease-in-out infinite alternate;
}

.aurora-blob.b {
  width: 50vw;
  height: 50vw;
  bottom: -16vw;
  left: -12vw;
  background: radial-gradient(circle, rgba(255, 132, 38, 0.08), transparent 68%);
  animation: aurora-b 34s ease-in-out infinite alternate;
}

.aurora-blob.c {
  width: 42vw;
  height: 42vw;
  top: 34%;
  left: 42%;
  background: radial-gradient(circle, rgba(110, 140, 210, 0.05), transparent 70%);
  animation: aurora-c 40s ease-in-out infinite alternate;
}

@keyframes aurora-a {
  to {
    transform: translate(-5vw, 4vw) scale(1.12);
  }
}

@keyframes aurora-b {
  to {
    transform: translate(5vw, -4vw) scale(1.1);
  }
}

@keyframes aurora-c {
  to {
    transform: translate(-4vw, -5vw) scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-blob.a,
  .aurora-blob.b,
  .aurora-blob.c {
    animation: none;
  }
}
