/* Home page: app screenshots in device bezels, short copy, and faint clay renders of photography gear. */

/* ============ GEAR: grey clay renders, rendered on black and screened in so they only ever add light ============ */
.gear { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.gear__item { position: absolute; height: auto; mix-blend-mode: screen; opacity: var(--o, 0.1); filter: blur(var(--b, 1px)); transform: rotate(var(--r, 0deg)); }
.gear__item--a { width: clamp(180px, 22vw, 330px); left: -4%; top: 8%; --o: 0.11; --r: -8deg; }
.gear__item--b { width: clamp(200px, 22vw, 330px); right: -3%; top: 10%; --o: 0.09; --r: 9deg; }
.gear__item--c { width: clamp(150px, 17vw, 270px); left: 5%; top: 46%; --o: 0.15; --r: 12deg; --b: 0.5px; }
.gear__item--d { width: clamp(160px, 17vw, 260px); right: 5%; bottom: 20%; --o: 0.07; --r: -18deg; --b: 2px; }
.gear__item--e { width: clamp(140px, 13vw, 210px); left: 30%; top: 2%; --o: 0.05; --r: 24deg; --b: 3px; }
.gear__item--f { width: clamp(200px, 24vw, 360px); left: -5%; bottom: 6%; --o: 0.08; --r: -10deg; --b: 2px; }
.gear__item--g { width: clamp(120px, 12vw, 180px); right: 6%; top: 12%; --o: 0.07; --r: 16deg; --b: 2px; }
@media (max-width: 760px) {
  .gear__item--c, .gear__item--d, .gear__item--e { display: none; }
  .gear__item--a { left: -18%; top: 4%; }
  .gear__item--b { right: -22%; top: 26%; }
}

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; padding-top: calc(var(--header) + clamp(20px, min(7vw, 6svh), 96px)); isolation: isolate;
  /* A soft pool of light where the devices stand, fading back to the page colour before the section ends */
  background: radial-gradient(60% 32% at 50% 70%, #17181c 0%, rgba(23, 24, 28, 0) 100%), var(--ink); }
.hero__copy { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__copy .t-hero { margin-top: min(22px, 2svh); max-width: 12em; font-size: clamp(42px, min(6.4vw, 9.5svh), 108px); }
/* On short screens the copy tightens, so the devices under it keep their size. */
@media (max-height: 820px) and (min-width: 761px) {
  .hero__copy .t-lede { margin-top: 12px; }
  .hero__ctas { margin-top: 18px; gap: 8px; }
}
.hero__copy .t-lede { margin-top: 20px; }
.hero__chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--accent); color: var(--ink); font-family: var(--font-body); font-size: 12px; font-weight: 700; }
.hero__ctas { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 30px; }
.hero__note { font-size: 13px; color: var(--fg-4); }

/* ============ 3D STAGE ============
   One unit (--u) scales the whole composition: 1px up to a 1240px-wide stage, smaller on narrow screens, and small
   enough that the iPhone fits in the first screen (--hero-room, the height left under the copy, set by parallax.js).
   Each device keeps its real relative size (iPad 289 mm, iPhone 166 mm, Duo folded 121 mm tall). */
.stage3d { position: relative; z-index: 1; --u: min(1px, calc((100vw - 32px) / 1240), calc((var(--hero-room, 100svh) - 24px) / 690)); height: calc(770 * var(--u)); margin: clamp(12px, 2vw, 28px) auto clamp(40px, 6vw, 100px); }
.stage3d__inner { position: absolute; left: 50%; top: 0; width: calc(1240 * var(--u)); height: 100%; translate: -50% 0; perspective: calc(1500 * var(--u)); perspective-origin: 50% 30%; }
.float { position: absolute; }
/* No filters, scaling or forward translateZ on the devices, and the iPhone has no 3D transform at all: the browser
   draws a tilted image as a resampled texture, which softens small UI text. The shadow is a separate soft layer. */
.float img { position: relative; display: block; width: 100%; height: auto; }
.float::before { content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; bottom: -2%; height: 8%; border-radius: 50%; background: rgba(0, 0, 0, 0.55); filter: blur(calc(24 * var(--u))); }
/* The iPhone straight, centred and in front, its bottom near the iPad's lower right corner; the Duo on the right. */
.float--iphone { left: calc(490 * var(--u)); top: calc(150 * var(--u)); width: calc(260 * var(--u)); z-index: 2; }
.float--ipad { left: calc(150 * var(--u)); top: 0; width: calc(528 * var(--u)); transform: rotateY(24deg) rotateX(9deg) rotateZ(-6deg); }
.float--duo { left: calc(690 * var(--u)); top: calc(250 * var(--u)); width: calc(544 * var(--u)); transform: rotateY(-26deg) rotateX(12deg) rotateZ(3deg); }

/* ============ FEATURES ============ */
.feature { position: relative; padding: clamp(80px, 10vw, 150px) 0; }
.feature + .feature { padding-top: 0; }
.feature__head { text-align: center; max-width: 760px; margin: 0 auto; }
.feature__head .t-lede { margin: 18px auto 0; }
.feature__head .t-eyebrow + .t-h2 { margin-top: 18px; }

/* Rows of devices; on phones they scroll sideways like a carousel */
.row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 2.4vw, 36px); margin: clamp(40px, 5vw, 72px) auto 0; padding: 0 var(--gutter); max-width: calc(var(--shell) + var(--gutter) * 2); }
.row li { flex: 0 1 250px; text-align: center; }
.row img { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.5)); }
.row__cap { margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--fg-2); }
.row--small li { flex-basis: 220px; }
.row--duo { align-items: center; }
.row--duo li:nth-child(1) { flex-basis: 250px; }
.row--duo li:nth-child(2) { flex-basis: 500px; }
.row--duo li:nth-child(3) { flex-basis: 460px; }
@media (max-width: 760px) {
  .row { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
  .row::-webkit-scrollbar { display: none; }
  .row li { flex: 0 0 62vw; scroll-snap-align: center; }
  .row--small li { flex-basis: 54vw; }
  .row--duo li:nth-child(1) { flex-basis: 50vw; }
  .row--duo li:nth-child(2) { flex-basis: 86vw; }
  .row--duo li:nth-child(3) { flex-basis: 80vw; }
}

/* Copy on one side, two overlapping phones on the other */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 40px clamp(32px, 6vw, 96px); }
.split__copy { text-align: left; margin: 0; }
.split__copy .t-lede { margin-left: 0; }
.feature--flip .split__copy { order: 2; }
.split__devices { display: flex; justify-content: center; }
.split__phone { width: min(300px, 60%); height: auto; transform: rotate(3deg); filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.55)); }
.pair { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.pair img { width: min(280px, 44%); height: auto; filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.55)); }
.pair__back { transform: translateY(-36px) rotate(-3deg); margin-right: -6%; opacity: 0.92; }
.pair__front { position: relative; transform: rotate(2deg); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__copy, .feature--flip .split__copy { order: 0; text-align: center; margin: 0 auto; }
  .split__copy .t-lede { margin-left: auto; }
  .pair img { width: 46%; }
}

