/* ============================================================
   APILS – Refined design layer
   Loaded AFTER style.css. Everything is scoped to body.refined,
   so pages that have not been migrated are unaffected.
   To migrate a page: add class="refined" to <body>, link this file
   after style.css, and use the .rf-* components below.
   ============================================================ */

body.refined {
  --ink: #17261f;
  --ink-2: #44554c;
  --muted: #5c6b63;
  --paper: #fbf7ee;
  --paper-2: #f2ebda;
  --line: rgba(23, 38, 31, 0.14);
  --green: #1d4d3a;
  --green-dark: #12302a;
  --accent: #b4531f;
  --gold: #e3b04b;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1160px;
  --header-h: 72px;

  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

body.refined h1,
body.refined h2,
body.refined h3,
body.refined h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

body.refined p { max-width: 68ch; }

body.refined :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.rf-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--green-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  z-index: 2000;
  font-weight: 600;
}
.rf-skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rf-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.rf-section { padding: clamp(72px, 9vw, 128px) 0; }
.rf-section--tint { background: var(--paper-2); }

.rf-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.rf-h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 20px;
  max-width: 26ch;
}
.rf-lede {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 58ch;
}
.rf-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Buttons & links ---------- */
.rf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.rf-btn--primary { background: var(--green); color: #fff; }
.rf-btn--primary:hover { background: var(--green-dark); }
.rf-btn--light { background: var(--paper); color: var(--green-dark); }
.rf-btn--light:hover { background: #fff; }
.rf-btn--sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

.rf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--green);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.rf-link::after { content: '\2192'; transition: transform 0.2s ease; }
.rf-link:hover { border-color: currentColor; }
.rf-link:hover::after { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
body.refined .site-header {
  background: var(--paper);
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}
body.refined .nav,
body.refined .nav.scrolled {
  padding: 0;
  background: var(--paper);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  box-shadow: none;
}
body.refined .nav.scrolled { box-shadow: 0 8px 24px rgba(23, 38, 31, 0.06); }

body.refined .nav__container {
  max-width: var(--wrap);
  height: var(--header-h);
  padding: 0 24px;
  gap: 40px;
  align-items: center;
}

body.refined .nav__logo { gap: 12px; font-family: var(--serif); }
.rf-mark { width: 38px; height: 38px; flex-shrink: 0; }
.rf-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.rf-logo-text strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green-dark);
}
.rf-logo-text small {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

body.refined .nav__links {
  align-self: stretch;
  height: 100%;
  gap: 32px;
  margin-left: auto;
}
body.refined .nav__links > li {
  display: flex;
  align-items: center;
  height: 100%;
}
body.refined .nav__links > li > a {
  position: relative;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  gap: 8px;
}
body.refined .nav__links > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
body.refined .nav__links > li > a:hover { color: var(--green); }
body.refined .nav__links > li > a:hover::after,
body.refined .nav__links > li > a[aria-current='page']::after { transform: scaleX(1); }

body.refined .nav__caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  font-size: 0;
  color: var(--muted);
}
body.refined .nav__item--dropdown:hover .nav__caret {
  transform: rotate(225deg) translateY(-2px);
  color: var(--green);
}

body.refined .nav__dropdown-menu {
  top: 100%;
  left: -16px;
  min-width: 240px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 20px 44px rgba(23, 38, 31, 0.12);
  transform: translateY(6px);
}
body.refined .nav__item--dropdown:hover .nav__dropdown-menu,
body.refined .nav__item--dropdown:focus-within .nav__dropdown-menu {
  transform: none;
}
body.refined .nav__dropdown-item {
  display: block;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 4px;
}
body.refined .nav__dropdown-item:hover { background: var(--paper-2); color: var(--green); }

