/* ==========================================================================
   BeingSelfish site styles.
   Built on assets/css/tokens.css + components.css (the BeingSelfish design system).
   Only semantic tokens and design-system classes; nothing here invents new colours,
   radii or spacing values.
   ========================================================================== */

/* ---------- Typography: CLOU-inspired ----------
   CLOU uses Circular (commercial). Figtree is the closest free geometric sans: one family for
   display, body and labels, regular weight, tight tracking. */
:root {
  --font-display: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { letter-spacing: -0.01em; }
.t-hero, .t-product, .t-section, .t-h1, h1, .t-h2, h2 { font-weight: 400; letter-spacing: -0.03em; }
.t-label, .eyebrow, .badge, .chip-category, .table th, .footer__col h2 { letter-spacing: 0.02em; }

/* ---------- Base additions ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + var(--space-4)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }

/* Line icons: 24px grid, 1.5 stroke, square caps (design system section 9) */
svg[viewBox="0 0 24 24"] {
  fill: none; stroke: currentColor; stroke-width: var(--icon-stroke);
  stroke-linecap: square; stroke-linejoin: miter;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: var(--z-toast);
  background: var(--interactive); color: var(--on-interactive);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

.announce[hidden] { display: none; }

/* ---------- Nav ---------- */
.nav__actions .btn--icon { position: relative; }
.nav-saved__count {
  position: absolute; top: 6px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--radius-pill); background: var(--accent); color: var(--white);
  font-size: 10px; font-weight: var(--fw-semibold); line-height: 16px; text-align: center;
}
.nav-saved__count[hidden] { display: none; }
@media (max-width: 1023px) { .nav__cta { display: none; } }
.nav__panel a.btn--primary { color: var(--on-interactive); font-size: var(--fs-button); min-height: var(--touch-min); justify-content: center; }

/* ---------- Brand logo (circular artwork) ---------- */
.brand-logo { display: inline-flex; flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--charcoal-900); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-logo--lg { width: 72px; height: 72px; }
@media (max-width: 767px) { .brand-logo { width: 40px; height: 40px; } .brand-logo--lg { width: 64px; height: 64px; } }

/* ---------- Hero: 3D elliptical ring ---------- */
.ring-hero { padding-bottom: var(--space-12); overflow: hidden; }

.ring-stage {
  position: relative;
  height: var(--ring-h, 680px);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  outline: none;
}
.ring-stage:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: calc(-1 * var(--space-2)); border-radius: var(--radius-lg); }
@media (hover: hover) and (pointer: fine) { .ring-stage, .ring-stage a, .ring-stage button { cursor: none; } }

.ring-scene {
  position: absolute; inset: 0;
  perspective: var(--ring-persp, 1600px);
  perspective-origin: 50% var(--ring-cy, 50%);
}
.ring-cam {
  position: absolute; left: 50%; top: var(--ring-cy, 50%);
  width: 0; height: 0;
  transform-style: preserve-3d;
}
.ring {
  position: absolute; left: 0; top: 0;
  width: 0; height: 0;
  transform-style: preserve-3d;
}
.ring-stage.is-grabbing .ring-cursor { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--interactive); }
.ring-centre.is-dim { opacity: 0; transition: opacity var(--dur-base) var(--ease-standard); }
.ring-centre { transition: opacity var(--dur-slow) var(--ease-standard); }


/* One card = a photograph standing radially in the ring, like a divider in a folder.
   Two faces so both sides show the photo the right way round. */
.ring-card {
  position: absolute; left: 0; top: 0;
  width: var(--cd); height: var(--ch);
  margin-left: calc(var(--cd) / -2); margin-top: calc(var(--ch) / -2);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.ring-card__face {
  position: absolute; inset: 0;
  overflow: hidden; border-radius: 2px;
  background: var(--bg-tertiary);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(25, 27, 26, 0.06);
}
.ring-card__face--back { transform: rotateY(180deg); }
.ring-card__face img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.ring-card.is-selected .ring-card__face { box-shadow: inset 0 0 0 2px var(--accent); }

/* Category labels orbit just outside the ring and always face the viewer */
.ring-labels { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.ring-label {
  position: absolute; left: 0; top: 0;
  white-space: nowrap; pointer-events: auto;
  will-change: transform;
}
.ring-label button {
  display: inline-flex; align-items: flex-start; gap: 2px;
  transform: translate(-50%, -50%);
  padding: var(--space-2) var(--space-2); margin: 0; border: 0;
  background: rgba(255, 255, 255, 0.86); border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: var(--fs-button); font-weight: var(--fw-medium); line-height: 1;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-standard);
}
.ring-label sup { font-family: var(--font-mono); font-size: 10px; font-weight: var(--fw-regular); line-height: 1; color: var(--text-secondary); top: 0; position: relative; }
.ring-label button:hover, .ring-label button[aria-pressed="true"] { color: var(--text-primary); }
.ring-label button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.ring-label button[aria-pressed="true"] sup { color: var(--text-accent); }
.ring-label button:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: 0; border-radius: var(--radius-xs); }

/* Cursor dot, as in the reference */
.ring-cursor {
  position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--interactive); opacity: 0;
  transition: width var(--dur-base) var(--ease-standard), height var(--dur-base) var(--ease-standard),
    margin var(--dur-base) var(--ease-standard), opacity var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard);
}
.ring-stage.has-cursor .ring-cursor { opacity: 1; }
.ring-stage.is-over-card .ring-cursor { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--accent); }
@media (hover: none), (pointer: coarse) { .ring-cursor { display: none; } }

/* Style filters under the ring */
.ring-styles { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); position: relative; z-index: 2; }
.ring-styles .chips { justify-content: center; max-width: 960px; }
.ring-styles .chip sup { font-family: var(--font-mono); font-size: 10px; font-weight: var(--fw-regular); opacity: 0.7; margin-left: 2px; position: relative; top: -2px; }
.ring-hint { margin: 0; text-align: center; }
@media (max-width: 767px) {
  .ring-styles .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: 100%; width: 100%; padding-bottom: var(--space-2); scrollbar-width: none; }
  .ring-styles .chips::-webkit-scrollbar { display: none; }
}

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; gap: var(--space-6) var(--grid-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-tile {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: 0; border: 0; background: none; text-align: left; color: var(--text-primary); cursor: pointer;
}
.cat-tile__media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-tertiary); border: var(--border-width) solid transparent;
  transition: border-color var(--dur-fast) var(--ease-standard);
}
.cat-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-standard); }
.cat-tile__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.cat-tile__name { font-size: var(--fs-body-lg); font-weight: var(--fw-medium); line-height: 1.3; }
@media (hover: hover) {
  .cat-tile:hover .cat-tile__media { border-color: var(--border-strong); }
  .cat-tile:hover .cat-tile__media img { transform: scale(1.02); }
  .cat-tile:hover .cat-tile__name { text-decoration: underline; text-underline-offset: 4px; }
}

