/* Debbie Sibal / shopify. "The site is a Shopify theme editor."
   Dark theme only, one accent (lime), one radius (8px; phone 34px; pins round). */

:root {
  --bg: #0F1110;
  --surface: #161917;
  --surface-2: #1E2220;
  --line: #2B302C;
  --text: #EEF1EA;
  --muted: #9BA39C;
  --lime: #C6F432;
  --lime-ink: #0F1110;
  --focus: #C6F432;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --top: 56px;
  --rail: 232px;
  --gutter: 48px;
  --sec: 120px;
  --radius: 8px;
  --radius-phone: 34px;
  --shadow-frame: 0 30px 80px -30px rgba(0, 0, 0, .6);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-ui: 180ms;
  --store-gap: 48px;

  color-scheme: dark;
}

@media (max-width: 1023.98px) { :root { --gutter: 32px; --sec: 96px; } }
@media (max-width: 767.98px)  { :root { --gutter: 16px; --sec: 72px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top); scrollbar-color: var(--line) var(--bg); }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
body {
  margin: 0;
  padding-top: var(--top);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "opsz" 14, "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--muted); letter-spacing: 0; }
h1, h2, h3, h4, p, dl, dd, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--lime-ink); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: var(--lime-ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.ic { width: 20px; height: 20px; flex: none; fill: currentColor; }
.ic--sm { width: 14px; height: 14px; }
.ic--md { width: 24px; height: 24px; }
.ic--lg { width: 28px; height: 28px; }

.wrap { max-width: 1280px; margin-inline: auto; }

/* ---------- type ---------- */
.h1 {
  font-variation-settings: "opsz" 96, "wdth" 84;
  font-weight: 700;
  font-size: clamp(42px, 5.6vw, 84px);
  line-height: .98;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.h2 {
  font-variation-settings: "opsz" 72, "wdth" 85;
  font-weight: 650;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.lede { margin-top: 16px; font-size: 15px; color: var(--muted); max-width: 60ch; }
.section__head { margin-bottom: 56px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 20px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1;
  font-variation-settings: "opsz" 16, "wdth" 100;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-ui) ease, border-color var(--t-ui) ease, color var(--t-ui) ease, transform 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn--lime { background: var(--lime); color: var(--lime-ink); }
.btn--lime:hover { background: #D4FA5C; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted); background: var(--surface); }
.btn--sm { height: 36px; padding: 0 12px; font-size: 14px; gap: 8px; }
.btn--sm .ic { width: 16px; height: 16px; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--top);
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px 0 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.lockup__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.lockup__name {
  font-weight: 700; font-size: 18px; letter-spacing: -.01em; line-height: 1;
  font-variation-settings: "opsz" 24, "wdth" 100; white-space: nowrap;
}
.lockup__tag { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--lime); margin-left: -4px; white-space: nowrap; }
.topbar__section { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__section::before { content: "·"; margin: 0 10px 0 0; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.lanes { position: relative; }
.lanes__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 10px; border-radius: var(--radius);
  font-size: 13px; color: var(--text); text-decoration: none;
  background: transparent; border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--t-ui) ease;
}
.lanes__btn:hover, .lanes__btn[aria-expanded="true"] { background: var(--surface-2); }
.lanes__btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.lanes__btn .ic { transition: transform var(--t-ui) ease; }
.lanes__pop {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 384px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-frame);
  opacity: 0; transform: translateY(-6px);
  transition: opacity var(--t-ui) ease, transform var(--t-ui) var(--ease-out);
}
.lanes__pop.is-open { opacity: 1; transform: none; }
.lanes__pop[hidden] { display: none; }
.lanes__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 8px 12px; border-radius: 6px;
  font-size: 15px; text-decoration: none; color: var(--text);
}
.lanes__row:hover { background: var(--surface-2); }
.lanes__row[aria-current] { color: var(--muted); }
.lanes__row code { white-space: nowrap; }

@media (min-width: 600px) and (max-width: 1023.98px) { .topbar__section { display: block; } }
@media (max-width: 479.98px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .btn__label-sm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .topbar .btn--sm { width: 36px; padding: 0; }
  .topbar .lockup__name { font-size: 16px; }
  .topbar .lockup__tag { font-size: 13px; }
  .lanes__btn { padding: 0 6px; }
  .topbar__actions { gap: 4px; }
  .lanes__pop { position: fixed; left: 12px; right: 12px; top: calc(var(--top) + 8px); width: auto; }
}

/* ---------- shell: rail + canvas ---------- */
.rail { display: none; }
.canvas { min-width: 0; }
@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
  .rail {
    display: flex; flex-direction: column; justify-content: space-between;
    position: sticky; top: var(--top); height: calc(100vh - var(--top));
    padding: 20px 12px 20px;
    background: var(--surface); border-right: 1px solid var(--line);
  }
}
.rail__list { display: grid; gap: 2px; }
.rail__item {
  display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px;
  height: 40px; padding: 0 10px 0 12px; border-radius: 6px;
  font-size: 14px; text-decoration: none; color: var(--muted);
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.rail__item .ic { width: 18px; height: 18px; }
.rail__item code { font-size: 12px; }
.rail__item:hover { background: var(--surface-2); color: var(--text); }
.rail__item.is-active { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--lime); }
.rail__foot { padding: 0 12px; }

