/* =====================================================================
   Abi Taylor LXD — responsive layer (Stage 1, Nov 2026)
   ---------------------------------------------------------------------
   Desktop layouts are written inline on each page and remain the source
   of truth. This file only:
     • fixes overflow bugs that also affect 1024–1279px (no change where
       the desktop layout already fits), and
     • defines tablet (700–1023px) and phone (≤699px) layouts for named
       components.
   Inline styles win over stylesheets, so rules that must override an
   inline value use !important — and only inside the media queries below
   (plus the few overflow guards marked "all widths").

   Breakpoints   phone ≤699px · tablet 700–1023px · desktop ≥1024px
   Components    r-sec, r-split (+ r-start, r-hide-sm), r-stack-sm, r-values, r-addie, r-work-*,
                 r-cta-row, r-btn, r-measure, r-cards5, r-process, r-step,
                 r-metrics, r-takeaway, r-gallery, r-zoom + r-cue, r-vidbox + r-vidctl, r-lightbox
   ===================================================================== */

/* ---------- All widths: overflow guards (no visual change when content fits) */
.r-split > *,
.r-work-card > *,
.r-step > * { min-width: 0; }
.r-work-card .r-work-summary { max-width: 100%; }
/* 1024px: the frame's width was derived from the stretched row height (aspect-ratio) and spilled 7px */
.r-work-card > .r-work-media { max-width: 100%; }

/* ---------- Media cue (enlarge / watch larger) ------------------------- */
.r-zoom { position: relative; }
.r-cue {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 9px;
  font-family: 'Space Mono', monospace; font-size: 11px; line-height: 1;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #F9F9F9; background: rgba(27, 29, 31, 0.78);
  pointer-events: none; /* the whole figure is the control */
  transition: opacity 200ms ease;
}
.r-cue span { font-size: 12px; }
.r-zoom:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
/* Mouse/trackpad: a small overlay that appears on hover or keyboard focus, so the
   approved desktop layout is unchanged at rest. */
@media (hover: hover) and (pointer: fine) {
  .r-zoom .r-cue { opacity: 0; }
  .r-zoom:hover .r-cue,
  .r-zoom:focus-visible .r-cue { opacity: 1; }
}
/* Everything without a precise mouse pointer (phones, tablets, touch laptops):
   the cue is a permanent label directly above the media, right-aligned in the
   section's text colour — it never covers image content. */
@media not all and (hover: hover) and (pointer: fine) {
  .r-zoom { overflow: visible !important; margin-top: 28px; }
  .r-cue {
    top: -24px; right: 0; padding: 0;
    background: none; color: inherit; opacity: 1;
  }
}

