/* Planet0x. Colour and type come straight from the brand kit (see /brand/tokens). */
:root {
  --void: #070707;
  --stone: #F5F4EF;
  --slate: #2A2A2A;
  --orbit: #3E4A44;
  --orbit-lit: #A9BCB1;      /* orbit, lifted for legibility on void */
  --ash: #8E8D87;            /* secondary text on void */
  --ink-2: #55544F;          /* secondary text on stone */
  --rule: rgba(245, 244, 239, .12);
  --rule-ink: rgba(7, 7, 7, .14);

  --display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --mono: "IBM Plex Mono", "Fira Mono", ui-monospace, Menlo, monospace;
  --greek: "Fira Mono", ui-monospace, monospace;

  --g: clamp(16px, 3.2vw, 44px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--void); color: var(--stone);
  font: 400 14px/1.7 var(--mono); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--stone); color: var(--void); }
:focus-visible { outline: 1px solid var(--stone); outline-offset: 4px; }
.paper :focus-visible { outline-color: var(--void); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--g); top: -60px; z-index: 50; background: var(--stone); color: var(--void); padding: 8px 12px; font-size: 12px; }
.skip:focus { top: 12px; }

/* ---- shared type ---------------------------------------------------------- */
.label {
  font: 500 10.5px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ash);
}
.paper .label { color: var(--ink-2); }
.display {
  font: 400 clamp(2.3rem, 5.6vw, 5.4rem)/1 var(--display);
  text-transform: uppercase; letter-spacing: .015em; text-wrap: balance;
}
.sec-head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--g);
  padding: clamp(72px, 10vw, 140px) var(--g) clamp(40px, 5vw, 64px);
}
.sec-head .label { grid-column: 1 / 4; padding-top: .9em; }
.sec-head .display { grid-column: 4 / 13; }
.sec-sub { grid-column: 7 / 13; margin-top: 28px; color: var(--ash); max-width: 52ch; }
.live {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orbit-lit);
  margin-right: 8px; vertical-align: 1px; animation: live 2.4s ease-in-out infinite;
}
@keyframes live { 50% { opacity: .25; } }

/* ---- bar ------------------------------------------------------------------ */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 58px;
  display: flex; align-items: center; gap: 32px; padding: 0 var(--g);
  border-bottom: 1px solid transparent; transition: background .4s, border-color .4s;
}
.bar.solid { background: rgba(7, 7, 7, .82); border-color: var(--rule); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bar-brand img { width: 118px; height: auto; }
.bar-nav { display: flex; gap: 26px; margin-left: auto; }
.bar-nav a {
  font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--ash); padding: 8px 0; position: relative; transition: color .25s;
}
.bar-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.bar-nav a:hover { color: var(--stone); }
.bar-nav a:hover::after { transform: scaleX(1); }
.bar-nav .bar-cta { color: var(--stone); }
.bar-meta { font: 400 10.5px/1 var(--mono); letter-spacing: .12em; color: var(--ash); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-menu { display: none; }

/* ---- hero: the planet ----------------------------------------------------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.ascii { position: absolute; inset: 0; width: 100%; height: 100%; }
.tags { position: absolute; inset: 0; pointer-events: none; }
.tag {
  position: absolute; left: 0; top: 0; will-change: transform;
  font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  padding: 4px 0 4px 8px; border-left: 1px solid var(--orbit-lit); white-space: nowrap;
  transition: opacity .6s;
}
.tag i { font-style: normal; color: var(--orbit-lit); margin-right: 8px; }
.tag.behind { opacity: .35; }
.hero-label { position: absolute; left: var(--g); top: 96px; }
.hero-desc {
  position: absolute; right: var(--g); top: 96px; text-align: right;
  font: 500 10.5px/1.75 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ash);
}
.hero-foot { position: absolute; left: var(--g); bottom: clamp(28px, 6vh, 64px); width: min(60vw, 940px); }
.hero-word img { width: 100%; height: auto; }
.hero-tag {
  margin-top: clamp(14px, 2vw, 26px); padding-left: .3em;
  font: 400 clamp(10px, .95vw, 13px)/1 var(--mono); letter-spacing: .62em; text-transform: uppercase; color: var(--ash);
}
.readout {
  position: absolute; right: var(--g); bottom: calc(clamp(28px, 6vh, 64px) + 48px);
  display: grid; gap: 6px; font: 400 10.5px/1.4 var(--mono); letter-spacing: .08em; color: var(--ash);
}
.readout div { display: grid; grid-template-columns: 92px auto; gap: 16px; }
.readout dt { font-family: var(--greek); text-transform: uppercase; letter-spacing: .12em; }
.readout dt:first-letter { text-transform: none; }
.readout dd { color: var(--stone); font-variant-numeric: tabular-nums; }
.hero-down {
  position: absolute; right: var(--g); bottom: clamp(28px, 6vh, 64px);
  font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--rule); padding-bottom: 6px; transition: border-color .3s;
}
.hero-down:hover { border-color: var(--stone); }

/* ---- thesis: stone paper -------------------------------------------------- */
.paper { background: var(--stone); color: var(--void); }
.thesis-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--g);
  padding: clamp(80px, 12vw, 160px) var(--g) clamp(56px, 7vw, 96px);
}
.thesis-grid .label { grid-column: 1 / 4; padding-top: 1em; }
.thesis-grid .display { grid-column: 4 / 13; font-size: clamp(2.6rem, 7.4vw, 7.2rem); line-height: .96; }
.thesis-copy { grid-column: 7 / 13; margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 1em; color: var(--ink-2); max-width: 56ch; }
.thesis-copy p:first-child { color: var(--void); }