body.refined .nav__actions { gap: 20px; }
.rf-signin { font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.rf-signin:hover { color: var(--green); }
body.refined .nav__links > li.rf-only-mobile { display: none; }

body.refined .nav__toggle { padding: 8px; }
body.refined .nav__toggle span { background: var(--ink); height: 1.5px; }

/* ============================================================
   HERO
   ============================================================ */
.rf-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }

.rf-hero__top {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.rf-hero h1 {
  font-size: clamp(2.7rem, 6.6vw, 5.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.rf-hero h1 em { font-style: italic; color: var(--green); }

.rf-hero__side p { color: var(--ink-2); font-size: 1.12rem; margin-bottom: 28px; }
.rf-hero__side p strong { color: var(--ink); font-weight: 600; }
.rf-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

.rf-hero__img { position: relative; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.rf-hero__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center 55%;
}

.rf-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.rf-fact { padding: 28px 28px 28px 0; }
.rf-fact + .rf-fact { padding-left: 28px; border-left: 1px solid var(--line); }
.rf-fact b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.rf-fact span { font-size: 0.92rem; color: var(--muted); display: block; max-width: 28ch; }

/* ============================================================
   STATEMENT BAND
   ============================================================ */
.rf-band { background: var(--green-dark); color: #f3ecdc; }
.rf-band .rf-eyebrow { color: var(--gold); }
body.refined .rf-band h2 {
  color: #fbf7ee;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  font-weight: 400;
  line-height: 1.06;
  max-width: 18ch;
  margin-bottom: clamp(40px, 6vw, 72px);
}
body.refined .rf-band h2 em { color: var(--gold); font-style: italic; }
.rf-asks {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  border-top: 1px solid rgba(251, 247, 238, 0.22);
}
.rf-ask { padding: 32px 40px 0 0; }
.rf-ask + .rf-ask { padding: 32px 0 0 40px; border-left: 1px solid rgba(251, 247, 238, 0.22); }
.rf-ask small {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 247, 238, 0.65);
  margin-bottom: 14px;
}
.rf-ask q {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  quotes: none;
  color: #fbf7ee;
  margin-bottom: 14px;
}
.rf-ask:first-child q { color: rgba(251, 247, 238, 0.7); }
.rf-ask p { font-size: 0.98rem; color: rgba(251, 247, 238, 0.75); }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.rf-compare { width: 100%; border-collapse: collapse; }
.rf-compare caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.rf-compare th,
.rf-compare td { text-align: left; vertical-align: top; padding: 22px 32px 22px 0; border-top: 1px solid var(--line); }
.rf-compare thead th {
  border-top: 0;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 16px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.rf-compare thead th:last-child { color: var(--green); }
.rf-compare td { color: var(--ink-2); font-size: 1.02rem; }
.rf-compare td:last-child { color: var(--ink); font-weight: 500; padding-right: 0; }
.rf-compare tbody th { width: 3.2rem; font-family: var(--serif); color: var(--accent); font-weight: 500; font-size: 1.1rem; padding-right: 8px; }
.rf-compare tfoot td { border-top: 1px solid var(--ink); font-size: 0.98rem; padding-top: 24px; }
.rf-compare tfoot td:last-child { font-weight: 400; }
.rf-compare tfoot b { color: var(--ink); }

/* ============================================================
   PILLARS
   ============================================================ */
.rf-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 64px) clamp(40px, 6vw, 96px);
}
.rf-pillar { border-top: 1px solid var(--ink); padding-top: 24px; }
.rf-pillar__num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 14px;
}
.rf-pillar h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 12px; }
.rf-pillar p { color: var(--ink-2); margin-bottom: 16px; }
.rf-pillar__cycle {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rf-more { margin-top: clamp(40px, 5vw, 64px); }

/* ============================================================
   CAMPUS SYSTEMS
   ============================================================ */
.rf-campus__figure { margin-bottom: clamp(40px, 6vw, 72px); }
.rf-campus__figure img { width: 100%; height: auto; border-radius: 4px; background: var(--paper-2); }
.rf-campus__figure figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

.rf-systems {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 6vw, 96px);
}
.rf-system { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.rf-system:nth-child(-n+2) { border-top-color: var(--ink); }
.rf-system h3 { font-size: 1.3rem; margin-bottom: 6px; }
.rf-system p { color: var(--ink-2); font-size: 0.98rem; }

/* ============================================================
   NIOS
   ============================================================ */
.rf-equation {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.rf-equation i { font-style: normal; color: var(--accent); padding: 0 0.12em; }
.rf-equation em { color: var(--green); }
.rf-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.rf-col { border-top: 1px solid var(--ink); padding-top: 22px; }
.rf-col h3 { font-size: 1.4rem; margin-bottom: 10px; }
.rf-col p { color: var(--ink-2); font-size: 0.98rem; }

/* ============================================================
   STORIES (alternating photo rows)
   ============================================================ */
.rf-story {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.rf-story + .rf-story { margin-top: clamp(64px, 9vw, 120px); }
.rf-story--rev .rf-story__img { order: 2; }
.rf-story__img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; background: var(--paper-2); }
.rf-story h3 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 18px; }
.rf-story p { color: var(--ink-2); margin-bottom: 18px; }
.rf-story__meta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ============================================================
   EXPLORE LIST
   ============================================================ */
.rf-explore { border-top: 1px solid var(--ink); }
.rf-explore a {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease, background-color 0.25s ease;
}
.rf-explore h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); transition: color 0.2s ease; }
.rf-explore p { color: var(--ink-2); font-size: 0.98rem; }
.rf-explore a::after { content: '\2192'; font-size: 1.4rem; color: var(--green); transition: transform 0.25s ease; }
.rf-explore a:hover h3 { color: var(--green); }
.rf-explore a:hover::after { transform: translateX(6px); }

