/* ============================================================
   1997 BMW R1100GS — listing page
   Dark adventure-moto theme, GS yellow accent
   ============================================================ */

:root {
  --bg:        #0d0d0f;
  --surface:   #141418;
  --surface-2: #1c1c22;
  --line:      #2a2a31;
  --text:      #f5f5f2;
  --muted:     #a2a2ab;
  --accent:    #ffcb05;   /* GS / Öhlins yellow */
  --accent-2:  #ffe27a;
  --good:      #6ee7a8;
  --shadow:    0 20px 50px -20px rgba(0,0,0,.7);
  --radius:    14px;
  --maxw:      1120px;
  --font: "Helvetica Neue", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

a { color: inherit; }

.hl { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .8rem; --pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #17130a; }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { --pad-y: .55rem; --pad-x: 1rem; font-size: .82rem; background: var(--accent); color: #17130a; }
.btn--lg { --pad-y: 1rem; --pad-x: 2rem; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .75rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(13,13,15,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent); color: #17130a;
  font-weight: 900; font-size: .95rem; letter-spacing: -.03em;
}
.nav__wordmark { font-weight: 800; letter-spacing: .08em; font-size: 1rem; }
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav__links a {
  text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 600;
  letter-spacing: .02em; transition: color .18s ease;
}
.nav__links a:hover { color: var(--text); }
.nav .btn--sm { margin-left: .25rem; }
.nav__status {
  margin-left: auto; font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem;
  display: inline-flex; align-items: center; gap: .45rem;
}
.nav__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.nav__links + .nav__status { margin-left: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: flex-end;
  padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 600px at 70% 20%, #26262e, #0d0d0f 70%);
  background-size: cover; background-position: center 40%;
}
.hero__media.has-img {
  background-image: var(--hero-url);
  background-size: cover; background-position: center 42%;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13,13,15,.92) 0%, rgba(13,13,15,.55) 45%, rgba(13,13,15,.15) 100%),
    linear-gradient(0deg, rgba(13,13,15,.95) 2%, transparent 55%);
}
.hero__inner { max-width: var(--maxw); width: 100%; margin: 0 auto; }
.hero__eyebrow {
  color: var(--accent); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; font-size: .78rem; margin: 0 0 1rem;
}
.hero__title {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 900; letter-spacing: -.02em;
  text-transform: uppercase;
}
.hero__title span { color: var(--accent); display: block; }
.hero__sub {
  max-width: 40ch; color: #dcdce0; font-size: clamp(1rem, 2.2vw, 1.25rem);
  margin: 1.2rem 0 1.6rem;
}
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.8rem; }
.badges li {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.03); color: #e7e7ea;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Facts strip ---------- */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--maxw); margin: -1px auto 0;
  border-top: 1px solid var(--line);
}
.strip__item {
  display: flex; flex-direction: column; gap: .1rem;
  padding: 1.1rem clamp(1rem, 3vw, 1.5rem);
  border-right: 1px solid var(--line);
}
.strip__item:last-child { border-right: 0; }
.strip__k { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.strip__v { font-weight: 800; font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem); }
.section--alt { max-width: none; background: var(--surface); border-block: 1px solid var(--line); }
.section--alt > * { max-width: var(--maxw); margin-inline: auto; }
.section__head { margin-bottom: 2.2rem; }
.section__head h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 900;
  letter-spacing: -.01em; text-transform: uppercase;
}
.section__head h2::after {
  content: ""; display: block; width: 56px; height: 4px;
  background: var(--accent); border-radius: 2px; margin-top: .8rem;
}
.section__head p { color: var(--muted); margin: .8rem 0 0; font-size: 1.05rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.shot {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface-2); cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.shot--wide { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.4rem 1rem .8rem; font-size: .85rem; color: #ececef;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease;
}
.shot:hover figcaption { opacity: 1; transform: translateY(0); }
/* fallback placeholder when image is missing */
.shot.is-missing {
  cursor: default;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .8rem; text-align: center; padding: 1.5rem;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px);
}
.shot.is-missing img { display: none; }
.shot.is-missing::before {
  content: attr(data-label);
  color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  border: 1px dashed var(--line); border-radius: 999px; padding: .4rem .9rem;
}
.shot.is-missing figcaption {
  position: static; opacity: 1; transform: none; background: none;
  color: var(--muted); font-size: .85rem; max-width: 42ch; padding: 0;
}
.gallery__note {
  margin-top: 1.2rem; color: var(--muted); font-size: .9rem;
  padding: .9rem 1.1rem; border: 1px dashed var(--line); border-radius: 10px;
  background: var(--surface-2);
}
.gallery__note code { color: var(--accent-2); background: rgba(255,203,5,.08); padding: .1rem .35rem; border-radius: 5px; }

