/* ============================================================
   Limpy Leo Digital Lab
   Near-black ground, hairline module rules, light geometric caps —
   the language of the reference template. Leo's gold survives as an
   accent only: a rule, a mark, a hover. Never a fill.
   ============================================================ */

:root {
  /* light */
  --ground:      #f6f5f7;
  --surface:     #ffffff;
  --surface-2:   #edebef;
  --text:        #111015;
  --text-2:      #3f3c45;
  --muted:       #6c6771;
  --line:        rgba(17, 16, 21, .14);
  --line-strong: rgba(17, 16, 21, .30);
  --grid:        rgba(17, 16, 21, .035);
  --gold:        #b07a10;
  --gold-quiet:  rgba(176, 122, 16, .42);
  --fill:        #111015;
  --on-fill:     #f6f5f7;
  --plate:       #ffffff;
  --plate-line:  rgba(17, 16, 21, .12);

  --f-display: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body:    "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --page: 1320px;
  --gut:  clamp(1.25rem, 4vw, 3.5rem);
  --cell: 48px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #0c0b0d;
    --surface:     #141317;
    --surface-2:   #1a181d;
    --text:        #f5f4f6;
    --text-2:      #c2bec6;
    --muted:       #8b8691;
    --line:        rgba(255, 255, 255, .12);
    --line-strong: rgba(255, 255, 255, .28);
    --grid:        rgba(255, 255, 255, .022);
    --gold:        #fdc870;
    --gold-quiet:  rgba(253, 200, 112, .38);
    --fill:        #f5f4f6;
    --on-fill:     #0c0b0d;
    --plate:       #141317;
    --plate-line:  rgba(255, 255, 255, .11);
  }
}

:root[data-theme="dark"] {
  --ground:      #0c0b0d;
  --surface:     #141317;
  --surface-2:   #1a181d;
  --text:        #f5f4f6;
  --text-2:      #c2bec6;
  --muted:       #8b8691;
  --line:        rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .28);
  --grid:        rgba(255, 255, 255, .022);
  --gold:        #fdc870;
  --gold-quiet:  rgba(253, 200, 112, .38);
  --fill:        #f5f4f6;
  --on-fill:     #0c0b0d;
  --plate:       #141317;
  --plate-line:  rgba(255, 255, 255, .11);
}

/* ---------- base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    repeating-linear-gradient(to right,  var(--grid) 0 1px, transparent 1px var(--cell)),
    repeating-linear-gradient(to bottom, var(--grid) 0 1px, transparent 1px var(--cell));
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(.94rem, .9rem + .16vw, 1rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: .25em; }
a:hover { text-decoration-color: var(--gold); }
:where(a, button, [tabindex]):focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .055em;
  line-height: 1.18;
  text-wrap: balance;
  margin: 0;
}
h1 { letter-spacing: .045em; }

p { margin: 0; }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gut); }

.band { border-top: 1px solid var(--line); }
.band--flush { border-top: 0; }

.eyebrow {
  font-size: .655rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}

.lede { color: var(--text-2); max-width: 58ch; }

.skip { position: absolute; left: -9999px; background: var(--fill); color: var(--on-fill); padding: .7rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- sparkle: the template's four-point star ---------- */

.spark { display: block; color: var(--gold-quiet); }
.spark--float { position: absolute; pointer-events: none; z-index: 1; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head__in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand img { width: 1.8rem; height: auto; flex: none; }
.brand__words { display: grid; gap: .2rem; }
.brand__name {
  font-family: var(--f-display); font-weight: 400;
  font-size: .95rem; letter-spacing: .28em; text-transform: uppercase;
}
.brand__sub {
  font-size: .54rem; font-weight: 500; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted);
}
@media (max-width: 600px) { .brand__sub { display: none; } }

.nav { display: flex; gap: 2rem; }
.nav a {
  font-size: .66rem; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  padding-block: .3rem;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom: 1px solid var(--gold); }
@media (max-width: 780px) { .nav { display: none; } }

