/* Inara Creative Studio — shop
 * Tokens come from system.css. Nothing here redefines a global token. */

.shop-body {
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --line-hover: #3A3A3A;
  --gutter: 16px;
  font-variant-numeric: tabular-nums;
}

/* The one analog element: grain at ~3% over everything */
.shop-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.03;
  pointer-events: none;
  z-index: 200;
}

.shop-body :focus-visible {
  outline: 2px solid var(--lotus);
  outline-offset: 2px;
}

.shop-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Feature video (the hero: proof first) ---------- */
.feature {
  display: grid;
  gap: 24px;
  padding: 32px 0 48px;
}
.feature-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  display: block;
}
.feature-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}
.feature-play:hover img { transform: scale(1.02); opacity: 1; }
.feature-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--lotus);
  color: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.feature-play-icon svg { margin-left: 3px; }
.feature-play:hover .feature-play-icon { background: var(--lotus-dim); }
.feature-play:active .feature-play-icon { transform: scale(0.95); }
.feature-play:focus-visible { outline-offset: -4px; }
.feature-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.feature-meta { display: grid; gap: 8px; justify-items: start; }
.feature-kicker { font-size: 13px; color: var(--ghost); margin: 0; }
.feature-title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--white);
  margin: 0;
}
.feature-sub { font-size: 16px; color: var(--paper); margin: 4px 0 0; }
.feature-credits { font-size: 13px; color: var(--ghost); margin: 0 0 8px; max-width: 40ch; }
.feature-link,
.tool-link {
  display: inline-block;
  font-size: 14px;
  color: var(--paper);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color var(--transition-fast);
}
.feature-link:hover,
.tool-link:hover { border-color: var(--paper); }

.work-strip { margin-bottom: 48px; }
.work-strip .section-title { margin-bottom: 16px; }

/* ---------- Shop intro ---------- */
.shop-hero {
  padding: 0 0 32px;
  max-width: 720px;
}
.shop-hero-line {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 12px;
}
.shop-hero-sub {
  color: var(--ghost);
  font-size: 16px;
  margin: 0;
  max-width: 56ch;
}
.shop-hero-note {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 0;
}
.shop-hero-note a,
.form-fineprint a {
  color: var(--paper);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition-fast);
}
.shop-hero-note a:hover,
.form-fineprint a:hover { border-color: var(--paper); }

/* ---------- Layout ---------- */
.shop-layout { display: block; }
.shop-content { min-width: 0; }

/* ---------- Buttons ---------- */
.btn-primary,
.btn-outline,
.btn-add {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.btn-primary {
  background: var(--lotus);
  color: var(--void);
  font-weight: 600;
}
.btn-primary:hover { background: var(--lotus-dim); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-primary:active:not(:disabled) { transform: scale(0.97); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--paper);
}
.btn-outline:hover { border-color: var(--ghost); }
.btn-outline:active { transform: scale(0.97); }

.btn-block { width: 100%; }

.btn-add {
  border: 1px solid var(--border);
  color: var(--paper);
  min-width: 112px;
}
.btn-add:hover { border-color: var(--ghost); }
.btn-add.is-pressed { transform: scale(0.95); }
.btn-add.is-added,
.btn-add.is-in-cart {
  border-color: var(--lotus);
  color: var(--lotus);
}

/* ---------- Book a call ---------- */
.book-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
}
.book-call-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 4px;
  line-height: 1.35;
}
.book-call-sub {
  color: var(--ghost);
  font-size: 14px;
  margin: 0;
}

/* ---------- Sections & shelves ---------- */
.shelf,
.shop-section { margin-bottom: 48px; }

