/* ============================================================
   Peplabco — white-label site. Layers on top of style.css.
   ============================================================ */

/* ---------- Brand ---------- */
/* Wordmark: PEP in white, LAB and CO in the live brand colour (see brand-live.js) */
@property --pl { syntax: '<color>'; inherits: true; initial-value: #3fbdb5; }
:root { --pl: #3fbdb5; transition: --pl 1.6s ease-in-out; }
.wm {
  display: inline-flex; align-items: flex-start; font-family: var(--font-display);
  font-weight: 700; font-size: 1.7rem; line-height: 0.9; letter-spacing: -0.045em; text-transform: uppercase;
  color: var(--white); white-space: nowrap;
}
.wm__pep { color: var(--pl); }
.wm__lab { color: var(--white); }
.wm__co { color: var(--pl); font-size: 0.4em; letter-spacing: 0.1em; margin: 0.02em 0 0 0.28em; line-height: 1; font-weight: 700; }
.wm--xl { font-size: clamp(3rem, 12vw, 8.5rem); letter-spacing: -0.05em; }
.footer__mark { padding-top: var(--space-16); padding-bottom: var(--space-8); }
.footer__tag { margin-top: var(--space-4); color: var(--pl); font-size: var(--text-lg); }
::selection { background: var(--pl); color: #0b0c0e; }
.marquee__track i { background: var(--pl); }
.nav__links a:hover { color: var(--pl); }
.btn--light:hover { background: var(--pl); color: #0b0c0e; }
.hero__glow { background: radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--pl) 16%, transparent), transparent 60%); }
:focus-visible { outline-color: var(--pl); }

/* ---------- Hero lineup ---------- */
.lineup {
  position: relative;
  justify-self: end;
  width: min(100%, 540px);
  aspect-ratio: 1 / 1.12;
}
.lineup__stage {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(255, 255, 255, 0.11), transparent 70%),
    linear-gradient(180deg, #17191d, #0e0f12);
  border: 1px solid var(--line-dark);
  overflow: hidden;
}
.lineup__stage::after {
  content: '';
  position: absolute;
  left: 8%; right: 8%; bottom: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}
.lineup__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 18px;
  color: var(--grey-1);
  flex-wrap: wrap;
}
@media (prefers-reduced-motion: no-preference) {
      }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--line-light);
}
.pillar__n { color: var(--grey-3); display: block; margin-bottom: var(--space-4); }
.pillar h3 { margin-bottom: var(--space-3); }
.pillar p { color: var(--grey-3); font-size: var(--text-sm); max-width: 38ch; }