/* ============================================================
   ADMISSIONS BAND
   ============================================================ */
.rf-apply { background: var(--green); color: #f3ecdc; }
.rf-apply__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.rf-apply .rf-eyebrow { color: var(--gold); }
body.refined .rf-apply h2 { color: #fbf7ee; font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 400; margin-bottom: 14px; }
.rf-apply p { color: rgba(251, 247, 238, 0.82); }
.rf-apply__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.rf-apply__actions a.rf-mail { color: #fbf7ee; border-bottom: 1px solid rgba(251, 247, 238, 0.5); padding-bottom: 2px; font-size: 0.98rem; }
.rf-apply__actions a.rf-mail:hover { border-color: #fbf7ee; }

/* ============================================================
   FOOTER
   ============================================================ */
body.refined .footer {
  background: #0d241f;
  color: rgba(251, 247, 238, 0.78);
  border-top: 0;
  padding: clamp(56px, 7vw, 88px) 0 32px;
}
body.refined .footer__grid {
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
body.refined .footer__logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fbf7ee;
  margin-bottom: 14px;
}
body.refined .footer__brand p { color: rgba(251, 247, 238, 0.7); font-size: 0.95rem; max-width: 40ch; }
body.refined .footer__links h4,
body.refined .footer__contact h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 18px;
}
body.refined .footer__links ul { gap: 10px; }
body.refined .footer__links ul a { font-size: 0.95rem; color: rgba(251, 247, 238, 0.78); }
body.refined .footer__links ul a:hover { color: #fff; }
body.refined .footer__contact p { display: block; font-size: 0.95rem; color: rgba(251, 247, 238, 0.78); margin-bottom: 8px; }
body.refined .footer__bottom {
  border-top: 1px solid rgba(251, 247, 238, 0.16);
  padding-top: 24px;
  text-align: left;
}
body.refined .footer__bottom p { color: rgba(251, 247, 238, 0.6); font-size: 0.82rem; max-width: 90ch; margin: 0 0 8px; }
body.refined .footer__bottom .rf-devnote {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px dashed rgba(227, 176, 75, 0.6);
  border-radius: 4px;
  color: var(--gold);
  font-size: 0.8rem;
}

/* ============================================================
   REVEAL (progressive: only hides content when JS is running)
   ============================================================ */
.js body.refined .animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js body.refined .animate-on-scroll.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js body.refined .animate-on-scroll { opacity: 1; transform: none; transition: none; }
  .rf-link::after, .rf-explore a::after { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  body.refined .nav__links { display: none; }
  body.refined .nav__toggle { display: flex; }
  body.refined .nav__actions { margin-left: auto; gap: 14px; }
  body.refined .nav__toggle { margin-left: 0; }
  body.refined .nav__item--dropdown { text-align: left; width: 100%; }
  .rf-signin { display: none; }
  body.refined .nav__links > li.rf-only-mobile { display: block; }

  body.refined .nav__links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 8px 24px 40px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    z-index: 999;
  }
  body.refined .nav__links.open > li { display: block; height: auto; border-bottom: 1px solid var(--line); }
  body.refined .nav__links.open > li > a { display: flex; justify-content: space-between; width: 100%; padding: 18px 0; font-size: 1.1rem; }
  body.refined .nav__links.open > li > a::after { display: none; }
  body.refined .nav__links.open .nav__dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 12px 12px;
  }
  body.refined .nav__links.open .nav__item--dropdown.open .nav__dropdown-menu { display: block; }
  body.refined .nav__links.open .nav__item--dropdown.open .nav__caret { transform: rotate(225deg) translateY(-2px); }

  .rf-hero__top { grid-template-columns: 1fr; align-items: start; }
  .rf-asks { grid-template-columns: 1fr; }
  .rf-ask, .rf-ask + .rf-ask { padding: 28px 0 0; border-left: 0; }
  .rf-ask + .rf-ask { border-top: 1px solid rgba(251, 247, 238, 0.22); margin-top: 28px; }
  .rf-systems { grid-template-columns: 1fr; }
  .rf-system:nth-child(2) { border-top-color: var(--line); }
  .rf-story, .rf-story--rev { grid-template-columns: 1fr; }
  .rf-story--rev .rf-story__img { order: 0; }
  .rf-apply__inner { grid-template-columns: 1fr; }
  .rf-explore a { grid-template-columns: 1fr auto; gap: 8px 24px; }
  .rf-explore a p { grid-column: 1; grid-row: 2; }
  .rf-explore a::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  body.refined .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .rf-pillars, .rf-cols { grid-template-columns: 1fr; }
  .rf-facts { grid-template-columns: 1fr; }
  .rf-fact, .rf-fact + .rf-fact { padding: 20px 0; border-left: 0; }
  .rf-fact + .rf-fact { border-top: 1px solid var(--line); }
  .rf-hero__img img { aspect-ratio: 4 / 3; }

  /* Comparison table becomes stacked rows */
  .rf-compare, .rf-compare tbody, .rf-compare tfoot, .rf-compare tr, .rf-compare td, .rf-compare th { display: block; width: 100%; }
  .rf-compare thead { display: none; }
  .rf-compare tr { padding: 18px 0; border-top: 1px solid var(--line); }
  .rf-compare th, .rf-compare td { border: 0; padding: 0 0 6px; }
  .rf-compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .rf-compare td:last-child::before { color: var(--green); }
  .rf-compare tbody th { width: auto; }
  .rf-compare tfoot td { border: 0; padding: 0 0 12px; }
}

@media (max-width: 560px) {
  .rf-wrap, body.refined .nav__container { padding: 0 18px; }
  body.refined .nav__container { gap: 16px; }
  .rf-logo-text small { display: none; }
  body.refined .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .rf-btn { white-space: normal; }
}

/* ============================================================
   LANGUAGE SWITCHER + INDIC SCRIPT TYPOGRAPHY (Telugu, Hindi)
   ============================================================ */
.rf-lang {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%235c6b63' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 28px 7px 12px;
  cursor: pointer;
}
.rf-lang:hover { border-color: var(--green); }
body.refined .nav__links > li.rf-only-xs { display: none; }

@media (max-width: 560px) {
  body.refined .nav__actions .rf-lang { display: none; }
  body.refined .nav__links.open > li.rf-only-xs { display: block; padding: 18px 0; }
  .rf-only-xs .rf-lang { width: 100%; font-size: 1rem; padding: 12px 36px 12px 14px; }
}


/* ============================================================
   SUBPAGES
   ============================================================ */
.rf-pagehead { padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.rf-crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 28px; }
.rf-crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.rf-crumbs a:hover { color: var(--green); border-color: var(--green); }
.rf-crumbs span[aria-hidden] { margin: 0 6px; }
.rf-pagehead h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 18ch; margin: 10px 0 22px; }
.rf-pagehead h1 em { font-style: italic; color: var(--green); }
.rf-pagehead .rf-lede { max-width: 60ch; }

.rf-sub { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.4; color: var(--ink-2); max-width: 46ch; }
.rf-note { font-size: 0.9rem; color: var(--muted); border-left: 2px solid var(--gold); padding: 2px 0 2px 14px; margin-top: 28px; max-width: 68ch; }
.rf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; list-style: none; padding: 0; }
.rf-tags li { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--green); border: 1px solid rgba(29,77,58,.35); padding: 3px 10px; border-radius: 999px; }
.rf-bullets { list-style: none; padding: 0; margin: 14px 0 0; }
.rf-bullets li { position: relative; padding: 6px 0 6px 20px; color: var(--ink-2); font-size: 0.97rem; }
.rf-bullets li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 8px; height: 1px; background: var(--accent); }
.rf-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--paper-2); display: block; }
.rf-figure figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }
.rf-quote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; max-width: 28ch; margin: 0; }