.theme-btn {
  font: inherit; font-size: .62rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  background: none; border: 1px solid var(--line-strong);
  color: var(--muted); border-radius: 999px; padding: .48rem 1.05rem; cursor: pointer;
  transition: color .18s, border-color .18s;
}
.theme-btn:hover { color: var(--text); border-color: var(--gold); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .66rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  padding: 1.05rem 2rem; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--fill); color: var(--on-fill); }
.btn--solid:hover { background: transparent; color: var(--text); border-color: var(--gold); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- split: type against a full-bleed plate ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }

.split__type {
  padding: clamp(3.5rem, 8vw, 7rem) clamp(2rem, 4vw, 4.5rem)
           clamp(3.5rem, 8vw, 7rem) max(var(--gut), calc((100vw - var(--page)) / 2 + var(--gut)));
  border-right: 1px solid var(--line);
  display: grid; align-content: center;
  position: relative; z-index: 2;
}
@media (max-width: 920px) { .split__type { border-right: 0; padding-right: var(--gut); } }

.split__plate {
  position: relative; overflow: hidden;
  min-height: clamp(22rem, 44vw, 38rem);
  background: var(--surface-2);
}
.split__plate img { width: 100%; height: 100%; object-fit: cover; }
.split__plate .spark--float { color: rgba(255, 255, 255, .5); }

.hero-mark {
  font-family: var(--f-display); font-weight: 300;
  text-transform: uppercase; letter-spacing: .045em;
  font-size: clamp(1.55rem, 3.5vw, 3.15rem);
  line-height: 1.2; margin: 1.6rem 0 0;
  white-space: nowrap;
}
.hero-mark em { font-style: normal; color: var(--muted); }
.hero__sub { margin-top: 1.9rem; font-size: 1rem; max-width: 44ch; color: var(--text-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.6rem; }

/* ---------- sections ---------- */

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section__head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.2rem, 4.5vw, 3.6rem); }
.section__head h2 { font-size: clamp(1.4rem, 1rem + 1.7vw, 2.4rem); max-width: 22ch; }

.pagehead { padding-block: clamp(4rem, 9vw, 7rem) clamp(2rem, 4vw, 3rem); position: relative; }
.pagehead h1 { font-size: clamp(1.6rem, 1rem + 2.6vw, 3.3rem); }
.pagehead .lede { margin-top: 1.4rem; }

/* ---------- stat cards ---------- */

.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 1.6vw, 1.25rem); }
@media (max-width: 860px) { .statgrid { grid-template-columns: repeat(2, 1fr); } }

.statcard {
  border: 1px solid var(--line); border-radius: 22px;
  padding: 1.6rem 1.6rem 1.7rem;
  display: grid; gap: .5rem; align-content: space-between;
  position: relative; min-height: 10.5rem;
  transition: border-color .25s;
}
.statcard:hover { border-color: var(--gold); }
.statcard dt {
  font-size: .62rem; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted); padding-right: 2.5rem;
}
.statcard dd {
  margin: 0; font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); line-height: 1;
  letter-spacing: .02em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.statcard .arw { position: absolute; top: 1.4rem; right: 1.4rem; width: 1.3rem; height: 1.3rem; color: var(--muted); transition: color .25s; }
.statcard:hover .arw { color: var(--gold); }

/* ---------- work grid ---------- */

.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2.4rem; }
.filter {
  font: inherit; font-size: .62rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  background: none; border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; padding: .5rem 1.05rem; cursor: pointer;
  transition: color .18s, border-color .18s, background-color .18s;
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter[aria-pressed="true"] { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1.2rem, 2.4vw, 2.2rem); grid-auto-flow: dense; }
.piece { grid-column: span var(--span, 3); margin: 0; }
.piece[hidden] { display: none; }