/* ---------- sections ---------- */
.section { padding: var(--sec) var(--gutter); }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { padding: 0 var(--gutter); }
.hero__inner { padding: 48px 0 56px; }
.hero .h1 { max-width: 16ch; }
.hero__sub { margin-top: 24px; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.hero__row > * { min-width: 0; }
.hero__sub { font-size: 17px; max-width: 42ch; color: var(--text); }
.hero__ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.br-wide { display: none; }

/* desktop: the H1 lives in the copy column and the store frame sits level with it, so the real store
   is the biggest thing in the first screen and there is no void beside or under the copy. */
@media (min-width: 1024px) {
  .br-wide { display: inline; }
  .hero .h1 { max-width: none; font-size: clamp(40px, 4.4vw, 68px); line-height: 1; }
  .hero__inner { padding: 48px 0 72px; }
  .hero__row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
  .hero__copy { padding-bottom: 24px; }
  .hero__sub { margin-top: 28px; }
}
@media (min-width: 1280px) {
  .hero__row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
}
/* 1024-1279 laptops: slimmer rail, wider frame, spec values on one line */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  :root { --rail: 200px; }
  .rail__item { grid-template-columns: 18px 1fr; }
  .rail__item code { display: none; }
  .hero__row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; }
}

/* browser frame */
.browser {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-frame);
  overflow: hidden;
}
.browser__chrome {
  height: 40px; display: flex; align-items: flex-end; gap: 14px;
  padding: 0 0 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.browser__dots { display: flex; gap: 6px; align-self: center; flex: none; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.tabs {
  display: flex; align-items: flex-end; gap: 2px; min-width: 0; flex: 1;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; max-width: 180px; height: 32px; padding: 0 14px;
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--surface-2); border: 0; border-top: 2px solid transparent;
  border-radius: 6px 6px 0 0; text-decoration: none; cursor: pointer;
  scroll-snap-align: start;
  transition: color 150ms ease, background-color 150ms ease;
}
.tab { display: block; line-height: 30px; position: relative; }
.tab:hover { color: var(--text); }
.tab.is-current { background: var(--bg); color: var(--text); border-top-color: var(--lime); }
.tab:focus-visible { outline-offset: -2px; }
/* store-section tabs jump down the page (hero tabs swap in place) */
.browser--store .tab { display: inline-flex; align-items: center; gap: 6px; max-width: 300px; }
.tab__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* JS off: the hero tabs can't swap panels, so only the current one reads as live */
.no-js #hero-browser .tab:not(.is-current) { pointer-events: none; opacity: .55; }
.browser--store .tab:not(.is-current) { color: var(--muted); }
.browser--store .tab:not(.is-current):hover { color: var(--text); }
.browser--store .tab:not(.is-current):hover .tab__t { text-decoration: underline; text-underline-offset: 3px; }

.browser__body { position: relative; isolation: isolate; aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; }
.hpanel { position: absolute; inset: 0; }
.hpanel.is-active { z-index: 1; }
.hpanel[hidden] { display: none; }
.hpanel img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 767.98px) {
  .browser__body { aspect-ratio: 4 / 5; }
  .hero-callout__pin { top: calc(41px + (100vw - 2 * var(--gutter)) * 1.25 * .86) !important; }
}

