/* ==========================================================================
   Artist Residency (residency.html): page layout only.
   Sections: hero (ink + residency artwork strip) → program (ink) →
   what you get (MINT, console channel strips) → selection (ink) →
   timeline (ink-2) → inaugural artist (dark feature) → apply (CREAM: the form while
   applications are open, the next opening date while they are closed; residency.js picks).
   No section, item or field-group numbers (the client's request, 22 Oct 2026): the order is
   carried by the layout and the headings.
   Components (buttons, countdown, release, facade, form fields) come from
   components.css; colours use the contextual tokens so themes switch cleanly.
   ========================================================================== */

/* ---- Hero ------------------------------------------------------------------ */
.rs-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vh, 4.5rem));
  background: var(--ink);
}
.rs-hero__glow {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 60% at 88% 18%, rgba(124, 204, 191, .16), rgba(124, 204, 191, 0) 70%),
    radial-gradient(45% 50% at 0% 85%, rgba(255, 106, 43, .14), rgba(255, 106, 43, 0) 70%);
}
.rs-hero__inner { position: relative; display: grid; gap: clamp(1.5rem, 3vh, 2.25rem); }
/* the status pill (open / closed) above the title; without JS there is no state, so no row either */
.rs-hero__top { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; }
html:not(.js) .rs-hero__top { display: none; }
.rs-hero__title { max-width: 9.4em; }
.rs-hero__title em { font-weight: 300; padding-right: .04em; }   /* text colour: mint italic is the home hero and footer wordmark only */
.rs-status--closed { background: rgba(243, 235, 224, .06); color: var(--muted); border-color: var(--line-strong); }

.rs-hero__foot {
  display: grid; grid-template-columns: minmax(0, 34ch) minmax(0, 1fr) auto; align-items: end;
  gap: 2rem clamp(2rem, 4vw, 4rem);
  padding-top: clamp(1.25rem, 2.6vh, 1.75rem); border-top: 1px solid var(--line);
}
.rs-hero__lead { font-size: var(--fs-lead); line-height: 1.5; color: rgba(243, 235, 224, .86); }
.rs-hero__lead strong { font-weight: 600; color: var(--cream); }
.rs-hero__clock { display: grid; gap: .9rem; justify-self: center; }
.rs-hero__clock-label { color: var(--muted); }
.rs-countdown .countdown__num { font-size: clamp(2.6rem, 4.6vw, 5rem); }
.rs-countdown .countdown__deadline { margin-top: .2rem; }
.rs-hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: end; }

