/* ═══════════════════════════════════════════════════════════
   LUMEISH — pixel artist portfolio & commissions
   palette  cream #ece6df · ink #2a1c31 · amber #ebac4d
   type     IBM VGA 8x16 (display) · IBM Plex Sans (body)
            IBM Plex Mono (labels & prices)
   ═══════════════════════════════════════════════════════════ */

/* ---------- fonts ---------- */
@font-face {
  font-family: "VGA";
  src: url("../assets/fonts/WebPlus_IBM_VGA_8x16.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/plex-sans-latin-ext.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plex-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plex-mono-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  --cream: #ece6df;
  --ink: #2a1c31;
  --amber: #ebac4d;
  --ink-soft: #55425f;        /* secondary text on cream, AA */
  --cream-dim: #ddd4c8;       /* subtle fills on cream */

  --font-display: "VGA", "Courier New", monospace;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --step: 8px;                /* pixel grid unit */
  --col: 1060px;              /* site column */

  --ease-pix: steps(5, end);  /* quantized "pixel" motion */
  --ease-soft: cubic-bezier(.22, 1, .36, 1);

  /* pixel cursors (fall back to system cursors where SVG cursors
     are unsupported, e.g. Safari) */
  --cur-arrow: url("../assets/img/cursor_arrow.svg") 1 1, auto;
  --cur-hand: url("../assets/img/cursor_hand.svg") 10 1, pointer;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  cursor: var(--cur-arrow);
}

a, button, label,
input[type="radio"], input[type="checkbox"] {
  cursor: var(--cur-hand);
}

img, video { display: block; max-width: 100%; height: auto; }

/* the display:block above must never resurrect [hidden] elements
   (e.g. the sourceless lightbox video) */
[hidden] { display: none !important; }

h1, h2, h3 { line-height: 1.2; margin: 0; }

a { color: inherit; }

button { font: inherit; color: inherit; }

::selection { background: var(--amber); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -110%;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  text-decoration: none;
  transition: translate .15s var(--ease-soft);
}
.skip-link:focus-visible { translate: -50% 0; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
}

.hero__logo {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 39px;
  z-index: 2;
  image-rendering: pixelated;
}

.hero__art {
  width: 100%;
  image-rendering: pixelated;
}

.hero__title {
  position: absolute;
  left: clamp(16px, 4vw, 48px);
  bottom: clamp(8px, 3vw, 36px);
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.4vw, 2.25rem);
  color: var(--cream);
  letter-spacing: .02em;
}

.hero__cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1.06s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* now and then a star crosses her room */
.hero__stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shooting-star {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--cream);
  box-shadow:
    7px -4px 0 rgba(236, 230, 223, .8),
    14px -8px 0 rgba(235, 172, 77, .65),
    21px -12px 0 rgba(235, 172, 77, .4),
    28px -16px 0 rgba(235, 172, 77, .2);
}

/* amber ribbon under the hero — a marquee of what Lumeish draws */
.ribbon {
  max-width: var(--col);
  height: 30px;
  margin: 0 auto;
  background: var(--amber);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ribbon__track {
  display: flex;
  flex: none;
  white-space: nowrap;
  animation: ribbonFlow 26s linear infinite;
  will-change: transform;
}

.ribbon__seq {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--ink);
  letter-spacing: .05em;
}

/* two identical halves; -50% → 0 flows rightward, seamlessly */
@keyframes ribbonFlow {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ═══════════ SHELL ═══════════ */
.shell {
  max-width: var(--col);
  margin: 0 auto;
  padding: 40px clamp(12px, 3vw, 28px) 64px;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* ---------- sidebar ---------- */
.side {
  position: sticky;
  top: 24px;
}

.side__brand {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: .04em;
}

.side__avatar {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 2px solid var(--ink);
  margin-bottom: 22px;
}
.side__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.side__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side__nav a {
  position: relative;
  width: fit-content;
  padding: 6px 12px 6px 26px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink);
}
/* hover marker: a pixel hand holding a pencil */
.side__nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  background: url("../assets/img/pencil.svg") no-repeat center / contain;
  image-rendering: pixelated;
  translate: -6px -50%;
  opacity: 0;
  transition: opacity .15s var(--ease-soft), translate .2s var(--ease-pix);
}
.side__nav a:hover::before,
.side__nav a:focus-visible::before {
  opacity: 1;
  translate: 0 -50%;
}
.side__nav a[aria-current="page"] {
  background-image: linear-gradient(var(--amber), var(--amber));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: 3px 3px 0 var(--ink);
}
.side__nav a[aria-current="page"]::before { content: none; }