.plate {
  display: block; width: 100%; padding: 0;
  background: var(--plate); border: 1px solid var(--plate-line);
  aspect-ratio: 3 / 2; overflow: hidden; cursor: zoom-in; position: relative;
  transition: border-color .25s;
}
.plate img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.plate:hover { border-color: var(--line-strong); }
.plate:hover img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .plate img { transition: none; } .plate:hover img { transform: none; } }

.piece figcaption { display: grid; gap: .35rem; padding-top: 1rem; }
.piece__cat { font-size: .6rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.piece__title { font-family: var(--f-display); font-weight: 400; font-size: .92rem; letter-spacing: .13em; text-transform: uppercase; }
.piece__desc { font-size: .84rem; color: var(--muted); line-height: 1.6; max-width: 46ch; }

@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } .piece { grid-column: span 1 !important; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* ---------- discipline accordion ---------- */

.acc { display: flex; gap: clamp(.6rem, 1.4vw, 1rem); align-items: stretch; min-height: clamp(24rem, 32vw, 30rem); }
.acc__item {
  flex: 0 1 5.5rem; min-width: 5.5rem;
  border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; position: relative; background: var(--surface);
  transition: flex-grow .45s cubic-bezier(.2,.7,.3,1), border-color .25s;
}
.acc__item[data-open="true"] { flex-grow: 1; min-width: 0; }
.acc__item:hover { border-color: var(--line-strong); }
.acc__item[data-open="true"] { border-color: var(--line-strong); }
@media (prefers-reduced-motion: reduce) { .acc__item { transition: border-color .25s; } }

.acc__tab {
  all: unset; box-sizing: border-box; cursor: pointer;
  position: absolute; inset: 0;
  display: grid; align-content: space-between; justify-items: center; padding: 1.8rem 0;
}
.acc__tab:focus-visible { outline: 1px solid var(--gold); outline-offset: -5px; border-radius: 20px; }
.acc__label {
  font-family: var(--f-display); font-weight: 300;
  font-size: .88rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text);
  writing-mode: vertical-rl; text-orientation: mixed; white-space: nowrap;
}
.acc__tab .arw { width: 1.2rem; height: 1.2rem; color: var(--muted); transition: color .25s; }
.acc__item:hover .acc__tab .arw { color: var(--gold); }

