/* RF · Puente Vivo. Progressive visual enhancement of the existing homepage.
   Every content block remains readable before JavaScript runs. */
body.rf-experience {
  --navy: #071d35;
  --navy2: #0d2a49;
  --gold: #c9a65a;
  --gold-ink: #766025;
  --wine: #7b1f36;
  --cream: #f6f1e8;
  --ink: #172b3d;
  --muted: #526173;
  --container: 1360px;
  --border: #d9d3c8;
  --motion: 300ms;
  --ease: cubic-bezier(.2,.65,.3,1);
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: clip;
}


body.rf-experience ::selection { color: var(--navy); background: #e1c88f; }
body.rf-experience .wrap { width: min(var(--container), calc(100% - 40px)); }
body.rf-experience section {
  padding-block: clamp(60px, 7vw, 112px);
  scroll-margin-top: 0;
}
body.rf-experience h1,
body.rf-experience h2,
body.rf-experience h3 { font-weight: 400; }
body.rf-experience h2 {
  font-size: clamp(2rem, 4.2vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
body.rf-experience h3 { line-height: 1.23; }
body.rf-experience p { text-wrap: pretty; }
body.rf-experience a,
body.rf-experience button,
body.rf-experience summary { -webkit-tap-highlight-color: #c9a65a38; }
body.rf-experience a:focus-visible,
body.rf-experience button:focus-visible,
body.rf-experience summary:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 5px;
}
body.rf-experience header a:focus-visible,
body.rf-experience header button:focus-visible,
body.rf-experience .hero a:focus-visible,
body.rf-experience .process a:focus-visible,
body.rf-experience #revalida a:focus-visible,
body.rf-experience .contact a:focus-visible,
body.rf-experience footer a:focus-visible { outline-color: #f0d795; }
body.rf-experience .eyebrow,
body.rf-experience .kicker,
body.rf-experience .experience-kicker {
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .12em;
  line-height: 1.55;
}
body.rf-experience .section-head { max-width: 870px; margin-bottom: 42px; }
body.rf-experience .section-head h2 { margin-top: 18px; }
body.rf-experience .section-head p {
  max-width: 64ch;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  color: var(--muted);
}

/* Compact navigation; the native focus and menu remain available. */
body.rf-experience header {
  background: var(--navy);
  border-bottom: 1px solid #c9a65a35;
}
body.rf-experience .nav { min-height: 72px; gap: 16px; }
body.rf-experience .brand { gap: 10px; font-size: .9375rem; }
body.rf-experience .brand img { width: 40px; height: 40px; }
body.rf-experience .brand span { max-width: 170px; }
body.rf-experience .links { gap: clamp(12px, 1.2vw, 22px); }
body.rf-experience .links a { font-size: .8125rem; color: #e3e9ef; }
body.rf-experience .links a:hover,
body.rf-experience .links a[aria-current="location"] { color: #e8cd94; }
body.rf-experience .menu-toggle {
  border-radius: 50%;
  border-color: #c9a65a70;
  transition: background-color var(--motion), border-color var(--motion);
}
body.rf-experience .menu-toggle:hover { background: #ffffff0b; border-color: var(--gold); }
body.rf-experience .nav-contact { padding: 10px 16px; font-size: .875rem; min-height: 44px; }
body.rf-experience .links[data-open="true"] {
  border-radius: 0 0 24px 24px;
  padding: 14px;
  box-shadow: 0 18px 28px #04142626;
}

/* Gold actions on navy or cream. Burgundy is reserved for contextual links. */
body.rf-experience .cta,
body.rf-experience .button {
  min-height: 48px;
  padding: 14px 22px;
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 100px;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.4;
  transition: background-color var(--motion) var(--ease),
    border-color var(--motion) var(--ease),
    transform var(--motion) var(--ease), box-shadow var(--motion) var(--ease);
}
body.rf-experience .cta:hover,
body.rf-experience .button:hover {
  background: #dfc185;
  border-color: #dfc185;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px #04142616;
}
body.rf-experience .cta:active,
body.rf-experience .button:active { transform: translateY(1px); box-shadow: none; }
body.rf-experience .cta.secondary {
  color: var(--navy);
  border-color: #8b8170;
  background: transparent;
  font-weight: 550;
}
body.rf-experience .hero .cta.secondary { color: #fff; border-color: #d6bf8680; }
body.rf-experience .hero .cta.secondary:hover { background: #ffffff0b; border-color: #d6bf86; }
body.rf-experience .actions { gap: 12px; margin-top: 24px; }
body.rf-experience .details-link { color: var(--wine); text-underline-offset: 5px; }

/* An asymmetric hero with a human portrait and a decorative bridge. */
body.rf-experience .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(ellipse at 88% 35%, #1a3650 0, transparent 58%), var(--navy);
  padding-block: 32px 44px;
}
body.rf-experience .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}
body.rf-experience .hero-copy { position: relative; z-index: 2; min-width: 0; }
body.rf-experience .hero .eyebrow { color: #e0c68b; font-size: .75rem; letter-spacing: .065em; }
body.rf-experience .hero h1 {
  max-width: 16ch;
  margin: 16px 0 18px;
  font-size: clamp(2.15rem, 9.1vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.05em;
  font-family: var(--font-body);
  font-weight: 550;
  perspective: 1100px;
}
body.rf-experience .headline-line {
  display: block;
  min-width: 0;
  overflow: visible;
  perspective: 1100px;
  transform-style: preserve-3d;
}
body.rf-experience .headline-line .type-inner,
body.rf-experience .headline-line .spatial-inner {
  display: block;
  transform-origin: left 70%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
body.rf-experience .headline-line .letter,
body.rf-experience .headline-line .type-letter {
  display: inline-block;
  transform-origin: center bottom;
  backface-visibility: hidden;
}
body.rf-experience .headline-line.is-animating .type-inner,
body.rf-experience .headline-line.is-animating .spatial-inner { will-change: transform; }
body.rf-experience .section-head h2,
body.rf-experience .revalida-copy h2 { perspective: 1100px; transform-style: preserve-3d; }
body.rf-experience .headline-line .type-letter,
body.rf-experience .section-head h2 .type-letter,
body.rf-experience .revalida-copy h2 .type-letter {
  display: inline-block;
  max-width: 100%;
  font: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  transform-origin: center bottom;
  backface-visibility: hidden;
}
body.rf-experience .headline-line .type-letter > .spatial-inner,
body.rf-experience .section-head h2 .type-letter > .spatial-inner,
body.rf-experience .revalida-copy h2 .type-letter > .spatial-inner {
  display: inline-block;
  font: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
  transform-origin: left 70%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
body.rf-experience .section-head h2.is-animating .spatial-inner,
body.rf-experience .revalida-copy h2.is-animating .spatial-inner { will-change: transform; }
body.rf-experience .hero h1 .muted { color: #e1e8ef; }
body.rf-experience .hero h1 em { color: #dfc185; font-family: var(--font-heading); font-weight: 400; }
body.rf-experience .hero p {
  max-width: 52ch;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #dbe4ec;
}
body.rf-experience .hero .actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
body.rf-experience .hero .actions a { width: 100%; }
body.rf-experience .assurance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  margin-top: 16px;
  font-size: .8125rem;
  line-height: 1.55;
  color: #dbe4ec;
}
body.rf-experience .assurance > span { display: inline-flex; align-items: center; gap: 12px; }
body.rf-experience .assurance > span + span::before { content: "·"; color: #e0c68b; }
body.rf-experience .hero-art {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  margin: 0 auto;
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
body.rf-experience .hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 113%;
  height: 97%;
  left: -7%;
  top: 3%;
  border: 1px solid #d5b67555;
  border-radius: 48% 46% 35% 34%;
  transform: rotate(-9deg);
  pointer-events: none;
}
body.rf-experience .hero-art picture,
body.rf-experience .hero-art .hero-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 46% 46% 8% 8%;
  overflow: hidden;
}
body.rf-experience .hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 46% 46% 8% 8%;
  object-fit: cover;
  object-position: 50% 26%;
}
body.rf-experience .hero-art figcaption {
  position: relative;
  margin-top: 18px;
  padding: 0 4px;
  border: 0;
  font-size: .875rem;
  color: #e4cf9e;
}
body.rf-experience .hero-art figcaption strong {
  display: block;
  font: 400 1.5rem/1.25 var(--font-heading);
  color: #fff;
}
body.rf-experience .hero-art figcaption span { display: block; margin-top: 5px; }
body.rf-experience .hero-stamp {
  position: absolute;
  z-index: 2;
  right: -6px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 106px;
  height: 106px;
  padding: 14px;
  border: 1px solid #c9a65a90;
  border-radius: 50%;
  background: #071d35ec;
  color: #e4cf9e;
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
body.rf-experience .hero-stamp span[aria-hidden="true"] { font-size: 1.125rem; line-height: 1.2; }
body.rf-experience .bridge-visual {
  position: absolute;
  z-index: 0;
  right: -24%;
  bottom: 25px;
  width: 145%;
  height: 560px;
  pointer-events: none;
  transform: translate3d(0, var(--hero-shift, 0px), 0);
}
body.rf-experience .bridge-visual canvas,
body.rf-experience .bridge-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
body.rf-experience .bridge-visual svg { opacity: .56; }
body.rf-experience .bridge-visual canvas {
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion);
}
body.rf-experience .bridge-visual[data-bridge-state="ready"] canvas {
  opacity: 1;
  visibility: visible;
}
body.rf-experience .bridge-visual[data-bridge-state="ready"] svg {
  opacity: 0;
  visibility: hidden;
}

/* A continuous trust strip, then an editorial pause rather than another card. */
body.rf-experience .trust { background: #eee8dc; border-bottom: 0; }
body.rf-experience .trust-row { grid-template-columns: 1fr; gap: 0; padding-block: 16px; }
body.rf-experience .trust-item { padding: 12px 0; border-bottom: 1px solid #d4cbb9; }
body.rf-experience .trust-item:last-child { padding-bottom: 12px; border: 0; }
body.rf-experience .trust-item strong { font-size: .9375rem; font-weight: 650; }
body.rf-experience .trust-item span { display: block; color: #526173; font-size: .8125rem; }
body.rf-experience .chapter-insert {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 144px);
  border-bottom: 1px solid var(--border);
}
body.rf-experience .chapter-insert .wrap { position: relative; z-index: 1; }
body.rf-experience .chapter-insert h2,
body.rf-experience .chapter-insert .chapter-title {
  max-width: 15ch;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 7.9vw, 7rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.055em;
  color: var(--navy);
}
body.rf-experience .chapter-insert em { color: var(--wine); font-weight: 400; }
body.rf-experience .chapter-insert .reading-word {
  display: inline-block;
  transform-origin: left 75%;
  backface-visibility: hidden;
}
body.rf-experience .chapter-insert p { max-width: 36ch; margin: 24px 0 0; color: var(--muted); }
body.rf-experience .route-line {
  position: absolute;
  right: -13%;
  bottom: 4%;
  width: 76%;
  height: 75%;
  opacity: .7;
  overflow: visible;
  pointer-events: none;
}
body.rf-experience .route-line path[data-route] {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset var(--motion) linear;
}

/* Needs as editorial rows. The source articles keep their true descriptions. */
body.rf-experience #servicios { background: var(--cream); }
body.rf-experience .services { display: block; }
body.rf-experience .service-card {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-areas: "number title" "number description" ". action";
  gap: 12px 15px;
  min-width: 0;
  margin: 0;
  padding: 30px 0;
  border: 0;
  border-top: 1px solid #b9b5ab;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: border-color var(--motion), background-color var(--motion);
}
body.rf-experience .service-card:last-child { border-bottom: 1px solid #b9b5ab; }
body.rf-experience .service-card:hover { border-color: var(--gold-ink); background: #e9e3d429; }
body.rf-experience .service-card .num {
  grid-area: number;
  padding-top: 5px;
  color: var(--gold-ink);
  font-size: .8125rem;
  letter-spacing: .1em;
}
body.rf-experience .service-card h3 {
  grid-area: title;
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}
body.rf-experience .service-label {
  display: block;
  margin-bottom: 9px;
  color: var(--wine);
  font: 650 .6875rem/1.5 var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.rf-experience .service-card p {
  grid-area: description;
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.7;
}
body.rf-experience .service-card .service-link {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  align-self: start;
  width: 100%;
  min-height: 48px;
  margin-top: 3px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #7b1f366b;
  border-radius: 0;
  color: var(--wine);
  background: transparent;
  font-size: .875rem;
  line-height: 1.5;
  font-weight: 650;
  text-align: left;
  transition: border-color var(--motion), color var(--motion);
}
body.rf-experience .service-card .service-link:hover { background: transparent; color: #571527; border-color: #571527; }
body.rf-experience .service-arrow { display: inline-block; flex: none; font-size: 1.3rem; transition: transform var(--motion) var(--ease); }
body.rf-experience .service-link:hover .service-arrow { transform: translate(3px, -3px); }
body.rf-experience .service-card.is-active .num { color: var(--wine); }

/* The process is a path; small circles belong to the path, not to cards. */
body.rf-experience .process {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 52px 0 52px 0;
  background: var(--navy);
}
body.rf-experience .process::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 124%;
  height: 76%;
  top: 19%;
  left: -12%;
  border: 1px solid #c9a65a29;
  border-radius: 50%;
  transform: rotate(-8deg);
  pointer-events: none;
}
body.rf-experience .process h2,
body.rf-experience .process h3 { color: #fff; }
body.rf-experience .process .section-head p,
body.rf-experience .process-cta span,
body.rf-experience .step p { color: #d6e0e9; }
body.rf-experience .process .kicker { color: #e0c68b; }
body.rf-experience .process .wrap { position: relative; }
body.rf-experience .process .section-head,
body.rf-experience .process .steps,
body.rf-experience .process .process-cta { position: relative; z-index: 1; }
body.rf-experience .process-route {
  z-index: 0;
  width: 110%;
  height: 42%;
  left: -5%;
  right: auto;
  bottom: 20%;
  opacity: .24;
}
body.rf-experience .steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-left: 6px;
  padding-left: 26px;
  border-left: 1px solid #c9a65a6b;
}
body.rf-experience .step { position: relative; border: 0; padding: 0; min-width: 0; }
body.rf-experience .step::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid #e0c68b;
  outline: 6px solid var(--navy);
  transition: background-color var(--motion), border-color var(--motion);
}
body.rf-experience .step b { font-size: .75rem; letter-spacing: .1em; color: #e0c68b; margin-bottom: 10px; }
body.rf-experience .step h3 { font-size: 1.5rem; margin-bottom: 10px; }
body.rf-experience .step h3 { transition: color var(--motion); }
body.rf-experience .step.is-current::before { background: var(--gold); border-color: var(--gold); }
body.rf-experience .step.is-current h3 { color: #f0d795; }
body.rf-experience .step p { font-size: .9375rem; margin: 0; }
body.rf-experience .process-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 38px;
  padding-top: 28px;
  gap: 20px;
  border-color: #d5b67538;
}
body.rf-experience .process-cta span { font-size: .875rem; }
body.rf-experience .process-cta .cta { flex: auto; width: 100%; }

/* The verified founder biography keeps its chronology and factual copy. */
body.rf-experience .about-rf {
  background: var(--cream);
  border: 0;
  padding-bottom: 0;
}
body.rf-experience .founder-grid { grid-template-columns: 1fr; gap: 44px; }
body.rf-experience .founder-portrait {
  position: static;
  width: min(100%, 430px);
  margin-inline: auto;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
body.rf-experience .founder-portrait img {
  border-radius: 180px 180px 0 0;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
body.rf-experience .founder-portrait figcaption { padding: 22px 0; border-bottom: 1px solid var(--border); color: var(--navy); }
body.rf-experience .founder-portrait figcaption strong { font-weight: 400; font-size: 2rem; }
body.rf-experience .founder-portrait figcaption span { color: var(--wine); line-height: 1.5; }
body.rf-experience .founder-intro { padding-bottom: 34px; }
body.rf-experience .founder-intro h3 { font-size: clamp(1.6rem, 2.3vw, 2.25rem); }
body.rf-experience .bio-details {
  padding: 0;
  margin: 0 0 32px;
  border-top: 1px solid #b9af9e;
  border-bottom: 1px solid #b9af9e;
}
body.rf-experience .bio-details > summary {
  min-height: 70px;
  padding-block: 14px;
  gap: 20px;
  font: 500 clamp(1.125rem, 1.65vw, 1.5rem)/1.35 var(--font-body);
  letter-spacing: -.02em;
  transition: color var(--motion);
}
body.rf-experience .bio-details > summary::after {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-height: 32px;
  border: 1px solid #7b1f3640;
  border-radius: 50%;
  font-size: 1.375rem;
  line-height: 1;
}
body.rf-experience .bio-details[open] > summary { color: var(--wine); }
body.rf-experience .bio-content { padding: 24px 0 12px; }
body.rf-experience .bio-details .founder-intro p,
body.rf-experience .bio-details .trajectory-card p { margin: 0; }
body.rf-experience .bio-details .trajectory { margin-bottom: 12px; }
body.rf-experience .trajectory { border-color: #b99b5e; margin-left: 7px; }
body.rf-experience .trajectory-card { padding: 0 0 28px 27px; }
body.rf-experience .trajectory-card::before { background: var(--wine); top: 8px; }
body.rf-experience .trajectory-card h3 { font-size: 1.375rem; }
body.rf-experience .trajectory-date { color: var(--wine); font-size: .8125rem; letter-spacing: .04em; }
body.rf-experience .founder-experience { padding-top: 32px; }
body.rf-experience .experience-nationalities { gap: 8px 12px; color: #526173; }
body.rf-experience .experience-nationalities span + span::before { content: "·"; margin-right: 12px; color: var(--gold-ink); }
body.rf-experience .founder-assurance,
body.rf-experience .experience-notice { color: var(--muted); }

/* A full-width wine chapter, with an arched entrance and honest scope. */
body.rf-experience #revalida {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--wine);
  color: #fff;
  border-radius: 48px 48px 0 0;
}
body.rf-experience #revalida::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 68vw;
  height: 68vw;
  min-width: 420px;
  min-height: 420px;
  right: -34vw;
  top: -10vw;
  border: 1px solid #e4cf9e36;
  border-radius: 50%;
  pointer-events: none;
}
body.rf-experience .revalida { grid-template-columns: 1fr; gap: 34px; }
body.rf-experience .revalida-copy { grid-row: 1; }
body.rf-experience .revalida-copy h2 { color: #fff; margin-top: 18px; }
body.rf-experience .revalida-copy .kicker { color: #ecd59e; }
body.rf-experience .revalida-copy h2 em { color: #efd9a8; }
body.rf-experience .revalida-copy p { max-width: 58ch; color: #f4e4e8; margin-bottom: 26px; }
body.rf-experience .revalida-copy .cta { width: 100%; }
body.rf-experience .revalida-copy .assurance { max-width: 52ch; color: #f4e4e8; }
body.rf-experience .revalida-panel {
  grid-row: 2;
  padding: 30px 0 0;
  border: 0;
  border-top: 1px solid #e4cf9e70;
  border-radius: 0;
  background: transparent;
}
body.rf-experience .revalida-panel h3 { max-width: 22ch; color: #efd9a8; font-size: clamp(1.625rem, 2.35vw, 2.3rem); }
body.rf-experience .check { color: #f4e4e8; gap: 14px; margin-top: 22px; }
body.rf-experience .check i {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  min-height: 24px;
  margin-top: 2px;
  border: 1px solid #e4cf9e75;
  border-radius: 50%;
  color: #efd9a8;
  font-size: .875rem;
}

/* Comparison without a second grid of boxes. */
body.rf-experience .clarity { padding-top: clamp(64px, 8vw, 120px); background: #fffaf2; }
body.rf-experience .clarity-grid { grid-template-columns: 1fr; gap: 34px; }
body.rf-experience .clarity-title { padding: 0; }
body.rf-experience .clarity-title span,
body.rf-experience .compare small { color: var(--wine); font-size: .75rem; letter-spacing: .09em; }
body.rf-experience .compare { grid-template-columns: 1fr; gap: 26px; background: transparent; border: 0; border-radius: 0; overflow: visible; }
body.rf-experience .compare article { padding: 24px 0 0; border-top: 1px solid #c2baa9; }
body.rf-experience .compare article + article { border-left: 0; border-top: 1px solid #c2baa9; }
body.rf-experience .compare h3 { font-size: clamp(2.5rem, 5.4vw, 4.8rem); font-weight: 400; line-height: 1; margin: 18px 0; }
body.rf-experience .compare p { color: var(--muted); margin-bottom: 0; }
body.rf-experience .compare p + p { margin-top: 14px; }

/* The document guide uses abstract paper planes, never replicas of documents.
   Tabs require enhancement; all three explanations remain visible without JS. */
body.rf-experience .clarity .compare:has(.document-atlas),
body.rf-experience .clarity .compare.document-atlas { display: block; }
body.rf-experience .document-atlas { display: block; grid-column: 1 / -1; min-width: 0; }
body.rf-experience .document-tabs {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
}
body.rf-experience .guide-ready .document-tabs,
body.rf-experience.guide-ready .document-tabs { display: flex; }
body.rf-experience .document-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 76px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b0a48e;
  border-radius: 100px;
  background: transparent;
  color: var(--navy);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color var(--motion), color var(--motion), border-color var(--motion);
}
body.rf-experience .document-tabs button:hover { background: #eee6d5; border-color: var(--gold-ink); }
body.rf-experience .document-tabs button[aria-selected="true"],
body.rf-experience .document-tabs button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #e4cf9e;
}
body.rf-experience .document-tabs button:focus-visible { outline-color: var(--wine); outline-offset: 4px; }
body.rf-experience .document-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 200px;
  margin: 0 0 8px;
  overflow: hidden;
  perspective: 1400px;
  transform-style: preserve-3d;
  pointer-events: none;
}
body.rf-experience .document-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 88%;
  height: 140px;
  left: 6%;
  top: 42px;
  border: 1px solid #c9a65a55;
  border-radius: 50%;
  transform: rotate(-10deg);
}
body.rf-experience .document-sheet {
  --sheet-x: 0px;
  --sheet-y: 12px;
  --sheet-angle: 0deg;
  --sheet-depth: 0px;
  position: absolute;
  left: 50%;
  top: 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 120px;
  height: 156px;
  padding: 20px 17px;
  border: 1px solid #b9a77c;
  border-radius: 4px 18px 4px 4px;
  background: #fffaf2;
  color: var(--navy);
  backface-visibility: hidden;
  transform-origin: center 70%;
  transform: translate3d(calc(-50% + var(--sheet-x)), var(--sheet-y), var(--sheet-depth)) rotate(var(--sheet-angle));
  transition: transform var(--motion) var(--ease);
}
body.rf-experience .document-sheet.front {
  --sheet-x: -42px;
  --sheet-y: 20px;
  --sheet-angle: -10deg;
  --sheet-depth: -20px;
  z-index: 1;
  background: var(--navy);
  border-color: #b99a58;
  color: #e4cf9e;
}
body.rf-experience .document-sheet.between {
  --sheet-y: 4px;
  --sheet-depth: 20px;
  z-index: 3;
  background: #fffaf2;
  border-color: #c9a65a;
  color: var(--wine);
}
body.rf-experience .document-sheet.back {
  --sheet-x: 44px;
  --sheet-y: 20px;
  --sheet-angle: 10deg;
  --sheet-depth: -20px;
  z-index: 2;
  background: var(--wine);
  border-color: #bc8f9c;
  color: #f4e4e8;
}
body.rf-experience .document-mark {
  display: block;
  font: 600 clamp(1.125rem, 3.5vw, 1.5rem)/1.2 var(--font-body);
  letter-spacing: -.025em;
}
body.rf-experience .document-lines {
  display: block;
  width: 100%;
  height: 51px;
  background: repeating-linear-gradient(to bottom, currentColor 0, currentColor 1px, transparent 1px, transparent 13px);
  opacity: .4;
}
body.rf-experience .document-lines::after {
  content: "";
  display: block;
  width: 54%;
  height: 1px;
  margin-top: 51px;
  background: currentColor;
}
body.rf-experience .document-atlas[data-active="cpf"] .document-sheet.front {
  --sheet-x: -6px;
  --sheet-y: 0px;
  --sheet-angle: -2deg;
  --sheet-depth: 26px;
  z-index: 4;
}
body.rf-experience .document-atlas[data-active="cpf"] .document-sheet.between {
  --sheet-x: 44px;
  --sheet-y: 20px;
  --sheet-angle: 10deg;
  --sheet-depth: -16px;
  z-index: 2;
}
body.rf-experience .document-atlas[data-active="cpf"] .document-sheet.back {
  --sheet-x: -42px;
  --sheet-y: 22px;
  --sheet-angle: -12deg;
  --sheet-depth: -28px;
  z-index: 1;
}
body.rf-experience .document-atlas[data-active="crnm"] .document-sheet.between {
  --sheet-x: 0px;
  --sheet-y: 0px;
  --sheet-angle: 0deg;
  --sheet-depth: 26px;
  z-index: 4;
}
body.rf-experience .document-atlas[data-active="sus"] .document-sheet.back {
  --sheet-x: 6px;
  --sheet-y: 0px;
  --sheet-angle: 2deg;
  --sheet-depth: 26px;
  z-index: 4;
}
body.rf-experience .document-atlas[data-active="sus"] .document-sheet.front {
  --sheet-x: -44px;
  --sheet-y: 20px;
  --sheet-angle: -10deg;
  --sheet-depth: -16px;
  z-index: 2;
}
body.rf-experience .document-atlas[data-active="sus"] .document-sheet.between {
  --sheet-x: 42px;
  --sheet-y: 22px;
  --sheet-angle: 12deg;
  --sheet-depth: -28px;
  z-index: 1;
}
body.rf-experience .document-panels { display: grid; grid-template-columns: 1fr; gap: 26px; min-width: 0; }
body.rf-experience .guide-ready .document-panels,
body.rf-experience.guide-ready .document-panels { grid-template-columns: 1fr; }
body.rf-experience .document-panel { min-width: 0; }
body.rf-experience .document-panel[hidden] { display: none !important; }
body.rf-experience .document-panel h3 { font-size: clamp(2.25rem, 3.8vw, 3.5rem); }
body.rf-experience .document-panel .service-link { width: fit-content; margin-top: 20px; }

/* FAQ remains a native, keyboard-accessible disclosure. */
body.rf-experience #faq { padding-top: var(--space-4); }
body.rf-experience .faq-grid { grid-template-columns: 1fr; gap: 38px; }
body.rf-experience .faq-title h2 { margin-top: 18px; }
body.rf-experience details { padding-block: 20px; border-bottom: 1px solid #c6bdaf; }
body.rf-experience details:first-child { border-top: 1px solid #c6bdaf; }
body.rf-experience summary { min-height: 48px; font-size: 1rem; font-weight: 600; line-height: 1.5; }
body.rf-experience summary::after { color: var(--wine); font-weight: 400; }
body.rf-experience details p { color: var(--muted); margin: 16px 0 0; }
body.rf-experience .faq-cta {
  justify-content: flex-start;
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #7b1f3680;
  border-radius: 0;
  color: var(--wine);
  background: transparent;
  text-align: left;
  font-size: .9375rem;
}
body.rf-experience .faq-cta:hover { color: #571527; background: transparent; border-color: #571527; }

/* A decisive full-bleed finish. The orbit is decoration, never a control. */
body.rf-experience .contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 136px);
  border-radius: 0;
  background: var(--navy);
  color: #fff;
}
body.rf-experience .contact-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.rf-experience .contact-box > div { max-width: 760px; }
body.rf-experience .contact-box h2 { max-width: 18ch; font-size: clamp(2.6rem, 5.6vw, 5.6rem); line-height: 1.06; color: #fff; }
body.rf-experience .contact-box p { max-width: 49ch; color: #dbe4ec; }
body.rf-experience .contact-box .cta { flex: auto; width: 100%; }
body.rf-experience .contact-orbit {
  position: absolute;
  z-index: 0;
  width: clamp(350px, 54vw, 840px);
  height: clamp(350px, 54vw, 840px);
  right: -25%;
  top: 4%;
  border: 1px solid #c9a65a45;
  border-radius: 50%;
  transform: translate3d(0, var(--orbit-shift, 0px), 0) rotate(-18deg);
  pointer-events: none;
}
body.rf-experience .contact-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid #c9a65a35;
  border-radius: 50%;
}
body.rf-experience .network { padding-block: 36px; background: var(--cream); }
body.rf-experience .network-shell { border: 0; padding: 0; gap: 24px; }
body.rf-experience .network-intro h2 { font-size: 1.625rem; }
body.rf-experience .network-card { border-radius: 100px; background: transparent; border-color: #aca496; }
body.rf-experience .network-card:hover { border-color: var(--wine); background: #7b1f3606; }
body.rf-experience footer { padding-block: 52px; background: #041426; }
body.rf-experience .footer-copy strong { font-weight: 400; font-size: 1.25rem; }
body.rf-experience .footer-notice { color: #cad5de; }
body.rf-experience .mobile-wa {
  left: 16px;
  right: 16px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  min-height: 52px;
  border: 1px solid var(--gold);
  border-radius: 100px;
  background: var(--gold);
  color: var(--navy);
  font-size: .9375rem;
  font-weight: 700;
  box-shadow: 0 4px 22px #04142626;
}
body.rf-experience .mobile-wa::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10px -16px calc(-12px - env(safe-area-inset-bottom));
  border-top: 1px solid #c9a65a35;
  background: #071d35f5;
  pointer-events: none;
}
body.rf-experience .mobile-wa::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--gold);
  pointer-events: none;
}
body.rf-experience .mobile-wa:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: none; }

/* Override the former reveal script: content is never invisible while waiting. */
body.rf-experience.reveal-ready .reveal-item,
body.rf-experience .reveal-item { opacity: 1; transform: none; }
body.rf-experience .is-active { visibility: visible; }

@media (min-width: 600px) {
  body.rf-experience .wrap { width: min(var(--container), calc(100% - 64px)); }
  body.rf-experience .hero { padding-block: 54px 66px; }
  body.rf-experience .hero h1 { font-size: clamp(3.4rem, 7.1vw, 5rem); }
  body.rf-experience .hero p { font-size: 1.0625rem; }
  body.rf-experience .hero .actions { display: flex; }
  body.rf-experience .hero .actions a { width: auto; }
  body.rf-experience .trust-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 26px; }
  body.rf-experience .trust-item,
  body.rf-experience .trust-item:last-child { border: 0; padding: 0; }
  body.rf-experience .trust-item + .trust-item { border-left: 1px solid #d4cbb9; padding-left: 24px; }
  body.rf-experience .trust-item strong { font-size: .875rem; }
  body.rf-experience .hero-art { width: min(100%, 420px); }
  body.rf-experience .service-card { grid-template-columns: 52px minmax(0, 1fr); gap: 14px 22px; padding-block: 36px; }
  body.rf-experience .service-card .service-link { width: fit-content; max-width: 100%; }
  body.rf-experience .process { border-radius: 80px 0 80px 0; }
  body.rf-experience .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  body.rf-experience .document-stage { height: 260px; }
  body.rf-experience .document-stage::before { top: 64px; height: 170px; }
  body.rf-experience .document-sheet { top: 10px; width: 168px; height: 216px; padding: 26px 24px; }
  body.rf-experience .process-cta .cta,
  body.rf-experience .revalida-copy .cta,
  body.rf-experience .contact-box .cta { width: auto; }
  body.rf-experience .faq-cta { width: fit-content; }
  body.rf-experience summary { font-size: 1.125rem; }
}

@media (min-width: 900px) {
  body.rf-experience .wrap { width: min(var(--container), calc(100% - 80px)); }
  body.rf-experience .hero { padding-block: 64px 74px; }
  body.rf-experience .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 44px; }
  body.rf-experience .hero h1 { font-size: clamp(3.8rem, 5.7vw, 6.25rem); max-width: 17ch; }
  body.rf-experience .hero .eyebrow { font-size: .8125rem; }
  body.rf-experience .hero p { max-width: 48ch; }
  body.rf-experience .hero .actions { flex-wrap: wrap; }
  body.rf-experience .hero .actions .cta { padding-inline: 18px; font-size: .875rem; }
  body.rf-experience .hero-art { width: 100%; max-width: 440px; margin: 0 0 0 auto; }
  body.rf-experience .hero-art figcaption { margin-top: 24px; }
  body.rf-experience .hero-stamp { right: -12px; bottom: 104px; width: 112px; height: 112px; }
  body.rf-experience .bridge-visual { top: 0; bottom: auto; right: -6%; width: 65%; height: 100%; }
  body.rf-experience .trust-row { gap: 36px; padding-block: 30px; }
  body.rf-experience .trust-item + .trust-item { padding-left: 36px; }
  body.rf-experience .trust-item strong { font-size: 1rem; }
  body.rf-experience .trust-item span { font-size: .875rem; margin-top: 4px; }
  body.rf-experience .chapter-insert h2 { max-width: 15ch; }
  body.rf-experience .chapter-insert p { margin-left: auto; margin-right: 8%; }
  body.rf-experience .route-line { right: 0; bottom: 6%; width: 56%; height: 78%; }
  body.rf-experience .process { border-radius: 115px 0 115px 0; }
  body.rf-experience .process-cta { flex-direction: row; align-items: center; }
  body.rf-experience .process-cta .cta { flex: 0 1 430px; }
  body.rf-experience .founder-grid { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 64px; }
  body.rf-experience .founder-portrait { position: sticky; top: 100px; margin: 0; width: 100%; }
  body.rf-experience #revalida { border-radius: 130px 130px 0 0; }
  body.rf-experience .revalida { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 72px; }
  body.rf-experience .revalida-copy { grid-row: 1; grid-column: 1; }
  body.rf-experience .revalida-panel { grid-row: 1; grid-column: 2; border-top: 0; border-left: 1px solid #e4cf9e70; padding: 16px 0 16px 36px; }
  body.rf-experience .clarity-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
  body.rf-experience .clarity-grid > .document-atlas { grid-column: 2; grid-row: 1; }
  body.rf-experience .document-stage { height: 300px; }
  body.rf-experience .document-stage::before { top: 76px; height: 190px; }
  body.rf-experience .document-sheet { width: 188px; height: 244px; padding: 28px; }
  body.rf-experience .faq-grid { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 64px; }
  body.rf-experience .faq-title { position: sticky; top: 104px; align-self: start; }
  body.rf-experience .contact-box { flex-direction: row; align-items: center; gap: 72px; }
  body.rf-experience .contact-box > div { flex: 1 1 68%; }
  body.rf-experience .contact-box .cta { flex: 0 1 320px; }
  body.rf-experience .contact-orbit { right: -9%; top: -10%; }
  body.rf-experience .network-shell { align-items: center; flex-direction: row; }
}

@media (min-width: 1024px) {
  body.rf-experience .service-card {
    grid-template-columns: 42px minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, .8fr);
    grid-template-areas: "number title description action";
    gap: 30px;
    padding-block: 38px;
    align-items: start;
  }
  body.rf-experience .service-card .service-link { width: 100%; margin: 0; }
  body.rf-experience .service-card h3 { font-size: clamp(1.65rem, 2vw, 2rem); }
  body.rf-experience .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin: 0; padding: 0; border: 0; }
  body.rf-experience .steps::before {
    content: "";
    position: absolute;
    left: 0;
    right: 12%;
    top: 9px;
    height: 1px;
    background: #c9a65a70;
  }
  body.rf-experience .step { padding-top: 34px; }
  body.rf-experience .step::before { left: 0; top: 5px; }
}

@media (min-width: 1440px) {
  body.rf-experience .wrap { width: min(var(--container), calc(100% - 112px)); }
  body.rf-experience .nav { gap: 24px; }
  body.rf-experience .brand span { max-width: 195px; }
  body.rf-experience .hero-grid { gap: 76px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  body.rf-experience .hero-art { max-width: 465px; }
  body.rf-experience .hero h1 { font-size: clamp(5rem, 5.85vw, 6.3rem); }
  body.rf-experience .hero .actions .cta { padding-inline: 24px; font-size: 1rem; }
  body.rf-experience .hero p { font-size: 1.125rem; }
  body.rf-experience .service-card { grid-template-columns: 60px minmax(0, .85fr) minmax(0, 1.15fr) minmax(0, .8fr); gap: 44px; }
}

@media (min-width: 1900px) {
  body.rf-experience { --container: 1500px; }
  body.rf-experience .hero { padding-block: 82px 90px; }
  body.rf-experience .hero-art { max-width: 510px; }
  body.rf-experience .hero h1 { font-size: 6.5rem; }
  body.rf-experience .bridge-visual { right: 0; width: 59%; }
}

@media (max-width: 599px) {
  body.rf-experience { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  body.rf-experience .nav { gap: 10px; min-height: 72px; }
  body.rf-experience .brand { font-size: .8125rem; }
  body.rf-experience .brand img { width: 36px; height: 36px; }
  body.rf-experience .brand span { max-width: 185px; }
  body.rf-experience .hero h1 { max-width: none; }
  body.rf-experience .hero .assurance { display: grid; gap: 4px; }
  body.rf-experience .hero .assurance > span + span::before { content: none; }
  body.rf-experience .mobile-wa { display: flex; }
  body.rf-experience .network-grid { gap: 12px; }
  body.rf-experience .network-card { min-height: 48px; }
  body.rf-experience .founder-experience .cta { width: 100%; }
  body.rf-experience .foot { gap: 28px; }
  body.rf-experience .bio-details > summary { gap: 14px; }
}

@media (max-width: 340px) {
  body.rf-experience .wrap { width: calc(100% - 32px); }
  body.rf-experience .brand span { max-width: 165px; }
  body.rf-experience .brand { gap: 8px; }
  body.rf-experience .hero { padding-top: 26px; }
  body.rf-experience .hero h1 { font-size: 2.08rem; line-height: 1.06; margin: 14px 0 16px; }
  body.rf-experience .hero p { font-size: .9375rem; line-height: 1.55; }
  body.rf-experience .hero .actions { margin-top: 20px; }
  body.rf-experience .hero .cta { padding: 12px 16px; font-size: .875rem; }
  body.rf-experience .hero .eyebrow { font-size: .6875rem; }
  body.rf-experience .assurance { margin-top: 14px; font-size: .75rem; }
  body.rf-experience .service-card { grid-template-columns: 27px minmax(0, 1fr); gap: 12px; }
  body.rf-experience .hero-stamp { width: 94px; height: 94px; font-size: .6875rem; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.rf-experience *,
  body.rf-experience *::before,
  body.rf-experience *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  body.rf-experience .bridge-visual,
  body.rf-experience .contact-orbit,
  body.rf-experience .service-arrow,
  body.rf-experience .cta,
  body.rf-experience .button { transform: none !important; }
  body.rf-experience .headline-line,
  body.rf-experience .headline-line .type-inner,
  body.rf-experience .headline-line .spatial-inner,
  body.rf-experience .headline-line .letter,
  body.rf-experience .headline-line .type-letter,
  body.rf-experience .section-head h2 .type-letter,
  body.rf-experience .section-head h2 .spatial-inner,
  body.rf-experience .revalida-copy h2 .type-letter,
  body.rf-experience .revalida-copy h2 .spatial-inner,
  body.rf-experience .chapter-insert .reading-word {
    transform: none !important;
    opacity: 1 !important;
    will-change: auto !important;
  }
  body.rf-experience .route-line path[data-route] { stroke-dashoffset: 0 !important; }
  body.rf-experience .document-stage { perspective: none; }
  body.rf-experience .bridge-visual canvas { display: none; }
  body.rf-experience .bridge-visual svg { opacity: .56 !important; visibility: visible !important; }
  body.rf-experience.reveal-ready .reveal-item { opacity: 1 !important; transform: none !important; }
}

@media print {
  body.rf-experience { padding: 0; color: #172435; background: #fff; }
  body.rf-experience .bridge-visual,
  body.rf-experience .contact-orbit,
  body.rf-experience .hero-stamp,
  body.rf-experience .chapter-insert { display: none; }
  body.rf-experience .document-stage,
  body.rf-experience .document-tabs { display: none !important; }
  body.rf-experience .document-panel[hidden] { display: block !important; }
  body.rf-experience .process,
  body.rf-experience #revalida,
  body.rf-experience .contact { background: #fff; color: #172435; border-radius: 0; }
  body.rf-experience .process h2,
  body.rf-experience .process h3,
  body.rf-experience .step p,
  body.rf-experience .revalida-copy h2,
  body.rf-experience .revalida-copy p,
  body.rf-experience .revalida-panel h3,
  body.rf-experience .check,
  body.rf-experience .contact-box h2,
  body.rf-experience .contact-box p { color: #172435; }
  body.rf-experience .founder-portrait,
  body.rf-experience .faq-title { position: static; }
}

/* ===== RF educational chapter · Residencia / Registro / CRNM =====
   This route explains documents; it is independent of the four service steps.
   Text is fully visible before enhancement and the bridge stays in flow. */
body.rf-experience .education-jump { display: flex; width: fit-content; min-height: 44px; margin-top: 14px; font-size: .875rem; }
body.rf-experience .residency-chapter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 124px);
  background: radial-gradient(ellipse at 96% 5%, #492135 0, transparent 55%), var(--navy);
  color: #f4eee2;
}
body.rf-experience .residency-chapter::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: repeating-linear-gradient(112deg, transparent 0, transparent 69px, #ffffff03 69px, #ffffff03 70px);
  pointer-events: none;
}
body.rf-experience .residency-chapter .wrap { position: relative; min-width: 0; }
body.rf-experience .residency-chapter h2,
body.rf-experience .residency-chapter h3 { font-family: 'RF Publication Serif', Georgia, 'Times New Roman', serif; }
body.rf-experience .residency-chapter .education-heading {
  position: relative;
  top: auto;
  z-index: auto;
  max-width: 910px;
  margin-bottom: clamp(36px, 4vw, 64px);
  border: 0;
  background: transparent;
}
body.rf-experience .residency-chapter .education-heading .kicker,
body.rf-experience .residency-chapter .residency-note .kicker {
  color: #e4cf9e;
  font-size: .875rem;
  letter-spacing: .1em;
}
body.rf-experience .residency-chapter .education-heading h2 {
  max-width: 18ch;
  margin: 18px 0 22px;
  color: #f4eee2;
  font-size: clamp(2.55rem, 5.8vw, 5.5rem);
  line-height: 1.05;
}
body.rf-experience .residency-chapter .education-lede {
  max-width: 61ch;
  margin: 0;
  color: #dbe4ec;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.65;
}
body.rf-experience .residency-chapter .residency-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-bottom: clamp(44px, 6vw, 88px);
}
body.rf-experience .residency-chapter .education-definition {
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid #c9a65a65;
  background: transparent;
}
body.rf-experience .residency-chapter .education-tag {
  display: block;
  margin-bottom: 14px;
  color: #e4cf9e;
  font: 650 .875rem/1.5 var(--font-body);
  letter-spacing: .09em;
  text-transform: uppercase;
}
body.rf-experience .residency-chapter .education-definition h3 {
  max-width: 22ch;
  margin-bottom: 14px;
  color: #f4eee2;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
}
body.rf-experience .residency-chapter .education-definition p {
  max-width: 43ch;
  margin: 0;
  color: #dbe4ec;
  font-size: 1rem;
  line-height: 1.7;
}
body.rf-experience .residency-chapter .residency-neq {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #e4cf9e;
  font: 400 3rem/1 'RF Publication Serif', Georgia, 'Times New Roman', serif;
  user-select: none;
}
body.rf-experience .residency-chapter .residency-neq::before,
body.rf-experience .residency-chapter .residency-neq::after {
  content: "";
  width: 40px;
  height: 1px;
  background: #c9a65a65;
}
body.rf-experience .residency-chapter .residency-route { position: relative; min-width: 0; }
body.rf-experience .residency-chapter .residency-stages {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.rf-experience .residency-chapter .residency-stage {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body.rf-experience .residency-chapter .education-number {
  display: grid;
  place-items: center;
  width: 52px;
  min-height: 52px;
  border: 1px solid #c9a65ab3;
  border-radius: 50%;
  background: transparent;
  color: #e4cf9e;
  font: 400 1.75rem/1 'RF Publication Serif', Georgia, 'Times New Roman', serif;
  transition: color var(--motion), background-color var(--motion), border-color var(--motion);
}
body.rf-experience .residency-chapter .residency-stage h3 {
  margin: 3px 0 12px;
  color: #f4eee2;
  font-size: clamp(1.625rem, 2.25vw, 2.125rem);
  transition: color var(--motion);
}
body.rf-experience .residency-chapter .residency-stage p {
  max-width: 43ch;
  margin: 0;
  color: #dbe4ec;
  font-size: 1rem;
  line-height: 1.7;
}
body.rf-experience .residency-chapter .residency-stage.is-reading .education-number {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
body.rf-experience .residency-chapter .residency-stage.is-reading h3 { color: #f0d795; }
body.rf-experience .residency-chapter .residency-bridge {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(100px, 18vw, 240px);
  margin: 22px 0 0;
  overflow: visible;
  pointer-events: none;
}
body.rf-experience .residency-chapter .residency-bridge path,
body.rf-experience .residency-chapter .residency-bridge line { vector-effect: non-scaling-stroke; }
body.rf-experience .residency-chapter .residency-bridge .education-bridge-structure {
  fill: none;
  stroke: #c9a65a;
  stroke-width: 1.2;
  opacity: .42;
}
body.rf-experience .residency-chapter .education-pylons { stroke-width: 2; }
body.rf-experience .residency-chapter .education-bridge-nodes { fill: var(--navy); stroke: #e4cf9e; stroke-width: 1.5; }
body.rf-experience .residency-chapter .education-bridge-label { fill: #e4cf9e; font: 500 20px var(--font-body); }
body.rf-experience .residency-chapter .education-track {
  fill: none;
  stroke: #e4cf9e;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
body.rf-experience .residency-chapter .education-marker {
  display: none;
  fill: #e4cf9e;
  stroke: var(--navy);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
body.rf-experience .residency-chapter.education-motion .education-marker { display: block; }
body.rf-experience .residency-chapter .residency-note {
  max-width: 860px;
  margin: clamp(20px, 3vw, 44px) 0 0;
  padding: 26px 0 0;
  border-top: 1px solid #c9a65a65;
  background: transparent;
}
body.rf-experience .residency-chapter .residency-note h3 {
  margin: 14px 0;
  color: #f4eee2;
  font-size: clamp(1.625rem, 2.2vw, 2.125rem);
}
body.rf-experience .residency-chapter .residency-note p { margin: 0; color: #dbe4ec; font-size: 1rem; line-height: 1.7; }
body.rf-experience .residency-chapter .education-close {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: clamp(36px, 4.5vw, 64px);
  padding: 32px 24px;
  border: 0;
  border-radius: 0 48px 0 0;
  background: var(--wine);
}
body.rf-experience .residency-chapter .education-close > div { max-width: 670px; min-width: 0; }
body.rf-experience .residency-chapter .education-close h3 {
  max-width: 26ch;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(1.75rem, 2.9vw, 2.875rem);
  line-height: 1.15;
}
body.rf-experience .residency-chapter .education-close p { margin: 0; color: #f4e4e8; font-size: 1rem; line-height: 1.65; }
body.rf-experience .residency-chapter .education-close .cta { width: 100%; min-height: 52px; }
body.rf-experience .residency-chapter .education-assurance {
  display: block;
  margin-top: 16px;
  color: #dbe4ec;
  font-size: .875rem;
  line-height: 1.6;
}
body.rf-experience .residency-chapter .education-close .education-assurance { color: #f4e4e8; }
body.rf-experience .residency-chapter .education-sources {
  margin-top: 30px;
  padding-block: 18px;
  border-top: 1px solid #c9a65a40;
  border-bottom: 1px solid #c9a65a40;
  background: transparent;
}
body.rf-experience .residency-chapter .education-sources > summary {
  min-height: 48px;
  color: #e4cf9e;
  font-size: .875rem;
  font-weight: 550;
  line-height: 1.5;
}
body.rf-experience .residency-chapter .education-sources > summary::after { color: #e4cf9e; }
body.rf-experience .residency-chapter .education-sources p {
  max-width: 83ch;
  margin: 16px 0 10px;
  color: #dbe4ec;
  font-size: .875rem;
  line-height: 1.7;
}
body.rf-experience .residency-chapter .education-sources a {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-width: 44px;
  min-height: 44px;
  padding-block: 8px;
  color: #e4cf9e;
  font-size: .875rem;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
body.rf-experience .residency-chapter .education-sources a:hover { color: #fff; }
body.rf-experience .residency-chapter :is(a, button, summary):focus-visible {
  outline: 3px solid #f0d795;
  outline-offset: 4px;
}

@media (min-width: 768px) {
  body.rf-experience .residency-chapter .residency-compare {
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    gap: 30px;
    align-items: stretch;
  }
  body.rf-experience .residency-chapter .residency-neq { flex-direction: column; padding-top: 28px; font-size: 3.5rem; }
  body.rf-experience .residency-chapter .residency-neq::before,
  body.rf-experience .residency-chapter .residency-neq::after { width: 1px; height: 38px; }
  body.rf-experience .residency-chapter .education-close { padding: 42px 40px; border-top-right-radius: 90px; }
  body.rf-experience .residency-chapter .education-close .cta { width: fit-content; }
  body.rf-experience .residency-chapter .education-sources a { display: inline-flex; margin-right: 24px; }
}

@media (min-width: 1024px) {
  body.rf-experience .residency-chapter .residency-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  body.rf-experience .residency-chapter .residency-stage { grid-template-columns: 1fr; gap: 20px; }
  body.rf-experience .residency-chapter .education-number { width: 60px; min-height: 60px; font-size: 2rem; }
  body.rf-experience .residency-chapter .residency-stage h3 { margin-top: 0; }
  body.rf-experience .residency-chapter .residency-bridge { margin-top: 16px; }
  body.rf-experience .residency-chapter .education-close {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 48px;
    align-items: center;
    padding: 52px 56px;
    border-top-right-radius: 135px;
  }
  body.rf-experience .residency-chapter .education-close .cta { width: 100%; }
}

@media (max-width: 340px) {
  body.rf-experience .residency-chapter .residency-stage { grid-template-columns: 46px minmax(0, 1fr); gap: 15px; }
  body.rf-experience .residency-chapter .education-number { width: 46px; min-height: 46px; font-size: 1.625rem; }
  body.rf-experience .residency-chapter .education-close { padding: 30px 20px; }
  body.rf-experience .residency-chapter .education-close .cta { padding-inline: 16px; font-size: .875rem; }
}

/* SVG text uses viewBox units; larger glyphs retain readable country labels on phones. */
@media (max-width: 767px) {
  body.rf-experience .residency-chapter .education-bridge-label { font-size: 52px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  body.rf-experience .residency-chapter .education-bridge-label { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  body.rf-experience .residency-chapter .education-track { stroke-dashoffset: 0 !important; }
  body.rf-experience .residency-chapter .education-marker { display: none !important; }
  body.rf-experience .residency-chapter .residency-stage,
  body.rf-experience .residency-chapter .education-number { transition: none !important; transform: none !important; }
}

@media print {
  body.rf-experience .residency-chapter { background: #fff; color: #172435; }
  body.rf-experience .residency-chapter::before,
  body.rf-experience .residency-chapter .residency-bridge { display: none; }
  body.rf-experience .residency-chapter .education-close { background: #fff; padding: 24px 0; border-radius: 0; }
  body.rf-experience .residency-chapter :is(h2, h3, p, .kicker, .education-tag, .education-assurance, a, summary) { color: #172435 !important; }
}
/* ===== End RF educational chapter ===== */
