/* ============================================================
   JustPlay OC — editorial.css
   The minimalist "editorial" layer shared by every redesigned page.
   Loads after styles.css. Same brand fonts + colours, new feel:
   giant Anton headlines, hairline rules, catalog rows, few words.
   Prefix: .rg-*  (started on registration.html)
============================================================ */

.rg { --rule: rgba(21,23,30,0.16); --muted: rgba(21,23,30,0.55); background: var(--cream); color: var(--ink); }
.rg-wrap { max-width: 1400px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem); }
.rg-label { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Hero — one giant word, then the facts */
.rg-hero { padding: calc(var(--header-height) + clamp(1.5rem, 4vw, 3rem)) 0 0; }
.rg-hero-top { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--ink); }
.rg-title { font-family: var(--font-poster); font-weight: 400; text-transform: uppercase; color: var(--navy);
  font-size: clamp(4rem, 26.2vw, 23.5rem); line-height: 0.8; letter-spacing: -0.01em; margin: clamp(1rem, 2.5vw, 2rem) 0 0; white-space: nowrap; }
.rg-title span { color: var(--accent); }
.rg-title .rg-title-line { color: var(--navy); }
.rg-title-line { display: block; overflow: hidden; padding-bottom: 0.02em; }
.rg-title-line > span:first-child { display: inline-block; color: inherit; animation: rgRise 1s var(--ease-out-expo) both; }
@keyframes rgRise { from { transform: translateY(100%); } to { transform: none; } }

.rg-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); margin-top: clamp(1.25rem, 3vw, 2.5rem); }
.rg-fact { padding: 1.1rem 1.25rem 1.5rem 0; }
.rg-fact + .rg-fact { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.rg-fact-val { display: block; font-family: var(--font-poster); font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1; text-transform: uppercase; color: var(--ink); margin-top: 0.5rem; }

/* Photo band */
.rg-band { position: relative; height: clamp(340px, 68vh, 720px); overflow: hidden; background: var(--navy-dark); }
.rg-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; transform: scale(1.04); animation: rgZoom 2.4s var(--ease-out-expo) both; }
@keyframes rgZoom { from { transform: scale(1.14); } to { transform: scale(1.04); } }
.rg-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,48,0) 35%, rgba(11,20,48,0.78) 100%); }
.rg-band-text { position: absolute; inset: auto 0 0 0; z-index: 1; color: var(--cream); padding-bottom: clamp(1.25rem, 3vw, 2.5rem); }
.rg-band-text .rg-wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.rg-band-title { font-family: var(--font-poster); font-weight: 400; text-transform: uppercase; font-size: clamp(3.5rem, 13vw, 12rem); line-height: 0.82; }
.rg-band-meta { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; text-align: right; line-height: 1.8; }
.rg-band-meta strong { color: var(--accent); font-weight: 600; }

/* Section header */
.rg-sec { padding: clamp(4rem, 8vw, 7rem) 0 0; }
.rg-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.rg-h2 { font-family: var(--font-poster); font-weight: 400; text-transform: uppercase; color: var(--navy); font-size: clamp(3rem, 9vw, 8rem); line-height: 0.85; }