/* ---------- Inline video play/pause (WCAG 2.2.2) ----------------------- */
.r-vidbox { position: relative; }
.r-vidctl {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  display: inline-flex; align-items: center; min-height: 32px; padding: 6px 10px;
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #F9F9F9; background: rgba(27, 29, 31, 0.85); border: 1px solid rgba(249, 249, 249, 0.4);
  border-radius: 0; cursor: pointer; transition: opacity 200ms ease;
}
.r-vidctl:focus-visible { outline: 2px solid #BA774A; outline-offset: 2px; }
/* Mouse/trackpad: visible on hover or keyboard focus (always, if motion is reduced). */
@media (hover: hover) and (pointer: fine) {
  .r-vidctl { opacity: 0; }
  .r-vidbox:hover .r-vidctl, .r-vidctl:focus-visible { opacity: 1; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .r-vidctl { opacity: 1; }
}
/* Touch: nothing autoplays — previews open the player, the walkthrough has native controls. */
@media not all and (hover: hover) and (pointer: fine) {
  .r-vidctl { display: none; }
}

/* ---------- Lightbox / video modal (all widths) ------------------------ */
.r-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 40px 40px;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}
.r-lightbox img,
.r-lightbox video {
  display: block; max-width: 100%; max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px);
  width: auto; height: auto; object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); cursor: default;
}
.r-close {
  position: fixed; top: 12px; right: 12px; z-index: 10000;
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 44px; min-height: 44px; padding: 10px 14px;
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #F9F9F9; background: rgba(27, 29, 31, 0.85);
  border: 1px solid rgba(249, 249, 249, 0.35); border-radius: 0; cursor: pointer;
}
.r-close span { font-size: 16px; line-height: 1; }
.r-close:hover { border-color: #BA774A; }
.r-close:focus-visible { outline: 2px solid #BA774A; outline-offset: 2px; }

/* ---------- Work card call-to-action (phone + tablet only) ------------- */
.r-work-cta { display: none; }

/* ---------- 1024–1279px: CS03 problem copy must fit its column ---------- */
@media (max-width: 1279px) {
  .r-measure { width: 100% !important; max-width: 820px !important; }
  .r-measure p, .r-measure div { width: auto !important; max-width: 100% !important; }
}

/* =====================================================================
   TABLET + PHONE (≤1023px)
   ===================================================================== */
@media (max-width: 1023px) {

  /* Label + content splits and other 12-column grids → one column */
  .r-split { grid-template-columns: minmax(0, 1fr) !important; row-gap: 24px !important; }
  .r-split > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .r-split > .r-start { justify-self: start !important; }
  .r-split > .r-hide-sm { display: none !important; }

  /* Home — ADDIE rows: banner image above its heading and copy */
  .r-addie { grid-template-columns: minmax(0, 1fr) !important; gap: 18px !important; }

  /* Home — "How I work with you" */
  .r-values { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 32px 40px !important; }

  /* Work — project cards (tablet: text beside image) */
  .r-work-card {
    grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: auto 1fr;
    column-gap: 24px !important; row-gap: 20px !important;
    align-items: start !important;
  }
  .r-work-card > .r-work-num  { grid-column: 1 !important; grid-row: 1 !important; padding-top: 1px; }
  .r-work-card > .r-work-text { grid-column: 2 !important; grid-row: 1 !important; }
  .r-work-card > .r-work-media { grid-column: 3 !important; grid-row: 1 / span 2 !important; aspect-ratio: 16 / 9 !important; align-self: start; }
  .r-work-card > .r-work-cta  { grid-column: 2 !important; grid-row: 2 !important; align-self: end; }
  .r-work-card > .r-work-arrow { display: none !important; }
  .r-work-media img { object-fit: contain !important; }
  .r-work-summary { width: auto !important; margin-top: 16px !important; }
  .r-work-cta {
    display: inline-flex; align-items: center; gap: 10px; justify-self: start;
    font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    color: #1B1D1F; border-bottom: 1px solid #BA774A; padding: 10px 0 4px;
  }
  .r-work-cta span { font-family: 'Instrument Serif', serif; font-size: 22px; line-height: 0.6; color: #BA774A; letter-spacing: 0; }

  /* CS03 — summary key info, CTA row */
  .r-cta-row { justify-content: flex-start !important; }

  /* CS03 — five-step cards: 2 columns, last card spans both */
  .r-cards5 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin: 40px 0 !important; }
  .r-cards5 > :last-child { grid-column: 1 / -1; }
  .r-cards5 > * { min-height: 0 !important; padding: 24px 22px 26px !important; }

  /* CS03 — process steps: heading → lead → media + caption → rest */
  .r-process { grid-template-columns: minmax(0, 1fr) !important; row-gap: 64px !important; }
  .r-process > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .r-step { display: flex !important; flex-direction: column; }
  .r-step > .r-step-media { margin: 20px 0 24px !important; justify-content: flex-start !important; }
  .r-step > .r-step-media figure { max-width: 640px !important; }
  .r-step > .r-step-rest { padding-bottom: 0 !important; margin-bottom: 0 !important; }
  .r-step > .r-step-head, .r-step > .r-mono-long { max-width: 68ch; }

  /* Comfortable reading measure for long copy on tablets */
  .r-measure p { max-width: 68ch !important; }

  /* CS03 — metrics */
  .r-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 40px 32px !important; }

  /* CS03 — takeaway, gallery and closing CTA */
  .r-takeaway-block { margin-top: 72px !important; }
  .r-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin-bottom: 48px !important; }
}