/* selection effect: the pencil sweeps across and "writes" the amber fill */
.side__nav a.is-writing {
  animation: navWrite .5s steps(8, end) both;
}
.side__nav a.is-writing::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 16px;
  margin-top: -9px;
  background: url("../assets/img/pencil.svg") no-repeat center / contain;
  image-rendering: pixelated;
  animation: navWritePen .5s steps(8, end) both;
}

@keyframes navWrite {
  from { background-size: 0% 100%; }
  to   { background-size: 100% 100%; }
}
@keyframes navWritePen {
  from { left: 0; }
  to   { left: calc(100% - 12px); }
}

/* ---------- content panel ---------- */
.panel {
  min-width: 0;
  border: 2px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 4px;
  padding: clamp(20px, 3.4vw, 40px);
  background: var(--cream);
}

.page__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 400;
}
/* three amber dashes under every page title, blinking 1 → 2 → 3 */
.dashes {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.dashes i {
  width: 18px;
  height: 6px;
  background: var(--amber);
  animation: dashBlink 1.9s steps(1, end) infinite;
}
.dashes i:nth-child(2) { animation-delay: .63s; }
.dashes i:nth-child(3) { animation-delay: 1.26s; }

@keyframes dashBlink {
  0%  { opacity: .22; }
  33% { opacity: 1; }
}

.page__lede {
  max-width: 56ch;
  margin: 14px 0 34px;
  color: var(--ink-soft);
}

/* ═══════════ GALLERY ═══════════ */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 220px;
  column-gap: 18px;
}

.gallery li {
  break-inside: avoid;
  margin: 0 0 18px;
}

.gallery__item {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--cream);
  cursor: var(--cur-hand);
  text-align: left;
  transition: translate .2s var(--ease-pix), box-shadow .2s var(--ease-pix);
}
.gallery__item img,
.gallery__item video {
  width: 100%;
  image-rendering: pixelated;
}
.gallery__item:hover,
.gallery__item:focus-visible {
  translate: -3px -3px;
  box-shadow: 6px 6px 0 var(--amber), 6px 6px 0 1px var(--ink);
}

.gallery__label {
  display: block;
  padding: 8px 10px;
  border-top: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .01em;
}
.gallery__label em {
  font-style: normal;
  color: var(--ink-soft);
}

.gallery__item--video video { background: var(--cream-dim); }

/* ═══════════ COMMISSION ═══════════ */
.order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 30px;
  align-items: start;
}

.order fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.order__brief { grid-column: 1 / -1; grid-row: 1; }
.order__tiers { grid-column: 1; }
.order__addons { grid-column: 1; margin-top: 34px; }
.order__custom { grid-column: 1; margin-top: 34px; }
.order__summary { grid-column: 2; grid-row: 2 / 5; }

.order__legend {
  padding: 0;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* tiers */
.order__tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.order__tiers .order__legend { grid-column: 1 / -1; margin-bottom: 2px; }

.tier { display: block; }

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

.tier__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px;
  border: 2px solid var(--ink);
  cursor: var(--cur-hand);
  transition: translate .2s var(--ease-pix), box-shadow .2s var(--ease-pix), background .15s;
}
.tier__card:hover { translate: -2px -2px; box-shadow: 4px 4px 0 var(--ink); }

.tier__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.tier__price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--ink);
}
.tier__desc {
  font-size: .86rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.tier input:checked + .tier__card {
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--amber);
  translate: -2px -2px;
}
.tier input:checked + .tier__card .tier__name { color: var(--cream); }
.tier input:checked + .tier__card .tier__price { color: var(--amber); }
.tier input:checked + .tier__card .tier__desc { color: var(--cream-dim); }

.tier input:focus-visible + .tier__card {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* add-ons */
.order__addons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.addon {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 44px;
  padding: 4px 10px 4px 4px;
  cursor: var(--cur-hand);
}

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

.addon__box {
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  transition: background .12s;
}
.addon input:checked + .addon__box { background: var(--amber); }
.addon input:checked + .addon__box::after {
  content: "✕";
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--ink);
}
.addon input:focus-visible + .addon__box {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.addon__name { font-size: .95rem; }
.addon__price {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* brief form — the full-width band at the top of the flow */
.order__brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--ink);
}
.order__brief .order__legend { grid-column: 1 / -1; }
.field--wide { grid-column: 1 / -1; }

.brief__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-family: var(--font-display);
  font-size: .95rem;
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 120px; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 0;
}

.field__hint {
  margin: 0;
  font-size: .78rem;
  color: var(--ink-soft);
}