.acc__item[data-open="true"] .acc__tab { display: none; }
.acc__panel { display: none; }
.acc__item[data-open="true"] .acc__panel {
  display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%;
  padding: clamp(1.4rem, 2.6vw, 2.2rem); gap: 1.4rem;
}
.acc__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .7rem 1.4rem; }
.acc__head h3 { font-size: clamp(1.05rem, .9rem + .8vw, 1.5rem); letter-spacing: .18em; }
.acc__head p { font-size: .84rem; color: var(--muted); flex: 1 1 16rem; }
.acc__strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(11rem, 1fr);
  gap: clamp(.8rem, 1.5vw, 1.2rem); overflow-x: auto; padding-bottom: .4rem;
}
.acc__strip .piece { grid-column: auto; min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.acc__strip .plate { aspect-ratio: auto; height: 100%; }
.acc__strip .piece__desc { display: none; }

@media (max-width: 920px) {
  .acc { flex-direction: column; min-height: 0; }
  .acc__item { flex: 0 0 auto; min-height: 4.8rem; }
  .acc__item[data-open="true"] { min-height: 26rem; }
  .acc__tab { align-content: center; justify-items: stretch; grid-auto-flow: column; justify-content: space-between; align-items: center; padding: 0 1.5rem; }
  .acc__label { writing-mode: horizontal-tb; }
}

/* ---------- services ---------- */

.services { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.service {
  padding: clamp(2rem, 3.4vw, 3rem) clamp(1.6rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service:nth-child(odd) { border-left: 0; padding-left: 0; }
.service h3 { font-size: clamp(1.05rem, .9rem + .7vw, 1.4rem); letter-spacing: .18em; margin-bottom: .9rem; }
.service__lede { color: var(--text-2); font-size: .9rem; margin-bottom: 1.4rem; max-width: 42ch; }
.service ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.service li { font-size: .85rem; color: var(--muted); padding-left: 1.3rem; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .78em; width: .55rem; height: 1px; background: var(--gold-quiet); }
@media (max-width: 780px) { .services { grid-template-columns: 1fr; } .service { border-left: 0; padding-left: 0; padding-right: 0; } }

.also {
  margin-top: 3rem; padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .87rem; max-width: 74ch;
}
.also strong { color: var(--text-2); font-weight: 500; }

/* ---------- testimonials ---------- */

.quotes { columns: 3; column-gap: clamp(1.4rem, 2.6vw, 2.4rem); }
@media (max-width: 1000px) { .quotes { columns: 2; } }
@media (max-width: 640px) { .quotes { columns: 1; } }

.quote {
  break-inside: avoid; margin: 0 0 clamp(1.4rem, 2.6vw, 2.4rem);
  padding: 1.6rem 0 0; border-top: 1px solid var(--line);
}
.quote blockquote { margin: 0; font-size: .92rem; line-height: 1.7; color: var(--text-2); }
.quote figcaption {
  margin-top: 1.1rem;
  font-size: .6rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem .9rem;
}
.quote figcaption b { color: var(--text); font-weight: 500; }
.stars { color: var(--gold-quiet); letter-spacing: .14em; }

/* ---------- about ---------- */

.about { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 880px) { .about { grid-template-columns: 1fr; } }
.about__body { display: grid; gap: 1.3rem; max-width: 60ch; color: var(--text-2); }
.about__body p:first-child { font-size: 1.08rem; color: var(--text); line-height: 1.6; }
.facts { display: grid; gap: 2rem; }
.facts h4 {
  font-size: .6rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .9rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line);
}
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.facts li { font-size: .85rem; color: var(--text-2); }
.facts p { font-size: .82rem; color: var(--muted); line-height: 1.75; }

/* ---------- contact ---------- */

.contact__mail {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.05rem, .8rem + 1.1vw, 1.65rem);
  letter-spacing: .1em;
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: .3rem; white-space: nowrap;
}
.contact__mail:hover { color: var(--gold); }

/* ---------- rails ---------- */

.pagerail {
  display: flex; justify-content: space-between; gap: 1rem; padding-block: 2.4rem 3.4rem;
  font-size: .62rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
}
.pagerail a { color: var(--muted); text-decoration: none; display: inline-flex; gap: .7rem; align-items: center; }
.pagerail a:hover { color: var(--gold); }

.site-foot img { width: 1.35rem; height: auto; opacity: .8; }
.site-foot {
  padding-block: 2.4rem 3.4rem;
  font-size: .62rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; align-items: center;
}

/* ---------- lightbox ---------- */

.lb {
  position: fixed; inset: 0; z-index: 200;
  border: 0; padding: 0; margin: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  background: #0c0b0d; color: #f5f4f6;
  display: grid; grid-template-rows: 1fr auto;
}
.lb::backdrop { background: rgba(8, 7, 9, .95); }
.lb:not([open]) { display: none; }
.lb__stage { position: relative; display: grid; place-items: center; padding: clamp(2.5rem, 6vw, 4rem) clamp(3.5rem, 8vw, 6rem) 1rem; min-height: 0; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb__bar { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; align-items: baseline; padding: 1.3rem clamp(1.25rem, 4vw, 3rem) 1.8rem; border-top: 1px solid rgba(255,255,255,.1); }
.lb__cat { font-size: .6rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: #8b8691; }
.lb__title { font-family: var(--f-display); font-weight: 300; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; }
.lb__desc { font-size: .83rem; color: #8b8691; max-width: 58ch; flex: 1 1 22rem; }
.lb__count { font-family: var(--f-display); font-weight: 300; font-size: .8rem; letter-spacing: .2em; color: #fdc870; margin-left: auto; font-variant-numeric: tabular-nums; }

.lb__nav, .lb__close {
  position: absolute; z-index: 2;
  background: none; border: 1px solid rgba(255,255,255,.2);
  color: #f5f4f6; cursor: pointer; border-radius: 999px;
  width: 2.9rem; height: 2.9rem; display: grid; place-items: center; font-size: 1rem;
  transition: border-color .2s, color .2s;
}
.lb__nav:hover, .lb__close:hover { border-color: #fdc870; color: #fdc870; }
.lb__nav--prev { left: clamp(.6rem, 2vw, 1.8rem); top: 50%; transform: translateY(-50%); }
.lb__nav--next { right: clamp(.6rem, 2vw, 1.8rem); top: 50%; transform: translateY(-50%); }
.lb__close { top: clamp(.9rem, 2vw, 1.6rem); right: clamp(.6rem, 2vw, 1.8rem); }

/* ---------- closing contact row ---------- */
.ctarow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2.5rem;
}

/* ---------- specimen plate: the mark, presented as artwork ---------- */

.specimen {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .specimen { grid-template-columns: 1fr; } }

.specimen__plate {
  position: relative; margin: 0;
  display: grid; place-items: center;
  padding: clamp(3rem, 6vw, 5rem);
  min-height: clamp(22rem, 40vw, 34rem);
  border-right: 1px solid var(--line);
  background-color: var(--surface);
  background-image:
    repeating-linear-gradient(to right,  var(--grid) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, var(--grid) 0 1px, transparent 1px 24px);
}
@media (max-width: 900px) { .specimen__plate { border-right: 0; border-bottom: 1px solid var(--line); } }

/* registration marks, as on a press sheet */
.specimen__plate::before {
  content: ""; position: absolute; inset: clamp(1rem, 2vw, 1.6rem); pointer-events: none;
  background:
    linear-gradient(var(--line-strong) 0 0) left  top    / 1px 20px no-repeat,
    linear-gradient(var(--line-strong) 0 0) left  top    / 20px 1px no-repeat,
    linear-gradient(var(--line-strong) 0 0) right top    / 1px 20px no-repeat,
    linear-gradient(var(--line-strong) 0 0) right top    / 20px 1px no-repeat,
    linear-gradient(var(--line-strong) 0 0) left  bottom / 1px 20px no-repeat,
    linear-gradient(var(--line-strong) 0 0) left  bottom / 20px 1px no-repeat,
    linear-gradient(var(--line-strong) 0 0) right bottom / 1px 20px no-repeat,
    linear-gradient(var(--line-strong) 0 0) right bottom / 20px 1px no-repeat;
}
.specimen__plate img { height: clamp(16rem, 31vw, 27rem); width: auto; position: relative; z-index: 1; }

.specimen__spec {
  padding: clamp(2rem, 3.6vw, 3.2rem);
  display: grid; gap: clamp(1.8rem, 3vw, 2.6rem); align-content: center;
}

.speclist { display: grid; margin: 0; }
.speclist > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 2rem;
  padding: .8rem 0; border-bottom: 1px solid var(--line);
}
.speclist > div:first-child { padding-top: 0; }
.speclist dt {
  font-size: .6rem; font-weight: 500; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted);
}
.speclist dd {
  margin: 0; font-family: var(--f-display); font-weight: 300;
  font-size: .84rem; letter-spacing: .16em; text-transform: uppercase; text-align: right;
}

.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.swatch { display: grid; gap: .55rem; }
.swatch i { display: block; aspect-ratio: 1; border: 1px solid var(--line); }
.swatch span {
  font-size: .6rem; font-weight: 500; letter-spacing: .04em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.specimen__note { font-size: .85rem; color: var(--text-2); max-width: 40ch; }


/* ---------- products: shipped apps and cloud systems ---------- */

.product {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(2.4rem, 4.5vw, 4rem);
  border-top: 1px solid var(--line);
}
.product:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }

.product__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.product__icon { width: 3.4rem; height: auto; border-radius: 22%; border: 1px solid var(--line); flex: none; }
.product__name { font-family: var(--f-display); font-weight: 300; text-transform: uppercase;
  letter-spacing: .1em; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.9rem); line-height: 1.1; }
.product__tag { display: block; font-family: var(--f-body); font-size: .62rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: .45rem; }
.product__body { font-size: .92rem; color: var(--text-2); max-width: 46ch; }
.product__meta { margin-top: 1.1rem; font-size: .6rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.3rem; }
.chips span {
  font-size: .6rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem;
}

.product__cta { margin-top: 1.6rem; }

.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(.7rem, 1.6vw, 1.3rem); }
.shots img {
  width: 100%; height: auto; border-radius: 14px;
  border: 1px solid var(--plate-line); background: var(--plate);
}
@media (max-width: 520px) { .shots { grid-auto-columns: minmax(8rem, 1fr); overflow-x: auto; } }

.sysgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.9rem, 1.8vw, 1.4rem); }
@media (max-width: 780px) { .sysgrid { grid-template-columns: 1fr; } }

