/*
 * Process page refinement
 *
 * This stylesheet is enqueued only by the French and English process page
 * templates. It deliberately uses page-specific classes so it does not alter
 * the shared editorial grids or the existing shop, journal and product pages.
 */

.dy26-process-page {
  --dy26-process-panel: rgba(12, 13, 12, 0.72);
  --dy26-process-panel-strong: rgba(17, 18, 16, 0.9);
  --dy26-process-line: rgba(218, 211, 193, 0.2);
  --dy26-process-muted: rgba(238, 235, 225, 0.64);
  --dy26-process-red: #b42f2d;
}

.dy26-process-page .dy26-section {
  padding-block: clamp(3.5rem, 7vw, 7.5rem);
}

.dy26-process-page__section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.dy26-process-page__section-heading h2,
.dy26-process-page__workshop-copy h2,
.dy26-process-page__gallery-heading h2 {
  max-width: 15ch;
  margin: 0;
  text-wrap: balance;
}

.dy26-process-page__section-intro {
  max-width: 35rem;
  margin: 0;
  color: var(--dy26-process-muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
}

.dy26-process-page__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  background: var(--dy26-process-line);
}

.dy26-process-page__step {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-width: 0;
  background: var(--dy26-process-panel);
}

.dy26-process-page__step-media {
  position: relative;
  display: block;
  min-height: 13rem;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(180, 47, 45, 0.13), transparent 42%),
    linear-gradient(0deg, rgba(5, 6, 6, 0.74), rgba(5, 6, 6, 0.06)),
    var(--dy26-ink-deep, #080908);
  aspect-ratio: 4 / 3;
}

.dy26-process-page__step-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05) brightness(0.76);
  transition: filter 260ms ease, transform 420ms ease;
}

.dy26-process-page__step:hover .dy26-process-page__step-media img {
  filter: saturate(0.92) contrast(1.03) brightness(0.92);
  transform: scale(1.025);
}

.dy26-process-page__photo-slot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.15rem;
  color: var(--dy26-process-muted);
  border: 1px dashed rgba(218, 211, 193, 0.28);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.dy26-process-page__step-content {
  position: relative;
  padding: clamp(1.25rem, 2.15vw, 2rem);
}

.dy26-process-page__step-number {
  display: block;
  margin-bottom: 1.35rem;
  color: var(--dy26-process-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.dy26-process-page__step h3 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.3rem, 1.75vw, 1.75rem);
  line-height: 1.02;
  text-wrap: balance;
}

.dy26-process-page__step p {
  max-width: 34ch;
  margin: 1rem 0 0;
  color: var(--dy26-process-muted);
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  line-height: 1.65;
}

.dy26-process-page__workshop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
  min-height: clamp(28rem, 46vw, 43rem);
  overflow: hidden;
  background: var(--dy26-process-panel-strong);
  border: 1px solid var(--dy26-process-line);
}

.dy26-process-page__workshop-media {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--dy26-ink-deep, #080908);
}

.dy26-process-page__workshop-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.04) brightness(0.82);
}

.dy26-process-page__workshop-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 6rem);
}

.dy26-process-page__workshop-copy p:not(.dy26-eyebrow) {
  max-width: 35rem;
  margin: 1.5rem 0 0;
  color: var(--dy26-process-muted);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.72;
}

.dy26-process-page__gallery-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.dy26-process-page__gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.72fr) minmax(0, 0.72fr);
  gap: 1px;
  background: var(--dy26-process-line);
}

.dy26-process-page__gallery--two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.dy26-process-page__gallery figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--dy26-ink-deep, #080908);
}

.dy26-process-page__gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(20rem, 35vw, 32rem);
  object-fit: cover;
  filter: saturate(0.8) contrast(1.04) brightness(0.8);
  transition: filter 260ms ease, transform 420ms ease;
}

.dy26-process-page__gallery figure:hover img {
  filter: saturate(0.95) contrast(1.02) brightness(0.95);
  transform: scale(1.02);
}

.dy26-process-page__gallery figure:nth-child(2) img {
  object-position: 48% center;
}

.dy26-process-page__gallery figure:nth-child(3) img {
  object-position: center;
}

.dy26-process-page .dy26-editorial-cta__layout {
  padding-block: clamp(2rem, 5vw, 4.5rem);
  border-block: 1px solid var(--dy26-process-line);
}

.dy26-process-page .dy26-button:focus-visible,
.dy26-editorial-hero--process .dy26-button:focus-visible {
  outline: 2px solid var(--dy26-text, #f4f0e4);
  outline-offset: 4px;
}

/* The process hero CTA already carries its directional arrow in its label. */
.dy26-editorial-hero--process .dy26-button > span[aria-hidden="true"] {
  display: none;
}

@media (max-width: 63.99rem) {
  .dy26-process-page__section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dy26-process-page__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dy26-process-page__workshop-layout {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.9fr);
  }

  .dy26-process-page__workshop-copy {
    padding: clamp(2rem, 4vw, 3.5rem);
  }
}

@media (max-width: 47.99rem) {
  .dy26-process-page .dy26-section {
    padding-block: clamp(3rem, 12vw, 4.5rem);
  }

  .dy26-process-page__section-heading,
  .dy26-process-page__gallery-heading {
    display: block;
  }

  .dy26-process-page__section-heading h2,
  .dy26-process-page__workshop-copy h2,
  .dy26-process-page__gallery-heading h2 {
    max-width: 18ch;
  }

  .dy26-process-page__section-intro {
    margin-top: 1rem;
    font-size: 1rem;
  }

  .dy26-process-page__steps {
    grid-template-columns: 1fr;
  }

  .dy26-process-page__step-media {
    min-height: 15rem;
  }

  .dy26-process-page__step-content {
    padding: 1.4rem 1.25rem 1.6rem;
  }

  .dy26-process-page__step-number {
    margin-bottom: 1rem;
  }

  .dy26-process-page__step h3 {
    font-size: clamp(1.45rem, 7vw, 1.8rem);
  }

  .dy26-process-page__step p {
    max-width: 42ch;
    font-size: 1rem;
  }

  .dy26-process-page__workshop-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dy26-process-page__workshop-media {
    min-height: clamp(20rem, 92vw, 30rem);
  }

  .dy26-process-page__workshop-copy {
    padding: 2rem 1.25rem 2.4rem;
  }

  .dy26-process-page__workshop-copy p:not(.dy26-eyebrow) {
    font-size: 1.06rem;
  }

  .dy26-process-page__gallery {
    grid-template-columns: 1fr;
  }

  .dy26-process-page__gallery img {
    min-height: clamp(20rem, 88vw, 28rem);
  }

  .dy26-process-page__gallery figure:nth-child(2) img,
  .dy26-process-page__gallery figure:nth-child(3) img {
    object-position: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dy26-process-page__step-media img,
  .dy26-process-page__gallery img {
    transition: none;
  }
}