.section-title,
.shelf-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 8px;
  line-height: 1.3;
}
.section-sub,
.shelf-sub {
  color: var(--ghost);
  font-size: 14px;
  margin: 0 0 24px;
  max-width: 60ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ---------- Product card ---------- */
.card {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast);
}
.card:hover { border-color: var(--line-hover); }
.card.is-in-cart { border-color: var(--lotus); }

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card-name {
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  margin: 0;
  line-height: 1.3;
}
.card-summary {
  color: var(--paper);
  font-size: 14px;
  margin: 0;
}
.card-includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.card-includes li {
  color: var(--ghost);
  font-size: 13px;
  padding-left: 16px;
  position: relative;
  line-height: 1.45;
}
.card-includes li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--muted);
}
.card-note {
  font-size: 13px;
  color: var(--ghost);
  margin: 0;
  padding: 8px 12px;
  border-left: 1px solid var(--border);
}

.tiers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tier {
  font-size: 13px;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  color: var(--ghost);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.tier:hover { border-color: var(--line-hover); color: var(--paper); }
.tier[aria-checked="true"] {
  border-color: var(--lotus);
  color: var(--paper);
}
.tier-delta { color: var(--muted); margin-left: 4px; }
.tier[aria-checked="true"] .tier-delta { color: var(--lotus); }

.card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.card-foot .btn-add { width: 100%; }
.card-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.price {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
}
.price-was {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  margin-right: 8px;
}
.price-from {
  color: var(--ghost);
  font-size: 13px;
  font-weight: 400;
  margin-right: 6px;
}
.price-unit {
  color: var(--ghost);
  font-size: 13px;
  font-weight: 400;
  margin-left: 4px;
}
.card-meta {
  color: var(--ghost);
  font-size: 12px;
  line-height: 1.3;
}

/* ---------- Media + placeholder ---------- */
.media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
/* Optimised images: a blurred preview paints with the first frame, the real
   file fades in over it once decoded (js/image-manifest.js) */
.media picture, .feature-play picture { display: contents; }
.media.has-lqip::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: var(--lqip) center / cover no-repeat;
  filter: blur(14px) saturate(1.1);
}
.media.has-lqip img { opacity: 0; transition: opacity 450ms ease; }
.media.has-lqip.is-loaded img { opacity: 1; }
.ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 16px;
  background: var(--ink);
}
.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.07;
}
.ph::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.ph-name {
  position: relative;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.1;
  color: var(--paper);
  padding: 0 8px;
}
.ph-path {
  position: relative;
  font-size: 11px;
  color: var(--muted);
  padding: 0 8px 8px;
  word-break: break-all;
}

/* ---------- Tech consultancy ---------- */
.consult {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 16px;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.consult .media {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.consult-body { display: grid; gap: 12px; justify-items: start; }
.consult-text { color: var(--ghost); font-size: 14px; margin: 0; max-width: 60ch; }
.consult .section-title { margin: 0; }

/* ---------- Portfolio strip ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.portfolio-tile {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
}
.portfolio-tile .media { border-bottom: 0; aspect-ratio: 4 / 5; }
.consult .media { aspect-ratio: 4 / 5; }
.portfolio-tile .ph-name { font-size: 18px; }
@media (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .feature {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    align-items: end;
    gap: 32px;
    padding: 48px 0;
  }
}
.portfolio-tile figcaption {
  font-size: 13px;
  color: var(--ghost);
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.testimonial {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--ink);
}
.testimonial p { margin: 0 0 12px; color: var(--paper); }
.testimonial footer { font-size: 13px; color: var(--ghost); }

/* ---------- Cart ---------- */
.cart {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  outline: none;
}
.cart-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.cart-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  color: var(--white);
}
.cart-count-label {
  font-size: 13px;
  color: var(--ghost);
  margin-right: auto;
  display: inline-block;
}
.cart-count-label.is-bumped { animation: tick 240ms ease; }
@keyframes tick {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-3px); color: var(--lotus); }
  100% { transform: translateY(0); }
}
.cart-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--ghost);
}
.cart-close:hover { color: var(--paper); }

.cart-view {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  border: 0;
  min-width: 0;
}
.cart-view[hidden] { display: none; }

.cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.cart-line-name { font-size: 14px; color: var(--paper); }
.cart-line-tier { color: var(--ghost); font-size: 13px; }
.cart-line-price { font-size: 14px; color: var(--paper); font-variant-numeric: tabular-nums; text-align: right; }
.cart-line-remove {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast);
}
.cart-line-remove:hover { color: var(--paper); }