.hero__visual { position: relative; }

/* the hero callout: pin on the frame, chip outside the bottom-left edge */
.hero-callout { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-callout[hidden] { display: none; }
.hero-callout__pin { position: absolute; left: 22%; top: calc(40px + (100% - 40px) * .88); width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.pin-dot, .pin-ring { position: absolute; inset: 0; border-radius: 50%; }
.pin-dot { background: var(--lime); box-shadow: 0 0 0 3px rgba(15, 17, 16, .55); }
.pin-ring { border: 2px solid var(--lime); opacity: 0; }
.hero-callout__line {
  position: absolute; left: 22%; width: 1px; margin-left: -.5px;
  top: calc(40px + (100% - 40px) * .88 + 8px); bottom: 26px;
  background: var(--lime); transform-origin: top;
}
.hero-callout__chip {
  position: absolute; left: -32px; top: calc(100% - 26px);
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14px; line-height: 1.35; white-space: nowrap;
}
.hero-callout__chip code { color: var(--lime); }
@media (max-width: 1023.98px) {
  .hero-callout { position: static; }
  /* % of height would include the chip here, so place the pin from the frame width instead */
  .hero-callout__pin { top: calc(41px + (100vw - 2 * var(--gutter)) * .625 * .7); }
  .hero-callout__line { display: none; }
  .hero-callout__chip { position: static; margin-top: 16px; }
}

/* spec bar */
.specbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.specbar__cell { padding: 24px 24px 28px 0; }
.specbar__cell + .specbar__cell { padding-left: 24px; border-left: 1px solid var(--line); }
.specbar dt { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); }
.specbar dd { font-variant-numeric: tabular-nums;
  margin-top: 8px; display: inline-block;
  font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -.015em;
  font-variation-settings: "opsz" 32, "wdth" 92;
}
.specbar dd::after { content: ""; display: block; width: 24px; height: 2px; margin-top: 10px; background: var(--lime); }
@media (max-width: 767.98px) {
  .specbar { grid-template-columns: 1fr 1fr; }
  .specbar__cell, .specbar__cell + .specbar__cell { padding: 20px 12px 22px 0; border-left: 0; }
  .specbar__cell:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .specbar__cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .specbar dd { font-variant-numeric: tabular-nums; font-size: 22px; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .specbar dd { font-size: clamp(19px, 1.9vw, 26px); }
  .specbar__cell + .specbar__cell { padding-left: 16px; }
}

/* hero tabs: a lime dot marks the stores Debbie built */
.tab__dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--lime); vertical-align: 1px; }

/* ---------- stores (signature) ---------- */
.stores__group { margin-bottom: 8px; }
.stores__gtitle {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  font-size: 22px; font-weight: 650; line-height: 1.15; letter-spacing: -.015em;
  font-variation-settings: "opsz" 32, "wdth" 92;
}
.stores__gtitle .chip-built { margin-left: 0; }
.stores__gsub { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 60ch; }
.stores__group--worked, .stores__group--more { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); margin-bottom: 32px; }
@media (max-width: 1023.98px) { .stores__group { margin-bottom: 24px; } .stores__group--worked, .stores__group--more { margin-top: 48px; } }
.wstore__name .chip-built { margin-left: 8px; font-size: 11px; padding: 1px 6px; }

.stores__list { display: grid; }
.store {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "meta" "callouts" "frames";
  gap: 24px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.store:first-child { border-top: 0; padding-top: 0; }
.store__frames { grid-area: frames; position: relative; min-width: 0; }
.store__meta { grid-area: meta; }
.callouts { grid-area: callouts; }

.store__name { font-size: 32px; font-weight: 650; line-height: 1.05; letter-spacing: -.02em; font-variation-settings: "opsz" 48, "wdth" 90; }
.store__link {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 13px; color: var(--muted); text-decoration: none;
  overflow-wrap: anywhere;
}
.store__link:hover { color: var(--text); }
.chip-built { display: inline-block; margin-left: 10px; vertical-align: middle; padding: 2px 8px; border: 1px solid var(--lime); border-radius: var(--radius); font-family: var(--mono); font-size: 12px; color: var(--text); }

.kv { margin-top: 20px; display: grid; gap: 10px; }
.kv > div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: baseline; }
.kv dt { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); }
.kv dd { font-size: 15px; line-height: 1.45; }

