/* ===========================================================================
   LAMPORT. Ethereum silver on black.

   base.css is nulra's stylesheet run through invert.py: every colour literal
   flipped and desaturated toward graphite, because Ethereum's own mark is a
   cool greyscale and their forest green carried the whole original palette.

   Left here is what a transform cannot decide: where the shine goes, the one
   accent, the controls their sheet never had, and two wordmark cascade fixes.
   =========================================================================== */

:root, .site-shell{
  --paper:   #07070a;        /* black, barely cool */
  --surface: #101216;
  --ink:     #d7dbe3;        /* bright silver */
  --muted:   #868b97;
  --line:    #24272e;
  --accent:  #8490f0;        /* taken off the mark itself, the only colour on the page */
  --chrome-hi: #ffffff;
  --chrome-lo: #878d9c;
}

html, body{background:var(--paper)}

/* ------------------------------------------------------------------ shine
   Silver is not a colour, it is a gradient. The wordmark and the big figures
   are brushed metal: bright at the top, falling to graphite, with a second
   highlight low down so it reads as a surface catching light rather than a
   flat grey fill. */
/* The wordmark is a drawn grid now, with its sheen in the SVG's own gradient,
   so none of the text treatment applies. Their sheet already sizes a
   `.wordmark` image; this just holds the proportions. */
