@font-face {
  font-family: 'Tomato Grotesk';
  src: url('../fonts/tomato-grotesk-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Tomato Grotesk';
  src: url('../fonts/tomato-grotesk-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Tomato Grotesk';
  src: url('../fonts/tomato-grotesk-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Tomato Grotesk';
  src: url('../fonts/tomato-grotesk-900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Gotham XNarrow';
  src: url('../fonts/gotham-xnarrow-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'Gotham XNarrow';
  src: url('../fonts/gotham-xnarrow-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'Commit Mono';
  src: url('../fonts/commit-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --scene-ink: #15321f;
  --scene-ink-70: rgba(21, 50, 31, 0.68);

  --scene-ink-soft: #24583a;
  --glass:    rgba(255, 255, 255, 0.96);
  --glass-72: rgba(255, 255, 255, 0.74);
  --glass-46: rgba(255, 255, 255, 0.48);
  --glass-18: rgba(255, 255, 255, 0.20);
  --veil:     rgba(6, 14, 40, 0.30);

  --paper:    #f4f2ee;
  --paper-0:  rgba(244, 242, 238, 0);
  --ink:      #1e2126;
  --ink-80:   rgba(30, 33, 38, 0.80);
  --ink-55:   rgba(30, 33, 38, 0.55);
  --ink-28:   rgba(30, 33, 38, 0.24);
  --ink-12:   rgba(30, 33, 38, 0.10);
  --blue:     #7eaaff;
  --blue-ink: #17325f;
  --blue-dp:  #2f5fbf;

  --focus:    #3d7dff;
  --spritz:   #ff8a3d;

  --type-shade: #2a1425;

  --shade-rgb: 48 23 41;

  --sun-dx: 0px;
  --sun-dy: 5px;
  --sun-lift-dx: 0px;
  --sun-lift-dy: 11px;
  --sun-lift-blur: 24px;

  --display: 'Tomato Grotesk', 'Helvetica Neue', Helvetica, sans-serif;
  --mono: 'Commit Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(1.15rem, 2.6vw, 2.4rem);

  --gut: clamp(0.7rem, 2.2vw, 2.4rem);

  --corner-fs: clamp(1.38rem, 1.94vw, 1.9rem);
  --corner-lh: 1.1;
  --inset: clamp(1rem, 2.4vw, 2.6rem);
  --round: clamp(1.6rem, 2.6vw, 2.4rem);

  --ground-a: #8d447a;
  --ground-b: #b0cd9d;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --spring: cubic-bezier(0.34, 1.56, 0.44, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

@property --glass    { syntax: '<color>'; inherits: true; initial-value: rgba(255,255,255,0.96); }
@property --glass-72 { syntax: '<color>'; inherits: true; initial-value: rgba(255,255,255,0.74); }
@property --glass-46 { syntax: '<color>'; inherits: true; initial-value: rgba(255,255,255,0.48); }
@property --glass-18 { syntax: '<color>'; inherits: true; initial-value: rgba(255,255,255,0.20); }
@property --veil        { syntax: '<color>'; inherits: true; initial-value: rgba(6,14,40,0.30); }
@property --scene-ink   { syntax: '<color>'; inherits: true; initial-value: #15321f; }
@property --scene-ink-soft { syntax: '<color>'; inherits: true; initial-value: #24583a; }
@property --scene-ink-70{ syntax: '<color>'; inherits: true; initial-value: rgba(21,50,31,0.68); }
@property --ground-a { syntax: '<color>'; inherits: true; initial-value: #8d447a; }
@property --ground-b { syntax: '<color>'; inherits: true; initial-value: #b0cd9d; }
@property --gut      { syntax: '<length>'; inherits: true; initial-value: 24px; }
@property --blue     { syntax: '<color>'; inherits: true; initial-value: #7eaaff; }
@property --spritz   { syntax: '<color>'; inherits: true; initial-value: #ff8a3d; }

html {
  transition:
    --glass 1.4s linear, --glass-72 1.4s linear, --glass-46 1.4s linear,
    --glass-18 1.4s linear, --veil 1.4s linear,
    --blue 1.4s linear, --spritz 1.4s linear;
}

html[data-theme="evening"] {
  --glass:    rgba(255, 253, 252, 0.97);
  --glass-72: rgba(252, 248, 255, 0.76);
  --glass-46: rgba(252, 248, 255, 0.50);
  --glass-18: rgba(252, 248, 255, 0.22);
  --veil:     rgba(4, 3, 16, 0.62);
  --blue:     #9db9ff;
  --spritz:   #ff9ec4;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--ground-a);
  color: var(--glass);
  font-family: var(--display);
  font-weight: 400;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
body.doc-page { overflow: auto; background: var(--paper); color: var(--ink); }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.frame {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: var(--inset);

  padding-top: max(calc(var(--inset) * 1.7), env(safe-area-inset-top));
  padding-bottom: max(calc(var(--inset) * 1.05), env(safe-area-inset-bottom));

  padding-left: max(var(--inset), env(safe-area-inset-left));
  padding-right: max(var(--inset), env(safe-area-inset-right));

  background: linear-gradient(96deg, var(--ground-a) 4%, var(--ground-b) 96%);
}

.stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border-radius: var(--round);

  corner-shape: squircle;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 70px -24px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

#gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease) 0.1s;
}
body.gl-ready #gl { opacity: 1; }

.sky-fallback {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 52% at 74% 22%, rgba(255, 230, 138, 0.5) 0%, transparent 70%),
    linear-gradient(96deg, #b0cd9d 0%, #8d447a 42%, #5d2d51 100%);
}
body.no-webgl .sky-fallback { z-index: 0; }
body.no-webgl #gl { display: none; }

.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  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='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035' numOctaves='3'/%3E%3C/filter%3E%3Crect width='420' height='420' filter='url(%23m)'/%3E%3C/svg%3E");
  background-size: 160px 160px, 420px 420px;
}

.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 29;
  pointer-events: none;
  background: radial-gradient(120% 95% at 50% 42%, transparent 62%, rgba(10, 24, 16, 0.16) 100%);
}

.colophon {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  padding: 1.5rem 0 0.35rem;
  font-size: clamp(0.86rem, 1.02vw, 1rem);
  letter-spacing: -0.012em;
  color: var(--ink-foot, rgba(255, 255, 255, 0.6));
  transition: color 0.6s linear, opacity 0.6s var(--ease) 0.1s;
}
.colophon a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.85;
}
.colophon a:hover { background-size: 100% 1.5px; opacity: 1; }
.colophon a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.colophon span { opacity: 0.4; }

.lockup {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 15;

  pointer-events: none;

  transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0);
  will-change: transform;
}

.lockup__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lk {
  font-family: 'Gotham XNarrow', var(--display);
  font-weight: 800;
}

.lk--sheen { fill: url(#lk-sheen); }

.lk--shade { fill: var(--type-shade); }

.corner {
  position: absolute;
  z-index: 20;
  margin: 0;
  max-width: 42%;
  font-weight: 700;
  font-size: var(--corner-fs);
  letter-spacing: -0.026em;
  line-height: var(--corner-lh);
  text-decoration: none;
  transition: color 0.6s linear;
}
.corner--tl { top: var(--pad); left: var(--pad); color: var(--ink-tl, var(--scene-ink-soft)); }
.corner--tr { top: var(--pad); right: var(--pad); text-align: right; color: var(--ink-tr, var(--scene-ink-soft)); }
.corner--bl { bottom: var(--pad); left: var(--pad); color: var(--ink-bl, var(--scene-ink-soft)); }
.corner--br { bottom: var(--pad); right: var(--pad); text-align: right; color: var(--ink-br, var(--scene-ink-soft)); }

a.corner {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: 100% 100%;
  transition: background-size 0.45s var(--ease);
}
a.corner:hover { background-size: 100% 1.5px; background-position: 0 100%; }
a.corner:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 2px; }

.actions {
  position: absolute;
  z-index: 22;
  left: 50%;

  bottom: calc(var(--pad) + var(--corner-fs) * var(--corner-lh) / 2 + 8px);
  translate: -50% 50%;
  display: flex;
  gap: 0.7rem;
}

.masthead {
  position: absolute;
  top: var(--pad);
  left: 50%;
  translate: -50% 0;
  z-index: 21;
  display: flex;
  align-items: center;

  min-height: calc(var(--corner-fs) * var(--corner-lh));
}
.mark {
  display: flex;
  color: var(--ink-mk, #ffffff);
  text-decoration: none;
  transition: color 0.6s linear;
}
.mark__logo {
  display: block;
  height: clamp(0.82rem, 1.25vw, 1.1rem);
  width: auto;
  aspect-ratio: 724 / 100;

  transition: opacity 0.4s var(--ease);
}
.mark:hover .mark__logo { opacity: 0.7; }
.mark__tag {
  font-family: var(--mono);
  font-size: clamp(0.54rem, 0.68vw, 0.62rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--glass-46);
}

.cal { position: relative; display: inline-flex; }

.cal__menu {
  position: absolute;
  bottom: calc(100% + 0.6rem);
  left: 50%;
  translate: -50% 0;
  z-index: 30;
  min-width: 13rem;
  padding: 0.35rem;
  border-radius: 1rem;
  background: #fbfbf8;
  box-shadow:
    0 1px 2px rgb(var(--shade-rgb) / 0.2),
    0 18px 44px -14px rgb(var(--shade-rgb) / 0.55);
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transform-origin: 50% 100%;
  transition: opacity 0.18s var(--ease), transform 0.26s var(--spring);
}
.cal__menu[hidden] { display: none; }
.cal__menu.is-open { opacity: 1; transform: none; }

.cal__item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.62rem 0.75rem;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: var(--scene-ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: -0.012em;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.cal__item svg { width: 0.92rem; height: 0.92rem; opacity: 0.5; flex: 0 0 auto; }
.cal__item:hover { background: color-mix(in srgb, var(--scene-ink) 9%, transparent); }
.cal__item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.72rem, 1.2vw, 1.02rem) clamp(1.3rem, 2.1vw, 1.95rem);
  border: 0;
  border-radius: 999px;
  background: #f6f7f3;
  color: var(--scene-ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.86rem, 1.08vw, 1rem);
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.42s var(--spring),
    background 0.4s var(--ease),
    box-shadow 0.42s var(--ease);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    var(--sun-dx) var(--sun-dy) 5px -1px rgb(var(--shade-rgb) / 0.34),
    var(--sun-lift-dx) var(--sun-lift-dy) var(--sun-lift-blur) -10px rgb(var(--shade-rgb) / 0.7);
}
.btn--primary {
  background: var(--scene-ink);
  color: #f6f7f3;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    var(--sun-dx) var(--sun-dy) 5px -1px rgb(var(--shade-rgb) / 0.36),
    var(--sun-lift-dx) var(--sun-lift-dy) var(--sun-lift-blur) -10px rgb(var(--shade-rgb) / 0.78);
}
.btn--quiet { background: rgba(255, 255, 255, 0.5); }

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-4px) scale(1.045);
    background: #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.8),
      0 3px 6px -1px rgb(var(--shade-rgb) / 0.36),
      0 26px 48px -14px rgb(var(--shade-rgb) / 0.78);
  }

  .btn--primary:hover { background: color-mix(in srgb, var(--scene-ink) 58%, var(--ground-a)); }
}
.btn:active { transform: translateY(-1px) scale(0.985); transition-duration: 0.09s; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }
.btn[data-busy] .btn__label { opacity: 0.6; }

.modal .btn { background: rgba(30, 33, 38, 0.06); color: var(--ink); box-shadow: none; }
.modal .btn--primary { background: var(--ink); color: var(--paper); }
.modal .btn--quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-28); }
@media (hover: hover) {
  .modal .btn:hover { transform: translateY(-1px); background: rgba(30, 33, 38, 0.12); }
  .modal .btn--primary:hover { background: #333940; }
  .modal .btn--quiet:hover { background: rgba(30, 33, 38, 0.05); }
}

.link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--blue-dp), var(--blue-dp));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: color 0.35s var(--ease), background-size 0.35s var(--ease);
}
.link:hover { color: var(--blue-dp); background-size: 100% 2px; }

.modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  max-width: 100%;
  max-height: 100%;
  overflow: visible;

  translate: 0 calc(var(--kb, 0px) / -2);
  transition: translate 0.24s var(--ease);
}
.modal::backdrop {
  background: rgba(6, 10, 30, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}
.modal.is-open::backdrop { opacity: 1; }

.modal__card {
  position: relative;
  width: min(30rem, calc(100vw - 2rem));
  max-height: calc(100svh - 2rem - var(--kb, 0px));
  overflow-y: auto;
  padding: clamp(1.6rem, 3.4vw, 2.4rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(250, 249, 246, 0.98);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.3s var(--ease), transform 0.42s var(--ease);
}
.modal.is-open .modal__card { opacity: 1; transform: none; }

.modal__close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  display: grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-55);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.modal__close svg { width: 1.05rem; height: 1.05rem; }
.modal__close:hover { background: var(--ink-12); color: var(--ink); }
.modal__close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.modal__title {
  margin: 0 0 1.6rem;
  font-weight: 900;
  font-size: clamp(1.7rem, 4.4vw, 2.3rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.field { margin: 0 0 1rem; }
.field > label:not(.check) {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ink-28);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input::placeholder { color: rgba(30, 33, 38, 0.36); }
.field input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 38%, transparent);
}
.field input[aria-invalid="true"] { border-color: #d1451b; }
.field__hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #d1451b;
}
.field__hint:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field--check { margin-top: 1.2rem; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-80);
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  flex: 0 0 auto;
  position: relative;
  width: 1.15rem; height: 1.15rem;
  margin-top: 0.08rem;
  border: 1px solid var(--ink-28);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.8);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.check__box::after {
  content: '';
  position: absolute;
  left: 0.36rem; top: 0.14rem;
  width: 0.3rem; height: 0.58rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s var(--ease);
}
.check input:checked ~ .check__box { background: var(--blue-dp); border-color: var(--blue-dp); }
.check input:checked ~ .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible ~ .check__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.check input[aria-invalid="true"] ~ .check__box { border-color: #d1451b; }

.modal__status { margin: 1rem 0 0; font-size: 0.85rem; color: var(--ink-55); }
.modal__status[data-kind="error"] { color: #d1451b; }
.modal__status:empty { display: none; }

.modal__actions {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.modal__actions .btn { padding: 0.85rem 1.35rem; font-size: 0.96rem; }
.modal__actions .btn--primary { flex: 1 1 auto; }
.modal__actions .btn--quiet { flex: 0 0 auto; }

.modal__done { text-align: center; padding: 1rem 0 0.4rem; }
.modal__doneMark { font-size: 2.6rem; margin: 0 0 0.6rem; }
.modal__done h3 { margin: 0 0 0.6rem; font-weight: 900; font-size: 1.7rem; letter-spacing: -0.03em; }
.modal__done p { margin: 0 0 1.4rem; color: var(--ink-80); font-size: 0.95rem; line-height: 1.5; }

.doc-foot {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 4rem var(--pad) clamp(1.2rem, 3vh, 2rem);
  pointer-events: none;
  background: linear-gradient(to top,
    var(--paper) 0%,
    var(--paper) 42%,
    var(--paper-0) 100%);
}
.doc-foot .btn { pointer-events: auto; }
.doc-page .btn--primary { background: var(--ink); color: var(--paper); }
@media (hover: hover) {
  .doc-page .btn--primary:hover { background: #333940; }
}

.doc {
  position: relative;
  z-index: 10;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) var(--pad) clamp(9rem, 18vh, 12rem);
  color: var(--ink);
}
.doc h1 { margin: 0 0 0.6rem; font-weight: 900; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -0.04em; line-height: 0.95; }
.doc h2 { margin: 2.4rem 0 0.7rem; font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.25rem); letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ink-80); line-height: 1.65; font-size: 0.98rem; }
.doc p { margin: 0 0 1rem; }
.doc ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4rem; }
.doc__note {
  margin: 2.6rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--blue-dp);
  background: rgba(30, 33, 38, 0.04);
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.88rem;
}
.doc__back { display: inline-block; margin-top: 2.4rem; }

.tilt-cta {
  position: absolute;
  left: 50%;
  /* Inside the plate, and stated in the same terms as the actions, so the two
     cannot drift apart. As a fixed element measured off the viewport floor it
     had to guess where the buttons were, and landed on them three times. */
  bottom: calc(var(--pad) + 17% + 3.6rem);
  transform: translateX(-50%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--glass-18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--glass);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  animation: rise 0.8s var(--ease) 1.6s both;
}
.tilt-cta[hidden] { display: none; }
.tilt-cta__icon {
  width: 0.8rem; height: 1.25rem;
  border: 1px solid var(--blue);
  border-radius: 0.28rem;
  animation: tilt 2.6s var(--ease-io) infinite;
}
@keyframes tilt { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(16deg); } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 1rem); } to { opacity: 1; transform: translate(-50%, 0); } }