.rs-hero__art { position: relative; margin: clamp(2.5rem, 6vh, 4.5rem) 0 0; aspect-ratio: 2560 / 534; overflow: hidden; background: #57A898; }
.rs-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.rs-hero__art-cap {
  position: absolute; left: var(--edge); right: var(--edge); bottom: .9rem; z-index: 2;
  display: flex; justify-content: space-between; gap: 1rem; color: var(--ink); opacity: .72; pointer-events: none;
}

@media (max-width: 1180px) {
  .rs-hero__foot { grid-template-columns: minmax(0, 1fr) auto; }
  .rs-hero__clock { justify-self: start; grid-row: 2; }
  .rs-hero__ctas { grid-row: 2; align-self: end; }
}
@media (max-width: 760px) {
  .rs-hero { padding-top: calc(var(--header-h) + 2rem); }
  .rs-hero__top { gap: .9rem; }
  .rs-hero__foot { grid-template-columns: 1fr; gap: 1.6rem; }
  .rs-hero__clock, .rs-hero__ctas { grid-row: auto; }
  .rs-hero__ctas { justify-content: stretch; flex-wrap: nowrap; gap: .6rem; }
  .rs-hero__ctas .btn { flex: 1 1 auto; min-height: 52px; padding-inline: 1rem; font-size: .92rem; }
  .rs-hero__ctas .btn__icon { display: none; }
  .rs-countdown { gap: 1.1rem; }
  .rs-countdown .countdown__num { font-size: clamp(2.5rem, 13vw, 3.4rem); }
  /* the left figure + piano keys, not the empty centre of the strip */
  .rs-hero__art { aspect-ratio: 16 / 9; }
  .rs-hero__art img { object-position: 6% 50%; }
  .rs-hero__art-cap { flex-direction: column; gap: .15rem; font-size: .62rem; left: auto; right: var(--gutter); text-align: right; }
}

/* ---- The program ------------------------------------------------------------ */
.rs-story { background: var(--ink); }
.rs-story__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap);
  row-gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start;
}
.rs-story__head { grid-column: 1 / -1; display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.rs-story__statement {
  max-width: 19ch; font-size: clamp(2.1rem, 5vw, 5.6rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 350;
}
.rs-story__photo { grid-column: 1 / span 6; display: grid; gap: .8rem; }
.rs-story__photo .media { box-shadow: var(--shadow-2); }
.rs-story__cap { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.rs-story__body { grid-column: 8 / -1; align-self: end; display: grid; gap: 1.5rem; padding-bottom: .5rem; }
.rs-story__body .lead { max-width: 34ch; font-size: clamp(1.2rem, 1.6vw, 1.6rem); line-height: 1.4; }
.rs-story__body .muted { max-width: 52ch; }
.rs-story__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1rem 0 0; border-top: 1px solid var(--rule); }
.rs-story__facts > div { display: grid; gap: .2rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.rs-story__facts > div:nth-child(2n) { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.rs-story__facts dt { color: var(--muted); }
.rs-story__facts dd { margin: 0; color: var(--cream); }
@media (max-width: 1000px) {
  .rs-story__photo { grid-column: 1 / span 6; }
  .rs-story__body { grid-column: 7 / -1; }
}
@media (max-width: 760px) {
  .rs-story__grid { grid-template-columns: 1fr; }
  .rs-story__head, .rs-story__photo, .rs-story__body { grid-column: 1; }
  .rs-story__photo { width: 78%; justify-self: end; }
  .rs-story__photo .media { --ratio: 4 / 5 !important; }
}

/* ---- What you get (mint) ----------------------------------------------------- */
.rs-offer { position: relative; overflow: hidden; isolation: isolate; }
.rs-offer::before {      /* soap: a soft lighter bloom in the corner */
  content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 70%; height: 90%;
  background: radial-gradient(closest-side, rgba(167, 233, 220, .6), rgba(167, 233, 220, 0));
  pointer-events: none;
}
.rs-offer__head .section-head__title { max-width: 12ch; }
.rs-strips {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
}
.rs-strip {
  display: grid; grid-template-rows: auto auto 46px auto 1fr; gap: 1.1rem; align-content: start;
  padding: 1.4rem clamp(1rem, 1.8vw, 1.75rem) 1.75rem; border-left: 1px solid var(--rule);
}
.rs-strip:first-child { border-left: 0; padding-left: 0; }
.rs-strip__ch { display: flex; align-items: center; }   /* the channel's scribble-strip label */
/* every value row is as tall as the big numerals and sits on one shared baseline,
   so "Optional" lines up with 4 / 40 / €5,000 and the meters below align */
.rs-strip__value { display: flex; align-items: last baseline; gap: .35rem; min-height: calc(clamp(3.6rem, 7.2vw, 8rem) * .86); font-family: var(--font-display); font-variation-settings: var(--soft); line-height: .86; }
.rs-strip__num { font-size: clamp(3.6rem, 7.2vw, 8rem); font-weight: 330; letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-strip__cur { font-size: .55em; vertical-align: .55em; margin-right: .04em; font-weight: 300; }
.rs-strip__unit { font-size: clamp(1.4rem, 2.2vw, 2.3rem); font-style: italic; font-weight: 300; letter-spacing: -.02em; }
.rs-strip__word { font-size: clamp(2.6rem, 4.6vw, 5.2rem); font-weight: 300; letter-spacing: -.04em; line-height: .95; white-space: nowrap; }
.rs-strip__word em { font-style: italic; }
.rs-strip__meter { align-self: center; height: 4px; }
.rs-strip__text { font-size: var(--fs-h5); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; max-width: 22ch; }
.rs-strip__spec { align-self: end; color: var(--fg-muted); }
/* 4 days × 7 hours, lit like LED ladders */
.rs-days { display: grid; grid-template-columns: repeat(4, 22px); gap: 6px; align-self: center; }
.rs-days__col { display: grid; grid-template-rows: repeat(7, 4px); gap: 2px; justify-items: stretch; }
.rs-days__col i { display: block; border-radius: 1px; background: var(--ink); transition: background-color .25s; }
.rs-days__col i.is-off { background: rgba(15, 13, 12, .16); }
.rs-scope {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 1rem var(--grid-gap);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.rs-scope__title { color: var(--fg-muted); padding-top: .2rem; }
.rs-scope__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem var(--grid-gap); }
.rs-scope__list li { font-size: var(--fs-small); line-height: 1.55; }
@media (max-width: 1100px) {
  .rs-strips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-strip:nth-child(3) { border-left: 0; padding-left: 0; }
  .rs-strip:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .rs-scope { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* each channel becomes a compact row: value left, copy right */
  .rs-strips { grid-template-columns: 1fr; }
  .rs-strip {
    grid-template-columns: auto minmax(0, 1fr); grid-template-rows: none;
    gap: .7rem 1.1rem; padding: 1.3rem 0 1.4rem; border-left: 0;
  }
  .rs-strip + .rs-strip { border-top: 1px solid var(--rule); }
  .rs-strip__ch { grid-column: 1 / -1; }
  .rs-strip__value { grid-column: 1; grid-row: 2 / span 2; align-self: start; align-items: baseline; flex-wrap: wrap; row-gap: .2rem; min-height: 0; }
  .rs-strip__num { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .rs-strip__cur { font-size: .5em; }
  .rs-strip__word { font-size: 2.1rem; white-space: normal; }
  .rs-strip__unit { font-size: 1.3rem; }
  .rs-strip__text { grid-column: 2; grid-row: 2; font-size: 1.02rem; }
  .rs-strip__spec { grid-column: 2; grid-row: 3; align-self: start; }
  .rs-strip__meter, .rs-days { grid-column: 1 / -1; grid-row: 4; }
  .rs-days { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .rs-scope__list { grid-template-columns: 1fr; }
}

/* ---- Selection ----------------------------------------------------------------- */
.rs-select { background: var(--ink); }
.rs-select__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: end; }
.rs-select__intro { display: grid; gap: 1.5rem; align-content: start; }
.rs-select__intro .t-d2 { max-width: 10ch; }
.rs-criteria { border-top: 1px solid var(--rule-strong); }
.rs-criterion {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr);   /* grid: the name is a block, so its hover shift applies */
  padding: clamp(1.1rem, 2.2vw, 1.8rem) 0; border-bottom: 1px solid var(--rule);
}
.rs-criterion__name {
  font-family: var(--font-display); font-variation-settings: var(--soft);
  font-size: clamp(2.1rem, 4.8vw, 5.4rem); line-height: 1; letter-spacing: -.035em; font-weight: 340;
  transition: transform .8s var(--ease-out), color .4s;
}
.rs-criterion__name em { font-weight: 300; }
.rs-criterion__bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--mint); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease-out); }
.rs-criterion:hover .rs-criterion__name { transform: translateX(clamp(.4rem, 1.2vw, 1.2rem)); color: var(--mint-hi); }
.rs-criterion:hover .rs-criterion__bar { transform: scaleX(1); }
@media (max-width: 900px) {
  .rs-select__grid { grid-template-columns: 1fr; }
}

/* ---- Timeline ---------------------------------------------------------------------- */
.rs-time { background: var(--ink-2); overflow: hidden; }
.rs-time__head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.rs-steps-wrap { position: relative; }
.rs-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--grid-gap); }
.rs-step { position: relative; display: grid; gap: .65rem; align-content: start; }
.rs-step__node {
  position: relative; z-index: 1; width: 19px; height: 19px; margin-bottom: 1.1rem; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--ink-2);
}
.rs-step.is-done .rs-step__node { background: var(--mint); border-color: var(--mint); }
.rs-step.is-now .rs-step__node { background: var(--hot); border-color: var(--hot); box-shadow: 0 0 0 6px rgba(255, 106, 43, .16), 0 0 24px rgba(255, 106, 43, .6); }
.rs-step__when { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; color: var(--mint); }
.rs-step.is-now .rs-step__when { color: var(--hot-soft); }
.rs-step__today { display: inline-flex; align-items: center; gap: .45rem; color: var(--cream); }
.rs-step__today .rec__dot { width: .55em; height: .55em; }
.rs-step__title { font-family: var(--font-display); font-variation-settings: var(--soft); font-size: clamp(1.35rem, 1.8vw, 1.9rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 380; }
.rs-step__text { color: var(--muted); font-size: var(--fs-small); max-width: 26ch; }
/* the rail runs through the node centres; the fill shows how far the cycle has come (to "now") */
.rs-steps__rail { position: absolute; left: 9px; right: 0; top: 9px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 11px); pointer-events: none; }
.rs-steps__fill { position: absolute; inset: 0; width: var(--rs-now, 0px); background: linear-gradient(90deg, var(--mint), var(--hot)); transform-origin: 0 50%; }
@media (max-width: 1100px) {
  .rs-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3rem; }
  .rs-steps__rail { display: none; }
}
@media (max-width: 640px) {
  /* vertical cue sheet: the rail runs down the node column */
  .rs-steps { grid-template-columns: 1fr; row-gap: 0; }
  .rs-step { grid-template-columns: 19px minmax(0, 1fr); column-gap: 1.1rem; row-gap: .35rem; padding-bottom: 2rem; }
  .rs-step__node { grid-row: 1 / span 3; margin: .1rem 0 0; }
  .rs-step__when, .rs-step__title, .rs-step__text { grid-column: 2; }
  .rs-steps__rail { display: block; left: 9px; right: auto; top: 10px; bottom: 2.5rem; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 11px); }
  .rs-steps__fill { width: 100%; height: var(--rs-now-y, 0px); background: linear-gradient(180deg, var(--mint), var(--hot)); transform-origin: 50% 0; }
}