/* Programs — catalog rows */
.rg-prog { display: grid; grid-template-columns: 3.5rem minmax(200px, 340px) 1fr; gap: clamp(1rem, 3vw, 3rem); padding: clamp(1.75rem, 3.5vw, 3rem) 0; border-bottom: 1px solid var(--rule); }
.rg-prog-num { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); }
.rg-prog-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--navy); }
.rg-prog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out-expo); }
.rg-prog:hover .rg-prog-img img { transform: scale(1.05); }
.rg-prog-body { display: flex; flex-direction: column; min-width: 0; }
.rg-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rg-pill { font-family: var(--font-display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.7rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); }
.rg-pill--live { background: var(--accent); border-color: var(--accent); color: #fff; }
.rg-pill--live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 0.45rem; vertical-align: 1px; animation: rgPulse 1.6s ease-in-out infinite; }
@keyframes rgPulse { 50% { opacity: 0.25; } }
.rg-pill--closed { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.rg-prog-name { font-family: var(--font-poster); font-weight: 400; text-transform: uppercase; color: var(--ink); font-size: clamp(2.5rem, 5.5vw, 5rem); line-height: 0.9; margin: 1rem 0 1.75rem; }
.rg-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-top: auto; }
.rg-spec { padding: 0.9rem 1rem 0 0; }
.rg-spec + .rg-spec { padding-left: 1rem; border-left: 1px solid var(--rule); }
.rg-spec dd { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin-top: 0.35rem; }
.rg-spec dd small { display: block; font-weight: 400; font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }
.rg-price { font-family: var(--font-poster) !important; font-weight: 400 !important; font-size: clamp(2rem, 3.4vw, 3rem) !important; line-height: 1 !important; color: var(--accent); }
.rg-cta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.75rem; }
.rg-cta .btn { padding: 0.95rem 1.75rem; }
.rg-cta .btn span { transition: transform 0.25s ease; }
.rg-cta .btn:hover span { transform: translateX(4px); }
.rg-note { font-size: 0.88rem; color: var(--muted); max-width: 44ch; line-height: 1.5; }
.rg-note strong { color: var(--accent); font-weight: 600; }
.rg-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.rg-prog--closed .rg-prog-img img { filter: grayscale(1); opacity: 0.55; }
.rg-prog--closed .rg-prog-name, .rg-prog--closed .rg-spec dd { color: var(--muted); }

/* Payment plan */
.rg-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1.5rem, 5vw, 5rem); padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.rg-split-intro p { font-size: 1rem; color: var(--muted); max-width: 32ch; margin-top: 0.75rem; }
.rg-rows { border-top: 1px solid var(--ink); }
.rg-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.rg-row-k { font-family: var(--font-display); font-size: 1rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.rg-row-v { font-family: var(--font-poster); font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1; }
.rg-row--total .rg-row-v { color: var(--accent); }

/* Forms — Narrative-style list, inverts on hover */
.rg-forms { border-top: 1px solid var(--ink); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.rg-form { display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center; gap: 1rem; padding: clamp(1.25rem, 2.5vw, 2rem) clamp(0.5rem, 1.5vw, 1.25rem); border-bottom: 1px solid var(--rule); color: var(--ink); transition: background 0.3s ease, color 0.3s ease, padding 0.3s var(--ease-out-expo); }
.rg-form-name { font-family: var(--font-poster); text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1; }
.rg-form-go { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.rg-form:hover, .rg-form:focus-visible { background: var(--navy); color: var(--cream); padding-left: clamp(1rem, 2.5vw, 2rem); outline: none; }
.rg-form:hover .rg-prog-num, .rg-form:focus-visible .rg-prog-num { color: var(--accent); }
.rg-form:hover .rg-form-go, .rg-form:focus-visible .rg-form-go { color: var(--accent); }

/* Good to know */
.rg-know { display: grid; grid-template-columns: repeat(3, 1fr); padding: clamp(4rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 6rem); }
.rg-know > div { padding: 1.1rem 1.5rem 0 0; border-top: 1px solid var(--ink); }
.rg-know > div + div { padding-left: 1.5rem; }
.rg-know p { font-size: 1.05rem; font-weight: 600; margin-top: 0.5rem; line-height: 1.45; }
.rg-know a { color: var(--accent); }

@media (max-width: 1180px) {
  .rg-prog { grid-template-columns: 2.5rem 220px 1fr; }
  .rg-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-spec:nth-child(3) { padding-left: 0; border-left: 0; }
  .rg-spec:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 0.9rem; }
}
@media (max-width: 760px) {
  .rg-hero-top .rg-label:nth-child(2) { display: none; }
  .rg-facts { grid-template-columns: repeat(2, 1fr); }
  .rg-fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .rg-fact:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .rg-band-meta { text-align: left; }
  .rg-prog { grid-template-columns: 1fr; gap: 1rem; }
  .rg-prog-num { display: none; }
  .rg-prog-img { aspect-ratio: 16 / 10; }
  .rg-split { grid-template-columns: 1fr; }
  .rg-form { grid-template-columns: 2rem 1fr auto; }
  .rg-know { grid-template-columns: 1fr; gap: 1.5rem; }
  .rg-know > div + div { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rg-title-line > span:first-child, .rg-band img, .rg-pill--live::before { animation: none; }
}

/* ============================================================
   EXTENDED COMPONENTS
============================================================ */

/* Giant one-word masthead for any page. Set --mega per page so the
   word spans the container (≈ 94vw / word-width-in-em). */
.rg-mega { font-family: var(--font-poster); font-weight: 400; text-transform: uppercase; color: var(--navy);
  font-size: clamp(3.5rem, var(--mega, 20vw), var(--mega-max, 22rem)); line-height: 0.8; letter-spacing: -0.01em;
  margin: clamp(1rem, 2.5vw, 2rem) 0 0; white-space: nowrap; }
.rg-mega .rg-dot, .rg-red { color: var(--accent); }
.rg-mega .rg-title-line { color: inherit; }

/* Hyphen-split stacked word: RE- / SUME */
.rg-stack { font-family: var(--font-poster); font-weight: 400; text-transform: uppercase; color: var(--accent);
  font-size: clamp(3.5rem, 11vw, 10rem); line-height: 0.84; letter-spacing: -0.005em; }
.rg-stack--navy { color: var(--navy); }

/* Vertical headline running up the side */
.rg-vert { font-family: var(--font-poster); font-weight: 400; text-transform: uppercase; color: var(--accent);
  writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(3rem, 8vw, 7.5rem); line-height: 0.85; white-space: nowrap; }

/* Section marker: (A) Label ───────── */
.rg-mark { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.rg-mark-letter { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1px solid var(--ink); border-radius: 50%;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; }
.rg-mark::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* Ticker strip */
.rg-ticker { overflow: hidden; background: var(--navy); color: var(--cream); border-block: 1px solid var(--ink); }
.rg-ticker-track { display: flex; width: max-content; animation: rgTicker 32s linear infinite; }
.rg-ticker-track span { font-family: var(--font-poster); text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1; padding: 0.8rem 1.5rem; white-space: nowrap; }
.rg-ticker-track span:nth-child(even) { color: var(--accent); padding-inline: 0.25rem; }
.rg-ticker--red { background: var(--accent); }
.rg-ticker--red .rg-ticker-track span:nth-child(even) { color: var(--navy); }
@keyframes rgTicker { to { transform: translateX(-50%); } }

/* Big statement paragraph (first sentence ink, rest muted) */
.rg-pull { font-family: var(--font-body); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.25rem); line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); max-width: 30ch; }
.rg-pull span { color: var(--muted); }

/* Giant stat */
.rg-stat { display: flex; flex-direction: column; gap: 0.35rem; }
.rg-stat-num { font-family: var(--font-poster); font-size: clamp(4rem, 10vw, 9rem); line-height: 0.85; color: var(--accent); }
.rg-stat-num sup { font-size: 0.4em; vertical-align: top; }
.rg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--ink); }
.rg-stats > * { padding: 1.25rem 1.25rem 0 0; }
.rg-stats > * + * { padding-left: 1.25rem; border-left: 1px solid var(--rule); }

