/* Layout: a strict 12-column grid (8 on tablets, 4 on phones), flush left and ragged right. Big numerals carry the
   structure, rules separate the sections, and one ultramarine accent marks what you can act on.
   Tokens: ink, paper, a muted grey, a quiet fill, hairlines and the accent; one family, Host Grotesk. */
:root {
  --bg: #ffffff;
  --fg: #0b0b0c;
  --muted: #5c5e66;
  --soft: #f2f3f5;
  --line: #0b0b0c;
  --hair: #dcdde1;
  --accent: #1f3ae0;
  --on-accent: #ffffff;
  --error: #b42318;
  --grid-fill: rgba(31, 58, 224, 0.07);
  --grid-edge: rgba(31, 58, 224, 0.4);
  --poster-edge: transparent;
  --font: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --cols: 12;
  --gap: 24px;
  --side: 48px;
  --max: 1520px;
  --head: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --fg: #f3f3f1;
    --muted: #a3a5ac;
    --soft: #17181b;
    --line: #f3f3f1;
    --hair: #2d2e33;
    --accent: #8496ff;
    --on-accent: #0b0b0c;
    --error: #ff8a7e;
    --grid-fill: rgba(132, 150, 255, 0.09);
    --grid-edge: rgba(132, 150, 255, 0.45);
    --poster-edge: rgba(255, 255, 255, 0.1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --fg: #f3f3f1;
  --muted: #a3a5ac;
  --soft: #17181b;
  --line: #f3f3f1;
  --hair: #2d2e33;
  --accent: #8496ff;
  --on-accent: #0b0b0c;
  --error: #ff8a7e;
  --grid-fill: rgba(132, 150, 255, 0.09);
  --grid-edge: rgba(132, 150, 255, 0.45);
  --poster-edge: rgba(255, 255, 255, 0.1);
  color-scheme: dark;
}
@media (max-width: 1080px) { :root { --cols: 8; --side: 32px; } }
@media (max-width: 640px) { :root { --cols: 4; --gap: 16px; --side: 16px; --head: 58px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 640px) { body { font-size: 17px; } }
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 60;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--side), env(safe-area-inset-left, 0px));
  padding-right: max(var(--side), env(safe-area-inset-right, 0px));
}
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); }
.grid > * { min-width: 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-head .bar { min-height: var(--head); align-items: center; }
.wordmark {
  grid-column: 1 / span 4;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav { grid-column: 7 / span 5; display: flex; gap: 28px; }
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 6px 0 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.head-tools { grid-column: 12 / span 1; justify-self: end; display: flex; gap: 8px; }
.grid-toggle, .menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.grid-toggle svg { width: 16px; height: 16px; }
.grid-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.menu-btn { display: none; }
@media (max-width: 1080px) {
  .wordmark { grid-column: 1 / span 3; }
  .nav { grid-column: 4 / span 4; gap: 20px; }
  .head-tools { grid-column: 8 / span 1; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .wordmark { grid-column: 1 / span 5; }
  .head-tools { grid-column: 6 / span 3; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .wordmark { grid-column: 1 / span 2; font-size: 18px; white-space: normal; overflow: visible; line-height: 1.1; padding-block: 8px; }
  .head-tools { grid-column: 3 / span 2; }
  .grid-toggle span { display: none; }
  .grid-toggle { padding: 0 11px; }
}
.menu-panel { border-top: 1px solid var(--hair); padding-block: 12px 24px; }
.menu-panel a {
  display: block;
  padding: 10px 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.menu-panel .small { display: flex; gap: 20px; margin-top: 12px; }
.menu-panel .small a { font-size: 16px; font-weight: 500; letter-spacing: 0; }

/* ---------- shared type ---------- */
.label { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.muted { color: var(--muted); }
.lead { font-size: clamp(21px, 2vw, 28px); line-height: 1.32; letter-spacing: -0.015em; margin: 0; }
.go-row { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 22px 0 0; }
.go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--fg);
}
.go::after { content: "→"; transition: transform .2s ease; }
.go:hover { color: var(--accent); border-bottom-color: var(--accent); }
.go:hover::after { transform: translateX(4px); }
.crumbs { margin: 0; padding-top: 28px; font-size: 15px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }
.view-title {
  margin: 18px 0 0;
  font-size: clamp(48px, 6.4vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.view-title:focus { outline: none; }
.sample {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: middle;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.line { background: transparent; color: var(--fg); }
.btn.line:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.soon-chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px dashed var(--muted);
  color: var(--muted);
  font-size: 15px;
}

/* ---------- home ---------- */
.hero { padding-block: clamp(48px, 7.5vw, 120px) 0; }
.hero h1 {
  grid-column: 1 / span 9;
  margin: 0;
  font-size: clamp(54px, 8.3vw, 140px);
  line-height: 0.93;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.hero h1:focus { outline: none; }
.hero .aside { grid-column: 10 / span 3; align-self: end; padding-bottom: 6px; }
.hero .aside p { margin: 0; }
@media (max-width: 1080px) {
  .hero h1 { grid-column: 1 / -1; }
  .hero .aside { grid-column: 1 / span 5; margin-top: 36px; }
}
@media (max-width: 640px) { .hero .aside { grid-column: 1 / -1; margin-top: 28px; } }

.section { padding-top: clamp(72px, 8.5vw, 136px); }
.section-head { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 36px; align-items: baseline; }
.section-head .label { grid-column: 1 / span 3; }
.section-head p { grid-column: 4 / span 6; margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 1080px) {
  .section-head .label { grid-column: 1 / span 2; }
  .section-head p { grid-column: 3 / -1; }
}
@media (max-width: 640px) {
  .section-head .label, .section-head p { grid-column: 1 / -1; }
  .section-head p { margin-top: 4px; }
}

/* posters */
.posters { row-gap: var(--gap); }
.posters > .cell { grid-column: span 4; }
@media (max-width: 640px) { .posters > .cell { grid-column: 1 / -1; } }
.poster {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 5;
  padding: 22px 24px 24px;
  overflow: hidden;
  background: var(--pc);
  color: var(--pt);
  text-decoration: none;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px var(--poster-edge);
}
.poster .p-top { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.poster .p-top .studio-icon { flex: none; width: 36px !important; height: 36px !important; }
.poster .p-top .p-kind { flex: 1; min-width: 0; }
.poster .p-top .p-when { text-align: right; color: var(--ph); }
.poster .p-name {
  margin-top: 22px;
  font-size: clamp(36px, 3.4vw, 54px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.poster .p-arrow { display: inline-block; margin-left: 10px; font-weight: 500; opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .25s ease; }
.poster .p-tag { margin-top: 12px; font-size: 17px; line-height: 1.35; max-width: 17ch; opacity: .88; }
.poster .p-foot { margin-top: auto; max-width: 44%; font-size: 14px; font-weight: 500; line-height: 1.35; position: relative; z-index: 1; }
.poster .p-phone {
  position: absolute;
  right: 9%;
  bottom: -15%;
  width: 41%;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  z-index: 0;
}
a.poster:hover .p-phone { transform: translateY(-12px); }
a.poster:hover .p-arrow, a.poster:focus-visible .p-arrow { opacity: 1; transform: none; }
a.poster:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.phone {
  display: block;
  aspect-ratio: 603 / 1311;
  padding: 3.4%;
  background: #0c0c0d;
  border-radius: 13.5% / 6.2%;
  box-shadow: 0 24px 48px -14px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone .scr { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; border-radius: 10.6% / 4.9%; }
.phone .scr > img, .phone .scr > svg { display: block; width: 100%; height: 100%; }

/* facts */
.facts { row-gap: 40px; }
.fact { grid-column: span 3; border-top: 1px solid var(--line); padding-top: 14px; }
.fact .num {
  display: block;
  font-size: clamp(68px, 8.2vw, 136px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.fact .lab { display: block; margin-top: 14px; font-size: 16px; color: var(--muted); max-width: 24ch; }
@media (max-width: 1080px) { .fact { grid-column: span 4; } }
@media (max-width: 640px) { .fact { grid-column: span 2; } .fact .lab { font-size: 15px; } }

/* tables */
.table-box { grid-column: 1 / -1; }
.ptable { width: 100%; border-collapse: collapse; font-size: 17px; }
.ptable th { text-align: left; font-size: 14px; font-weight: 500; color: var(--muted); padding: 0 16px 12px 0; border-bottom: 1px solid var(--line); }
.ptable td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.ptable td.strong { font-weight: 700; }
.ptable .dot { display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--fg); vertical-align: 1px; }
.ptable .dot.next { background: transparent; border: 1.5px solid var(--fg); }
.ptable a { font-weight: 500; }
@media (max-width: 640px) {
  .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ptable tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--hair); }
  .ptable td { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; padding: 3px 0; border: 0; }
  .ptable td.strong { display: block; padding-bottom: 6px; font-size: 19px; }
  .ptable td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 14px; padding-top: 2px; }
}

/* studio */
.studio-about { grid-column: 4 / span 8; }
.studio-about .lead { max-width: 34ch; }
.principles { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 56px; }
.principles h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.principles p { margin: 0; color: var(--muted); font-size: 17px; }
@media (max-width: 1080px) { .studio-about, .principles { grid-column: 1 / -1; } }
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; } }

/* contact block */
.contact-row { grid-column: 4 / -1; }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.email {
  font-size: clamp(32px, 4.8vw, 76px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}
@media (max-width: 1080px) { .contact-row { grid-column: 1 / -1; } }

/* ---------- footer ---------- */
.site-foot {
  margin-top: clamp(96px, 10vw, 160px);
  border-top: 1px solid var(--line);
  padding-block: 20px calc(40px + env(safe-area-inset-bottom, 0px));
  font-size: 15px;
}
.site-foot .grid { row-gap: 20px; }
.foot-copy { grid-column: 1 / span 3; }
.foot-links { grid-column: 4 / span 4; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-colophon { grid-column: 8 / span 3; color: var(--muted); }
.foot-colophon p { margin: 0; }
.theme { grid-column: 11 / span 2; justify-self: end; display: flex; border: 1px solid var(--line); height: 36px; }
.theme button { border: 0; background: transparent; padding: 0 10px; font-size: 14px; cursor: pointer; }
.theme button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
@media (max-width: 1080px) {
  .foot-copy { grid-column: 1 / span 3; }
  .foot-links { grid-column: 4 / span 5; }
  .foot-colophon { grid-column: 1 / span 5; }
  .theme { grid-column: 6 / span 3; }
}
@media (max-width: 640px) {
  .site-foot { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .foot-copy, .foot-links, .foot-colophon { grid-column: 1 / -1; }
  .theme { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- title page ---------- */
.t-head { margin-top: 32px; align-items: start; row-gap: 40px; }
.t-poster { grid-column: 1 / span 6; touch-action: pan-y; }
.t-poster .poster { aspect-ratio: 4 / 5; padding: 28px 32px 32px; }
.t-poster .poster .p-name { font-size: clamp(40px, 4.4vw, 76px); max-width: 11ch; }
.t-poster .poster .p-tag { display: none; }
.t-poster .poster .p-foot { font-size: 15px; }
.t-sheet { grid-column: 8 / span 5; }
.t-kind { margin: 0; font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.t-kind .studio-icon { width: 44px !important; height: 44px !important; }
.t-sheet h1 { margin: 18px 0 0; font-size: clamp(52px, 5.6vw, 96px); line-height: 0.94; letter-spacing: -0.05em; font-weight: 700; }
.t-sheet h1:focus { outline: none; }
.t-tag { margin: 16px 0 0; font-size: clamp(22px, 2vw, 30px); line-height: 1.25; letter-spacing: -0.02em; }
.t-blurb { margin: 20px 0 0; max-width: 46ch; }
.t-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.t-note { margin: 14px 0 0; font-size: 15px; color: var(--muted); max-width: 46ch; }
.spec { margin: 40px 0 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.spec dt { color: var(--muted); font-size: 15px; padding-top: 2px; }
.spec dd { margin: 0; font-size: 17px; }
@media (max-width: 1080px) {
  .t-poster { grid-column: 1 / span 4; }
  .t-sheet { grid-column: 5 / span 4; }
}
@media (max-width: 640px) {
  .t-poster { grid-column: 1 / -1; order: 2; }
  .t-sheet { grid-column: 1 / -1; order: 1; }
}
.band { margin-top: clamp(72px, 8vw, 120px); border-top: 1px solid var(--line); padding-top: 14px; align-items: baseline; row-gap: 16px; }
.band .label { grid-column: 1 / span 3; }
.band .body { grid-column: 4 / span 8; }
@media (max-width: 1080px) { .band .label { grid-column: 1 / span 2; } .band .body { grid-column: 3 / -1; } }
@media (max-width: 640px) { .band .label, .band .body { grid-column: 1 / -1; } }
.big-fact { margin: 0; font-size: clamp(40px, 5.4vw, 88px); line-height: 1; letter-spacing: -0.045em; font-weight: 500; }
.feat { list-style: none; margin: 0; padding: 0; }
.feat li { padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 20px; line-height: 1.35; }
.feat li:first-child { padding-top: 0; }
.shots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 8px 0 0; padding: 0; list-style: none; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 14px; font-size: 15px; line-height: 1.4; color: var(--muted); max-width: 26ch; }
@media (max-width: 1080px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 640px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 8px; margin-right: calc(-1 * var(--side)); padding-right: var(--side); }
  .shots li { flex: 0 0 62%; scroll-snap-align: start; }
}
.t-links { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.pager { margin-top: clamp(72px, 8vw, 120px); border-top: 1px solid var(--line); padding-top: 14px; row-gap: 24px; }
.pager a { text-decoration: none; display: block; }
.pager .prev { grid-column: 1 / span 6; }
.pager .next { grid-column: 7 / span 6; text-align: right; }
.pager small { display: block; font-size: 15px; color: var(--muted); }
.pager strong { display: block; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.035em; line-height: 1.1; }
.pager a:hover strong { color: var(--accent); }
.pager .hint { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 1080px) { .pager .prev { grid-column: 1 / span 4; } .pager .next { grid-column: 5 / span 4; } }
@media (max-width: 640px) { .pager .prev { grid-column: 1 / span 2; } .pager .next { grid-column: 3 / span 2; } .pager .hint { display: none; } }

/* ---------- apps view ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0; margin-top: 32px; border: 1px solid var(--line); width: max-content; max-width: 100%; }
.filters button { min-height: 44px; padding: 0 18px; border: 0; background: transparent; font-size: 16px; font-weight: 500; cursor: pointer; }
.filters button + button { border-left: 1px solid var(--line); }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.filters .n { margin-left: 6px; font-variant-numeric: tabular-nums; opacity: .6; }

/* ---------- documents (support, privacy, press, studio, contact) ---------- */
.doc-head .crumbs, .doc-head h1, .doc-head .lead { grid-column: 1 / span 10; }
.doc-head .lead { margin-top: 24px; max-width: 44ch; }
@media (max-width: 1080px) { .doc-head .crumbs, .doc-head h1, .doc-head .lead { grid-column: 1 / -1; } }
.qa h3 { margin: 0; font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; }
.qa p { margin: 8px 0 0; max-width: 62ch; }
.qa + .qa { margin-top: 32px; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.list-plain li:first-child { padding-top: 0; }
.mini-title { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.mini-title .studio-icon { width: 32px !important; height: 32px !important; }

/* policy */
.policy-grid { margin-top: clamp(48px, 5vw, 80px); align-items: start; }
.toc { grid-column: 1 / span 3; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--head) + 28px); font-size: 15px; }
.toc ol { list-style: none; margin: 10px 0 0; padding: 0; }
.toc a { display: block; padding: 5px 0; text-decoration: none; color: var(--muted); line-height: 1.35; }
.toc a:hover { color: var(--fg); }
.pp { grid-column: 4 / span 7; max-width: 72ch; }
.pp > p:first-child { margin-top: 0; }
.pp h2 {
  margin: 64px 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  scroll-margin-top: calc(var(--head) + 24px);
}
.pp h2:focus, .pp h3:focus { outline: none; }
.pp h3 { margin: 36px 0 8px; font-size: 20px; letter-spacing: -0.01em; scroll-margin-top: calc(var(--head) + 24px); }
.pp p, .pp li { line-height: 1.62; }
.pp ul { padding-left: 1.15em; }
.pp li + li { margin-top: 6px; }
.pp a { font-weight: 500; }
.pp .pp-table { overflow-x: auto; margin: 22px 0; border-top: 1px solid var(--line); }
.pp table { border-collapse: collapse; width: 100%; min-width: 600px; font-size: 15px; line-height: 1.45; }
.pp th { text-align: left; font-weight: 700; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.pp td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.pp code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.88em; }
@media (max-width: 1080px) {
  .toc { position: static; grid-column: 1 / -1; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
  .toc ol { columns: 2; column-gap: var(--gap); }
  .pp { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* form */
.form { display: grid; gap: 20px; max-width: 640px; }
.field label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  font-size: 17px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field .err { margin: 6px 0 0; font-size: 15px; color: var(--error); }
.form-done { margin: 0; padding: 16px 18px; border: 1px solid var(--line); font-size: 17px; }

/* ---------- grid overlay ---------- */
.grid-overlay { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.grid-overlay .wrap, .grid-overlay .grid { height: 100%; }
.grid-overlay .grid > span { position: relative; background: var(--grid-fill); box-shadow: inset 1px 0 0 var(--grid-edge), inset -1px 0 0 var(--grid-edge); }
.grid-overlay .grid > span::before {
  content: attr(data-n);
  position: absolute;
  left: 6px;
  top: calc(env(safe-area-inset-top, 0px) + var(--head) + 8px);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1080px) { .grid-overlay .grid > span:nth-child(n+9) { display: none; } }
@media (max-width: 640px) { .grid-overlay .grid > span:nth-child(n+5) { display: none; } }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 70;
  max-width: calc(100vw - 32px);
  padding: 14px 18px;
  background: var(--fg);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
}
@media (max-width: 640px) { .toast { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  a.poster:hover .p-phone { transform: none; }
}

/* ---------- the real site: additions to the Swiss Grid concept ---------- */

/* skip link, visible when focused */
.skip { position: absolute; left: 12px; top: -80px; z-index: 80; padding: 10px 14px; background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 500; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* phone menu: a <details> that works without JavaScript */
.menu { display: none; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--fg); color: var(--bg); }
.menu .menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px max(var(--side), env(safe-area-inset-right, 0px)) 24px max(var(--side), env(safe-area-inset-left, 0px));
}
@media (max-width: 860px) { .menu { display: block; } }

/* the last cell of the poster wall when a row isn't full */
.posters > .cell.more { display: flex; flex-direction: column; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 14px; aspect-ratio: 4 / 5; }
.posters > .cell.more p { margin: 0; }
.posters > .cell.more .lead { max-width: 14ch; }
@media (max-width: 640px) { .posters > .cell.more { aspect-ratio: auto; padding-block: 14px 0; } }
@media (min-width: 641px) and (max-width: 1080px) { .posters > .cell { grid-column: span 4; } }

/* store and beta buttons, and notes */
a.btn { text-decoration: none; }
.btn .sub { font-weight: 400; opacity: .72; }
.note { margin: 0; padding: 16px 18px; border: 1px solid var(--line); max-width: 62ch; font-size: 17px; }
.note + .note { margin-top: 12px; }
.note strong { font-weight: 700; }

/* screenshots that aren't phone-shaped (tablets, wide captures) */
.phone.free { aspect-ratio: auto; }
.phone.free .scr { height: auto; }
.phone.free .scr > img { height: auto; }

/* policy anchors are real in-page links on the static site */
.pp h2[id], .pp h3[id] { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--head) + 24px); }

/* 404 */
.lost { padding-block: clamp(64px, 10vw, 160px) 0; }
.lost .view-title { grid-column: 1 / -1; }
.lost .lead { grid-column: 1 / span 7; margin-top: 24px; }
.lost .go-row { grid-column: 1 / -1; }
@media (max-width: 1080px) { .lost .lead { grid-column: 1 / -1; } }

/* page-to-page transitions where the browser supports them */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* a poster for a title without screenshots shows its icon large instead */
.poster .p-mark { position: absolute; right: 9%; bottom: 8%; width: 40%; z-index: 0; }
.poster .p-mark .studio-icon { width: 100% !important; height: auto !important; aspect-ratio: 1; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.35); }

/* screenshots keep their proportions inside the phone frame */
.phone .scr > img { object-fit: cover; object-position: top; }

/* phones: the stacked table rows use the full width (the colgroup widths no longer apply) */
@media (max-width: 640px) {
  .ptable, .ptable tbody { display: block; width: 100%; }
  .ptable colgroup { display: none; }
  .ptable td { width: auto; }
}
