/* ═══════════════════════════════════════════════════════════════════════
   YVOREN — identity layer (Collection 01)

   Loaded last on every storefront page. The base system (styles.css,
   yvoren-ui.css) owns layout and components; this file carries the YVOREN
   identity from the Collection 01 campaign film:

     ink / coal base · bone type · ash structure · one crimson accent
     Syncopate display · Instrument Serif italic accents · JetBrains Mono labels
     chrome-metal headlines · hard corners · a faint film grain
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --yv-ink: #050505;
  --yv-coal: #0c0c0c;
  --yv-bone: #ece7de;
  --yv-ash: #8d8a85;
  --yv-dim: #4a4845;
  --yv-red: #c8102e;
  --yv-red-hot: #e0233a;

  --yv-display: 'Syncopate', 'Arial Black', sans-serif;
  --yv-serif: 'Instrument Serif', 'Times New Roman', serif;
  --yv-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* brushed chrome: bright top rim, dark mid band, soft floor bounce */
  --yv-chrome: linear-gradient(180deg, #ffffff 0%, #e4e1db 34%, #8d8a85 56%, #cfcbc4 78%, #f4f1ec 100%);

  /* hard edges — the brand is cut, not rounded */
  --radius-lg: 4px;
  --radius-md: 3px;
  --radius-sm: 2px;
  --radius-pill: 2px;
}