/* ---- Inaugural artist ---------------------------------------------------------------- */
.rs-artist { position: relative; isolation: isolate; overflow: hidden; background: #0A0908; }
.rs-artist__ambient { position: absolute; inset: -20%; z-index: -2; opacity: .55; filter: blur(90px) saturate(1.3); }
.rs-artist__ambient img { width: 100%; height: 100%; object-fit: cover; }
.rs-artist::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--ink-2) 0%, rgba(15, 13, 12, .55) 22%, rgba(15, 13, 12, .62) 78%, var(--ink) 100%);
}
.rs-artist__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: center; }
.rs-artist__art { display: grid; gap: 1.1rem; justify-items: start; }
.rs-artist__release { --release-w: clamp(260px, 31vw, 460px); }
.rs-artist__release .release__info { display: none; }
.rs-artist__stamp { display: flex; justify-content: space-between; gap: 1rem; width: var(--release-w, clamp(260px, 31vw, 460px)); max-width: 100%; color: var(--muted); }
.rs-artist__body { display: grid; gap: clamp(1.1rem, 2vw, 1.6rem); align-content: center; }
.rs-artist__title { line-height: .92; }
.rs-artist__title em { display: block; margin-top: .2em; font-size: .46em; line-height: 1.05; color: rgba(243, 235, 224, .84); letter-spacing: -.015em; }
.rs-artist__body .lead { max-width: 46ch; }
.rs-artist__quote { margin: 0; padding: .3rem 0 .3rem clamp(1rem, 2vw, 1.6rem); border-left: 2px solid var(--mint); display: grid; gap: .8rem; }
.rs-artist__quote p {
  font-family: var(--font-display); font-variation-settings: var(--soft); font-style: italic; font-weight: 320;
  font-size: clamp(1.25rem, 1.9vw, 1.85rem); line-height: 1.3; letter-spacing: -.01em; max-width: 40ch;
}
.rs-artist__quote footer { color: var(--muted); }
.rs-artist__credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 2rem; margin: 0; color: var(--cream); }
.rs-artist__credits div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; padding: .5rem 0; border-bottom: 1px dashed var(--rule); }
.rs-artist__credits dt { color: var(--muted); }
.rs-artist__credits dd { margin: 0; text-transform: none; letter-spacing: .04em; }
/* watch row: a short caption column beside the video, so the square cover art is not
   repeated at full-bleed scale right under the release card */
