/* CityRP */

:root {
  --bg:          #0b0e14;
  --surface:     #141922;
  --surface-2:   #1a2029;
  --surface-3:   #212936;

  --text:        #e8eaed;
  --muted:       #8a93a3;
  --muted-dim:   #626b7a;

  --accent:      #2e8bff;
  --accent-hi:   #4a9bff;
  --accent-dim:  rgba(46, 139, 255, .12);

  --ok:          #3ecf8e;
  --off:         #e05260;

  --line:        rgba(232, 234, 237, .09);
  --line-hi:     rgba(232, 234, 237, .16);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius: 6px;

  --gut: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1180px;
  --nav-h: 68px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* layout */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section + .section { padding-top: 0; }
.section--line { border-top: 1px solid var(--line); padding-top: clamp(3rem, 7vw, 5rem); }

/* Divider that lines up with the content column rather than the viewport. */
.divider {
  height: 1px;
  background: var(--line);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* type */
h1, .h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.375rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.02em;
}

h2, .h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.015em;
}

h3, .h3 {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -.005em;
}

p { color: var(--muted); }
p + p { margin-top: 1rem; }

.lead { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.text  { max-width: 68ch; }
.small { font-size: .875rem; }

.label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.mono { font-family: var(--mono); font-size: .875rem; }

.section__head { margin-bottom: 1.75rem; }
.section__head p { margin-top: .6rem; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.125rem;
  font-size: .875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text);
  white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.btn svg { width: 16px; height: 16px; flex: none; }

.btn:hover { background: var(--surface-3); }

.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }

.btn--outline { background: transparent; border-color: var(--line-hi); color: var(--text); }
.btn--outline:hover { background: var(--surface-2); border-color: var(--line-hi); }

.btn--dark { background: var(--surface); border-color: var(--line); }
.btn--dark:hover { background: var(--surface-2); }

.btn--block { width: 100%; }
.btn--sm { padding: .5rem .875rem; font-size: .8125rem; }

.link {
  color: var(--accent);
  font-weight: 500;
  transition: color .18s var(--ease);
}
.link:hover { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }

/* header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}

.site-head.is-stuck {
  background: rgba(11, 14, 20, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.site-head__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo artwork is 800x400 with built-in padding, so it is always sized by
   height and never allowed to run away. */
.logo { display: block; flex: none; }
.logo img { height: 42px; width: auto; }

.site-nav { display: flex; align-items: center; gap: .25rem; }

.site-nav a {
  padding: .45rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color .18s var(--ease), background .18s var(--ease);
}

.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a.is-active { color: var(--text); }

.site-head__right { display: flex; align-items: center; gap: .75rem; }

.burger {
  display: none;
  width: 38px;
  height: 38px;
  position: relative;
  border-radius: var(--radius);
}
.burger:hover { background: var(--surface); }

.burger span {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }

.is-open .burger span:nth-child(1) { transform: translateY(2.5px) rotate(45deg); }
.is-open .burger span:nth-child(2) { transform: translateY(-2.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.mobile-nav.is-open { display: block; }

.mobile-nav a {
  display: block;
  padding: .875rem var(--gut);
  font-size: .9375rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover { color: var(--text); background: var(--surface-2); }

/* hero */
.hero {
  position: relative;
  min-height: min(88svh, 860px);
  display: flex;
  align-items: center;
  margin-top: calc(var(--nav-h) * -1);
  padding-top: calc(var(--nav-h) + clamp(4rem, 10vw, 7rem));
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

/* Shorter version of the hero for inner pages. The image stops where the
   section stops, so it never bleeds into the content below. */
.page-head {
  position: relative;
  margin-top: calc(var(--nav-h) * -1);
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}

.page-head h1 { margin-bottom: .75rem; }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Fallback if the image is missing or still loading. */
  background:
    radial-gradient(80% 60% at 50% 0%, #1c2635, transparent 70%),
    var(--bg);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* Fade the photo out towards the bottom so it meets the page background. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 14, 20, .62) 0%,
    rgba(11, 14, 20, .70) 45%,
    rgba(11, 14, 20, .92) 80%,
    var(--bg) 100%
  );
}

.hero__inner { position: relative; width: 100%; }

/* Archivo Black is used here and nowhere else on the site. */
.hero h1 {
  font-family: "Archivo Black", var(--font);
  font-weight: 400; /* Archivo Black ships as a single weight */
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  max-width: 15ch;
}

.hero__tagline {
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text);
  max-width: 58ch;
}

.hero__actions { margin-top: 2rem; }
.hero__meta { margin-top: 2rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: 1.75rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .625rem;
  margin-top: 1.75rem;
}

/* connect address */
.connect {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  background: rgba(20, 25, 34, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  max-width: 100%;
}

.connect__value {
  padding: .5rem .875rem;
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--text);
  display: flex;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
}

.connect__btn {
  padding: .5rem .875rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  border-left: 1px solid var(--line);
  transition: color .18s var(--ease), background .18s var(--ease);
  flex: none;
}

.connect__btn:hover { color: var(--text); background: var(--surface-2); }
.connect__btn.is-done { color: var(--ok); }

/* status chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 25, 34, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: .8125rem;
  color: var(--muted);
}

.chip strong { color: var(--text); font-weight: 500; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

.dot--off { background: var(--off); }

/* panels */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat { padding: 1.25rem 1.5rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }

.stat__label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: .5rem;
}

