/* Mnemo landing page. Dark graphite, one iridescent accent, real photographs. */

@font-face { font-family: "Inter"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0e0e10;
  --bg-2: #141417;
  --bg-3: #1a1a1e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f6;
  --muted: #9a9aa3;
  --faint: #63636c;
  --stamp: #ff8a3d;
  --pencil: #ff5a36;
  --iri: linear-gradient(100deg, #6f95ff 0%, #c9d8fb 28%, #f3efe8 44%, #ffe0a0 58%, #ffb070 72%, #f58a72 88%);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* One content width for every section, the nav and the footer, so all left edges line up. */
  --wrap: 1180px;
  --gutter: 24px;
  --section: clamp(96px, 12vw, 160px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain, very faint, over everything. */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.05;
  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 baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 100;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1 em, h2 em {
  background: var(--iri);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
:focus-visible { outline: 2px solid #c9d8fb; outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-top: var(--section); }

/* Section heads: kicker, title, one line of copy. Always left-aligned to the grid. */
.head { max-width: 760px; margin-bottom: 56px; }
.kicker { margin-bottom: 16px; font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--stamp); }
.head h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.045em; }
.head > p:last-child:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 34em; }
.sub-head h3, .local-copy h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.04em; line-height: 1.15; }
.sub-head p, .local-copy p { margin-top: 12px; color: var(--muted); max-width: 32em; }

/* Nav ------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 16, 0.75);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.pill { color: var(--text) !important; border: 1px solid var(--line-2); padding: 7px 16px; border-radius: 99px; transition: background 0.2s; }
.pill:hover { background: rgba(255, 255, 255, 0.06); }

/* Hero ------------------------------------------------------------------ */
.hero { padding-top: clamp(64px, 9vw, 112px); text-align: center; }
.hero h1 {
  font-size: clamp(44px, 8.2vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  max-width: 11.5em;
  margin: 0 auto;
}
.hero h1 em { letter-spacing: -0.02em; }
.lede { max-width: 35em; margin: 28px auto 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }
.ctas { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 99px;
  font-weight: 550; font-size: 15px; letter-spacing: -0.01em;
  transition: background 0.2s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--text); color: #111; }
.btn.primary:hover { background: #fff; }
.btn.ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.05); }

/* The stage: five photos fanned out. Click one and it trades places with the front photo. */
.stage { position: relative; height: clamp(380px, 50vw, 600px); margin-top: 48px; perspective: 1400px; }
.glow {
  position: absolute; left: 50%; top: 56%;
  width: min(900px, 110vw); height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 168, 104, 0.28), rgba(111, 149, 255, 0.14) 55%, transparent);
  filter: blur(40px);
}
.stack {
  position: absolute; left: 50%; top: 46%;
  width: clamp(220px, 34vw, 420px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}
.card {
  position: absolute; inset: 0;
  padding: 0; border: 0; background: var(--bg-2);
  border-radius: 13%;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  transform: var(--to);
  opacity: var(--op, 1);
  transition: transform 0.75s cubic-bezier(0.2, 0.75, 0.2, 1), opacity 0.5s, filter 0.5s;
}
.card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28); pointer-events: none; }
.card[data-slot="far-left"]   { --to: translate3d(-64%, 8%, -160px) rotate(-18deg); --op: 0.55; filter: saturate(0.7); }
.card[data-slot="back-left"]  { --to: translate3d(-34%, 3%, -80px) rotate(-9deg); --op: 0.85; }
.card[data-slot="front"]      { --to: translate3d(0, 0, 40px); cursor: default; }
.card[data-slot="back-right"] { --to: translate3d(34%, 2%, -60px) rotate(9deg); --op: 0.85; }
.card[data-slot="far-right"]  { --to: translate3d(64%, 7%, -150px) rotate(17deg); --op: 0.55; filter: saturate(0.7); }
.card:not([data-slot="front"]):hover { --op: 1; filter: none; }
/* The front photo gets a soft fade at its foot so the date stamp reads on any picture. */
.card[data-slot="front"]::after { background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.65)); }

