/* Clap: a film production office. Paper and ink, the black slate as the hero, LED red for the accents. */
:root {
  --paper: #f4efe6;
  --paper-deep: #ebe3d5;
  --card: #fbf8f2;
  --ink: #16130f;
  --ink-2: rgba(22, 19, 15, 0.7);
  --ink-3: rgba(22, 19, 15, 0.48);
  --line: rgba(22, 19, 15, 0.12);
  --led: #c42d23;
  --chalk: #f7f5f0;
  --slate: #0e0e0f;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
  --shadow: 0 34px 70px -28px rgba(54, 40, 22, 0.45), 0 10px 24px -14px rgba(54, 40, 22, 0.3);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration-color: rgba(196, 45, 35, 0.5); text-underline-offset: 3px; }
a:hover { color: var(--led); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

h1 em, h2 em { color: var(--led); font-style: italic; }

/* The bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px var(--gutter);
  background: rgba(244, 239, 230, 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 400 24px/1 var(--serif);
  letter-spacing: -0.01em;
}

.brand img { border-radius: 8px; }

.bar nav { display: flex; gap: 26px; margin-left: auto; }

.bar nav a, .bar-cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
}

.bar nav a:hover { color: var(--ink); }

.bar-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--chalk);
}

.bar-cta:hover { color: var(--chalk); background: #000; }

/* The hero: the film plays behind the headline. Its left side is empty paper, made for this copy. */

.hero {
  position: relative;
  min-height: min(calc(100svh - 64px), 1000px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
}

.hero-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero-copy {
  position: relative;
  max-width: 600px;
  margin: 0 0 0 clamp(20px, 7.4vw, 150px);
  padding: 48px 0 64px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.pill span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--led);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 { font-size: clamp(50px, 6.6vw, 104px); }

.lede {
  max-width: 470px;
  margin: 26px 0 0;
  color: var(--ink-2);
  font-size: 18px;
}

.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.btn-ink { background: var(--ink); color: var(--chalk); }
.btn-ink:hover { background: #000; color: var(--chalk); }
.btn-line { border: 1px solid rgba(22, 19, 15, 0.28); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }

/* Chapters */

.chapter { padding: clamp(80px, 11vw, 150px) var(--gutter); }

.chapter-band { background: var(--paper-deep); }

.chapter-head { max-width: 760px; }

.num {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--led);
}

.num span {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.chapter h2 { font-size: clamp(40px, 5.2vw, 76px); }

.intro { max-width: 600px; margin: 24px 0 0; color: var(--ink-2); font-size: 19px; }

.intro a { font-weight: 600; }

/* iPhone Duo: three poses */

.poses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(56px, 7vw, 96px);
  align-items: end;
}

.pose h3 { font-size: 30px; margin-top: 8px; }
.pose p { margin: 10px 0 0; color: var(--ink-2); }

.step {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 34px 0 0 !important;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 400 16px/1 var(--serif);
  color: var(--led) !important;
}

.stage {
  display: grid;
  place-items: center;
  min-height: 420px;
  margin: 0;
  padding: 24px;
  border-radius: 28px;
  background: radial-gradient(120% 90% at 50% 40%, var(--card), var(--paper-deep));
}

.chapter-band .stage { background: radial-gradient(120% 90% at 50% 40%, var(--card), var(--paper)); }

.device {
  padding: 9px;
  border-radius: 30px;
  background: var(--slate);
  box-shadow: var(--shadow);
}

.device img { border-radius: 22px; width: 100%; height: auto; }

.device-cover { width: min(100%, 340px); padding: 10px; border-radius: 34px; background: #252527; }
.device-flat { width: 100%; }
.device-phone { width: min(100%, 300px); padding: 10px; border-radius: 46px; }
.device-phone img { border-radius: 37px; }

/* The half-open Duo: the screen in two halves, the top tipped back on the hinge. */
.duo-open {
  width: min(78%, 250px);
  aspect-ratio: 704 / 1000;
  perspective: 900px;
  filter: drop-shadow(0 30px 34px rgba(54, 40, 22, 0.32));
}

.half {
  position: relative;
  height: 50%;
  overflow: hidden;
  background: var(--slate);
  border: 8px solid var(--slate);
}

.half img { position: absolute; left: 0; width: 100%; height: 200%; object-fit: cover; }

.half-top {
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  transform-origin: 50% 100%;
  transform: rotateX(24deg);
  animation: breathe 6s ease-in-out infinite;
}

.half-top img { top: 0; }

.half-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.22));
}

.half-bottom { border-top: 0; border-radius: 0 0 26px 26px; }
.half-bottom img { bottom: 0; }

@keyframes breathe {
  0%, 100% { transform: rotateX(24deg); }
  50% { transform: rotateX(30deg); }
}

.ticks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: clamp(56px, 7vw, 88px) 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink-2);
  font-size: 16px;
}

.ticks strong { color: var(--ink); font-weight: 600; }

