/* Capricorn mini-sites — shared styles. Per-app colours arrive as tokens in each page <style>. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 12px 16px; border-radius: 12px; background: var(--fill); color: var(--on-fill); font-weight: 600; }
.skip:focus { top: 12px; }

/* top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: max(10px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(20px);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.top__nav { display: flex; gap: 4px; margin-left: auto; }
.top__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--dim); text-decoration: none; font-size: 15px; font-weight: 500; }
.top__nav a:hover { color: var(--ink); background: var(--surface2); }
@media (max-width: 860px) { .top__nav { display: none; } .seg--theme { margin-left: auto; } }

/* segmented control */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.seg button {
  min-height: 38px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--dim); font: 500 14px/1 inherit; font-family: inherit; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 0 0 0.5px var(--line); }
.seg button:hover { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 14px; font-weight: 600; font-size: 17px; text-decoration: none; transition: transform 0.15s, filter 0.15s; }
.btn:active { transform: scale(0.98); }
.btn--fill { background: var(--fill); color: var(--on-fill); }
.btn--fill:hover { filter: brightness(1.06); }
.btn--ghost { color: var(--ink); background: var(--surface2); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--surface); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 11px; }
@media (max-width: 520px) { .top__cta { display: none; } }

/* layout */
main { overflow-x: clip; }
.section, .hero, .band { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: 72px 0 8px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.section__head h2 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
.section__head p { margin: 8px 0 0; color: var(--dim); font-size: 17px; max-width: 46rem; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.card { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p, .card dd { color: var(--dim); margin: 0; font-size: 16px; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 40px; padding: 56px 0 24px; }
.hero::before {
  content: ""; position: absolute; inset: -80px -40vw auto; height: 620px; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 60% at 70% 30%, color-mix(in srgb, var(--glow) 26%, transparent), transparent 70%),
              radial-gradient(30% 50% at 20% 10%, color-mix(in srgb, var(--glow2) 16%, transparent), transparent 70%);
}
.hero__icon { width: 88px; height: 88px; border-radius: 22px; margin-bottom: 22px; box-shadow: 0 12px 34px color-mix(in srgb, var(--glow) 32%, transparent), 0 0 0 0.5px var(--line); }
.hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.hero__lead { margin: 14px 0 0; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.hero__pitch { margin: 14px 0 0; color: var(--dim); font-size: 18px; max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 520px) { .hero__cta .btn { flex: 1 1 100%; } }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 22px 0 0; color: var(--dim); font-size: 15px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.chip--sm { min-height: 22px; padding: 0 8px; font-size: 11px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--dim); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #2fb35f; box-shadow: 0 0 0 3px color-mix(in srgb, #2fb35f 22%, transparent); }
.hero__visual { position: relative; min-height: 460px; }
.hero--index { grid-template-columns: 1fr; padding-bottom: 8px; }
.hero--index .hero__text { max-width: 760px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 24px; }
  .hero__visual { min-height: 0; }
}

/* hero visual follows the page scheme */
.hero__visual[data-shot-theme="dark"] { display: none; }
html[data-theme="dark"] .hero__visual[data-shot-theme="light"] { display: none; }
html[data-theme="dark"] .hero__visual[data-shot-theme="dark"] { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .hero__visual[data-shot-theme="light"] { display: none; }
  html:not([data-theme="light"]) .hero__visual[data-shot-theme="dark"] { display: block; }
}

/* device frames (drawn in CSS — no device photography) */
.dev { margin: 0; position: relative; overflow: hidden; background: #0b0b0d; }
.dev img { width: 100%; height: auto; }
.dev--iphone { border-radius: 38px; padding: 9px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset, 0 30px 60px rgb(0 0 0 / 0.28), 0 0 0 0.5px var(--line); }
.dev--iphone img { border-radius: 30px; }
.dev--ipad { border-radius: 26px; padding: 12px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07) inset, 0 26px 56px rgb(0 0 0 / 0.26), 0 0 0 0.5px var(--line); }
.dev--ipad img { border-radius: 14px; }
.dev--mac { border-radius: 14px; padding: 0; background: var(--surface); box-shadow: 0 28px 60px rgb(0 0 0 / 0.24), 0 0 0 1px var(--line); }
.dev__bar { display: flex; gap: 7px; align-items: center; height: 30px; padding: 0 14px; background: var(--surface2); border-bottom: 1px solid var(--line); }
.dev__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dev__bar i:nth-child(2) { background: #febc2e; }
.dev__bar i:nth-child(3) { background: #28c840; }
.hero__mac { position: absolute; right: 0; top: 26px; width: 92%; }
.hero__phone { position: absolute; left: 0; bottom: -10px; width: 34%; min-width: 150px; }
@media (max-width: 900px) {
  .hero__mac { display: none; }
  .hero__phone { position: relative; width: min(300px, 70%); margin: 0 auto; bottom: 0; left: 0; }
}

/* highlights band */
.band { display: flex; flex-wrap: wrap; gap: 10px; padding: 36px 0 0; }
.band span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); font-size: 15px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }

/* gallery */
.gallery__tools { display: flex; flex-wrap: wrap; gap: 10px; }
.groups { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 14px; }
.groups::-webkit-scrollbar { display: none; }
.groups button { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--dim); font: 500 14px/1 inherit; font-family: inherit; cursor: pointer; }
.groups button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rail-wrap { position: relative; }
.rail {
  list-style: none; margin: 0; padding: 6px 2px 26px;
  display: grid; grid-auto-flow: column; gap: 22px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}
.rail[data-device="iphone"] { grid-auto-columns: clamp(200px, 26vw, 268px); }
.rail[data-device="ipad"] { grid-auto-columns: clamp(300px, 52vw, 560px); }
.rail[data-device="mac"] { grid-auto-columns: clamp(300px, 62vw, 700px); }
.rail li { scroll-snap-align: start; }
.shot { all: unset; display: block; width: 100%; box-sizing: border-box; cursor: zoom-in; border-radius: 40px; } /* buttons shrink-to-fit even as blocks; lazy imgs would collapse */
.shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shot .dev { transition: transform 0.25s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) { .shot:hover .dev { transform: translateY(-4px); } }
.shot__cap { margin-top: 14px; }
.shot__cap strong { display: block; font-size: 16px; letter-spacing: -0.01em; }
.shot__cap span { display: block; margin-top: 2px; color: var(--dim); font-size: 14px; line-height: 1.4; }
.rail__btn { position: absolute; top: 40%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgb(0 0 0 / 0.16); backdrop-filter: blur(10px); }
.rail__btn--prev { left: -10px; }
.rail__btn--next { right: -10px; }
.rail__btn[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none) { .rail__btn { display: none; } }

/* features + tour */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.features li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.features__n { flex: 0 0 auto; font: 600 13px/1.9 ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent); font-variant-numeric: tabular-nums; }
.tour { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tour__group { padding: 20px 22px; border-radius: 18px; background: var(--surface2); border: 1px solid var(--line); }
.tour__group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 10px; }
.tour__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tour__group strong { display: block; font-size: 16px; }
.tour__group span { display: block; color: var(--dim); font-size: 14px; line-height: 1.4; }