.rs-watch {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 6rem); align-items: end;
  margin-top: clamp(4rem, 9vw, 8rem); padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--rule);
}
.rs-watch__copy { display: grid; gap: 1.1rem; align-content: end; padding-bottom: .4rem; }
.rs-watch__kicker { color: var(--muted); }
.rs-watch__title {
  font-family: var(--font-display); font-variation-settings: var(--soft); font-weight: 340;
  font-size: var(--fs-d3); line-height: .98; letter-spacing: -.03em; max-width: 12ch;
}
.rs-watch__title em { font-style: italic; font-weight: 300; }
.rs-watch__text { max-width: 34ch; font-size: var(--fs-small); line-height: 1.55; }
.rs-watch__meta { display: flex; gap: 1.25rem; color: var(--muted); padding-top: .9rem; border-top: 1px dashed var(--rule); }
.rs-artist__video { --ratio: 16 / 9; }
/* the video is square (pillarboxed in its 16:9 thumbnail): a blurred wash fills the
   wide frame and the square picture sits in the middle, like a sleeve on a light box */
.rs-artist__video > .rs-vid__bg { scale: 1.85; filter: blur(28px) saturate(1.2) brightness(.6); transition: scale 1.3s var(--ease-out), transform 1.3s var(--ease-out), filter .6s; }   /* `scale` composes with the reveal's transform */
.rs-artist__video:hover > .rs-vid__bg, .rs-artist__video:focus-visible > .rs-vid__bg { scale: 1.95; filter: blur(28px) saturate(1.3) brightness(.7); }
.rs-vid__fg {
  position: absolute; z-index: 0; top: 0; bottom: 0; left: 50%; aspect-ratio: 1 / 1; transform: translateX(-50%);
  overflow: hidden; box-shadow: 0 0 80px rgba(0, 0, 0, .55);
}
.rs-vid__fg img {
  position: absolute; top: 0; height: 100%; width: 177.78%; max-width: none; left: -38.89%; object-fit: cover;
  transition: scale 1.3s var(--ease-out);
}
.rs-artist__video:hover .rs-vid__fg img, .rs-artist__video:focus-visible .rs-vid__fg img { scale: 1.04; }
@media (max-width: 1000px) {
  .rs-artist__grid { grid-template-columns: 1fr; }
  .rs-artist__credits { grid-template-columns: 1fr; }
  .rs-watch { grid-template-columns: 1fr; align-items: start; }
  .rs-watch__title { max-width: 14ch; }
}
@media (max-width: 560px) {
  .rs-artist__release { --release-w: min(72vw, 300px); }
  .rs-artist__video .facade__label { flex-direction: column; align-items: start; gap: .35rem; }
}

