/* ══════════════════════════════════════════════════════════════
   EMERA · Warranty — page-specific styles
   Editorial conditions, hairline timeline, no cards.
═══════════════════════════════════════════════════════════════ */

/* ── Timeline (horizontal hairline) ── */
.wr-timeline-section .ep-section-num { margin-bottom: 24px; }
.wr-timeline-section .ep-section-title { margin-bottom: clamp(48px, 7vh, 80px); }

.wr-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  max-width: 1100px;
}
.wr-tl-track {
  position: absolute;
  top: 6px;
  left: clamp(10px, 1vw, 16px);
  right: clamp(10px, 1vw, 16px);
  height: 1px;
  background: var(--hair);
  z-index: 0;
}
.wr-tl-step {
  position: relative;
  z-index: 1;
  display: flex; flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.wr-tl-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--ink);
  transition: background .35s var(--ease-out), transform .35s var(--ease-out);
}
.wr-tl-step.is-gold .wr-tl-dot {
  background: var(--gold);
  border-color: var(--gold);
}
.wr-tl-step:hover .wr-tl-dot { transform: scale(1.2); }
.wr-tl-yr {
  font-family: var(--serif);
  font-weight: 200;
  font-style: italic;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-top: 8px;
}
.wr-tl-step.is-gold .wr-tl-yr { color: var(--gold); }
.wr-tl-lb {
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-left: .42em;
}
.wr-tl-d {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  color: var(--ink-3);
  max-width: 22ch;
}

/* ══════════════════════════════════════════════════════════
   7 CONDITIONS — sticky number left, content right
═══════════════════════════════════════════════════════════ */
.wr-cond { padding-top: clamp(80px, 14vh, 140px); padding-bottom: clamp(80px, 14vh, 140px); }
.wr-cond-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.wr-cond-side {
  position: sticky;
  top: 96px;
}
.wr-cond-side .ep-section-num {
  margin-bottom: 0;
}
.wr-cond-body { max-width: 680px; }
.wr-cond-body .ep-section-title { margin-bottom: 32px; }

/* List in section 03 */
.wr-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 16px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  color: var(--ink-2);
}
.wr-list li {
  position: relative;
  padding-left: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hair-2);
}
.wr-list li:last-child { border-bottom: none; padding-bottom: 0; }
.wr-list li::before {
  content: '—';
  position: absolute;
  left: 0; top: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 300;
}

.wr-stamp {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.wr-stamp-l { color: var(--ink); }
.wr-stamp-r { color: var(--ink-3); }

/* ══════════════════════════════════════════════════════════
   CLOSING
═══════════════════════════════════════════════════════════ */
.wr-close {
  text-align: center;
  padding-top: clamp(120px, 22vh, 240px);
  padding-bottom: clamp(120px, 22vh, 240px);
}
.wr-close .ep-section-num {
  margin-bottom: clamp(40px, 6vh, 64px);
  margin-left: auto; margin-right: auto;
  display: block;
}
.wr-close-title {
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.05;
  max-width: 20ch;
  margin: 0 auto;
}
.wr-close-lead {
  margin: clamp(36px, 5vh, 56px) auto 0;
  max-width: 560px;
  text-align: center;
}
.wr-close-meta {
  margin-top: clamp(56px, 7vh, 80px);
  display: flex;
  align-items: center; justify-content: center;
  gap: clamp(24px, 4vw, 64px);
  flex-wrap: wrap;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.wr-close-meta a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: color .25s, border-color .25s, letter-spacing .35s var(--ease-out);
}
.wr-close-meta a:hover {
  color: var(--gold);
  border-color: var(--gold);
  letter-spacing: .38em;
}

/* ══════════════════════════════════════════════════════════
   HERO IMAGE — strap & buckle close-up, right side, fade left
═══════════════════════════════════════════════════════════ */
.wr-hero { position: relative; }
.wr-hero .ep-hero-inner { position: relative; z-index: 3; }

/* Bottom hairline delimiter — clearly closes the hero + image block */
.wr-hero::after {
  content: '';
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--ink);
  opacity: .14;
  z-index: 4;
}
/* Suppress the generic rule after — the hero already has its own line */
.wr-hero + hr.ep-rule { display: none; }

.wr-hero-img {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: clamp(380px, 52vw, 820px);
  margin: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  /* Fade-in animation */
  opacity: 0;
  animation: wrHeroImgFade 1.6s var(--ease-out) .4s forwards;
  /* Tight left + top fade — both edges dissolve into white identically */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, rgba(0,0,0,.5) 10%, #000 22%, #000 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.5) 10%, #000 22%, #000 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right,  transparent 0%, rgba(0,0,0,.5) 10%, #000 22%, #000 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.5) 10%, #000 22%, #000 100%);
          mask-composite: intersect;
}
.wr-hero-img img,
.wr-hero-img picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
@keyframes wrHeroImgFade { to { opacity: 1; } }

/* Keep the title above the image; constrain text column so it never overlaps the buckle */
.wr-hero .ep-title,
.wr-hero .ep-tagline,
.wr-hero .ep-hero-row,
.wr-hero .ep-eyebrow {
  max-width: min(56ch, 60%);
}
.wr-hero .ep-title { max-width: 12ch; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .wr-timeline { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .wr-tl-track { display: none; }
  .wr-cond-grid { grid-template-columns: 1fr; gap: 24px; }
  .wr-cond-side { position: static; }
  .wr-stamp { flex-direction: column; gap: 6px; }
  /* Image: shrink and slide off-right so the title breathes on tablets */
  .wr-hero-img { width: 60%; opacity: .55; }
  .wr-hero .ep-title,
  .wr-hero .ep-tagline,
  .wr-hero .ep-hero-row,
  .wr-hero .ep-eyebrow { max-width: 100%; }
  .wr-hero .ep-title { max-width: 12ch; }
}
@media (max-width: 600px) {
  .wr-timeline { grid-template-columns: 1fr; gap: 32px; }
  .wr-close-meta { flex-direction: column; gap: 14px; }
  /* Hide the photo on phones — pure typography hero */
  .wr-hero-img { display: none; }
}
