/* The Modern Basic Co. — Variation A "The Editorial" page styles */
/* ============================================================
     Variation A — "The Editorial"
     Classic split hero. Serif title left, large product photo right.
     Restrained, paper-white, lots of air.
     ============================================================ */

  .a-hero {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(40px, 6vw, 96px);
    padding: clamp(64px, 9vw, 128px) clamp(24px, 4vw, 64px) clamp(64px, 8vw, 112px);
    max-width: var(--max-w);
    margin: 0 auto;
    align-items: center;
  }
  .a-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }
  .a-hero__num {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--matte-black);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .a-hero__num i {
    width: 32px; height: 1px; background: var(--matte-black); display: block;
  }
  .a-hero__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(48px, 6vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.018em;
    margin: 0;
    color: var(--matte-black);
    text-wrap: balance;
  }
  .a-hero__title em {
    font-style: italic;
    color: var(--olive);
  }
  .a-hero__sub {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 19px;
    line-height: 1.55;
    color: var(--paper-700);
    margin: 0;
    max-width: 440px;
  }
  .a-hero__meta {
    display: flex;
    gap: 32px;
    margin-top: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    width: 100%;
    max-width: 440px;
  }
  .a-hero__meta div { display: flex; flex-direction: column; gap: 4px; }
  .a-hero__meta dt {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--paper-500);
  }
  .a-hero__meta dd {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--matte-black);
    margin: 0;
  }
  .a-hero__cta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .a-hero__photo-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
  }
  .a-hero__photo-wrap .ph {
    position: absolute;
    inset: 0;
  }
  .a-hero__chip {
    align-self: flex-start;
    background: var(--warm-white);
    color: var(--matte-black);
    padding: 10px 14px;
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border: 1px solid var(--line);
  }
  /* New right column: chip above the photo wrap */
  .a-hero__photo-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .a-hero__corner {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--olive);
    color: var(--olive);
    background: var(--warm-white);
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-size: 16px;
    letter-spacing: 0.18em;
    z-index: 2;
  }

  /* ---------- Featured product showcase ---------- */
  .a-feature {
    background: var(--deep-navy);
    color: var(--warm-white);
    padding: clamp(64px, 8vw, 112px) clamp(24px, 4vw, 64px);
  }
  .a-feature__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
  }
  .a-feature__photo {
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: 720px;
  }
  .a-feature__photo .ph { position: absolute; inset: 0; }
  .a-feature__copy {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .a-feature__num {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(242, 237, 227, 0.6);
  }
  .a-feature__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.012em;
    margin: 0;
    text-wrap: balance;
  }
  .a-feature__body {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.6;
    color: var(--paper-200);
    margin: 0;
    max-width: 480px;
  }
  .a-feature__price-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(242, 237, 227, 0.16);
  }
  .a-feature__price {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 400;
  }
  .a-feature__was {
    font-family: var(--font-sans);
    font-size: 16px;
    color: rgba(242, 237, 227, 0.5);
    text-decoration: line-through;
  }
  .a-feature__price-note {
    font-family: var(--font-sans);
    font-size: 12px;
    color: rgba(242, 237, 227, 0.55);
    letter-spacing: 0.04em;
  }
  .a-feature__cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .a-feature .btn {
    background: var(--warm-white);
    color: var(--matte-black);
  }
  .a-feature .btn:hover { background: var(--sand); }
  .a-feature .editorial-link {
    color: var(--warm-white);
    border-color: var(--warm-white);
  }
  .a-feature .editorial-link:hover { color: var(--sand); border-color: var(--sand); }

  /* ---------- Materials section (3-up) ---------- */
  .a-craft-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 32px;
    margin-bottom: 56px;
  }
  .a-craft-head .section__title { max-width: 640px; }

  /* ---------- Reviews ---------- */
  .a-reviews .container { display: flex; flex-direction: column; gap: 56px; }

  /* ---------- Catalog ---------- */
  .a-catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .a-catalog-head .section__title { max-width: 480px; }

  @media (max-width: 960px) {
    .a-hero { grid-template-columns: 1fr; padding: 40px 20px 56px; }
    .a-feature__inner { grid-template-columns: 1fr; }
    .a-craft-head { grid-template-columns: 1fr; align-items: start; }
    .a-catalog-head { flex-direction: column; align-items: flex-start; }
  }

/* ---------- Real imagery ----------
   <img class="media"> fills any positioned, aspect-ratio wrapper.
   To use a real photo: replace the file in /images (keep the name) OR
   change the src. No layout changes needed. */
.media { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-in, .reveal { animation:none !important; opacity:1 !important; transform:none !important; }
  html, body { scroll-behavior:auto; }
  .a-hero__slide.is-active { animation: none !important; }
}


