/* Metapass Group: corporate site
   One group, three registers. White paper, true black ink, brand red #CC0000.
   Metapass = routing lines. Livepay = product surface. Superblock = blocks, on black. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --red: #cc0000;
  --wash: #f2f2f2;
  --rule: #dddddd;
  --rule-strong: #bbbbbb;
  --mute: #5e5e5e;
  --ink-2: #2b2b2b;

  --night: #000000;
  --night-rule: #2e2e2e;
  --night-mute: #a3a3a3;
  --night-text: #f2f2f2;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --section: clamp(88px, 11vw, 168px);

  --t-14: 0.875rem;
  --t-16: 1rem;
  --t-18: 1.125rem;
  --t-21: 1.3125rem;
  --t-24: 1.5rem;
  --t-display-s: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  --t-display-m: clamp(2.375rem, 1.3rem + 3.6vw, 4.25rem);
  --t-display-l: clamp(2.75rem, 1rem + 6.2vw, 6.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/* Anchor targets clear the sticky header. This sits on the targets, not as scroll-padding on html:
   scroll-padding made the browser scroll the page whenever the menu button (inside the sticky
   header) received focus, so opening the menu jumped the page. */
main[id], section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-18);
  line-height: 1.55;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.display {
  font-stretch: 112%;
  font-weight: 520;
  letter-spacing: -0.028em;
  line-height: 1.02;
  text-wrap: balance;
}
.display--l { font-size: var(--t-display-l); }
.display--m { font-size: var(--t-display-m); line-height: 1.04; }
.display--s { font-size: var(--t-display-s); line-height: 1.08; letter-spacing: -0.022em; }

.lede {
  font-size: var(--t-21);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.prose p { max-width: 36em; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }

.small { font-size: var(--t-14); line-height: 1.5; color: var(--mute); }

/* ---------- Links and buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-16);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--rule-strong);
  transition: text-decoration-color 0.2s var(--ease);
}
.textlink:hover { text-decoration-color: currentColor; }
.textlink__icon { width: 14px; height: 14px; flex: none; }

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--rule); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.groupmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.groupmark__logo { height: 21px; width: auto; }
.groupmark__divider { width: 1px; height: 22px; background: var(--rule-strong); }
.groupmark__word {
  font-size: 1.1875rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1;
  transform: translateY(-1px);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__panel { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: var(--t-16);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--wash); }
.nav__link[aria-current="true"] { color: var(--ink); }
.nav__cta { margin-left: 10px; min-height: 44px; padding: 0 20px; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 14px;
  background: none;
  border: 0;
  font-weight: 600;
  font-size: var(--t-16);
  cursor: pointer;
}
.menu-btn__bars { position: relative; width: 22px; height: 12px; }
.menu-btn__bars::before, .menu-btn__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.menu-btn__bars::before { top: 0; }
.menu-btn__bars::after { top: 10px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav__panel {
    /* Anchored to the bottom edge, so the panel follows the phone's toolbar without resizing */
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--paper);
    padding: 24px var(--gutter) 40px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--rule);
    /* Closed: invisible and out of the tab order; fades out, then hides */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  .nav__panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: flex;
    width: 100%;
    min-height: 60px;
    padding: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--rule);
    font-size: var(--t-24);
    font-stretch: 108%;
    font-weight: 500;
  }
  .nav__link:hover { background: none; }
  .nav__cta { margin: 28px 0 0; align-self: flex-start; min-height: 52px; }
  html.menu-open { overflow: hidden; }
}

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

.hero { padding-top: clamp(56px, 9vw, 128px); }

.hero__title { max-width: 13.5em; }