.callouts { display: grid; gap: 8px; align-content: start; }
.callout {
  position: relative;
  display: grid; gap: 2px;
  padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.callout code { transition: color 200ms ease; }
.callout__note { font-size: 15px; line-height: 1.4; }
.callout__leader { display: none; }
.callout.is-active code { color: var(--lime); }
/* inactive = colour, not opacity (keeps WCAG AA): note muted (~7:1 on surface), full opacity */
.stores.is-scrub .callout:not(.is-active) .callout__note { color: var(--muted); }
.callout__note { transition: color 200ms ease; }
.callout.is-active { border-color: #3a4138; }

/* frames: base = scrollable (JS off / reduced motion) */
.frame { position: relative; overflow-y: auto; overscroll-behavior: contain; contain: layout paint; background: var(--bg); }
.frame:focus-visible { outline-offset: -3px; }
.shot { position: relative; }
.shot img { width: 100%; height: auto; }
.page { position: relative; }
/* the seam between a store's homepage and its product page, inside the same screenshot column */
.page__break {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 10px; background: var(--surface-2); border-block: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--lime); text-align: center;
}
.page__break code { color: var(--muted); }
.phone .page__break { padding: 8px 6px; font-size: 11px; }
.phone .page__break code { display: none; }
.pin { position: absolute; top: calc(var(--y) * 100%); left: var(--x); width: 12px; height: 12px; margin: -6px 0 0 -6px; }

.browser--store { display: none; }
.phone {
  width: 280px; max-width: calc(100vw - 32px); height: 560px; margin: 0 auto;
  padding: 8px; border-radius: var(--radius-phone);
  background: #070807; border: 1px solid var(--line);
  box-shadow: var(--shadow-frame);
}
.frame--phone { height: 100%; border-radius: 26px; }

/* tablet: phone left, meta + callouts right (no empty bands either side of a centred phone) */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .store {
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "frames meta" "frames callouts";
    column-gap: 40px; row-gap: 24px;
  }
  .phone { margin: 0; }
}

/* phone: the callouts sit in one compact chip row right above the phone, so the lit chip and the
   scrubbing screenshot share one screen */