.stat__value {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: .375rem;
}

.stat__value span { font-size: .875rem; font-weight: 400; color: var(--muted-dim); }

.stat__value--sm {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  font-family: var(--mono);
  word-break: break-word;
}

.bar {
  height: 3px;
  border-radius: 2px;
  background: var(--surface-3);
  margin-top: .875rem;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width .9s var(--ease) .15s;
}

.panel__foot {
  border-top: 1px solid var(--line);
  padding: .75rem 1.5rem;
  font-size: .8125rem;
  color: var(--muted-dim);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* content columns */
.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem 1.375rem;
}

.card h3 { margin-bottom: .5rem; }
.card p { font-size: .9375rem; }

/* services */

/* Small coloured kicker above a heading. Set --c to change the colour. */
.kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--c, var(--accent));
  margin-bottom: .875rem;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: none;
  border-radius: 1px;
}

/* Archivo Black, same as the hero headline. Used sparingly. */
.display {
  font-family: "Archivo Black", var(--font);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  text-transform: uppercase;
  /* Roughly half the content column, so it breaks over two lines
     instead of stacking into a narrow tower. */
  max-width: min(100%, 620px);
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.service {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

/* Service colour bar across the top of each card. */
.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  background: var(--c, var(--accent));
}

.service:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c, var(--accent)) 55%, transparent);
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--c, var(--accent)) 45%, transparent);
}

/* Tint the bottom of the image with the service colour. */
.service__tint {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--c, var(--accent)), transparent 42%);
  opacity: .16;
  transition: opacity .3s var(--ease);
}

.service:hover .service__tint { opacity: .26; }

.service__img { position: absolute; inset: 0; z-index: -2; background: var(--surface); }

.service__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.service:hover .service__img img { transform: scale(1.05); }

/* Keeps the text readable over any screenshot. */
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(11, 14, 20, .20) 0%,
    rgba(11, 14, 20, .70) 55%,
    rgba(11, 14, 20, .95) 100%
  );
}

/* Needs to beat ".service p" below, which would otherwise grey this out. */
.service .kicker {
  margin-bottom: .625rem;
  color: var(--c, var(--accent));
}

.service h3 { font-size: 1.25rem; letter-spacing: -.015em; }

.service p { margin-top: .5rem; font-size: .9375rem; color: #b6bcc7; }

/* definition rows */
.rows { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 1rem 2rem;
  padding-block: .875rem;
  border-bottom: 1px solid var(--line);
}

.row__key { font-size: .9375rem; font-weight: 500; color: var(--text); }
.row__val { font-size: .9375rem; color: var(--muted); }

/* store */
.items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  /* stretch, so every card in a row matches the tallest one */
  align-items: stretch;
}

.item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color .18s var(--ease);
}

.item:hover { border-color: var(--line-hi); }

.item--featured { border-color: rgba(46, 139, 255, .35); }
.item--featured:hover { border-color: rgba(46, 139, 255, .55); }

.item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.item__tag {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 4px;
  padding: .25rem .5rem;
  flex: none;
}

.item__kind { font-size: .8125rem; color: var(--muted-dim); margin-top: .25rem; }

.item__price {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-top: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.item__amount { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.item__was { font-size: .875rem; color: var(--muted-dim); text-decoration: line-through; }
.item__cur { font-size: .8125rem; color: var(--muted-dim); }

.item__list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.item__list li {
  display: flex;
  gap: .625rem;
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.5;
}

.item__list svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--accent); }