/* ---- Apply (cream) ------------------------------------------------------------------- */
.rs-apply__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
/* the aside stretches to the form's height so the status panel (deadline, countdown,
   progress) can stay in view while the form scrolls past */
.rs-apply__aside { align-self: stretch; display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3rem); }
.rs-apply__intro { display: grid; gap: 1.5rem; }
.rs-apply__sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.5rem; }
.rs-apply__title { max-width: 9ch; }
.rs-apply__deadline { display: flex; align-items: center; gap: .6rem; color: var(--fg); }
.rs-apply__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 10px rgba(255, 106, 43, .7); }
.rs-apply__countdown { padding-block: 1rem; border-block: 1px solid var(--rule-strong); gap: 1rem; }
.rs-apply__countdown .countdown__num { font-size: clamp(2rem, 3.2vw, 3.2rem); }
.rs-apply__need { display: grid; gap: .8rem; }
.rs-apply__need-title { color: var(--fg-muted); }
.rs-apply__need ul { display: grid; gap: .5rem; }
.rs-apply__need li { position: relative; padding-left: 1.4rem; font-size: var(--fs-small); line-height: 1.5; }
.rs-apply__need li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 1px; background: var(--accent); }
.rs-progress { display: grid; gap: .6rem; }
.rs-progress__label { display: flex; justify-content: space-between; color: var(--fg-muted); }
.rs-progress__bar { position: relative; height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.rs-progress__fill { position: absolute; inset: 0; background: var(--mint-deep); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--ease-out); }
.rs-progress.is-complete .rs-progress__label { color: var(--mint-deep); }