/* =====================================================================
   PHONE (≤699px)
   ===================================================================== */
@media (max-width: 699px) {

  /* Section rhythm: slightly tighter than the 64px clamp floor */
  .r-sec {
    padding-top: 56px !important; padding-bottom: 56px !important;
    padding-left: max(20px, env(safe-area-inset-left)) !important;
    padding-right: max(20px, env(safe-area-inset-right)) !important;
  }

  /* Simple flex rows that should stack */
  .r-stack-sm { flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; }
  .r-stack-sm > * { text-align: left !important; }

  /* Home — values: single column with hairlines */
  .r-values { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
  .r-values .r-label { font-size: 12px !important; }

  /* Work — cards: number + meta line, then title, summary, full image, CTA */
  .r-work-card {
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-rows: none;
    column-gap: 14px !important; row-gap: 0 !important;
  }
  .r-work-card > .r-work-num   { grid-column: 1 !important; grid-row: 1 !important; padding-top: 0; line-height: 1.5; }
  .r-work-card > .r-work-text  { grid-column: 2 !important; grid-row: 1 !important; }
  .r-work-card > .r-work-media { grid-column: 1 / -1 !important; grid-row: 2 !important; margin-top: 24px; }
  .r-work-card > .r-work-cta   { grid-column: 1 / -1 !important; grid-row: 3 !important; margin-top: 18px; }

  /* CS03 — live project buttons: full width, comfortable tap height */
  .r-btn { width: 100%; justify-content: center; min-height: 52px; }
  .r-cta-row > div { width: 100%; flex-direction: column; }

  /* CS03 — five-step cards: one compact column */
  .r-cards5 { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; margin: 32px 0 !important; }
  .r-cards5 > * { padding: 20px 20px 22px !important; }

  /* CS03 — process */
  .r-process { row-gap: 48px !important; }
  .r-step-head { font-size: 24px !important; line-height: 1.1 !important; }
  .r-mono-long { font-size: 15px !important; line-height: 1.6 !important; }
  .r-step > .r-step-media figure { max-width: none !important; }

  /* Captions: never smaller than 14px on phones */
  .r-caption { font-size: 14px !important; line-height: 1.5 !important; }

  /* CS03 — metrics: 2×2 while there is room, otherwise one column */
  .r-metrics { gap: 32px 20px !important; }
  .r-metrics > * { padding-left: 16px !important; }
  .r-metrics > * > p:first-child { font-size: 40px !important; margin-bottom: 12px !important; }

  /* CS03 — takeaway */
  .r-takeaway-block { margin-top: 48px !important; }
  .r-gallery { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; margin-bottom: 40px !important; }

  /* Lightbox uses more of the small screen */
  .r-lightbox { padding: 64px 12px 16px; }
  .r-lightbox img, .r-lightbox video { max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); }
}

@media (max-width: 359px) {
  .r-metrics { grid-template-columns: minmax(0, 1fr) !important; }
}


/* =====================================================================
   STAGE 2 (Nov 2026) — Case Study 01 and Case Study 02
   ---------------------------------------------------------------------
   New class names only, so nothing here can reach the approved Stage 1
   pages. Same breakpoints, rhythm and type roles as Case Study 03, the
   approved mobile benchmark.
   Components   r-hero-img, r-wauto, r-cards3, r-ov, r-procvid(2), r-narr(2, -head), r-back,
                r-steps, r-detail, r-pair, r-img-full, r-fig2, r-fig3, r-fig-wide,
                r-metrics3, r-takeaway-body, r-sec-cont, r-zz(-text, -fig), r-fig75,
                r-cmp-hint, r-cmp-knob, r-cmp-tag, r-seg, r-vidctl-r
   ===================================================================== */