/* ---------- Product grid + pick cards ---------- */
.product-grid { display: grid; gap: var(--space-6) var(--grid-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card-pick { position: relative; height: 100%; }
.surface-warm .card-pick { background: var(--white); }
.card-pick__media { position: relative; }
.card-pick__media img { position: absolute; inset: 0; }
.card-pick__link { color: inherit; text-decoration: none; }
.card-pick__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-pick__link:focus-visible { outline: none; }
.card-pick:has(.card-pick__link:focus-visible) { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.card-pick__meta { flex-wrap: wrap; justify-content: flex-start; gap: var(--space-2); }
.card-pick__footer .t-caption { color: var(--text-secondary); }
.card-pick__shop { position: relative; z-index: 0; pointer-events: none; }
.save-btn { position: relative; z-index: 2; }
.card-pick .save-btn { position: absolute; top: var(--space-4); right: var(--space-4); background: var(--white); }
.save-btn[aria-pressed="true"] { color: var(--accent); }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }
@media (hover: hover) {
  .card-pick:hover { border-color: var(--charcoal-900); }
  .card-pick:hover .card-pick__media img { transform: scale(1.02); }
  .card-pick:hover .card-pick__shop { background: var(--interactive); color: var(--on-interactive); }
}
@media (max-width: 767px) {
  .product-grid .card-pick { padding: var(--space-3); gap: var(--space-2); }
  .product-grid .card-pick .save-btn { top: var(--space-2); right: var(--space-2); --btn-h: 36px; }
  .product-grid .card-pick__footer { padding-top: var(--space-3); flex-wrap: wrap; gap: var(--space-2); }
  .product-grid .card-pick__footer .t-caption { display: none; }
  .product-grid .card-pick__shop { width: 100%; }
}

/* ---------- Collections ---------- */
.coll-grid { display: grid; gap: var(--space-8) var(--grid-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .coll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .coll-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.coll-card {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: 0 0 0; border: 0; background: none; text-align: left; color: var(--text-primary); cursor: pointer;
}
.coll-card__collage {
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--space-2);
  aspect-ratio: 5 / 4; border-radius: var(--radius-lg); overflow: hidden;
}
.coll-card__collage span { position: relative; overflow: hidden; background: var(--bg-tertiary); border-radius: var(--radius-xs); }
.coll-card__collage span:first-child { grid-row: span 2; }
.coll-card__collage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-standard); }
.coll-card__text { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-4); align-items: baseline; padding-top: var(--space-4); border-top: var(--border-width) solid var(--border-default); }
.coll-card__num { grid-row: span 2; color: var(--text-accent); }
.coll-card__title { font-size: var(--fs-h4); font-weight: var(--fw-medium); line-height: var(--lh-h4); }
.coll-card__line { color: var(--text-secondary); font-size: var(--fs-caption); margin: 0; }
@media (hover: hover) {
  .coll-card:hover .coll-card__collage img { transform: scale(1.02); }
  .coll-card:hover .coll-card__title { text-decoration: underline; text-underline-offset: 4px; }
}

/* ---------- Outfit inspiration (forest band) ---------- */
.looks { display: flex; flex-direction: column; gap: var(--space-8); }
.looks__head { display: flex; flex-direction: column; gap: var(--space-6); }
@media (min-width: 1024px) { .looks__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.looks .eyebrow { color: var(--text-accent); }
.look { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); animation: rise var(--dur-slow) var(--ease-standard); }
@media (min-width: 1024px) { .look { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); align-items: start; } }
.look__hero { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.look__hero img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-standard); }
@media (hover: hover) { .look__hero:hover img { transform: scale(1.02); } }
.look__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (min-width: 1024px) { .look__pair { grid-template-columns: minmax(0, 1fr); } }
.look__tile { display: block; position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.look__tile img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--dur-slow) var(--ease-standard); }
@media (hover: hover) { .look__tile:hover img { transform: scale(1.02); } }
.look__side { display: flex; flex-direction: column; gap: var(--space-6); }
.look__title { font-family: var(--font-display); font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: var(--fw-regular); }
.look__line { color: var(--text-secondary); margin: 0; }
.look .console { align-self: stretch; }
.console__rows a { color: var(--text-primary); text-decoration: none; }
.console__rows a:hover { text-decoration: underline; text-underline-offset: 3px; }
.console__rows .shop { color: var(--text-link); white-space: nowrap; }

/* ---------- Discover: toolbar + filters ---------- */
.toolbar { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr) auto; margin-bottom: var(--space-4); }
.toolbar__search { grid-column: 1 / -1; }
.toolbar__sort .select { min-width: 0; }
@media (min-width: 768px) {
  .toolbar { grid-template-columns: minmax(0, 1fr) 260px; }
  .toolbar__search { grid-column: auto; }
  .toolbar__toggle { display: none; }
}
.filters {
  display: none; gap: var(--space-4) var(--grid-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: var(--space-6) 0; border-top: var(--border-width) solid var(--border-default);
}
.filters.is-open { display: grid; }
@media (min-width: 768px) { .filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .filters { grid-template-columns: repeat(6, minmax(0, 1fr)); } .filters:has(#price-field:not([hidden])) { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.filters .field[hidden] { display: none; }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-6); }
.active-filters[hidden] { display: none; }
.active-filters .chip svg { width: var(--icon-sm); height: var(--icon-sm); }
.filter-note { margin: 0 0 var(--space-6); }
.filter-note[hidden] { display: none; }

.empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; padding: var(--space-16) 0; }
.empty[hidden] { display: none; }
.more { display: flex; justify-content: center; margin-top: var(--space-12); }
.more .btn[hidden] { display: none; }

/* ---------- Footer ---------- */
.footer .wordmark { color: var(--white); }
.footer__about { color: #B9C2BE; font-size: var(--fs-body); margin: 0; }

/* Toasts */
.toast-region .toast .btn--icon { --btn-h: 36px; }


/* ======================================================================
   Ring centre, zoomed detail view, phones (CLOU-style)
   ====================================================================== */
.ring-centre {
  position: absolute; z-index: 3;
  left: var(--hole-x, 30%); top: var(--hole-y, 30%);
  width: var(--hole-w, 40%); height: var(--hole-h, 40%);
  display: grid; place-items: center; pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-standard);
}
.ring-centre > * { grid-area: 1 / 1; }
.ring-centre.is-dim { opacity: 0; }
.ring-hello { text-align: center; transition: opacity var(--dur-base) var(--ease-standard); }
.ring-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--title-fs, var(--fs-hero)); line-height: 1; letter-spacing: -0.035em;
  color: var(--text-primary); white-space: nowrap; margin: 0;
}
.ring-subline { margin: var(--space-3) auto 0; font-size: 12px; line-height: 1.4; color: var(--text-secondary); letter-spacing: 0; max-width: none; }
.ring-centre.has-product .ring-hello { opacity: 0; }