/* numbered hairline rows */
.rf-rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); counter-reset: row; }
.rf-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px clamp(20px, 4vw, 56px); padding: 26px 0; border-bottom: 1px solid var(--line); counter-increment: row; }
.rf-row::before { content: counter(row, decimal-leading-zero); font-family: var(--serif); color: var(--accent); font-size: 1rem; padding-top: 6px; }
.rf-row h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.rf-row h3 small { display: block; font-family: var(--sans); font-size: 0.95rem; font-weight: 400; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.rf-row p { color: var(--ink-2); font-size: 0.98rem; }
.rf-row--pair { grid-template-columns: 56px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: baseline; }
.rf-row--pair .rf-row__arrow { color: var(--accent); }
.rf-row--pair h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; }
.rf-row--pair p { font-size: 1.05rem; color: var(--ink); }

/* 9-step journey */
.rf-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(32px, 5vw, 72px); counter-reset: st; }
.rf-step { border-top: 1px solid var(--ink); padding: 22px 0 34px; counter-increment: st; }
.rf-step::before { content: counter(st); display: block; font-family: var(--serif); color: var(--accent); font-size: 1.05rem; margin-bottom: 10px; }
.rf-step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.rf-step p { color: var(--ink-2); font-size: 0.97rem; }

/* daily schedule */
.rf-schedule { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.rf-slot { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px clamp(20px, 4vw, 56px); padding: 22px 0; border-bottom: 1px solid var(--line); }
.rf-slot time { font-family: var(--serif); font-size: 1.25rem; color: var(--green); }
.rf-slot h3 { font-size: 1.3rem; margin-bottom: 4px; }
.rf-slot p { color: var(--ink-2); font-size: 0.98rem; }

/* regenerative loops */
.rf-flows { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.rf-flow { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 16px clamp(24px, 4vw, 56px); }
.rf-flow h3 { font-size: 1.5rem; }
.rf-flow ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 0; align-items: center; }
.rf-flow li { font-size: 0.97rem; color: var(--ink); }
.rf-flow li:not(:last-child)::after { content: '\2192'; color: var(--accent); margin: 0 12px; }

/* filter tabs + project list */
.rf-filters { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
body.refined .filter-btn { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 0; margin-bottom: -1px; font: 600 0.95rem var(--sans); color: var(--muted); cursor: pointer; box-shadow: none; }
body.refined .filter-btn:hover { color: var(--green); }
body.refined .filter-btn.filter-btn--active { color: var(--green); border-bottom-color: var(--accent); background: none; }
.rf-projects { border-top: 0; }
body.refined .project-card.rf-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 8px clamp(20px, 4vw, 56px); padding: 30px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; transform: none; align-items: start; }
.rf-project__status { font-size: 0.78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 8px; }
.rf-project h3 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
.rf-project p { color: var(--ink-2); font-size: 0.98rem; }
.rf-project__team { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }
.rf-project[hidden], .rf-project.hidden { display: none !important; }

/* telemetry */
.rf-telemetry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.rf-tele { border-top: 1px solid var(--ink); padding: 16px 0 24px; }
.rf-tele__label { font-size: 0.85rem; color: var(--muted); display: block; }
.rf-tele__val { font-family: var(--serif); font-size: 2rem; color: var(--ink); display: block; margin: 2px 0 10px; }
.rf-tele .progress-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rf-tele .progress-bar__fill { background: var(--green) !important; height: 100%; display: block; }

/* map */
body.refined .campus-map__wrapper { gap: clamp(24px, 4vw, 48px); }
body.refined .campus-map__canvas { background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; box-shadow: none; }
body.refined .campus-map__info { background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: none; color: var(--ink); --clr-green-400: var(--green); }
body.refined .campus-map__info h3, body.refined .campus-map__info h4 { color: var(--ink); }
body.refined .campus-map__info p { color: var(--ink-2); }
body.refined { --map-label: var(--ink-2); }

/* radar */
.rf-radar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.rf-radar__chart { max-width: 420px; width: 100%; margin: 0 auto; }
.rf-radar__chart .rf-note { margin-top: 12px; }

@media (max-width: 960px) {
  .rf-steps, .rf-telemetry { grid-template-columns: repeat(2, 1fr); }
  .rf-radar, .rf-flow { grid-template-columns: 1fr; }
  body.refined .project-card.rf-project { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rf-row, .rf-row--pair { grid-template-columns: 40px minmax(0, 1fr); }
  .rf-row > p, .rf-row--pair > :nth-child(n+3) { grid-column: 2; }
  .rf-row--pair .rf-row__arrow { display: none; }
  .rf-steps, .rf-telemetry { grid-template-columns: 1fr; }
  .rf-slot { grid-template-columns: 1fr; }
  .rf-flow li:not(:last-child)::after { margin: 0 8px; }
}
html[lang="te"] .rf-project__status, html[lang="hi"] .rf-project__status { letter-spacing: 0; text-transform: none; }
html[lang="te"] .rf-pagehead h1, html[lang="hi"] .rf-pagehead h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.3; max-width: 22ch; }

html[lang="te"] body.refined {
  --sans: 'Noto Sans Telugu', 'Gautami', 'Nirmala UI', 'Inter', system-ui, sans-serif;
  --serif: 'Noto Serif Telugu', 'Gautami', 'Nirmala UI', Georgia, serif;
}
html[lang="hi"] body.refined {
  --sans: 'Noto Sans Devanagari', 'Mangal', 'Nirmala UI', 'Inter', system-ui, sans-serif;
  --serif: 'Noto Serif Devanagari', 'Mangal', 'Nirmala UI', Georgia, serif;
}
html[lang="te"] body.refined,
html[lang="hi"] body.refined { line-height: 1.8; }

html[lang="te"] body.refined h1, html[lang="hi"] body.refined h1,
html[lang="te"] body.refined h2, html[lang="hi"] body.refined h2,
html[lang="te"] body.refined h3, html[lang="hi"] body.refined h3,
html[lang="te"] body.refined h4, html[lang="hi"] body.refined h4 {
  letter-spacing: 0;
  line-height: 1.35;
}
html[lang="te"] .rf-hero h1, html[lang="hi"] .rf-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.3;
}
html[lang="te"] body.refined .rf-band h2, html[lang="hi"] body.refined .rf-band h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.3;
  max-width: 24ch;
}
html[lang="te"] .rf-equation, html[lang="hi"] .rf-equation {
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  line-height: 1.35;
  letter-spacing: 0;
  max-width: 28ch;
}
/* Indic scripts have no italics and break when tracked or uppercased */
html[lang="te"] body.refined em, html[lang="hi"] body.refined em { font-style: normal; }
html[lang="te"] .rf-eyebrow, html[lang="hi"] .rf-eyebrow,
html[lang="te"] .rf-pillar__cycle, html[lang="hi"] .rf-pillar__cycle,
html[lang="te"] .rf-story__meta, html[lang="hi"] .rf-story__meta,
html[lang="te"] .rf-ask small, html[lang="hi"] .rf-ask small,
html[lang="te"] .rf-compare thead th, html[lang="hi"] .rf-compare thead th,
html[lang="te"] .rf-compare td::before, html[lang="hi"] .rf-compare td::before,
html[lang="te"] .rf-logo-text small, html[lang="hi"] .rf-logo-text small,
html[lang="te"] body.refined .footer__links h4, html[lang="hi"] body.refined .footer__links h4,
html[lang="te"] body.refined .footer__contact h4, html[lang="hi"] body.refined .footer__contact h4 {
  letter-spacing: 0;
  text-transform: none;
}
html[lang="te"] .rf-eyebrow, html[lang="hi"] .rf-eyebrow { font-size: 0.9rem; }
html[lang="te"] .rf-fact b, html[lang="hi"] .rf-fact b { font-size: clamp(1.8rem, 3vw, 2.4rem); }
/* logo text stays in Latin serif regardless of language */
html[lang="te"] .rf-logo-text strong, html[lang="hi"] .rf-logo-text strong,
html[lang="te"] .footer__logo, html[lang="hi"] .footer__logo { font-family: 'Fraunces', Georgia, serif; }

