/*
 * AINA Technologies. Static, no build step. One stylesheet for every page.
 *
 * Idea: security printing. The engraved rosette on a banknote or a passport is the oldest
 * picture of "you can trust this document". Ours is drawn in code (assets/aina.js) in Shft
 * ultramarine on paper. Three fields only: paper, ultramarine, ink.
 *
 * Type: Archivo (SIL Open Font Licence, self-hosted in /fonts), one variable family with two
 * voices: a narrow cut for display type and the full width for reading.
 *
 * Colour: the blue is Shft's own. Every blue on the site is --signal, --signal-soft or
 * --signal-text, the same tokens as apps/web/app/globals.css, or a transparency of them.
 * The neutrals follow the Shft app's ink and dark; the paper is AINA's own, a little warmer.
 */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
/* Arial squeezed to Archivo's metrics, so the page barely moves when the font arrives. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 97.5%;
  ascent-override: 90.3%;
  descent-override: 21.5%;
  line-gap-override: 0%;
}

:root {
  --paper: #f3f0e9;
  --paper-a: rgba(243, 240, 233, 0.82);
  --paper-2: #e9e6dc;
  --card: #fbfaf6;
  --ink: #121210;
  --ink-2: #3e3d38;
  --muted: #66655e;
  --line: rgba(18, 18, 16, 0.14);
  --line-2: rgba(18, 18, 16, 0.28);

  /* Shft's tokens, verbatim from apps/web/app/globals.css */
  --signal: #3d3bf3;
  --signal-ink: #ffffff;
  --signal-soft: rgba(61, 59, 243, 0.14);
  --signal-text: #3d3bf3;
  --wait: #98510a;
  --wait-mark: #eb9514;

  --on-signal: #f7f7f4;
  --deep: #121210;
  --on-deep: #f2f2ee;

  --sans: "Archivo", "Archivo Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1320px;
  --gut: clamp(20px, 4.4vw, 64px);
  --sec: clamp(88px, 11vw, 168px);
  --r-xl: clamp(24px, 3vw, 40px);
  --r-lg: 28px;
  --ease: cubic-bezier(0.16, 0.84, 0.24, 1);

  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c0c0b;
    --paper-a: rgba(12, 12, 11, 0.8);
    --paper-2: #151514;
    --card: #181817;
    --ink: #f2f2ee;
    --ink-2: #cdccc5;
    --muted: #9a9992;
    --line: rgba(242, 242, 238, 0.14);
    --line-2: rgba(242, 242, 238, 0.3);
    --signal: #4b49ff;
    --signal-soft: rgba(90, 88, 255, 0.2);
    --signal-text: #a3a1ff;
    --wait: #f2b04a;
    --wait-mark: #f2b04a;
    --deep: #050504;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