/* Sync */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* A strip of film with one white frame: the flash. */
.strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 26px 10px;
  border-radius: 10px;
  /* Sprocket holes along both edges. */
  background:
    radial-gradient(circle, rgba(244, 239, 230, 0.85) 2.6px, transparent 3.1px) 0 4px / 18px 12px repeat-x,
    radial-gradient(circle, rgba(244, 239, 230, 0.85) 2.6px, transparent 3.1px) 0 calc(100% - 4px) / 18px 12px repeat-x,
    #19161a;
  box-shadow: var(--shadow);
}

.strip span {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  background: linear-gradient(160deg, #2b2a2c, #18171a);
}

.strip .sync { background: #fffdf8; box-shadow: 0 0 34px rgba(255, 252, 240, 0.65); }

.strip .sync b {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 34px);
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--led);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: clamp(56px, 7vw, 96px) 0 0;
  border-top: 1px solid var(--line);
}

.specs div { padding: 26px 28px 26px 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 400 24px/1.2 var(--serif); }
.specs dd { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }

/* Shot log */

.split-report { grid-template-columns: 1fr 0.9fr; }

.steps { margin: 34px 0 0; padding: 0; list-style: none; counter-reset: step; }

.steps li {
  position: relative;
  padding: 18px 0 18px 52px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 400 16px/1 var(--serif);
  color: var(--led);
}

.steps strong { color: var(--ink); font-weight: 600; }

.sheet { margin: 0; justify-self: center; max-width: 520px; }

.sheet img {
  width: 100%;
  height: auto;
  background: #fff;
  transform: rotate(-2deg);
  box-shadow: var(--shadow);
}

.sheet figcaption {
  margin-top: 26px;
  text-align: center;
  font: italic 400 16px/1.4 var(--serif);
  color: var(--ink-3);
}

/* Any iPhone */

.stage-phone { min-height: 0; padding: 48px 24px; }

/* Left off the slate */

.ledger { margin: clamp(48px, 6vw, 80px) 0 0; border-top: 1px solid var(--line); }

.ledger div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.ledger dt { font: 400 clamp(28px, 3.4vw, 44px)/1.1 var(--serif); }
.ledger dd { margin: 0; color: var(--ink-2); font-size: 18px; }

/* Support */

.faq { max-width: 860px; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  cursor: pointer;
  list-style: none;
  font: 400 22px/1.3 var(--serif);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font: 300 28px/1 var(--sans);
  color: var(--led);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p { margin: 0 0 24px; max-width: 720px; color: var(--ink-2); }

/* Get the app */

.get { position: relative; padding: clamp(90px, 12vw, 160px) var(--gutter) 0; text-align: center; }

.get-inner { max-width: 640px; margin: 0 auto; padding-bottom: clamp(80px, 10vw, 130px); }

.get-inner img { margin: 0 auto 30px; border-radius: 22px; box-shadow: var(--shadow); }

.get h2 { font-size: clamp(44px, 5.6vw, 80px); }

.get p { margin: 22px auto 0; color: var(--ink-2); font-size: 19px; }

.get .small { font-size: 15px; }

/* The clapper's sticks, along the bottom of the page. */
.sticks {
  height: 34px;
  margin: 0 calc(-1 * var(--gutter));
  background: repeating-linear-gradient(-55deg, var(--ink) 0 26px, var(--chalk) 26px 52px);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px var(--gutter) 34px;
  color: var(--ink-3);
  font-size: 14px;
}

.foot a { color: var(--ink-2); }

/* Things come in as you reach them. Without script, or with reduced motion, they're simply there. */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .half-top { animation: none; }
}

/* Unless the window is wide, the film sits under the headline instead of behind it, so the two never overlap. */
@media (max-width: 1100px), (max-aspect-ratio: 145/100) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { order: 1; max-width: 680px; margin: 0; padding: 44px var(--gutter) 0; }
  .hero-film { position: relative; order: 2; height: auto; aspect-ratio: 16 / 10; max-height: 72svh; object-position: 100% 50%; }
}

@media (max-width: 600px) {
  .hero-film { aspect-ratio: 1 / 1; object-position: 96% 50%; }
}

/* Narrow screens. */
@media (max-width: 900px) {
  .bar nav { display: none; }
  .bar-cta { margin-left: auto; }
  .poses, .ticks, .specs { grid-template-columns: 1fr; }
  .split, .split-report { grid-template-columns: 1fr; }
  .stage { min-height: 360px; }
  .ledger div { grid-template-columns: 1fr; gap: 4px; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .pose h3 { font-size: 25px; }
  .stage { min-height: 340px; padding: 18px; }
  .specs { grid-template-columns: 1fr 1fr; }
}

/* The privacy policy: one readable column. */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) 24px clamp(64px, 8vw, 110px); }
.doc h1 { font-size: clamp(44px, 6vw, 72px); }
.doc h2 { margin: 48px 0 10px; font-size: 28px; }
.doc p { color: var(--ink-2); }
.doc .callout {
  margin: 36px 0 0;
  padding: 22px 26px;
  border-left: 3px solid var(--led);
  border-radius: 4px 14px 14px 4px;
  background: var(--card);
  color: var(--ink);
  font: 400 21px/1.45 var(--serif);
}
.sticks-flush { margin: 0; }