/* ---------- Build cards ---------- */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.4rem;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card__tag {
  display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 800; margin-bottom: .7rem;
}
.card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }
.card__val {
  margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line);
  color: var(--accent-2); font-size: .78rem; font-weight: 700; letter-spacing: .01em;
}

/* ---------- Specs ---------- */
.specs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs__row {
  display: grid; grid-template-columns: 1fr 2fr; gap: 1rem;
  padding: .95rem clamp(1rem, 3vw, 1.6rem);
  border-bottom: 1px solid var(--line);
}
.specs__row:last-child { border-bottom: 0; }
.specs__row:nth-child(odd) { background: var(--surface); }
.specs__row span:first-child { color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.specs__row b { color: var(--accent); font-weight: 800; }
.specs__note { color: var(--muted); font-weight: 500; font-size: .85em; }

/* ---------- Condition ---------- */
.condition__intro {
  max-width: 62ch; font-size: 1.1rem; color: #dcdce0; margin-bottom: 2rem;
  border-left: 3px solid var(--accent); padding-left: 1.2rem;
}
.condition__intro p { margin: 0; }
.condition__cols { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.needbox {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; background: var(--surface-2);
}
.needbox h3 { font-size: 1.15rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.needbox h3::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none;
}
.needbox--todo h3::before { background: var(--accent); }
.needbox--yes h3::before { background: var(--good); }
.needbox ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .6rem; }
.needbox li { color: #d6d6da; font-size: .95rem; }
.needbox li strong { color: var(--text); }
.needbox__fine { margin: 1rem 0 0; font-size: .82rem; color: var(--muted); font-style: italic; }
.paper-note {
  margin-top: 1.4rem; color: var(--muted); font-size: .92rem;
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px;
  padding: 1rem 1.2rem; background: var(--surface-2);
}
.paper-note strong { color: var(--text); }

/* ---------- Status pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: .32rem .7rem; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap;
  color: var(--muted);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill--next { color: #17130a; background: var(--accent); border-color: var(--accent); }
.pill--next::before { background: #17130a; }
.pill--done { color: var(--good); border-color: rgba(110,231,168,.4); }
.pill--done::before { background: var(--good); }

/* ---------- Punch list ---------- */
.punch__legend { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.8rem; align-items: center; }
.punch { display: grid; gap: 1.8rem; }
.punch__group h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .9rem; display: flex; align-items: baseline; gap: .6rem; }
.punch__group h3 .count { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.tasklist { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.task {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.task:last-child { border-bottom: 0; }
.task__body { flex: 1; min-width: 0; }
.task__title { font-weight: 700; }
.task__note { color: var(--muted); font-size: .88rem; margin-top: .12rem; }

/* ---------- Build log ---------- */
.log { display: grid; gap: 1.5rem; max-width: 64ch; }
.log__entry { border-left: 2px solid var(--line); padding: 0 0 .1rem 1.5rem; position: relative; }
.log__entry::before {
  content: ""; position: absolute; left: -6px; top: .35rem;
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.log__date { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.log__entry h3 { font-size: 1.05rem; margin: .3rem 0 .45rem; }
.log__entry p { color: var(--muted); font-size: .95rem; margin: 0; }
.log__soon { color: var(--muted); font-style: italic; font-size: .9rem; }

/* ---------- Empty states ---------- */
.empty {
  color: var(--muted); font-size: .95rem; margin: 0;
  padding: 1.4rem 1.4rem; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--surface-2);
}

/* ---------- Journal ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filter-btn {
  font: inherit; cursor: pointer; color: var(--muted);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: .38rem .85rem; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--muted); }
.filter-btn.is-active { color: #17130a; background: var(--accent); border-color: var(--accent); }

.journal { display: grid; gap: 1.6rem; max-width: 70ch; }
.jentry { border-left: 2px solid var(--line); padding: 0 0 .2rem 1.6rem; position: relative; }
.jentry::before {
  content: ""; position: absolute; left: -7px; top: .3rem;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.jentry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: .35rem; }
.jentry__date { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.jentry__odo { color: var(--muted); font-size: .78rem; font-weight: 600; }
.jtag {
  font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.jtag--acquired    { color: var(--accent); border-color: rgba(255,203,5,.4); }
.jtag--maintenance { color: #6cb6ff; border-color: rgba(108,182,255,.4); }
.jtag--mod         { color: #c39bf0; border-color: rgba(195,155,240,.4); }
.jtag--fix         { color: #ff9a6c; border-color: rgba(255,154,108,.4); }
.jtag--ride        { color: var(--good); border-color: rgba(110,231,168,.4); }
.jtag--payment     { color: #e6c15a; border-color: rgba(230,193,90,.4); }
.jtag--note        { color: var(--muted); }
.jentry__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 .4rem; }
.jentry__body { color: var(--muted); margin: 0; font-size: .97rem; }
.jentry__photos { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.jentry__photos img {
  width: 130px; height: 96px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); cursor: zoom-in; transition: transform .2s ease;
}
.jentry__photos img:hover { transform: scale(1.03); }

/* ---------- Maintenance table ---------- */
.mtable { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mtable__row {
  display: grid; grid-template-columns: 7rem 7rem 1fr 1fr 5rem; gap: 1rem;
  padding: .95rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--surface-2);
  align-items: start;
}
.mtable__row:last-child { border-bottom: 0; }
.mtable__row--head { background: var(--surface); color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.mtable__date { color: var(--accent); font-weight: 700; font-size: .9rem; }
.mtable__svc { display: flex; flex-direction: column; gap: .15rem; }
.mtable__note { color: var(--muted); font-size: .84rem; }

/* schedule interval badge */
.sched__int {
  flex: none; color: var(--accent-2); font-size: .78rem; font-weight: 700;
  text-align: right; max-width: 16rem;
}

/* ---------- Two-column doc layout ---------- */
.doc2 { display: grid; gap: 2.2rem; grid-template-columns: 1fr 1fr; align-items: start; }
.doc2 .subhead { font-size: 1.15rem; font-weight: 800; margin: 0 0 1rem; }

/* ---------- Garage: mods + spares ---------- */
.modgrid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.modcard { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.modcard__tag { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.modcard h4 { font-size: 1.1rem; margin: .35rem 0 .5rem; }
.modcard p { color: var(--muted); font-size: .9rem; margin: 0 0 .7rem; }
.modcard__by { font-size: .72rem; color: var(--muted); font-style: italic; }
.spares { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.spares li { padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: .92rem; }
.spares__qty { color: var(--accent); font-weight: 700; margin-left: .4rem; }
.spares__note { color: var(--muted); display: block; font-size: .82rem; margin-top: .2rem; }

/* ---------- Reference cards ---------- */
.refgrid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; align-items: start; }
.refcard { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.refcard h4 { font-size: 1rem; margin: 0 0 .9rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; color: var(--accent); }
.refcard__rows { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; }
.refcard__rows dt { color: var(--muted); font-size: .86rem; font-weight: 600; }
.refcard__rows dd { margin: 0; font-size: .88rem; text-align: right; }

/* idea pill */
.pill--idea { color: var(--muted); border-style: dashed; }

/* ---------- Good to know (quirks) ---------- */
.quirks { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.quirk {
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 1.3rem;
}
.quirk h4 { font-size: 1rem; margin: 0 0 .5rem; }
.quirk p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Playbook guides (accordion) ---------- */
.guides { display: grid; gap: .8rem; }
.guide { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); overflow: hidden; }
.guide__sum { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; }
.guide__sum::-webkit-details-marker { display: none; }
.guide__title { font-size: 1.05rem; font-weight: 800; }
.guide__chev { color: var(--accent); font-size: 1.5rem; font-weight: 800; line-height: 1; transition: transform .2s ease; }
.guide[open] .guide__chev { transform: rotate(45deg); }
.guide__sum:hover .guide__title { color: var(--accent); }
.guide__body { padding: 0 1.4rem 1.4rem; }
.guide__intro { color: #dcdce0; margin: 0 0 1rem; }
.guide__steps { margin: 0; padding-left: 1.35rem; display: grid; gap: .6rem; }
.guide__steps li { color: #d6d6da; font-size: .95rem; padding-left: .2rem; }
.guide__steps li::marker { color: var(--accent); font-weight: 800; }
.guide__tips { margin-top: 1.2rem; border-top: 1px dashed var(--line); padding-top: 1rem; }
.guide__tips h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 0 0 .6rem; }
.guide__tips ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; }
.guide__tips li { color: var(--muted); font-size: .88rem; }

/* keep the 8 nav links from crowding the status chip on mid-width screens */
@media (min-width: 861px) and (max-width: 1040px) { .nav__status { display: none; } }

/* ---------- Buttons: make <button>.btn match <a>.btn ---------- */
.btn { font-family: inherit; -webkit-appearance: none; appearance: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero Ken Burns ---------- */
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.09); } }
.hero__media.has-img { animation: kenburns 22s ease-out forwards; transform-origin: 60% 45%; }

/* ---------- The Story ---------- */
.story { display: grid; gap: 2.4rem; grid-template-columns: 1.5fr 1fr; align-items: start; }
.story__body { max-width: 62ch; }
.story__p { color: #dcdce0; font-size: 1.08rem; line-height: 1.7; margin: 0 0 1.15rem; }
.story__p:first-child { font-size: 1.28rem; color: var(--text); font-weight: 600; }
.story__p:last-child { margin-bottom: 0; }

/* ---------- Squaring up with Dad ---------- */
.squareup {
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 1.6rem; align-self: start;
}
.squareup__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.squareup__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; }
.squareup__amt { font-weight: 700; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.squareup__amt b { color: var(--accent); font-size: 1.3rem; }
.squareup__ledger { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.squareup__ledger li { display: flex; gap: .85rem; align-items: baseline; font-size: .92rem; color: #d6d6da; }
.squareup__x { color: var(--accent); font-weight: 800; min-width: 3.6rem; flex: none; }
.squareup__togo { color: var(--muted); font-style: italic; border-top: 1px dashed var(--line); padding-top: .7rem; margin-top: .25rem; }
.squareup__togo .squareup__x { color: var(--text); font-style: normal; }

/* ---------- Recommissioning progress ---------- */
.progress { max-width: var(--maxw); margin: 0 auto; padding: 1.8rem clamp(1rem,4vw,2.5rem) .4rem; display: grid; gap: .8rem; }
.progress__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.progress__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 800; }
.progress__count { font-weight: 700; color: var(--muted); font-size: .9rem; }
.progress__count b { color: var(--accent); font-size: 1.15rem; font-weight: 800; }
.progress__track { height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.progress__fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 16px rgba(255,203,5,.45); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }

/* ---------- Scrollspy ---------- */
.nav__links a.is-current { color: var(--accent); }

/* ---------- Share button glyph ---------- */
.btn[data-share]::before { content: "\2197"; font-weight: 800; margin-right: .1rem; }

/* ---------- Closing CTA row ---------- */
.closing__cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--accent); color: #17130a; font-weight: 800; font-size: .9rem;
  padding: .7rem 1.3rem; border-radius: 999px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 120;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #17130a; border: none; cursor: pointer;
  display: grid; place-items: center; font-size: 1.35rem; line-height: 1;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease; z-index: 90; box-shadow: var(--shadow);
}
.totop.is-show { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { background: var(--accent-2); }

/* ---------- Byline ---------- */
.foot__by { color: var(--text); font-weight: 700; }
.foot__by b { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__media.has-img { animation: none !important; }
  .progress__fill { transition: none !important; }
}

/* ---------- Closing ---------- */
.closing {
  text-align: center; padding: clamp(3.5rem, 10vw, 7rem) 1.5rem;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(255,203,5,.10), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.closing h2 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.closing p { color: var(--muted); margin: 1rem auto 2rem; max-width: 44ch; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 2.5rem 1.5rem; border-top: 1px solid var(--line); background: var(--surface); }
.foot p { margin: .3rem 0; color: var(--muted); font-size: .9rem; }
.foot__fine { font-size: .78rem; opacity: .75; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 4vh 4vw;
  background: rgba(6,6,8,.94); backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 92vw; max-height: 82vh; object-fit: contain;
  border-radius: 8px; box-shadow: var(--shadow);
}
.lightbox__cap {
  position: absolute; bottom: 3vh; left: 50%; transform: translateX(-50%);
  color: #e7e7ea; font-size: .9rem; text-align: center; max-width: 80vw; margin: 0;
}
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid var(--line); cursor: pointer;
  display: grid; place-items: center; transition: background .18s ease, color .18s ease;
}
.lightbox__close {
  top: 3vh; right: 4vw; width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
}
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; }
.lightbox__nav--prev { left: 3vw; }
.lightbox__nav--next { right: 3vw; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); color: #17130a; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(2) { border-right: 0; }
  .strip__item:nth-child(1), .strip__item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .doc2 { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .gallery { grid-template-columns: 1fr; }
  .shot, .shot--wide { aspect-ratio: 4 / 3; }
  .cards { grid-template-columns: 1fr; }
  .condition__cols { grid-template-columns: 1fr; }
  .specs__row { grid-template-columns: 1fr; gap: .2rem; }
  .task { flex-wrap: wrap; }
  .modgrid, .refgrid, .quirks { grid-template-columns: 1fr; }
  .refcard__rows dd { text-align: left; }
  .mtable__row { grid-template-columns: 1fr 1fr; gap: .4rem 1rem; }
  .mtable__row--head { display: none; }
  .mtable__svc { grid-column: 1 / -1; }
  .sched__int { text-align: left; max-width: none; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.5rem; }
}

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