p,
figure,
address {
  margin: 0;
}
address {
  font-style: normal;
}
::selection {
  background: var(--signal);
  color: var(--signal-ink);
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}
@media (prefers-color-scheme: dark) {
  a:focus-visible,
  button:focus-visible {
    outline-color: var(--signal-text);
  }
}
.safety :focus-visible,
.band-signal :focus-visible,
.name :focus-visible,
.band-deep :focus-visible,
.footer :focus-visible {
  outline-color: #fff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 500;
  transition: top 0.2s;
}
.skip:focus {
  top: 16px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* Type. The narrow cut speaks, the full width explains. */
.display,
.h2,
.h3,
.statement,
.name-h,
.write h2,
.band-lead,
.commit h3,
.pr-side h3,
.goal h3,
.rows h3,
.where {
  word-spacing: 0.05em;
}
.display {
  font-stretch: 88%;
  font-weight: 385;
  letter-spacing: -0.037em;
  line-height: 0.92;
  font-size: clamp(3.7rem, 16.6vw, 6.5rem);
}
@media (min-width: 900px) {
  .display {
    font-size: clamp(6rem, 10.6vw, 11.6rem);
  }
}
.display-m {
  font-size: clamp(3.3rem, 14.6vw, 5.8rem);
}
@media (min-width: 900px) {
  .display-m {
    font-size: clamp(5.2rem, 8.6vw, 9.4rem);
  }
}
.h2 {
  font-stretch: 90%;
  font-weight: 390;
  font-size: clamp(2.5rem, 5.8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.034em;
  text-wrap: balance;
}
.h3 {
  font-stretch: 92%;
  font-weight: 420;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -0.026em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34ch;
  text-wrap: balance;
}

/* Arrow used inside buttons and links */
.arr {
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.4em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
a:hover > .arr {
  transform: translate(2px, -2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn-sm {
  height: 42px;
  padding: 0 18px;
  font-size: 15px;
}
.btn-blue {
  background: var(--signal);
  color: var(--signal-ink);
  box-shadow: 0 10px 30px -12px var(--signal);
}
.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px var(--signal);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  background: var(--signal);
  color: var(--signal-ink);
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-light {
  background: var(--on-deep);
  color: #121210;
}
.btn-light:hover {
  transform: translateY(-2px);
}

/* Text link with a drawn underline */
.link {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--signal-text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.35s var(--ease);
}
.link:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}
.link-light {
  color: inherit;
}

/* Logo: the rosette is a mask, so it takes any colour */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: 0.14em;
  font-size: 15px;
}
.mark {
  width: 30px;
  height: 30px;
  background: var(--signal);
  -webkit-mask: url("mark.svg") center / contain no-repeat;
  mask: url("mark.svg") center / contain no-repeat;
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.nav.is-stuck,
.nav.is-open {
  background: var(--paper-a);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-in {
  max-width: calc(var(--wrap) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav .brand {
  color: var(--ink);
}
.menu ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.menu a:not(.btn) {
  font-size: 15.5px;
  font-weight: 450;
  color: var(--ink-2);
  padding: 8px 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.2s, background-size 0.35s var(--ease);
}
.menu a:not(.btn):hover,
.menu a[aria-current="page"] {
  color: var(--ink);
  background-size: 100% 1px;
}
.menu-btn {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: max(700px, 100svh);
  display: flex;
  align-items: flex-end;
  padding: 132px 0 96px;
  overflow: hidden;
}
.hero-in {
  position: relative;
  z-index: 2;
}
.ln {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.06em 0.14em 0;
  margin: -0.04em 0 -0.14em;
}
.ln > span {
  display: block;
}
.hero-foot {
  margin-top: clamp(28px, 4vw, 52px);
  max-width: 520px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-art,
.phero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 12%, #000 46%), linear-gradient(180deg, transparent 0, #000 140px);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 12%, #000 46%), linear-gradient(180deg, transparent 0, #000 140px);
  mask-composite: intersect;
}
.phero-art {
  -webkit-mask-image: linear-gradient(90deg, transparent 12%, #000 46%), linear-gradient(180deg, transparent 0, #000 140px, #000 calc(100% - 120px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 12%, #000 46%), linear-gradient(180deg, transparent 0, #000 140px, #000 calc(100% - 120px), transparent 100%);
}
.hero-art-in {
  position: absolute;
  top: 50%;
  right: -19vw;
  width: min(152vh, 104vw);
  aspect-ratio: 1;
  transform: translate(var(--px, 0px), calc(-50% + var(--py, 0px)));
}
.hero-art canvas,
.phero-art canvas,
.safety-art canvas,
.name-art canvas,
.stage-art canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
canvas.is-on {
  opacity: 1;
}
.hero-meta {
  position: absolute;
  z-index: 2;
  left: max(var(--gut), calc((100vw - var(--wrap)) / 2));
  bottom: 30px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-cue {
  position: absolute;
  z-index: 2;
  right: max(var(--gut), calc((100vw - var(--wrap)) / 2));
  bottom: 24px;
  width: 28px;
  height: 56px;
  display: flex;
  justify-content: center;
}
.hero-cue span {
  position: relative;
  width: 1px;
  height: 100%;
  background: var(--line-2);
  overflow: hidden;
}
.hero-cue span::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--ink);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  to {
    top: 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .ln > span {
    animation: rise 1.3s var(--ease) both;
  }
  .ln:nth-child(2) > span {
    animation-delay: 0.09s;
  }
  .ln:nth-child(3) > span {
    animation-delay: 0.18s;
  }
  .hero-foot,
  .hero-meta,
  .hero-cue,
  .phero-rise {
    animation: fade-up 1.2s var(--ease) 0.5s both;
  }
}
@keyframes rise {
  from {
    transform: translateY(108%);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cue span::after {
    animation: none;
  }
}

/* Sections */
.sec {
  padding-block: var(--sec);
}
.head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 28px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 88px);
}
.head .h2 {
  grid-column: 1 / 8;
}
.head-side {
  grid-column: 9 / 13;
  color: var(--ink-2);
  font-size: 17.5px;
  line-height: 1.55;
}
.head-side p + p {
  margin-top: 14px;
}
.head-side .note {
  color: var(--muted);
  font-size: 15px;
}
.head-side .link {
  margin-top: 22px;
}

/* Shft stage with real product frames */
.stage {
  position: relative;
  height: clamp(560px, 50vw, 720px);
  border-radius: var(--r-xl);
  background: var(--paper-2);
  isolation: isolate;
}
.stage-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.stage-art canvas {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(1500px, 140%);
  aspect-ratio: 1;
  height: auto;
  transform: translate(-50%, -50%);
}
.win {
  position: absolute;
  margin: 0;
  will-change: transform;
}
.win img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 38px rgba(18, 18, 16, 0.16)) drop-shadow(0 3px 8px rgba(18, 18, 16, 0.1));
}
.win-chat {
  left: 6%;
  top: 14%;
  width: min(500px, 40%);
}
.win-browser {
  right: 5.5%;
  top: 25%;
  width: min(620px, 50%);
}
.buddy {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}
.buddy .sh {
  fill: rgba(18, 18, 16, 0.16);
}
@media (prefers-color-scheme: dark) {
  .buddy .sh {
    fill: rgba(0, 0, 0, 0.45);
  }
  .win img,
  .pr-fig img {
    filter: drop-shadow(0 34px 38px rgba(0, 0, 0, 0.5)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
  }
}
.buddy .b-signal {
  fill: var(--signal);
}
.buddy.juno {
  width: 92px;
  left: 9%;
  bottom: calc(100% - 14px);
}
.buddy.remy {
  width: 76px;
  left: 4%;
  bottom: calc(100% - 12px);
}
.buddy.ivy {
  width: 66px;
  left: 35%;
  bottom: calc(100% - 10px);
}
.buddy.theo {
  width: 70px;
  right: 8%;
  bottom: calc(100% - 12px);
}
@media (prefers-reduced-motion: no-preference) {
  .buddy .body {
    animation: bob 4.6s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: 50% 100%;
  }
  .buddy.remy .body {
    animation-delay: -1.1s;
  }
  .buddy.ivy .body {
    animation-delay: -2.3s;
  }
  .buddy.theo .body {
    animation-delay: -3.4s;
  }
  .buddy .eyes {
    animation: blink 6s infinite;
    transform-box: fill-box;
    transform-origin: 50% 50%;
  }
  .buddy.ivy .eyes {
    animation-delay: -2s;
  }
  .buddy.theo .eyes {
    animation-delay: -4s;
  }
}
@keyframes bob {
  50% {
    transform: translateY(-5px);
  }
}
@keyframes blink {
  0%,
  94%,
  100% {
    transform: scaleY(1);
  }
  97% {
    transform: scaleY(0.1);
  }
}

/* What Shft does */
.caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: clamp(40px, 5vw, 72px);
  margin-top: clamp(72px, 9vw, 128px);
}
.caps li {
  border-top: 1px solid var(--line-2);
  padding-top: 30px;
}
.sigil {
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  transition: transform 1.2s var(--ease);
}
.caps li:hover .sigil {
  transform: rotate(60deg);
}
.caps h3,
.cards h3 {
  font-size: 21px;
  font-weight: 560;
  font-stretch: 100%;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.caps p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 16.5px;
  max-width: 34ch;
}

/* Blue fields */
.safety,
.band-signal {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--signal);
  color: var(--on-signal);
}
.safety-art {
  position: absolute;
  z-index: -1;
  right: -54vw;
  top: -6%;
  width: min(1400px, 120vw);
  aspect-ratio: 1;
  pointer-events: none;
}
.safety-art canvas,
.name-art canvas {
  animation: spin 420s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .safety-art canvas,
  .name-art canvas,
  .phero-art canvas,
  .band-art canvas {
    animation: none !important;
  }
}
.statement {
  font-stretch: 90%;
  font-weight: 380;
  font-size: clamp(2.5rem, 5.6vw, 5.7rem);
  line-height: 1;
  letter-spacing: -0.034em;
  margin-bottom: clamp(56px, 8vw, 112px);
}
.statement span {
  display: block;
  text-wrap: balance;
}
.auto {
  --a-bg: #fbfaf6;
  --a-side: #ecebe4;
  --a-ink: #121210;
  --a-ink2: #4a4944;
  --a-line: rgba(18, 18, 16, 0.12);
  --a-card: rgba(255, 255, 255, 0.5);
  --a-card-on: #ffffff;
  --a-card-line: rgba(18, 18, 16, 0.14);
  --a-own: #3d3bf3;
  --a-wait: #98510a;
  --a-wait-mark: #eb9514;
  --a-switch: rgba(18, 18, 16, 0.18);
  --a-ring: #121210;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: var(--a-ink);
  background: var(--a-bg);
  box-shadow: 0 50px 90px -40px rgba(18, 18, 16, 0.6), 0 2px 0 rgba(255, 255, 255, 0.4) inset;
}
@media (prefers-color-scheme: dark) {
  .auto {
    --a-bg: #181817;
    --a-side: #111110;
    --a-ink: #f2f2ee;
    --a-ink2: #cdccc5;
    --a-line: rgba(242, 242, 238, 0.13);
    --a-card: rgba(242, 242, 238, 0.04);
    --a-card-on: #1f1f1d;
    --a-card-line: rgba(242, 242, 238, 0.13);
    --a-own: #a3a1ff;
    --a-wait: #f2b04a;
    --a-wait-mark: #f2b04a;
    --a-switch: rgba(242, 242, 238, 0.22);
    --a-ring: #f2f2ee;
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  }
}
.auto-side {
  padding: clamp(28px, 3.4vw, 52px);
  background: var(--a-side);
}
.auto-side h3 {
  font-stretch: 94%;
  font-weight: 430;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.auto-sub {
  margin-top: 12px;
  color: var(--a-ink2);
  font-size: 15.5px;
}
.auto-modes {
  border: 0;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.mode {
  display: block;
  cursor: pointer;
}
.mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mode-card {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--a-card-line);
  background: var(--a-card);
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.mode-card b {
  display: block;
  font-weight: 580;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.mode-card small {
  display: block;
  margin-top: 2px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--a-ink2);
}
.mode:hover .mode-card {
  background: var(--a-card-on);
}
.mode input:checked + .mode-card {
  background: var(--a-card-on);
  border-color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal), 0 14px 28px -18px var(--signal);
}
.mode input:focus-visible + .mode-card {
  outline: 2px solid var(--a-ring);
  outline-offset: 3px;
}
.auto-main {
  padding: clamp(28px, 3.4vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.auto-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.auto-rows li {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--a-line);
}
.auto-rows li:first-child {
  padding-top: 0;
}
.auto-rows .act {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 28ch;
}
.state {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  font-weight: 580;
  font-size: 15.5px;
  transition: color 0.3s;
}
.state::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
  transition: background-color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.state[data-state="own"] {
  color: var(--a-own);
}
.state[data-state="own"]::before {
  background: var(--a-own);
  border: 2px solid var(--a-own);
}
.state[data-state="ask"] {
  color: var(--a-wait);
}
.state[data-state="ask"]::before {
  background: transparent;
  border: 2px solid var(--a-wait-mark);
}
.state.is-flip::before {
  transform: scale(1.5);
}
.switch {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-size: 15.5px;
  color: var(--a-ink2);
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch-ui {
  flex: none;
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: var(--a-switch);
  transition: background-color 0.3s;
}
.switch-ui::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(18, 18, 16, 0.3);
  transition: transform 0.35s var(--ease);
}
.switch input:checked + .switch-ui {
  background: var(--a-wait-mark);
}
.switch input:checked + .switch-ui::after {
  transform: translateX(18px);
}
.switch input:focus-visible + .switch-ui {
  outline: 2px solid var(--a-ring);
  outline-offset: 3px;
}
.auto-note {
  margin-top: -14px;
  font-size: 14.5px;
  color: var(--a-ink2);
  max-width: 50ch;
}
@media (scripting: none) {
  .auto-modes,
  .switch {
    display: none;
  }
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(56px, 7vw, 96px);
}
.principles li {
  padding: clamp(24px, 2.6vw, 38px);
  border: 1px solid rgba(247, 247, 244, 0.26);
  border-radius: var(--r-lg);
  background: rgba(247, 247, 244, 0.06);
}
.medal {
  width: 116px;
  height: 116px;
  margin-bottom: 30px;
  transition: transform 1.4s var(--ease);
}
.principles li:hover .medal {
  transform: rotate(40deg);
}
.principles h3 {
  font-stretch: 94%;
  font-weight: 430;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
}
.principles p {
  margin-top: 12px;
  color: rgba(247, 247, 244, 0.88);
  font-size: 16.5px;
  max-width: 36ch;
}
.safety-more {
  margin-top: clamp(40px, 5vw, 64px);
  font-size: 18px;
}

/* Work */
.rows {
  border-top: 1px solid var(--line-2);
}
.rows li {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 5fr);
  gap: 16px clamp(24px, 4vw, 64px);
  align-items: baseline;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.rows h3 {
  font-stretch: 94%;
  font-weight: 420;
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  line-height: 1.06;
  letter-spacing: -0.026em;
  text-wrap: balance;
}
.rows p {
  color: var(--ink-2);
  font-size: 17px;
  max-width: 44ch;
}
.tag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.tag-live {
  color: var(--signal-text);
  background: var(--signal-soft);
}
.tag-live::before {
  background: var(--signal);
}
.tag-goal {
  color: var(--ink-2);
  border: 1px dashed var(--line-2);
}
.tag-goal::before {
  border: 1.5px solid var(--muted);
}

/* The name, and the footer */
.name,
.band-deep {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--deep);
  color: var(--on-deep);
}
.name {
  padding-block: clamp(110px, 14vw, 230px);
}
.name-art {
  position: absolute;
  z-index: -1;
  right: -32vw;
  top: 54%;
  width: min(1300px, 120vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 8%, #000 52%);
}
.name-art canvas {
  animation-direction: reverse;
  animation-duration: 600s;
}
.name-lead {
  font-size: 18px;
  color: rgba(242, 242, 238, 0.72);
  margin-bottom: 26px;
}
.name-h {
  font-stretch: 88%;
  font-weight: 385;
  font-size: clamp(2.8rem, 8.6vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.037em;
}
.name-h span {
  display: block;
}
.name-cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 28px;
  margin-top: clamp(56px, 8vw, 112px);
  font-size: 18px;
  line-height: 1.55;
  color: rgba(242, 242, 238, 0.82);
}
.name-cols > :first-child {
  grid-column: 1 / 6;
}
.name-cols > :last-child {
  grid-column: 7 / 12;
}
.name-cols p + p {
  margin-top: 26px;
}

.footer {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: var(--on-deep);
}
.write {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 28px;
  align-items: end;
  padding-block: clamp(64px, 8vw, 112px) clamp(56px, 7vw, 96px);
  border-top: 1px solid rgba(242, 242, 238, 0.16);
}
.write h2 {
  grid-column: 1 / 7;
  font-stretch: 88%;
  font-weight: 385;
  font-size: clamp(2.8rem, 6.8vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -0.036em;
}
.write > div {
  grid-column: 8 / 13;
  color: rgba(242, 242, 238, 0.72);
  font-size: 16.5px;
}
.mail {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--on-deep);
  font-stretch: 92%;
  font-weight: 420;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  letter-spacing: -0.028em;
  line-height: 1.15;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease);
  overflow-wrap: anywhere;
}
.mail:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.6fr;
  gap: 40px;
  padding-block: 56px 40px;
  border-top: 1px solid rgba(242, 242, 238, 0.16);
  font-size: 15.5px;
}
.footer .brand {
  color: var(--on-deep);
}
.footer .mark {
  background: var(--signal-text);
}
.footer address {
  margin-top: 22px;
  color: rgba(242, 242, 238, 0.68);
  line-height: 1.6;
}
.foot-grid h3 {
  font-size: 14px;
  font-weight: 500;
  font-stretch: 100%;
  color: rgba(242, 242, 238, 0.55);
  margin-bottom: 14px;
}
.foot-grid li + li {
  margin-top: 8px;
}
.foot-grid a:not(.brand) {
  color: rgba(242, 242, 238, 0.88);
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease);
}
.foot-grid a:not(.brand):hover,
.foot-grid a[aria-current="page"] {
  background-size: 100% 1px;
}
.fine {
  padding-bottom: 28px;
  font-size: 13.5px;
  color: rgba(242, 242, 238, 0.5);
}
.giant {
  font-stretch: 62%;
  font-weight: 640;
  font-size: clamp(9rem, 50vw, 54rem);
  line-height: 0.78;
  letter-spacing: -0.015em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(242, 242, 238, 0.17), rgba(242, 242, 238, 0.01) 86%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: translateY(6%);
  margin-top: 16px;
  user-select: none;
  pointer-events: none;
}

/* ---------- Inner pages ---------- */
.phero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(620px, 100svh, 920px);
  display: flex;
  align-items: flex-end;
  padding: 140px 0 clamp(56px, 7vw, 96px);
}
.phero .wrap {
  position: relative;
  z-index: 2;
}
.phero-art-in {
  position: absolute;
  top: 50%;
  right: -16vw;
  width: min(140vh, 96vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
}
.phero-art canvas {
  animation: spin 520s linear infinite;
}
.phero .lede {
  margin-top: clamp(24px, 3vw, 40px);
  max-width: 46ch;
}
.phero-meta {
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--muted);
}
.phero .actions {
  margin-top: 30px;
}
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.jump a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  background: var(--paper);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.jump a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.band-deep .h2,
.band-signal .h2 {
  color: inherit;
}
.band-deep {
  padding-block: var(--sec);
}
.band-signal {
  padding-block: var(--sec);
}
.band-art {
  position: absolute;
  z-index: -1;
  top: 50%;
  width: min(1200px, 110vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  right: -40vw;
  -webkit-mask-image: linear-gradient(90deg, transparent 6%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 6%, #000 52%);
}
.band-art canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
  animation: spin 500s linear infinite;
}
.band-art canvas.is-on {
  opacity: 1;
}
.band-lead {
  font-stretch: 90%;
  font-weight: 385;
  font-size: clamp(2.3rem, 5.2vw, 5rem);
  line-height: 1;
  letter-spacing: -0.033em;
  text-wrap: balance;
  max-width: 14em;
}
.band-cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 28px;
  margin-top: clamp(44px, 6vw, 88px);
  font-size: 18px;
  line-height: 1.55;
  color: rgba(242, 242, 238, 0.82);
}
.band-cols > :first-child {
  grid-column: 1 / 6;
}
.band-cols > :last-child {
  grid-column: 7 / 12;
}
.band-cols p + p {
  margin-top: 22px;
}
.band-signal .band-cols {
  color: rgba(247, 247, 244, 0.9);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}
.legend .tag {
  height: 40px;
  font-size: 15px;
}
.legend .tag-live {
  background: var(--signal);
  color: var(--signal-ink);
}
.legend .tag-live::before {
  background: #fff;
}
.legend .tag-goal {
  color: var(--on-deep);
  border-color: rgba(242, 242, 238, 0.4);
}
.legend .tag-goal::before {
  border-color: rgba(242, 242, 238, 0.7);
}

/* Table of contents on long pages */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  column-gap: clamp(32px, 5vw, 80px);
}
.toc {
  position: sticky;
  top: 108px;
  align-self: start;
  padding-top: var(--sec);
  font-size: 15px;
}
.toc h2 {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 14px;
}
.toc a {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line);
  color: var(--ink-2);
  line-height: 1.3;
  transition: color 0.2s, border-color 0.2s;
}
.toc a:hover {
  color: var(--ink);
}
.toc a[aria-current="true"] {
  color: var(--ink);
  border-left-color: var(--signal);
  font-weight: 560;
}
.toc .toc-sep {
  margin-top: 8px;
}

