/* llamay.com home -- the pixel edition.
   ---------------------------------------------------------------------------
   White paper, black ink, the conch's amber. Every edge is a 2px ink line;
   every shadow is a hard 4px offset, the way a sprite casts one. Display
   type is drawn in pixels by home.js (the real text stays in the element);
   body type is Inter, labels are JetBrains Mono.

   No inline styles anywhere (the CSP forbids them), every motion sits inside
   prefers-reduced-motion: no-preference, and the page reads complete with
   JavaScript off. */

:root {
  --paper: #fbfaf6;
  --white: #ffffff;
  --ink: #14110d;
  --ink-2: #4a443b;
  --ink-3: #7d7569;
  --line: #e9e4da;
  --line-2: #d8d1c3;
  --amber: #ec9a3a;
  --amber-deep: #b45309;
  --cream: #fff1dc;
  --blush: #f6a58a;
  --mint: #1f9d6b;
  --mint-soft: #dcf5ea;
  --blue: #3557ff;
  --blue-soft: #e3e8ff;
  --red: #e5484d;
  --red-soft: #fde4e4;
  --tint: #f5f1e8;

  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --hard: 4px 4px 0 var(--ink);
  --hard-sm: 3px 3px 0 var(--ink);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pop: cubic-bezier(.3, 1.6, .5, 1);

  /* what delight.css borrows, so the conch dresses for a white page */
  --surface: var(--white);
  --surface-2: var(--tint);
  --text: var(--ink);
  --text-3: var(--ink-3);
  --line-strong: var(--ink);
  --accent: var(--amber-deep);
  --accent-ink: var(--white);
  --display: var(--sans);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* the paper: a faint dot grid, 16px */
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px);
  background-size: 16px 16px;
  background-position: -8px -8px;
}
html.menu-open body { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
code, kbd, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--tint); border: 1px solid var(--line); padding: .05em .35em; border-radius: 3px; }
kbd { border: 2px solid var(--ink); border-bottom-width: 3px; padding: 0 .35em; border-radius: 4px; background: var(--white); }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; font: 600 13px var(--mono); }
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.wrap--narrow { width: min(880px, 100% - 48px); }
.center { text-align: center; }