.cart-empty {
  font-size: 14px;
  color: var(--ghost);
  margin: 0;
}

.cart-nudge,
.cart-monthly {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13px;
  color: var(--paper);
  display: grid;
  gap: 8px;
}
.cart-nudge[hidden], .cart-monthly[hidden] { display: none; }
.cart-nudge p,
.cart-monthly p { margin: 0; }
.cart-nudge .quiet,
.cart-monthly .quiet { color: var(--ghost); }
.cart-nudge button { justify-self: start; font-size: 13px; min-height: 36px; padding: 8px 12px; }

.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  font-size: 13px;
  color: var(--paper);
  min-height: 36px;
}
.switch-track {
  flex: none;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  border: 1px solid var(--muted);
  position: relative;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ghost);
  transition: transform var(--transition-base), background var(--transition-fast);
}
.switch[aria-checked="true"] .switch-track { border-color: var(--lotus); }
.switch[aria-checked="true"] .switch-track::after { transform: translateX(16px); background: var(--lotus); }

.cart-totals {
  margin: 0;
  display: grid;
  gap: 8px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.total-row[hidden] { display: none; }
.total-row dt { font-size: 14px; color: var(--ghost); }
.total-row dd { margin: 0; text-align: right; }
.total-row-quiet dd { font-size: 13px; color: var(--ghost); }

/* Martian Mono only for real numeric readouts */
.readout {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0;
}
.readout-lg { font-size: 22px; font-weight: 400; }
.readout-unit { color: var(--ghost); font-size: 13px; margin-left: 4px; }

.cart-ready {
  font-size: 13px;
  color: var(--ghost);
  display: grid;
  gap: 4px;
}
.cart-ready[hidden] { display: none; }
.cart-ready .readout { color: var(--lotus); }

.cart-fineprint {
  font-size: 12px;
  color: var(--muted);
  margin: -4px 0 0;
}

.toast {
  margin: 0 16px 16px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.toast[hidden] { display: none; }
.toast-undo {
  color: var(--lotus);
  font-weight: 500;
  padding: 4px 8px;
  min-height: 32px;
}

/* ---------- Changing an order + past orders ---------- */
.cart-editing {
  border: 1px solid var(--lotus-dim);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13px;
  color: var(--paper);
  display: grid;
  gap: 4px;
}
.cart-editing[hidden] { display: none; }
.cart-editing p { margin: 0; }
.cart-editing .readout { font-size: 13px; color: var(--lotus); }

.my-orders {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: grid;
  gap: 8px;
}
.my-orders[hidden] { display: none; }
.my-orders-title { font-size: 15px; font-weight: 500; color: var(--white); margin: 0; }
.my-orders-note { font-size: 12px; color: var(--ghost); margin: 0 0 4px; }
.my-orders-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.my-order {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: grid;
  gap: 4px;
}
.my-order.is-editing { border-color: var(--lotus); }
.my-order-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.my-order-head .readout { font-size: 13px; }
.my-order-date { font-size: 12px; color: var(--ghost); }
.my-order-items { font-size: 13px; color: var(--paper); margin: 0; }
.my-order-meta { font-size: 12px; color: var(--ghost); margin: 0; }
.my-order-change { justify-self: start; margin-top: 4px; min-height: 36px; padding: 8px 12px; font-size: 13px; }

/* ---------- Checkout ---------- */
.steps { display: flex; gap: 4px; }
.step-dot {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  transition: background var(--transition-base);
}
.step-dot.is-done { background: var(--lotus); }
.step-label { font-size: 12px; color: var(--ghost); margin: -8px 0 0; }

.step {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  min-width: 0;
}
.step[hidden] { display: none; }
.step-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  padding: 0;
  margin-bottom: 4px;
}

.field { display: grid; gap: 4px; }
.field label { font-size: 13px; color: var(--paper); }
.field .optional { color: var(--muted); margin-left: 4px; }
.field input,
.field textarea {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--paper);
  transition: border-color var(--transition-fast);
}
.field textarea { min-height: 64px; resize: vertical; line-height: 1.45; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--lotus-dim); }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input[type="date"] { color-scheme: dark; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 12px; color: var(--error); margin: 0; }