.item__buy { margin-top: 1.5rem; }

.notice {
  display: flex;
  gap: .75rem;
  padding: .875rem 1rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: .875rem;
  color: var(--muted);
  max-width: 70ch;
}

.notice svg { width: 16px; height: 16px; flex: none; color: var(--accent); margin-top: 3px; }

/* account */
.account-id {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.account-id__avatar {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid var(--line-hi);
  object-fit: cover;
  flex: none;
}

.account-id h1 { margin-top: .35rem; }

.account-id__meta { color: var(--muted-dim); margin-top: .25rem; }

.account-id__actions {
  display: flex;
  gap: .5rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.summary__cell { padding: 1.125rem 1.375rem; border-right: 1px solid var(--line); }
.summary__cell:last-child { border-right: 0; }

.summary__label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: .375rem;
}

.summary__value {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* tables */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}

.table th {
  text-align: left;
  padding: .75rem 1.25rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-dim);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: .875rem 1.25rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }

.table__right { text-align: right; }
.table__strong { color: var(--text); font-weight: 500; }

.tag {
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: 4px;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  white-space: nowrap;
}

.tag--red { color: var(--off); background: rgba(224, 82, 96, .13); }
.tag--muted { color: var(--muted-dim); background: var(--surface-2); }

.empty {
  border: 1px dashed var(--line-hi);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted-dim);
  font-size: .9375rem;
}

/* account pill in the header */
.account-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .75rem .3rem .3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text);
  transition: background .18s var(--ease), border-color .18s var(--ease);
}

.account-pill:hover { background: var(--surface-2); border-color: var(--line-hi); }

.account-pill img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.account-pill__fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: .6875rem;
  font-weight: 600;
  flex: none;
}

@media (max-width: 620px) {
  .summary { grid-template-columns: 1fr; }
  .summary__cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary__cell:last-child { border-bottom: 0; }
  .account-id__actions { margin-left: 0; width: 100%; }
}

/* city center console */
.console {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: 100%;
  /* Wider than the marketing pages. The console is dense, so it earns it. */
  max-width: 1640px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem) clamp(3rem, 6vw, 4rem);
  align-items: start;
}

@media (min-width: 1500px) {
  .console { grid-template-columns: 270px minmax(0, 1fr); }
}

.console__toggle { display: none; }