.rs-form { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.rs-form__req { color: var(--fg-muted); }
.rs-form .req { color: #A3360A; }
.rs-fs { margin: 0; padding: 0; border: 0; min-width: 0; }
.rs-fs > .form-grid { padding-top: 1.4rem; border-top: 1px solid var(--rule-strong); }
.rs-fs__legend { display: flex; padding: 0 0 1rem; }
.rs-fs__name { font-family: var(--font-display); font-variation-settings: var(--soft); font-size: var(--fs-h4); line-height: 1.1; letter-spacing: -.015em; font-weight: 400; }
.rs-fs__name em { font-style: italic; font-weight: 320; }
.rs-fs__opt { font-family: var(--font-ui); font-size: .5em; letter-spacing: 0; color: var(--fg-muted); font-weight: 500; vertical-align: .25em; }
.rs-name { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: .5rem; }
.rs-name > legend { padding: 0; margin-bottom: .5rem; }
.rs-name__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.rs-sub { font-size: var(--fs-xs); color: var(--fg-muted); }
.rs-label-note { text-transform: none; letter-spacing: .02em; }
.rs-count { color: var(--fg-muted); transition: color .3s; }
.rs-count.is-good { color: var(--mint-deep); }
.rs-count.is-over { color: #A3360A; }
.rs-form__submit { display: grid; gap: 1rem; justify-items: start; padding-top: 1.5rem; border-top: 1px solid var(--rule-strong); }

.rs-errors { padding: 1.1rem 1.25rem; border: 1px solid #A3360A; border-left-width: 4px; border-radius: var(--r-sm); background: rgba(163, 54, 10, .06); }
.rs-errors__title { font-weight: 600; margin-bottom: .5rem; }
.rs-errors__list { display: grid; gap: .25rem; }
.rs-errors__list a { color: #8A2D08; text-decoration: underline; text-underline-offset: .2em; }

/* closed: the next opening, a countdown to it and the way to ask the studio */
.rs-closed {
  display: grid; gap: 1.4rem; justify-items: start; padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface);
}
.rs-closed__kicker { color: var(--fg-muted); }
.rs-closed__title { max-width: 20ch; font-family: var(--font-display); font-variation-settings: var(--soft); font-size: var(--fs-d3); line-height: 1.02; letter-spacing: -.025em; font-weight: 380; }
.rs-closed__clock { justify-self: stretch; }
.rs-closed__countdown { padding-block: 1rem; border-block: 1px solid var(--rule-strong); gap: 1rem; }
.rs-closed__countdown .countdown__num { font-size: clamp(2rem, 3.2vw, 3.2rem); }
.rs-closed__text { max-width: 52ch; }

.rs-success { gap: 1.25rem; }
.rs-success__kicker { display: flex; justify-content: space-between; gap: 1rem; width: 100%; color: var(--fg-muted); }
.rs-success__title { overflow-wrap: anywhere; }
.rs-success__title { font-family: var(--font-display); font-variation-settings: var(--soft); font-size: var(--fs-d3); line-height: 1.02; letter-spacing: -.025em; font-weight: 380; }
.rs-success__title em { font-style: italic; font-weight: 320; }
.rs-success__copy { max-width: 54ch; }
.rs-success__sheet { display: grid; width: 100%; margin: .5rem 0; border-top: 1px solid var(--rule-strong); }
.rs-success__sheet > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--rule-strong); }
.rs-success__sheet dt { color: var(--fg-muted); }
.rs-success__sheet dd { margin: 0; text-transform: none; letter-spacing: .03em; overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .rs-apply__grid { grid-template-columns: 1fr; }
  .rs-apply__aside { gap: 1.5rem; }
  .rs-apply__sticky { position: static; }
  .rs-apply__need { display: none; }
}
@media (max-width: 560px) {
  .rs-name__row { grid-template-columns: 1fr; }
  .rs-success__sheet > div { grid-template-columns: 1fr; gap: .2rem; }
  .rs-form__submit .btn { width: 100%; }
}