.syscard {
  border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  display: grid; gap: .9rem; align-content: start; position: relative;
  transition: border-color .25s;
}
.syscard:hover { border-color: var(--gold); }
.syscard .arw { position: absolute; top: 1.5rem; right: 1.5rem; width: 1.2rem; height: 1.2rem;
  color: var(--muted); transition: color .25s; }
.syscard:hover .arw { color: var(--gold); }
.syscard h3 { font-size: clamp(1rem, .9rem + .5vw, 1.25rem); letter-spacing: .14em; padding-right: 2.5rem; line-height: 1.3; }
.syscard p { font-size: .86rem; color: var(--text-2); }
.syscard .chips { margin-top: .2rem; }

/* app cards inside an accordion strip */
.acc__strip .appcard { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .9rem; min-width: 0; }
.acc__strip .appcard img { width: 100%; height: 100%; object-fit: contain; object-position: top; }
.acc__strip .syscard {
  border-radius: 18px; padding: 1.3rem; align-content: start; gap: .7rem;
}
.acc__strip .syscard .arw { top: 1.25rem; right: 1.25rem; width: 1rem; height: 1rem; }
.acc__strip .syscard h3 { font-size: .92rem; padding-right: 1.9rem; }
.acc__strip .syscard p { font-size: .78rem; line-height: 1.55; }
.acc__strip .syscard .chips { display: none; }