.console__side {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.console__me {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.console__me img,
.console__me-fallback {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex: none;
  object-fit: cover;
}

.console__me-fallback {
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}

.console__me-text { min-width: 0; }

.console__me-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console__me-sub {
  font-size: .75rem;
  color: var(--muted-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console__nav { padding: .5rem; }

.console__nav-section {
  padding: .875rem .75rem .375rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.console__nav-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  transition: background .16s var(--ease), color .16s var(--ease);
}

.console__nav-link:hover { background: var(--surface-2); color: var(--text); }

.console__nav-link.is-active {
  background: var(--accent-dim);
  color: var(--accent);
}

.console__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  flex: none;
}

.console__side-foot {
  padding: .5rem;
  border-top: 1px solid var(--line);
}

.console__main { min-width: 0; }

.console__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.console__head h1 { margin-top: .35rem; font-size: clamp(1.5rem, 3vw, 2rem); }

.console__lead { margin-top: .5rem; max-width: 60ch; }

.console__head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* console building blocks */
.panel-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.panel-card + .panel-card { margin-top: 1.25rem; }

.panel-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.panel-card__head h2,
.panel-card__head h3 { font-size: 1rem; }

.panel-card__body { padding: 1.25rem; }
.panel-card__body > * + * { margin-top: 1rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 1rem 1.125rem;
}

.stat-card__label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: .375rem;
}

.stat-card__value {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-card__sub { font-size: .8125rem; color: var(--muted-dim); margin-top: .25rem; }

/* tabs */
.tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tabs a {
  padding: .625rem .875rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.tabs a:hover { color: var(--text); }
.tabs a.is-active { color: var(--text); border-bottom-color: var(--c, var(--accent)); }

/* forms */
.field { display: block; margin-bottom: 1.25rem; }

.field__label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .375rem;
}

.field__hint { font-size: .8125rem; color: var(--muted-dim); margin-bottom: .5rem; }

.input,
.textarea,
.select {
  width: 100%;
  padding: .625rem .75rem;
  font: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-hi);
  border-radius: 6px;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

/* rendered markdown */
.prose { color: var(--muted); font-size: .9375rem; line-height: 1.7; }
.prose > * + * { margin-top: 1rem; }
.prose h3, .prose h4, .prose h5 { color: var(--text); font-size: 1rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .375rem; }

.prose code {
  font-family: var(--mono);
  font-size: .875em;
  padding: .1rem .3rem;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
}

.prose pre {
  padding: .875rem 1rem;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow-x: auto;
}

.prose pre code { background: none; padding: 0; }

.prose blockquote {
  padding-left: 1rem;
  border-left: 2px solid var(--line-hi);
  color: var(--muted-dim);
}

/* author byline */
.byline {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
}

.byline__avatar {
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
}

.byline__fallback {
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: none;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
}

.byline__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comment__head .byline__name { font-size: .875rem; font-weight: 600; color: var(--text); }

/* suggestions */
.suggestion-list { display: flex; flex-direction: column; gap: .75rem; }

.suggestion {
  display: flex;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color .18s var(--ease);
}

.suggestion:hover { border-color: var(--line-hi); }

.suggestion__score {
  flex: none;
  width: 62px;
  text-align: center;
  padding-top: .125rem;
  color: var(--muted-dim);
}

.suggestion__score.is-positive { color: var(--ok); }
.suggestion__score.is-negative { color: var(--off); }

.suggestion__score-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.suggestion__score-label {
  display: block;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.suggestion__body { min-width: 0; flex: 1; }

.suggestion__title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}

.suggestion__title:hover { color: var(--accent); }

.suggestion__excerpt {
  font-size: .875rem;
  color: var(--muted);
  margin-top: .375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.suggestion__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .875rem;
  margin-top: .75rem;
  font-size: .8125rem;
  color: var(--muted-dim);
}

.suggestion-head { display: flex; gap: 1.25rem; align-items: flex-start; }

.vote-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  flex: none;
}

.vote-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  border: 1px solid var(--line-hi);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}

.vote-btn svg { width: 18px; height: 18px; }
.vote-btn:hover:not(:disabled) { color: var(--text); border-color: var(--line-hi); background: var(--surface-2); }
.vote-btn:disabled { opacity: .4; cursor: not-allowed; }
.vote-btn.is-on { color: var(--ok); border-color: var(--ok); background: rgba(62, 207, 142, .12); }
.vote-btn.is-on.is-down { color: var(--off); border-color: var(--off); background: rgba(224, 82, 96, .12); }

.vote-score { font-size: 1rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

.comment {
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.comment + .comment { margin-top: .75rem; }
.comment.is-hidden { opacity: .55; }

.comment__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .625rem;
  flex-wrap: wrap;
}

.comment__author { font-size: .875rem; font-weight: 600; color: var(--text); }
.comment__time   { font-size: .8125rem; color: var(--muted-dim); }
.comment__body   { font-size: .9375rem; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.pager__label { font-size: .875rem; color: var(--muted-dim); }

/* rules */
.rules-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.rules-nav {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: .5rem;
}

.rules-nav__title {
  padding: .625rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.rules-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem .75rem;
  border-radius: 6px;
  font-size: .875rem;
  color: var(--muted);
  transition: background .16s var(--ease), color .16s var(--ease);
}

.rules-nav a:hover { background: var(--surface-2); color: var(--text); }
.rules-nav a span { font-size: .75rem; color: var(--muted-dim); font-variant-numeric: tabular-nums; }

.rules-section + .rules-section { margin-top: 2.5rem; }

.rules-section__head {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.rules-section__num {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 6px;
  padding: .25rem .5rem;
  flex: none;
  font-variant-numeric: tabular-nums;
}

.rules-section { scroll-margin-top: calc(var(--nav-h) + 1rem); }

.rules-list { display: flex; flex-direction: column; gap: .75rem; }

.rules-list li {
  display: flex;
  gap: .875rem;
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--muted);
}

.rules-list__num {
  flex: none;
  min-width: 2.5rem;
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--muted-dim);
  padding-top: .1rem;
}

/* Inline HTML inside a rule */
.rules-list__text { min-width: 0; }
.rules-list__text b,
.rules-list__text strong { color: var(--text); font-weight: 600; }
.rules-list__text a { color: var(--accent); }
.rules-list__text a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rules-list__text code {
  font-family: var(--mono);
  font-size: .875em;
  padding: .1rem .3rem;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
}
.rules-list__text mark { background: var(--accent-dim); color: var(--accent); padding: 0 .2rem; border-radius: 3px; }

@media (max-width: 900px) {
  .rules-layout { grid-template-columns: 1fr; }
  .rules-nav { position: static; }
  .suggestion { flex-direction: row; }
  .suggestion__score { width: 48px; }
}

/* file dropzone */
.dropzone {
  position: relative;
  display: block;
  padding: 2rem 1.25rem;
  text-align: center;
  border: 2px dashed var(--line-hi);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.dropzone:hover,
.dropzone.is-over { border-color: var(--accent); background: var(--accent-dim); }

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone__icon { display: block; color: var(--muted-dim); margin-bottom: .625rem; }
.dropzone__icon svg { width: 28px; height: 28px; margin: 0 auto; }

.dropzone__text {
  display: block;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

.dropzone__hint { display: block; font-size: .8125rem; color: var(--muted-dim); margin-top: .25rem; }

/* radio cards */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: .625rem;
}

.choice { position: relative; display: block; cursor: pointer; }

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__body {
  display: block;
  padding: .875rem 1rem;
  border: 1px solid var(--line-hi);
  border-radius: 8px;
  background: var(--bg);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.choice input:checked + .choice__body { border-color: var(--accent); background: var(--accent-dim); }
.choice input:focus-visible + .choice__body { outline: 2px solid var(--accent); outline-offset: 2px; }

.choice__title { display: block; font-size: .9375rem; font-weight: 600; color: var(--text); }
.choice__note  { display: block; font-size: .8125rem; color: var(--muted-dim); margin-top: .25rem; }
.choice__price { display: block; font-size: .8125rem; color: var(--accent); margin-top: .375rem; font-variant-numeric: tabular-nums; }

/* linked account row */
.link-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.link-row__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
}

.link-row__avatar--blank {
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #5865f2;
  background: rgba(88, 101, 242, .14);
}

.link-row__avatar--blank svg { width: 26px; height: 26px; }

.link-row__text { flex: 1; min-width: 180px; }

.link-row__name {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .125rem;
}

/* checkout */
.checkout {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.checkout__summary {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.checkout__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--muted);
}

.checkout__total strong {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.checkout__meta {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.checkout__meta strong { color: var(--text); }

/* Stripe renders its own form in here, so keep the container plain. */
.checkout__payment {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: clamp(1rem, 2vw, 1.5rem);
  min-height: 420px;
}

.secure-note {
  display: flex;
  gap: .875rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.secure-note svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--ok);
  margin-top: 2px;
}

.secure-note__title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .375rem;
}

.secure-note__body {
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--muted-dim);
  max-width: 62ch;
}

.secure-note__body + .secure-note__body { margin-top: .5rem; }

@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout__summary { position: static; }
}

/* player lookup */
.lookup { position: relative; }

.lookup__results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--line-hi);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
}