.ring-product {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  max-width: 100%; text-align: center; color: var(--text-primary); text-decoration: none;
  pointer-events: auto; cursor: none;
}
.ring-product[hidden] { display: none; }
.ring-product__name { font-family: var(--font-display); font-size: var(--name-fs, 28px); line-height: 1.1; letter-spacing: -0.03em; }
.ring-product__media { position: relative; display: block; width: var(--media-w, 260px); height: var(--media-h, 200px); }
.ring-product__media img, .ring-detail__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity var(--dur-base) var(--ease-standard);
}
.ring-product__media img.is-on, .ring-detail__media img.is-on { opacity: 1; }
.ring-product__meta { font-size: 13px; color: var(--text-secondary); }
.ring-product.is-in .ring-product__name { animation: rise var(--dur-slow) var(--ease-standard); }

/* Zoomed: product detail left (top on phones), stack of cards right (below on phones) */
.ring-detail {
  position: absolute; z-index: 4;
  left: var(--container-pad); top: 50%; transform: translateY(-50%);
  width: min(46vw, 620px);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
}
.ring-detail[hidden] { display: none; }
.ring-detail.is-in { animation: fade var(--dur-slow) var(--ease-standard); }
.ring-detail__group { margin: 0; font-size: 13px; color: var(--text-primary); }
.ring-detail__name { margin: 0 0 var(--space-2); font-family: var(--font-display); font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 400; }
.ring-detail__media { position: relative; display: block; width: 100%; height: var(--detail-media-h, 46vh); }
.ring-detail__media img { object-position: left center; }
.ring-detail__link {
  font-size: var(--fs-body); font-weight: 600; color: var(--text-primary);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px;
}
.ring-detail__link:hover { color: var(--text-primary); text-decoration-thickness: 2px; }
.ring-back {
  position: absolute; z-index: 5; left: var(--container-pad); bottom: var(--space-4);
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 2px;
  display: grid; place-items: center; background: var(--interactive); color: var(--on-interactive);
}
.ring-back[hidden] { display: none; }
.ring-back svg { width: 18px; height: 18px; }
.ring-stage.is-zoom .ring-centre { opacity: 0; pointer-events: none; }

.ring-styles__label { font-size: 13px; color: var(--text-secondary); }
.ring-hint { margin: 0; text-align: center; font-size: 12px; color: var(--text-secondary); }
.ring-cats { display: none; }
.ring-label button { font-family: var(--font-body); font-size: 14px; font-weight: 400; letter-spacing: -0.01em; }
.ring-label sup { font-family: var(--font-body); font-size: 8px; }

@media (max-width: 767px) {
  .ring-stage { height: var(--ring-h); }
  .ring-centre { left: 0; top: var(--space-4); width: 100%; height: auto; display: block; text-align: center; }
  .ring-stage.is-zoom .ring-centre { opacity: 1; }
  .ring-title { font-size: 40px; }
  .ring-subline { font-size: 11px; margin-top: var(--space-2); }
  .ring-detail { left: var(--space-4); right: var(--space-4); width: auto; top: var(--detail-top, 110px); transform: none; gap: var(--space-2); }
  .ring-detail__name { font-size: 26px; }
  .ring-detail__media { height: var(--detail-media-h, 240px); }
  .ring-detail__media img { object-position: center; }
  .ring-cats { display: flex; }
  .ring-back { display: none; }
}

/* ======================================================================
   Filters under the ring: quiet text rows instead of pills
   ====================================================================== */
.ring-styles { gap: var(--space-4); }
.ring-filter { display: flex; align-items: baseline; justify-content: center; gap: 20px; max-width: 1040px; width: 100%; }
.ring-filter__label {
  flex: none; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary);
  padding-right: 20px; border-right: var(--border-width) solid var(--border-default); line-height: 1;
}
.ring-filter__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1) 20px; }
.ring-filter__item {
  appearance: none; background: none; border: 0; padding: 4px 0; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 400; letter-spacing: -0.01em;
  color: var(--text-secondary); white-space: nowrap;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-standard), text-decoration-color var(--dur-fast) var(--ease-standard);
}
.ring-filter__item sup { font-size: 9px; margin-left: 3px; top: -0.6em; position: relative; vertical-align: baseline; opacity: 0.8; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .ring-filter__item:hover:not(:disabled) { color: var(--text-primary); } }
.ring-filter__item[aria-pressed="true"] { color: var(--text-primary); text-decoration-color: currentColor; }
.ring-filter__item:disabled { opacity: 0.35; cursor: default; }
.ring-filter__item:focus-visible { outline: 2px solid var(--focus-ring, currentColor); outline-offset: 2px; border-radius: 2px; }
.ring-filter--cats { display: none; }
.ring-cats { display: flex; }
@media (max-width: 767px) {
  .ring-filter, .ring-filter--cats { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .ring-filter__label { border: 0; padding: 0; }
  .ring-filter__list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: 100%; gap: 20px; scrollbar-width: none; padding-bottom: 2px; }
  .ring-filter__list::-webkit-scrollbar { display: none; }
  .ring-filter__item { font-size: 15px; }
  .ring-styles .ring-hint { align-self: flex-start; text-align: left; }
}

/* ======================================================================
   Phones: the gear at the right edge of the screen, level with the stack
   ====================================================================== */
.ring-gear {
  position: absolute; right: 12px; top: var(--ring-cy, 70%); z-index: 4;
  width: 52px; height: 52px; margin: -26px 0 0 0; padding: 0;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--bg-primary); color: var(--text-primary);
  border: var(--border-width) solid var(--border-default);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent;
}
.ring-gear[hidden] { display: none; }
.ring-gear svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.ring-gear.is-turning { cursor: grabbing; background: var(--interactive); color: var(--on-interactive); border-color: var(--interactive); }
@media (min-width: 768px) { .ring-gear { display: none; } }

/* ======================================================================
   Side menu (drawer)
   ====================================================================== */