.brief-item {
  display: grid;
  gap: 12px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--border);
}
.brief-item:last-child { border-bottom: 0; }
.brief-item-name { font-size: 14px; font-weight: 500; color: var(--lotus); margin: 0; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.review-block { display: grid; gap: 8px; font-size: 13px; }
.review-block + .review-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.review-row { display: flex; justify-content: space-between; gap: 12px; }
.review-row span:first-child { color: var(--ghost); }
.review-row span:last-child { text-align: right; color: var(--paper); overflow-wrap: anywhere; }

.form-error { font-size: 13px; color: var(--error); margin: 0; }
.form-fineprint { font-size: 12px; color: var(--ghost); margin: 0; line-height: 1.5; }
.form-fineprint[hidden] { display: none; }

/* ---------- FAQ teaser ---------- */
.faq-teaser-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.faq-teaser-list a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--ink);
  font-size: 14px;
  color: var(--paper);
  transition: border-color var(--transition-fast);
}
.faq-teaser-list a:hover { border-color: var(--line-hover); }
.form-error[hidden] { display: none; }

.step-nav { display: flex; gap: 8px; }
.step-nav .btn-primary { flex: 1; }

.sent-title {
  font-family: var(--ff-body);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  margin: 8px 0 0;
}
.sent-body { color: var(--paper); margin: 0; font-size: 14px; }
.sent-ref { color: var(--ghost); margin: 0; font-size: 13px; }
.sent-ref .readout { font-size: 13px; color: var(--paper); }

/* ---------- Mobile cart bar + sheet ---------- */
.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--ink);
  border-top: 1px solid var(--border);
}
.cart-bar-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-bar-count { font-size: 12px; color: var(--ghost); }
.cart-bar .readout { font-size: 18px; }
.cart-bar .btn-primary { min-width: 120px; }

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  z-index: 110;
}
.cart-backdrop[hidden] { display: none; }

@media (max-width: 1023px) {
  .shop-body { padding-bottom: 88px; }

  .cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    max-height: 88vh;
    max-height: 88dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 0;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform var(--transition-slow), visibility 0s linear 280ms;
  }
  .cart.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform var(--transition-slow), visibility 0s;
  }
  .cart-head { position: sticky; top: 0; background: var(--ink); z-index: 1; }
  .cart-close { display: inline-flex; }
}

@media (min-width: 1024px) {
  .shop-main { padding: 0 48px; }
  .shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
    align-items: start;
  }
  .cart {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
  .cart-bar,
  .cart-backdrop { display: none !important; }
}

@media (max-width: 640px) {
  .book-call { flex-direction: column; align-items: stretch; padding: 16px; }
  .book-call .btn-outline { width: 100%; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: 1fr; }
  .consult { grid-template-columns: 1fr; }
  .consult .media { max-width: 220px; }
  .site-header { padding: 24px var(--gutter); }
}

/* ---------- FAQ, terms, privacy ---------- */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
}
.doc-back { margin: 0 0 32px; font-size: 13px; }
.doc-back a { color: var(--ghost); transition: color var(--transition-fast); }
.doc-back a:hover { color: var(--paper); }
.doc-title {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 12px;
}
.doc-lede { color: var(--ghost); font-size: 16px; margin: 0 0 16px; }
.doc-draft {
  font-size: 13px;
  color: var(--paper);
  margin: 0 0 32px;
  padding: 8px 12px;
  border-left: 1px solid var(--lotus);
}
.doc-section { margin-top: 48px; }
.doc-section h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 12px;
}
.doc p, .doc li { font-size: 15px; color: var(--paper); line-height: 1.65; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.doc strong { font-weight: 500; color: var(--white); }
.doc-lede a, .doc-section a, .doc-foot a {
  color: var(--paper);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition-fast);
}
.doc-lede a:hover, .doc-section a:hover, .doc-foot a:hover { border-color: var(--paper); }
.doc-foot { margin-top: 48px; color: var(--ghost); }
.doc .readout { font-size: 13px; color: var(--paper); }