.lookup__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .625rem .75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  transition: background .14s var(--ease);
}

.lookup__item:last-child { border-bottom: 0; }
.lookup__item:hover,
.lookup__item:focus-visible { background: var(--surface-2); }

.lookup__avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
}

.lookup__text { min-width: 0; flex: 1; }

.lookup__name {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lookup__sub {
  font-size: .75rem;
  color: var(--muted-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lookup__empty { padding: .875rem .75rem; font-size: .875rem; color: var(--muted-dim); }

/* confirmation box once a player is picked */
.confirm-card {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-dim);
}

.confirm-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
}

.confirm-card__text { min-width: 0; flex: 1; }
.confirm-card__name { font-size: .9375rem; font-weight: 600; color: var(--text); }
.confirm-card__id { font-size: .8125rem; color: var(--muted); margin-top: .125rem; }
.confirm-card__meta { color: var(--muted-dim); margin-top: .25rem; }

/* compact select used inside table rows */
.select--sm {
  padding: .375rem 1.75rem .375rem .5rem;
  font-size: .8125rem;
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  min-width: 150px;
}

.inline-edit { display: inline-flex; gap: .375rem; align-items: center; }

.table--roster td { vertical-align: middle; }
.table--roster select { max-width: 220px; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .9375rem;
  color: var(--muted);
  cursor: pointer;
}

.checkbox input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: none;
}

