/* ==========================================================================
   CONVERT DESIGN LIMITED — site styles
   Fonts are self-hosted (no third-party requests from visitors' browsers).
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/dmmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/dmmono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f3eee5;
  --paper-2: #e9e2d5;
  --ink: #1d1b18;
  --ink-2: #4a463f;
  --ink-3: #7a7468;
  --line: #d6cdbd;
  --tomato: #e0532f;
  --tomato-deep: #b63f21;
  --pine: #24564a;
  --butter: #f1c453;
  --sky: #8fb3c9;

  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain — fixed, non-interactive */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 0 0.32 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

::selection {
  background: var(--butter);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--tomato);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 14px;
}
.skip:focus {
  top: 12px;
}

.mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* placeholder values awaiting real company details */
.ph {
  background: repeating-linear-gradient(-45deg, rgba(241, 196, 83, 0.45) 0 6px, rgba(241, 196, 83, 0.25) 6px 12px);
  border-radius: 4px;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 0.86em;
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 238, 229, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.scrolled {
  border-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 16px;
  line-height: 1;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.brand-mark .m-sq {
  transition: rx 0.5s var(--ease);
}
.brand:hover .brand-mark .m-sq {
  rx: 17;
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav a:hover {
  background: var(--paper-2);
}
.nav a[aria-current="page"] {
  background: var(--paper-2);
}
.nav .nav-cta {
  background: var(--ink);
  color: var(--paper);
  margin-left: 6px;
}
.nav .nav-cta:hover {
  background: var(--tomato);
}

@media (max-width: 760px) {
  .nav a:not(.nav-cta) {
    display: none;
  }
  .brand small {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover {
  background: var(--tomato);
  border-color: var(--tomato);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hero-kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: 0 0 0 4px rgba(224, 83, 47, 0.18);
}
.hero h1 {
  font-size: clamp(48px, 8.4vw, 118px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 32px;
  font-variation-settings: "opsz" 96;
}
.hero h1 .swap {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--tomato);
  padding-right: 0.06em;
}
.hero h1 .line {
  display: block;
}
.hero-lede {
  max-width: 34em;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-2);
  margin: 0 0 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* the converting board */
.board-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 400px);
}
.phone {
  position: relative;
  aspect-ratio: 9 / 17;
  background: var(--ink);
  border-radius: 46px;
  padding: 14px;
  transform: rotate(4deg);
  box-shadow: 0 2px 0 #0e0d0b inset, 0 40px 80px -30px rgba(46, 33, 20, 0.55), 0 12px 24px -12px rgba(46, 33, 20, 0.35);
}
.screen {
  height: 100%;
  border-radius: 34px;
  background: #f8f4ec;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px;
}
.screen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.screen-score {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.screen-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex: 1;
  align-content: start;
}
.tile {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--c, var(--tomato));
  animation: convert 6s var(--ease) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes convert {
  0%, 18% {
    border-radius: 6px;
    transform: rotate(0) scale(1);
  }
  28%, 46% {
    border-radius: 50%;
    transform: rotate(90deg) scale(0.86);
  }
  56%, 74% {
    border-radius: 50% 6px 50% 6px;
    transform: rotate(180deg) scale(0.94);
  }
  84%, 100% {
    border-radius: 6px;
    transform: rotate(360deg) scale(1);
  }
}
.screen-bar {
  margin-top: 16px;
  height: 46px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.sticker {
  position: absolute;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(46, 33, 20, 0.45);
}
.sticker-1 {
  top: 12%;
  left: -14%;
  background: var(--butter);
  transform: rotate(-8deg);
}
.sticker-2 {
  bottom: 14%;
  right: -10%;
  background: var(--pine);
  color: var(--paper);
  transform: rotate(6deg);
}
.burst {
  position: absolute;
  width: 92px;
  height: 92px;
  right: -6%;
  top: -4%;
  color: var(--tomato);
  animation: spin 18s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .board-wrap {
    width: min(78%, 330px);
    margin-top: 12px;
  }
  .sticker-1 {
    left: -18%;
  }
}

/* ---------- Ticker ---------- */

.ticker {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--butter);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  animation: tick 38s linear infinite;
}
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 16px 14px;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.01em;
}
.ticker span::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--ink);
  transform: rotate(45deg);
}
@keyframes tick {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(72px, 10vw, 140px) 0;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tomato-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
}
.section h2 {
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0;
}
.section h2 em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.section-head p {
  color: var(--ink-2);
  font-size: 18px;
  max-width: 36em;
  margin: 0;
  justify-self: end;
}
@media (max-width: 820px) {
  .section-head {
    grid-template-columns: 1fr;
  }
  .section-head p {
    justify-self: start;
  }
}

