/* ============================================================
   DAM page — Image Studio, asset roles, 3D, presets, R2
   Inherits styles.css. Reuses subnav pattern from bol.css.
============================================================ */

/* nav active dot */
.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-links a.active::after {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink);
  margin-left: 6px;
  vertical-align: middle;
}

/* subnav (shared pattern) */
.subnav {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 65px;
  z-index: 40;
}
.subnav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px var(--pad-x);
  overflow-x: auto;
}
.subnav-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.subnav-inner a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
  padding: 4px 0;
}
.subnav-inner a:hover { color: var(--ink); }
.subnav-inner a.active {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}

/* kicker variant */
.kicker .dot.dam { background: var(--ink); box-shadow: 0 0 0 3px rgba(var(--ink-rgb),0.16); }
.hero-dam .display { font-size: clamp(56px, 9.2vw, 124px); line-height: 0.94; }

/* trust strip variant */
.dam-trust { padding: 50px 0 30px; }
.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 4vw, 60px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px){ .trust-stats { grid-template-columns: 1fr 1fr; gap: 30px; } }
.ts { display: flex; flex-direction: column; gap: 6px; }
.ts b {
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1;
}
.ts span { font-size: 13.5px; color: var(--muted); }

/* ============================================================
   HERO PEEK — Asset Library
============================================================ */
.dam-peek .peek-frame { background: var(--bg-card); }
.dam-dash {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 560px;
}
@media (max-width: 920px){ .dam-dash { grid-template-columns: 1fr; } }