.btn--send {
  box-shadow: 4px 4px 0 var(--ink);
}
.btn--send:hover:not(:disabled),
.btn--send:focus-visible {
  translate: -2px -2px;
  box-shadow: 6px 6px 0 var(--ink);
}
.btn--send:active:not(:disabled) {
  translate: 2px 2px;
  box-shadow: 0 0 0 var(--ink);
}
.btn--send:disabled { opacity: .6; }

.brief__status { margin: 0; font-size: .85rem; min-height: 1.4em; }
.brief__status a { color: var(--ink); font-weight: 600; }

/* custom donation */
.custom__label {
  display: block;
  margin-bottom: 10px;
  font-size: .92rem;
}

.custom__row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.custom__currency {
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

#custom-amount {
  width: 120px;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
#custom-amount::-webkit-outer-spin-button,
#custom-amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#custom-amount:focus-visible { outline: 3px solid var(--amber); outline-offset: 0; }

.btn--apply { box-shadow: 3px 3px 0 var(--ink); }
.btn--apply:hover,
.btn--apply:focus-visible { translate: -2px -2px; box-shadow: 5px 5px 0 var(--ink); }
.btn--apply:active { translate: 2px 2px; box-shadow: 0 0 0 var(--ink); }

.order__custom .field__hint { margin-top: 10px; }

/* summary */
.order__summary {
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.order__summary-label {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
}

.order__picked {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--cream-dim);
  min-height: 2.6em;
}

.order__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ink-soft);
}
.order__total-label {
  font-family: var(--font-mono);
  font-size: .85rem;
}
#order-total {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
#order-total.tick { animation: pricePop .26s steps(2, end); }

@keyframes pricePop {
  50% { transform: translateY(-3px); color: var(--cream); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  cursor: var(--cur-hand);
  transition: translate .15s var(--ease-pix), box-shadow .15s var(--ease-pix);
}
.btn--pay {
  width: 100%;
  box-shadow: 4px 4px 0 var(--cream);
}
.btn--pay:hover,
.btn--pay:focus-visible {
  translate: -2px -2px;
  box-shadow: 6px 6px 0 var(--cream);
}
.btn--pay:active {
  translate: 2px 2px;
  box-shadow: 0 0 0 var(--cream);
}
.btn--pay:focus-visible { outline-color: var(--cream); }

/* payment stays locked until the brief is sent */
.btn--pay.is-locked {
  opacity: .5;
  box-shadow: none;
}
.btn--pay.is-locked:hover,
.btn--pay.is-locked:active {
  translate: 0 0;
  box-shadow: none;
}
.btn--pay.shake { animation: payShake .3s steps(4, end); }

@keyframes payShake {
  25% { translate: -3px 0; }
  50% { translate: 3px 0; }
  75% { translate: -3px 0; }
}

.order__note {
  margin: 14px 0 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--cream-dim);
}
.order__bmc {
  color: var(--amber);
  text-underline-offset: 3px;
}

/* terms of service */
.tos { margin-top: 48px; }

.tos__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 14px;
}

.tos__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 62ch;
}
.tos__list li {
  position: relative;
  padding-left: 24px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.tos__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .4em;
  width: 8px;
  height: 8px;
  background: var(--amber);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ═══════════ CONTACT ═══════════ */
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.links__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
  transition: translate .2s var(--ease-pix), box-shadow .2s var(--ease-pix), background .15s;
}
.links__item:hover,
.links__item:focus-visible {
  translate: -3px -3px;
  box-shadow: 6px 6px 0 var(--amber), 6px 6px 0 1px var(--ink);
}

.links__icon {
  flex: none;
  width: 26px;
  height: 26px;
}

/* ═══════════ FOOTER ═══════════ */
.foot {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.foot p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-soft);
}

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1100px);
  max-height: 92dvh;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(42, 28, 49, .88);
}

.lightbox__figure {
  margin: 0;
}
.lightbox__figure img,
.lightbox__figure video {
  max-width: min(88vw, 1000px);
  max-height: 78dvh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 2px solid var(--cream);
  image-rendering: pixelated;
}
/* animated pieces just loop — no pausing, no fullscreen, no controls */
.lightbox__figure video { pointer-events: none; }
.lightbox__figure figcaption {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.05rem;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--cream);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  cursor: var(--cur-hand);
}
.lightbox button:hover { background: var(--amber); color: var(--ink); }
.lightbox button:focus-visible { outline-color: var(--amber); }

.lightbox__close { top: -12px; right: -12px; }
.lightbox__arrow--prev { left: -14px; top: 50%; translate: 0 -50%; }
.lightbox__arrow--next { right: -14px; top: 50%; translate: 0 -50%; }

/* ═══════════ BOOT SCREEN (once per session) ═══════════ */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: var(--cur-hand);
}

.boot__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: .06em;
}