/* --- buttons: press them and they sit down into their shadow --------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; font: 600 14px/1 var(--mono); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 0; box-shadow: var(--hard);
  cursor: pointer; transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .2s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn--lg { padding: 15px 22px; font-size: 15px; }
.btn--amber { background: var(--amber); }
.btn--ink { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--amber); }
.btn--ink:hover { box-shadow: 5px 5px 0 var(--amber); }
.btn--ink:active { box-shadow: 0 0 0 var(--amber); }
.btn__px { width: 8px; height: 8px; background: var(--ink); box-shadow: 8px -8px 0 var(--ink); margin-left: 2px; opacity: .9; }

/* --- tags: the little pixel labels over every heading ---------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
  font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  background: var(--white); border: 2px solid var(--ink); box-shadow: var(--hard-sm);
}
.tag__dot { width: 8px; height: 8px; background: var(--amber); }
.tag--red .tag__dot { background: var(--red); }
.tag--mint .tag__dot { background: var(--mint); }
.tag--blue .tag__dot { background: var(--blue); }
.tag--amber .tag__dot { background: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  .tag__dot { animation: blink 1.2s steps(1) infinite; }
  @keyframes blink { 50% { opacity: .25; } }
}

/* --- nav -------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgb(251 250 246 / .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav.is-stuck { border-bottom-color: var(--ink); }
.nav__in { width: min(1200px, 100% - 48px); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 18px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--sans); letter-spacing: -.03em; }
.nav__brand img { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a { display: block; padding: 8px 8px; font: 500 13px/1 var(--mono); text-decoration: none; color: var(--ink-2); border: 2px solid transparent; }
.nav__links a:hover { color: var(--ink); border-color: var(--ink); background: var(--white); }
.nav__cta { padding: 10px 16px; font-size: 13px; }
.nav .dl-chip { margin: 0; }
@media (max-width: 1360px) { .nav .dl-chip__t { display: none; } }
@media (max-width: 1060px) { .nav__links a { padding: 8px 6px; font-size: 12px; } }
.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; padding: 10px; background: var(--white); border: 2px solid var(--ink); box-shadow: var(--hard-sm); cursor: pointer; }
.nav__burger span { display: block; height: 3px; margin: 4px 0; background: var(--ink); }
.menu { display: none; }
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .menu { position: fixed; inset: var(--nav-h) 0 0; z-index: 49; display: grid; align-content: start; gap: 2px; padding: 16px 24px; background: var(--paper);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .menu.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .menu a { padding: 14px 4px; font: 600 20px/1 var(--sans); letter-spacing: -.02em; text-decoration: none; border-bottom: 2px solid var(--line); }
}

/* --- hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 8vh, 96px) 0 0; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; justify-items: start; min-width: 0; }
.hero__copy > * { max-width: 100%; }
.hero__h1 { font-size: clamp(48px, 7.2vw, 96px); font-weight: 800; width: 100%; }
.hero-sub { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.trail { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* pixel headings: the text is for readers, the SVG for eyes */
.px-src { display: block; }
.is-px .px-src { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.px { width: 100%; height: auto; overflow: visible; }
.px__face rect { fill: var(--ink); }
.px__face rect.hot { fill: var(--amber); }
.px__sh rect { fill: var(--ink); }
.px__face rect { transition: transform .35s var(--pop); }
.hero__h1 .px { max-width: 620px; }
@media (prefers-reduced-motion: no-preference) {
  .js .is-px:not(.px-go) .px__face rect, .js .is-px:not(.px-go) .px__sh { opacity: 0; }
  .px-go:not(.px-done) .px__face rect { animation: px-in .7s var(--pop) both; animation-delay: var(--d, 0ms); }
  .px-go:not(.px-done) .px__sh { animation: px-sh .3s steps(3) 1.1s both; }
  @keyframes px-in { from { opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)) scale(.2); } 60% { opacity: 1; } }
  @keyframes px-sh { from { opacity: 0; } }
}

/* install line */
.cmd { width: min(100%, 520px); background: var(--white); border: 2px solid var(--ink); box-shadow: var(--hard); }
.cmd__tabs { display: flex; border-bottom: 2px solid var(--ink); }
.cmd__tabs button { flex: none; padding: 8px 12px; font: 600 12px/1 var(--mono); background: var(--tint); color: var(--ink-3); border: 0; border-right: 2px solid var(--ink); cursor: pointer; }
.cmd__tabs button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.cmd__line { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; }
.cmd__p { font: 600 14px var(--mono); color: var(--amber-deep); }
.cmd__line code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: none; border: 0; padding: 0; font-size: 13.5px; scrollbar-width: none; }
.cmd__copy { flex: none; padding: 7px 10px; font: 600 12px/1 var(--mono); background: var(--ink); color: var(--white); border: 0; cursor: pointer; }
.cmd__copy.is-ok { background: var(--mint); }