.rf-band .rf-sub { margin: 28px 0 44px; }
body.refined .gallery__filter.rf-filters { justify-content: flex-start; margin-bottom: 8px; }
.rf-radar > * { min-width: 0; }
.rf-radar__chart { margin: 0 auto; }
.rf-radar__chart canvas { max-width: 100%; height: auto !important; }
@media (max-width: 960px) { .rf-radar, .rf-flow { grid-template-columns: minmax(0, 1fr); } }
.rf-radar .rf-row { grid-template-columns: 40px minmax(0, 1fr); padding: 20px 0; }
.rf-radar .rf-row > p { grid-column: 2; }
body.refined .campus-info-default { text-align: left; }
body.refined .campus-map__info { padding: 24px; }

/* ============================================================
   CAMPUS LIFE: section nav, accordion pillars, timeline, map
   ============================================================ */
body.refined section[id] { scroll-margin-top: 140px; }
.rf-subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(251, 247, 238, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.rf-subnav .rf-wrap { display: flex; gap: 4px 32px; overflow-x: auto; scrollbar-width: none; }
.rf-subnav .rf-wrap::-webkit-scrollbar { display: none; }
.rf-subnav a { flex: none; padding: 16px 0; font-size: 0.92rem; font-weight: 500; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.rf-subnav a:hover { color: var(--green); }
.rf-subnav a[aria-current="true"] { color: var(--green); border-bottom-color: var(--accent); font-weight: 600; }

.rf-acc { border-top: 1px solid var(--ink); }
.rf-acc details { border-bottom: 1px solid var(--line); }
.rf-acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.6fr) 28px; gap: 6px clamp(16px, 3vw, 40px); align-items: baseline; padding: 24px 0; }
.rf-acc summary::-webkit-details-marker { display: none; }
.rf-acc summary::after { content: '+'; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--accent); justify-self: end; transition: transform .2s ease; }
.rf-acc details[open] summary::after { content: '\2212'; }
.rf-acc summary:hover h3 { color: var(--green); }
.rf-acc .rf-pillar__num { margin: 0; }
.rf-acc summary h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); transition: color .2s ease; }
.rf-acc summary p { color: var(--ink-2); font-size: 0.98rem; }
.rf-acc__body { padding: 0 0 30px; margin-left: calc(48px + clamp(16px, 3vw, 40px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px clamp(24px, 4vw, 56px); }
.rf-acc__body .rf-sub { font-size: 1.1rem; }

.rf-timeline { position: relative; }
.rf-tgroup { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 clamp(20px, 4vw, 56px); padding: 8px 0 20px; border-top: 1px solid var(--ink); }
.rf-tgroup + .rf-tgroup { margin-top: 12px; }
.rf-tgroup__label { font-size: 0.78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-top: 22px; }
.rf-tgroup ol { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 1px solid var(--line); }
.rf-tgroup .rf-slot { display: block; position: relative; padding: 18px 0; border: 0; }
.rf-tgroup .rf-slot::before { content: ''; position: absolute; left: -34px; top: 26px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--green); }
.rf-tgroup .rf-slot time { display: block; font-size: 1rem; margin-bottom: 2px; }

.rf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.rf-chip { font: 500 0.9rem var(--sans); color: var(--ink-2); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.rf-chip:hover { border-color: var(--green); color: var(--green); }
.rf-chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
body.refined .campus-area { transition: opacity .2s ease, transform .2s ease; }
body.refined .campus-area.is-active { outline: 2px solid var(--green); outline-offset: 2px; z-index: 5; }
body.refined .campus-area:focus-visible { outline: 2px solid var(--accent); }
body.refined .campus-map__canvas { height: 540px; }

@media (max-width: 900px) {
  .rf-acc summary { grid-template-columns: 40px minmax(0, 1fr) 28px; }
  .rf-acc summary p { grid-column: 2 / 3; }
  .rf-acc__body { margin-left: 0; grid-template-columns: minmax(0, 1fr); }
  .rf-tgroup { grid-template-columns: minmax(0, 1fr); }
  .rf-tgroup__label { padding: 18px 0 4px; }
}
@media (max-width: 640px) {
  .rf-subnav .rf-wrap { gap: 4px 22px; }
  /* map becomes a tappable zone list on phones */
  body.refined .campus-map__canvas { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  body.refined .campus-map__canvas > div:not(.campus-area) { display: none; }
  body.refined .campus-area { position: static !important; width: auto !important; height: auto !important; min-height: 54px; flex-direction: row !important; justify-content: flex-start !important; gap: 8px; text-align: left !important; padding: 8px 10px !important; }
  body.refined .campus-area span { font-size: 0.8rem !important; }
}
.rf-subnav { overflow: hidden; max-width: 100%; } .rf-subnav .rf-wrap { width: 100%; box-sizing: border-box; }
.rf-acc summary > * { min-width: 0; }
@media (max-width: 900px) {
  .rf-acc summary > div { grid-column: 2 / 3; }
  .rf-acc summary::after { grid-column: 3; grid-row: 1; }
}
.rf-flow ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 20px; counter-reset: fs; }
.rf-flow li { counter-increment: fs; border-top: 2px solid var(--green); padding-top: 10px; font-size: 0.93rem; line-height: 1.4; }
.rf-flow li::before { content: counter(fs); display: block; font-family: var(--serif); color: var(--accent); font-size: .9rem; margin-bottom: 2px; }
.rf-flow li:not(:last-child)::after { content: none; }
@media (max-width: 640px) { .rf-flow ol { grid-template-columns: 1fr 1fr; } }