/* Photo hero with headline laid over it (rounded bottom) */
.rg-photohero { position: relative; margin-top: var(--header-height); height: clamp(460px, 86vh, 900px); overflow: hidden;
  border-radius: 0 0 clamp(18px, 3vw, 40px) clamp(18px, 3vw, 40px); background: var(--navy-dark); }
.rg-photohero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: rgZoom 2.4s var(--ease-out-expo) both; }
.rg-photohero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,48,0.35) 0%, rgba(11,20,48,0) 40%, rgba(11,20,48,0.75) 100%); }
.rg-photohero-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-block: clamp(1.25rem, 3vw, 2.5rem); color: var(--cream); }
.rg-photohero .rg-mega { color: var(--cream); margin: 0; }
.rg-photohero .rg-label { color: rgba(244,238,225,0.75); }

/* Rounded image tiles (portfolio-style) */
.rg-tiles { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.rg-tile { position: relative; overflow: hidden; border-radius: clamp(14px, 2vw, 28px); aspect-ratio: var(--ar, 3 / 4); background: var(--navy); }
.rg-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out-expo); }
.rg-tile:hover img { transform: scale(1.05); }
.rg-tile-cap { position: absolute; left: 0.75rem; bottom: 0.75rem; right: 0.75rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); }
.rg-tile-cap span { background: rgba(11,20,48,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 0.4rem 0.75rem; border-radius: 999px; }

/* Catalog grid with hairline cells (Archivo) */
.rg-cells { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.rg-cell { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(1.25rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.rg-cell-title { font-family: var(--font-poster); text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 0.95; color: var(--ink); }
.rg-cell p { font-size: 0.95rem; color: var(--muted); line-height: 1.55; }

/* Numbered steps */
.rg-steps { counter-reset: rgstep; border-top: 1px solid var(--ink); }
.rg-step { display: grid; grid-template-columns: clamp(4rem, 9vw, 8rem) 1fr; gap: clamp(1rem, 3vw, 3rem); padding: clamp(1.25rem, 2.5vw, 2rem) 0; border-bottom: 1px solid var(--rule); }
.rg-step::before { counter-increment: rgstep; content: counter(rgstep, decimal-leading-zero); font-family: var(--font-poster); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 0.85; color: var(--accent); }
.rg-step h3 { font-family: var(--font-poster); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1; }
.rg-step p { color: var(--muted); margin-top: 0.4rem; max-width: 60ch; }

/* Pill button with arrow disc */
.rg-pillbtn { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.35rem 0.35rem 0.35rem 1.25rem; border-radius: 999px; background: var(--ink); color: var(--cream);
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.25s ease; }
.rg-pillbtn i { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--cream); color: var(--ink); font-style: normal; transition: transform 0.3s var(--ease-out-expo); }
.rg-pillbtn:hover { background: var(--accent); }
.rg-pillbtn:hover i { transform: rotate(-45deg); }
.rg-pillbtn--red { background: var(--accent); }
.rg-pillbtn--red:hover { background: var(--navy); }
.rg-pillbtn--light { background: var(--cream); color: var(--ink); }
.rg-pillbtn--light i { background: var(--accent); color: #fff; }

/* Closing CTA band: full-bleed photo + giant word */
.rg-end { position: relative; overflow: hidden; background: var(--navy-dark); color: var(--cream); padding: clamp(5rem, 12vw, 10rem) 0 clamp(2rem, 4vw, 3rem); }
.rg-end > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.rg-end .rg-wrap { position: relative; }
.rg-end .rg-mega { color: var(--cream); margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); }

/* Sparkle */
.rg-star { display: inline-block; color: var(--accent); font-size: 1.4rem; line-height: 1; }

/* Dark section variant */
.rg-dark { background: var(--navy); color: var(--cream); --rule: rgba(244,238,225,0.18); --muted: rgba(244,238,225,0.6); }
.rg-dark .rg-h2, .rg-dark .rg-cell-title, .rg-dark .rg-prog-name { color: var(--cream); }
.rg-dark .rg-sec-head, .rg-dark .rg-steps, .rg-dark .rg-cells, .rg-dark .rg-stats, .rg-dark .rg-rows { border-color: var(--cream); }
.rg-dark .rg-mark-letter { border-color: var(--cream); }
.rg-dark .rg-pull, .rg-dark .rg-row-k, .rg-dark .rg-row-v, .rg-dark .rg-step h3, .rg-dark .rg-form { color: var(--cream); }
.rg-dark .rg-pillbtn--light i { color: #fff; }
.rg-dark.rg-sec, .rg-sec.rg-dark { padding-bottom: clamp(4rem, 8vw, 7rem); }

/* Simple form fields */
.rg-field { display: flex; flex-direction: column; gap: 0.4rem; }
.rg-field input, .rg-field select, .rg-field textarea { font: inherit; font-size: 1.05rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: 0.6rem 0; border-radius: 0; outline: none; transition: border-color 0.2s ease; }
.rg-field textarea { min-height: 7rem; resize: vertical; }
.rg-field input:focus, .rg-field select:focus, .rg-field textarea:focus { border-bottom-color: var(--accent); border-bottom-width: 2px; }

@media (max-width: 760px) {
  .rg-tiles, .rg-cells { grid-template-columns: 1fr 1fr; }
  .rg-stats > * + * { padding-left: 0; border-left: 0; }
  .rg-stats > * { border-bottom: 1px solid var(--rule); padding-bottom: 1rem; }
  .rg-vert { writing-mode: horizontal-tb; transform: none; }
  .rg-step { grid-template-columns: 3.5rem 1fr; }
}
@media (max-width: 480px) {
  .rg-tiles, .rg-cells { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rg-ticker-track, .rg-photohero > img { animation: none; }
}
