/*
 * css/site.css: Colyseus Agent's shared sheet. Cool paper, navy ink, one cobalt. Headlines in Newsreader with a
 * blackletter first letter, interface text in Geist, numbers in Geist Mono. No build step.
 *
 * Shared pieces (the landing, the app and the docs all use these):
 *   .wrap                      page column (max 1160px)
 *   .banner                    the navy strip above the header
 *   .nav                       sticky header: .brand, .nav-links a, .nav-cta
 *   .btn  .btn-primary | .btn-ink | .btn-ghost | .btn-quiet   + .btn-sm, .btn-block, [disabled]
 *   .card                      white surface;  .card.framed adds the inset second rule
 *   .pill                      small letterspaced label;  .pill.blue / .pill.ink
 *   .chip                      status chip with a dot;  .chip.ok / .warn / .bad / .idle
 *   .bl                        the blackletter first letter of a headline: <span class="bl">C</span>ollateral
 *   .hi                        the washed highlight behind one word of a headline
 *   .eyebrow                   small caps line above a headline
 *   .sep                       the diamond rule between sections
 *   .kv                        label / value rows (dl.kv > div > dt + dd)
 *   .field                     form field: label + input/select;  .field-row puts fields side by side
 *   .range                     slider row (label, value, input[type=range])
 *   .meter                     loan-to-value bar: .meter > .meter-fill, .meter-tick[data-k=target|guard|open|lltv]
 *   .table                     plain table;  .num for tabular figures
 *   .sheet                     modal sheet: .sheet-back > .sheet (bottom sheet on phones)
 *   .toast                     transient note, bottom centre
 *   .foot                      footer
 *   .mono .num .muted .pos .neg .nowrap .sr-only
 */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/newsreader.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-latin.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-mono-latin.woff2') format('woff2'); }
@font-face { font-family: 'Fraktur Caps'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/fraktur-caps.woff2') format('woff2'); unicode-range: U+41-5A; }

:root {
  --paper: #edf1f7;
  --paper-2: #e3e9f2;
  --surface: #f7f9fc;
  --white: #ffffff;
  --ink: #0b1630;
  --ink-2: #2f3c58;
  --ink-3: #66738c;
  --ink-4: #98a3b8;
  --line: rgba(11, 22, 48, .12);
  --line-strong: rgba(11, 22, 48, .24);
  --blue: #2146d0;
  --blue-2: #17349f;
  --blue-3: #0f2470;
  --blue-tint: #e2e9fb;
  --sky: #a9c1f2;
  --hi: #cddcfb;
  --ok: #24765d;
  --ok-tint: #e3f1ec;
  --warn: #a8701a;
  --warn-tint: #f6eddc;
  --bad: #b13c37;
  --bad-tint: #f7e6e4;
  --shadow-card: 0 1px 2px rgba(11, 22, 48, .05), 0 22px 44px -30px rgba(11, 22, 48, .38);
  --shadow-pop: 0 2px 6px rgba(11, 22, 48, .08), 0 30px 60px -28px rgba(11, 22, 48, .45);
  --glass: linear-gradient(150deg, rgba(255, 255, 255, .93) 0%, rgba(250, 252, 255, .76) 42%, rgba(219, 229, 252, .64) 100%);
  --glass-in: linear-gradient(150deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .86) 52%, rgba(230, 237, 253, .8) 100%);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .96), inset 1px 0 0 rgba(255, 255, 255, .6), inset 0 -22px 34px -26px rgba(33, 70, 208, .3);
  --glass-rim: 0 0 0 1px rgba(11, 22, 48, .09);
  --glint: linear-gradient(112deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .62) 50%, rgba(255, 255, 255, 0) 58%);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --radius: 20px;
  --radius-sm: 12px;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --black: 'Fraktur Caps', 'Newsreader', Georgia, serif;
  --gutter: 20px;
  --maxw: 1160px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--hi); color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--ink-3); }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1; position: relative; z-index: 1; }

/* ---------------------------------------------------------------------------------------------- type */

.serif, h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.028em; line-height: 1.08; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 4.2vw, 50px); }
h3 { font-size: clamp(21px, 2.2vw, 26px); letter-spacing: -.02em; line-height: 1.18; }
.bl { font-family: var(--black); font-weight: 700; color: var(--blue); letter-spacing: 0; font-size: 1.04em; margin-right: .02em; }
.hi { white-space: nowrap; background: linear-gradient(180deg, transparent 0 12%, var(--hi) 12% 92%, transparent 92%); border-radius: .16em; padding: 0 .14em; margin: 0 -.06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.eyebrow { font: 500 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow.blue { color: var(--blue); }
.lede { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }

.sep { display: flex; align-items: center; gap: 12px; color: var(--ink-4); margin: 0 auto; width: min(260px, 60%); }
.sep::before, .sep::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.sep i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--ink-4); background: var(--paper); }

/* ---------------------------------------------------------------------------------------------- banner and nav */