::selection { background: var(--yv-red); color: #fff; }

html { background: var(--yv-ink); }
body { background-color: var(--yv-ink); }

/* Faint film grain over the whole storefront (static — no animation cost). */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Type roles ──────────────────────────────────────────────────────── */
.hero-eyebrow, .section-kicker, .directory__kicker, .directory__code,
.campaign__label, .campaign__code, .statement__sig, .page-hero__eyebrow,
.hero-scroll, .sg-kicker, .footer-nav-title, .hero-nav__drop-label,
.hero-drawer__label, .campaign-shot__seq, .campaign-shot__caption {
  font-family: var(--yv-mono);
  font-weight: 500;
  letter-spacing: 0.28em;
}
.section-kicker, .directory__kicker, .campaign__label, .page-hero__eyebrow { color: var(--yv-red-hot); }

/* Syncopate is a wide face; pull the display scale in so headlines stay on
   the page at every width, and drop the negative tracking Syne needed. */
.section-title, .directory__title, .campaign__title, .newsletter__title,
.page-hero__title, .statement__text, .hero-title {
  font-family: var(--yv-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section-title { font-size: clamp(1.45rem, 3.4vw, 2.6rem); line-height: 1.05; }
.directory__title, .newsletter__title { font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.02; }
.campaign__title { font-size: clamp(1.7rem, 4vw, 3.1rem); line-height: 1; }
.page-hero__title { font-size: clamp(2rem, 6vw, 4.6rem); line-height: 0.98; }

/* Chrome-metal headlines with a crimson serif accent, as in the film. */
.hero-title, .statement__text, .page-hero__title, .campaign__title, .directory__title, .newsletter__title {
  background: var(--yv-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-title em, .statement__text em, .page-hero__title em, .campaign__title em {
  font-family: var(--yv-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  background: none;
  color: var(--yv-red);
  -webkit-text-fill-color: var(--yv-red);
  padding: 0 0.06em 0 0;
}
.campaign__title em { display: block; font-size: 1.12em; line-height: 1.05; }
/* the serif accent must not inflate the line box of the wide display face */
.hero-title em, .statement__text em, .page-hero__title em { line-height: 0; margin-left: 0.02em; }

/* Syncopate's lowercase is a small-caps design; set every display label in caps. */
.directory-row__name, .highlight-item h3, .set-card h3, .mb-card h3, .pdp-title, .notfound__title,
.cart-drawer__title, .sg-title, .doc-block h2, .product-card__title, .search-item__title {
  text-transform: uppercase;
}

/* ── Buttons: hard-edged; bone solid primary, hairline ghost ─────────── */
/* no travelling "star" glints — the brand is still and cut */
.hero-btn::before, .hero-btn::after, .btn-outline::before, .btn-outline::after,
.filter-btn::before, .filter-btn::after, .checkout-btn::before, .checkout-btn::after,
.btn-submit::before, .btn-submit::after, .cart-checkout-btn::before, .cart-checkout-btn::after { display: none; }
.hero-btn,
.hero-actions .hero-btn:first-child {
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  background: var(--yv-bone);
  border: 1px solid var(--yv-bone);
  color: var(--yv-ink);
  box-shadow: none;
}
.hero-btn:hover, .hero-btn:focus-visible,
.hero-actions .hero-btn:first-child:hover, .hero-actions .hero-btn:first-child:focus-visible {
  background: var(--yv-red);
  border-color: var(--yv-red);
  color: #fff;
  box-shadow: none;
}
.hero-btn--ghost {
  background: transparent;
  border-color: rgba(236, 231, 222, 0.22);
  color: var(--yv-bone);
}
.hero-btn--ghost:hover, .hero-btn--ghost:focus-visible {
  background: rgba(236, 231, 222, 0.04);
  border-color: var(--yv-bone);
  color: var(--yv-bone);
  box-shadow: none;
}
/* In the hero the secondary action is a quiet text link, so the primary reads alone */
.yv-hero .hero-btn--ghost {
  gap: 12px; padding: 0 4px; border-color: transparent; background: none;
  color: rgba(236, 231, 222, 0.78);
}
.yv-hero .hero-btn--ghost:hover, .yv-hero .hero-btn--ghost:focus-visible { background: none; border-color: transparent; color: var(--yv-bone); }
.hero-btn__arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.hero-btn:hover .hero-btn__arrow, .hero-btn:focus-visible .hero-btn__arrow { transform: translateX(4px); }

/* ── Navigation lockup: 3D mark + tracked wordmark ───────────────────── */
.hero-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--yv-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.42em;
  text-indent: 0;
}
.hero-nav__mark { height: 26px; width: auto; display: block; filter: drop-shadow(0 0 12px rgba(236, 231, 222, 0.08)); }
.hero-nav__word { display: block; margin-right: -0.42em; }
@media (max-width: 720px) {
  .hero-nav__brand { gap: 9px; font-size: 13px; letter-spacing: 0.34em; }
  .hero-nav__word { margin-right: -0.34em; }
  .hero-nav__mark { height: 22px; }
}
@media (max-width: 380px) {
  .hero-nav__word { display: none; }
  .hero-nav__mark { height: 26px; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.yv-hero { background: var(--yv-ink); isolation: isolate; }
.yv-hero::before {
  background:
    radial-gradient(42% 48% at 70% 44%, rgba(236, 231, 222, 0.08) 0%, transparent 70%),
    radial-gradient(30% 36% at 84% 70%, rgba(200, 16, 46, 0.16) 0%, transparent 72%),
    radial-gradient(90% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.75) 100%);
}
.yv-hero .hero-glow {
  background: radial-gradient(ellipse 50% 40% at 70% -4%, rgba(255, 250, 244, 0.16) 0%, transparent 70%);
}
.yv-mark {
  position: absolute;
  z-index: 3;
  right: clamp(-40px, 2vw, 60px);
  top: 50%;
  width: min(62vw, 88vh, 900px);
  aspect-ratio: 1;
  transform: translateY(-48%);
  pointer-events: none;
}
.yv-mark__still, .yv-mark__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.yv-mark__still { object-fit: contain; transition: opacity 0.9s ease; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)); }
.yv-mark__canvas { opacity: 0; transition: opacity 0.9s ease; }
.yv-mark.is-live .yv-mark__canvas { opacity: 1; }
.yv-mark.is-live .yv-mark__still { opacity: 0; }

.yv-hero .hero-content { max-width: 560px; left: clamp(20px, 5vw, 72px); bottom: clamp(72px, 12vh, 120px); }
.yv-hero .hero-eyebrow { color: var(--yv-ash); font-size: 11px; }
.yv-hero .hero-title {
  display: block;
  font-size: clamp(2.4rem, 6.4vw, 6rem);
  line-height: 0.94;
  margin-bottom: 26px;
  filter: drop-shadow(0 2px 24px rgba(0, 0, 0, 0.6));
}
.yv-hero .hero-title em { font-size: 1.08em; }
.yv-hero .hero-sub { font-size: 14px; color: rgba(236, 231, 222, 0.62); max-width: 44ch; }
.yv-hero .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.yv-hero .hero-scroll { left: clamp(20px, 5vw, 72px); }
.yv-hero .hero-accent-line__dot { background: var(--yv-red); box-shadow: 0 0 14px rgba(200, 16, 46, 0.8); }

@media (max-width: 860px) {
  .yv-mark {
    right: 50%;
    top: clamp(64px, 11vh, 110px);
    width: min(82vw, 52vh);
    transform: translateX(50%);
  }
  .yv-hero .hero-content { bottom: 88px; right: 20px; max-width: none; }
  .yv-hero .hero-sub br { display: none; }
}

/* ── Statement: a hard black break with a crimson hairline ───────────── */
.yv-statement {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(200, 16, 46, 0.1) 0%, transparent 60%),
    var(--yv-coal);
  border-top: 1px solid rgba(200, 16, 46, 0.35);
  border-bottom: 1px solid rgba(236, 231, 222, 0.08);
}
.yv-statement .statement__text { font-size: clamp(1.5rem, 4.4vw, 3.4rem); line-height: 1.06; max-width: 18ch; }
.yv-statement .statement__sig { color: var(--yv-ash); }

/* ── Surfaces & cards ────────────────────────────────────────────────── */
.section-alt { background: var(--yv-coal); }
.product-card { border-radius: 3px; }
/* Collection 01 shots are dark studio frames (3:4) — fill the card on ink. */
.product-card__media-wrap { background: var(--yv-coal); border: 1px solid rgba(236, 231, 222, 0.06); }
.product-card .product-img { object-fit: cover; object-position: center 45%; }
.product-card:hover .product-card__media-wrap { border-color: rgba(200, 16, 46, 0.45); }

/* Card body: title + price on one line, colour beneath, sizes as one segmented
   control, one solid action. No tinted wash, glare or lift on the card itself —
   it lingered after a size was tapped (focus-within) and muddied the text. */
.product-card.nk-ht::before, .product-card.nk-ht::after { content: none; }
.product-card.nk-ht:hover, .product-card.nk-ht:focus-within { transform: none; box-shadow: none; }
.product-card__body { gap: 8px; padding-top: 2px; }
.product-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.product-card__title {
  min-height: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.4;
}
.product-card__title:hover { opacity: 1; color: #fff; }
.product-card__price {
  flex: none; font-family: var(--yv-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--yv-bone);
}
.product-card__colour { font-family: var(--yv-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--yv-ash); }
.product-card__colour .colour-dot { width: 8px; height: 8px; }
.product-card__actions { padding-top: 14px; gap: 8px; }
/* styles.css gives every `.product-card p` a 16px bottom margin (it outranks the component rules) */
.product-card .product-card__price, .product-card .product-card__colour { margin: 0; }

.product-card .size-row {
  gap: 0; min-height: 40px;
  border: 1px solid rgba(236, 231, 222, 0.14); border-radius: var(--radius-sm);
  overflow: hidden;
}
.product-card .size-pill {
  height: 38px; border: 0; border-radius: 0; background: none;
  border-left: 1px solid rgba(236, 231, 222, 0.1);
  font-family: inherit; font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--yv-ash);
}
.product-card .size-pill:first-child { border-left: 0; }
.product-card .size-pill:hover:not(:disabled) { color: var(--yv-bone); background: rgba(236, 231, 222, 0.05); }
.product-card .size-pill.active,
.product-card .size-pill.active:hover { background: var(--yv-bone); color: var(--yv-ink); font-weight: 600; }
.product-card.size-missing .size-row { border-color: var(--yv-red); }
.product-card.size-missing .size-pill:not(:disabled) { border-color: rgba(236, 231, 222, 0.1); }

.product-card .product-btn {
  height: 44px; border: 1px solid var(--yv-bone); border-radius: var(--radius-sm);
  background: var(--yv-bone); color: var(--yv-ink);
  font-family: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em;
}
.product-card .product-btn:hover:not(:disabled),
.product-card .product-btn:focus-visible { background: var(--yv-red); border-color: var(--yv-red); color: #fff; }
.product-card .product-btn.is-added { background: transparent; border-color: rgba(236, 231, 222, 0.28); color: var(--yv-bone); }
.product-card__msg { font-family: var(--yv-mono); font-size: 10.5px; letter-spacing: 0.06em; }
/* Two pieces in the collection: present them large rather than half a row. */
.products-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1040px;
  gap: clamp(16px, 3vw, 40px);
}
@media (max-width: 520px) {
  .products-grid:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
}
.marquee-wrap, .collection-strip { font-family: var(--yv-mono); letter-spacing: 0.26em; }
.collection-strip .m-brand { font-family: var(--yv-display); font-weight: 700; letter-spacing: 0.4em; }
.collection-strip [aria-hidden="true"] { color: var(--yv-red); }

/* One set in Collection 01: lay it out as a single wide plate, pieces left, details right. */
#bento-grid:has(> .set-card:only-child) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  #bento-grid > .set-card:only-child { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); }
  #bento-grid > .set-card:only-child .set-card__body { align-content: center; border-left: 1px solid var(--line); }
}
.set-card__visual { background: radial-gradient(circle at 50% 38%, rgba(200, 16, 46, 0.14), transparent 60%), var(--yv-coal); }
.set-card__visual img { object-fit: cover; }

/* ── Footer lockup ───────────────────────────────────────────────────── */
.footer-logo { display: inline-flex !important; align-items: center; gap: 14px; }
.footer-logo__mark { width: 64px; height: 64px; object-fit: contain; display: block; }
.footer-logo__word { font-family: var(--yv-display); font-weight: 700; font-size: 18px; letter-spacing: 0.42em; color: var(--yv-bone); }
.footer-brand__line { font-family: var(--yv-serif); font-style: italic; font-size: 1.15rem; line-height: 1.45; color: var(--yv-ash); }

/* ── Size guide provisional note ─────────────────────────────────────── */
.sg-provisional {
  margin: 0 0 22px;
  padding: 12px 14px;
  border-left: 2px solid var(--yv-red);
  background: rgba(200, 16, 46, 0.08);
  font-size: 13px;
  line-height: 1.6;
  color: var(--yv-bone);
}

@media (prefers-reduced-motion: reduce) {
  .yv-mark__still, .yv-mark__canvas { transition: none; }
}

/* ── Product page: studio frames fill the gallery on coal ────────────── */
.pdp-main-media, .pdp-main-img, .pdp-main-media .pdp-main-img { background: var(--yv-coal); }
.pdp-main-media .pdp-main-img { object-fit: cover; object-position: center 45%; }
.pdp-title { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.04; }

/* Buttons inside long-form doc blocks keep their own colours (doc links are underlined bone). */
.doc-block a.hero-btn { text-decoration: none; color: var(--yv-ink); }
.doc-block a.hero-btn:hover { color: #fff; }
.doc-block a.hero-btn--ghost { color: var(--yv-bone); }

/* Collection strip: keep one clean line on phones — brand and collection only. */
@media (max-width: 720px) {
  .collection-strip > :nth-child(n + 4) { display: none; }
  .collection-strip { justify-content: center; flex-wrap: nowrap; white-space: nowrap; }
}