.wordmark{width:auto; height:128px; display:block; margin:0 0 22px -4px}
@media(max-width:1100px){ .wordmark{height:104px} }
@media(max-width:760px) { .wordmark{height:76px; width:auto} }
@media(max-width:480px) { .wordmark{height:56px} }
.routing-percent, .stat-value{
  background:linear-gradient(176deg, #ffffff 0%, #c9cfdb 55%, #8d94a3 100%);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}

/* ------------------------------------------------------------- the frame
   Monoliths in fog over still water, generated for this site. It arrives
   already dark silver on black, so there is nothing to invert: the only job
   left is holding it back far enough that type stays the subject. */
.forest-frame{
  /* No mask. Nulra cut a hole down the middle because their art is a frame;
     this one is a scene, so it covers the page and a scrim keeps type legible. */
  -webkit-mask-image:none;
  mask-image:none;
  background-size:cover;
  background-position:50% 42%;
  filter:grayscale(1) brightness(.72) contrast(1.04);
  opacity:1;
}
/* the scrim: heavier top and bottom where the chrome sits, lighter through the
   middle so the monoliths still read behind the content */
.forest-frame::after{
  content:'';
  position:fixed;
  inset:0;
  background:
    linear-gradient(180deg, #07070af2 0%, #07070ab8 22%, #07070aa6 50%, #07070ae0 88%, #07070af7 100%),
    radial-gradient(130% 80% at 50% 44%, #07070a00 0%, #07070a7a 70%, #07070ac9 100%);
}

/* ---------------------------------------------------------------- accent */
/* highlighted words in running text: the one colour on the page, used on the
   phrase that carries the sentence rather than scattered for decoration */
.hl{color:var(--accent); font-weight:500}

.status-dot{background:var(--accent); box-shadow:0 0 0 3px #8490f02e}
.routing-icon, .step-number, .text-link{color:var(--accent)}
.bar-track > i{display:block; height:100%;
  background:linear-gradient(90deg, #6675dd, var(--accent))}
::selection{background:var(--accent); color:var(--paper)}

/* a button in brushed steel, lit from above */
.button{
  background:linear-gradient(180deg, #ffffff0b, #ffffff03);
  border-color:#333843;
}
.button:hover{border-color:#59607a; background:linear-gradient(180deg,#ffffff14,#ffffff06)}
.button.full{
  background:linear-gradient(180deg, #f6f8fc 0%, #c3cad8 52%, #a8b0c2 100%);
  border-color:#dfe4ee; color:#0b0d12; font-weight:600;
}
.button.full:hover{background:linear-gradient(180deg,#ffffff 0%,#d4dae6 52%,#b8c0d1 100%)}
.button[disabled]{opacity:.38; cursor:not-allowed}
.button[disabled]:hover{border-color:#333843; background:linear-gradient(180deg,#ffffff0b,#ffffff03)}

/* ---------------------------------------------------------------- wordmark
   Their sheet has a later rule sizing an SVG wordmark (`width:min(33vw,508px)`)
   that squashes a text one, and `.hero-inner h1` is their tagline rule, so the
   wordmark must stay a div. */
.routing-percent, .step-number{font-variation-settings:'wght' 800}
.button-row .button{flex:0 0 auto; width:auto}
@media(max-width:520px){ .button-row .button{flex:1 1 100%} }

/* ------------------------------------------------------------------ forms */
input, select{
  width:100%; padding:11px 12px; background:#00000055; color:var(--ink);
  border:1px solid var(--line); font:400 12px/1.5 'IBM Plex Mono', monospace; outline:none;
}
input:focus, select:focus{border-color:var(--accent)}
input.bad, select.bad{border-color:#d9a05b}
input::placeholder{color:var(--muted)}
label{display:block; margin-bottom:7px}
.field{margin-bottom:16px}
.note{font-size:10px; line-height:1.8; color:var(--muted); margin:9px 0 0; min-height:16px}
.note.bad{color:#d9a05b}

/* one chain walk, in their idiom: discrete steps, some already taken */
.walk{display:flex; gap:3px; align-items:center}
.walk i{width:7px; height:12px; background:var(--line); flex:none}
.walk i.on{background:#4a5370}
.walk i.cur{background:var(--accent)}

/* ------------------------------------------------------------- key tree
   256 one-time keys, one cell each, and a direct picture of the contract's
   `spent` bitmap. A slow wave runs diagonally across it: each cell's offset
   comes from its own row plus column, so the ripple travels rather than the
   whole grid blinking at once. Unspent keys sit in the brand violet, dim,
   waiting. The next one to be used glows. */
.keytree{display:grid; grid-template-columns:repeat(16, 1fr); gap:3px; margin:16px 0}
.keytree i{
  aspect-ratio:1;
  background:#171a2e;
  border:1px solid #242944;
  box-shadow:inset 0 1px 0 #ffffff08;
  animation:key-wave 4.2s ease-in-out infinite;
  animation-delay:var(--d, 0s);
}
@keyframes key-wave{
  0%, 68%, 100% { background:#171a2e; border-color:#242944; box-shadow:inset 0 1px 0 #ffffff08 }
  22%           { background:#2b3160; border-color:#434a86; box-shadow:inset 0 1px 0 #ffffff14, 0 0 8px -3px #8490f055 }
}
/* a spent key is dead and does not take part in the wave */
.keytree i.used{
  background:#3a3550; border-color:#4c4668; animation:none;
}
/* the one that goes next */
.keytree i.next{
  background:var(--accent); border-color:var(--accent); animation:key-next 2.1s ease-in-out infinite;
}
@keyframes key-next{
  0%, 100% { box-shadow:0 0 0 0 #8490f000; filter:brightness(1) }
  50%      { box-shadow:0 0 12px 1px #8490f088; filter:brightness(1.22) }
}
.keytree-legend{display:flex; gap:18px; font-size:10px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--muted); margin-top:4px}
.keytree-legend span{display:flex; align-items:center; gap:7px}
.keytree-legend b{width:9px; height:9px; display:block; background:#171a2e; border:1px solid #242944}
.keytree-legend .u b{background:#3a3550; border-color:#4c4668}
.keytree-legend .n b{background:var(--accent); border-color:var(--accent)}
@media(prefers-reduced-motion:reduce){ .keytree i{animation:none} }

/* ------------------------------------------------------------ coin rows */
.coin-row{display:grid; grid-template-columns:34px 1.6fr 1fr 1fr 1fr auto;
  align-items:center; gap:16px; padding:15px 18px; border-bottom:1px solid var(--line);
  font-size:12px}
.coin-row:last-child{border-bottom:0}
.coin-row .tick{width:34px; height:34px; background:#141820; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-size:10px; color:var(--muted)}
.coin-row .nm{color:var(--ink)}
.coin-row .nm small{display:block; color:var(--muted); font-size:10px; letter-spacing:.1em;
  text-transform:uppercase; margin-top:3px}
.coin-row .n{font-variant-numeric:tabular-nums; text-align:right; color:var(--ink)}
.attest{display:inline-flex; align-items:center; gap:7px; padding:4px 9px;
  border:1px solid var(--line); font-size:9px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted); white-space:nowrap}
.attest.ok{color:var(--accent); border-color:#39415a}
.attest i{width:5px; height:5px; background:currentColor; flex:none}
@media(max-width:900px){
  .coin-row{grid-template-columns:34px 1fr auto; row-gap:8px}
  .coin-row .n:nth-of-type(2){display:none}
}
/* the hero sat too low; their padding assumes a tall illustration above it */
.home-hero.tight{min-height:0}
.home-hero.tight .hero-inner{padding-top:52px; padding-bottom:50px}
@media(max-width:760px){ .home-hero.tight .hero-inner{padding-top:30px} }

/* ======================================================================
   TYPE
   Azeret Mono throughout, a touch larger than their sheet sets. Theirs is
   tuned for dark ink on cream; light type on black reads smaller than it
   measures, so everything comes up a step.
   ====================================================================== */
body{font-family:'Azeret Mono', ui-monospace, monospace; font-size:14.5px; line-height:1.75}
.small-print{font-size:11.5px; line-height:1.85}
.micro{font-size:11px; letter-spacing:.11em}
.stat-label{font-size:10px; letter-spacing:.11em}
.stat-note{font-size:11px}
.badge{font-size:10px}
.button{font-size:12.5px}
.definition{font-size:12.5px}
.batch-row{font-size:12.5px}
.hero-footnote{font-size:9.5px; letter-spacing:.14em}
.coin-row{font-size:12.5px}
input, select{font-family:'Azeret Mono', monospace; font-size:13px}

/* ======================================================================
   MOTION
   Three things move, and each one is showing you something true: a hash
   chain being walked, value crossing from one side to the other, and a
   measured number arriving at its value. Nothing moves for atmosphere.
   ====================================================================== */
@keyframes step-on{
  from{ background:var(--line); transform:scaleY(.4) }
  to  { background:#4a5370;     transform:scaleY(1) }
}
@keyframes step-cur{
  0%,100%{ background:var(--accent); box-shadow:0 0 0 0 #8e9df200 }
  50%    { background:#c3ccff;       box-shadow:0 0 7px 1px #8e9df255 }
}
.walk i.on{ animation:step-on .34s ease-out both }
.walk i.cur{ animation:step-cur 2.4s ease-in-out infinite }
/* the chain is walked left to right, so each step waits for the one before */
.walk i:nth-child(1){animation-delay:.00s} .walk i:nth-child(2){animation-delay:.05s}
.walk i:nth-child(3){animation-delay:.10s} .walk i:nth-child(4){animation-delay:.15s}
.walk i:nth-child(5){animation-delay:.20s} .walk i:nth-child(6){animation-delay:.25s}
.walk i:nth-child(7){animation-delay:.30s} .walk i:nth-child(8){animation-delay:.35s}
.walk i:nth-child(9){animation-delay:.40s} .walk i:nth-child(10){animation-delay:.45s}
.walk i:nth-child(11){animation-delay:.50s} .walk i:nth-child(12){animation-delay:.55s}
.walk i:nth-child(13){animation-delay:.60s} .walk i:nth-child(14){animation-delay:.65s}
.walk i:nth-child(15){animation-delay:.70s}

/* the arrow between what you hold and what it becomes */
@keyframes arrow-cross{
  0%   { transform:translateX(-5px); opacity:.35 }
  55%  { transform:translateX(5px);  opacity:1 }
  100% { transform:translateX(-5px); opacity:.35 }
}
.routing-body > .routing-source + .routing-destinations{position:relative}
.arrow{display:inline-block; animation:arrow-cross 3.2s ease-in-out infinite; color:var(--accent)}

/* measured figures fill their bar once, on arrival */
@keyframes bar-fill{ from{ transform:scaleX(0) } to{ transform:scaleX(1) } }
.bar-track > i{ transform-origin:left center; animation:bar-fill 1.1s cubic-bezier(.2,.7,.2,1) both }
.metric-grid > div:nth-child(1) .bar-track > i{animation-delay:.05s}
.metric-grid > div:nth-child(2) .bar-track > i{animation-delay:.18s}
.metric-grid > div:nth-child(3) .bar-track > i{animation-delay:.31s}
.metric-grid > div:nth-child(4) .bar-track > i{animation-delay:.44s}

@media(prefers-reduced-motion:reduce){
  .walk i.on, .walk i.cur, .arrow, .bar-track > i{ animation:none !important }
  .bar-track > i{ transform:none }
}

/* ------------------------------------------------------------------ math */
.math{font-size:13px; line-height:2.5; color:var(--ink); letter-spacing:.01em}
.math .op{color:var(--muted)}
.math .hl{color:var(--accent)}
.math-note{font-size:11px; color:var(--muted); line-height:1.9; margin:4px 0 0}
.math-row{display:grid; grid-template-columns:1fr; gap:4px; padding:16px 0;
  border-bottom:1px solid var(--line)}
.math-row:last-child{border-bottom:0}

/* ------------------------------------------------------------------ header
   Their header is capped to the content column, so the rule under it stops
   short and the brand and button float inboard. Full bleed instead: the line
   runs the whole width and the two ends of the bar sit at the two edges. */
.header-inner{max-width:none; width:100%; padding:0 34px}
@media(max-width:760px){ .header-inner{padding:0 18px} }

/* ------------------------------------------------------------------ focus
   Their focus ring is a 2px grey outline at 4px offset, which on a dark page
   reads as a stray white box floating around the button. Keep the ring, since
   a keyboard user needs to see where they are, but make it look deliberate:
   tight to the control and in the accent. Mouse clicks never trigger it,
   only :focus-visible does. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible{
  outline:1px solid var(--accent);
  outline-offset:2px;
}
.x-link:focus-visible{outline:1px solid var(--accent); outline-offset:-1px}
.button:focus-visible{ outline:1px solid var(--accent); outline-offset:2px }

/* `.header-action` is a bordered container in their sheet, which drew a second
   thin box around the launch button with a 4px gap. The button is the control;
   it does not need a frame around it. */
.header-action{border:0; padding:0}

/* -------------------------------------------------------------------- docs
   Their docs shell, with the sidebar made sticky so a long page keeps its
   table of contents in view. */
.docs-sidebar{position:sticky; top:86px; align-self:start; border-bottom:0; padding-bottom:0}
.docs-nav{display:flex; flex-direction:column; gap:2px; margin-top:14px}
.docs-nav a{text-decoration:none; color:var(--muted); font-size:12px; padding:7px 10px;
  border-left:1px solid var(--line); transition:color .15s, border-color .15s, background .15s}
.docs-nav a:hover{color:var(--ink); background:#ffffff06}
.docs-nav a.on{color:var(--accent); border-left-color:var(--accent)}
.docs-article{max-width:760px}
.docs-article h2{font-size:21px; letter-spacing:-.02em; margin:46px 0 12px; scroll-margin-top:96px}
.docs-article h2:first-of-type{margin-top:0}
.docs-article h3{font-size:14px; margin:28px 0 9px; color:var(--ink)}
.docs-article p{font-size:13px; line-height:1.9; color:var(--ink-dim, var(--muted)); max-width:68ch}
.docs-article ol, .docs-article ul{font-size:13px; line-height:1.9; color:var(--muted);
  padding-left:20px; max-width:66ch}
.docs-article li{margin:7px 0}
.docs-article li::marker{color:var(--accent)}
pre.code{background:#0c0e13; border:1px solid var(--line); padding:16px 18px; overflow-x:auto;
  font:400 11.5px/1.75 'Azeret Mono', monospace; color:var(--ink); margin:14px 0}
pre.code .c{color:var(--muted)}
pre.code .k{color:var(--accent)}
.inline-code{background:#161a21; border:1px solid var(--line); color:var(--ink)}
@media(max-width:900px){
  .docs-layout{grid-template-columns:1fr; gap:26px; padding-top:34px}
  .docs-sidebar{position:static; border-bottom:1px solid var(--line); padding-bottom:20px}
}



/* ---------------------------------------------------------------- carousel
   What is live, as cards you can scroll through. Native overflow rather than
   a slider library: it keeps keyboard and trackpad behaviour for free. */
.carousel{position:relative; margin-bottom:62px}
.car-rail{
  display:flex; gap:14px; overflow-x:auto; scroll-behavior:smooth;
  scroll-snap-type:x mandatory; padding:2px 0 14px;
  scrollbar-width:none;
}
.car-rail::-webkit-scrollbar{display:none}
.car-nav{
  position:absolute; top:calc(50% - 26px); transform:translateY(-50%); z-index:4;
  width:34px; height:34px; display:flex; align-items:center; justify-content:center;
  background:#0d1014; border:1px solid var(--line); color:var(--ink); cursor:pointer;
  font-size:14px; transition:border-color .15s, color .15s, opacity .15s;
}
.car-nav:hover{border-color:var(--accent); color:var(--accent)}
.car-nav.prev{left:-17px}
.car-nav.next{right:-17px}
.car-nav[disabled]{opacity:.25; cursor:default}
.car-nav[disabled]:hover{border-color:var(--line); color:var(--ink)}

.coin-card{
  flex:0 0 268px; scroll-snap-align:start;
  border:1px solid var(--line); background:#ffffff06; padding:17px 18px;
  display:flex; flex-direction:column; gap:12px; text-decoration:none;
  transition:border-color .16s, background .16s;
}
.coin-card:hover{border-color:#39415a; background:#ffffff0b}
.coin-card .top{display:flex; align-items:center; gap:11px}
.coin-card .tick{
  width:36px; height:36px; flex:none; display:flex; align-items:center; justify-content:center;
  background:#141820; border:1px solid var(--line); font-size:11px; color:var(--ink);
}
.coin-card .sym{color:var(--ink); font-size:13px; font-weight:500; line-height:1.2}
.coin-card .nm{color:var(--muted); font-size:10.5px; letter-spacing:.08em;
  text-transform:uppercase; margin-top:3px}
.coin-card .foot{display:flex; justify-content:space-between; align-items:baseline;
  font-size:11px; color:var(--muted)}
.coin-card .foot b{color:var(--ink); font-weight:400; font-variant-numeric:tabular-nums}
.coin-card .keytag{color:var(--accent); font-size:9.5px; letter-spacing:.1em}

.car-empty{
  flex:1 1 auto; border:1px dashed var(--line); background:#ffffff04;
  padding:34px 26px; text-align:center;
}
.car-empty p{margin:0 0 16px; color:var(--muted); font-size:12px}
@media(max-width:760px){ .car-nav{display:none} .coin-card{flex-basis:230px} }

/* ===================================================================== app
   Everything the app can do lives in one scrollable rail on the left, so the
   header stays down to a brand and one button. */
.app-shell{display:grid; grid-template-columns:216px minmax(0,1fr); align-items:start}
.app-side{
  position:sticky; top:62px; align-self:start;
  height:calc(100vh - 62px); overflow-y:auto; overscroll-behavior:contain;
  border-right:1px solid var(--line); background:#00000038;
  scrollbar-width:thin; scrollbar-color:var(--line) transparent;
}
.app-side::-webkit-scrollbar{width:6px}
.app-side::-webkit-scrollbar-thumb{background:var(--line)}
.side-inner{padding:26px 0 30px; display:flex; flex-direction:column; gap:26px; min-height:100%}
.side-group{display:flex; flex-direction:column}
.side-label{
  font-size:9.5px; letter-spacing:.22em; color:var(--muted);
  padding:0 20px 9px; text-transform:uppercase;
}
.side-group a{
  text-decoration:none; color:var(--muted); font-size:12.5px;
  padding:9px 20px; border-left:2px solid transparent;
  transition:color .14s, border-color .14s, background .14s;
}
.side-group a:hover{color:var(--ink); background:#ffffff07}
.side-group a.on{color:var(--accent); border-left-color:var(--accent); background:#ffffff09}
.side-foot{
  margin-top:auto; padding:16px 20px 0; border-top:1px solid var(--line);
  font-size:9.5px; letter-spacing:.16em; color:var(--muted);
  display:flex; align-items:center; gap:9px;
}
.app-main{min-width:0}
/* the app pages already carry their own wrap, so drop the second gutter */
.app-main .content-wrap{width:auto; max-width:1020px; padding:0 40px}
@media(max-width:900px){
  .app-shell{grid-template-columns:1fr}
  .app-side{
    position:static; height:auto; border-right:0; border-bottom:1px solid var(--line);
    overflow-x:auto; overflow-y:hidden;
  }
  .side-inner{flex-direction:row; gap:0; padding:0; min-height:0}
  .side-label{display:none}
  .side-group{flex-direction:row}
  .side-group a{white-space:nowrap; border-left:0; border-bottom:2px solid transparent; padding:14px 16px}
  .side-group a.on{border-left:0; border-bottom-color:var(--accent)}
  .side-foot{display:none}
  .app-main .content-wrap{padding:0 20px}
}

/* ------------------------------------------------------------------ loader
   Shown while the app wakes up. The chain walks once, then the whole thing
   lifts. It removes itself even if something below it throws, so a broken
   script can never leave you staring at a cover. */
.loader{
  position:fixed; inset:0; z-index:90; background:var(--paper);
  display:flex; align-items:center; justify-content:center;
  transition:opacity .45s ease, visibility .45s;
}
.loader.gone{opacity:0; visibility:hidden; pointer-events:none}
.loader-in{display:flex; flex-direction:column; align-items:center; gap:22px}
.loader-in img{opacity:.92}
.loader-walk{display:flex; gap:4px}
.loader-walk i{
  width:9px; height:16px; background:var(--line);
  animation:load-step 1.25s ease-in-out infinite;
}
@keyframes load-step{
  0%, 100% { background:var(--line);   transform:scaleY(.55) }
  45%      { background:var(--accent); transform:scaleY(1) }
}
.loader-walk i:nth-child(1){animation-delay:0s}     .loader-walk i:nth-child(2){animation-delay:.06s}
.loader-walk i:nth-child(3){animation-delay:.12s}   .loader-walk i:nth-child(4){animation-delay:.18s}
.loader-walk i:nth-child(5){animation-delay:.24s}   .loader-walk i:nth-child(6){animation-delay:.30s}
.loader-walk i:nth-child(7){animation-delay:.36s}   .loader-walk i:nth-child(8){animation-delay:.42s}
.loader-walk i:nth-child(9){animation-delay:.48s}   .loader-walk i:nth-child(10){animation-delay:.54s}
.loader-walk i:nth-child(11){animation-delay:.60s}  .loader-walk i:nth-child(12){animation-delay:.66s}
.loader-walk i:nth-child(13){animation-delay:.72s}  .loader-walk i:nth-child(14){animation-delay:.78s}
.loader-walk i:nth-child(15){animation-delay:.84s}
.loader-note{
  font-size:10px; letter-spacing:.24em; text-transform:uppercase; color:var(--muted);
}
@media(prefers-reduced-motion:reduce){ .loader-walk i{animation:none; background:var(--line)} }

/* ----------------------------------------------------------------- x link */
.header-action{display:flex; align-items:center; gap:14px}
.x-link{
  display:inline-flex; align-items:center; justify-content:center;
  width:30px; height:30px; flex:none;
  /* no frame. The glyph is the control; a box around it was reading as a
     second button, and with the focus ring sitting outside that, a third. */
  border:0; background:transparent; color:var(--muted); text-decoration:none;
  /* a grey wash on hover reads as the control greying out, which is the
     opposite of what hover should say. Colour and edge only, eased long
     enough to feel like a light coming up rather than a state flipping. */
  transition:border-color .28s ease, color .28s ease, box-shadow .28s ease;
}
.x-link:hover{color:var(--accent)}
.x-link svg{transition:transform .28s ease}
.x-link:hover svg{transform:scale(1.08)}
.x-link.foot{width:26px; height:26px; margin-bottom:6px; justify-content:flex-end}
@media(max-width:520px){ .x-link{display:none} .x-link.foot{display:inline-flex} }

/* nav dead centre regardless of how wide the brand or the button get */
.header-inner{display:grid; grid-template-columns:1fr auto 1fr; gap:20px}
.header-inner .brand{justify-self:start}
.header-inner .header-action{justify-self:end}
.site-nav{justify-self:center; gap:32px}
.site-nav a{color:#fff; font-weight:600; letter-spacing:.06em}
.site-nav a:hover{color:var(--accent)}
.site-nav a.is-active{color:var(--accent)}
@media(max-width:760px){ .site-nav{display:none} }

/* ------------------------------------------------------------------ footer
   Brand, a two line statement, and the links ranged right. */
.site-footer{max-width:none; padding:0}
.foot-grid{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:start; gap:30px;
  max-width:1240px; margin:0 auto; padding:34px 34px 40px;
  border-top:1px solid var(--line);
}
.foot-brand{
  display:inline-flex; align-items:center; gap:10px; text-decoration:none;
  color:var(--ink); font-size:17px; font-weight:600; letter-spacing:-.02em;
}
.foot-say{font-size:12.5px; line-height:1.9; color:var(--muted); justify-self:center}
.foot-links{display:flex; flex-direction:column; align-items:flex-end; gap:9px; justify-self:end}
.foot-links a{
  display:inline-flex; align-items:center; gap:7px;
  text-decoration:none; color:var(--muted); font-size:12px;
  transition:color .15s;
}
.foot-links a:hover{color:var(--accent)}
.foot-links a span{font-size:10px}
@media(max-width:760px){
  .foot-grid{grid-template-columns:1fr; gap:22px; padding:26px 20px 34px}
  .foot-say, .foot-links{justify-self:start; align-items:flex-start}
}

/* the mark sits with the wordmark, not floating above it */
.brand .mk, .foot-brand img{display:block; border-radius:0}
.loader-in img{opacity:1}

/* ===================================================================== console
   The sheets you actually operate are machined panels, not flat cards: lit
   from above, sitting on the page rather than printed on it, with the fields
   pressed into the face. Square throughout. Light comes from one direction
   and everything obeys it, which is the whole difference between depth and
   a drop shadow.
   ====================================================================== */
.panel.console{
  background:
    linear-gradient(180deg, #1a202b 0%, #11161e 42%, #0b0f15 100%);
  border:1px solid #2a3240;
  border-top-color:#3f4b60;
  border-bottom-color:#06080c;
  box-shadow:
    inset 0 1px 0 #55627a,                 /* the lit top edge */
    inset 0 -1px 0 #05070b,
    inset 1px 0 0 #2f3745,
    inset -1px 0 0 #171d26,
    0 20px 44px -14px #000000d9,           /* what it casts on the page */
    0 3px 10px #00000070;
  padding:22px 24px 24px;
}
.panel.console.slim{padding:20px 22px 22px}

.panel.console .panel-head{
  border-bottom:1px solid #222a36;
  box-shadow:0 1px 0 #39435569;            /* a scored line, not a hairline */
  padding-bottom:14px; margin-bottom:20px;
}

/* labels in the display face, so the chrome reads differently to the data */
.panel.console label, .panel.console .micro, .panel.console .stat-label{
  font-family:'Chakra Petch', 'Azeret Mono', monospace;
  letter-spacing:.14em; font-weight:600;
  color:#9aa6bd;
}
.panel.console .panel-head .micro{font-size:11.5px}
.panel.console label{font-size:10.5px}

/* fields pressed into the face */
.panel.console input, .panel.console select{
  background:linear-gradient(180deg, #080b10 0%, #0d1119 100%);
  border:1px solid #222a36;
  border-top-color:#141a23;
  border-bottom-color:#2d3644;
  box-shadow:
    inset 0 2px 6px #000000b0,
    inset 0 1px 0 #00000099,
    0 1px 0 #39435555;
  padding:13px 14px;
  color:var(--ink);
  transition:border-color .15s, box-shadow .15s;
}
.panel.console input:focus, .panel.console select:focus{
  border-color:var(--accent);
  box-shadow:
    inset 0 2px 6px #000000b0,
    0 0 0 1px #8490f055,
    0 0 14px -2px #8490f066;
}
.panel.console input::placeholder{color:#55607a}

/* the primary control gets the same light */
.panel.console .button.full{
  box-shadow:
    inset 0 1px 0 #ffffffcc,
    0 2px 0 #5c6682,
    0 10px 22px -8px #8490f055;
}
.panel.console .button.full:active{
  box-shadow:inset 0 2px 5px #00000055, 0 1px 0 #5c6682;
  transform:translateY(1px);
}

/* rows inside a console sit in shallow channels */
.panel.console .definition, .panel.console .batch-row{
  border-bottom:1px solid #1b2230;
  box-shadow:0 1px 0 #333c4d33;
}
.panel.console .keytree i{box-shadow:inset 0 1px 0 #ffffff08}
/* the launch sheet grew, so its pairs sit tighter */
.panel.console .row2{display:grid; grid-template-columns:1fr 1fr; gap:14px}
@media(max-width:620px){ .panel.console .row2{grid-template-columns:1fr} }
.foot-grid{grid-template-columns:1fr auto}

/* ------------------------------------------------------------------ brand
   The word next to the mark is the same drawn grid as the big wordmark, not
   type set to look like it, so the two can never drift apart. Tucked close to
   the logo: they are one lockup, not two things sitting near each other. */
.brand{gap:7px; align-items:center}
.brand .mk{display:block; flex:none}
.brand-word{display:block; width:auto; height:15px; opacity:.95}
.foot-brand{gap:8px}
.foot-brand .brand-word{height:16px}
@media(max-width:760px){ .brand-word{height:13px} }

/* ------------------------------------------------------------ source line
   A citation that looks like one: its own rule, the accent down the left, and
   the handle it came from. Linking the primary source beats paraphrasing it. */
.source-line{
  display:flex; align-items:center; gap:11px;
  margin-top:18px; padding:11px 14px;
  border:1px solid #2a3350; border-left:2px solid var(--accent);
  background:#8490f00d;
  text-decoration:none; color:var(--ink); font-size:11.5px;
  transition:background .2s ease, border-color .2s ease;
}
.source-line:hover{background:#8490f01f; border-color:#3f4b7a; border-left-color:var(--accent)}
.source-line .src-dot{width:6px; height:6px; background:var(--accent); flex:none}
.source-line .src-handle{margin-left:auto; color:var(--accent); font-size:11px}
.source-line .src-arrow{color:var(--accent); font-size:10px}