.boot__bar {
  width: 220px;
  height: 16px;
  border: 2px solid var(--cream);
  padding: 2px;
}
.boot__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--amber);
  animation: bootFill 1.15s steps(12, end) .15s forwards;
}

.boot__hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--cream-dim);
}

.boot--done { animation: bootOut .35s steps(6, end) forwards; }

@keyframes bootFill { to { width: 100%; } }
@keyframes bootOut { to { translate: 0 -100%; opacity: .4; } }

/* ═══════════ FLYING ENVELOPE (brief sent) ═══════════ */
.fly-envelope {
  position: fixed;
  z-index: 150;
  width: 32px;
  height: 24px;
  pointer-events: none;
  image-rendering: pixelated;
}

/* ═══════════ AMBIENT SPARKS (side gutters) ═══════════ */
.sparks {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: none;
}
@media (min-width: 1120px) { .sparks { display: block; } }

.sparks span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 5px;
  height: 5px;
  background: var(--amber);
  box-shadow:
    0 0 2px 1px rgba(235, 172, 77, .9),
    0 0 12px 4px rgba(235, 172, 77, .55);
  opacity: 0;
  animation: sparkPulse var(--t) ease-in-out var(--d) infinite;
}
.sparks span[data-right] {
  left: auto;
  right: var(--x);
}

@keyframes sparkPulse {
  0%, 100% { opacity: 0; }
  50%      { opacity: .85; }
}

/* ═══════════ FX CANVAS (stars + candle glow) ═══════════ */
.fx {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

/* ═══════════ SCROLL REVEAL ═══════════ */
.reveal {
  opacity: 0;
  translate: 0 14px;
}
.reveal.is-in {
  opacity: 1;
  translate: 0 0;
  transition: opacity .5s var(--ease-soft), translate .45s var(--ease-pix);
}

/* ═══════════ MOBILE — designed, not shrunk ═══════════ */
@media (max-width: 720px) {

  /* hero: crop to her face, title moves onto an ink band below */
  .hero {
    height: 300px;
    overflow: hidden;
  }
  .hero__art {
    height: 100%;
    object-fit: cover;
    object-position: 12% 20%;
  }
  .hero__title {
    position: static;
    background: var(--ink);
    padding: 14px 16px 16px;
    margin: 0;
    font-size: 1.3rem;
  }
  .hero { height: auto; }
  .hero__art { height: 300px; }

  .ribbon { height: 18px; }

  /* shell collapses; nav becomes a sticky pixel tab bar */
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 0;
  }

  .side {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 calc(-1 * clamp(12px, 3vw, 28px));
    background: var(--cream);
    border-bottom: 2px solid var(--ink);
    padding: 10px clamp(12px, 3vw, 28px);
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .side__brand {
    margin: 0;
    font-size: .95rem;
  }
  .side__avatar { display: none; }
  .side__nav {
    flex-direction: row;
    gap: 2px;
    margin-left: auto;
  }
  .side__nav a {
    padding: 10px 8px;
    font-size: .85rem;
  }
  .side__nav a::before { content: none; }

  .panel {
    outline: none;
    border-left: none;
    border-right: none;
    margin: 0 calc(-1 * clamp(12px, 3vw, 28px));
    padding: 24px 18px 40px;
  }

  .gallery { columns: 2 120px; column-gap: 12px; }
  .gallery li { margin-bottom: 12px; }
  .gallery__label { font-size: .68rem; padding: 6px 8px; }

  /* commission: single column, summary pins to the thumb zone */
  .order { grid-template-columns: 1fr; }
  .order__brief { grid-template-columns: 1fr; grid-column: 1; }
  .order__tiers { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tier__card { padding: 12px; }
  .tier__price { font-size: 1.55rem; }
  .tier__desc { display: none; }         /* mobile keeps cards scannable */
  .order__addons { margin-top: 26px; }
  /* on phones the summary sits in the flow like everything else,
     so it no longer covers the screen while scrolling */
  .order__summary {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
  .order__picked { min-height: 0; }

  .tos { margin-top: 34px; }

  .lightbox__close { top: 8px; right: 8px; position: fixed; }
  .lightbox__arrow--prev { left: 8px; position: fixed; }
  .lightbox__arrow--next { right: 8px; position: fixed; }
  .lightbox__figure img { max-width: 92vw; }
}

/* very small phones: single gallery column stays generous */
@media (max-width: 340px) {
  .gallery { columns: 1; }
  .order__tiers { grid-template-columns: 1fr; }
}

/* NOTE: the client explicitly wants the site's animations (marquee,
   dashes, sparks, cursor FX) always on, so there is deliberately no
   prefers-reduced-motion override here. */