/* What we make */
.make {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.make-card {
  border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 44px);
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--ink);
}
.make-games {
  grid-column: 1 / span 7;
  background: var(--ink);
  color: var(--paper);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.make-apps {
  grid-column: 8 / span 5;
  background: var(--paper-2);
  margin-top: 80px;
  display: flex;
  flex-direction: column;
}
.make-card h3 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  font-weight: 800;
}
.make-card > p {
  margin: 0 0 28px;
  max-width: 30em;
  opacity: 0.86;
}
.make-card .num {
  opacity: 0.6;
  margin-bottom: auto;
  padding-bottom: 48px;
}
.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  border: 1.2px solid currentColor;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 500;
}
.make-games .shapes {
  position: absolute;
  right: -30px;
  top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 10px;
  transform: rotate(-12deg);
  opacity: 0.95;
}
.make-games .shapes i {
  width: 58px;
  height: 58px;
  display: block;
  border-radius: 8px;
  transition: border-radius 0.6s var(--ease), transform 0.6s var(--ease);
}
.make-games:hover .shapes i:nth-child(odd) {
  border-radius: 50%;
  transform: scale(0.85);
}
.make-games:hover .shapes i:nth-child(even) {
  transform: rotate(45deg) scale(0.8);
}
.make-apps .app-icons {
  display: flex;
  gap: 12px;
  margin-bottom: auto;
  padding-bottom: 48px;
}
.make-apps .app-icons i {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  transition: transform 0.4s var(--ease);
}
.make-apps:hover .app-icons i:nth-child(1) {
  transform: translateY(-8px) rotate(-6deg);
}
.make-apps:hover .app-icons i:nth-child(2) {
  transform: translateY(-4px);
}
.make-apps:hover .app-icons i:nth-child(3) {
  transform: translateY(-10px) rotate(8deg);
}
.make-apps .app-icons svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 900px) {
  .make-games,
  .make-apps {
    grid-column: 1 / -1;
    margin-top: 0;
    min-height: 0;
  }
  .make-games .shapes {
    grid-template-columns: repeat(3, 40px);
    right: -14px;
    top: 18px;
  }
  .make-games .shapes i {
    width: 40px;
    height: 40px;
  }
}

/* Process */
.process {
  background: var(--pine);
  color: var(--paper);
  border-radius: 0;
}
.process .eyebrow {
  color: var(--butter);
}
.process .section-head p {
  color: rgba(243, 238, 229, 0.78);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  border-top: 1px solid rgba(243, 238, 229, 0.25);
}
.steps li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid rgba(243, 238, 229, 0.25);
  transition: padding 0.4s var(--ease), background 0.4s;
  position: relative;
}
.steps li:hover {
  padding-left: 18px;
}
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--butter);
}
.steps h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
}
.steps p {
  margin: 0;
  color: rgba(243, 238, 229, 0.8);
  max-width: 36em;
}
@media (max-width: 760px) {
  .steps li {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Principles */
.principles {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
}
.principles-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}
.principles-intro p {
  color: var(--ink-2);
  font-size: 18px;
  margin: 24px 0 0;
}
.principles-intro a {
  color: var(--tomato-deep);
  font-weight: 600;
}
.pr-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pr-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding: 34px 0;
  border-top: 1.5px solid var(--ink);
}
.pr-list li:last-child {
  border-bottom: 1.5px solid var(--ink);
}
.pr-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper-2);
}
.pr-ico svg {
  width: 28px;
  height: 28px;
}
.pr-list h3 {
  margin: 2px 0 8px;
  font-size: 26px;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.pr-list p {
  margin: 0;
  color: var(--ink-2);
}
@media (max-width: 820px) {
  .principles {
    grid-template-columns: 1fr;
  }
  .principles-intro {
    position: static;
  }
  .pr-list li {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Google Play band */
.play {
  padding: 0 0 clamp(72px, 10vw, 140px);
}
.play-card {
  background: var(--tomato);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 32px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.play-card::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -90px;
  top: -150px;
  border-radius: 50%;
  border: 1.5px dashed rgba(29, 27, 24, 0.5);
  pointer-events: none;
}
.play-card h2 {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
  font-weight: 800;
}
.play-card p {
  margin: 0;
  max-width: 32em;
  font-size: 18px;
}
.gp-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: 14px 22px 14px 18px;
  text-decoration: none;
  transition: transform 0.3s var(--ease);
  position: relative;
  z-index: 1;
}
.gp-badge:hover {
  transform: translateY(-3px) rotate(-1.5deg);
}
.gp-badge svg {
  width: 34px;
  height: 34px;
}
.gp-badge small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
.gp-badge strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
@media (max-width: 760px) {
  .play-card {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* Contact */
.contact {
  padding-top: 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.contact h2 {
  margin-bottom: 28px;
}
.mail-link {
  display: inline-block;
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  border-bottom: 3px solid var(--tomato);
  padding-bottom: 4px;
  word-break: break-word;
  transition: color 0.2s;
}
.mail-link:hover {
  color: var(--tomato-deep);
}
.mail-link .ph {
  font-size: 0.6em;
  white-space: normal;
}
.contact-meta {
  display: grid;
  gap: 0;
  margin: 0;
}
.contact-meta div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact-meta dt {
  color: var(--ink-3);
  margin-bottom: 6px;
}
.contact-meta dd {
  margin: 0;
  font-size: 17px;
}
@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(243, 238, 229, 0.18);
}
.footer-word {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0;
}
.footer-word em {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--butter);
}
.footer-col h4 {
  margin: 0 0 16px;
  color: rgba(243, 238, 229, 0.55);
  font-weight: 400;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--butter);
}
.footer-legal {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: rgba(243, 238, 229, 0.6);
}
.footer-legal p {
  margin: 0;
  max-width: 60em;
}
.site-footer .ph {
  color: var(--ink);
}
@media (max-width: 820px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1.5px solid var(--ink);
}
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.legal-tabs a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.2px solid var(--ink);
  transition: background 0.2s, color 0.2s;
}
.legal-tabs a:hover {
  background: var(--paper-2);
}
.legal-tabs a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}
.legal-hero h1 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 24px;
}
.legal-hero h1 em {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--tomato);
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: var(--ink-2);
}