/* Two features side by side */
.duet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(32px, 6vw, 96px); }
.duet__item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.duet__item img { width: min(300px, 70%); height: auto; filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.5)); margin-bottom: 32px; }
.duet__item .t-body { margin-top: 10px; }
@media (max-width: 760px) { .duet { grid-template-columns: 1fr; } }

/* ============ WHY ============ */
.why { padding: clamp(80px, 10vw, 140px) 0; }
.why__inner { text-align: center; }
.why__title { font-size: clamp(34px, 4vw, 64px); max-width: 13em; margin: 0 auto; }
.why__quote { margin: 28px auto 0; max-width: 36em; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.why__by { margin-top: 24px; font-size: 14px; color: var(--fg-3); }
.why__by span { color: #fff; font-weight: 600; }

/* ============ GET ============ */
.get { position: relative; overflow: hidden; padding: clamp(100px, 13vw, 180px) 0; text-align: center; isolation: isolate; }
.get__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.get__inner .t-lede { margin-top: 18px; }
.get .badge-store { margin-top: 36px; }
.get__faq { margin-top: 24px; font-size: 15px; color: var(--fg-3); text-wrap: balance; }
.get__faq a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ============ iPHONE DUO · poses in sequence: each pose holds, then cross-fades to the next ============ */
.poses { margin-top: clamp(40px, 5vw, 72px); }
.poses__stage { position: relative; height: clamp(300px, 40vw, 520px); }
.poses__img { position: absolute; left: 50%; bottom: 0; height: 92%; width: auto; translate: -50% 0; opacity: 0; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); animation: pose 14s var(--ease-io) infinite; }
.poses__img--2, .poses__label--2 { animation-delay: 3.5s; }
.poses__img--3, .poses__label--3 { animation-delay: 7s; }
.poses__img--4, .poses__label--4 { animation-delay: 10.5s; }
@keyframes pose { 0% { opacity: 0; scale: 0.97; } 4.5%, 22.5% { opacity: 1; scale: 1; } 27%, 100% { opacity: 0; scale: 1.02; } }
.poses__labels { display: flex; justify-content: center; gap: 28px; margin-top: 28px; font-size: 15px; font-weight: 600; }
.poses__labels span { color: var(--fg-4); animation: pose-label 14s linear infinite; }
@keyframes pose-label { 0%, 25% { color: #fff; } 25.1%, 100% { color: var(--fg-4); } }
@media (max-width: 760px) { .poses__stage { height: 62vw; } .poses__img { max-width: 92vw; height: auto; max-height: 92%; } }
/* Reduced motion: the three poses side by side, no sequence */
@media (prefers-reduced-motion: reduce) {
  .poses__stage { display: flex; justify-content: center; align-items: flex-end; gap: 24px; height: auto; }
  .poses__img { position: static; translate: none; opacity: 1; animation: none; height: auto; width: 23%; }
  .poses__labels { display: none; }
}

/* ============ THE TOOLS · cropped screenshots and simulator recordings on an uneven board ============ */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 72px);
  grid-template-areas:
    "meter meter meter meter meter meter formats formats formats formats formats formats"
    "wb wb wb wb wb wb bracket bracket bracket bracket bracket bracket"
    "levels levels levels levels levels levels locked locked locked locked locked locked"
    "peaking peaking peaking peaking peaking peaking export export export export export export"
    "info info info info info info author author author author author author"; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; margin: 0; padding: 22px; border-radius: 28px; background: #000; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tile img, .tile video { display: block; width: 100%; height: auto; border-radius: 16px; }
.tile video { height: auto; background: #000; }
.tile figcaption h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.tile figcaption p { margin-top: 4px; font-size: 15px; color: var(--fg-3); }
.tile--meter { grid-area: meter; } .tile--formats { grid-area: formats; justify-content: center; } .tile--wb { grid-area: wb; }
.tile--levels { grid-area: levels; justify-content: center; }
.levels { display: grid; gap: 6px; }
.levels__name { font-size: 13px; font-weight: 600; color: var(--fg-3); }
.levels { container-type: inline-size; }
.levels .chips + .levels__name { margin-top: 14px; }
/* The camera's manual control chips, drawn from the app's own sizes in points (CameraChromeMetrics: 54 pt
   chips, 8 pt apart, 13 pt icons, 12 pt Chivo Mono values at white 60%). Static, never interactive. */
.chips { --pt: min(100cqw / 330, 2.6px); display: flex; justify-content: center; align-items: center; gap: calc(8 * var(--pt)); padding: calc(10 * var(--pt)) 0; background: #000; border-radius: 16px; pointer-events: none; user-select: none; }
.chip, .chip-pair { flex: none; height: calc(54 * var(--pt)); }
.chip { position: relative; width: calc(54 * var(--pt)); }
.chip--glass, .chip-pair { border-radius: 999px; background: #1c1c1c;
  box-shadow: inset 0 calc(1.1 * var(--pt)) calc(0.9 * var(--pt)) calc(-0.3 * var(--pt)) rgba(255,255,255,.26),
              inset 0 calc(-1.1 * var(--pt)) calc(0.9 * var(--pt)) calc(-0.3 * var(--pt)) rgba(255,255,255,.26),
              inset 0 0 0 calc(0.4 * var(--pt)) rgba(255,255,255,.025); }
.chip-pair { display: flex; align-items: center; }
.chip-pair__divider { width: calc(1.5 * var(--pt)); align-self: stretch; margin: calc(8 * var(--pt)) 0; border-radius: 99px; background: rgba(255,255,255,.12); }
.chips img { display: block; border-radius: 0; max-width: none; }
.chips .chip__icon { position: absolute; left: 50%; top: calc(16.5 * var(--pt)); width: auto; height: calc(12.5 * var(--pt)); transform: translate(-50%, -50%); }
.chips .chip__icon--iso { height: calc(13 * var(--pt)); border-radius: 50%; }
.chips .chip__icon--shutter { width: calc(13 * var(--pt)); height: auto; }
.chip__value { position: absolute; left: 0; right: 0; top: calc(37.5 * var(--pt)); transform: translateY(-50%); display: flex; justify-content: center; align-items: center; gap: calc(2 * var(--pt));
  font-family: "Chivo Mono", ui-monospace, monospace; font-weight: 600; font-size: calc(12 * var(--pt)); line-height: 1; color: rgba(255,255,255,.6); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chips .chip__sign { width: calc(6 * var(--pt)); height: calc(6 * var(--pt)); opacity: .6; }
.chips .chip__times { width: calc(5 * var(--pt)); height: calc(5 * var(--pt)); opacity: .6; }
/* Shutter: "1/" at 8 pt raised 3 pt, and the whole value shrunk to fit as the app's minimumScaleFactor does. */
.chip__value--shutter { align-items: baseline; gap: 0; font-size: calc(11.4 * var(--pt)); letter-spacing: calc(-0.35 * var(--pt)); }
.chip__numerator { font-size: calc(7.6 * var(--pt)); position: relative; top: calc(-2.9 * var(--pt)); }
 .tile--bracket { grid-area: bracket; } .tile--peaking { grid-area: peaking; }
.tile--locked { grid-area: locked; } .tile--info { grid-area: info; justify-content: center; }
.tile--author { grid-area: author; justify-content: center; } .tile--export { grid-area: export; }
.tile--formats img { border-radius: 0; }
.tile--bracket { justify-content: center; } .tile--locked { justify-content: center; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "meter meter" "formats formats" "wb wb" "bracket bracket" "levels levels" "locked locked" "peaking export" "info author"; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "meter" "formats" "wb" "bracket" "levels" "locked" "peaking" "info" "author" "export"; }
}
