@font-face {
  font-family: "Allo";
  src: url("fonts/AlloVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* A camera's back, black; cream ink; the amber of a film's edge printing (the app's onboarding). */
:root {
  --gate: #0e0c0a;
  --raised: #181512;
  --ink: #f3ede3;
  --soft: #a89e90;
  --faint: rgba(243, 237, 227, 0.12);
  --amber: #e6b56a;
  --scene: #e9b98a;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Allo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--gate);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}

/* A breath of grain over everything. */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--amber); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(42px, 5.4vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0; }

.edge {
  font: 600 11px/1.4 var(--mono);
  letter-spacing: 0.22em;
  color: var(--amber);
  margin-bottom: 18px;
}

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--gate); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ———————————————————————————————— The bar */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 14px;
  background: linear-gradient(rgba(14, 12, 10, 0.72), rgba(14, 12, 10, 0));
  transition: background-color 0.4s;
}
/* Past the story, over the page's own words: a bar of its own. */
.past .bar {
  background: rgba(14, 12, 10, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--faint);
}
.brand {
  font: 650 19px/1 var(--sans);
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(230, 181, 106, 0.6);
}
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { color: var(--ink); opacity: 0.75; text-decoration: none; font-size: 15px; }
.bar nav a:hover { opacity: 1; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gate);
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.store::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v9m0 0L4.5 6.5M8 10l3.5-3.5M2 14h12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v9m0 0L4.5 6.5M8 10l3.5-3.5M2 14h12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 50px rgba(0, 0, 0, 0.45); }
.store.small { padding: 9px 16px; font-size: 14px; box-shadow: none; }
.store.small::before { width: 13px; height: 13px; }
@media (max-width: 640px) { .bar nav { display: none; } .store.small { margin-left: auto; } }

/* ———————————————————————————————— The story: the world, the phone, the day */

.story { position: relative; }
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  touch-action: pan-y;
}
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 70% 50%, transparent 30%, rgba(14, 12, 10, 0.55) 100%),
    linear-gradient(90deg, rgba(14, 12, 10, 0.78), rgba(14, 12, 10, 0.1) 52%, transparent);
}

/* The phone: FilmCap's real camera screen (img/ui, matted from the app) at its own 420 × 912 points,
   in an iPhone Air frame (img/ui/air.svg), scaled whole (--s). The picture under the screen is the
   world's canvas behind it; everything that moves is drawn live over it. */