.dam-side {
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ds-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
}
.ds-sicon { color: var(--muted); }
.ds-sval { color: var(--muted); }
.ds-section { display: flex; flex-direction: column; gap: 2px; }
.ds-h {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 4px 8px;
}
.ds-folder {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  font-size: 12.5px;
  border-radius: 7px;
  color: var(--ink-mid);
}
.ds-folder.active { background: rgba(var(--ink-rgb),0.06); color: var(--ink); font-weight: 500; }
.ds-fdot {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.ds-fdot.c-1 { background: #8FA15E; }
.ds-fdot.c-2 { background: #6A6A65; }
.ds-fdot.c-3 { background: #C2725A; }
.ds-fdot.c-4 { background: #6E938C; }
.ds-fdot.c-5 { background: var(--info); }
.ds-c { font-family: var(--f-mono); font-size: 11px; color: var(--muted-2); }

.ds-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 5px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  background: rgba(var(--ink-rgb),0.05);
  color: var(--muted);
  margin: 2px 4px 2px 0;
}
.ds-tag.on { background: var(--ink); color: var(--bg); }

/* grid */
.dam-grid { padding: 0; }
.dg-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dg-actions { display: inline-flex; gap: 6px; }
.chip.sm { height: 22px; padding: 0 8px; font-size: 11px; }
.dg-cells {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
@media (max-width: 720px){ .dg-cells { grid-template-columns: repeat(2, 1fr); } }
.dgc {
  background: var(--bg-card);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  cursor: default;
  transition: background .15s ease;
}
.dgc:hover { background: var(--bg-soft); }
.dgc.selected { outline: 2px solid var(--ink); outline-offset: -2px; z-index: 1; }
.dgc.processing { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.dgc.add { background: var(--bg-soft); display: grid; place-items: center; text-align: center; }
.dgc-img {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.dgc-role {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 3px 6px;
  border-radius: 3px;
  z-index: 2;
}
.dgc-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dgc-prog {
  position: absolute;
  left: 10px; right: 10px; bottom: 24px;
  height: 3px;
  background: rgba(var(--ink-rgb),0.10);
  border-radius: 2px;
  overflow: hidden;
}
.dgc-prog > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--ink);
  animation: dgcProg 2.5s ease-in-out infinite;
}
@keyframes dgcProg {
  0%   { width: 0%; }
  60%  { width: 78%; }
  100% { width: 100%; }
}
.dgc-add {
  font-size: 32px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1;
}

/* swatch tiles */
.swatch { position: relative; }
.swatch.sw-blk  { background: linear-gradient(135deg, #1A1A17, #2C2C28); }
.swatch.sw-olv  { background: linear-gradient(135deg, #4A5A28, #7B8C5B); }
.swatch.sw-rust { background: linear-gradient(135deg, #7C3A1F, #B86A4A); }

/* Real product photos in the FW26 asset grid — one per cell, matched to role/colour */
.dam-grid .dg-cells .dgc:nth-child(1) .dgc-img.ai-fill,
.dam-grid .dg-cells .dgc:nth-child(2) .dgc-img.ai-fill,
.dam-grid .dg-cells .dgc:nth-child(3) .dgc-img.ai-fill,
.dam-grid .dg-cells .dgc:nth-child(4) .dgc-img.ai-fill,
.dam-grid .dg-cells .dgc:nth-child(7) .dgc-img.ai-fill,
.dam-grid .dg-cells .dgc:nth-child(8) .dgc-img.ai-fill,
.dam-grid .dg-cells .dgc:nth-child(9) .dgc-img.ai-fill,
.dam-grid .dg-cells .dgc:nth-child(10) .dgc-img.ai-fill {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: none;
}
.dam-grid .dg-cells .dgc:nth-child(7) .dgc-img.ai-fill::before,
.dam-grid .dg-cells .dgc:nth-child(9) .dgc-img.ai-fill::before { display: none; }

.dam-grid .dg-cells .dgc:nth-child(1) .dgc-img.ai-fill  { background-image: url(images/dam/dam-headphones.jpg); }
.dam-grid .dg-cells .dgc:nth-child(2) .dgc-img.ai-fill  { background-image: url(images/dam/dam-bottle.jpg); }
.dam-grid .dg-cells .dgc:nth-child(3) .dgc-img.ai-fill  { background-image: url(images/dam/dam-backpack.jpg); }
.dam-grid .dg-cells .dgc:nth-child(4) .dgc-img.ai-fill  { background-image: url(images/dam/dam-vase.jpg); }
.dam-grid .dg-cells .dgc:nth-child(7) .dgc-img.ai-fill  { background-image: url(images/dam/dam-laptop.jpg); }
.dam-grid .dg-cells .dgc:nth-child(8) .dgc-img.ai-fill  { background-image: url(images/dam/dam-lamp.jpg); background-position: 50% 42%; }
.dam-grid .dg-cells .dgc:nth-child(9) .dgc-img.ai-fill  { background-image: url(images/dam/dam-sunglasses.jpg); }
.dam-grid .dg-cells .dgc:nth-child(10) .dgc-img.ai-fill { background-image: url(images/dam/dam-watch.jpg); }

/* ── Cell 2 "removing bg…" — a live background-removal demo on a 5s loop ──
   before: dam-bottle.jpg (bottle on its studio set) → progress fills →
   after:  dam-bottle-cut.jpg (same bottle on studio white). Both come from
   one 560² frame, so the bottle stays put while the set dissolves to white. */
.dam-grid .dgc.processing .dgc-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff url(images/dam/dam-bottle-cut.jpg) center / cover no-repeat;
  opacity: 0;
  z-index: 1;
  animation: dgcReveal 5s ease-in-out infinite;
}
.dam-grid .dgc.processing .dgc-img::before {
  content: "✓";
  position: absolute;
  top: 9px; right: 9px;
  width: 17px; height: 17px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800; line-height: 1;
  color: #fff;
  background: var(--ok);
  border-radius: 50%;
  opacity: 0;
  z-index: 3;
  animation: dgcDone 5s ease-in-out infinite;
}
.dam-grid .dgc.processing .dgc-prog { animation: dgcBar 5s ease-in-out infinite; }
.dam-grid .dgc.processing .dgc-prog > span {
  animation: dgcFill 5s ease-in-out infinite;   /* re-times the 2.5s default onto the master loop */
}
@keyframes dgcFill   { 0% { width: 0; }       44% { width: 100%; }   100% { width: 100%; } }
@keyframes dgcBar    { 0%, 4% { opacity: 0; }  8%, 44% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes dgcReveal { 0%, 44% { opacity: 0; } 54%, 88% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes dgcDone {
  0%, 50%  { opacity: 0; transform: scale(.4); }
  58%      { opacity: 1; transform: scale(1); }
  88%      { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .dam-grid .dgc.processing .dgc-img::after  { opacity: 1; animation: none; }  /* static "removed" result */
  .dam-grid .dgc.processing .dgc-img::before { opacity: 1; animation: none; }
  .dam-grid .dgc.processing .dgc-prog        { display: none; }
}

/* Swatch cells get product photos too, matched to the colour label */
.dam-grid .dg-cells .dgc:nth-child(5) .dgc-img.swatch,
.dam-grid .dg-cells .dgc:nth-child(6) .dgc-img.swatch,
.dam-grid .dg-cells .dgc:nth-child(11) .dgc-img.swatch {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.dam-grid .dg-cells .dgc:nth-child(5) .dgc-img.swatch  { background-image: url(images/dam/dam-keyboard.jpg); }
.dam-grid .dg-cells .dgc:nth-child(6) .dgc-img.swatch  { background-image: url(images/dam/dam-yogamat.jpg); }
.dam-grid .dg-cells .dgc:nth-child(11) .dgc-img.swatch { background-image: url(images/dam/dam-serum.jpg); }

/* ============================================================
   IMAGE STUDIO PIPELINE
============================================================ */
.studio {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.5fr;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(32px, 4vw, 56px);
  position: relative;
}
@media (max-width: 1000px){ .studio { grid-template-columns: 1fr; } }

.st-col { display: flex; flex-direction: column; gap: 18px; }
.st-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.st-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.st-card.big .st-img {
  aspect-ratio: 3 / 4;
  width: 100%;
}
.st-img {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.st-img.has-bg::after,
.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 30% 40%, rgba(180,140,90,0.16), transparent 60%),
    radial-gradient(80% 80% at 80% 90%, rgba(0,0,0,0.20), transparent 70%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.st-grain {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0px, transparent 1px, rgba(255,255,255,0.02) 1px, rgba(255,255,255,0.02) 2px);
  pointer-events: none;
}

/* Global fallback: ai-fill / swatch inside non-flex wrappers
   that don't provide their own sizing — fill the parent.
   Use explicit width/height so this still works after `.no-bg`
   resets position back to relative. */
.va-img > .ai-fill,
.va-img > .swatch,
.d3-ph > .ai-fill,
.rc-img > .ai-fill,
.rc-img > .swatch,
.ps-ph > .ai-fill {
  width: 100%;
  height: 100%;
  display: block;
}
.va-img, .d3-ph, .rc-img, .ps-ph { position: relative; }

/* "no background" — solid white plate with a visible jacket silhouette */
.ai-fill.no-bg,
.no-bg {
  background:
    radial-gradient(50% 38% at 50% 58%, #2A2A26 0%, #3A3A35 55%, transparent 75%),
    #fff !important;
  position: relative;
}
.ai-fill.no-bg::before,
.no-bg::before { content: none; }
/* preserve color variants on no-bg silhouettes */
.ai-fill.no-bg.olv,
.no-bg.olv  {
  background:
    radial-gradient(50% 38% at 50% 58%, #4A5A28 0%, #5F6E3D 55%, transparent 75%),
    #fff !important;
}
.ai-fill.no-bg.rust,
.no-bg.rust {
  background:
    radial-gradient(50% 38% at 50% 58%, #7C3A1F 0%, #9C4A2B 55%, transparent 75%),
    #fff !important;
}
.no-bg.portrait {
  background:
    radial-gradient(38% 50% at 50% 55%, #2A2A26 0%, #3A3A35 55%, transparent 75%),
    #fff !important;
}
.no-bg.square {
  background:
    radial-gradient(34% 34% at 50% 50%, #2A2A26 0%, #3A3A35 55%, transparent 75%),
    #fff !important;
}

.st-meta b { display: block; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.st-meta span { font-size: 11.5px; color: var(--muted); }

/* pipeline nodes */
.st-node {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.st-node.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateX(4px);
}
.st-node.active .muted { color: rgba(30,30,42,0.65); }
.st-node.active .stn-dot { background: #6ED27A; box-shadow: 0 0 0 4px rgba(110,210,122,0.25); }
.stn-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(var(--ink-rgb),0.18);
  transition: background .25s ease, box-shadow .25s ease;
}
.stn-h { display: flex; flex-direction: column; line-height: 1.3; }
.stn-h b { font-family: var(--f-mono); font-weight: 600; font-size: 12.5px; letter-spacing: 0.01em; }
.stn-h .muted { font-size: 11.5px; }
.stn-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
}
.st-node.active .stn-stat { color: rgba(30,30,42,0.85); }

.st-line {
  width: 1px;
  height: 14px;
  background: var(--line-2);
  margin-left: 22px;
  position: relative;
}
.st-line > span {
  position: absolute;
  bottom: -3px; left: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  transform: rotate(45deg);
}

/* outputs */
.st-out-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 580px){ .st-out-grid { grid-template-columns: 1fr 1fr; } }
.st-out {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease, border-color .25s ease, background .25s ease;
}
.st-out.lit {
  opacity: 1;
  transform: translateY(0);
  background: var(--bg-card);
  border-color: var(--ink);
  box-shadow: 0 4px 14px -6px rgba(var(--ink-rgb),0.18);
}
.so-img {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
}
.so-img.portrait { aspect-ratio: 2/3; }
.so-meta b { display: block; font-size: 12px; font-weight: 600; }
.so-meta span { font-size: 10.5px; color: var(--muted); }
.st-foot { font-size: 12.5px; margin: 12px 4px 0; }

/* ------------------------------------------------------------
   Image Studio — real photos (cascades to dam + nl/de/es)
   Story: SOURCE = the hero shot still on its studio background →
   pipeline strips it → OUTPUTS = the same headphones, cleaned up
   on white, one crop per channel. Stage animation is untouched.
------------------------------------------------------------ */
.studio .st-card.big .st-img.ai-jacket {
  background-image: url(images/dam/dam-headphones.jpg) !important;
  background-size: cover !important;
  background-position: center 44% !important;
  background-repeat: no-repeat !important;
}
.studio .st-card.big .st-img.has-bg::after { display: none; }

.studio .st-out-grid .so-img {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #fff !important;
}
/* same product, alternating front / angle crops across the channels */
.studio .st-out-grid .st-out:nth-child(1) .so-img { background-image: url(images/dam/studio-front.jpg) !important; }
.studio .st-out-grid .st-out:nth-child(2) .so-img { background-image: url(images/dam/studio-angle.jpg) !important; }
.studio .st-out-grid .st-out:nth-child(3) .so-img { background-image: url(images/dam/studio-front.jpg) !important; }
.studio .st-out-grid .st-out:nth-child(4) .so-img { background-image: url(images/dam/studio-angle.jpg) !important; }
.studio .st-out-grid .st-out:nth-child(5) .so-img { background-image: url(images/dam/studio-front.jpg) !important; }
.studio .st-out-grid .st-out:nth-child(6) .so-img { background-image: url(images/dam/studio-angle.jpg) !important; }

/* ============================================================
   BG REMOVAL COMPARE
============================================================ */
.bg-compare {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 0 auto;
}
.bgc-img,
.bgc-reveal {
  position: absolute;
  inset: 0;
}
.bgc-img > .ai-fill,
.bgc-reveal > .ai-fill {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
}
.bgc-reveal {
  clip-path: inset(0 0 0 50%);
  background: var(--bg-card);
}
/* Real jacket photos — same pose, one on location, one on studio white, so the
   handle wipes the background away while the jacket stays put. Scoped to
   .bg-compare so the studio/grid .ai-jacket placeholders are untouched. */
.bg-compare .ai-fill.ai-jacket.has-bg {
  background: url(images/dam/jacket1-on.jpg) center / cover no-repeat !important;
}
.bg-compare .ai-fill.ai-jacket.no-bg {
  background: #fff url(images/dam/jacket1-offtrans.jpg) center / cover no-repeat !important;
}
.bg-compare .ai-fill.ai-jacket.has-bg::after { display: none; }   /* drop the vignette over the photo */
.bgc-label {
  position: absolute;
  top: 14px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 9px;
  border-radius: 4px;
  z-index: 4;
}
.bgc-img .bgc-label { left: 14px; }
.bgc-reveal .bgc-label { right: 14px; }

.bgc-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.85);
  z-index: 5;
  transform: translateX(-50%);
}
.bgc-handle::after {
  content: "‹›";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.bg-foot { text-align: center; margin: 14px 0 0; }

/* ============================================================
   ASSET ROLES GRID (dark)
============================================================ */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 920px){ .roles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 580px){ .roles-grid { grid-template-columns: repeat(2, 1fr); } }
.rolec {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.rolec:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.25); }
.rc-img {
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
  padding: 14%;
}
.rc-img .ai-fill { width: 100%; height: 100%; border-radius: 4px; }
.rc-img .swatch { width: 100%; height: 100%; border-radius: 4px; }
.rc-img.video { position: relative; }
.rc-img.video .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 36px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* size chart placeholder */
.ai-sizechart {
  position: relative;
  background: var(--bg-card);
}
.ai-sizechart::before,
.ai-sizechart::after {
  content: "";
  position: absolute;
  background-image:
    linear-gradient(90deg, rgba(var(--ink-rgb),0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(var(--ink-rgb),0.12) 1px, transparent 1px);
  background-size: 14px 14px;
  inset: 12% 14%;
}
.ai-sizechart::after {
  background:
    repeating-linear-gradient(0deg, rgba(var(--ink-rgb),0.06) 0 14px, transparent 14px 28px);
  inset: 26% 14% auto 14%;
  height: 14px;
}

/* ── Asset-role gallery: one real photo per role (filenames map 1:1) ──
   Scoped to .roles-grid; covers the placeholder gradients/3D-cube/doc/grid
   decorations. Cascades to all four locales. */
.roles-grid .rc-img > div {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.roles-grid .rc-img > div::before,
.roles-grid .rc-img > div::after { display: none !important; }
.roles-grid .rolec[data-role="HERO"]        .rc-img > div { background-color: #fff !important; background-image: url(images/dam/role-hero.jpg) !important; }
.roles-grid .rolec[data-role="GALLERY"]     .rc-img > div { background-color: #fff !important; background-image: url(images/dam/role-gallery.jpg) !important; }
.roles-grid .rolec[data-role="THUMBNAIL"]   .rc-img > div { background-color: #fff !important; background-image: url(images/dam/role-thumbnail.jpg) !important; }
.roles-grid .rolec[data-role="SWATCH"]      .rc-img > div { background-image: url(images/dam/role-swatch.jpg) !important; }
.roles-grid .rolec[data-role="LIFESTYLE"]   .rc-img > div { background-image: url(images/dam/role-lifestyle.jpg) !important; }
.roles-grid .rolec[data-role="TECHNICAL"]   .rc-img > div { background-image: url(images/dam/role-technical.jpg) !important; }
.roles-grid .rolec[data-role="SIZE_CHART"]  .rc-img > div { background-image: url(images/dam/role-sizechart.jpg) !important; }
.roles-grid .rolec[data-role="VIDEO_THUMB"] .rc-img > div { background-image: url(images/dam/role-video.jpg) !important; }
.roles-grid .rolec[data-role="MODEL_3D"]    .rc-img > div { background-image: url(images/dam/role-model3d.jpg) !important; }
.roles-grid .rolec[data-role="RENDER_3D"]   .rc-img > div { background-image: url(images/dam/role-render3d.jpg) !important; }
.roles-grid .rolec[data-role="VIDEO_THUMB"] .play { display: none; }   /* poster already includes a play button */

.rc-tag {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rc-tag b {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #fff;
  font-weight: 500;
}
.rc-tag span { font-size: 11.5px; color: rgba(255,255,255,0.55); }

/* ============================================================
   VARIANT-AWARE
============================================================ */
.va-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 150px 80px 1fr;
  gap: 18px;
  align-items: center;
  width: 100%;
  max-width: 640px;
  box-shadow: var(--shadow);
  position: relative;
}
@media (max-width: 760px){
  .va-card { grid-template-columns: 1fr; gap: 18px; max-width: 460px; }
  .va-arrows { display: none; }
}

.va-source { display: flex; flex-direction: column; gap: 12px; }
/* Real olive pack shot in the variant-aware source tile */
.va-card .va-img > .ai-fill {
  background: #fff url(images/dam/va-jacket-olive.jpg) center / cover no-repeat !important;
}
.va-img {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.va-tag { display: flex; flex-direction: column; gap: 5px; }
.va-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.vt {
  font-size: 11.5px;
  padding: 3px 8px;
  background: rgba(var(--ink-rgb),0.07);
  border-radius: 4px;
  color: var(--ink-mid);
  align-self: flex-start;
}

.va-arrows {
  position: relative;
  height: 220px;
}
.va-arrows svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.va-arrows svg path {
  fill: none;
  stroke: rgba(var(--ink-rgb),0.16);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
}

.va-variants { display: flex; flex-direction: column; gap: 5px; }
.va-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  opacity: 1;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
  white-space: nowrap;
}
.vr-sku { display: none; }
.va-row.on {
  background: rgba(149, 191, 72, 0.10);
  border-color: rgba(149, 191, 72, 0.35);
  transform: translateX(2px);
}
.vr-vch { width: 14px; height: 14px; border-radius: 50%; }
.vr-vch.c-olv { background: #5F6E3D; }
.vr-name { font-weight: 500; }
.vr-ok { opacity: 0.4; transition: opacity .3s ease; }
.va-row.on .vr-ok { opacity: 1; }

/* ============================================================
   RESIZE PRESETS
============================================================ */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 920px){ .presets-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .presets-grid { grid-template-columns: 1fr; } }
.preset {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.pr-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.pr-head b { font-size: 14px; font-weight: 600; letter-spacing: -0.015em; }
.pr-head .mono { font-size: 11px; color: var(--muted); }
.pr-thumb {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  padding: 12px;
  border: 1px dashed rgba(var(--ink-rgb),0.08);
  display: block;
  position: relative;
}
.pr-thumb .ai-fill {
  position: absolute;
  inset: 12px;
  width: auto;
  height: auto;
  border-radius: 4px;
}
.pr-thumb.sq    { aspect-ratio: 1 / 1; }
.pr-thumb.sq.sm { padding: 22px; }
.pr-thumb.sq.sm .ai-fill { inset: 22px; }
.pr-thumb.p23   { aspect-ratio: 2 / 3; }
.pr-thumb.wide  { aspect-ratio: 16 / 9; }
.pr-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.prr {
  font-family: var(--f-mono);
  font-size: 10.5px;
  padding: 3px 8px;
  background: rgba(var(--ink-rgb),0.06);
  border-radius: 4px;
  color: var(--ink-mid);
  white-space: nowrap;
}

/* ============================================================
   3D GENERATION (dark)
============================================================ */
.d3-card {
  display: grid;
  grid-template-columns: 1fr auto 1.1fr;
  gap: 18px;
  align-items: center;
  width: 100%;
  max-width: 560px;
}
@media (max-width: 720px){
  .d3-card { grid-template-columns: 1fr; }
  .d3-arrow svg { transform: rotate(90deg); }
}
.d3-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.d3-ph {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 12%;
  overflow: hidden;
}
.d3-ph .ai-fill { width: 100%; height: 100%; border-radius: 3px; }
.d3-arrow svg { width: 60px; height: 16px; }
.d3-arrow svg path {
  stroke-dashoffset: 0;
  animation: dashFlow 1.4s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -16; } }

.d3-model {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.d3-cube {
  width: 130px;
  height: 130px;
  position: relative;
  transform-style: preserve-3d;
  animation: d3spin 12s linear infinite;
}
@keyframes d3spin {
  from { transform: rotateY(0deg) rotateX(-12deg); }
  to   { transform: rotateY(360deg) rotateX(-12deg); }
}
.d3-face {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4A4A45 0%, #6A6A65 50%, #3A3A35 100%);
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0.92;
}
.d3-face.f1 { transform: translateZ(65px); }
.d3-face.f2 { transform: rotateY( 90deg) translateZ(65px); }
.d3-face.f3 { transform: rotateY(180deg) translateZ(65px); }
.d3-face.f4 { transform: rotateY(-90deg) translateZ(65px); }
.d3-face.f5 { transform: rotateX( 90deg) translateZ(65px); }
.d3-face.f6 { transform: rotateX(-90deg) translateZ(65px); }

.d3-meta { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.d3-meta b { color: #fff; font-size: 13.5px; font-family: var(--f-mono); }
.d3-meta span { color: rgba(255,255,255,0.55); font-size: 11.5px; }

/* light tick variant for dark sections */
.tick.light li { color: rgba(255,255,255,0.78); }
.tick.light li::before { background: var(--bg-card); }
.tick.light li::after { border-color: var(--ink); }

/* ============================================================
   STORAGE GRID
============================================================ */
.storage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 920px){ .storage-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .storage-grid { grid-template-columns: 1fr; } }
.storage-card {
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.storage-card h4 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0;
  line-height: 1.1;
}
.storage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ============================================================
   COMPARE
============================================================ */
.compare-table { padding: 0; overflow: hidden; }
.cmp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cmp-row:last-child { border-bottom: none; }
.cmp-row > span { display: inline-flex; align-items: center; gap: 8px; }
.cmp-row .hl {
  background: rgba(var(--ink-rgb),0.04);
  margin: -16px 0;
  padding: 16px 14px;
  font-weight: 500;
}
.cmp-row.cmp-head {
  background: var(--bg-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 24px;
}
.cmp-row.cmp-head .hl {
  background: var(--ink);
  color: var(--bg);
  margin: -14px 0;
  padding: 14px 14px;
}
.cmp-row .dim { color: var(--muted-2); }
.cmp-row .dim.partial { color: var(--warn); }
.cmp-row .dt { width: 9px; height: 9px; }
.cmp-foot {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin: 32px auto 0;
  max-width: 720px;
}
@media (max-width: 720px){
  .cmp-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 12px 14px; font-size: 12.5px; }
  .cmp-row.cmp-head { padding: 12px 14px; }
  .cmp-row .hl { padding: 12px 8px; margin: -12px 0; }
}

.foot-cols a.on { color: #fff; }

/* ── White mode (html[data-theme="light"]) overrides ── */

/* folder dots: original ink-weight hues (brightened versions wash out on white) */
html[data-theme="light"] .ds-fdot.c-1 { background: #5F6E3D; }
html[data-theme="light"] .ds-fdot.c-2 { background: #2A2A26; }
html[data-theme="light"] .ds-fdot.c-3 { background: #8A3F2C; }
html[data-theme="light"] .ds-fdot.c-4 { background: #3F5A55; }

/* photo-mock placeholders: rgba(255,255,255,0.06) is invisible on white cards */
html[data-theme="light"] .dgc-img,
html[data-theme="light"] .so-img,
html[data-theme="light"] .va-img,
html[data-theme="light"] .pr-thumb { background: var(--bg-soft); }

/* active sync node: its var(--ink) surface is dark again */
html[data-theme="light"] .st-node.active .muted { color: rgba(255,255,255,0.6); }
html[data-theme="light"] .st-node.active .stn-stat { color: rgba(255,255,255,0.85); }

/* selected variant row: original olive tint for white bg */
html[data-theme="light"] .va-row.on {
  background: rgba(95, 110, 61, 0.10);
  border-color: rgba(95, 110, 61, 0.30);
}