.drawer { position: fixed; inset: 0; z-index: 1000; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); opacity: 0; transition: opacity 320ms var(--ease-standard); }
.drawer__sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  display: flex; flex-direction: column; gap: var(--space-8);
  background: var(--bg-primary); color: var(--text-primary);
  padding: var(--space-4) var(--space-6) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; transform: translateX(100%); transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__sheet { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.drawer__brand { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.drawer__close {
  width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center;
  background: none; border: 0; color: inherit; cursor: pointer; border-radius: 50%;
}
.drawer__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.drawer__main { display: flex; flex-direction: column; border-top: var(--border-width) solid var(--border-default); }
.drawer__main a {
  display: flex; align-items: baseline; gap: var(--space-4);
  padding: var(--space-4) 0; border-bottom: var(--border-width) solid var(--border-default);
  font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 400;
  color: var(--text-primary); text-decoration: none;
  transition: padding-left var(--dur-base) var(--ease-standard);
}
@media (hover: hover) { .drawer__main a:hover { padding-left: var(--space-2); } }
.drawer__num { font-size: 11px; letter-spacing: 0.04em; color: var(--text-secondary); font-variant-numeric: tabular-nums; width: 20px; flex: none; }
.drawer.is-open .drawer__main a { animation: drawer-in 480ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.drawer.is-open .drawer__main a:nth-child(2) { animation-delay: 40ms; }
.drawer.is-open .drawer__main a:nth-child(3) { animation-delay: 80ms; }
.drawer.is-open .drawer__main a:nth-child(4) { animation-delay: 120ms; }
.drawer.is-open .drawer__main a:nth-child(5) { animation-delay: 160ms; }
@keyframes drawer-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.drawer__label { margin: 0 0 var(--space-3); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.drawer__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); }
.drawer__list a { color: var(--text-primary); text-decoration: none; font-size: 16px; }
.drawer__list a span { font-size: 10px; color: var(--text-secondary); vertical-align: super; margin-left: 2px; }
.drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-4); align-items: center; }
.drawer__foot .btn--primary { color: var(--on-interactive); }
.drawer__yt { font-size: 14px; color: var(--text-secondary); text-decoration: underline; text-underline-offset: 4px; }
html.drawer-open, html.drawer-open body { overflow: hidden; }
@media (min-width: 1024px) { .drawer { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .drawer__sheet, .drawer__scrim { transition: none; } .drawer.is-open .drawer__main a { animation: none; } }

/* ======================================================================
   Find your piece: quiet, editorial (matches the ring and CLOU's type)
   ====================================================================== */
.find-head { margin-bottom: var(--space-8); }
.find-head__kicker { margin: 0 0 var(--space-2); font-size: 14px; color: var(--text-primary); }
.find-head__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.find-head__title { margin: 0; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.05; font-weight: 400; letter-spacing: -0.035em; }
.find-head__count { margin: 0; flex: none; font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

.find-bar { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-6); }
.find-bar__search { position: relative; flex: 1; }
.find-bar__input {
  width: 100%; height: 48px; padding: 0 32px 0 0;
  background: transparent; border: 0; border-bottom: var(--border-width) solid var(--text-primary); border-radius: 0;
  font-family: var(--font-body); font-size: 18px; letter-spacing: -0.01em; color: var(--text-primary);
  -webkit-appearance: none; appearance: none;
}
.find-bar__input::placeholder { color: var(--text-secondary); }
.find-bar__input:focus { outline: none; border-bottom-width: 2px; }
.find-bar__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.find-bar__search svg { position: absolute; right: 0; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: currentColor; stroke-width: 1.4; pointer-events: none; }
.find-bar__actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.find-bar__link {
  appearance: none; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--text-primary);
  font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px;
}
.find-bar__plus { display: inline-block; min-width: 0.6em; }
.find-bar__sort { position: relative; display: inline-flex; align-items: center; }
.find-bar__sort::after { content: ""; position: absolute; right: 2px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.find-bar__select {
  appearance: none; -webkit-appearance: none; background: transparent; border: 0; border-radius: 0; cursor: pointer;
  padding: 4px 18px 4px 0; font-family: var(--font-body); font-size: 15px; color: var(--text-primary); letter-spacing: -0.01em;
  field-sizing: content;
}
.find-bar__select:focus-visible, .find-bar__link:focus-visible { outline: 2px solid var(--focus-ring, currentColor); outline-offset: 3px; }
@media (min-width: 768px) {
  .find-bar { flex-direction: row; align-items: flex-end; gap: var(--space-10); }
  .find-bar__actions { flex: none; gap: var(--space-8); padding-bottom: 10px; }
}

/* filter panel: hidden until "Filter +", plain underlined selects */
#discover .filters { display: none; padding: var(--space-6) 0 var(--space-4); border-top: 0; gap: var(--space-6) var(--space-8); }
#discover .filters.is-open { display: grid; animation: rise var(--dur-slow) var(--ease-standard); }
#discover .filters .label { font-size: 12px; font-weight: 400; color: var(--text-secondary); margin-bottom: 2px; }
#discover .filters .select {
  height: 40px; padding: 0 18px 0 0; border: 0; border-bottom: var(--border-width) solid var(--border-default); border-radius: 0;
  background-color: transparent; font-size: 15px; background-position: calc(100% - 5px) 50%, 100% 50%;
}
#discover .filters .select:focus { border-bottom-color: var(--text-primary); box-shadow: none; }

/* active filters: text with ×, not pills */
#discover .active-filters { gap: var(--space-2) var(--space-6); }
#discover .active-filters .chip { height: auto; padding: 2px 0; border: 0; border-radius: 0; background: none; color: var(--text-primary); font-size: 14px; font-weight: 400; text-decoration: underline; text-underline-offset: 5px; }
#discover .active-filters .btn { font-size: 14px; }

/* product cards: photo, a small kicker, the name, "Shop on … +" */
#discover .product-grid { gap: var(--space-10) var(--grid-gap); }
#discover .card-pick { display: flex; flex-direction: column; gap: 0; padding: 0; background: none; border: 0; border-radius: 0; }
#discover .card-pick__media { aspect-ratio: 4 / 5; margin: 0 0 var(--space-3); background: #f3f2ef; border-radius: 0; overflow: hidden; }
#discover .card-pick__media img { object-fit: cover; }
#discover .card-pick__kicker { margin: 0 0 4px; font-size: 12px; color: var(--text-secondary); }
#discover .card-pick__title { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 400; letter-spacing: -0.02em; }
#discover .card-pick__price { margin: 4px 0 0; font-size: 14px; }
#discover .card-pick__shop {
  align-self: flex-start; margin-top: var(--space-3); font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; pointer-events: none;
}
#discover .save-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--text-primary);
}
#discover .save-btn svg { width: 20px; height: 20px; }
#discover .save-btn[aria-pressed="true"] svg { fill: currentColor; }
@media (hover: hover) {
  #discover .card-pick:hover { border-color: transparent; }
  #discover .card-pick:hover .card-pick__media img { transform: scale(1.03); }
  #discover .card-pick:hover .card-pick__shop { text-decoration-thickness: 2.5px; }
}
@media (max-width: 767px) {
  #discover .product-grid { gap: var(--space-8) var(--space-4); }
  #discover .card-pick__title { font-size: 15px; }
  #discover .card-pick__shop { font-size: 13px; }
  #discover .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); }
}

/* ======================================================================
   Style Themes, laid out like a CLOU project page
   ====================================================================== */