@media (max-width: 767.98px) {
  .store { gap: 16px; }
  .store .kv { margin-top: 14px; }
  .callouts {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .callouts::-webkit-scrollbar { display: none; }
  .callout { flex: none; padding: 8px 12px; white-space: nowrap; }
  .callout__note { font-size: 14px; }
}

/* a store with no mobile capture (Kooki Pet): below 1024 its desktop frame takes the phone's place */
@media (max-width: 1023.98px) {
  .store--nophone { grid-template-columns: minmax(0, 1fr); grid-template-areas: "meta" "callouts" "frames"; }
  .store--nophone .browser--store { display: block; }
  .store--nophone .frame--desk { height: 520px; }
}
@media (min-width: 768px) and (max-width: 1023.98px) { .store--nophone .frame--desk { height: 600px; } }

/* stores I've worked on: one compact row of phones */
.wstores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.wstore { min-width: 0; position: relative; } /* keeps the sr-only link text inside the sideways scroller */
.phone--sm { width: 100%; max-width: 240px; height: 470px; margin: 0 0 20px; padding: 7px; border-radius: 30px; }
.phone--sm .frame--phone { border-radius: 23px; }
.wstore__name { font-size: 20px; font-weight: 650; line-height: 1.15; letter-spacing: -.01em; font-variation-settings: "opsz" 24, "wdth" 92; }
.wstore .store__link { margin-top: 4px; }
.wstore__meta { margin-top: 10px; }
.wstore__role { margin-top: 6px; font-size: 15px; line-height: 1.45; }
.wstores.is-scrub .frame { overflow: hidden; }
/* below 1024: one sideways row (own scroller), so all four phones are on screen while they scrub */
@media (max-width: 1023.98px) {
  .wstores {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 280px; gap: 24px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  }
  .wstores::-webkit-scrollbar { display: none; }
  .wstore { scroll-snap-align: start; }
  .phone--sm { max-width: none; height: 500px; }
}
@media (max-width: 767.98px) { .wstores { grid-auto-columns: 72vw; gap: 16px; } }

.stores__end { margin-top: 56px; font-size: 15px; color: var(--muted); max-width: 70ch; }
@media (max-width: 1023.98px) { .stores__end { margin-top: 32px; } }
.stores__end a { color: var(--text); text-underline-offset: 3px; }
.stores__end a:hover { text-decoration-color: var(--lime); }

@media (min-width: 1024px) {
  .store {
    grid-template-columns: 64fr 36fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "frames meta" "frames callouts";
    column-gap: var(--store-gap); row-gap: 28px;
    height: calc(100vh - var(--top));
    min-height: 600px;
    padding: 32px 0 64px;
  }
  .store:first-child { padding-top: 32px; }
  .store__frames { display: flex; flex-direction: column; min-height: 0; }
  .browser--store { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .frame--desk { flex: 1; min-height: 0; }
  .store .phone {
    position: absolute; left: -40px; bottom: -32px; z-index: 2;
    width: 200px; height: 420px; margin: 0; padding: 7px; border-radius: var(--radius-phone);
  }
  .store .frame--phone { border-radius: 27px; }
  .store__meta { padding-top: 4px; }
  .callout__leader {
    display: block; position: absolute; right: 100%; top: 50%;
    width: calc(var(--store-gap) + 1px); height: 1px; background: var(--lime);
    transform: scaleX(0); transform-origin: left;
  }
  .stores.is-scrub .callout.is-active .callout__leader { transform: scaleX(1); }
}

/* JS + motion on: frames are windows, not scroll boxes */
.stores.is-scrub .frame { overflow: hidden; }
.stores.is-scrub .shot { will-change: auto; }
.stores.is-scrub .store.is-live .shot { will-change: transform; }

/* ---------- product photos ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pcard {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0;
  border: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  cursor: pointer;
}
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__b { opacity: 0; transition: opacity 200ms ease; }
.pcard:hover .pcard__b, .pcard:focus-visible .pcard__b, .pcard[aria-pressed="true"] .pcard__b { opacity: 1; }
.pcard:focus-visible { outline-offset: 3px; }
.pcard__type { margin-top: 12px; }
.hint { margin-top: 24px; font-size: 14px; color: var(--muted); }
@media (max-width: 1023.98px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .pgrid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78vw;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .pgrid::-webkit-scrollbar { display: none; }
  .pgrid__item { scroll-snap-align: start; }
}

/* ---------- toolbox ---------- */
.toolbox__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1024px) { .toolbox__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } }
.tool__head { display: flex; align-items: center; gap: 12px; }
.tool__head .ic { color: var(--muted); }
.tool__name { font-size: 20px; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; font-variation-settings: "opsz" 24, "wdth" 95; }
.tool--featured .tool__name { font-size: 28px; font-variation-settings: "opsz" 40, "wdth" 90; }
.tool__desc { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 60ch; }
.tool--featured .tool__desc { font-size: 17px; color: var(--text); }
.chip { display: inline-block; margin-left: 6px; vertical-align: 2px; padding: 2px 8px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.csv { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.csv__scroll { overflow-x: auto; }
.csv__table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; perspective: 600px; }
.csv__table th, .csv__table td { text-align: left; padding: 11px 16px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.csv__table th { font-weight: 500; color: var(--muted); font-size: 12px; background: var(--surface-2); }
.csv__table tbody tr:last-child td { border-bottom: 0; }
.csv__table td { color: var(--text); transition: color 300ms ease; }
.csv__table td.is-flash { color: var(--lime); transition: none; }
.csv__cell { display: inline-block; }
.csv__table td + td, .csv__table th + th { border-left: 1px solid var(--line); }
.csv figcaption, .csv > figcaption { padding: 10px 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.csv__toggle { margin-top: 16px; }
@media (max-width: 767.98px) {
  .csv__table { font-size: 12px; }
  .csv__table th, .csv__table td { padding: 10px; }
  .csv__table th { white-space: normal; }
}

.tools { display: grid; align-content: start; }
.tool:not(.tool--featured) { display: grid; grid-template-columns: 24px 1fr; gap: 16px; padding: 24px 0; }
.tools .tool:first-child { padding-top: 4px; }
.tools .tool + .tool { border-top: 1px solid var(--line); }
.tools .ic { color: var(--muted); margin-top: 1px; }

.others { margin-top: 72px; }
.others__label { margin-bottom: 20px; }
.others__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.others__list li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; padding: 24px 24px 8px 0; }
.others__list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.others__list .ic { color: var(--muted); margin-top: 2px; }
.others__name { font-size: 16px; font-weight: 600; line-height: 1.3; font-variation-settings: "opsz" 18, "wdth" 100; }
.others__list p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 767.98px) {
  .others__list { grid-template-columns: 1fr; }
  .others__list li, .others__list li + li { padding: 20px 0; border-left: 0; }
  .others__list li + li { border-top: 1px solid var(--line); }
}

/* ---------- commit graph ---------- */
.graph { display: block; width: 100%; height: auto; overflow: visible; }
.graph--h { display: none; }
.graph--v { max-width: 520px; }
@media (min-width: 1280px) { .graph--h { display: block; } .graph--v { display: none; } }
/* 1024-1279: heading left (sticky), vertical graph right, so the canvas has no empty half */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .history .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: start; }
  .history .section__head { position: sticky; top: calc(var(--top) + 48px); margin-bottom: 0; }
  .graph--v { max-width: none; }
}
.graph .g-main { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; }
.graph .g-branch { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.graph .g-dot { fill: var(--bg); stroke: var(--muted); stroke-width: 2; }
.graph .g-dot--main { stroke: var(--lime); }
.graph .g-dot--head { fill: var(--lime); stroke: var(--lime); }
.graph .g-tip { fill: var(--muted); }
.graph text { font-family: var(--font); }
.graph .g-date, .graph .g-bname, .graph .g-ticks text { font-family: var(--mono); font-size: 12px; font-weight: 500; fill: var(--muted); }
.graph .g-mainlabel { font-family: var(--mono); font-size: 12px; font-weight: 500; fill: var(--lime); }
.graph .g-role { font-size: 16px; font-weight: 600; fill: var(--text); font-variation-settings: "opsz" 18, "wdth" 100; }
.graph .g-note { font-size: 14px; fill: var(--muted); }
.graph .g-ticks text { text-anchor: middle; }
.graph .g-ticks line { stroke: var(--line); stroke-width: 1; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.contact__photo { width: 70vw; max-width: 360px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); margin-inline: auto; }
.contact__sub { margin: 16px 0 28px; color: var(--muted); max-width: 46ch; }
.kv--contact { margin-top: 40px; grid-template-columns: 1fr; gap: 16px 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.kv--contact > div { grid-template-columns: 88px minmax(0, 1fr); }
.kv--contact dd { font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.kv--contact a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color var(--t-ui) ease; }
.kv--contact a:hover { border-color: var(--lime); }
@media (min-width: 768px) {
  .contact__grid { grid-template-columns: 360px minmax(0, 1fr); gap: 64px; }
  .contact__photo { width: 100%; margin: 0; }
}
@media (min-width: 768px) and (max-width: 1279.98px) {
  .contact__grid { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 40px; }
}
@media (min-width: 1280px) { .kv--contact { grid-template-columns: 1fr 1fr; } }

/* ---------- footer ---------- */
.footer { padding: 96px var(--gutter) 48px; border-top: 1px solid var(--line); background: var(--surface); }
.lockup--xl .lockup__name { font-size: 40px; letter-spacing: -.02em; font-variation-settings: "opsz" 48, "wdth" 90; }
.lockup--xl .lockup__tag { font-size: 20px; margin-left: 0; }
.footer__lanes { margin-top: 56px; }
.footer__label { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.lanes-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.lanes-list a {
  display: flex; align-items: center; min-height: 56px; padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; font-size: 16px;
  transition: color var(--t-ui) ease;
}
.lanes-list a:hover { color: var(--lime); }
.lanes-list a[aria-current] { color: var(--muted); }
.footer__row { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 15px; }
.footer__row a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.footer__row a .ic { width: 18px; height: 18px; color: var(--muted); }
.footer__row a:hover { color: var(--lime); }
.footer__copy { margin-left: auto; color: var(--muted); font-size: 14px; }
@media (max-width: 1023.98px) { .lanes-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767.98px) {
  .lanes-list { grid-template-columns: 1fr; }
  .lockup--xl .lockup__name { font-size: 34px; }
  .footer__copy { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