/* One principle, one screen */
.pr {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: clamp(28px, 5vw, 80px);
  padding-block: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--line-2);
}
.pr-side {
  position: sticky;
  top: 108px;
  align-self: start;
}
.seal {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 26px;
}
.seal canvas {
  width: 104px;
  height: 104px;
  transition: transform 1.4s var(--ease);
}
.pr:hover .seal canvas {
  transform: rotate(50deg);
}
.seal span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-stretch: 90%;
  font-weight: 560;
  font-size: 19px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.pr-side h3 {
  font-stretch: 94%;
  font-weight: 420;
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -0.026em;
  text-wrap: balance;
}
.pr-lead {
  font-stretch: 100%;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  line-height: 1.34;
  letter-spacing: -0.012em;
  word-spacing: 0.02em;
  max-width: 34em;
  text-wrap: pretty;
}
.pr-lead + .pr-lead {
  margin-top: 20px;
  color: var(--ink-2);
}
.pr-how {
  margin-top: clamp(28px, 3.4vw, 44px);
  padding: clamp(22px, 2.4vw, 34px);
  border-radius: var(--r-lg);
  background: var(--paper-2);
}
.pr-how h4 {
  font-size: 14px;
  font-weight: 560;
  color: var(--muted);
  margin-bottom: 16px;
}
.pr-how li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.5;
  max-width: 52em;
}
.pr-how li:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.pr-how li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal-text);
}
.pr-how li:first-of-type::before {
  top: 9px;
}
.pr-fig {
  margin-top: clamp(28px, 3.4vw, 44px);
}
.pr-fig img {
  width: min(100%, 560px);
  height: auto;
  filter: drop-shadow(0 30px 34px rgba(18, 18, 16, 0.16)) drop-shadow(0 3px 8px rgba(18, 18, 16, 0.1));
}
.pr-fig figcaption {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 44ch;
}
.band-signal .pr {
  border-top: 0;
  padding-block: 0;
}
.band-signal .pr-lead {
  color: var(--on-signal);
}
.band-signal .pr-lead + .pr-lead {
  color: rgba(247, 247, 244, 0.88);
}
.band-signal .pr-how {
  background: rgba(247, 247, 244, 0.08);
}
.band-signal .pr-how h4 {
  color: rgba(247, 247, 244, 0.7);
}
.band-signal .pr-how li {
  color: rgba(247, 247, 244, 0.92);
  border-color: rgba(247, 247, 244, 0.22);
}
.band-signal .pr-how li::before {
  background: var(--on-signal);
}
.band-signal .pr-side h3 {
  color: var(--on-signal);
}
.band-signal .auto {
  margin-top: clamp(32px, 4vw, 56px);
}
.pr-wide {
  grid-column: 1 / 13;
  margin-top: clamp(36px, 5vw, 64px);
}
.band-signal .pr-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: clamp(28px, 5vw, 80px);
}
.band-signal .pr-grid .pr-side {
  position: static;
}