.hero__intro {
  margin-top: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 28px;
  align-items: end;
}
.hero__intro .lede { grid-column: 1 / span 7; }
.hero__actions {
  grid-column: 9 / span 4;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.areas {
  margin-top: clamp(64px, 8vw, 112px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}
.area {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 36px 0;
}
.area + .area { padding-left: 28px; border-left: 1px solid var(--rule); }
.area__category {
  font-size: var(--t-display-s);
  font-stretch: 112%;
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.05;
}
.area__motif {
  margin: 28px 0 26px;
  height: 120px;
  color: var(--ink);
}
.area__motif svg { width: 100%; height: 100%; }
.area__logo { height: 26px; width: auto; align-self: flex-start; }
.area__logo--livepay { height: 30px; }
.area__logo--superblock { height: 29px; }
.area__text { margin-top: 16px; color: var(--ink-2); max-width: 22em; font-size: var(--t-16); }
.area__link {
  margin-top: auto;
  padding-top: 18px;
}
.area__link .textlink { font-size: var(--t-16); }

@media (max-width: 960px) {
  .hero__intro .lede { grid-column: 1 / -1; }
  .hero__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .areas { grid-template-columns: 1fr; border-top: 0; }
  .area, .area + .area {
    padding: 28px 0 32px;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
  .area + .area { border-top-color: var(--rule); }
  .area__motif { height: 104px; max-width: 420px; }
}

@media (min-width: 601px) and (max-width: 960px) {
  .area { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-content: start; }
  .area > * { grid-column: 1; }
  .area__motif { grid-column: 2; grid-row: 1 / span 4; margin: 8px 0 0; align-self: center; }
  .area__logo { margin-top: 14px; }
  .area__link { margin-top: 0; }
}

/* ---------- Motifs (shared drawing language) ---------- */

.m-line { fill: none; stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.m-faint { fill: none; stroke: var(--rule-strong); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.m-node { fill: var(--paper); stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.m-solid { fill: currentColor; }
.m-pulse {
  fill: none; stroke: var(--red); stroke-width: 2.25; vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  opacity: 0;
}
.m-pulse.is-on { opacity: 1; }
.m-end { transition: fill 0.35s var(--ease); }
.m-end.is-hit { fill: var(--red); stroke: var(--red); }

.qr-cell { fill: currentColor; }
.qr-scan { fill: var(--red); opacity: 0; }
.qr-check-ring { fill: none; stroke: var(--rule-strong); stroke-width: 1.25; vector-effect: non-scaling-stroke; transition: stroke 0.3s var(--ease), fill 0.3s var(--ease); }
.qr-check { fill: none; stroke: var(--paper); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 40; stroke-dashoffset: 40; }
.is-paid .qr-check-ring { fill: var(--red); stroke: var(--red); }
.is-paid .qr-check { stroke-dashoffset: 0; transition: stroke-dashoffset 0.45s var(--ease) 0.1s; }

.blk { fill: var(--paper); stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.blk--new { fill: var(--red); stroke: var(--red); }
.blk-link { stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.blk-row { transition: transform 0.9s var(--ease); transform-box: view-box; }
.chain { overflow: hidden; }

/* ---------- Section scaffolding ---------- */

.section { padding-block: var(--section); }
.section--rule { border-top: 1px solid var(--rule); }

.section__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 24px;
  align-items: end;
}
.section__head .display { grid-column: 1 / span 8; }
.section__head .lede { grid-column: 1 / span 7; }
@media (max-width: 960px) {
  .section__head .display, .section__head .lede { grid-column: 1 / -1; }
}

/* ---------- Problem (same layout as the entity sections) ---------- */

.problem__title { grid-column: 1 / span 8; }
.problem__text { grid-column: 1 / span 5; align-self: center; }
.problem__text .entity__body { margin-top: 0; }
.problem__figure { grid-column: 7 / span 6; align-self: center; }

@media (max-width: 1080px) {
  .problem__title, .problem__text, .problem__figure { grid-column: 1 / -1; }
  .problem__figure { max-width: 720px; }
}

.ecosystem-intro { padding-bottom: clamp(48px, 6vw, 88px); }
.section--after-intro { padding-top: 0; }

/* ---------- Entity sections (shared) ---------- */

.entity {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 48px;
}
.entity__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding-bottom: 20px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
.entity__kind { font-size: var(--t-16); font-weight: 600; }
.entity__logo { height: 30px; width: auto; margin-bottom: 28px; }
.entity__body { margin-top: 24px; color: var(--ink-2); }
.entity__link { margin-top: 32px; }

/* ---------- Metapass ---------- */

.mp__text { grid-column: 1 / span 5; }
.mp__figure { grid-column: 7 / span 6; align-self: center; }

.route { width: 100%; height: auto; color: var(--ink); }
.route text { font-family: var(--font); font-size: 15px; fill: var(--ink); }
.route .route__mute { fill: var(--mute); }
.route .route__core-label { fill: var(--paper); font-weight: 600; font-size: 16px; }
.route__caption { margin-top: 18px; }
.route--portrait { display: none; }
.route--portrait text { font-size: 17px; }
.route--portrait .route__core-label { font-size: 18px; }
@media (max-width: 600px) {
  .route--landscape { display: none; }
  .route--portrait { display: block; max-width: 400px; }
}

.coverage {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--ink);
}
.coverage__figures {
  grid-column: 1 / span 7;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.coverage__num {
  display: block;
  font-size: var(--t-display-m);
  font-stretch: 112%;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.coverage__label { display: block; margin-top: 10px; font-size: var(--t-16); color: var(--ink-2); }
.coverage__note { grid-column: 1 / span 7; grid-row: 2; }

.partners { grid-column: 9 / span 4; grid-row: 1 / span 2; }
.partners__title { font-size: var(--t-16); font-weight: 600; }
.partners__list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  align-items: center;
  gap: 22px 28px;
}
.partners__list img {
  width: auto;
  filter: grayscale(1) contrast(1.15);
  opacity: 0.8;
}

@media (max-width: 1080px) {
  .mp__text, .mp__figure { grid-column: 1 / -1; }
  .mp__figure { max-width: 720px; }
  .coverage__figures, .coverage__note, .partners { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 560px) {
  .coverage__figures { grid-template-columns: 1fr; gap: 20px; }
  .coverage__figures > div { display: flex; align-items: baseline; gap: 16px; }
  .coverage__label { margin-top: 0; }
  .partners__list { grid-template-columns: repeat(2, auto); }
}

/* ---------- Livepay ---------- */

.lp__device { grid-column: 1 / span 5; display: flex; gap: 32px; align-items: flex-start; }
.lp__text { grid-column: 7 / span 6; }

.phone {
  flex: none;
  width: 268px;
  aspect-ratio: 268 / 548;
  border-radius: 42px;
  background: var(--ink);
  padding: 10px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 30px 60px -30px rgba(0, 0, 0, 0.35);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 33px;
  background: var(--paper);
  overflow: hidden;
}
.phone__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px 0;
  font-size: 12px;
  font-weight: 600;
}
.phone__island { width: 74px; height: 22px; border-radius: 999px; background: var(--ink); }

.screen {
  position: absolute;
  inset: 52px 0 0 0;
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.screen.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s;
}
.screen__top { display: flex; align-items: center; justify-content: space-between; }
.screen__logo { height: 18px; width: auto; }
.screen__title { margin-top: 26px; font-size: 21px; font-weight: 600; line-height: 1.2; font-stretch: 104%; letter-spacing: -0.01em; }
.screen__sub { margin-top: 6px; font-size: 13px; color: var(--mute); line-height: 1.4; }
.screen__foot { margin-top: auto; text-align: center; }

.viewfinder {
  margin: 26px auto 0;
  width: 172px;
  aspect-ratio: 1;
  position: relative;
}
.viewfinder::before, .viewfinder::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--ink), var(--ink)) top left / 26px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top left / 2px 26px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top right / 26px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top right / 2px 26px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom left / 26px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom left / 2px 26px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom right / 26px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom right / 2px 26px no-repeat;
}
.viewfinder::after { display: none; }
.viewfinder svg { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); }
.viewfinder__line {
  position: absolute; left: 14px; right: 14px; height: 2px; top: 50%;
  background: var(--red);
}

.amount { margin-top: 26px; font-size: 40px; font-weight: 560; font-stretch: 108%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rows { margin-top: 22px; border-top: 1px solid var(--rule); }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.rows dt { color: var(--mute); }
.rows dd { font-weight: 600; text-align: right; }

.screen__btn {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center;
  height: 48px;
  border-radius: 999px;
  background: var(--red);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
}
.screen__btn--quiet { background: var(--wash); color: var(--ink); }

.done {
  margin: 44px auto 0;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--red);
  display: grid; place-items: center;
}
.done svg { width: 34px; height: 34px; }
.screen--done { text-align: center; }
.screen--done .screen__top { text-align: left; }

.steps { counter-reset: step; display: flex; flex-direction: column; gap: 4px; padding-top: 24px; min-width: 0; }
.steps button {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 4px 10px;
  align-items: baseline;
  width: 100%;
  min-height: 44px;
  padding: 12px 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  cursor: pointer;
  color: var(--mute);
  transition: color 0.25s var(--ease);
}
.steps li:last-child button { border-bottom: 1px solid var(--rule); }
.steps button::before {
  counter-increment: step;
  content: counter(step);
  font-size: var(--t-14);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.steps button[aria-pressed="true"] { color: var(--ink); }
.steps button[aria-pressed="true"]::before { color: var(--red); }
.steps button:hover { color: var(--ink); }
.steps__label { font-size: var(--t-16); font-weight: 600; }


@media (max-width: 1080px) {
  .lp__device, .lp__text { grid-column: 1 / -1; }
  .lp__text { order: -1; }
}
@media (max-width: 560px) {
  .lp__device { flex-direction: column; align-items: center; }
  .steps { width: 100%; padding-top: 0; }
}

/* ---------- Superblock (dark register) ---------- */

.sb {
  background: var(--night);
  color: var(--night-text);
}
.sb :focus-visible { outline-color: var(--paper); }
.sb .entity__meta { border-bottom-color: var(--night-rule); }
.sb .entity__body, .sb .lede { color: #d4d4d4; }
.sb .textlink { text-decoration-color: #6a6a6a; }
.sb .textlink:hover { text-decoration-color: currentColor; }

.sb__text { grid-column: 1 / span 6; }
.sb__visual { grid-column: 8 / span 5; align-self: center; color: var(--night-text); }
.sb__visual svg { width: 100%; height: auto; }

.sb__supports-wrap { grid-column: 8 / span 5; }
.sb__supports {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--night-rule);
}
.sb__supports li {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--night-rule);
  font-size: var(--t-18);
  font-weight: 500;
}
.sb__supports li:nth-child(odd) { border-right: 1px solid var(--night-rule); }
.sb__supports li:nth-child(even) { padding-left: 20px; }
.sb__supports-title { margin-bottom: 14px; font-size: var(--t-16); font-weight: 600; color: var(--night-mute); }

.sb .blk { fill: var(--night); stroke: var(--night-text); }
.sb .blk--new { fill: var(--red); stroke: var(--red); }
.sb .blk-link { stroke: #5a5a5a; }
.sb .sb-app { fill: var(--night); stroke: #8c8c8c; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.sb .sb-tx { fill: none; stroke: #6e6e6e; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.sb .sb-label { font-family: var(--font); font-size: 14px; fill: var(--night-mute); }
@media (max-width: 600px) { .sb .sb-label { font-size: 22px; } }

@media (max-width: 1080px) {
  .sb__text, .sb__visual, .sb__supports-wrap { grid-column: 1 / -1; }
  .sb__visual { max-width: 620px; }
}
@media (max-width: 480px) {
  .sb__supports { grid-template-columns: 1fr; }
  .sb__supports li:nth-child(odd) { border-right: 0; }
  .sb__supports li:nth-child(even) { padding-left: 0; }
}

/* ---------- Founder ---------- */

.founder {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 48px;
  align-items: start;
}
.founder__title { grid-column: 1 / -1; }
.founder__photo { grid-column: 1 / span 3; max-width: 250px; } /* 4:5 portrait, about 312px tall */
.founder__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.founder__text { grid-column: 4 / span 7; }
.founder__name { font-size: var(--t-24); font-weight: 600; font-stretch: 106%; letter-spacing: -0.01em; }
.founder__role { margin-top: 2px; color: var(--mute); font-size: var(--t-16); }
.founder__bio { margin-top: 20px; color: var(--ink-2); font-size: var(--t-18); }

@media (max-width: 960px) {
  .founder__photo { grid-column: 1 / span 5; }
  .founder__text { grid-column: 6 / -1; }
}
@media (max-width: 600px) {
  .founder__photo { grid-column: 1 / span 8; max-width: 260px; }
  .founder__text { grid-column: 1 / -1; }
}

/* ---------- Contact ---------- */

.contact { border-top: 1px solid var(--rule); }
.contact__lede { margin-top: 20px; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 32px;
}
.contact__main { grid-column: 1 / span 8; }
.contact__email {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(1.375rem, 0.85rem + 3vw, 3.25rem);
  font-stretch: 108%;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  text-decoration-color: var(--red);
  overflow-wrap: anywhere;
}
.contact__email:hover { color: var(--red); }
.contact__side { grid-column: 9 / span 4; align-self: end; display: grid; gap: 24px; font-size: var(--t-16); }
.contact__side h3 { font-size: var(--t-16); font-weight: 600; }
.contact__side p { color: var(--ink-2); }
.contact__side a { display: inline-block; padding-block: 3px; text-underline-offset: 4px; text-decoration-color: var(--rule-strong); }
.contact__side a:hover { text-decoration-color: currentColor; }

@media (max-width: 960px) {
  .contact__main, .contact__side { grid-column: 1 / -1; }
}

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

.footer { padding-block: 48px 40px; background: var(--paper); border-top: 1px solid var(--rule); font-size: var(--t-14); color: var(--ink-2); }
.footer__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
  padding-bottom: 28px; border-bottom: 1px solid var(--rule);
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; font-size: var(--t-16); }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer__legal p { color: var(--mute); }
.footer__legal-links { display: flex; gap: 24px; }
.footer__legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-underline-offset: 3px; }
.footer__legal { align-items: center; }

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

.legal { padding-block: clamp(56px, 8vw, 112px) var(--section); }
.legal__inner { max-width: 44rem; }
.legal__date { font-size: var(--t-16); color: var(--mute); margin-bottom: 18px; }
.legal h1 { margin-bottom: 28px; }
.legal__intro { font-size: var(--t-18); color: var(--ink-2); }
.legal h2 { margin-top: 56px; margin-bottom: 14px; font-size: var(--t-24); font-weight: 600; font-stretch: 106%; letter-spacing: -0.01em; line-height: 1.25; }
.legal h3 { margin-top: 32px; margin-bottom: 10px; font-size: var(--t-18); font-weight: 600; }
.legal p, .legal li { font-size: var(--t-16); line-height: 1.65; color: var(--ink-2); }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0; padding-left: 1.25em; list-style: disc; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--mute); }
.legal a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
.legal a:hover { color: var(--red); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Print ---------- */

@media print {
  .header, .skip-link, .menu-btn { display: none !important; }
  .sb { background: #fff; color: #000; }
}