.theme { padding: var(--space-16) 0 var(--space-20); }
.theme__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
.theme__kicker { margin: 0 0 var(--space-3); font-size: 14px; color: var(--text-primary); }
.theme__title { margin: 0; font-size: clamp(3rem, 1.6rem + 4.2vw, 5.25rem); line-height: 1; font-weight: 400; letter-spacing: -0.065em; }
.theme__title-text {
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.04em;
  background-image: linear-gradient(var(--text-primary), var(--text-primary)); background-repeat: no-repeat;
  background-size: 0% 100%; background-position: left center;
}
/* CLOU's title reveal: a black block sweeps across, the name shows white on black, then the block slides away */
.theme__title-text.is-wipe { animation: theme-wipe 1.1s cubic-bezier(0.65, 0, 0.35, 1) both; }
@keyframes theme-wipe {
  0%   { background-size: 0% 100%; background-position: left center; color: transparent; }
  38%  { background-size: 100% 100%; background-position: left center; color: transparent; }
  39%  { color: var(--bg-primary); }
  62%  { background-size: 100% 100%; background-position: right center; color: var(--bg-primary); }
  100% { background-size: 0% 100%; background-position: right center; color: var(--text-primary); }
}

.theme__index-head { margin: 0 0 var(--space-3); font-size: 14px; color: var(--text-secondary); }
.theme__index-head sup { font-size: 9px; }
.theme__list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1) 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.theme__list::-webkit-scrollbar { display: none; }
.theme__tab {
  appearance: none; background: none; border: 0; padding: 4px 0; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-body); font-size: 16px; letter-spacing: -0.01em; color: var(--text-secondary);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-standard), text-decoration-color var(--dur-fast) var(--ease-standard);
}
.theme__num { font-size: 11px; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .theme__tab:hover { color: var(--text-primary); } }
.theme__tab[aria-pressed="true"] { color: var(--text-primary); text-decoration-color: currentColor; }
.theme__all {
  align-self: flex-start; font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.04em; color: var(--text-primary);
  text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1.5px;
}
.theme__sticky { display: flex; flex-direction: column; gap: var(--space-6); }

.theme__main { display: flex; flex-direction: column; gap: var(--space-8); }
.theme__main.is-in { animation: theme-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes theme-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.theme__tagline { margin: 0; max-width: 30ch; font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.1rem); line-height: 1.15; font-weight: 400; letter-spacing: -0.03em; }
.theme__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.theme__shot { display: flex; flex-direction: column; gap: 10px; color: var(--text-primary); text-decoration: none; }
.theme__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #f3f2ef; }
.theme__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) { .theme__shot:hover .theme__img img { transform: scale(1.03); } .theme__shot:hover .theme__cap-shop { text-decoration-thickness: 2.5px; } }
.theme__cap { display: flex; flex-direction: column; gap: 2px; }
.theme__cap-role { font-size: 12px; color: var(--text-secondary); }
.theme__cap-name { font-size: 16px; letter-spacing: -0.02em; }
.theme__cap-shop { margin-top: 6px; align-self: flex-start; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.theme__specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); }
.theme__specs dt { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.theme__specs dd { margin: 0; font-size: 15px; line-height: 1.35; letter-spacing: -0.01em; }
.theme__specs a { color: inherit; text-decoration: none; }
@media (hover: hover) { .theme__specs a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.theme__more { align-self: flex-start; font-size: 16px; font-weight: 600; color: var(--text-primary); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.theme__more sup { font-size: 9px; font-weight: 400; }

@media (min-width: 768px) {
  .theme__specs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-10) var(--space-6); }
  .theme__pair { gap: var(--space-6); }
}
@media (min-width: 1024px) {
  .theme { padding: var(--space-20) 0 var(--space-24); }
  .theme__grid { grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr); gap: 0; }
  .theme__side { padding-right: var(--space-10); }
  .theme__sticky { position: sticky; top: calc(var(--nav-height) + var(--space-6)); min-height: calc(100vh - var(--nav-height) - var(--space-12)); max-height: calc(100vh - var(--nav-height) - var(--space-12)); gap: var(--space-8); }
  .theme__list { flex-direction: column; flex-wrap: nowrap; overflow: visible; gap: 2px; }
  .theme__all { margin-top: auto; }
  .theme__main { gap: var(--space-10); padding-top: var(--space-6); }
}
@media (max-width: 1023px) { .theme__all { display: none; } }
@media (prefers-reduced-motion: reduce) { .theme__title-text.is-wipe, .theme__main.is-in { animation: none; } }

/* ======================================================================
   Style Themes: the outfit as a combination
   1. a sum (piece + piece + piece + piece = the look)
   2. a moodboard where the pieces overlap, dressed top to bottom
   3. a numbered breakdown
   ====================================================================== */