/* A receipt, drawn: what it lists, never real values */
.receipt {
  --r-bg: #fbfaf6;
  --r-ink: #121210;
  --r-ink2: #3e3d38;
  --r-muted: #66655e;
  --r-line: rgba(18, 18, 16, 0.25);
  --r-bar: rgba(18, 18, 16, 0.14);
  --r-ok: #3d3bf3;
  position: relative;
  width: min(100%, 360px);
  padding: 30px 28px 44px;
  color: var(--r-ink);
  background: var(--r-bg);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 30px 40px -24px rgba(18, 18, 16, 0.35);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 51% repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 51% repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat;
}
.receipt h4 {
  font-stretch: 86%;
  font-weight: 620;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.receipt-sub {
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--r-muted);
}
.receipt dl {
  margin: 18px 0 0;
  display: grid;
  gap: 0;
}
.receipt dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-top: 1px dashed var(--r-line);
  font-size: 15px;
}
.receipt dt {
  color: var(--r-ink2);
}
.receipt dd {
  margin: 0;
  flex: none;
}
.receipt .bar {
  display: block;
  height: 9px;
  border-radius: 99px;
  background: var(--r-bar);
}
.receipt .w1 {
  width: 48px;
}
.receipt .w2 {
  width: 72px;
}
.receipt .w3 {
  width: 96px;
}
.receipt .ok {
  background: var(--r-ok);
  opacity: 0.85;
}
@media (prefers-color-scheme: dark) {
  .receipt {
    --r-bg: #1f1f1d;
    --r-ink: #f2f2ee;
    --r-ink2: #cdccc5;
    --r-muted: #9a9992;
    --r-line: rgba(242, 242, 238, 0.2);
    --r-bar: rgba(242, 242, 238, 0.16);
    --r-ok: #a3a1ff;
    box-shadow: 0 30px 40px -24px rgba(0, 0, 0, 0.6);
  }
}