/* ---------- Studio ---------- */
.studio { padding: var(--section-y) 0; position: relative; overflow: hidden; }
.studio__head { max-width: 62ch; margin-bottom: var(--space-12); }
.studio__head h2 { margin-bottom: var(--space-4); }
.studio__lead { color: var(--grey-2); font-weight: 300; font-size: var(--text-lg); }
.studio__grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.studio__panel {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.ctl { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ctl--split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.ctl__label { color: var(--grey-1); }
.studio__panel input[type='text'],
.studio__panel select {
  width: 100%;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.studio__panel select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a8f97' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.studio__panel input:focus, .studio__panel select:focus { border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07); }

.drop {
  position: relative;
  display: block;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: var(--space-4);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.drop:hover, .drop.is-over { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.04); }
.drop:focus-within { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 2px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop__idle { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.drop__idle svg { color: var(--grey-1); margin-bottom: 4px; }
.drop__idle strong, .drop__has strong { font-weight: 500; font-size: var(--text-sm); }
.drop small { color: var(--grey-1); font-size: var(--text-xs); }
.drop__has { display: flex; align-items: center; gap: var(--space-3); }
.drop__has[hidden], .drop__idle[hidden] { display: none; }
.drop__has > span { display: flex; flex-direction: column; min-width: 0; }
.drop__has strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.drop__has img {
  width: 56px; height: 56px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: repeating-conic-gradient(#2a2c31 0% 25%, #1d1f23 0% 50%) 50% / 12px 12px;
  flex: none;
}
.ctl__row { display: flex; flex-direction: column; gap: var(--space-3); margin-top: 2px; }
.ctl__row[hidden] { display: none; }
.slider { display: flex; flex-direction: column; gap: 8px; }
.slider .mono { color: var(--grey-1); }
.slider input[type='range'] { width: 100%; accent-color: var(--white); }
.linkbtn { align-self: flex-start; font-size: var(--text-xs); color: var(--grey-1); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--white); }

.seg {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: var(--text-xs);
  color: var(--grey-2);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.seg button:hover { color: var(--white); }
.seg button.is-on { background: var(--white); color: var(--ink); }
.seg--sm button { padding: 6px 12px; }
.seg[hidden] { display: none; }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(255, 255, 255, 0.22);
  position: relative;
  transition: transform 0.25s var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-on::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--white);
}

.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px 8px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--grey-1);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.mini:hover { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.mini.is-on { border-color: var(--white); background: rgba(255, 255, 255, 0.05); color: var(--white); }
.mini__vial { display: flex; align-items: center; justify-content: center; height: 64px; }
.mini__vial .vial { display: block; height: 100%; width: auto; max-width: 56px; }
.mini .mono { font-size: 10px; letter-spacing: 0.06em; }

/* Stage */
.studio__stage {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  min-width: 0;
}
.stage__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3) var(--space-3); flex-wrap: wrap; }
.tabs { display: inline-flex; border: 1px solid var(--line-dark); border-radius: 999px; padding: 3px; gap: 2px; }
.tab {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--grey-2);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.tab:hover { color: var(--white); }
.tab[aria-selected='true'] { background: var(--white); color: var(--ink); }
.stage__tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.iconbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: var(--text-xs);
  color: var(--grey-2);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.iconbtn:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.iconbtn[aria-pressed='true'] { color: var(--white); }
.iconbtn[aria-pressed='true'] svg { animation: spin 6s linear infinite; }
.iconbtn[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .iconbtn[aria-pressed='true'] svg { animation: none; } }

.stage__view {
  position: relative;
  height: clamp(380px, 46vw, 560px);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, #2a2d33 0%, #17191d 55%, #0e0f12 100%);
}
.gl { position: absolute; inset: 0; cursor: grab; }
.gl.is-drag { cursor: grabbing; }
.gl[hidden] { display: none; }
.gl canvas { display: block; width: 100%; height: 100%; }
.flat { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: var(--space-4); }
.flat[hidden] { display: none; }
.vialview { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 4% 0; }
.vialview[hidden] { display: none; }
.vialview__main { height: 100%; aspect-ratio: 184 / 436; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.5)); }
.vialview__main .vial { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .vialview__main { animation: floaty 7s ease-in-out infinite; }
}
.stage__hint {
  position: absolute; left: 16px; bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  color: var(--grey-1);
  pointer-events: none;
}
.stage__hint[hidden] { display: none; }
.hint__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.stage__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--grey-1); }
.stage__loading[hidden] { display: none; }
.stage__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-3) 0; }
.stage__foot .mono { color: var(--grey-1); }
.stage__foot .btn[hidden] { display: none; }
.stage__note { padding: var(--space-3) var(--space-3) var(--space-2); color: var(--grey-3); font-size: var(--text-xs); max-width: 70ch; }

/* ---------- Range ---------- */
.range { padding: var(--section-y) 0; }
.range__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.rcard {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
  min-height: 210px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.rcard:hover { border-color: rgba(11, 12, 14, 0.4); transform: translateY(-2px); }
.rcard__cat { color: var(--grey-3); margin-bottom: var(--space-4); }
.rcard h3 { font-size: var(--text-lg); }
.rcard p { color: var(--grey-3); font-size: var(--text-sm); }
.rcard__fmt { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--space-4); }
.rcard__fmt li { font-size: var(--text-xs); padding: 4px 10px; border: 1px solid var(--line-light); border-radius: 999px; color: var(--grey-3); }
.range__note { margin-top: var(--space-6); color: var(--grey-3); font-size: var(--text-sm); max-width: 70ch; }