/* privacy */
.privacy { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.privacy dl { margin: 0; display: grid; gap: 10px; }
.privacy dt { font-weight: 600; font-size: 16px; }
.never { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--dim); }
.never li::before { content: "✕"; display: inline-block; width: 22px; color: var(--accent); font-weight: 700; }
.fine { margin: 16px 0 0; font-size: 15px; }

/* install */
.install { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.install b { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--dim); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--dim); }

/* changelog */
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 860px; }
.log > li { padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.log__v { margin: 0 0 8px; font: 600 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent); font-variant-numeric: tabular-nums; }
.log ul { margin: 0; padding-left: 18px; color: var(--dim); font-size: 16px; display: grid; gap: 4px; }

.disclaimer { width: min(860px, 100% - 40px); margin: 56px auto 0; padding: 16px 20px; border-radius: 16px; background: var(--surface2); color: var(--dim); font-size: 15px; border: 1px solid var(--line); }

/* index */
.capgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.capcard { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto auto; column-gap: 16px; row-gap: 2px; align-items: start; height: 100%; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.capcard img { grid-row: 1 / span 3; width: 64px; height: 64px; border-radius: 15px; }
.capcard__name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.capcard__name em { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface2); color: var(--dim); vertical-align: middle; }
.capcard__desc { color: var(--dim); font-size: 15px; line-height: 1.4; }
.capcard__meta { margin-top: 6px; color: var(--dim); font: 500 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .capcard:hover { transform: translateY(-3px); box-shadow: 0 16px 34px color-mix(in srgb, var(--c) 22%, transparent); } }