/* the rig: a terminal, a mascot, three meters */
.rig { position: relative; margin: 0; padding-top: 34px; }
.rig__mascot { position: absolute; right: 22px; top: -18px; width: 104px; z-index: 3; }
.rig__mascot .sprite { width: 100%; height: auto; filter: drop-shadow(4px 4px 0 rgb(20 17 13 / .18)); }
.rig__win { background: var(--ink); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--amber); }
.rig__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--white); border-bottom: 2px solid var(--ink); font: 600 12px/1 var(--mono); color: var(--ink-2); }
.rig__bar i { width: 10px; height: 10px; border: 2px solid var(--ink); }
.rig__bar i:nth-child(1) { background: var(--red); }
.rig__bar i:nth-child(2) { background: var(--amber); }
.rig__bar i:nth-child(3) { background: var(--mint); }
.rig__bar span { margin-left: 8px; }
.rig__term { height: 290px; padding: 16px 18px; overflow: hidden; font: 400 13.5px/1.65 var(--mono); color: #e9e4da; display: flex; flex-direction: column; justify-content: flex-end; }
.rig__term div { white-space: pre-wrap; word-break: break-word; }
.rig__term .t-cmd::before { content: attr(data-p); color: var(--amber); }
.rig__term .t-cmd { color: #fff; }
.rig__term .t-out { color: #9b9487; }
.rig__term .t-gen { color: #ffe2b8; }
.rig__term .t-ok { color: #6be3ad; }
.rig__term > div:last-child::after { content: ""; display: inline-block; width: .6em; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--amber); }
@media (prefers-reduced-motion: no-preference) { .rig__term > div:last-child::after { animation: blink 1s steps(1) infinite; } }
.rig__meters { display: grid; grid-template-columns: 1fr 1fr 1.25fr; margin-top: 18px; border: 2px solid var(--ink); background: var(--white); box-shadow: var(--hard); }
.meter { display: grid; gap: 6px; align-content: start; padding: 12px 14px; border-right: 2px solid var(--ink); }
.meter:last-child { border-right: 0; }
.meter__k { font: 600 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.meter__v { font: 700 26px/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.meter--zero .meter__v { color: var(--mint); }
.rig__plug { display: inline-flex; align-items: center; gap: 8px; padding: 7px 9px; font: 600 12px/1.1 var(--mono); text-align: left; background: var(--tint); color: var(--ink); border: 2px solid var(--ink); cursor: pointer; }
.rig__plug:hover { background: var(--cream); }
.rig__wifi { position: relative; flex: none; width: 14px; height: 12px;
  background: linear-gradient(var(--ink), var(--ink)) 6px 9px / 2px 2px no-repeat,
              linear-gradient(var(--ink), var(--ink)) 3px 5px / 8px 2px no-repeat,
              linear-gradient(var(--ink), var(--ink)) 0 1px / 14px 2px no-repeat; }
.rig.is-offline .rig__wifi::after { content: ""; position: absolute; left: -2px; top: 5px; width: 18px; height: 2px; background: var(--red); transform: rotate(-35deg); }
.rig.is-offline .rig__win { box-shadow: 8px 8px 0 var(--mint); }
.rig.is-offline .meter--net .meter__k { color: var(--mint); }
@media (prefers-reduced-motion: no-preference) {
  .rig__mascot .sprite { animation: bob 3.6s ease-in-out infinite; }
  .rig__mascot .eye { animation: lid 5s steps(1) infinite; }
  @keyframes bob { 50% { transform: translateY(-8px); } }
  @keyframes lid { 0%, 95% { opacity: 1; } 96%, 99% { opacity: 0; } }
}

/* the ticker */
.ticker { position: relative; z-index: 2; margin-top: clamp(48px, 8vh, 88px); overflow: hidden; background: var(--ink); color: var(--white); border-block: 2px solid var(--ink); }
.ticker ul { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.ticker li { display: flex; align-items: center; gap: 18px; padding: 14px 18px; font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ticker li::after { content: ""; width: 8px; height: 8px; background: var(--amber); margin-left: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .ticker ul { animation: tick 46s linear infinite; }
  .ticker:hover ul { animation-play-state: paused; }
  @keyframes tick { to { transform: translateX(-50%); } }
}

/* --- stats ------------------------------------------------------------------- */
.stats { padding: clamp(48px, 7vw, 80px) 0 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); background: var(--white); box-shadow: var(--hard); }
.stat { display: grid; gap: 8px; align-content: start; padding: 22px 22px 24px; border-right: 2px solid var(--ink); }
.stat:last-child { border-right: 0; }
.stat b { font: 700 clamp(34px, 4vw, 48px)/1 var(--mono); letter-spacing: -.05em; }
.stat > span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.stat:nth-child(1) b { color: var(--mint); }
.stat:nth-child(2) b { color: var(--amber-deep); }
.stat:nth-child(3) b { color: var(--blue); }

/* --- sections ---------------------------------------------------------------- */
.section { position: relative; padding: clamp(72px, 11vw, 140px) 0; }
.section--tint { background: var(--tint); border-block: 2px solid var(--ink); background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px); background-size: 16px 16px; }
.section--ink { background: var(--ink); color: var(--white); }
.head { display: grid; gap: 20px; justify-items: start; max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.head--center { justify-items: center; text-align: center; margin-inline: auto; }
.head h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 60ch; }
.section--ink .lead { color: #c9c2b5; }
mark { color: inherit; background: none; position: relative; white-space: nowrap; z-index: 0; }
/* a highlighter drawn in pixel steps */
mark::before { content: ""; position: absolute; z-index: -1; left: -.08em; right: -.08em; bottom: .04em; height: .42em; background: var(--amber);
  clip-path: polygon(0 20%, 3% 20%, 3% 0, 97% 0, 97% 20%, 100% 20%, 100% 80%, 97% 80%, 97% 100%, 3% 100%, 3% 80%, 0 80%); }
.section--ink mark::before { background: var(--amber-deep); }
.kw { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.pxi { width: 22px; height: 22px; flex: none; fill: currentColor; }
.pxi rect { fill: currentColor; }

/* reveals: a pixel wipe -- the element arrives in eight hard steps */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { clip-path: inset(0 0 100% 0); }
  .js .rv.is-in { animation: wipe .5s steps(8) both; }
  .js .duo .rv:nth-child(2).is-in, .js .stats .rv:nth-child(2).is-in, .js .values .rv:nth-child(2).is-in, .js .carts .rv:nth-child(2).is-in, .js .bento .rv:nth-child(2).is-in { animation-delay: .08s; }
  .js .duo .rv:nth-child(3).is-in, .js .stats .rv:nth-child(3).is-in, .js .values .rv:nth-child(3).is-in, .js .carts .rv:nth-child(3).is-in, .js .bento .rv:nth-child(3).is-in { animation-delay: .16s; }
  .js .duo .rv:nth-child(4).is-in, .js .stats .rv:nth-child(4).is-in, .js .values .rv:nth-child(4).is-in, .js .carts .rv:nth-child(4).is-in, .js .bento .rv:nth-child(4).is-in { animation-delay: .24s; }
  .js .duo .rv:nth-child(5).is-in, .js .values .rv:nth-child(5).is-in, .js .carts .rv:nth-child(5).is-in, .js .bento .rv:nth-child(5).is-in { animation-delay: .32s; }
  .js .duo .rv:nth-child(6).is-in, .js .carts .rv:nth-child(6).is-in, .js .bento .rv:nth-child(6).is-in { animation-delay: .4s; }
  @keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -20px 0); } }
}
.js .rv.is-in { clip-path: none; }

/* --- the film ------------------------------------------------------------------ */
.section--film { padding: clamp(56px, 8vw, 96px) 0 0; }
.film { position: relative; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); background: var(--ink); aspect-ratio: 16 / 9; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(20 17 13 / .28); border: 0; cursor: pointer; }
.film__btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; font: 700 15px/1 var(--mono); background: var(--amber); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--hard); transition: transform .12s, box-shadow .12s; }
.film__btn i { width: 0; height: 0; border-left: 12px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.film__play:hover .film__btn { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.film.is-playing .film__play { display: none; }

/* --- flip cards ------------------------------------------------------------------- */
.flipall { display: inline-flex; border: 2px solid var(--ink); box-shadow: var(--hard-sm); background: var(--white); }
.flipall__b { padding: 10px 16px; font: 600 13px/1 var(--mono); background: none; border: 0; cursor: pointer; color: var(--ink-3); }
.flipall__b + .flipall__b { border-left: 2px solid var(--ink); }
.flipall__b[aria-pressed="true"][data-side="them"] { background: var(--red); color: var(--white); }
.flipall__b[aria-pressed="true"][data-side="you"] { background: var(--mint); color: var(--white); }
.duo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card2 { position: relative; display: grid; min-height: 290px; perspective: 1200px; }
.card2__side { grid-area: 1 / 1; display: grid; gap: 12px; align-content: start; padding: 24px 24px 56px; border: 2px solid var(--ink); box-shadow: var(--hard);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .6s var(--pop); }
.card2__side h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.card2__side p:not(.kw) { font-size: 15px; color: var(--ink-2); }
.card2__them { background: var(--white); }
.card2__them .kw { color: var(--red); }
.card2__you { background: var(--mint-soft); transform: rotateY(180deg); }
.card2__you .kw { color: var(--mint); }
.card2.is-you .card2__them { transform: rotateY(-180deg); }
.card2.is-you .card2__you { transform: rotateY(0); }
.card2__flip { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 36px; height: 36px; font: 700 18px/1 var(--mono); background: var(--white); border: 2px solid var(--ink); box-shadow: var(--hard-sm); cursor: pointer; }
.card2__flip:active { transform: translate(3px, 3px); box-shadow: none; }
.more { justify-self: start; font: 600 13px/1 var(--mono); color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--mint); padding-bottom: 3px; }
.more::after { content: " →"; }
.duo__q { margin-top: 44px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.03em; line-height: 1.25; max-width: 30ch; }
@media (prefers-reduced-motion: reduce) {
  .card2__side { transition: none; }
}

/* --- the race ------------------------------------------------------------------------ */
.race { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 24px; background: var(--white); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.race__lane { display: grid; gap: 12px; }
.race__k { font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber-deep); }
.race__lane--win .race__k { color: var(--mint); }
.race__cv { width: 100%; height: auto; aspect-ratio: 2 / 1; image-rendering: pixelated; border: 2px solid var(--ink); }
.race__t { font: 700 34px/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.race__go { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding-top: 6px; }
.race__note { flex: 1; min-width: 260px; font-size: 15px; color: var(--ink-2); }
.race__note a { color: var(--ink); font-weight: 600; }
.race.is-done .race__lane--win .race__t { color: var(--mint); }
.verbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
.verb { display: grid; gap: 10px; padding: 20px; background: var(--white); border: 2px solid var(--ink); box-shadow: var(--hard-sm); }
.verb p:not(.kw) { color: var(--ink-2); font-size: 15px; }

/* --- the game --------------------------------------------------------------------------- */
.game { border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--blue); background: var(--white); }
.game__hud { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 2px solid var(--ink); }
.game__hud span { padding: 12px 14px; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-right: 2px solid var(--ink); }
.game__hud span:last-child { border-right: 0; }
.game__hud b { display: block; margin-top: 6px; font-size: 24px; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.game__lives { color: var(--red) !important; letter-spacing: .1em !important; }
.game__stage { position: relative; }
.game__stage canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; image-rendering: pixelated; cursor: crosshair; touch-action: manipulation; }
.game__start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 40px); }
.game__start:hover { transform: translate(calc(-50% - 1px), 39px); }
.game__start:active { transform: translate(calc(-50% + 4px), 44px); }
.game__start[hidden] { display: none; }
.game__msg { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); width: min(90%, 460px); padding: 18px 20px; text-align: center; background: var(--white); border: 2px solid var(--ink); box-shadow: var(--hard); }
.game__msg[hidden] { display: none; }
.g-msg__h { font: 700 20px/1.2 var(--sans); letter-spacing: -.02em; }
.g-msg__p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.game__keys { padding: 12px 14px; font: 500 12px/1.5 var(--mono); color: var(--ink-3); border-top: 2px solid var(--ink); }

