/* Scrubbed Braille sequence. Default = stacked content with an SVG cell beside each step.
   html.cell3d = sticky 3D stage on the left, steps scroll on the right. */
.seq { background: var(--ink); }
.seq-stage { display: none; }
.seq-stage .stage-in { position: relative; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: radial-gradient(110% 80% at 50% 30%, #23232c 0%, var(--ink) 70%); }
.seq-stage .cv { position: relative; min-height: 0; }
.seq-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-lbl { padding: .9rem var(--gut) 1.4rem; display: flex; align-items: center; gap: 1.2rem; border-top: 2px solid rgba(247, 222, 185, .25); background: var(--ink); }
.stage-lbl .big { font: 800 clamp(3rem, 6vw, 5.5rem)/1 var(--f-display); color: var(--goa-orange); min-width: 1ch; }
.stage-lbl .txt { font: 700 clamp(1rem, 1.6vw, 1.35rem)/1.3 var(--f-display); margin: 0; max-width: 22ch; }
.stage-ticks { position: absolute; top: 1rem; right: 1rem; display: flex; gap: .35rem; }
.stage-ticks i { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(247, 222, 185, .35); }
.stage-ticks i.on { background: var(--goa-orange); }
.seq-text section { background: var(--ink); color: var(--cream); }
.seq-text .blk { padding-block: clamp(3rem, 7vw, 5.5rem); }
.seq-text .wrap { padding-inline: var(--gut); max-width: 56rem; margin-inline: 0; }
.seq-intro { font-size: 1.2rem; max-width: 40rem; }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.step { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0 1.6rem; padding: 2rem 0 2.2rem; border-top: 2px solid rgba(247, 222, 185, .28); max-width: none; }
.step > svg { width: 6rem; height: 9.6rem; color: var(--goa-orange); grid-row: 1 / span 2; }
.lbl { font: 800 .95rem/1.3 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--goa-orange); margin: 0 0 .6rem; max-width: none; }
.step h3 { margin-bottom: .6rem; }
.step dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: 0 0 1rem; max-width: 26rem; }
.step dt { font-weight: 700; } .step dd { margin: 0; font-variant-numeric: lining-nums; }
.step .btn { margin-top: .2rem; }
/* 3D mode */
html.cell3d .seq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
html.cell3d .seq-stage { display: block; position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 30rem; align-self: start; z-index: 2; border-right: 2px solid rgba(247, 222, 185, .2); }
html.cell3d .step { grid-template-columns: 1fr; min-height: 78vh; min-height: 78svh; align-content: center; border-top: 0; border-left: 6px solid rgba(247, 222, 185, .2); padding-left: 1.6rem; transition: border-color .3s; }
html.cell3d .step > svg { display: none; }
html.cell3d .step.is-active { border-left-color: var(--goa-orange); }
html.cell3d .steps { margin-top: 1.5rem; }
html.cell3d .seq-text a, html.cell3d .seq-text button { scroll-margin-top: 40svh; }
@media (max-width: 62rem) {
  html.cell3d .seq { grid-template-columns: 1fr; }
  html.cell3d .seq-stage { height: 40vh; height: 40svh; min-height: 17rem; border-right: 0; border-bottom: 3px solid var(--goa-orange); }
  .stage-lbl { padding: .5rem var(--gut) .7rem; } .stage-lbl .big { font-size: 2.4rem; }
  html.cell3d .step { min-height: 62vh; min-height: 62svh; }
  html.cell3d .seq-text .wrap { max-width: none; }
}
@media (max-width: 34rem) { .step { grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0 1rem; } .step > svg { width: 4.2rem; height: 6.7rem; } }
@media (prefers-reduced-motion: reduce) { html.cell3d .step { transition: none; } }
@media (forced-colors: active) { .step { border-color: CanvasText; } html.cell3d .step.is-active { border-left-color: Highlight; } }
.seq-text h2 { font-size: clamp(2rem, 4vw, 3.6rem); overflow-wrap: anywhere; }
.seq-text, .seq-text .wrap { min-width: 0; }
html:not(.cell3d) .seq-text .wrap { margin-inline: auto; }