.outfit-sum { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.outfit-sum__piece { display: block; width: 64px; aspect-ratio: 4 / 5; overflow: hidden; background: #f3f2ef; transition: opacity 300ms ease, transform 300ms ease; }
.outfit-sum__piece img { width: 100%; height: 100%; object-fit: cover; }
.outfit-sum__op { font-size: 30px; font-weight: 300; line-height: 1; color: var(--text-secondary); }
.outfit-sum__op--eq { color: var(--text-primary); }
.outfit-sum__result { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); letter-spacing: -0.045em; line-height: 1; background: var(--text-primary); color: var(--bg-primary); padding: 4px 10px 6px; }

.outfit-board {
  position: relative; aspect-ratio: 10 / 11; container-type: inline-size;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.09) 1px, transparent 1.4px) 0 0 / 22px 22px,
    #faf9f6;
  overflow: hidden;
}
.outfit-board__word {
  position: absolute; right: 2%; top: 3%; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 11.5cqw; line-height: 0.9; letter-spacing: -0.05em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(0, 0, 0, 0.22); pointer-events: none; user-select: none;
}
.outfit-board__piece {
  --r: 0deg; position: absolute; display: block; aspect-ratio: 4 / 5;
  padding: 1.1cqw; background: #fff; box-shadow: 0 1.6cqw 4cqw rgba(0, 0, 0, 0.14), 0 0.2cqw 0.6cqw rgba(0, 0, 0, 0.06);
  transform: rotate(var(--r)); transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease, box-shadow 400ms ease;
  color: var(--text-primary); text-decoration: none;
}
.outfit-board__piece img { width: 100%; height: 100%; object-fit: cover; background: #f3f2ef; display: block; }
.outfit-board__piece--1 { --r: -3deg;  left: 4%;  top: 1.8%; width: 44%; z-index: 2; }
.outfit-board__piece--2 { --r: 2.5deg; left: 42%; top: 15%;  width: 40%; z-index: 3; }
.outfit-board__piece--3 { --r: 3.5deg; left: 6%;  top: 53%;  width: 38%; z-index: 4; }
.outfit-board__piece--4 { --r: -5deg;  left: 60%; top: 56%;  width: 30%; z-index: 5; }
.outfit-board__tag {
  position: absolute; left: 2.4cqw; bottom: 2.4cqw; padding: 0.5cqw 1.2cqw;
  background: var(--bg-primary); font-size: max(11px, 1.6cqw); letter-spacing: -0.01em; white-space: nowrap;
}
@media (hover: hover) {
  .outfit-board__piece:hover { transform: rotate(0deg) scale(1.04); z-index: 9; box-shadow: 0 3cqw 7cqw rgba(0, 0, 0, 0.2); }
}

.outfit-list { list-style: none; margin: 0; padding: 0; border-top: var(--border-width) solid var(--text-primary); }
.outfit-list li { border-bottom: var(--border-width) solid var(--border-default); }
.outfit-list__row {
  display: grid; grid-template-columns: 44px 90px minmax(0, 1fr) auto; align-items: baseline; gap: 12px;
  padding: 14px 0; color: var(--text-primary); text-decoration: none; transition: opacity 300ms ease, padding 300ms ease;
}
.outfit-list__num { font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.outfit-list__role { font-size: 13px; color: var(--text-secondary); }
.outfit-list__name { font-size: 17px; letter-spacing: -0.02em; }
.outfit-list__shop { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; white-space: nowrap; }
@media (hover: hover) { .outfit-list__row:hover { padding-left: 8px; } }

/* hover one piece anywhere: it lights up in all three places */
#look[data-focus] .outfit-board__piece, #look[data-focus] .outfit-sum__piece, #look[data-focus] .outfit-list__row { opacity: 0.32; }
#look[data-focus="0"] [data-k="0"], #look[data-focus="1"] [data-k="1"], #look[data-focus="2"] [data-k="2"], #look[data-focus="3"] [data-k="3"] { opacity: 1; }
#look[data-focus="0"] .outfit-board__piece[data-k="0"], #look[data-focus="1"] .outfit-board__piece[data-k="1"],
#look[data-focus="2"] .outfit-board__piece[data-k="2"], #look[data-focus="3"] .outfit-board__piece[data-k="3"] { transform: rotate(0deg) scale(1.04); z-index: 9; }

/* switching theme: the pieces are added one by one, then the sum resolves */
.theme__main.is-in .outfit-board__piece { animation: outfit-drop 900ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.theme__main.is-in .outfit-board__piece--2 { animation-delay: 140ms; }
.theme__main.is-in .outfit-board__piece--3 { animation-delay: 280ms; }
.theme__main.is-in .outfit-board__piece--4 { animation-delay: 420ms; }
@keyframes outfit-drop { from { opacity: 0; transform: translateY(-14%) rotate(calc(var(--r) * -3)) scale(1.06); } to { opacity: 1; transform: rotate(var(--r)); } }
.theme__main.is-in .outfit-sum > * { animation: outfit-pop 500ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.theme__main.is-in .outfit-sum > *:nth-child(2) { animation-delay: 60ms; }
.theme__main.is-in .outfit-sum > *:nth-child(3) { animation-delay: 140ms; }
.theme__main.is-in .outfit-sum > *:nth-child(4) { animation-delay: 200ms; }
.theme__main.is-in .outfit-sum > *:nth-child(5) { animation-delay: 280ms; }
.theme__main.is-in .outfit-sum > *:nth-child(6) { animation-delay: 340ms; }
.theme__main.is-in .outfit-sum > *:nth-child(7) { animation-delay: 420ms; }
.theme__main.is-in .outfit-sum > *:nth-child(8) { animation-delay: 560ms; }
.theme__main.is-in .outfit-sum > *:nth-child(9) { animation-delay: 680ms; }
@keyframes outfit-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
  .outfit-sum { gap: 8px 8px; }
  .outfit-sum__piece { width: 46px; }
  .outfit-sum__op { font-size: 20px; }
  .outfit-sum__result { font-size: 22px; }
  .outfit-list__row { grid-template-columns: 36px minmax(0, 1fr) auto; row-gap: 2px; }
  .outfit-list__role { grid-column: 2; grid-row: 1; font-size: 12px; }
  .outfit-list__name { grid-column: 2; grid-row: 2; font-size: 15px; }
  .outfit-list__num { grid-row: 1 / span 2; }
  .outfit-list__shop { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .theme__main.is-in .outfit-board__piece, .theme__main.is-in .outfit-sum > * { animation: none; }
}
.outfit-board__piece--2 .outfit-board__tag { bottom: auto; top: 2.4cqw; left: auto; right: 2.4cqw; }

/* ============ About + contact ============ */
.about { padding: var(--space-20) 0; border-top: 1px solid var(--border-default, #e6e6e6); }
.about__grid { display: grid; gap: var(--space-6); }
.about__kicker, .feedback__kicker { margin: 0; font-size: 14px; color: var(--text-primary); }
.about__title { margin: 0 0 var(--space-6); font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem); line-height: 1; font-weight: 400; letter-spacing: -0.05em; }
.about__lede { margin: 0 0 var(--space-12); max-width: 34ch; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); line-height: 1.4; letter-spacing: -0.015em; color: var(--text-primary); }
.about__links { margin: 0; display: grid; border-top: 1px solid var(--text-primary); }
.about__links > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--border-default, #e6e6e6); }
.about__links dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); align-self: center; }
.about__links dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.about__links a { font-size: 16px; color: var(--text-primary); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s ease; }
.about__links a:hover, .about__links a:focus-visible { background-size: 100% 1.5px; }
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 0.38fr 0.62fr; gap: 0; }
}

