/* Parallus landing + collections.
   Tokens come from tokens.css. Nothing here invents a color or a face. */

/* Neutralise Blocksy's inherited rules on elements we reuse, at zero
   specificity so any component rule below still wins. */
:where(.p-hero, .p-statement, .p-featured) :where(h1, h2, h3, p, figure, ul, li) {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.p-page { background: var(--p-bg); color: var(--p-ink); }

/* ============================================================
   HERO
   Full-bleed. Fits the first viewport. Header floats over it.
   ============================================================ */

.p-hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--p-ink);
}

.p-hero__media { position: absolute; inset: 0; }

/* Desktop: YouTube iframe scaled to always cover the viewport. */
.p-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;          /* 16:9 */
  min-height: 100svh;
  min-width: 177.78svh;     /* 16:9 inverse */
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* Mobile still. Hidden on desktop. */
.p-hero__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: none;
}

/* On-palette ground shown until a real still is in place. */
.p-hero__ground {
  position: absolute;
  inset: 0;
  display: none;
  background:
    linear-gradient(170deg, var(--p-surface) 0%, var(--p-border) 55%, var(--p-muted) 100%);
}

/* Scrim keeps the logo and nav legible over any frame. */
.p-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(17, 17, 17, 0.42) 0%,
      rgba(17, 17, 17, 0.10) 28%,
      rgba(17, 17, 17, 0.10) 62%,
      rgba(17, 17, 17, 0.48) 100%);
}

@media (max-width: 999px) {
  .p-hero__video { display: none; }
  .p-hero__still,
  .p-hero--noimage .p-hero__ground { display: block; }

  /* The mobile still is a bright studio shot, not the dark film. A heavy
     scrim would only mud it and hurt legibility of the dark logo and
     trigger, so lighten it to a whisper. */
  .p-hero__scrim {
    background:
      linear-gradient(to bottom,
        rgba(255, 255, 255, 0.34) 0%,
        rgba(255, 255, 255, 0.00) 26%,
        rgba(255, 255, 255, 0.00) 74%,
        rgba(17, 17, 17, 0.18) 100%);
  }
}

/* ============================================================
   STATEMENT
   ============================================================ */

.p-statement {
  padding: var(--p-space-xl) var(--p-space-md);
  text-align: center;
  background: var(--p-bg);
}

.p-statement__title {
  font-family: var(--p-font-heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: var(--p-lh-display);
  letter-spacing: var(--p-track-head);
  color: var(--p-ink);
}

.p-statement__body {
  font-family: var(--p-font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: var(--p-lh-body);
  color: var(--p-ink-2);
  max-width: var(--p-measure);
  margin: var(--p-space-md) auto 0;
}

/* ============================================================
   BUTTON
   ============================================================ */

.p-btn {
  display: inline-block;
  font-family: var(--p-font-nav);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: var(--p-track-nav);
  text-decoration: none;
  padding: 14px 34px;
  border: 1px solid var(--p-ink);
  border-radius: var(--p-radius);
  color: var(--p-ink);
  background: transparent;
  transition: background var(--p-dur-fast) var(--p-ease),
              color var(--p-dur-fast) var(--p-ease);
}

.p-btn:hover,
.p-btn:focus-visible { background: var(--p-ink); color: var(--p-bg); }

.p-btn--light { border-color: var(--p-bg); color: var(--p-bg); }
.p-btn--light:hover,
.p-btn--light:focus-visible { background: var(--p-bg); color: var(--p-ink); }

/* ============================================================
   FEATURED PRODUCTS
   Asymmetric two-column split, never a row of identical cards.
   ============================================================ */

.p-featured {
  padding: var(--p-space-xl) var(--p-space-md);
  background: var(--p-surface);
}

.p-featured__inner {
  max-width: var(--p-container);
  margin: 0 auto;
}

.p-featured__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--p-space-md);
  padding-bottom: var(--p-space-md);
  border-bottom: 1px solid var(--p-border);
  margin-bottom: var(--p-space-lg);
}

.p-featured__title {
  font-family: var(--p-font-heading);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: var(--p-lh-display);
  letter-spacing: var(--p-track-head);
  color: var(--p-ink);
}

.p-featured__link {
  font-family: var(--p-font-nav);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: var(--p-track-nav);
  color: var(--p-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--p-ink);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color var(--p-dur-fast) var(--p-ease),
              border-color var(--p-dur-fast) var(--p-ease);
}

.p-featured__link:hover { color: var(--p-accent); border-color: var(--p-accent); }

.p-featured__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--p-space-md);
  align-items: start;
}

.p-featured__side {
  display: grid;
  gap: var(--p-space-md);
}

.p-product { display: block; text-decoration: none; }

.p-product__frame {
  position: relative;
  overflow: hidden;
  background: var(--p-bg);
  aspect-ratio: 1 / 1;
}

.p-product--lead .p-product__frame { aspect-ratio: 4 / 5; }

.p-product__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product imagery never scales on hover. Feedback comes from the
   name instead, so the garment never distorts or shifts. */
.p-product__name {
  transition: color var(--p-dur-fast) var(--p-ease);
}

.p-product:hover .p-product__name { color: var(--p-accent); }

.p-product__ground {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--p-bg) 0%, var(--p-border) 100%);
}

.p-product__name {
  font-family: var(--p-font-heading);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: var(--p-track-head);
  color: var(--p-ink);
  margin-top: var(--p-space-sm);
}

.p-product__price {
  font-family: var(--p-font-body);
  font-size: 0.875rem;
  color: var(--p-muted-2);
  margin-top: 4px;
}

@media (max-width: 899px) {
  .p-featured__grid { grid-template-columns: 1fr; }
  .p-featured__head { flex-direction: column; align-items: flex-start; gap: var(--p-space-sm); }
}

/* ============================================================
   SCROLL REVEAL
   Hidden only when JS is present, so no-JS renders visible.
   ============================================================ */

.has-js .p-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--p-dur-slow) var(--p-ease),
              transform var(--p-dur-slow) var(--p-ease);
}

.has-js .p-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .has-js .p-reveal { opacity: 1; transform: none; }
  .p-product__frame img { transition: none; }
}