/* ---------- MOQ ---------- */
.moq { padding: var(--section-y) 0; }
.moq__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.mcard {
  padding: var(--space-8);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  display: flex; flex-direction: column; gap: var(--space-3);
  min-height: 240px;
}
.mcard--lead { background: var(--white); color: var(--ink); border-color: var(--white); }
.mcard__n { color: var(--grey-1); margin-bottom: auto; }
.mcard--lead .mcard__n { color: var(--grey-3); }
.mcard p { color: var(--grey-2); font-size: var(--text-sm); }
.mcard--lead p { color: var(--grey-3); }
.moq__note { margin-top: var(--space-6); color: var(--grey-1); font-size: var(--text-sm); }

/* ---------- Apply ---------- */
.apply { padding: var(--section-y) 0; border-top: 1px solid var(--line-dark); }
.apply__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 2rem + 3vw, 6rem); align-items: start; }
.apply__copy { position: sticky; top: 110px; }
.apply__copy h2 { margin-bottom: var(--space-6); }
.apply__copy > p { color: var(--grey-2); font-weight: 300; font-size: var(--text-lg); max-width: 40ch; margin-bottom: var(--space-8); }
.apply__list { display: flex; flex-direction: column; gap: var(--space-3); }
.apply__list li { display: flex; align-items: center; gap: 12px; font-size: var(--text-sm); color: var(--grey-2); }
.apply__list .badge__dot { background: var(--live); }
.apply__card { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.apply__form { display: flex; flex-direction: column; gap: var(--space-4); }
.apply__form .field { margin-top: 0; }
.apply__form .btn { align-self: flex-start; margin-top: var(--space-2); background: var(--ink); color: var(--white); }
.apply__form .btn:hover { background: var(--ink-2); }
.apply__form .btn .btn__arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.apply__form .btn:hover .btn__arrow { transform: translateX(4px); }
.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checks legend { width: 100%; margin-bottom: 4px; padding: 0; }
.chk { position: relative; cursor: pointer; }
.chk input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.checks .chk span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: var(--text-sm);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.checks .chk:hover span { border-color: rgba(11, 12, 14, 0.4); }
.checks .chk input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chk input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chk--consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--text-sm); color: var(--grey-3); }
.chk--consent input { position: static; opacity: 1; pointer-events: auto; width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.chk--consent span { display: block; }
.apply__done { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-6) 0; }
.apply__done[hidden] { display: none; }
.apply__done p { color: var(--grey-3); max-width: 46ch; }
.apply__done .btn[hidden] { display: none; }
.form__error[hidden] { display: none; }

/* ---------- Footer ---------- */
.footer__cols--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .studio__grid { grid-template-columns: 340px minmax(0, 1fr); }
  .range__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .studio__grid, .apply__grid { grid-template-columns: 1fr; }
  .studio__stage { order: -1; }
  .apply__copy { position: static; }
  .lineup { justify-self: center; }
  .pillars, .moq__grid { grid-template-columns: 1fr; }
  .mcard { min-height: 0; }
  .mcard__n { margin-bottom: var(--space-4); }
}
@media (max-width: 640px) {
  .range__grid { grid-template-columns: 1fr; }
  .rcard { min-height: 0; }
  .stage__view { height: 400px; }
  .footer__cols--3 { grid-template-columns: 1fr 1fr; }
  .ctl--split { grid-template-columns: 1fr; }
}