/* ---------- Hero auto-slider ---------- */
/* slides cross-fade inside the existing 4:5 hero photo wrap.
   `contain` shows the whole wallet — photos are taller than 4:5 and
   `cover` would crop the top tab + bottom of the product. */
.a-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #F4EFE0;
  opacity: 0;
  transition: opacity 600ms var(--ease-soft);
  pointer-events: none;
}
.a-hero__slide.is-active {
  opacity: 1;
  animation: hero-slide-zoom 5000ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes hero-slide-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

.a-hero__slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(242, 237, 227, 0.92);
  color: var(--matte-black);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard);
  z-index: 3;
}
.a-hero__slider-arrow svg { width: 18px; height: 18px; }
.a-hero__slider-arrow--prev { left: 12px; }
.a-hero__slider-arrow--next { right: 12px; }
.a-hero__photo-wrap:hover .a-hero__slider-arrow,
.a-hero__photo-wrap:focus-within .a-hero__slider-arrow { opacity: 1; }
.a-hero__slider-arrow:hover { background: var(--warm-white); }
@media (hover: none) { .a-hero__slider-arrow { opacity: 1; } }

.a-hero__slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.a-hero__slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--paper-400);
  padding: 0;
  background: rgba(242, 237, 227, 0.4);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-standard),
              transform var(--dur-base) var(--ease-standard);
}
.a-hero__slider-dot:hover { background: var(--paper-400); }
.a-hero__slider-dot.is-active {
  background: var(--matte-black);
  border-color: var(--matte-black);
  transform: scale(1.25);
}


/* ---------- Feature product photo — real photography ----------
   The all-views product photos (1536×2048, aspect 3:4) are shown
   inside the 4:5 panel with `contain` + warm-white background so
   the whole composition is visible. The italic colour-name label
   sits top-right and is updated by the swatch picker JS. */
.a-feature__photo .media {
  object-fit: contain;
  background: #F4EFE0;
}
.a-feature__photo-label {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: rgba(20, 20, 20, 0.45);
  z-index: 2;
  pointer-events: none;
}

/* =========================================================
   A-CRAFT — editorial craftsmanship 3-up (new section)
   ========================================================= */
.a-craft {
  background: #F5F1EA;
}
.a-craft__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) clamp(24px, 5vw, 80px);
}

/* Head row: heading left, link right */
.a-craft__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(56px, 6vw, 88px);
}
.a-craft__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--matte-black);
  max-width: 18ch;
}
.a-craft__link {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--matte-black);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--matte-black);
  transition: opacity 320ms var(--ease-soft);
}
.a-craft__link:hover { opacity: 0.65; }

/* 3-up grid */
.a-craft__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.a-craft__tile {
  display: flex;
  flex-direction: column;
}

/* Tile block: image fills the whole panel (no empty colored band) */
.a-craft__tile-block {
  position: relative;
  background: var(--tile-bg, #F8F6F3);
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.a-craft__tile-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(140px, 16vw, 220px);
  font-weight: 300;
  line-height: 1;
  color: var(--matte-black);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}

.a-craft__tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  transition: transform 1100ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Text content below the tile block */
.a-craft__tile-label {
  display: block;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--matte-black);
}

.a-craft__tile-heading {
  margin: 16px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--matte-black);
}

.a-craft__tile-body {
  margin: 16px 0 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: #2A2A2A;
  max-width: 90%;
}

/* Reveal animation — JS toggles .is-in-view */
.a-craft__tile {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.a-craft__tile.is-in-view {
  opacity: 1;
  transform: translateY(0);
}
.a-craft__tile.is-in-view:nth-child(2) { transition-delay: 140ms; }
.a-craft__tile.is-in-view:nth-child(3) { transition-delay: 280ms; }
.a-craft__tile.is-in-view .a-craft__tile-img { transform: scale(1); }

/* General scroll-reveal — JS toggles .is-in-view on .reveal elements.
   Mirrors the craft pattern: subtle lift + fade, 800ms editorial easing. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-in-view {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered reveal for the catalog grid so the four cards
   cascade in rather than landing as a slab */
.catalog-grid .pcard.reveal.is-in-view:nth-child(2) { transition-delay: 100ms; }
.catalog-grid .pcard.reveal.is-in-view:nth-child(3) { transition-delay: 200ms; }
.catalog-grid .pcard.reveal.is-in-view:nth-child(4) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .a-craft__tile,
  .a-craft__tile-img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .a-craft__grid { grid-template-columns: repeat(2, 1fr); }
  .a-craft__tile:nth-child(3) { grid-column: 1 / -1; }
  .a-craft__tile:nth-child(3) .a-craft__tile-body { max-width: 60ch; }
}
@media (max-width: 640px) {
  .a-craft__grid { grid-template-columns: 1fr; gap: 28px; }
  .a-craft__tile:nth-child(3) { grid-column: auto; }
  .a-craft__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}