/* Each photo has its own date stamp; only the front one shows it. */
.card .stamp { position: absolute; right: 7%; bottom: 7%; z-index: 2; opacity: 0; transition: opacity 0.4s; }
.card[data-slot="front"] .stamp { opacity: 1; transition-delay: 0.35s; }
.stamp {
  font: 500 clamp(11px, 1.2vw, 15px)/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--stamp);
  text-shadow: 0 0 6px rgba(255, 120, 40, 0.75);
}
.chip-info.swap { opacity: 0; }

.chip {
  position: absolute; z-index: 6;
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(24, 24, 27, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  font-size: 13px; text-align: left;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  transition: opacity 0.3s;
}
.chip-k { font-weight: 600; letter-spacing: -0.01em; }
.chip-v { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.chip-v b { color: var(--text); font-weight: 500; }
.chip-info { left: calc(50% + clamp(110px, 15vw, 230px)); top: 8%; }
.chip-count { right: calc(50% + clamp(110px, 16vw, 240px)); bottom: 16%; flex-direction: row; align-items: center; gap: 10px; }
.live { width: 6px; height: 6px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 10px #7ee2a8; display: inline-block; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.stage-hint { position: absolute; left: 0; right: 0; bottom: 0; color: var(--faint); font: 500 11.5px/1 var(--mono); letter-spacing: 0.08em; }

/* Numbers --------------------------------------------------------------- */
.numbers {
  margin-top: 72px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.numbers div { padding: 32px 24px; border-left: 1px solid var(--line); }
.numbers div:first-child { border-left: 0; padding-left: 0; }
.numbers b { display: block; font-size: clamp(36px, 4.4vw, 56px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.numbers small { font-size: 0.5em; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.numbers span { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* One photo's story ---------------------------------------------------- */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
.story-fig {
  position: sticky; top: calc(64px + 6vh); align-self: start; margin: 0;
  /* Sized from the window height so the photo and its panel always fit on screen. */
  width: min(100%, 64vh);
}
.photo-wrap { position: relative; }
.photo-wrap .shot { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--bg-3); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); pointer-events: none; }
.photo { z-index: 1; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9); }
.photo .stamp { position: absolute; left: 5%; bottom: 6%; font-size: 14px; }
.lookalike { position: absolute !important; inset: 0; z-index: 0; filter: saturate(0.8) brightness(0.75); }
.lookalike.on { transform: translate(6%, -8%) rotate(4deg) scale(0.92); }
.badge {
  position: absolute; left: 5%; top: 6%;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 10px;
  background: rgba(10, 10, 12, 0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px; font-weight: 500; color: #fff;
}
.lookalike .badge { left: auto; right: 5%; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pin { position: absolute; left: 41%; top: 44%; width: 28px; transform: translate(-50%, -100%); z-index: 2; }
.pin svg { width: 100%; fill: #fff; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.pin svg circle { fill: #f58a72; }
.heart {
  position: absolute; right: 5%; top: 6%;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 10, 12, 0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.heart svg { width: 19px; height: 19px; fill: #ff5a7a; stroke: #ff5a7a; stroke-width: 1.4; stroke-linejoin: round; }

/* The panels: one card per step under the photo, all stacked in one grid cell so the layout never
   jumps; each card is only as tall as its own content. */
.panels {
  position: relative; z-index: 3;
  display: grid; align-items: start;
  margin-top: 14px;
}
.pn {
  grid-area: 1 / 1;
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: rgba(24, 24, 27, 0.86);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.45s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.45s;
}
.pn.current, html:not(.js) .pn:first-child { opacity: 1; visibility: visible; transform: none; }
.pn-k { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--stamp); }
.pn-k span { color: var(--muted); letter-spacing: 0.06em; }
.pn-big { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.pn-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
/* Timeline bars */
.bars { display: flex; align-items: flex-end; gap: 5px; height: 84px; }
.bars i { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: rgba(255, 255, 255, 0.14); }
.bars i.on { background: var(--iri); box-shadow: 0 0 16px rgba(255, 176, 112, 0.35); }
.years { display: flex; justify-content: space-between; margin-top: 8px; font: 500 10.5px/1 var(--mono); color: var(--faint); }
.years .on { color: var(--text); }
/* Places: the globe */
.pn-place, .pn-album { grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.pn-place, .pn-album { display: grid; }
.globe { position: relative; width: 120px; flex: none; aspect-ratio: 1; }
.globe img { width: 100%; height: 100%; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6)); }
.globe-pin { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); background: #ff8a3d; box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.3), 0 0 14px #ff8a3d; }
.globe-pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(255, 138, 61, 0.7); animation: ping 2.2s ease-out infinite; }
@keyframes ping { from { transform: scale(0.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
/* Cameras list */
.cams { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cams li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; color: var(--muted); overflow: hidden; }
.cams li b { font: 500 12px/1.6 var(--mono); color: var(--faint); }
.cams li i { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w); background: rgba(255, 255, 255, 0.12); }
.cams li.on { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.cams li.on b { color: var(--text); }
.cams li.on i { background: var(--stamp); }
/* Thumbnails (On this day, Copies) */
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs.two { grid-template-columns: repeat(2, 1fr); }
.thumbs.two img { aspect-ratio: 2 / 1; }
.thumbs figure { margin: 0; }
.thumbs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.thumbs figcaption { margin-top: 6px; font: 500 11px/1 var(--mono); color: var(--faint); }
.thumbs .on img { box-shadow: 0 0 0 2px var(--stamp); }
.thumbs .on figcaption { color: var(--text); }
.thumbs .dim img { filter: grayscale(0.6) brightness(0.65); }
.pn-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.pn-action { display: inline-block; padding: 7px 12px; border-radius: 8px; background: var(--text); color: #111; font-size: 13px; font-weight: 600; }
/* Album mosaic */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 120px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
/* Folder move: before → after, side by side */
.move { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.move .arrow { color: var(--faint); font-size: 16px; }
.move p { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; border: 1px solid var(--line); }
.move span { font: 500 11px/1.4 var(--mono); color: var(--faint); }
.move .from { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.25); }
.move .from span { text-decoration: none; }
.move .to { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); color: var(--text); }
.move .to em { font: 500 11px/1 var(--mono); font-style: normal; color: #ff8fa3; margin-top: 4px; }

/* With JS, each detail on the photo waits for its step. Without it, the photo shows everything. */
.js [data-at] { transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-at]:not(.on) { opacity: 0; }
.js .stamp[data-at]:not(.on), .js .badge[data-at]:not(.on) { transform: translateY(6px); }
.js .pin:not(.on) { transform: translate(-50%, -160%); }
.js .heart:not(.on) { transform: scale(0.4); }

.steps { list-style: none; margin: 0; padding: 0 0 20vh; }
.step { min-height: 66vh; display: flex; flex-direction: column; justify-content: center; transition: opacity 0.5s; }
.js .step:not(.current) { opacity: 0.28; }
.step .n { margin-bottom: 14px; font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--stamp); }
.step h3 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.04em; }
.step p:last-child { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 26em; }
.also { margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.also span { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--stamp); margin-right: 12px; }

/* Your files -------------------------------------------------------------- */
.never {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.4em;
  font-size: clamp(48px, 9.5vw, 132px); font-weight: 600; letter-spacing: -0.06em; line-height: 1;
}
.never s { color: #2e2e34; text-decoration: none; position: relative; }
.never s::after {
  content: ""; position: absolute; left: -3%; right: -3%; top: 54%; height: 0.07em;
  background: var(--pencil); border-radius: 99px; transform: rotate(-3deg) scaleX(0); transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.6, 0.1, 0.2, 1);
}
.never.in s::after { transform: rotate(-3deg) scaleX(1); }
.never.in li:nth-child(2) s::after { transition-delay: 0.2s; }
.never.in li:nth-child(3) s::after { transition-delay: 0.4s; }
.never .verdict { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; background: var(--iri); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }

/* Deleting: three stops on one straight line. Every column is the same width, so the dots
   sit at the same height and each line segment runs exactly to the next dot. */
.lifecycle { margin-top: 112px; }
.sub-head { margin-bottom: 40px; }
.lc { --gap: 40px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.lc-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.lc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lc-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); pointer-events: none; }
.waiting .lc-thumb img { filter: grayscale(0.6) brightness(0.55); }
.gone .lc-thumb img { filter: grayscale(1) brightness(0.45); opacity: 0.4; }
.lc-restore {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 7px 14px; border-radius: 8px;
  background: var(--text); color: #111;
  font-size: 13px; font-weight: 600;
}
.lc-dot { position: relative; display: block; height: 11px; margin: 24px 0 18px; }
.lc-dot::before { /* the dot */
  content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--muted); z-index: 1;
}
.lc-dot::after { /* the line to the next dot */
  content: ""; position: absolute; left: 11px; right: calc(-1 * var(--gap)); top: 5px; height: 1px; background: var(--line-2);
}
.waiting .lc-dot::before { border-color: var(--stamp); background: var(--stamp); }
.waiting .lc-dot::after { top: 4.5px; height: 2px; background: var(--stamp); }
.gone .lc-dot::after { right: 0; background: linear-gradient(90deg, var(--line-2), transparent); }
.lc-when { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.waiting .lc-when { color: var(--stamp); }
.lc h4 { margin-top: 10px; font-size: 18px; letter-spacing: -0.02em; }
.lc-stop > p:last-child { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 24em; }

/* Local-first: the words, next to the settings they describe. */
.local {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center;
  margin-top: 112px; padding-top: 72px; border-top: 1px solid var(--line);
}
.netpanel {
  border-radius: 16px;
  background: linear-gradient(180deg, #1c1c20, #161619);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  padding: 0 20px 6px;
}
.np-path { margin: 0 -20px 4px; padding: 14px 20px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--text); }
.np-path span { color: var(--faint); }
.np-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.np-row + .np-row { border-top: 1px solid var(--line); }
label.np-row { cursor: pointer; }
.np-row b { display: block; font-weight: 550; font-size: 15px; letter-spacing: -0.01em; }
.np-row div span { display: block; color: var(--faint); font-size: 13px; margin-top: 2px; }
.np-tag { flex: none; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; color: #7ee2a8; padding: 6px 9px; border-radius: 7px; background: rgba(126, 226, 168, 0.1); }
.switch {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 40px; height: 24px; border-radius: 99px; position: relative; cursor: pointer;
  background: #2e2e34; transition: background 0.25s;
}
.switch::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #f4f4f6; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.switch:checked { background: #ff9a5c; }
.switch:checked::after { transform: translateX(16px); }

/* Formats --------------------------------------------------------------- */
.fmt-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.fmt-block { padding: 24px 28px 28px; }
.fmt-block:first-child { padding-left: 0; }
.fmt-block:last-child { padding-right: 0; }
.fmt-block + .fmt-block { border-left: 1px solid var(--line); }
.fmt-label { margin-bottom: 18px; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fmt-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.fmt-block.raw ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; }
.fmt-block b { display: block; font: 500 17px/1.2 var(--mono); letter-spacing: 0.02em; color: var(--text); }
.fmt-block.raw b { color: #ffd6ad; }
.fmt-block li.vid b { color: #c3d3ff; }
.fmt-block li span { display: block; margin-top: 5px; font-size: 14px; color: var(--muted); }

/* Download -------------------------------------------------------------- */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dl-card {
  display: flex; flex-direction: column;
  padding: 28px; border-radius: 18px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.dl-top { display: flex; justify-content: space-between; align-items: center; }
.dl-top b { font-size: 26px; font-weight: 600; letter-spacing: -0.035em; }
.dl-yours { display: none; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 6px 9px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); }
.dl-card.mine .dl-yours { display: inline-block; }
.dl-req { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.dl-btn {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line-2); color: var(--text);
  font-size: 15px; font-weight: 550;
  transition: background 0.2s, border-color 0.2s;
}
.dl-btn:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.28); }
.dl-btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-btn.main { margin-top: 24px; justify-content: center; background: var(--text); color: #111; border-color: transparent; }
.dl-btn.main:hover { background: #fff; }
.dl-note { margin-top: 16px; color: var(--faint); font-size: 13.5px; line-height: 1.55; }
.dl-note i { font-style: normal; color: var(--muted); }
.dl-opts { margin-top: 24px; display: grid; gap: 10px; }
.dl-opts .dl-btn { justify-content: space-between; }
.dl-opts code { font: 500 12.5px/1 var(--mono); color: var(--muted); }
.dl-opts .dl-btn.suggested { background: var(--text); color: #111; border-color: transparent; }
.dl-opts .dl-btn.suggested code { color: #555; }

.next { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line); }
.next .kicker { margin: 4px 0 0; }
.next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.next li { color: var(--muted); }
.next b { color: var(--text); font-weight: 600; margin-right: 8px; }

/* Footer ---------------------------------------------------------------- */
.foot { margin-top: var(--section); overflow: hidden; }
/* Kept above the big wordmark below it: the wordmark's tall text box reaches up over this row. */
.foot-row { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); }
.copy { color: var(--faint); font-size: 13px; }
.foot-row nav { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.foot-row nav a:hover { color: var(--text); }
.giant {
  --mx: 50%; --my: 50%;
  position: relative;
  margin: 0 auto -0.24em; text-align: center;
  font-size: clamp(120px, 27vw, 400px); font-weight: 650; letter-spacing: -0.07em; line-height: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; cursor: default;
}
/* Only the letters under the cursor light up: main.js keeps --mx / --my at the pointer, and the
   gradient copy is masked to a soft circle there. */
.giant::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: linear-gradient(100deg, #6f95ff, #c9d8fb 30%, #f3efe8 45%, #ffe0a0 60%, #ffb070 75%, #f58a72);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 176, 112, 0.35));
  -webkit-mask-image: radial-gradient(circle clamp(90px, 12vw, 180px) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  mask-image: radial-gradient(circle clamp(90px, 12vw, 180px) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.giant:hover::after { opacity: 1; }

/* Scroll reveal (only when JS has run, so the page never hides content without it). */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 960px) {
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers div:nth-child(3) { border-left: 0; padding-left: 0; }
  .numbers div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .chip-info { left: auto; right: 0; top: 0; }
  .chip-count { right: auto; left: 0; bottom: 12%; }
  .fmt-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .fmt-block.raw { padding-right: 0; }
  .fmt-block.raw ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fmt-block:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .fmt-block:last-child ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-fig {
    width: 100%; top: 64px; z-index: 5;
    padding: 12px 0 16px;
    background: linear-gradient(var(--bg) 88%, transparent);
  }
  .photo-wrap { max-width: 340px; margin: 0 auto; }
  .lookalike.on { transform: translate(5%, -6%) rotate(4deg) scale(0.92); }
  .panels { width: min(360px, 100%); margin: 10px auto 0; }
  .pn { padding: 12px 14px 14px; }
  .bars { height: 56px; }
  .pn-place, .pn-album { grid-template-columns: 84px 1fr; }
  .globe, .mosaic { width: 84px; }
  .photo .stamp { bottom: 14%; font-size: 12px; }
  .steps { padding-bottom: 30vh; }
  .step { min-height: 58vh; justify-content: flex-start; padding-top: 6vh; }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .nav nav a:not(.pill) { display: none; }
  .stage { height: 440px; margin-top: 36px; }
  .stack { width: 62vw; top: 40%; }
  .card[data-slot="far-left"], .card[data-slot="far-right"] { --op: 0; pointer-events: none; }
  .chip-info { left: 50%; right: auto; top: auto; bottom: 34px; transform: translateX(-50%); align-items: center; text-align: center; white-space: nowrap; }
  .chip-info.swap { transform: translateX(-50%); }
  .chip-count { display: none; }
  .numbers div { padding: 24px 12px; }
  .lc, .local, .dl, .fmt-grid { grid-template-columns: 1fr; }
  /* Phones: the deletion steps become a compact list, small thumbnail beside each. */
  .lc { row-gap: 24px; }
  .lc-stop { display: grid; grid-template-columns: 92px 1fr; column-gap: 16px; align-items: start; }
  .lc-thumb { grid-row: 1 / span 4; aspect-ratio: 1; border-radius: 10px; }
  .lc-dot { display: none; }
  .lc h4 { margin-top: 8px; font-size: 16px; }
  .lc-stop > p:last-child { font-size: 14px; }
  .lc-restore { padding: 4px 8px; font-size: 11px; }
  .fmt-block { padding: 22px 0 !important; border-left: 0 !important; }
  .fmt-block + .fmt-block { border-top: 1px solid var(--line); }
  .fmt-block.raw ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fmt-block:last-child ul { grid-template-columns: 1fr; }
  .dl-card { padding: 22px; }
  .next { grid-template-columns: 1fr; gap: 12px; }
  .foot-row { flex-direction: column; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .never s::after { transform: rotate(-3deg) scaleX(1); }
}