/* footer */
.foot { width: min(1180px, 100% - 40px); margin: 80px auto 0; padding: 32px 0 max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot__label { margin: 0 0 14px; color: var(--dim); font-size: 14px; font-weight: 600; }
.foot__caps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.foot__caps a { display: grid; justify-items: center; gap: 6px; min-height: 44px; padding: 10px 4px; border-radius: 14px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; text-align: center; }
.foot__caps a:hover { background: var(--surface2); }
.foot__caps img { width: 40px; height: 40px; border-radius: 10px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--dim); font-size: 15px; text-decoration: none; border-radius: 10px; }
.foot__links a:hover { color: var(--ink); background: var(--surface2); }
.foot__fine { margin: 10px 0 0; color: var(--dim); font-size: 13px; }

/* lightbox — flex + fixed chrome so the figure is never trapped in a 64px grid column */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 8 10 / 0.94); color: #f6f4ef; }
.lightbox::backdrop { background: rgb(0 0 0 / 0.65); backdrop-filter: blur(6px); }
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(56px, env(safe-area-inset-top)) 72px max(24px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(960px, 100%);
  max-height: 100%;
  min-width: 0;
}
.lightbox img {
  display: block;
  max-height: calc(100vh - 160px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5);
  background: #111;
}
.lightbox figcaption { max-width: 640px; text-align: center; font-size: 16px; color: rgb(246 244 239 / 0.8); }
.lightbox figcaption strong { color: #fff; }
.lightbox__close { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.12); color: #fff; font-size: 18px; cursor: pointer; }
.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.lightbox__nav--prev { left: max(12px, env(safe-area-inset-left)); }
.lightbox__nav--next { right: max(12px, env(safe-area-inset-right)); }
@media (max-width: 640px) {
  .lightbox[open] { padding-inline: 16px; }
  .lightbox__nav { top: auto; transform: none; bottom: max(18px, env(safe-area-inset-bottom)); }
  .lightbox__nav--prev { left: 18px; }
  .lightbox__nav--next { right: 18px; }
}

/* latest release */
.release { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 860px; }
.release h2 { font-size: 22px; letter-spacing: -0.015em; }
.release p { margin: 8px 0 0; display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 15px; }

/* stories */
.prose { max-width: 42rem; }
.story-main .prose p { font-size: 17px; line-height: 1.5; }
.story-fictional { width: min(1180px, 100% - 40px); margin: 16px auto 0; font-size: 15px; color: var(--dim); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.story-fictional--index { margin-top: max(12px, env(safe-area-inset-top)); }
.story-fictional--foot { margin: 48px auto 24px; padding-bottom: 8px; }
#storyCount { margin: 8px 0 0; color: var(--dim); font-size: 16px; }
.persona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.persona-teaser { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; color: var(--ink); text-decoration: none; min-height: 44px; transition: transform 0.2s, box-shadow 0.2s; }
.persona-teaser:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgb(0 0 0 / 0.08); }
.persona-teaser__av, .persona-card__av { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, var(--surface2)); font-weight: 700; font-size: 17px; color: var(--accent); }
.persona-teaser__body { display: grid; gap: 4px; }
.persona-teaser__meta, .persona-teaser__goal { color: var(--dim); font-size: 15px; line-height: 1.4; }
.persona-teaser__quote { font-size: 15px; font-style: italic; color: var(--ink); margin-top: 4px; }
.story-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 32px; width: min(1180px, 100% - 40px); margin: 24px auto 0; align-items: start; }
.story-hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
.persona-card { display: grid; grid-template-columns: 52px 1fr; gap: 12px 14px; margin-top: 20px; max-width: 42rem; }
.persona-card__av { grid-row: 1 / span 2; }
.persona-card__quote { grid-column: 1 / -1; margin: 0; font-style: italic; color: var(--dim); font-size: 16px; }
@media (max-width: 900px) { .story-hero { grid-template-columns: 1fr; } .story-hero__shot { display: none; } }
.story-compare__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.story-compare__col h3 { font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--dim); margin-bottom: 16px; font-weight: 600; }
.story-compare__col--after h3 { color: var(--accent); }
.metric { margin-bottom: 14px; }
.metric__val { display: block; font-size: clamp(28px, 4vw, 36px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.metric__lbl { display: block; margin-top: 4px; color: var(--dim); font-size: 15px; }
.story-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; max-width: 52rem; }
.story-step { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px 20px; align-items: start; }
.story-step time { font: 600 15px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 4px; display: flex; flex-direction: column; gap: 6px; }
.story-step__device { font: 600 11px/1.2 system-ui, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); }
.story-step__body h3 { font-size: 20px; margin-bottom: 8px; }
.story-step__body p { color: var(--dim); margin: 0 0 14px; max-width: 42rem; }
.story-step .dev--iphone { max-width: min(100%, 320px); }
.story-step .dev--ipad { max-width: min(100%, 440px); }
.story-step .dev--mac { max-width: min(100%, 720px); }
.story-step .dev img { width: 100%; height: auto; display: block; }
.story-step--mac .story-step__body .dev,
.story-step--ipad .story-step__body .dev { margin-inline: 0; }
@media (min-width: 900px) {
  .story-timeline { max-width: 56rem; }
  .story-step { grid-template-columns: 88px minmax(0, 1fr); gap: 20px 28px; }
}
@media (min-width: 768px) {
  .story-step--alt .story-step__body { order: 0; }
  .story-step--alt { grid-template-columns: minmax(0, 1fr) 72px; }
  .story-step--alt time { grid-column: 2; text-align: end; }
}
.story-shot { all: unset; display: block; cursor: zoom-in; max-width: min(100%, 420px); }
.story-shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.story-shot__ph { min-height: 120px; display: grid; place-items: center; padding: 20px; border-radius: 16px; background: var(--surface2); border: 1px dashed var(--line); color: var(--dim); font-size: 15px; text-align: center; max-width: 420px; }
.story-video__fig { margin: 0; max-width: 960px; }
.story-video video { width: 100%; height: auto; border-radius: 16px; background: #000; }
.story-transcript { margin-top: 16px; max-width: 42rem; }
.story-transcript summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.story-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.story-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.story-chip:hover { background: var(--surface); }
.story-nav { width: min(1180px, 100% - 40px); margin: 48px auto; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.story-index__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.story-index__link { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; color: var(--ink); text-decoration: none; min-height: 44px; }
.story-index__title { display: block; font-size: 18px; margin: 4px 0; }
.story-search input { width: 100%; max-width: 42rem; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; }
.story-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.story-filter { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--dim); font: 500 15px/1 inherit; font-family: inherit; cursor: pointer; }
.story-filter.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.story-empty { color: var(--dim); font-size: 17px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