/* --- values ------------------------------------------------------------------------------- */
.section--ink .tag { color: var(--ink); }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.value { display: grid; gap: 14px; align-content: start; padding: 22px 18px 26px; border: 2px solid #3a342c; background: #1d1915; transition: transform .2s var(--pop), border-color .2s, box-shadow .2s; }
.value .kw { color: var(--amber); font-size: 13px; }
.value .pxi { width: 34px; height: 34px; }
.value .kw { flex-direction: column; align-items: flex-start; gap: 14px; }
.value p:not(.kw) { color: #d8d1c3; font-size: 15px; }
.value code { background: #2a251f; border-color: #3a342c; color: #fff; }
.value:hover { transform: translate(-3px, -3px); border-color: var(--amber); box-shadow: 6px 6px 0 var(--amber); }

/* --- sectors bento ---------------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { position: relative; display: grid; gap: 14px; align-content: start; min-height: 190px; padding: 22px 22px 54px; text-decoration: none; background: var(--white); border: 2px solid var(--ink); box-shadow: var(--hard); transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .2s; }
.tile--wide { grid-column: span 2; }
.tile .kw { font-size: 13px; color: var(--ink); }
.tile .pxi { width: 28px; height: 28px; color: var(--amber-deep); }
.tile p:not(.kw) { color: var(--ink-2); font-size: 15px; max-width: 42ch; }
.tile__go { position: absolute; right: 16px; bottom: 14px; font: 700 20px/1 var(--mono); transition: transform .2s var(--pop); }
.tile:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--cream); }
.tile:hover .tile__go { transform: translateX(6px); }

/* --- platforms as cartridges -------------------------------------------------------------------- */
.carts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; margin-bottom: 44px; }
.cart { --c: var(--amber); position: relative; display: block; min-height: 200px; padding: 26px 18px 18px; text-decoration: none; background: var(--c); border: 2px solid var(--ink); box-shadow: var(--hard);
  /* the cartridge: a notched top and grip ridges */
  clip-path: polygon(0 0, 70% 0, 74% 14px, 100% 14px, 100% 100%, 0 100%); transition: transform .18s var(--pop); }
.cart::before { content: ""; position: absolute; left: 18px; right: 18px; bottom: 10px; height: 10px;
  background: repeating-linear-gradient(90deg, rgb(20 17 13 / .35) 0 4px, transparent 4px 10px); }
.cart--amber { --c: var(--amber); }
.cart--blue { --c: #8fa3ff; }
.cart--mint { --c: #7fd8b1; }
.cart--ink { --c: #3a342c; }
.cart--red { --c: #ff9a9d; }
.cart--cream { --c: var(--cream); }
.cart__label { display: grid; gap: 10px; padding: 16px; margin-bottom: 18px; background: var(--white); border: 2px solid var(--ink); }
.cart__label > span:last-child { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.cart__label .kw { font-size: 13px; color: var(--ink); }
.cart:hover { transform: translateY(-8px) rotate(-1deg); }
.cart:active { transform: translateY(2px); }

/* --- FAQ ----------------------------------------------------------------------------------------- */
.faq { display: grid; gap: 14px; }
.faqgroup { background: var(--white); border: 2px solid var(--ink); box-shadow: var(--hard); }
.faqgroup__h { display: flex; width: 100%; align-items: center; gap: 12px; padding: 18px 20px; font: 700 19px/1.2 var(--sans); letter-spacing: -.02em; text-align: left; color: var(--ink); background: none; border: 0; cursor: pointer; }
.faqgroup__h::after { content: ""; margin-left: auto; width: 14px; height: 14px; flex: none;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 4px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 4px 14px no-repeat; transition: transform .2s var(--pop); }
.faqgroup__h[aria-expanded="true"]::after { transform: rotate(45deg); }
.faqgroup__n { padding: 3px 7px; font: 600 11px/1 var(--mono); background: var(--tint); border: 2px solid var(--ink); }
.faqgroup__body, .faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faqgroup__body > div, .faq__a > div { overflow: hidden; }
.faqgroup__body.is-open, .faq__a.is-open { grid-template-rows: 1fr; }
.faqgroup__body > div { padding: 0 20px; }
.faqgroup__body.is-open > div { padding-bottom: 12px; }
.faq__q { display: flex; width: 100%; gap: 12px; padding: 14px 0; font: 600 16px/1.35 var(--sans); text-align: left; color: var(--ink); background: none; border: 0; border-top: 2px dashed var(--line-2); cursor: pointer; }
.faq__q::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 5px; background: var(--amber); transition: transform .2s var(--pop); }
.faq__q[aria-expanded="true"]::before { transform: rotate(45deg); background: var(--ink); }
.faq__q:hover { color: var(--amber-deep); }
.faq__a p { padding: 0 0 14px 22px; font-size: 15.5px; color: var(--ink-2); }
.faq__a p + p { margin-top: -4px; }
.faq__a a { color: var(--ink); font-weight: 600; }
.faq__a b { color: var(--ink); }
/* without JavaScript, everything is open */
html:not(.js) .faqgroup__body, html:not(.js) .faq__a { grid-template-rows: 1fr; }

/* --- closer ----------------------------------------------------------------------------------------- */
.closer { padding: clamp(80px, 12vw, 150px) 0; border-top: 2px solid var(--ink); background: var(--cream); background-image: radial-gradient(rgb(180 83 9 / .18) 1px, transparent 1.2px); background-size: 16px 16px; }
.closer__in { display: grid; justify-items: center; gap: 22px; text-align: center; }
.closer__mascot { width: 140px; }
.closer__mascot .sprite { width: 100%; height: auto; }
.closer__h { width: min(100%, 760px); font-size: clamp(36px, 6vw, 72px); font-weight: 800; }
.closer__ctas { justify-content: center; }
.closer__more { font: 500 14px/1.5 var(--mono); color: var(--ink-2); }
.closer__more a { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .closer__mascot .sprite { animation: bob 3s ease-in-out infinite; }
}

/* --- footer ------------------------------------------------------------------------------------------- */
.foot { position: relative; padding: 64px 0 0; background: var(--white); border-top: 2px solid var(--ink); }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 56px; }
.foot__brand { display: grid; gap: 14px; align-content: start; }
.foot__label { margin-bottom: 12px; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.foot__grid a:not(.nav__brand) { display: block; padding: 5px 0; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.foot__grid a:not(.nav__brand):hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.brandlink { display: flex !important; align-items: center; gap: 8px; }
.fine { font-size: 14px; color: var(--ink-3); max-width: 30ch; }
.foot__mail { font: 600 14px var(--mono) !important; color: var(--ink) !important; }
/* the floor: a strip of pixels in the brand colours */
.foot__floor { height: 24px; background:
  linear-gradient(90deg, var(--amber) 0 25%, var(--ink) 25% 50%, var(--mint) 50% 75%, var(--blue) 75% 100%) 0 0 / 96px 12px repeat-x,
  linear-gradient(90deg, var(--ink) 0 25%, var(--amber) 25% 50%, var(--blue) 50% 75%, var(--mint) 75% 100%) 48px 12px / 96px 12px repeat-x; }

/* --- the conch's game on a white page ------------------------------------------------------------------ */
.dl-sea-host .dl-sea { z-index: 1; }
.dl-shell-b svg { filter: drop-shadow(2px 2px 0 var(--ink)); }

/* --- smaller screens --------------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .values { grid-template-columns: repeat(3, 1fr); }
  .foot__grid { grid-template-columns: repeat(3, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .rig { max-width: 640px; }
  .duo { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
  .bento { grid-template-columns: 1fr 1fr; }
  .carts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .nav__in, .wrap--narrow { width: calc(100% - 32px); }
  .duo, .bento, .carts, .verbs, .race { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .values { grid-template-columns: 1fr 1fr; }
  .rig__meters { grid-template-columns: 1fr 1fr; }
  .meter--net { grid-column: 1 / -1; border-top: 2px solid var(--ink); }
  .meter:nth-child(2) { border-right: 0; }
  .rig__term { height: 240px; font-size: 12px; }
  .hero-ctas .btn--lg { padding: 13px 16px; font-size: 14px; }
  .rig__win { box-shadow: 6px 6px 0 var(--amber); }
  .rig__mascot { width: 76px; }
  .game__hud { grid-template-columns: 1fr 1fr; }
  .game__hud span:nth-child(2) { border-right: 0; }
  .game__hud span:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .race__t { font-size: 26px; }
}
@media print {
  .nav, .ticker, .trail, .rig, .game, .film__play, .foot__floor { display: none; }
  body { background: #fff; }
  .js .rv { clip-path: none !important; }
}