/* ---------- Components ---------- */
.parts { padding: var(--section-y) 0; background: var(--paper-2); }
.parts__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-16); align-items: start; margin-top: var(--space-12); }
.parts__fig { margin: 0; background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: var(--space-8); color: var(--ink); }
.cartdraw { width: 100%; height: auto; display: block; }
.parts__fig figcaption { color: var(--grey-3); font-size: var(--text-xs); letter-spacing: 0.08em; margin-top: var(--space-4); }
.parts__spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: var(--space-6) 0 0; border-top: 1px solid var(--line-light); }
.parts__spec > div { padding: var(--space-4) 0; border-bottom: 1px solid var(--line-light); }
.parts__spec > div:nth-child(odd) { padding-right: var(--space-4); }
.parts__spec dt { color: var(--grey-3); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.parts__spec dd { margin: 0; font-weight: 500; }
.parts__who h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.parts__who p { color: var(--grey-3); }
.facts { list-style: none; padding: 0; margin: var(--space-8) 0 0; border-top: 1px solid var(--line-light); }
.facts li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-3); padding: var(--space-6) 0; border-bottom: 1px solid var(--line-light); }
.facts li > span { color: var(--grey-3); font-size: var(--text-xs); padding-top: 0.35rem; }
.facts h4 { font-size: var(--text-lg); font-weight: 500; margin-bottom: var(--space-2); }
.facts p { color: var(--grey-3); font-size: var(--text-sm); }
.parts__note { color: var(--grey-3); font-size: var(--text-xs); margin-top: var(--space-6); max-width: 60ch; }
.parts__note a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) { .parts__grid { grid-template-columns: 1fr; gap: var(--space-12); } }

.stage__foot { flex-wrap: wrap; gap: var(--space-3); }
.stage__foot .btn { white-space: nowrap; }

.ctl__opt { font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.6; margin-left: 4px; }
.ctl__note { color: var(--grey-1); font-size: var(--text-xs); margin-top: calc(var(--space-2) * -1); }
.rcard--locked { background: var(--ink); color: var(--white); border-color: var(--ink); }
.rcard--locked:hover { border-color: var(--ink); }
.rcard--locked .rcard__cat { color: var(--grey-2); display: inline-flex; align-items: center; gap: var(--space-2); }
.rcard--locked p { color: var(--grey-2); }
.rcard__cta { margin-top: auto; padding-top: var(--space-4); font-weight: 500; display: inline-flex; gap: var(--space-2); align-items: center; }
.rcard__cta:hover span { transform: translateX(3px); }
.rcard__cta span { transition: transform 0.2s ease; }