/* Cards for the smaller rules and the contacts */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.cards li {
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
}
.cards p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 16.5px;
}
.cards .kicker {
  font-size: 14px;
  font-weight: 560;
  color: var(--muted);
  margin-bottom: 18px;
}
.cards .who {
  display: inline-block;
  margin-top: 6px;
  color: var(--signal-text);
  font-weight: 560;
  font-size: 18px;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.cards .who:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}
.sec-paper2 {
  background: var(--paper-2);
}
.sec-paper2 .cards li {
  background: var(--card);
}
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.goal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 2.8vw, 40px);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
}
.goal .tag {
  align-self: flex-start;
}
.goal h3 {
  font-stretch: 94%;
  font-weight: 430;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.goal p {
  color: var(--ink-2);
  font-size: 16.5px;
}

/* Company commitments */
.commit {
  border-top: 1px solid rgba(247, 247, 244, 0.3);
}
.commit li {
  display: grid;
  grid-template-columns: 88px minmax(0, 4fr) minmax(0, 6fr);
  column-gap: clamp(20px, 3.4vw, 56px);
  align-items: start;
  padding: clamp(28px, 3.4vw, 48px) 0;
  border-bottom: 1px solid rgba(247, 247, 244, 0.3);
}
.seal-s,
.seal-s canvas {
  width: 72px;
  height: 72px;
}
.seal-s {
  margin: 0;
}
.seal-s span {
  font-size: 15px;
  color: var(--on-signal);
}
.commit li:hover .seal-s canvas {
  transform: rotate(60deg);
}
.commit h3 {
  font-stretch: 90%;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.1vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.commit p {
  color: rgba(247, 247, 244, 0.92);
  font-size: 17.5px;
  max-width: 40em;
}

/* Legal */
.facts {
  border-top: 1px solid var(--line-2);
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  column-gap: clamp(24px, 4vw, 64px);
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  color: var(--muted);
  font-size: 15px;
}
.facts dd {
  margin: 0;
  font-stretch: 92%;
  font-weight: 440;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.facts dd a {
  color: var(--signal-text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease);
  overflow-wrap: anywhere;
}
.facts dd a:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}
.prose {
  max-width: 40em;
  font-size: 18px;
  color: var(--ink-2);
}
.prose p + p {
  margin-top: 1.1em;
}
.lost .phero-art-in {
  right: -10vw;
}
.lost-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Reveal on scroll. Shown at once without scripting or with reduced motion. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  }
  [data-reveal][data-d="1"] {
    transition-delay: 0.1s;
  }
  [data-reveal][data-d="2"] {
    transition-delay: 0.2s;
  }
  [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
  html:not(.js-ready) [data-reveal] {
    animation: failsafe 0.01s linear 2.5s forwards;
  }
}
@keyframes failsafe {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Tablet and phone */
@media (max-width: 1080px) {
  .head .h2 {
    grid-column: 1 / 13;
  }
  .head-side {
    grid-column: 1 / 10;
  }
  .caps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auto {
    grid-template-columns: 1fr;
  }
  .principles,
  .cards,
  .goals-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .principles li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 28px;
    align-items: start;
  }
  .principles .medal {
    grid-row: 1 / span 2;
    margin: 0;
  }
  .rows li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
  .rows li .tag {
    grid-column: 1 / 3;
  }
  .name-cols > :first-child,
  .name-cols > :last-child,
  .band-cols > :first-child,
  .band-cols > :last-child {
    grid-column: 1 / 11;
  }
  .write h2,
  .write > div {
    grid-column: 1 / 13;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .doc {
    grid-template-columns: 1fr;
  }
  .toc {
    display: none;
  }
  .pr,
  .band-signal .pr-grid {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
  .pr-side {
    position: static;
  }
  .pr-side {
    display: flex;
    align-items: center;
    gap: 22px;
  }
  .seal {
    flex: none;
    margin-bottom: 0;
  }
  .commit li {
    grid-template-columns: 72px minmax(0, 1fr);
    row-gap: 14px;
  }
  .commit li p {
    grid-column: 2;
  }
  .facts > div {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
}
@media (max-width: 820px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: 500 15px var(--sans);
    cursor: pointer;
  }
  .menu-bars {
    position: relative;
    width: 14px;
    height: 8px;
    border-top: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
  }
  .menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    padding: 12px var(--gut) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .menu {
    display: block;
  }
  .menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .menu li {
    border-bottom: 1px solid var(--line);
  }
  .menu li:last-child {
    border: 0;
    padding-top: 20px;
  }
  .menu a:not(.btn) {
    display: block;
    padding: 16px 0;
    font-stretch: 88%;
    font-weight: 400;
    font-size: 34px;
    letter-spacing: -0.032em;
    background: none;
    color: var(--ink);
  }
  .menu .btn {
    width: 100%;
    height: 52px;
    font-size: 16px;
  }
  @media (scripting: none) {
    .menu-btn {
      display: none;
    }
    .menu {
      display: block;
      position: static;
      background: none;
      border: 0;
      padding: 0;
    }
    .menu ul {
      flex-direction: row;
      flex-wrap: wrap;
    }
    .menu a:not(.btn) {
      font: 450 15px var(--sans);
      padding: 8px 2px;
    }
    .menu li {
      border: 0;
    }
    .menu li:last-child {
      padding: 0;
    }
    .menu .btn {
      width: auto;
      height: 42px;
    }
  }

  .hero {
    min-height: max(720px, 100svh);
    padding: 112px 0 84px;
  }
  .hero-art,
  .phero-art {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 96px, #000 34%, transparent 74%);
    mask-image: linear-gradient(180deg, transparent 0, #000 96px, #000 34%, transparent 74%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
  .hero-art-in {
    top: -3%;
    right: -56vw;
    width: 164vw;
    transform: translate(var(--px, 0px), var(--py, 0px));
  }
  .phero {
    min-height: 620px;
    padding: 120px 0 56px;
  }
  .phero-art-in {
    top: -2%;
    right: -60vw;
    width: 170vw;
    transform: none;
  }
  .hero-cue {
    display: none;
  }
  .hero-foot {
    max-width: none;
  }
  .actions .btn {
    flex: 1 1 auto;
  }
  .head-side {
    grid-column: 1 / 13;
  }
  .stage {
    height: auto;
    padding: 76px 16px 28px;
    display: grid;
    gap: 76px;
  }
  .win {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none !important;
  }
  .win-chat {
    max-width: 480px;
    justify-self: start;
  }
  .win-browser {
    max-width: 560px;
    justify-self: end;
  }
  .buddy.juno {
    width: 76px;
    left: 8%;
  }
  .buddy.remy {
    width: 62px;
    left: 4%;
  }
  .buddy.ivy {
    width: 54px;
    left: 40%;
  }
  .buddy.theo {
    width: 58px;
    right: 8%;
  }
  .safety-art,
  .band-art {
    right: -80vw;
    top: -6%;
    width: 170vw;
    transform: none;
  }
  .name-art {
    right: -72vw;
    top: -4%;
    width: 170vw;
    transform: none;
    -webkit-mask-image: linear-gradient(180deg, #000 24%, transparent 54%);
    mask-image: linear-gradient(180deg, #000 24%, transparent 54%);
  }
  .caps {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .caps li {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 20px;
    padding-block: 28px 32px;
  }
  .caps .sigil {
    grid-row: 1 / span 2;
    margin: 0;
  }
  .caps p {
    margin-top: 6px;
  }
  .rows li {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rows li .tag {
    grid-column: auto;
  }
  .principles li {
    display: block;
  }
  .principles .medal {
    margin-bottom: 26px;
  }
  .auto-rows li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .state {
    min-width: 0;
  }
  .name-cols > :first-child,
  .name-cols > :last-child,
  .band-cols > :first-child,
  .band-cols > :last-child {
    grid-column: 1 / 13;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
  .foot-id {
    grid-column: 1 / 3;
  }
  .pr-side {
    align-items: flex-start;
  }
  .commit li {
    grid-template-columns: 1fr;
  }
  .commit li p {
    grid-column: auto;
  }
  .seal-s,
  .seal-s canvas {
    width: 60px;
    height: 60px;
  }
}
@media (max-width: 420px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .foot-id {
    grid-column: auto;
  }
  .btn {
    padding: 0 20px;
  }
  .seal,
  .seal canvas {
    width: 84px;
    height: 84px;
  }
}

/* More pieces of the inner pages */
.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  column-gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.h2-m {
  font-size: clamp(2.3rem, 4.6vw, 4.6rem);
  line-height: 1;
  position: sticky;
  top: 120px;
}
.split .prose {
  max-width: 34em;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
}
.where {
  margin-top: clamp(32px, 4vw, 56px);
  font-stretch: 90%;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.band-signal .head-side {
  color: rgba(247, 247, 244, 0.9);
}
.band-signal .seal span {
  color: var(--on-signal);
}
@media (max-width: 1080px) {
  .split {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
  .h2-m {
    position: static;
  }
}

.pr-head {
  padding-bottom: 0;
}
.pr-list + .pr-list,
.band-signal + .pr-list {
  margin-top: 0;
}
.pr-list .pr:first-child {
  border-top: 1px solid var(--line-2);
}
.band-signal .seal span {
  font-weight: 560;
}

.nb {
  white-space: nowrap;
}