.elements { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-ink); }
.elements li { padding: clamp(28px, 3.4vw, 48px) var(--g) clamp(36px, 4vw, 56px); border-left: 1px solid var(--rule-ink); }
.elements li:first-child { border-left: 0; }
.el { width: clamp(72px, 7vw, 104px); height: auto; margin-bottom: 32px; overflow: visible; }
.el * { transform-box: view-box; transform-origin: 50% 50%; }
.elements h3 { font: 400 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.el-k { font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin: 10px 0 18px; }
.elements li > p:last-child { font-size: 13px; color: var(--ink-2); max-width: 30ch; }

.el-star path { fill: var(--void); }
.el-star .spin { animation: spin 40s linear infinite; }
.el-star .glint path { fill: var(--stone); }
.el-star .glint { animation: glint 5s var(--ease) infinite; }
.el-orbit circle { fill: none; stroke: var(--void); stroke-width: 1.4; }
.el-orbit .sat circle, .el-orbit .core { fill: var(--void); stroke: none; }
.el-orbit .sat { animation: spin 9s linear infinite; }
.el-radiance .rays { animation: spin 90s linear infinite; }
.el-radiance line { stroke: var(--void); stroke-width: 1.4; stroke-linecap: round; animation: ray 2.8s ease-in-out infinite; }
.el-gravity circle { fill: none; stroke: var(--void); stroke-width: 1.4; }
.el-gravity .g-l { animation: pull-l 6s ease-in-out infinite; }
.el-gravity .g-r { animation: pull-r 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glint { 0%, 70%, 100% { transform: scale(0); } 80% { transform: scale(1) rotate(45deg); } }
@keyframes ray { 0%, 100% { opacity: .18; } 30% { opacity: 1; } }
@keyframes pull-l { 0%, 100% { transform: translateX(-6px); } 50% { transform: translateX(10px); } }
@keyframes pull-r { 0%, 100% { transform: translateX(6px); } 50% { transform: translateX(-10px); } }

/* ---- moons ---------------------------------------------------------------- */
.moon { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.moon-stage { position: relative; min-height: clamp(420px, 44vw, 640px); border-right: 1px solid var(--rule); }
.moon.flip .moon-stage { order: 2; border-right: 0; border-left: 1px solid var(--rule); }
.stage-cap { position: absolute; left: 20px; bottom: 16px; font: italic 400 10.5px/1 var(--mono); color: var(--ash); letter-spacing: .04em; }
.moon-copy { padding: clamp(40px, 5vw, 72px) var(--g); display: flex; flex-direction: column; }
.moon-name { font: 400 clamp(3rem, 7.4vw, 7rem)/.9 var(--display); text-transform: uppercase; letter-spacing: .01em; margin-top: 20px; }
.moon-line { font: 400 clamp(1.15rem, 1.6vw, 1.5rem)/1.2 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--orbit-lit); margin: 18px 0 22px; }
.moon-copy > p:not(.label):not(.moon-line) { max-width: 46ch; color: var(--ash); }
.spec { margin-top: 32px; border-top: 1px solid var(--rule); }
.spec li { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.spec span { font: 500 10px/2.1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }

.ledger { margin-top: 28px; font-size: 11px; font-variant-numeric: tabular-nums; min-height: 120px; }
.ledger::before { content: "Sample feed"; display: block; margin-bottom: 8px; font: 500 9.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ash); opacity: .7; }
.ledger li { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--rule); color: var(--ash); opacity: 0; transform: translateY(-6px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.ledger li.in { opacity: 1; transform: none; }
.ledger em { font-style: normal; transition: color .4s; }
.ledger li[data-s="0"] em { color: var(--ash); }
.ledger li[data-s="1"] em { color: var(--stone); }
.ledger li[data-s="2"] em { color: var(--orbit-lit); }
.ledger.agents li em { color: var(--stone); }

.arrow {
  align-self: flex-start; margin-top: 32px; text-decoration: none;
  font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid var(--stone); padding-bottom: 6px;
}
.arrow::after { content: "→"; display: inline-block; margin-left: 10px; transition: transform .35s var(--ease); }
.arrow:hover::after { transform: translateX(6px); }

.moon.reserved { grid-template-columns: 1fr 1fr; align-items: center; padding: clamp(40px, 5vw, 72px) var(--g); gap: var(--g); }
.reserved-orbit { width: 100%; max-width: 520px; justify-self: center; overflow: visible; }
.reserved-orbit ellipse { fill: none; stroke: var(--ash); stroke-dasharray: 2 5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.reserved-orbit .ghost { fill: none; stroke: var(--stone); stroke-width: 1; vector-effect: non-scaling-stroke; }
.moon.reserved .moon-name { color: transparent; -webkit-text-stroke: 1px var(--ash); font-size: clamp(2.4rem, 5vw, 4.6rem); margin: 16px 0 18px; }
.moon.reserved p:last-child { color: var(--ash); max-width: 44ch; }

/* ---- system --------------------------------------------------------------- */
.system { border-top: 1px solid var(--rule); }
.system-body { display: grid; grid-template-columns: 1fr 2.2fr 1fr; border-top: 1px solid var(--rule); }
.sys-col { padding: clamp(32px, 4vw, 56px) var(--g); }
.sys-col:last-child { border-left: 1px solid var(--rule); }
.sys-col:first-child { border-right: 1px solid var(--rule); }
.sys-col h3 { font: 400 1.25rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 20px; }
.sys-col li { padding: 10px 0; border-top: 1px solid var(--rule); color: var(--ash); font-size: 13px; }
.sys-fig { padding: 24px; }
.sys-fig canvas { width: 100%; aspect-ratio: 1.3 / 1; }

/* ---- log ------------------------------------------------------------------ */
.log { border-top: 1px solid var(--rule); }
.phases { border-top: 1px solid var(--rule); }
.phase {
  display: grid; grid-template-columns: 3fr 3fr 2fr 4fr; gap: var(--g); align-items: baseline;
  padding: clamp(24px, 3vw, 40px) var(--g); border-bottom: 1px solid var(--rule); transition: background .3s;
}
.phase:hover { background: rgba(245, 244, 239, .025); }
.ph-n { font: 400 clamp(1.8rem, 3vw, 2.6rem)/1 var(--greek); color: var(--ash); }
.phase h3 { font: 400 clamp(1.6rem, 2.6vw, 2.4rem)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.ph-when { font: 500 10.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }
.phase p { color: var(--ash); max-width: 48ch; }
.phase.now .ph-n, .phase.now .ph-when { color: var(--orbit-lit); }

/* ---- contact -------------------------------------------------------------- */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); border-top: 1px solid var(--rule);
  padding: clamp(80px, 10vw, 140px) var(--g);
}
.contact .display { margin-top: 24px; }
.contact .sec-sub { margin-top: 28px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; }
.socials a { font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ash); }
.socials a:hover { color: var(--stone); }
.form { display: grid; gap: 22px; align-content: start; padding-top: 8px; }
.form label { display: grid; gap: 8px; }
.form label > span { font: 500 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--stone); background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: 8px 0 10px; border-radius: 0; transition: border-color .3s; width: 100%;
}
.form select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='%238E8D87'/%3E%3C/svg%3E") no-repeat right 4px center; }
.form select option { background: var(--void); }
.form textarea { resize: vertical; min-height: 84px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--stone); }
.form [aria-invalid="true"] { border-color: #C9A39A; }
.btn {
  justify-self: start; margin-top: 8px; cursor: pointer;
  font: 500 10.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  background: var(--stone); color: var(--void); border: 0; padding: 16px 26px; transition: background .3s;
}
.btn:hover { background: var(--orbit-lit); }
.form-status { font-size: 12px; color: var(--orbit-lit); min-height: 1.6em; }
.form-status.err { color: #C9A39A; }

/* ---- footer --------------------------------------------------------------- */
.foot { border-top: 1px solid var(--rule); padding: 0 var(--g) 28px; }
.meander {
  height: 24px; margin: 0 calc(-1 * var(--g)); opacity: .3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23F5F4EF' stroke-width='1'%3E%3Cpath d='M0 23.5H24M0 .5H24M2 23.5V4.5H20V19.5H8V10.5H15V15.5'/%3E%3C/svg%3E") repeat-x;
}
.foot-word { width: 100%; height: auto; padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); opacity: .92; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font: 400 10.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
.foot-row a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.foot-row a:hover { color: var(--stone); }

/* ---- reveal --------------------------------------------------------------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.elements li.rv:nth-child(2) { transition-delay: .08s; }
.elements li.rv:nth-child(3) { transition-delay: .16s; }
.elements li.rv:nth-child(4) { transition-delay: .24s; }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .bar-meta { display: none; }
  .bar-nav { gap: 18px; }
}
@media (max-width: 900px) {
  .bar-menu {
    display: block; margin-left: auto; background: none; border: 1px solid var(--rule); color: var(--stone);
    font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; padding: 9px 12px; cursor: pointer;
  }
  .bar-nav {
    position: fixed; inset: 58px 0 auto; flex-direction: column; gap: 0; margin: 0;
    background: rgba(7, 7, 7, .96); border-bottom: 1px solid var(--rule); padding: 8px var(--g) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .bar-nav.open { opacity: 1; transform: none; visibility: visible; }
  .bar-nav a { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 12px; }
  .bar-nav a::after { display: none; }

  .hero-desc { display: none; }
  .hero-foot { width: calc(100% - 2 * var(--g)); bottom: 120px; }
  .readout { left: var(--g); right: auto; bottom: 28px; }
  .readout div:nth-child(2) { display: none; }
  .hero-down { bottom: 28px; }

  .sec-head, .thesis-grid { grid-template-columns: 1fr; }
  .sec-head > *, .thesis-grid > * { grid-column: 1 / -1 !important; }
  .sec-head .display, .thesis-grid .display { margin-top: 20px; }
  .elements { grid-template-columns: 1fr 1fr; }
  .elements li:nth-child(3) { border-left: 0; }
  .elements li:nth-child(n+3) { border-top: 1px solid var(--rule-ink); }

  .moon, .moon.reserved { grid-template-columns: 1fr; }
  .moon-stage, .moon.flip .moon-stage { order: 0; border: 0; border-bottom: 1px solid var(--rule); min-height: 380px; }
  .system-body { grid-template-columns: 1fr; }
  .sys-fig { order: -1; border-bottom: 1px solid var(--rule); padding: 8px 0; }
  .sys-col:first-child, .sys-col:last-child { border: 0; }
  .sys-col + .sys-col { border-top: 1px solid var(--rule); }
  .phase { grid-template-columns: 56px 1fr; gap: 8px 16px; }
  .phase .ph-n { grid-column: 1; grid-row: 1 / span 3; }
  .phase .ph-when { grid-column: 2; grid-row: 1; }
  .phase h3 { grid-column: 2; grid-row: 2; }
  .phase p { grid-column: 2; grid-row: 3; margin-top: 6px; }
  .contact { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 520px) {
  .elements { grid-template-columns: 1fr; }
  .elements li { border-left: 0 !important; border-top: 1px solid var(--rule-ink); }
  .elements li:first-child { border-top: 0; }
  .spec li { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- brand kit page ------------------------------------------------------- */
.kit-hero { padding: calc(58px + clamp(72px, 10vw, 140px)) var(--g) clamp(56px, 7vw, 96px); display: grid; gap: 28px; justify-items: start; }
.kit-hero .sec-sub { margin: 0; }
.kit-dl { text-decoration: none; }
.kit-sec { border-top: 1px solid var(--rule); padding: clamp(56px, 7vw, 96px) var(--g); scroll-margin-top: 58px; }
.kit-head { display: grid; grid-template-columns: 3fr 9fr; gap: 12px var(--g); margin-bottom: clamp(32px, 4vw, 48px); }
.kit-head .label { padding-top: .7em; }
.kit-h { font: 400 clamp(1.8rem, 3.4vw, 3rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.kit-head > p:not(.label) { grid-column: 2; color: var(--ash); max-width: 62ch; }
.kit-note { margin-top: 20px; color: var(--ash); font-size: 12.5px; }
.kit-note a { color: var(--stone); }
code { font: inherit; color: var(--stone); }

.kit-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.kit-grid.two { grid-template-columns: 1fr 1fr; }
.kit-grid.four { grid-template-columns: repeat(4, 1fr); }
.kit-grid.icons { grid-template-columns: repeat(3, 1fr); margin-top: 1px; border-top: 0; }
.tile { margin: 0; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 280px; padding: 56px 32px 72px; }
.tile.void { background: var(--void); }
.tile.stone { background: var(--stone); color: var(--void); }
.tile > img { width: min(78%, 520px); height: auto; }
.tile.mono > img { width: min(40%, 220px); }
.tile figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; gap: 14px; align-items: baseline;
  font: 500 10px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ash);
}
.tile.stone figcaption { color: var(--ink-2); }
.tile figcaption span { margin-right: auto; }
.tile figcaption a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.tile figcaption a:hover { color: var(--stone); }
.tile.stone figcaption a:hover { color: var(--void); }
.icon-tile > img { width: 140px; }
.fav-row { display: flex; align-items: flex-end; gap: 24px; }
.fav-row img { image-rendering: pixelated; }

.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.sw {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 6px; padding: 20px; width: 100%; background: var(--void);
  font: 400 12px/1.4 var(--mono); color: var(--stone);
}
.sw:focus-visible { outline: 1px solid var(--stone); outline-offset: -6px; }
.sw .chip { display: block; aspect-ratio: 1.6 / 1; background: var(--c); border: 1px solid var(--rule); margin-bottom: 14px; transition: transform .4s var(--ease); }
.sw:hover .chip { transform: translateY(-4px); }
.sw b { font: 400 1.4rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.sw code { color: var(--stone); }
.sw em { font-style: normal; color: var(--ash); font-size: 11.5px; }

.spec-tile { align-items: flex-start; justify-content: flex-start; padding: 40px 32px 56px; }
.spec-aa { font-size: clamp(5rem, 11vw, 9rem); line-height: 1; }
.display-face { font-family: var(--display); }
.mono-face { font-family: var(--mono); }
.spec-name { margin-top: 16px; font: 500 10.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }
.spec-set { margin-top: 20px; font-size: 1.05rem; line-height: 1.6; letter-spacing: .08em; word-break: break-all; }
.spec-use { margin-top: 20px; color: var(--ash); font-size: 12px; }

.kit-els li { flex-direction: column; gap: 8px; min-height: 260px; color: var(--stone); }
.kit-els img { width: 72px; filter: invert(1); margin-bottom: 18px; }
.kit-els b { font: 400 1.2rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; font-weight: 400; }
.kit-els em { font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }
.kit-els a { position: absolute; right: 20px; bottom: 16px; font: 500 10px/1 var(--mono); letter-spacing: .16em; color: var(--ash); text-decoration: none; border-bottom: 1px solid currentColor; }

.rule-tile { min-height: 320px; }
.clear { position: relative; width: min(70%, 420px); padding: 7.5%; outline: 1px dashed var(--ash); }
.clear img { width: 100%; height: auto; }
.min-row { display: flex; gap: 56px; align-items: flex-end; }
.min-row div { display: grid; gap: 14px; justify-items: center; }
.min-row span { font: 500 10px/1 var(--mono); letter-spacing: .16em; color: var(--ash); border-top: 1px solid var(--ash); padding-top: 8px; min-width: 40px; text-align: center; }
.donts { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--g); }
.donts li { padding: 14px 0 14px 28px; border-top: 1px solid var(--rule); color: var(--ash); position: relative; }
.donts li::before { content: "×"; position: absolute; left: 0; color: var(--stone); }

.shot { padding: 32px 32px 64px; min-height: 0; }
.shot > img { width: 100%; border: 1px solid var(--rule); }
.shot.avatar > img { width: min(60%, 300px); border-radius: 50%; }

@media (max-width: 900px) {
  .kit-head { grid-template-columns: 1fr; }
  .kit-head > p:not(.label) { grid-column: 1; }
  .kit-grid.two, .kit-grid.icons, .donts { grid-template-columns: 1fr; }
  .kit-grid.four, .swatches { grid-template-columns: 1fr 1fr; }
}
.kit-hero .sec-sub { grid-column: auto; }
.kit-dl { white-space: nowrap; }
.icon-tile > img.masked { border-radius: 22%; }