.hero__status { flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.status-item { display: inline-flex; align-items: center; gap: 10px; }
.status-item .status-dot { flex: none; }

@media (max-width: 640px) {
          }

/* ---------- Programme pack viewer ---------- */
.rcard--sku { display: flex; flex-direction: column; }
.rcard__view { margin-top: 0; align-self: flex-start; padding: var(--space-3) 0 0; font: inherit; font-weight: 500; color: var(--ink); background: none; border: 0; cursor: pointer; display: inline-flex; gap: var(--space-2); align-items: center; }
.rcard__view::after { content: ''; position: absolute; inset: 0; }
.rcard--sku { position: relative; }
.rcard__view span { transition: transform 0.2s ease; }
.rcard--sku:hover .rcard__view span { transform: translateX(3px); }
.rcard--sku:focus-within { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.rcard--sku .rcard__fmt { margin-top: auto; margin-bottom: var(--space-3); }

html.is-modal { overflow: hidden; }
.sku { margin: auto; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 0; background: #0e0f12; color: #fff; width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: hidden; }
.sku::backdrop { background: rgba(5, 6, 8, 0.72); backdrop-filter: blur(4px); }
.sku__inner { display: flex; flex-direction: column; max-height: calc(100dvh - 26px); overflow-y: auto; padding: var(--space-6); gap: var(--space-4); }
.sku__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.sku__head h3 { font-size: var(--text-xl); margin-top: 4px; }
.sku__cat { color: var(--grey-1); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; }
.sku__close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.sku__close:hover { background: rgba(255, 255, 255, 0.08); }
.sku__tabs { display: inline-flex; align-self: flex-start; gap: 2px; padding: 4px; border: 1px solid var(--line-dark); border-radius: 999px; }
.sku__tab { font: inherit; font-size: var(--text-sm); padding: 8px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--grey-1); cursor: pointer; }
.sku__tab[aria-selected="true"] { background: #fff; color: var(--ink); }
.sku__stage { border-radius: var(--radius); background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(255, 255, 255, 0.1), transparent 70%), linear-gradient(180deg, #17191d, #0e0f12); border: 1px solid var(--line-dark); min-height: 340px; display: grid; }
.sku__panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-6) var(--space-4); gap: var(--space-4); }
.sku__panel[hidden] { display: none; }
.sku__scene { --u: 2.4px; perspective: 1400px; width: 100%; height: 310px; display: grid; place-items: center; cursor: grab; touch-action: pan-y; user-select: none; }
.sku__scene.is-drag { cursor: grabbing; }
.cube { position: relative; width: calc(167 * var(--u)); height: calc(74 * var(--u)); transform-style: preserve-3d; }
.cube.is-snap { transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.2, 1); }
.cube__f { position: absolute; display: block; backface-visibility: hidden; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.cube__f--front, .cube__f--back { inset: 0; width: 100%; height: 100%; }
.cube__f--front { transform: translateZ(calc(14 * var(--u))); }
.cube__f--back { transform: rotateY(180deg) translateZ(calc(14 * var(--u))); }
.cube__f--right, .cube__f--left { width: calc(28 * var(--u)); height: 100%; top: 0; left: calc(50% - 14 * var(--u)); }
.cube__f--right { transform: rotateY(90deg) translateZ(calc(83.5 * var(--u))); }
.cube__f--left { transform: rotateY(-90deg) translateZ(calc(83.5 * var(--u))); }
.cube__f--top, .cube__f--bottom { width: 100%; height: calc(28 * var(--u)); left: 0; top: calc(50% - 14 * var(--u)); }
.cube__f--top { transform: rotateX(90deg) translateZ(calc(37 * var(--u))); }
.cube__f--bottom { transform: rotateX(-90deg) translateZ(calc(37 * var(--u))); }
.sku__views, .sku__layouts { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.sku__layouts { justify-content: flex-start; }
.chipbtn { font: inherit; font-size: var(--text-xs); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: var(--grey-1); cursor: pointer; }
.chipbtn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.chipbtn.is-on { background: #fff; color: var(--ink); border-color: #fff; }
.sku__piece { display: grid; place-items: center; height: 300px; }
.sku__piece .vial { height: 100%; width: auto; max-width: 100%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45)); }
.sku__piece--cart { position: relative; width: 100%; }
.sku__piece--cart .vial { position: absolute; left: 50%; top: 50%; height: 380px; width: auto; max-width: none; transform: translate(-50%, -50%) rotate(90deg); }
.sku__piece--cart { height: 190px; overflow: visible; }
.sku__foot { display: flex; flex-direction: column; gap: var(--space-3); }
.sku__note { color: var(--grey-1); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.sku__hint { color: var(--grey-2); font-size: var(--text-sm); max-width: 62ch; }
.sku__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
@media (max-width: 640px) {
  .sku__inner { padding: var(--space-4); }
  .sku__scene { --u: 1.3px; height: 220px; }
  .sku__piece { height: 260px; }
  .sku__piece--cart .vial { height: 250px; }
  .sku__piece--cart { height: 140px; }
  .sku__actions .btn { width: 100%; justify-content: center; }
}

/* Components: cartridge pair and vial drawings */
.parts__pair { display: grid; gap: var(--space-2); }
.parts__pair .cartdraw { width: 100%; height: auto; }
.parts__sub { color: var(--grey-3); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 var(--space-4); }
.vialspecs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); margin-top: var(--space-16); }
.vialspecs__head { grid-column: 1 / -1; max-width: 62ch; }
.vialspecs__head h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.vialspecs__head p { color: var(--grey-3); }
.vialspecs .parts__note { grid-column: 1 / -1; margin-top: 0; }
.vialdraw { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; }
@media (max-width: 720px) { .vialspecs { grid-template-columns: 1fr; } }

.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line-light); }
.formats .mono { color: var(--accent); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; }
.formats p { margin-top: var(--space-2); color: var(--grey-3); max-width: 46ch; }
@media (max-width: 720px) { .formats { grid-template-columns: 1fr; gap: var(--space-4); } }
#layoutCtl[hidden] { display: none; }
.tab { padding-inline: 16px; }
@media (max-width: 640px) { .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .tab { white-space: nowrap; padding-inline: 14px; } }