/* ============ Feedback ============ */
.feedback { padding: var(--space-20) 0; background: #0f0f0f; color: #fff; }
.feedback__inner { display: grid; justify-items: start; gap: var(--space-4); }
.feedback__kicker { color: rgba(255,255,255,.6); }
.feedback__title { margin: 0; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem); line-height: 1; font-weight: 400; letter-spacing: -0.05em; color: #fff; }
.feedback__lede { margin: 0 0 var(--space-6); max-width: 46ch; font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.72); }
.feedback__cta { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border: 1px solid #fff; border-radius: 999px; font-size: 16px; font-weight: 600; color: #0f0f0f; background: #fff; text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.feedback__cta:hover, .feedback__cta:focus-visible { background: transparent; color: #fff; }
.feedback__cta[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.about__title { max-width: 16ch; }
/* About: inverted highlight boxes + subscribe line */
.about__hl { background: var(--text-primary, #0f0f0f); color: var(--surface-page, #fff); padding: 0 .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.about__title .about__hl { padding: 0 .08em .04em; }
.about__lede { margin-bottom: var(--space-6); }
.about__sub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin: 0 0 var(--space-12); font-size: 16px; color: var(--text-primary); }
.about__subscribe { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #ff0033; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.about__subscribe svg { width: 16px; height: 16px; fill: currentColor; }
.about__subscribe:hover, .about__subscribe:focus-visible { background: #d6002b; transform: translateY(-1px); }

/* About: scroll-in animation (only when script.js adds .about--anim) */
.about--anim .about__kicker,
.about--anim .about__title,
.about--anim .about__lede,
.about--anim .about__sub,
.about--anim .about__links > div { opacity: 0; transform: translateY(28px); }
.about--anim .about__hl { background: linear-gradient(var(--text-primary, #0f0f0f), var(--text-primary, #0f0f0f)) 0 0 / 0% 100% no-repeat; color: inherit; }
.about--anim .about__subscribe { opacity: 0; transform: scale(.6); }

.about--anim.is-in .about__kicker,
.about--anim.is-in .about__title,
.about--anim.is-in .about__lede,
.about--anim.is-in .about__sub,
.about--anim.is-in .about__links > div { animation: about-up .9s cubic-bezier(.2,.7,.2,1) both; }
.about--anim.is-in .about__title { animation-delay: .12s; }
.about--anim.is-in .about__lede { animation-delay: .32s; }
.about--anim.is-in .about__sub { animation-delay: .52s; }
.about--anim.is-in .about__links > div:nth-child(1) { animation-delay: .9s; }
.about--anim.is-in .about__links > div:nth-child(2) { animation-delay: 1s; }
.about--anim.is-in .about__links > div:nth-child(3) { animation-delay: 1.1s; }

/* the black boxes wipe in left to right after the words arrive */
.about--anim.is-in .about__hl { animation: about-hl .8s cubic-bezier(.65,0,.35,1) both; }
.about--anim.is-in .about__title .about__hl:nth-of-type(1) { animation-delay: .7s; }
.about--anim.is-in .about__title .about__hl:nth-of-type(2) { animation-delay: .95s; }
.about--anim.is-in .about__lede .about__hl { animation-delay: 1.2s; }

/* subscribe: pops in, then a ring pulses out of it every few seconds */
.about__subscribe { position: relative; }
.about--anim.is-in .about__subscribe { animation: about-pop .6s cubic-bezier(.34,1.56,.64,1) 1.05s both, about-nudge 4s ease-in-out 2.4s infinite; }
.about--anim.is-in .about__subscribe::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255,0,51,.55); animation: about-ring 2s ease-out 1.8s infinite; pointer-events: none; }
.about--anim.is-in .about__subscribe svg { animation: about-play 4s ease-in-out 2.4s infinite; }
.about--anim.is-in .about__subscribe:hover { animation-play-state: paused; }

@keyframes about-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes about-hl {
  0% { background-size: 0% 100%; color: inherit; }
  60% { color: inherit; }
  100% { background-size: 100% 100%; color: var(--surface-page, #fff); }
}
@keyframes about-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes about-ring { 0% { box-shadow: 0 0 0 0 rgba(255,0,51,.55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(255,0,51,0); } }
@keyframes about-nudge { 0%, 82%, 100% { transform: scale(1); } 86% { transform: scale(1.07) rotate(-2deg); } 90% { transform: scale(1.07) rotate(2deg); } 94% { transform: scale(1); } }
@keyframes about-play { 0%, 82%, 100% { transform: none; } 88% { transform: translateX(3px); } }

/* Feedback: same scroll-in animation as About (only with .feedback--anim) */
.feedback--anim .feedback__kicker,
.feedback--anim .feedback__title,
.feedback--anim .feedback__lede { opacity: 0; transform: translateY(28px); }
.feedback--anim .feedback__cta { opacity: 0; transform: scale(.6); }
.feedback--anim.is-in .feedback__kicker,
.feedback--anim.is-in .feedback__title,
.feedback--anim.is-in .feedback__lede { animation: about-up .9s cubic-bezier(.2,.7,.2,1) both; }
.feedback--anim.is-in .feedback__title { animation-delay: .12s; }
.feedback--anim.is-in .feedback__lede { animation-delay: .32s; }
.feedback__cta { position: relative; }
.feedback--anim.is-in .feedback__cta { animation: about-pop .6s cubic-bezier(.34,1.56,.64,1) .6s both, about-nudge 4s ease-in-out 2s infinite; }
.feedback--anim.is-in .feedback__cta::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; animation: feedback-ring 2s ease-out 1.3s infinite; pointer-events: none; }
.feedback--anim.is-in .feedback__cta > span { display: inline-block; animation: about-play 4s ease-in-out 2s infinite; }
.feedback--anim.is-in .feedback__cta:hover { animation-play-state: paused; }
@keyframes feedback-ring { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } }

/* ============ Style Themes: one-off intro on first scroll (script.js adds .theme--reveal) ============ */
.theme { position: relative; overflow-x: clip; }
.theme__ch { display: inline-block; }

/* black curtain covers the section, then sweeps off to the right */
.theme--reveal::after { content: ""; position: absolute; inset: 0; z-index: 30; background: #0f0f0f; transform-origin: right center; pointer-events: none; }
.theme--reveal.is-revealed::after { animation: tr-curtain 1s cubic-bezier(.76,0,.24,1) .1s both; }

/* waiting state: everything hidden until the curtain lifts */
.theme--reveal:not(.is-revealed) :is(.theme__kicker, .theme__title, .theme__index-head, .theme__list li, .theme__all, .theme__tagline, .outfit-sum > *, .outfit-board, .outfit-list li, .theme__specs, .theme__more) { opacity: 0; }

.theme--reveal.is-revealed .theme__kicker { animation: tr-up .8s cubic-bezier(.2,.7,.2,1) .4s both; }
/* title: every letter flies up, spinning and blurred, one after another */
.theme--reveal.is-revealed .theme__ch { animation: tr-letter .9s cubic-bezier(.2,1.3,.4,1) both; animation-delay: calc(.5s + var(--i) * 55ms); }
.theme--reveal.is-revealed .theme__index-head { animation: tr-up .7s ease .7s both; }
.theme--reveal.is-revealed .theme__list li { animation: tr-slide .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.8s + var(--i) * 60ms); }
.theme--reveal.is-revealed .theme__all { animation: tr-up .7s ease 1.5s both; }

.theme--reveal.is-revealed .theme__tagline { animation: tr-blur 1s cubic-bezier(.2,.7,.2,1) .55s both; }
/* the sum: photos flip over like cards, + and = spin in, the theme name slams down */
.theme--reveal.is-revealed .outfit-sum { perspective: 600px; }
.theme--reveal.is-revealed .outfit-sum > * { animation: tr-flip .7s cubic-bezier(.2,1.2,.4,1) both; animation-delay: calc(.8s + var(--i) * 90ms); }
.theme--reveal.is-revealed .outfit-sum > .outfit-sum__op { animation-name: tr-spin; }
.theme--reveal.is-revealed .outfit-sum > .outfit-sum__result { animation: tr-slam .8s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(.8s + var(--i) * 90ms); }
/* the board opens like a camera iris, its word stretches into place, the pieces are thrown on from the corners */
.theme--reveal.is-revealed .outfit-board { animation: tr-iris 1s cubic-bezier(.7,0,.2,1) .9s both; }
.theme--reveal.is-revealed .outfit-board__word { animation: tr-word 1.4s cubic-bezier(.2,.7,.2,1) 1.1s both; }
.theme--reveal.is-revealed .outfit-board__piece { animation: tr-throw 1s cubic-bezier(.3,1.35,.5,1) both; }
.theme--reveal.is-revealed .outfit-board__piece--1 { --fx: -130%; --fy: -90%; --fr: -45deg; animation-delay: 1.25s; }
.theme--reveal.is-revealed .outfit-board__piece--2 { --fx: 140%;  --fy: -80%; --fr: 50deg;  animation-delay: 1.4s; }
.theme--reveal.is-revealed .outfit-board__piece--3 { --fx: -140%; --fy: 90%;  --fr: 35deg;  animation-delay: 1.55s; }
.theme--reveal.is-revealed .outfit-board__piece--4 { --fx: 150%;  --fy: 100%; --fr: -60deg; animation-delay: 1.7s; }
.theme--reveal.is-revealed .outfit-board__tag { animation: tr-up .5s ease both; animation-delay: 2.3s; }
/* the breakdown rows rush in from the right */
.theme--reveal.is-revealed .outfit-list li { animation: tr-rush .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(1.9s + (var(--i) - 9) * 80ms); }
.theme--reveal.is-revealed .theme__specs { animation: tr-up .8s ease 2.4s both; }
.theme--reveal.is-revealed .theme__more { animation: tr-up .8s ease 2.6s both; }

@keyframes tr-curtain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes tr-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes tr-letter { from { opacity: 0; transform: translateY(90%) rotate(18deg) scale(.6); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes tr-slide { from { opacity: 0; transform: translateX(-36px); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes tr-blur { from { opacity: 0; transform: translateY(20px) scale(.96); filter: blur(12px); letter-spacing: .02em; } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes tr-flip { from { opacity: 0; transform: rotateY(100deg) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tr-spin { from { opacity: 0; transform: rotate(-270deg) scale(0); } to { opacity: 1; transform: none; } }
@keyframes tr-slam { 0% { opacity: 0; transform: scale(2.6) rotate(-8deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes tr-iris { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
@keyframes tr-word { from { opacity: 0; letter-spacing: .5em; } to { opacity: 1; letter-spacing: -0.05em; } }
@keyframes tr-throw {
  from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(1.5); }
  40% { opacity: 1; }
  to { opacity: 1; transform: rotate(var(--r)); }
}
@keyframes tr-rush { from { opacity: 0; transform: translateX(80px) skewX(-12deg); } to { opacity: 1; transform: none; } }

/* ============ Find your piece: one-off intro on first scroll (script.js adds .find--reveal) ============ */
#discover { position: relative; overflow-x: clip; }
.find__ch { display: inline-block; }
.find--reveal::after { content: ""; position: absolute; inset: 0; z-index: 30; background: #0f0f0f; transform-origin: left center; pointer-events: none; }
.find--reveal.is-revealed::after { animation: tr-curtain 1s cubic-bezier(.76,0,.24,1) .1s both; }

.find--reveal:not(.is-revealed) :is(.find-head__kicker, .find-head__title, .find-head__count, .find-bar__input, .find-bar__search svg, .find-bar__link, .find-bar__sort, #product-grid > *, .more) { opacity: 0; }

.find--reveal.is-revealed .find-head__kicker { animation: tr-up .8s cubic-bezier(.2,.7,.2,1) .4s both; }
.find--reveal.is-revealed .find__ch { animation: tr-letter .9s cubic-bezier(.2,1.3,.4,1) both; animation-delay: calc(.5s + var(--i) * 45ms); }
.find--reveal.is-revealed .find-head__count { animation: tr-slam .8s cubic-bezier(.3,1.6,.5,1) .7s both; }
/* the search line draws itself left to right, the magnifier spins in */
.find--reveal.is-revealed .find-bar__input { animation: find-draw 1s cubic-bezier(.7,0,.2,1) .8s both; }
.find--reveal.is-revealed .find-bar__search svg { animation: find-spin .8s cubic-bezier(.3,1.5,.5,1) 1.5s both; }
.find--reveal.is-revealed .find-bar__link { animation: tr-up .6s cubic-bezier(.3,1.5,.5,1) 1.1s both; }
.find--reveal.is-revealed .find-bar__sort { animation: tr-up .6s cubic-bezier(.3,1.5,.5,1) 1.2s both; }
/* the cards are dealt onto the table: each one flips up and its photo slides open */
.find--reveal.is-revealed #product-grid { perspective: 1200px; }
.find--reveal.is-revealed #product-grid > * { transform-origin: 50% 100%; animation: find-deal .9s cubic-bezier(.2,1.2,.4,1) both; animation-delay: calc(1.1s + var(--i) * 90ms); }
.find--reveal.is-revealed #product-grid > * img { animation: find-photo 1.1s cubic-bezier(.7,0,.2,1) both; animation-delay: calc(1.2s + var(--i) * 90ms); }
.find--reveal.is-revealed .more { animation: tr-up .8s ease 2.4s both; }

@keyframes find-draw { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes find-spin { from { opacity: 0; transform: translateY(-50%) rotate(-360deg) scale(0); } to { opacity: 1; transform: translateY(-50%); } }
@keyframes find-deal {
  from { opacity: 0; transform: translateY(120px) rotateX(-75deg) rotate(calc((var(--i) - 5) * 3deg)) scale(.8); }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes find-photo { from { clip-path: inset(100% 0 0 0); transform: scale(1.3); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* 16 themes: on desktop the index runs in two columns so it fits the sticky column */
@media (min-width: 1024px) {
  .theme__list { display: block; columns: 2; column-gap: var(--space-6); }
  .theme__list li { break-inside: avoid; }
  .theme__tab { white-space: normal; text-align: left; font-size: 15px; }
}

/* ---- Subscribe band (between the ring and Style Themes) ---- */
.subband { border-top: 1px solid var(--border-subtle, rgba(0,0,0,.1)); border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,.1)); padding: var(--space-6) 0; }
.subband__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.subband__text { margin: 0; font-size: 18px; line-height: 1.4; color: var(--text-primary); }
.subband__text strong { font-weight: 600; }
@media (max-width: 599px) { .subband__inner { flex-direction: column; align-items: flex-start; } .subband__text { font-size: 16px; } }
.subband--anim .subband__text { opacity: 0; transform: translateY(14px); }
.subband--anim .subband__btn { opacity: 0; transform: scale(.6); }
.subband--anim.is-in .subband__text { animation: about-up .6s cubic-bezier(.2,.7,.2,1) .05s both; }
.subband--anim.is-in .subband__btn { animation: about-pop .6s cubic-bezier(.34,1.56,.64,1) .35s both, about-nudge 4s ease-in-out 1.6s infinite; }
.subband--anim.is-in .subband__btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255,0,51,.55); animation: about-ring 2s ease-out 1s infinite; pointer-events: none; }
.subband--anim.is-in .subband__btn svg { animation: about-play 4s ease-in-out 1.6s infinite; }
.subband--anim.is-in .subband__btn:hover { animation-play-state: paused; }