.legal-body {
  padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 10vw, 120px);
}
.legal-body .wrap {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
}
.toc {
  position: sticky;
  top: 108px;
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow: auto;
}
.toc p {
  margin: 0 0 14px;
  color: var(--ink-3);
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  border-left: 1.5px solid var(--line);
}
.toc li {
  counter-increment: toc;
}
.toc a {
  display: flex;
  gap: 10px;
  padding: 6px 0 6px 16px;
  margin-left: -1.5px;
  border-left: 1.5px solid transparent;
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 2px;
}
.toc a:hover {
  color: var(--ink);
}
.toc a.active {
  color: var(--ink);
  border-color: var(--tomato);
  font-weight: 600;
}

.prose {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  max-width: 44em;
  color: #2a2722;
  font-variation-settings: "opsz" 16;
}
.prose > :first-child {
  margin-top: 0;
}
.prose .summary {
  font-size: 21px;
  line-height: 1.5;
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin: 0 0 48px;
  border-left: 4px solid var(--tomato);
}
.prose .summary strong {
  font-family: var(--display);
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--tomato-deep);
}
.prose h2 {
  font-family: var(--display);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 64px 0 18px;
  color: var(--ink);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.prose h2 .n {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--tomato-deep);
  letter-spacing: 0;
}
.prose h3 {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--ink);
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 18px;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 8px;
}
.prose li::marker {
  color: var(--tomato);
}
.prose a {
  color: var(--tomato-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose strong {
  font-weight: 600;
  color: var(--ink);
}
.table-scroll {
  overflow-x: auto;
  margin: 8px 0 28px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.45;
  min-width: 620px;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.prose th {
  background: var(--paper-2);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose .note {
  font-family: var(--display);
  font-size: 15.5px;
  background: transparent;
  border: 1.5px dashed var(--ink-3);
  border-radius: 14px;
  padding: 18px 22px;
  color: var(--ink-2);
}
.prose address {
  font-style: normal;
}

@media (max-width: 900px) {
  .legal-body .wrap {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    max-height: none;
    background: var(--paper-2);
    border-radius: var(--radius);
    padding: 22px;
  }
  .prose {
    font-size: 18px;
  }
}

/* ---------- 404 ---------- */

.lost {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: left;
  padding: 80px 0;
}
.lost h1 {
  font-size: clamp(80px, 16vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  margin: 0 0 24px;
  font-weight: 800;
}
.lost h1 em {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--tomato);
}
.lost p {
  font-size: 20px;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 30em;
}

/* ---------- Motion ---------- */

.rise {
  animation: rise 0.9s var(--ease) both;
  animation-delay: var(--r, 0s);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--r, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
