/* ─── DIGITAL ASSETS — store page (hero · product grid · notify) ──
   Uses the shared brand tokens from base.css. DM Mono is loaded here
   (only this page needs it) for the technical/status typography. */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&display=swap');

:root {
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.page-store {
  min-height: 100vh;
}

/* keep page content above the fixed atmosphere/glass layers */
.page-store .stack { position: relative; z-index: 2; }

/* ─── HERO ─────────────────────────────────────────────────── */
.da-hero {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(150px, 24vh, 280px) clamp(28px, 6vw, 120px) clamp(48px, 8vh, 96px);
}
.da-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: clamp(22px, 3vw, 34px);
}
.da-hero-eyebrow::before {
  content: '';
  width: 42px;
  height: 1px;
  background: var(--red);
  opacity: 0.7;
}
.da-hero h1 {
  font-family: var(--font-main);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-size: clamp(48px, 12vw, 168px);
  color: var(--white);
}
.da-hero-sub {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  margin-top: clamp(18px, 2.4vw, 30px);
  max-width: 46ch;
}

/* ─── LOAD-TIME ENTRANCE — masked line reveal + fade (site language) ── */
.da-reveal {
  opacity: 0;
  transform: translateY(26px);
}
.da-hero h1.da-reveal {
  clip-path: inset(0 0 100% 0);
  transform: translateY(0);
}
body.da-ready .da-reveal {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 -10% 0);
  transition:
    opacity 1s var(--ease-cinematic) var(--d, 0s),
    transform 1.1s var(--ease-cinematic) var(--d, 0s),
    clip-path 1.15s var(--ease-cinematic) var(--d, 0s);
}

/* ─── PRODUCT GRID ─────────────────────────────────────────── */
.da-collection {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(24px, 5vh, 64px) clamp(28px, 6vw, 120px) clamp(120px, 18vh, 220px);
}
.da-collection-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 26px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.da-collection-head .da-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.da-collection-head .da-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--red);
}

/* Grid built to scale: drop in another <article class="da-card"> and it flows. */
.da-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: clamp(20px, 2.4vw, 40px);
}

/* ─── PRODUCT CARD ─────────────────────────────────────────── */
.da-card {
  display: flex;
  flex-direction: column;
  background: rgba(12, 12, 12, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.4s ease, transform 0.5s var(--ease-cinematic);
}
.da-card:hover {
  border-color: rgba(166, 5, 26, 0.55);
}

/* scroll-in reveal (matches the site's IntersectionObserver .anim-in) */
.da-card {
  opacity: 0;
  transform: translateY(36px);
}
.da-card.anim-in {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.9s var(--ease-cinematic) var(--d, 0s),
    transform 0.9s var(--ease-cinematic) var(--d, 0s);
}

/* ── Placeholder thumbnail — black card w/ red technical grid motif.
   TODO(preview): swap the inner .da-thumb-motif for a <video> or <img>
   preview when the asset is ready; the frame + badge can stay. ── */
.da-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--red-deep, #0d0003);
  overflow: hidden;
}
.da-thumb-motif {
  position: absolute;
  inset: 0;
  background-color: #060606;
  background-image:
    linear-gradient(rgba(166, 5, 26, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 5, 26, 0.10) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: center;
}
.da-thumb-motif::before {
  /* soft red vignette / focus glow */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 42%, rgba(166, 5, 26, 0.22) 0%, transparent 58%);
}
.da-thumb-motif::after {
  /* centered crosshair — lens-calibration nod, matches the loader ident */
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(var(--white), var(--white)) center/1px 46px no-repeat,
    linear-gradient(var(--white), var(--white)) center/46px 1px no-repeat;
  opacity: 0.16;
}
/* corner brackets */
.da-thumb-frame { position: absolute; inset: 14px; pointer-events: none; }
.da-thumb-frame span {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.da-thumb-frame span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.da-thumb-frame span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.da-thumb-frame span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.da-thumb-frame span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.da-thumb-tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Status badge — COMING SOON, DM Mono, red accent */
.da-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(166, 5, 26, 0.6);
  padding: 6px 12px;
}

/* ── Card body ── */
.da-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 2vw, 32px);
  flex: 1;
}
.da-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.da-card-title {
  font-family: var(--font-main);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--white);
}
.da-price {
  flex-shrink: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}
.da-card-desc {
  font-family: var(--font-secondary);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
}
.da-card-foot {
  margin-top: auto;
  padding-top: 8px;
}

/* ─── CTA + NOTIFY (component; swappable to Lemon Squeezy) ──── */
.da-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid var(--red);
  border-radius: 100px;
  padding: 13px 26px;
  cursor: pointer;
  font-family: var(--font-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, color 0.3s;
}
.da-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.da-btn:hover::before { transform: scaleX(1); }
.da-btn:hover { color: var(--white); }
.da-btn span,
.da-btn svg { position: relative; z-index: 1; }

/* Notify form — revealed inline under the CTA */
.da-notify {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s var(--ease-cinematic), opacity 0.35s ease, margin-top 0.45s var(--ease-cinematic);
}
.da-notify.open {
  max-height: 220px;
  opacity: 1;
  margin-top: 18px;
}
.da-notify-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}
.da-notify-field {
  position: relative;
  flex: 1 1 200px;
}
.da-notify-field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 12px 2px;
  font-family: var(--font-secondary);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: border-color 0.3s ease;
}
.da-notify-field input::placeholder { color: rgba(255, 255, 255, 0.32); }
.da-notify-field input:focus { outline: none; border-bottom-color: var(--red); }
.da-notify-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}
.da-notify-submit {
  flex: 0 0 auto;
  align-self: flex-end;
}
.da-notify-error {
  margin-top: 10px;
  font-family: var(--font-secondary);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--red);
}
.da-notify-success {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-cinematic);
}
.da-notify-success.visible { opacity: 1; transform: translateY(0); }
.da-notify-success svg { width: 22px; height: 22px; flex-shrink: 0; }
.da-notify-success p {
  font-family: var(--font-secondary);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
}

/* ─── VISIBLE FOCUS STATES (keyboard) ──────────────────────── */
.page-store a:focus-visible,
.da-btn:focus-visible,
.da-notify-field input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 720px) {
  .da-grid { grid-template-columns: 1fr; }
  .da-hero { padding-top: clamp(120px, 20vh, 180px); }
  .da-notify-submit { align-self: stretch; flex: 1 1 100%; }
  .da-notify-submit .da-btn { width: 100%; justify-content: center; }
  .da-notify.open { max-height: 320px; }
}

/* Phones in portrait — keep the display headline from overflowing */
@media (max-width: 420px) {
  .da-hero h1 { font-size: clamp(40px, 15vw, 60px); }
  .da-card-top { flex-direction: column; gap: 8px; }
}

/* ─── REDUCED MOTION ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .da-reveal,
  .da-hero h1.da-reveal,
  .da-card {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}