.banner { background: var(--ink); color: #dfe7fa; font: 500 12.5px/1.2 var(--sans); position: relative; z-index: 30; }
.banner .wrap { display: flex; align-items: center; justify-content: center; gap: 10px 14px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.banner b { font-family: var(--mono); font-weight: 500; letter-spacing: -.01em; color: #fff; }
.banner .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgba(169, 193, 242, .22); }
.banner a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.banner a:hover { border-color: #fff; }
@media (max-width: 600px) { .banner .wrap > span:nth-of-type(2) { display: none; } }

.nav { position: sticky; top: 0; z-index: 29; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 19px/1 var(--serif); letter-spacing: -.02em; }
.brand img, .brand svg { width: 30px; height: 30px; }
.brand span { color: var(--ink-3); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current] { background: rgba(11, 22, 48, .06); color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .wrap { height: 56px; }
}
/* the narrowest phones: the X link stays in the footer, the header keeps the name and the one button */
@media (max-width: 400px) {
  .nav .wrap { gap: 10px; }
  .nav-cta .btn-quiet { display: none; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img, .brand svg { width: 26px; height: 26px; }
}

/* ---------------------------------------------------------------------------------------------- buttons */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 500 14.5px/1 var(--sans); white-space: nowrap; transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 22px -12px rgba(33, 70, 208, .7); }
.btn-primary:hover { background: var(--blue-2); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #17254a; }
.btn-ghost { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 0 12px; }
.btn-quiet:hover { background: rgba(11, 22, 48, .06); color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------------------------------------------------------------------------------------------- surfaces */

/* Glass: every surface is a pane of pale blue glass. A bright top edge, a blue glow at the foot, the page showing
   through a little, and a glint (::after) that crosses it under the pointer. .glint-in plays that glint once. */
.card { position: relative; background: var(--glass); border: 1px solid rgba(255, 255, 255, .78); border-radius: var(--radius); box-shadow: var(--glass-edge), var(--glass-rim), var(--shadow-card); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.card.framed { padding: 7px; background: linear-gradient(150deg, rgba(255, 255, 255, .66) 0%, rgba(205, 220, 251, .4) 100%); }
.card.framed > .card-in { background: var(--glass-in); border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--glass-rim), inset 0 1px 0 #fff; border-radius: calc(var(--radius) - 7px); height: 100%; }
.card::after, .glass::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: var(--glint) 135% 0 / 280% 100% no-repeat; opacity: 0; transition: background-position 0s .25s, opacity .25s; }
.card:hover::after, .glass:hover::after { background-position: -35% 0; opacity: 1; transition: background-position 1.15s var(--ease), opacity .2s; }
.glint-in::after, .js .rv.in.card::after { animation: glint 1.5s var(--ease) var(--gd, .35s) 1 both; }
@keyframes glint { 0% { background-position: 135% 0; opacity: 0; } 14%, 80% { opacity: 1; } 100% { background-position: -35% 0; opacity: 0; } }
.glass { position: relative; background: var(--glass-in); border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--glass-rim), inset 0 1px 0 #fff, inset 0 -16px 24px -20px rgba(33, 70, 208, .22); }

/* token disc: a brand mark printed in the site's navy on a glass disc. .tk.has-mark carries --mark and --sz. */
.tk { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; position: relative; background: linear-gradient(150deg, #fff 8%, var(--blue-tint) 100%); color: var(--blue-2); font: 600 11px/1 var(--mono); font-style: normal; letter-spacing: .02em; box-shadow: inset 0 1px 0 #fff, inset 0 -6px 9px -6px rgba(33, 70, 208, .35), 0 0 0 1px rgba(33, 70, 208, .16), 0 6px 12px -8px rgba(33, 70, 208, .6); }
.tk.has-mark::before { content: ''; position: absolute; inset: 0; background: var(--blue-3); -webkit-mask: var(--mark) center / var(--sz, 60%) no-repeat; mask: var(--mark) center / var(--sz, 60%) no-repeat; }
.tk::after { content: ''; position: absolute; inset: 1px; border-radius: 50%; pointer-events: none; background: linear-gradient(160deg, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, 0) 38%); }
.card-pad { padding: 22px; }
@media (max-width: 560px) { .card-pad { padding: 18px; } }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(11, 22, 48, .06); color: var(--ink-2); font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.pill.blue { background: var(--blue-tint); color: var(--blue-2); }
.pill.ink { background: var(--ink); color: #fff; }

.chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); font: 500 12.5px/1 var(--sans); white-space: nowrap; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); flex: none; }
.chip.ok { color: var(--ok); background: var(--ok-tint); border-color: transparent; }
.chip.ok::before { background: var(--ok); }
.chip.warn { color: var(--warn); background: var(--warn-tint); border-color: transparent; }
.chip.warn::before { background: var(--warn); }
.chip.bad { color: var(--bad); background: var(--bad-tint); border-color: transparent; }
.chip.bad::before { background: var(--bad); }
.chip.blue { color: var(--blue-2); background: var(--blue-tint); border-color: transparent; }
.chip.blue::before { background: var(--blue); }
.chip.live::before { animation: pulse 1.8s ease-in-out infinite; }
.chip.tick { padding: 0 12px; font: 600 12.5px/1 var(--mono); letter-spacing: .05em; color: var(--ink); background: var(--glass-in); border-color: rgba(255, 255, 255, .9); box-shadow: var(--glass-rim); text-decoration: none; transition: color .2s, box-shadow .2s; }
.chip.tick::before { display: none; }
.chip.tick:hover { color: var(--blue); box-shadow: 0 0 0 1px rgba(33, 70, 208, .35); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(36, 118, 93, .16); } }

.kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-3); font-size: 13.5px; }
.kv dd { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; text-align: right; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }

/* ---------------------------------------------------------------------------------------------- forms */

.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 10px; }
.field input, .field select { height: 46px; width: 100%; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--white); font: 500 16px/1 var(--mono); letter-spacing: -.02em; outline: none; transition: border-color .15s, box-shadow .15s; }
.field select { font-family: var(--sans); letter-spacing: 0; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33, 70, 208, .14); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.field .hint.bad { color: var(--bad); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.input-affix { position: relative; }
.input-affix input { padding-right: 96px; }
.input-affix .affix { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; font: 500 12.5px/1 var(--mono); color: var(--ink-3); }
.input-affix .affix button { height: 28px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: 500 11.5px/1 var(--mono); letter-spacing: .06em; color: var(--ink-2); }

.range { display: grid; gap: 8px; }
.range .range-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.range .range-head b { font: 500 15px/1 var(--mono); letter-spacing: -.02em; color: var(--ink); }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; }
input[type='range']::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue) var(--fill, 50%), var(--line-strong) var(--fill, 50%)); }
input[type='range']::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-strong); }
input[type='range']::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--blue); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); box-shadow: 0 2px 6px rgba(11, 22, 48, .2); }
input[type='range']::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); box-shadow: 0 2px 6px rgba(11, 22, 48, .2); }