/* ---------- All widths (no visual change at rest on desktop) ----------- */
.r-pair > *, .r-zz > *, .r-cards3 > *, .r-fig2 > *, .r-fig3 > * { min-width: 0; }
.r-vidctl.r-vidctl-r { left: auto; right: 10px; }          /* Level 3: the music toggle keeps bottom-left */
.r-cmp-hint { display: none; }
.r-seg:focus-visible { outline: 2px solid #1B1D1F; outline-offset: 2px; }
[role="dialog"] .r-seg:focus-visible, [role="dialog"] [role="slider"]:focus-visible { outline: 2px solid #F9F9F9; outline-offset: 2px; }
[role="slider"]:focus-visible { outline: 2px solid #1B1D1F; outline-offset: 2px; }
/* Ava / action map are real <button>s again (all:unset removed): visible keyboard focus */
button.r-zoom:focus-visible { outline: 2px solid #1B1D1F; outline-offset: 4px; }

/* =====================================================================
   TABLET + PHONE (≤1023px)
   ===================================================================== */
@media (max-width: 1023px) {
  /* CS01 hero: the complete title artwork, no crop */
  .r-hero-img { width: 100% !important; height: auto !important; }
  .r-wauto { width: auto !important; }
  /* "← Process overview" links: 44px touch height */
  .r-back { display: inline-flex !important; align-items: center !important; min-height: 44px; margin-bottom: 6px !important; }

  /* "Summarise it / Structure it / Say it" and the CS02 equivalents */
  .r-cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .r-cards3 > * { padding: 20px 18px 22px !important; }

  /* Process overview: decorative animation sits after the five steps, at a modest size */
  .r-procvid { align-self: start !important; width: 100%; max-width: 480px; aspect-ratio: 4 / 3; }
  .r-procvid2 { justify-content: flex-start !important; }
  .r-procvid2 > .r-vidbox { width: min(100%, 240px) !important; }

  /* "In practice": one readable column per step */
  .r-narr { margin-top: 72px !important; padding-top: 72px !important; }
  .r-narr2 { padding-top: 72px !important; }   /* CS02: no margin — it would escape the unpadded section */
  .r-narr-head { margin-bottom: 56px !important; }
  .r-steps { gap: 80px !important; }
  .r-detail { gap: 32px !important; }
  .r-pair { grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; }
  .r-img-full { max-width: 100% !important; }
  .r-fig-wide { width: 100% !important; }

  /* CS02 zig-zag → heading + text, then that step's media */
  .r-zz { grid-template-columns: minmax(0, 1fr) !important; row-gap: 24px !important; }
  .r-zz > * { grid-column: 1 / -1 !important; grid-row: auto !important; margin-top: 0 !important; }
  .r-zz > .r-zz-step:not(:first-child) { margin-top: 48px !important; }
  .r-zz-step { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: none !important; row-gap: 24px !important; }
  .r-zz-step > * { grid-column: 1 / -1 !important; grid-row: auto !important; margin-top: 0 !important; min-width: 0; }
  .r-zz .r-zz-fig { justify-content: flex-start !important; }
  .r-zz .r-zz-fig > figure { max-width: 640px !important; }
  .r-zz .r-zz-fig > div > figure { max-width: 400px !important; }
  /* CS01 step 01: same order, one column */
  .r-pair > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .r-pair > .r-pair-media { margin-top: 0 !important; }

  /* Before/after: instruction above, larger labels */
  .r-cmp-hint {
    display: block; margin: 0 0 10px;
    font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  }

  /* Results: three metrics */
  .r-metrics3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 32px !important; }

  /* Closing: the takeaway label sits directly above its text */
  .r-takeaway-body { margin-top: 0 !important; }
  .r-fig75 { width: 100% !important; margin-top: 72px !important; }
  .r-fig75.r-fig75-next { margin-top: 48px !important; }
}

/* Touch: comfortable targets for the comparison controls */
@media (pointer: coarse) {
  .r-cmp-knob { width: 44px !important; height: 44px !important; margin: -22px 0 0 -22px !important; font-size: 14px !important; }
  .r-seg { min-height: 44px; }
}

/* =====================================================================
   PHONE (≤699px)
   ===================================================================== */
@media (max-width: 699px) {
  .r-sec-cont {
    padding-bottom: 56px !important;
    padding-left: max(20px, env(safe-area-inset-left)) !important;
    padding-right: max(20px, env(safe-area-inset-right)) !important;
  }
  .r-cards3 { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; margin: 28px 0 !important; }
  .r-cards3 > * { padding: 20px 20px 22px !important; }

  /* Process overview list */
  .r-ov { grid-template-columns: 48px minmax(0, 1fr) !important; column-gap: 16px !important; }
  .r-ov h3 { font-size: 24px !important; line-height: 1.1 !important; }

  .r-narr { margin-top: 56px !important; padding-top: 56px !important; }
  .r-narr2 { padding-top: 56px !important; }
  .r-narr-head { margin-bottom: 40px !important; }
  .r-steps { gap: 64px !important; }
  .r-detail { gap: 28px !important; }
  .r-fig2, .r-fig3 { grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; }

  .r-cmp-tag { font-size: 12px !important; }

  .r-metrics3 { grid-template-columns: minmax(0, 1fr) !important; gap: 32px !important; }
  .r-metrics3 > * > p:first-child { font-size: 44px !important; margin-bottom: 10px !important; }

  .r-fig75 { margin-top: 56px !important; }
}


/* =====================================================================
   STAGE 2 · REVISION 3 (24 Nov 2026) — appended; earlier rules untouched
   ===================================================================== */
@media (max-width: 1023px) {
  /* CS02 process overview: the scales animation sits centred under the five steps */
  .r-procvid2 { justify-content: center !important; }
}
@media (max-width: 699px) {
  /* Home › Services: same two lines as desktop — "Learning design," / "end to end." */
  .r-svc-h { max-width: none !important; }
  .r-svc-l2 { display: block; }
}

/* ---------- Approach and About (Stage 2, revision 3) ------------------ */
@media (max-width: 1023px) {
  /* Approach › four principles: number, heading, then copy */
  .r-lp { grid-template-columns: minmax(0, 1fr) !important; row-gap: 12px !important; }
  .r-lp > * { grid-column: 1 / -1 !important; }
  .r-lp > p { margin-top: 6px !important; max-width: 68ch; }
  /* About › ADDIE cards: two columns, Evaluate spans both */
  .r-addie5 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .r-addie5 > :last-child { grid-column: 1 / -1; }
  .r-addie5 > * { min-height: 0 !important; }
  .r-addie5 > * > p { margin-top: 0 !important; }
  /* About › collage: the desktop composition, scaled with the page width */
  .r-collage { grid-template-rows: 37vw 25.4vw !important; }
}
@media (max-width: 699px) {
  /* Label + content splits that keep the desktop layout on tablets */
  .r-split-sm { grid-template-columns: minmax(0, 1fr) !important; row-gap: 24px !important; }
  .r-split-sm > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .r-about-hero { row-gap: 40px !important; }
  .r-three { grid-template-columns: minmax(0, 1fr) !important; gap: 40px !important; }
  .r-addie5 { grid-template-columns: minmax(0, 1fr) !important; }
  .r-addie5 > * { padding: 20px 20px 22px !important; }
  /* About › collage: two columns, every photo kept whole or cropped as on desktop */
  .r-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: none !important;
    grid-template-areas: "surf surf" "ski travel" "puppy books" "puppy cook";
  }
  .r-c-surf { grid-area: surf !important; aspect-ratio: 4 / 3; }
  .r-c-ski { grid-area: ski !important; aspect-ratio: 3 / 4; }
  .r-c-travel { grid-area: travel !important; aspect-ratio: 3 / 4; }
  .r-c-books { grid-area: books !important; aspect-ratio: 1 / 1; }
  .r-c-cook { grid-area: cook !important; aspect-ratio: 1 / 1; }
  .r-c-puppy { grid-area: puppy !important; }
}


/* =====================================================================
   STAGE 2 · REVISION 4 (25 Nov 2026) — appended; earlier rules untouched
   ===================================================================== */
@media (max-width: 699px) {
  /* CS02 job-aid posters already fill the screen: no visible "Enlarge" label.
     The control itself stays (tap, Enter/Space) and opens the full-resolution artwork. */
  .r-poster .r-cue { display: none !important; }
  .r-zoom.r-poster { margin-top: 0 !important; }
}
@media (max-width: 1023px) {
  /* CS02 learner-path gallery: heading and first image read as one group (64px row gap → 16px) */
  .r-lpath > h4 { margin-bottom: -48px !important; }
}


/* =====================================================================
   STAGE 2 · REVISION 5 (25 Nov 2026) — appended; earlier rules untouched
   ===================================================================== */
/* External-link arrows drawn as SVG (iOS showed ↗ as an emoji) */
.r-ext { overflow: visible; }

/* CS03 white step headings on sand: never under 24px (large text) from 700px up.
   From 1171px wide the original clamp already gives ≥24px, so desktop is unchanged there. */
@media (min-width: 700px) {
  .r-floor24 { font-size: clamp(24px, 2.05vw, 28px) !important; }
}

/* Contact form: visible keyboard focus (inputs had outline:none) */
.cf-in:focus-visible { outline: 2px solid #BA774A !important; outline-offset: 6px; }
.cf-btn:focus-visible { outline: 2px solid #F9F9F9; outline-offset: 3px; }
.cf-h:focus { outline: none; }
.r-altc-link:focus-visible { outline: 2px solid #BA774A; outline-offset: 4px; }

@media (max-width: 1023px) {
  .r-hero-auto { min-height: 0 !important; }
}

@media (max-width: 699px) {
  /* Services: compact editorial rows with fine rules instead of bordered cards */
  .r-svc-list { display: block !important; background: none !important; border: 0 !important; }
  .r-svc-item {
    display: grid !important; grid-template-columns: 32px minmax(0, 1fr); align-items: baseline;
    padding: 18px 0 20px !important; background: none !important;
    border-top: 1px solid rgba(249, 249, 249, 0.16);
  }
  .r-svc-item:nth-child(11) { border-bottom: 1px solid rgba(249, 249, 249, 0.16); }
  .r-svc-item > .r-svc-num { grid-column: 1; grid-row: 1; margin: 0 !important; }
  .r-svc-item > .r-svc-title { grid-column: 2; grid-row: 1; margin: 0 0 6px !important; }
  .r-svc-item > .r-svc-desc { grid-column: 2; grid-row: 2; }
  .r-svc-cta { margin-top: 28px; padding: 22px 20px !important; }
  /* Services hero and Contact hero: CS03 rhythm */
  .r-svc-hero > div > p:first-child { margin-bottom: 20px !important; }
  /* Contact: alternative links stack under their heading */
  .r-altc { flex-direction: column; align-items: flex-start !important; gap: 12px !important; }
  .r-altc ul { flex-direction: column; gap: 4px !important; }
}


/* =====================================================================
   REVISION 9 (25 Nov 2026) — expandable descriptions; appended
   ===================================================================== */
.r-desc { margin-top: 10px; font-family: 'Space Mono', monospace; font-size: 13px; line-height: 1.55; color: inherit; text-align: left; width: 100%; }
.r-desc > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; cursor: pointer; list-style: none; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.r-desc > summary::-webkit-details-marker { display: none; }
.r-desc > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.r-desc-mark { display: inline-block; width: 0; height: 0; border-left: 6px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .15s; }
.r-desc[open] .r-desc-mark { transform: rotate(90deg); }
.r-desc-body { margin-top: 10px; padding: 4px 0 4px 14px; border-left: 2px solid currentColor; font-family: 'Space Grotesk', sans-serif; font-size: 15px; line-height: 1.6; max-width: 72ch; }
.r-desc-body p { margin: 0 0 10px; }
.r-desc-body ul { margin: 0 0 10px; padding-left: 20px; }
.r-desc-body li { margin: 0 0 6px; }
@media (prefers-reduced-motion: reduce) { .r-desc-mark { transition: none; } }