.device {
  position: absolute;
  left: 70%;
  top: 50%;
  width: 458.53px;
  height: 943.14px;
  transform: translate(-50%, -50%) scale(var(--s, 0.7));
  z-index: 3;
  filter: drop-shadow(0 50px 60px rgba(0, 0, 0, 0.55));
}
.device .frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.device .screen {
  position: absolute;
  left: 19.27px;
  top: 15.55px;
  width: 420px;
  height: 912px;
  clip-path: path("M0.00,101.36 C0.03,96.55 -0.58,82.05 0.21,72.51 C1.00,62.98 1.50,52.92 4.76,44.14 C8.03,35.35 13.23,26.35 19.79,19.79 C26.35,13.23 35.35,8.03 44.14,4.76 C52.92,1.50 62.98,1.00 72.51,0.21 C82.05,-0.58 96.55,0.03 101.36,0.00 L318.64,0.00 C323.45,0.03 337.95,-0.58 347.49,0.21 C357.02,1.00 367.08,1.50 375.86,4.76 C384.65,8.03 393.65,13.23 400.21,19.79 C406.77,26.35 411.97,35.35 415.24,44.14 C418.50,52.92 419.00,62.98 419.79,72.51 C420.58,82.05 419.97,96.55 420.00,101.36 L420.00,810.68 C419.97,815.49 420.58,829.99 419.79,839.53 C419.00,849.07 418.50,859.12 415.24,867.91 C411.97,876.69 406.77,885.69 400.21,892.25 C393.65,898.81 384.65,904.02 375.86,907.28 C367.08,910.54 357.02,911.04 347.49,911.83 C337.95,912.63 323.45,912.01 318.64,912.04 L101.36,912.04 C96.55,912.01 82.05,912.63 72.51,911.83 C62.98,911.04 52.92,910.54 44.14,907.28 C35.35,904.02 26.35,898.81 19.79,892.25 C13.23,885.69 8.03,876.69 4.76,867.91 C1.50,859.12 1.00,849.07 0.21,839.53 C-0.58,829.99 0.03,815.49 0.00,810.68 Z");
  font-family: system-ui, -apple-system, "SF Pro Text", sans-serif;
  color: #fff;
}
.device .ui { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.device .island { position: absolute; left: 147.3px; top: 14.43px; width: 125.4px; height: 36.66px; border-radius: 99px; background: #000; z-index: 4; }
.device .screenshot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.viewport { position: absolute; left: 0; width: 420px; z-index: 1; cursor: grab; touch-action: none; outline: none; overflow: hidden; }
.viewport.photo { top: 131px; height: 560px; }
.viewport.video { top: 68px; height: 682.33px; }
.viewport:focus-visible { box-shadow: inset 0 0 0 3px var(--amber); }
.viewport.dragging { cursor: grabbing; }
.fallback, .viewport video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewport video { visibility: hidden; }
.viewport video.plain { visibility: visible; }

/* The grid in thirds, and the level: it turns with the camera, and goes yellow when straight. */
.guides { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.guides > path { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; fill: none; }
.level { transition: color 0.2s; color: rgba(255, 255, 255, 0.85); }
.level path { stroke: currentColor; stroke-width: 1.6; fill: none; }
.level circle { fill: none; stroke: currentColor; stroke-width: 1.4; }
.level.true { color: #ffd23f; }

/* Focus: tapped, a square closes on the point, and the picture pulls into focus. */
.focus {
  position: absolute;
  width: 74px;
  height: 74px;
  margin: -37px 0 0 -37px;
  border: 1.5px solid #ffd23f;
  opacity: 0;
  pointer-events: none;
}
.focus.on { animation: focus 1.3s ease-out forwards; }
@keyframes focus {
  0% { opacity: 1; transform: scale(1.45); }
  22% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}

.filmname {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 600 34px/1 var(--serif);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.filmname.on { opacity: 1; transition-duration: 0.12s; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }

/* The deck's live parts, where the app has them (points measured on the capture). */
.hist { position: absolute; left: 168.67px; top: 820.67px; width: 82.67px; height: 50.33px; z-index: 3; pointer-events: none; }
.pill {
  position: absolute;
  left: 110px;
  top: 770px;
  width: 200px;
  height: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  font: 600 17px/1 system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--scene); transition: background 0.4s; }
.pill .kind { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.pocket { position: absolute; left: 28px; top: 818px; width: 38.33px; height: 25px; z-index: 3; border-radius: 3px; overflow: hidden; }
.pocket img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pocket.got { animation: got 0.6s ease-out; }
@keyframes got { 40% { transform: scale(1.25); } }
.shutter { position: absolute; left: 162.33px; top: 814px; width: 95.67px; height: 62px; z-index: 3; border: 0; border-radius: 16px; background: none; cursor: pointer; }
.shutter:active { background: rgba(255, 255, 255, 0.12); }
.shutter:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.rec { position: absolute; inset: 0; border: 3px solid #ff3b30; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.rec::after {
  content: attr(data-time);
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50%;
  padding: 3px 9px;
  border-radius: 6px;
  background: #ff3b30;
  font: 600 15px/1.2 ui-monospace, "SF Mono", monospace;
}
.rec.on { opacity: 1; }

/* A phone in the page's flow (video, stickers): the frame at --s, the box its scaled size. */
.holder { position: relative; justify-self: center; width: calc(458.53px * var(--s)); height: calc(943.14px * var(--s)); }
.holder .device { left: 0; top: 0; transform: scale(var(--s)); transform-origin: 0 0; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.5)); }

.below {
  position: absolute;
  top: calc(50% + var(--s, 0.7) * 471.6px + 16px);
  left: 70%;
  translate: -50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 92vw;
}
.hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.6s;
  pointer-events: none;
}
.hint {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 12, 10, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--faint);
  color: var(--ink);
  font-size: 12.5px;
}
.hints.quiet { opacity: 0; }
.tilt {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--faint);
  background: rgba(14, 12, 10, 0.6);
  color: var(--ink);
  font: 600 14px/1 var(--sans);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.chapters { position: relative; margin-top: -100vh; margin-top: -100svh; z-index: 4; pointer-events: none; }
.chapter {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 90px clamp(16px, 6vw, 96px);
}
.chapter + .chapter { min-height: 120svh; }
.card { max-width: 540px; pointer-events: auto; }
.card h1 { margin-bottom: 22px; }
.card h2 { margin-bottom: 18px; }
.card p + p { margin-top: 14px; }
.lede { font-size: 19px; color: #e4dccf; }
.aside { color: var(--soft); font-size: 15px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px !important; }
.meta { color: var(--soft); font-size: 14px; }
.next { margin-top: 48px !important; font: 600 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); }

/* Phones: the phone above, the day's words below it. */
@media (max-width: 820px) {
  .device { left: 50%; top: 31%; }
  .below { left: 50%; top: calc(31% + var(--s, 0.4) * 471.6px + 10px); }
  .veil { background: linear-gradient(to bottom, rgba(14, 12, 10, 0.25), transparent 30%, rgba(14, 12, 10, 0.9) 78%); }
  .hint.look { display: none; }
  .next { display: none; }
  .chapter { align-items: flex-end; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .card {
    background: rgba(14, 12, 10, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--faint);
    border-radius: 22px;
    padding: 22px 20px;
  }
  .edge { font-size: 10px; letter-spacing: 0.12em; }
  /* Under the opening card, the hints wait for the day to begin. */
  .at-start .below { opacity: 0; }
  .below { transition: opacity 0.5s; }
  h1 { font-size: 34px; }
  .card h1 { margin-bottom: 12px; }
  .card h2 { font-size: 28px; margin-bottom: 10px; }
  .card { padding: 18px 18px 20px; }
  .lede, .card p:not(.edge) { font-size: 15.5px; line-height: 1.5; }
  .cta { margin-top: 18px !important; }
  .store { padding: 12px 18px; }
  .next { margin-top: 22px !important; }
}

/* ———————————————————————————————— Sections */

section:not(.story) { padding: clamp(72px, 11vw, 150px) clamp(16px, 6vw, 96px); }
.head { max-width: 720px; margin-bottom: 48px; }
.head h2 { margin-bottom: 18px; }
.head p:not(.edge) { color: #ddd4c6; font-size: 18px; }
.note { color: var(--soft); font-size: 13.5px; margin-top: 26px !important; max-width: 720px; }

/* Sprocket holes between the sections, and the edge printing. */
.strip {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 6vw, 96px);
  background:
    radial-gradient(circle at 50% 50%, transparent 0) ,
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(243, 237, 227, 0.09) 14px 26px, transparent 26px 40px) 0 7px / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(243, 237, 227, 0.09) 14px 26px, transparent 26px 40px) 0 31px / 100% 8px no-repeat,
    #15120f;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.24em;
  color: rgba(230, 181, 106, 0.75);
}