.qa { border-top: 1px solid var(--border); }
.qa:last-of-type { border-bottom: 1px solid var(--border); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 32px 16px 0;
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition-fast);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 18px;
  font-weight: 400;
  color: var(--ghost);
}
.qa[open] summary::after { content: '–'; color: var(--lotus); }
.qa summary:hover { color: var(--lotus); }
.qa-a { padding: 0 0 16px; }
.qa-a p:last-child, .qa-a ul:last-child { margin-bottom: 0; }

/* ---------- Footer (mirrors public.css so the page doesn't load the tech stylesheet) ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 48px 24px;
  margin-top: 48px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 0.8fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-col p { color: var(--ghost); font-size: 13px; line-height: 1.6; margin: 0; max-width: 38ch; }
.footer-wordmark {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 20px;
  color: var(--paper);
  text-transform: lowercase;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.footer-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-signup p { margin-bottom: 16px; }
.subscribe-form { display: flex; gap: 8px; align-items: stretch; max-width: 420px; }
.subscribe-form input {
  flex: 1;
  min-width: 0;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--paper);
  font-size: 13px;
  padding: 10px 14px;
  transition: border-color var(--transition-fast);
}
.subscribe-form input:focus { outline: none; border-color: var(--lotus-dim); }
.subscribe-form input::placeholder { color: var(--muted); }
.subscribe-form button {
  background: var(--paper);
  color: var(--void);
  border: 1px solid var(--paper);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.subscribe-form button:hover { background: transparent; color: var(--paper); }
.subscribe-form button:disabled { opacity: 0.5; cursor: default; }
.subscribe-msg { font-size: 12px; color: var(--ghost); min-height: 18px; margin-top: 10px; }
.subscribe-msg.ok { color: var(--paper); }
.subscribe-msg.error { color: #E28A8A; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--ghost); font-size: 13px; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--paper); }
.footer-base {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-base .left { font-family: var(--ff-display); font-size: 13px; color: var(--muted); }
.footer-base .right { display: flex; gap: 24px; align-items: center; }
.footer-base a { color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-manifesto { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-footer { padding: 48px var(--gutter) 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form button { width: 100%; }
}


/* ---------- Motion (shop-motion.js) ---------- */

/* Waveform field: the page's one loud moment */
.field {
  position: relative;
  margin: 0 0 32px;
  border-bottom: 1px solid var(--border);
}
.field-canvas {
  display: block;
  width: 100%;
  height: 240px;
  max-width: 100%;
  touch-action: pan-y;
}
.sound-toggle {
  position: absolute;
  right: 0;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 16px 8px 14px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--paper);
  transition: border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-base);
}
.sound-toggle:hover { border-color: var(--lotus-dim); }
.sound-toggle[aria-pressed="true"] {
  border-color: var(--lotus);
  box-shadow: 0 0 calc(8px + var(--pulse, 0) * 22px) var(--lotus-glow);
}
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i {
  width: 2px;
  height: 100%;
  background: var(--lotus);
  transform-origin: bottom;
  transform: scaleY(0.25);
  transition: transform 70ms linear;
}
.eq i:nth-child(2) { transform: scaleY(0.55); }
.eq i:nth-child(3) { transform: scaleY(0.35); }
.eq i:nth-child(4) { transform: scaleY(0.7); }
.sound-toggle[aria-pressed="false"] .eq i { animation: eq-idle 2.4s ease-in-out infinite; }
.sound-toggle[aria-pressed="false"] .eq i:nth-child(2) { animation-delay: -0.6s; }
.sound-toggle[aria-pressed="false"] .eq i:nth-child(3) { animation-delay: -1.2s; }
.sound-toggle[aria-pressed="false"] .eq i:nth-child(4) { animation-delay: -1.8s; }
@keyframes eq-idle { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(0.6); } }