.form-row {
  display: flex;
  gap: .625rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.form-row .input,
.form-row .select { width: auto; flex: 1 1 200px; }

/* card grids used across the console */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.char-card,
.apply-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.char-card__top {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.char-card__face {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line-hi);
  flex: none;
  background: var(--surface-2);
}

.char-card__face--blank { display: block; }

.char-card__id { min-width: 0; }

.char-card__kv { grid-template-columns: minmax(0, 1fr) auto; }
.char-card__kv dd { text-align: right; }

.char-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.apply-card h3 { margin-bottom: .5rem; }
.apply-card .small { color: var(--muted); }
.apply-card__foot { margin-top: auto; padding-top: 1.25rem; }

/* flash messages */
.flash {
  padding: .75rem 1rem;
  border-radius: 6px;
  font-size: .875rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
}

.flash--ok  { color: var(--ok);  background: rgba(62, 207, 142, .1); border-color: rgba(62, 207, 142, .3); }
.flash--err { color: var(--off); background: rgba(224, 82, 96, .1);  border-color: rgba(224, 82, 96, .3); }

/* extra tag colours */
.tag--green { color: var(--ok);    background: rgba(62, 207, 142, .13); }
.tag--amber { color: #f59e0b;      background: rgba(245, 158, 11, .13); }
.tag--cyan  { color: #38bdf8;      background: rgba(56, 189, 248, .13); }

/* definition list used on detail views */
.kv { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: .5rem 1.5rem; }
.kv dt { font-size: .875rem; color: var(--muted-dim); }
.kv dd { font-size: .9375rem; color: var(--text); margin: 0; }

/* answer blocks on applications */
.qa + .qa { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.qa__q { font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: .375rem; }
.qa__a { font-size: .9375rem; color: var(--muted); white-space: pre-wrap; }

/* chat used by the appeal agent */
.chat {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  max-height: 460px;
  overflow-y: auto;
  padding: 1.25rem;
}

.chat__msg {
  max-width: 82%;
  padding: .75rem .875rem;
  border-radius: 10px;
  font-size: .9375rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.chat__msg--them {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--text);
  border-bottom-left-radius: 3px;
}

.chat__msg--me {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.chat__form {
  display: flex;
  gap: .5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
}

.chat__form .input { flex: 1; }

@media (max-width: 900px) {
  .console { grid-template-columns: 1fr; gap: 1rem; }

  .console__toggle {
    display: flex;
    align-items: center;
    gap: .625rem;
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-size: .875rem;
    font-weight: 500;
    color: var(--text);
  }

  .console__toggle-bars { display: grid; gap: 3px; }
  .console__toggle-bars span {
    display: block;
    width: 15px;
    height: 1.5px;
    background: var(--text);
  }

  .console__side { display: none; position: static; }
  .console__side.is-open { display: block; }

  .kv { grid-template-columns: 1fr; gap: .125rem 0; }
  .kv dd + dt { margin-top: .75rem; }
  .chat__msg { max-width: 92%; }
}

/* footer */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-block: 2rem;
}

.site-foot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-foot__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

.site-foot__links a {
  font-size: .875rem;
  color: var(--muted);
  transition: color .18s var(--ease);
}
.site-foot__links a:hover { color: var(--text); }

.site-foot__legal {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--muted-dim);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* motion
   All of these are scoped to .js so that with JavaScript disabled the page
   simply renders, rather than staying invisible waiting for a class that
   never arrives. */

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease) var(--d, 0s), transform .5s var(--ease) var(--d, 0s);
}

.js .reveal.is-in { opacity: 1; transform: none; }

/* Hero entrance on load */
.js .hero .enter {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s var(--ease) var(--d, 0s), transform .65s var(--ease) var(--d, 0s);
}

.js body.is-ready .hero .enter,
body.is-ready .hero .enter { opacity: 1; transform: none; }

.js .hero__media img {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s var(--ease), transform 1.6s var(--ease);
}

body.is-ready .hero__media img { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .burger { display: block; }
  .site-head__right .btn { display: none; }
  .cols, .cols--3 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: .25rem; }
  .logo img { height: 36px; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .connect { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal, .js .hero .enter { opacity: 1 !important; transform: none !important; }
  .js .hero__media img { opacity: 1 !important; transform: none !important; }
}