/* Custom colour (Pantone or hex) */
.custom { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.custom__chip { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.3); background: var(--c, transparent); }
.custom__chip.is-on { border-style: solid; }
.custom .custom__in { flex: 1 1 150px; min-width: 0; height: 40px; }
.custom__pick { position: relative; width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--line-dark); overflow: hidden; cursor: pointer; display: block; }
.custom__pick input { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); padding: 0; border: 0; background: none; cursor: pointer; }
.custom__go { height: 40px; padding: 0 var(--space-4); border-radius: 999px; border: 1px solid var(--line-dark); color: var(--white); font-size: var(--text-sm); font-weight: 500; }
.custom__go:hover { border-color: rgba(255, 255, 255, 0.45); }
.custom__msg { flex-basis: 100%; margin: 0; font-size: 11px; line-height: 1.5; letter-spacing: 0.02em; color: var(--grey-2); }
.custom__msg.is-error { color: #ff9c8f; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.devices { padding-top: 0; }
.dev__btn { margin-top: var(--space-4); align-self: flex-start; }
.dev__btn { color: var(--ink); border-color: var(--line-light); }
.dev__btn:hover { color: var(--ink); border-color: rgba(11, 12, 14, 0.5); }
.devices .rcard__fmt { list-style: none; margin: 0; padding-left: 0; padding-top: var(--space-4); }
.devices .rcard__fmt li::marker { content: ''; }
#penSeg button { white-space: nowrap; }
@media (max-width: 640px) {
  #penSeg { max-width: 100%; }
  #penSeg button { padding-inline: 10px; font-size: 12px; }
  .stage__bar { flex-wrap: wrap; }
}

.devdraw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.devdraw__wide { grid-column: 1 / -1; }
.devsvg { width: 100%; height: auto; display: block; min-width: 520px; }
.devdraw__wide .devsvg { min-width: 640px; }
.devdraw__scroll { overflow-x: auto; }
.parts__spec--4 { grid-template-columns: repeat(4, 1fr); }
.parts__spec--4 > div { padding-right: var(--space-4); }
@media (max-width: 900px) { .devdraw { grid-template-columns: 1fr; } .parts__spec--4 { grid-template-columns: 1fr 1fr; } }

/* Hero caption stays on one line */
.lineup__cap { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 640px) { .lineup__cap { font-size: 10px; letter-spacing: 0.04em; gap: var(--space-2); padding-inline: 14px; } }
@media (max-width: 480px) { .lineup__cap span:last-child { display: none; } }

.mini__cv { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; border-radius: 4px; }

/* Technical drawings section */
.parts__grid--single { grid-template-columns: 1fr; margin-top: var(--space-8); }
.parts__grid--single .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-12); }
.parts__grid--single .parts__note a { text-underline-offset: 3px; }
@media (max-width: 720px) { .parts__grid--single .facts { grid-template-columns: 1fr; } }
.drawings { border-top: 1px solid var(--line-light); }
.drawings__bar { margin-top: var(--space-12); overflow-x: auto; scrollbar-width: none; }
.drawings__bar::-webkit-scrollbar { display: none; }
.tabs--light { border-color: var(--line-light); background: var(--white); }
.tabs--light .tab { color: var(--grey-3); }
.tabs--light .tab:hover { color: var(--ink); }
.tabs--light .tab[aria-selected='true'] { background: var(--ink); color: var(--white); }
.dpanel { margin-top: var(--space-6); }
.dpanel[hidden] { display: none; }
.dpanel > .parts__fig { max-width: 1040px; }
.dpanel .vialspecs { margin-top: 0; }
.dpanel .devdraw__wide .devsvg { min-width: 0; }
@media (max-width: 720px) { .dpanel .devdraw__wide .devsvg { min-width: 640px; } }