/* ---------- official App Store badge ---------- */

.storebadge { display: inline-block; width: 150px; }
.storebadge svg { width: 100%; height: auto; display: block; }
.storebadge:focus-visible { outline: 1px solid var(--gold); outline-offset: 5px; }

/* ---------- outbound link on a piece ---------- */

.piece__link {
  justify-self: start; margin-top: .2rem;
  font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--line-strong); padding-bottom: .2rem;
}
.piece__link:hover { color: var(--gold); border-bottom-color: var(--gold); }


/* ---- Tiny Trouble game ad ---- */
.gamead { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.2rem, 3vw, 2.6rem); align-items: center;
  text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.gamead:hover { border-color: var(--gold); text-decoration: none; }
.gamead__plate img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.gamead__type { padding: clamp(1.2rem, 3vw, 2.4rem) clamp(1.2rem, 3vw, 2.4rem) clamp(1.2rem, 3vw, 2.4rem) 0; }
.gamead__title { font-family: var(--f-display, inherit); font-weight: 300; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.05; margin: .6rem 0 .9rem; display: flex; gap: .8rem; align-items: center; }
.gamead__title em { font-style: normal; color: var(--gold); }
.gamead__icon { width: 3.2rem; height: 3.2rem; border-radius: 22%; flex: none; }
.gamead__body { max-width: 46ch; margin: 0 0 1.2rem; }
.gamead__btn { display: inline-block; }
.gamead:hover .gamead__btn { background: transparent; color: var(--text); border-color: var(--gold); }
@media (max-width: 920px) { .gamead { grid-template-columns: 1fr; } .gamead__type { padding: 1.2rem; } }
.product__cta .storebadge + .storebadge { margin-left: .6rem; }