/* loan-to-value bar: the fill is the loan now, the ticks are the mandate's lines and the liquidation threshold */
.meter { position: relative; height: 10px; border-radius: 6px; background: var(--paper-2); margin: 22px 0 26px; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); border-radius: 6px; background: var(--blue); transition: width .5s var(--ease), background .3s; }
.meter[data-state='due'] .meter-fill { background: var(--warn); }
.meter[data-state='danger'] .meter-fill { background: var(--bad); }
.meter-tick { position: absolute; left: var(--at, 0%); top: -6px; bottom: -6px; width: 0; border-left: 1.5px solid var(--ink); }
.meter-tick::after { content: attr(data-label); position: absolute; left: 0; transform: translateX(-50%); font: 500 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
/* labels alternate above and below, and the two that sit close (guard, liquidation) lean away from each other */
.meter-tick[data-k='target']::after, .meter-tick[data-k='open']::after { top: -13px; }
.meter-tick[data-k='guard']::after { bottom: -13px; transform: translateX(calc(-100% + 3px)); }
.meter-tick[data-k='lltv']::after { bottom: -13px; transform: translateX(-3px); }
.meter-tick[data-k='target'] { border-color: var(--ok); border-left-style: dashed; }
.meter-tick[data-k='guard'] { border-color: var(--blue); }
.meter-tick[data-k='open'] { border-color: var(--warn); border-left-style: dashed; }
.meter-tick[data-k='lltv'] { border-color: var(--bad); }

/* ---------------------------------------------------------------------------------------------- sheet and toast */

.sheet-back { position: fixed; inset: 0; z-index: 60; background: rgba(11, 22, 48, .46); display: grid; place-items: center; padding: 20px; animation: fade .2s var(--ease); }
.sheet { width: min(560px, 100%); max-height: min(88svh, 820px); overflow: auto; background: var(--white); border-radius: 24px; box-shadow: var(--shadow-pop); animation: rise .3s var(--ease); }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px 14px; background: var(--white); border-bottom: 1px solid var(--line); }
.sheet-head h3 { font-size: 24px; }
.sheet-body { padding: 18px 22px 22px; display: grid; gap: 16px; }
.sheet-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; flex: none; }
.sheet-x svg { width: 14px; height: 14px; }
@media (max-width: 560px) {
  .sheet-back { padding: 0; place-items: end center; }
  .sheet { width: 100%; max-height: 92svh; border-radius: 22px 22px 0 0; padding-bottom: var(--safe-b); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.toasts { position: fixed; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13.5px; line-height: 1.4; box-shadow: var(--shadow-pop); animation: rise .3s var(--ease); }
.toast a { text-decoration: underline; text-underline-offset: 2px; }
.toast.bad { background: #6f211e; }
.toast.ok { background: #124b3a; }

/* ---------------------------------------------------------------------------------------------- footer */

.foot { position: relative; z-index: 1; margin-top: 90px; border-top: 1px solid var(--line); background: var(--surface); }
.foot .wrap { padding-top: 40px; padding-bottom: calc(34px + var(--safe-b)); display: grid; gap: 28px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--ink-2); }
.foot-links a:hover { color: var(--blue); }
.foot-x { display: inline-flex; align-items: center; gap: 8px; }
.foot-x svg { width: 15px; height: 15px; }
.foot-note { font-size: 12.5px; line-height: 1.6; color: var(--ink-3); max-width: 86ch; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

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