.boot {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__bar {
  display: block;
  width: clamp(4.5rem, 9vw, 7rem);
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}
.boot__bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #ffffff;
  transition: width 0.45s var(--ease);
}

body.is-loading .masthead,
body.is-loading .colophon { opacity: 0; }
.masthead { transition: opacity 0.6s var(--ease) 0.1s; }

.noscript {
  position: relative;
  z-index: 50;
  max-width: 40rem;
  margin: 18vh auto;
  padding: 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 0.9rem, 0);
  transition:
    opacity 0.9s var(--ease) var(--rd, 0ms),
    transform 1.05s var(--ease) var(--rd, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .masthead {
    top: var(--pad);
    left: auto;
    right: var(--pad);
    translate: none;
    justify-content: flex-end;
  }
  .mark { color: #ffffff; }
  .mark__logo { height: clamp(1rem, 3.6vw, 1.25rem); }

  .corner {
    position: static;
    max-width: none;
    text-align: left;
    color: var(--ink-tl, var(--scene-ink-soft));
  }
  .facts {
    position: absolute;
    left: var(--pad);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--corner-fs) * 0.32);
    max-width: 64%;
  }
  .facts--top { top: var(--pad); }
  .facts--bottom {
    bottom: var(--pad);
    left: auto;
    right: var(--pad);
    align-items: flex-end;
    text-align: right;
  }
  .facts--bottom .corner { color: #ffffff; text-align: right; }

  :root {
    --corner-fs: clamp(1.15rem, 4.4vw, 1.55rem);
    --pad: clamp(1.6rem, 4.4vw, 2.4rem);
  }
  .stage { border-radius: clamp(2.2rem, 8vw, 3.2rem); }
}