/* Headline: words rise in behind a mask */
.shop-hero-line .word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; }
.shop-hero-line .word > span { display: inline-block; }
.motion-ready .shop-hero.reveal .word > span {
  transform: translateY(105%);
  transition: transform 900ms cubic-bezier(.2, .8, .1, 1) calc(200ms + var(--i, 0) * 70ms);
}
.motion-ready .shop-hero.reveal.is-in .word > span { transform: none; }

/* Beat-driven glows; --level and --pulse are 0 with sound off */
.feature-play-icon { box-shadow: 0 0 0 calc(var(--pulse, 0) * 20px) var(--lotus-glow); }
.is-sound-on .card.is-in-cart { box-shadow: 0 0 0 1px var(--lotus), 0 0 calc(var(--pulse, 0) * 36px) var(--lotus-glow); }
.shop-body.is-sound-on::before { opacity: calc(0.03 + var(--level, 0) * 0.05); }
.is-sound-on .shelf-title::after { opacity: calc(0.5 + var(--pulse, 0) * 0.5); }

/* Shelf titles get a hairline that draws in */
.shelf-title { position: relative; padding-bottom: 12px; margin-bottom: 20px; }
.shelf-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 1px;
  background: var(--lotus);
  opacity: 0.6;
  transform-origin: left;
}
.motion-ready .shelf-title.reveal::after { transform: scaleX(0); transition: transform 900ms cubic-bezier(.2, .8, .1, 1) 150ms; }
.motion-ready .shelf-title.reveal.is-in::after { transform: scaleX(1); }

/* Pointer light on cards and panels */
.card, .book-call, .consult, .portfolio-tile { position: relative; }
.card::after, .book-call::after, .consult::after, .portfolio-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, -400px) var(--my, -400px), rgba(200, 169, 126, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  z-index: 2;
}
.card:hover::after, .book-call:hover::after, .consult:hover::after, .portfolio-tile:hover::after { opacity: 1; }
.card { transition: border-color var(--transition-fast), transform var(--transition-slow); }
.card:hover { transform: translateY(-3px); }
.card .media img { transition: transform 1200ms cubic-bezier(.2, .7, .2, 1), opacity 450ms ease; }
.card:hover .media img { transform: scale(1.04); }
.portfolio-tile { transition: transform var(--transition-slow), border-color var(--transition-fast); }
.portfolio-tile:hover { transform: translateY(-3px); border-color: var(--line-hover); }

/* Reveal: hides content only once JS has confirmed it can show it again */
.motion-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms cubic-bezier(.2, .8, .1, 1) var(--reveal-delay, 0ms),
    transform 800ms cubic-bezier(.2, .8, .1, 1) var(--reveal-delay, 0ms),
    border-color var(--transition-fast);
}
.motion-ready .reveal.is-in { opacity: 1; transform: none; }
.motion-ready .card.reveal.is-in:hover { transform: translateY(-3px); transition-delay: 0ms; }
.motion-ready .feature.reveal { transform: scale(0.97); }
.motion-ready .feature.reveal.is-in { transform: none; }
/* While an image exists, its placeholder text stays hidden (it would show through the wipe) */
.media:has(img) .ph > * { visibility: hidden; }
/* Card images wipe up into place */
.motion-ready .card.reveal .media img,
.motion-ready .portfolio-tile.reveal .media img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1000ms cubic-bezier(.7, 0, .2, 1) calc(var(--reveal-delay, 0ms) + 120ms), transform 1200ms cubic-bezier(.2, .7, .2, 1), opacity 450ms ease;
}
.motion-ready .card.reveal.is-in .media img,
.motion-ready .portfolio-tile.reveal.is-in .media img { clip-path: inset(0 0 0 0); }

@media (max-width: 640px) {
  .field-canvas { height: 160px; }
  .sound-toggle { bottom: 10px; min-height: 36px; padding: 6px 12px; font-size: 12px; }
}

/* ---------- Reduced motion: instant everything ---------- */
@media (prefers-reduced-motion: reduce) {
  .shop-body *,
  .shop-body *::before,
  .shop-body *::after {
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
  .btn-add.is-pressed { transform: none; }
}