.develop { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.develop h2 { margin-bottom: 22px; font-size: clamp(30px, 3.4vw, 48px); }
.develop .copy > p:not(.edge) { color: #ddd4c6; font-size: 18px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.facts li { padding-left: 22px; position: relative; color: #d4cbbd; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
.facts strong { color: var(--ink); font-weight: 650; }
.compare {
  position: relative;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  outline: 12px solid #f1ece2;
  outline-offset: -1px;
  --at: 50%;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--at)) 0 0); }
.compare::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--at);
  width: 2px;
  translate: -1px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.handle { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare figcaption {
  position: absolute;
  inset: auto 14px 12px;
  display: flex;
  justify-content: space-between;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}
.compare figcaption span { background: rgba(0, 0, 0, 0.45); padding: 6px 9px; border-radius: 99px; }
@media (max-width: 900px) { .develop { grid-template-columns: 1fr; } .compare { outline-width: 8px; } }

/* The film wall: one evening through each film. */
.wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 22px 18px;
}
.wall button {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
}
.wall .frame {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: var(--raised);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s;
}
.wall img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall button:hover .frame, .wall button:focus-visible .frame { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55); }
.wall button:focus-visible .frame { outline: 2px solid var(--amber); outline-offset: 3px; }
.wall .kind { margin-top: 14px; font: 600 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.wall .name { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 650; }
.wall .name i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.wall .line1 { color: var(--soft); font-size: 14px; line-height: 1.45; margin-top: 4px; }

/* The darkroom: prints pegged on a line. */
.line {
  position: relative;
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  overflow-x: auto;
  padding: 40px 4px 34px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  outline: none;
}
.line::-webkit-scrollbar { display: none; }
.line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 1px;
  min-width: 100%;
  background: linear-gradient(90deg, transparent, rgba(243, 237, 227, 0.4) 8%, rgba(243, 237, 227, 0.4) 92%, transparent);
}
.print {
  --pw: clamp(200px, 24vw, 300px);
  flex: none;
  align-self: flex-start;
  width: var(--pw);
  margin: 0;
  padding: 12px 12px 14px;
  background: #f2ede3;
  color: #2a2520;
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  scroll-snap-align: start;
  transform-origin: 50% -18px;
  rotate: var(--tilt, 0deg);
  position: relative;
  transition: rotate 0.6s cubic-bezier(.2, .8, .2, 1), translate 0.4s;
}
.print::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  translate: -50%;
  width: 12px;
  height: 30px;
  border-radius: 3px;
  background: linear-gradient(90deg, #b88f5e, #d9b382 45%, #a77c4b);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.print img { width: 100%; height: calc((var(--pw) - 24px) * 4 / 3); object-fit: cover; display: block; background: #222; }
.print figcaption { margin-top: 10px; font: 500 15px/1.3 var(--serif); }
.print figcaption small { display: block; font: 600 9.5px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #8a7f72; margin-top: 3px; }
.print:hover { rotate: 0deg; translate: 0 -4px; }
.print.yours { background: #fbf8f1; }
.print.fresh { animation: develop 2.4s ease-out both; }
@keyframes develop { from { filter: brightness(2.2) sepia(0.6) blur(2px); opacity: 0.2; } to { filter: none; opacity: 1; } }

/* Video, stickers, widgets. */
.pair-sections { display: grid; gap: clamp(80px, 12vw, 160px); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 110px); align-items: center; }
.feature.flip > :first-child { order: 2; }
.feature h2 { margin-bottom: 18px; }
.feature p:not(.edge) { color: #ddd4c6; font-size: 18px; max-width: 520px; }

/* The widgets as cards on the table: overlapping, turned a little, each lifting to the hand. */
.cards { position: relative; width: 100%; max-width: 680px; aspect-ratio: 680 / 600; justify-self: center; }
.wcard {
  position: absolute;
  height: auto;
  border-radius: 6%/12%;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  rotate: var(--r);
  transition: rotate 0.5s cubic-bezier(.2, .8, .2, 1), translate 0.5s cubic-bezier(.2, .8, .2, 1), box-shadow 0.5s;
}
.wcard:hover { rotate: 0deg; translate: 0 -10px; z-index: 9; box-shadow: 0 34px 70px rgba(0, 0, 0, 0.6); }
/* A composition on a 680 × 600 table, in its own proportions. */
.c1 { left: 0; top: 14%; width: 43%; --r: -5deg; border-radius: 9.5%; }
.c2 { left: 35%; top: 2%; width: 52%; --r: 3deg; z-index: 2; border-radius: 7.5%/16%; }
.c3 { left: 37%; top: 52%; width: 50%; --r: -2deg; z-index: 3; border-radius: 7.5%/16%; }
.c4 { left: 76%; top: 28%; width: 23%; --r: 7deg; z-index: 4; border-radius: 16%; }
.c5 { left: 18%; top: 68%; width: 23%; --r: -8deg; z-index: 4; border-radius: 16%; }
@media (max-width: 820px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip > :first-child { order: 0; }
  .cards { height: auto; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 4px 34px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .cards { aspect-ratio: auto; }
  .wcard { position: static; flex: none; width: auto; height: 200px; scroll-snap-align: center; rotate: 0deg; border-radius: 22px; }
}
.credit { font-size: 13px !important; color: var(--soft) !important; margin-top: 16px; }
.credit a { color: var(--soft); }
.end .private { color: var(--soft); max-width: 560px; margin: 0 auto 56px; font-size: 15px; }

.end { text-align: center; padding-bottom: clamp(90px, 12vw, 160px) !important; }
.end h2 { font-size: clamp(40px, 7vw, 92px); }
.end .cta { justify-content: center; margin-top: 30px; }
.end .meta { margin-top: 14px; }

.foot {
  border-top: 1px solid var(--faint);
  padding: 34px clamp(16px, 6vw, 96px) max(40px, env(safe-area-inset-bottom));
  color: var(--soft);
  font-size: 13.5px;
  display: grid;
  gap: 10px;
}
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.foot .links a { color: var(--ink); text-decoration: none; }
.foot a { color: var(--soft); }
/* The CodeHype badge: only as wide as itself, so the space beside it is not a link. */
.foot > a { justify-self: start; width: min(180px, 100%); line-height: 0; }