/* ---------- Hero: one cartridge, changing colours ---------- */
@property --tint { syntax: '<color>'; inherits: true; initial-value: rgba(31, 81, 100, 0.35); }
.lineup__tint {
  position: absolute; inset: 0; border-radius: var(--radius-lg); pointer-events: none;
  background: radial-gradient(ellipse 62% 52% at 50% 58%, var(--tint), transparent 72%);
  transition: --tint 1.8s ease-in-out;
}
.lineup__solo {
  position: absolute; left: 50%; bottom: 12%; height: 80%; aspect-ratio: 140 / 671;
  translate: -50% 0;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.5));
}
.lineup__layer { position: absolute; inset: 0; opacity: 0; }
.lineup__layer.is-on { opacity: 1; }
.lineup__layer.is-reveal {
  opacity: 0; z-index: 2;
  -webkit-mask-image: linear-gradient(to top, #000 34%, transparent 66%);
  mask-image: linear-gradient(to top, #000 34%, transparent 66%);
  -webkit-mask-size: 100% 300%; mask-size: 100% 300%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 0; mask-position: 0 0;
}
.lineup__layer.is-reveal.go {
  opacity: 1; -webkit-mask-position: 0 100%; mask-position: 0 100%;
  transition: opacity 1.8s ease-in-out, -webkit-mask-position 1.8s ease-in-out, mask-position 1.8s ease-in-out;
}
.lineup__layer .vial { display: block; height: 100%; width: auto; margin: 0 auto; }
.lineup__brand { transition: opacity 0.4s ease; }
.lineup__brand.is-out { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .lineup__solo { animation: floaty 8s ease-in-out infinite; }
  .lineup__solo .lineup__layer { transform: translate3d(calc(var(--nx, 0) * 12px), calc(var(--ny, 0) * 6px), 0) rotate(calc(var(--nx, 0) * 1.6deg)); }
}
@media (prefers-reduced-motion: reduce) {
  
}

/* Touch devices: keep the hero cheap (plain crossfade, no animated mask or filter) */
@media (pointer: coarse) {
  .lineup__solo { filter: none; }
  .lineup__solo::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -2%; height: 10px; background: radial-gradient(ellipse at center, rgba(0,0,0,.5), transparent 70%); }
  .lineup__layer.is-reveal { -webkit-mask-image: none; mask-image: none; }
  .lineup__layer.is-reveal.go { transition: opacity 1.8s ease-in-out; }
}

/* Studio: save to account + brand kit */
.stage__foot { flex-wrap: wrap; gap: 10px; }
.savebox { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: 14px; background: rgba(255,255,255,.03); display: flex; flex-direction: column; gap: 10px; }
.savebox p { font-size: var(--text-sm); color: var(--grey-2); }
.savebox:empty, .savebox p:empty { display: none; }
.savebox__a { color: var(--pl, #fff); font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 3px; margin-right: 14px; }
.savebox__row { display: flex; gap: 8px; flex-wrap: wrap; }
.savebox__in { flex: 1 1 200px; min-width: 0; background: var(--ink); border: 1px solid var(--line-dark); border-radius: 999px; padding: 0.6rem 1rem; color: var(--white); font-size: var(--text-sm); }
.savebox__in:focus { outline: none; border-color: var(--pl, #fff); }
.kitbtn { align-self: flex-start; margin-bottom: 10px; background: none; border: 1px solid var(--line-dark); color: var(--white); border-radius: 999px; padding: 0.5rem 1rem; font-size: var(--text-sm); cursor: pointer; }
.kitbtn:hover { border-color: var(--pl, #fff); }
.kitbtn[hidden] { display: none; }
