/* ============================================================
   ONCE & EVER — HOW TO ORDER
   Homepage section: the film, the five steps, and the closing
   invitation. The step row doubles as the film's chapter
   indicator — the gold hairline above each step fills as the
   film reaches it, so there is only one set of numbers on the
   page rather than a progress bar repeating the step list.
   ============================================================ */

.order-guide {
  background: var(--warm-white);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding: var(--gap-lg) var(--page);
}

.order-guide .section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.order-guide .section-note { max-width: 46ch; margin: 1.1rem auto 0; }

/* ---------- THE FILM ---------- */
.og-film { max-width: 1060px; margin: 0 auto; }

/* a narrow ivory mat inside a gold hairline — the way a plate is
   mounted, rather than a rounded video card */
.og-film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--deep-burgundy);
  border: 1px solid var(--gold-border);
  outline: 8px solid var(--warm-white);
  outline-offset: -9px;
  overflow: hidden;
}

.og-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--deep-burgundy);
}

/* ---------- PLAY OVERLAY ---------- */
/* stops short of the bottom edge so the native control bar stays
   reachable by mouse and by keyboard underneath it */
.og-play {
  position: absolute;
  inset: 0 0 54px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  background: radial-gradient(ellipse at 50% 56%, rgba(37, 35, 35, .34) 0%, rgba(37, 35, 35, 0) 62%);
  transition: opacity .5s var(--ease), visibility 0s;
}
.og-film-frame.is-playing .og-play,
.og-film-frame.is-unavailable .og-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.og-play-ring {
  width: clamp(64px, 8vw, 86px);
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 7, 15, .42);
  backdrop-filter: blur(1px);
  transition: background .45s var(--ease), transform .45s var(--ease), border-color .45s var(--ease);
}
.og-play-ring svg {
  width: 26%;
  margin-left: 12%; /* optically centres the triangle in the ring */
  fill: var(--gold-light);
  transition: fill .45s var(--ease);
}
.og-play:hover .og-play-ring,
.og-play:focus-visible .og-play-ring {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.06);
}
.og-play:hover .og-play-ring svg,
.og-play:focus-visible .og-play-ring svg { fill: var(--deep-burgundy); }

.og-play-label {
  font-family: var(--ff-sub);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* shown only when the film file is not in place yet */
.og-film-soon {
  position: absolute;
  left: 50%;
  bottom: clamp(1.2rem, 4vw, 2.2rem);
  transform: translateX(-50%);
  width: min(38ch, 86%);
  text-align: center;
  font-family: var(--ff-sub);
  font-size: .72rem;
  letter-spacing: .06em;
  line-height: 1.7;
  color: rgba(var(--ivory-a), .72);
}

.og-film-cap {
  margin-top: 1rem;
  text-align: center;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- THE FIVE STEPS / CHAPTER INDICATOR ---------- */
.og-steps {
  max-width: 1060px;
  margin: clamp(2.6rem, 5vw, 4rem) auto 0;
  display: grid;
  /* six steps now, not five — three across two rows rather than six thin
     columns, which the longer step copy could not hold */
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
}

.og-step {
  position: relative;
  padding-top: 1.6rem;
  border-top: 1px solid var(--gold-border);
}

/* the travelling gold line — JS sets --p from 0 to 1 per step as
   the film plays; it sits exactly over the hairline above */
.og-step-rule {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  transition: transform .25s linear;
}
.og-progress.is-static .og-step-rule { display: none; }

.og-step-btn {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  width: 100%;
  text-align: left;
  padding: 0;
}
.og-step-btn:disabled { cursor: default; }

.og-step-node {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-border);
  background: var(--warm-white);
  transform: rotate(45deg);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.og-step.is-active .og-step-node,
.og-step.is-done .og-step-node { background: var(--gold); border-color: var(--gold); }

.og-step-num {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .4s var(--ease);
}
.og-step.is-active .og-step-num,
.og-step.is-done .og-step-num { color: var(--gold); }

.og-step-name {
  font-family: var(--ff-sub);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color .4s var(--ease);
}
.og-step.is-active .og-step-name { color: var(--burgundy); }
.og-step-btn:not(:disabled):hover .og-step-name { color: var(--gold); }

.og-step-copy {
  margin-top: .8rem;
  font-size: .86rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- CLOSING INVITATION ---------- */
.og-cta {
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  max-width: 640px;
  text-align: center;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border-soft);
}
.og-cta .script-accent {
  /* Playfair, not the script face — it sits directly above a Playfair
     line, and two different serifs a few pixels apart read as a mistake. */
  font-family: var(--ff-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.9rem, 3.7vw, 2.8rem);
  color: var(--burgundy);
}
.og-cta-title {
  margin-top: .3rem;
  font-family: var(--ff-display);
  font-style: italic;
  /* the sentence needs 673px at the old size against a 640px block */
  font-size: clamp(1.35rem, 2.7vw, 1.9rem);
  line-height: 1.25;
  color: var(--charcoal);
}
.og-cta .btn { margin-top: 1.8rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 899px) {
  .og-steps { grid-template-columns: 1fr; gap: 0; }
  .og-step { padding: 1.3rem 0 1.4rem 1.4rem; }
  .og-step:last-child { border-bottom: 1px solid var(--gold-border); }
  .og-step-node { left: -3px; top: -4px; }
  .og-step-copy { margin-top: .45rem; max-width: 58ch; }
}

@media (max-width: 600px) {
  .og-film-frame { outline-width: 5px; outline-offset: -6px; }
  .og-play { inset: 0 0 44px 0; gap: .85rem; }
  .og-play-label { font-size: .6rem; letter-spacing: .18em; }
  .og-film-soon { font-size: .66rem; bottom: .9rem; }
}