@media (max-width: 620px) {
  .actions { bottom: calc(var(--pad) + 17%); translate: -50% 0; gap: 0.5rem; }
  .actions .btn { padding: 0.85rem 1.25rem; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tilt-cta__icon, .tilt-cta { animation: none !important; }
  .js [data-reveal] { transition-duration: 0.2s; }
  .modal__card, .modal::backdrop { transition-duration: 0.01ms; }
}

.dbg {
  position: fixed;
  top: 1rem; right: 1rem;
  z-index: 120;
  width: 17.5rem;
  padding: 0.9rem;
  border-radius: 0.7rem;
  background: rgba(18, 20, 24, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #e8eaec;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.4;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.7);
}
.dbg[hidden] { display: none; }
.dbg__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; }
.dbg__head strong { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.dbg__head button {
  border: 0; background: transparent; color: inherit;
  font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 0.2rem;
}
.dbg__grid {
  display: grid;
  grid-template-columns: 1fr 2rem 2rem;
  gap: 0.3rem 0.4rem;
  align-items: center;
}
.dbg__col { font-size: 0.58rem; opacity: 0.6; text-align: center; letter-spacing: 0.08em; }
.dbg__grid--one { grid-template-columns: 1fr 2rem; margin-top: 0.55rem; padding-top: 0.55rem; border-top: 1px solid rgba(255,255,255,0.12); }
.dbg label { opacity: 0.85; }
.dbg input[type="color"] {
  width: 2rem; height: 1.4rem; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.25rem; background: transparent; cursor: pointer;
}
.dbg__row { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.5rem; align-items: center; margin-top: 0.6rem; }
.dbg__row input[type="range"] { width: 100%; accent-color: #8fb7ff; }
.dbg__foot { display: flex; gap: 0.4rem; margin-top: 0.8rem; }
.dbg__foot button {
  flex: 1 1 0;
  padding: 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.35rem;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.dbg__foot button:hover { background: rgba(255, 255, 255, 0.1); }
.dbg__hint { margin: 0.6rem 0 0; font-size: 0.58rem; opacity: 0.45; text-align: center; }
