/* REACO Institute — riti.edu.gh
   One stylesheet for every page. Colours and type live in :root. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #0f3b2c;
  --forest-2: #164b39;
  --forest-3: #0a2c20;
  --brand: #0a7a55;
  --leaf: #4cc46f;
  --brass: #c49a45;
  --brass-2: #d4ad5c;
  --laterite: #a8432a;
  --ink: #1b211e;
  --muted: #56615a;
  --faint: #86918a;
  --line: #d3d9d4;
  --stone: #eef1ed;
  --white: #ffffff;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 96px;
  --section: clamp(4.5rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--brass); color: var(--forest); padding: 0.6rem 1rem; border-radius: 4px; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.6rem;
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.1;
  text-decoration: none; border-radius: 999px; border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn-brass { background: var(--brass); color: var(--forest-3); }
.btn-brass:hover { background: var(--brass-2); color: var(--forest-3); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--forest); }
.btn-forest { background: var(--forest); color: var(--white); }
.btn-forest:hover { background: var(--forest-2); color: var(--white); }
.btn-line { border-color: var(--forest); color: var(--forest); }
.btn-line:hover { background: var(--forest); color: var(--white); }

.text-link {
  font-family: var(--serif); font-size: 1.2rem; color: var(--forest);
  text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.text-link:hover { color: var(--brand); }

.kicker { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--laterite); margin: 0 0 1rem; letter-spacing: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--white);
  background: var(--forest);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-overlay:not(.is-solid) { background: transparent; }
.site-header.is-overlay:not(.is-solid) .bar { border-bottom-color: rgba(255,255,255,.55); }
.site-header.is-solid { box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.bar {
  max-width: 1440px; margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 2rem;
  border-bottom: 1px solid transparent;
}
.brand { display: inline-flex; align-items: center; gap: 0.8rem; color: var(--white); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--white); }
.brand-seal { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.brand-word { display: flex; flex-direction: column; line-height: 1; font-family: var(--serif); }
.brand-word .bw-1 { font-size: 1.32rem; letter-spacing: 0.02em; font-weight: 500; white-space: nowrap; }
.brand-word .bw-2 { font-size: 0.66rem; letter-spacing: 0.27em; text-transform: uppercase; margin-top: 0.4rem; padding-left: 0.05em; white-space: nowrap; }

.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: clamp(1rem, 2vw, 2.1rem); }
.nav a {
  font-family: var(--serif); font-size: 1.08rem; color: var(--white); text-decoration: none;
  padding: 0.4rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--white); }
.nav .ext svg { width: 0.7em; height: 0.7em; margin-left: 0.3em; vertical-align: 0.05em; opacity: .7; }
.site-header .enquire { flex-shrink: 0; }

.menu-btn {
  display: none; margin-left: auto;
  background: none; border: 1px solid rgba(255,255,255,.6); color: var(--white);
  font-family: var(--serif); font-size: 1.05rem; border-radius: 999px; padding: 0.45rem 1.1rem; cursor: pointer;
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--forest);
  color: var(--white); padding: 1.5rem var(--gutter) 2rem; overflow-y: auto;
  display: flex; flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu .mm-top { display: flex; align-items: center; justify-content: space-between; height: 56px; margin-bottom: 1.5rem; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid rgba(255,255,255,.18); }
.mobile-menu li a { display: block; padding: 0.9rem 0; font-family: var(--serif); font-size: 1.9rem; color: var(--white); text-decoration: none; }
.mobile-menu .btn { margin-top: 2rem; align-self: flex-start; }
.mobile-menu .mm-contact { margin-top: auto; padding-top: 2rem; font-size: 0.95rem; color: rgba(255,255,255,.8); }
.mobile-menu .mm-contact a { color: var(--white); }

@media (max-width: 1080px) {
  :root { --header-h: 76px; }
  .nav, .site-header .enquire { display: none; }
  .menu-btn { display: inline-block; }
  .brand-seal { width: 46px; height: 46px; }
  .brand-word .bw-1 { font-size: 1.12rem; }
  .brand-word .bw-2 { font-size: 0.56rem; letter-spacing: 0.22em; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, 100svh); max-height: 980px;
  display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,44,32,.72) 0%, rgba(10,44,32,.15) 22%, rgba(10,44,32,0) 40%),
    linear-gradient(20deg, rgba(10,44,32,.92) 0%, rgba(10,44,32,.55) 38%, rgba(10,44,32,.05) 70%);
}
.hero-inner { padding-bottom: clamp(3rem, 8vh, 6rem); padding-top: calc(var(--header-h) + 3rem); }
.hero-title { font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: 1.02; max-width: 12ch; margin-bottom: 1.4rem; letter-spacing: -0.02em; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40ch; color: rgba(255,255,255,.9); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-badge {
  position: absolute; right: var(--gutter); bottom: clamp(3rem, 8vh, 6rem);
  width: 260px; padding: 1.4rem 1.4rem 1.5rem;
  background: var(--forest-3); color: var(--white);
  border-top: 3px solid var(--brass);
}
.hero-badge .hb-top { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; margin-bottom: 0.5rem; color: var(--brass-2); }
.hero-badge .hb-main { font-size: 0.95rem; line-height: 1.45; margin: 0; color: rgba(255,255,255,.88); }
@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .hero-inner { width: 100%; padding-bottom: 1.75rem; }
  .hero-badge { position: static; width: auto; max-width: 360px; margin: 0 var(--gutter) 2.5rem; }
}

/* one orchestrated entrance, on the hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero-title, .hero-lead, .hero-actions, .hero-badge { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-lead { animation-delay: .12s; }
  .hero-actions { animation-delay: .22s; }
  .hero-badge { animation-delay: .4s; }
  .hero-img { animation: settle 2.4s ease-out both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.05); } to { transform: scale(1); } }

/* ---------- Intro ---------- */
.intro { padding-top: var(--section); padding-bottom: calc(var(--section) * .7); display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.intro-statement { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.22; margin: 0; letter-spacing: -0.01em; }
.intro-body p { color: var(--muted); max-width: 48ch; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* ---------- Quick links ---------- */
.quick { padding: calc(var(--section) * .5) 0 var(--section); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.ql-list { list-style: none; }
.ql-list a {
  display: inline-block;
  font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.18;
  color: var(--faint); text-decoration: none; letter-spacing: -0.015em;
  transition: color .25s ease;
}
.ql-list a:hover, .ql-list a:focus-visible, .ql-list a.is-active { color: var(--ink); }
.ql-art { position: relative; aspect-ratio: 1 / 1; max-height: 620px; }
.ql-letter {
  position: absolute; left: 0; top: 50%; transform: translateY(-54%);
  font-family: var(--serif); font-weight: 500; font-size: clamp(18rem, 36vw, 34rem); line-height: 1;
  color: var(--laterite); user-select: none;
}
.ql-photo {
  position: absolute; right: 0; bottom: 0; width: 64%; height: 82%; object-fit: cover;
  filter: grayscale(1) contrast(1.18) brightness(1.03);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
          mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  transition: opacity .35s ease;
}
.ql-photo.is-fading { opacity: 0; }
@media (max-width: 860px) {
  .quick-grid { grid-template-columns: 1fr; }
  .ql-art { display: none; }
}

/* ---------- Pathway (constellation) ---------- */
.pathway { background: var(--forest); color: var(--white); }
.pathway-grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 720px; }
.pathway-copy { padding: var(--section) clamp(1.5rem, 5vw, 5rem) var(--section) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); display: flex; flex-direction: column; }
.pathway-copy h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 1rem; }
.pathway-copy > p { color: rgba(255,255,255,.82); max-width: 46ch; }
.pathway-copy .text-link { color: var(--white); align-self: flex-start; margin-top: auto; }
.pathway-photo { position: relative; min-height: 420px; }
.pathway-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }

.constellation { position: relative; width: 100%; max-width: 520px; aspect-ratio: 520 / 330; margin: 2.2rem 0 2.8rem; }
.constellation ol { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.constellation svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constellation polyline { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.2; }
.node { position: absolute; left: var(--x); top: var(--y); list-style: none; }
.node::before {
  content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px;
  background: var(--brass); transform: translate(-50%, -50%) rotate(45deg);
}
.node-text { position: absolute; left: 12px; top: 0; transform: translateY(-50%); white-space: nowrap; background: var(--forest); padding: 0.15rem 0.55rem 0.25rem; }
.node-name { display: block; font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
.node-note { display: block; font-size: 0.86rem; color: rgba(255,255,255,.72); }
.node.flip .node-text { left: auto; right: 18px; text-align: right; }

@media (prefers-reduced-motion: no-preference) {
  .constellation polyline { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .constellation.is-seen polyline { transition: stroke-dashoffset 1.8s ease; stroke-dashoffset: 0; }
  .constellation .node { opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
  .constellation.is-seen .node { opacity: 1; transform: none; }
  .constellation.is-seen .node:nth-of-type(2) { transition-delay: .45s; }
  .constellation.is-seen .node:nth-of-type(3) { transition-delay: .9s; }
  .constellation.is-seen .node:nth-of-type(4) { transition-delay: 1.35s; }
}
@media (max-width: 960px) {
  .pathway-grid { grid-template-columns: 1fr; }
  .pathway-copy { padding: var(--section) var(--gutter); }
  .pathway-photo { min-height: 360px; order: -1; }
}

/* ---------- Section heads ---------- */
.section { padding: var(--section) 0; }
.section.stone { background: var(--stone); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); margin: 0; max-width: 18ch; }
.section-head p { color: var(--muted); max-width: 46ch; margin: 0; }

/* ---------- Course rows ---------- */
.rows { list-style: none; border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: minmax(200px, 1fr) 1.5fr minmax(180px, .8fr);
  gap: clamp(1rem, 3vw, 3rem); padding: 1.8rem 0; border-bottom: 1px solid var(--line);
}
.row h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); margin: 0; }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a:hover { color: var(--brand); text-decoration: underline; text-decoration-color: var(--brass); }
.row p { margin: 0; color: var(--muted); }
.row dl { margin: 0; font-size: 0.93rem; display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.8rem; align-content: start; }
.row dt { color: var(--faint); }
.row dd { margin: 0; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ---------- Places ---------- */
.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem); list-style: none; }
.places li { border-top: 3px solid var(--forest); padding-top: 1.1rem; }
.places h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.places p { color: var(--muted); font-size: 0.97rem; margin: 0; }
@media (max-width: 900px) { .places { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .places { grid-template-columns: 1fr; } }

/* ---------- News ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); list-style: none; }
.news article { display: flex; flex-direction: column; height: 100%; }
.news figure { margin: 0 0 1.1rem; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.news figure img { width: 100%; height: 100%; object-fit: cover; }
.news time { font-size: 0.9rem; color: var(--laterite); }
.news h3 { font-size: 1.5rem; margin: 0.3rem 0 0.6rem; }
.news h3 a { color: var(--ink); text-decoration: none; }
.news h3 a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.news p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 5vw, 5rem); }
.faq-wrap h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  padding: 1.3rem 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--laterite);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 11px; height: 11px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .answer { padding: 0 0 1.5rem; max-width: 62ch; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- Partners ---------- */
.partners { padding: calc(var(--section) * .6) 0; border-top: 1px solid var(--line); }
.partners h2 { font-size: 1.25rem; font-style: italic; color: var(--muted); margin-bottom: 2rem; text-align: center; }
.logos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.logos img { height: 64px; width: auto; filter: grayscale(1); opacity: .72; transition: filter .3s ease, opacity .3s ease; }
.logos li:hover img { filter: none; opacity: 1; }
.logos .wide img { height: 44px; }

/* ---------- CTA band ---------- */
.cta { padding: var(--section) 0; }
.cta-inner { display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: end; border-top: 1px solid var(--ink); padding-top: 2.5rem; }
.cta h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 0.6rem; max-width: 20ch; }
.cta p { color: var(--muted); margin: 0; max-width: 52ch; }
@media (max-width: 760px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Inner page header ---------- */
.page-top { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.crumbs { font-size: 0.92rem; margin-bottom: 1.2rem; color: var(--muted); }
.crumbs a { color: var(--laterite); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-top h1 { font-size: clamp(2.8rem, 6vw, 5rem); margin-bottom: 1.2rem; letter-spacing: -0.02em; }
.page-top .lead { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.4; max-width: 40ch; color: var(--ink); margin: 0; }
.page-band { height: clamp(260px, 42vw, 520px); overflow: hidden; }
.page-band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Prose + split blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 6rem); }
.split + .split { margin-top: var(--section); }
.split h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.prose { max-width: 64ch; }
.prose p, .prose li { color: #37403a; }
.prose h3 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--brand); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1rem; } }

.two-col-list { columns: 2; column-gap: 2.5rem; }
@media (max-width: 600px) { .two-col-list { columns: 1; } }

.facts { display: grid; grid-template-columns: auto 1fr; margin: 1.5rem 0 2rem; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); padding-right: 2rem; }

.levels { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); margin: 2rem 0; }
.levels li { background: var(--stone); padding: 1.6rem; border-top: 3px solid var(--brand); }
.levels h3 { font-size: 1.6rem; margin: 0 0 0.3rem; }
.levels .who { font-size: 0.92rem; color: var(--laterite); margin-bottom: 0.8rem; }
.levels p:last-child { margin: 0; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) { .levels { grid-template-columns: 1fr; } }

.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 1rem; }
.tracks h3 { font-size: 1.45rem; margin: 0 0 0.8rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.tracks ul { padding-left: 1.1rem; color: #37403a; }
.tracks li { margin-bottom: 0.35rem; }
.tracks li::marker { color: var(--brand); }
@media (max-width: 700px) { .tracks { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: step; border-top: 1px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--laterite); }
.steps h3 { font-size: 1.45rem; margin: 0 0 0.3rem; }
.steps p { margin: 0; color: var(--muted); }

.people { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.people figure { margin: 0 0 1rem; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.people img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.people h3 { font-size: 1.5rem; margin: 0 0 0.2rem; }
.people .role { color: var(--laterite); font-size: 0.95rem; margin-bottom: 0.7rem; }
.people p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; max-width: 380px; } }

.note {
  border-left: 3px solid var(--brass); background: var(--stone);
  padding: 1rem 1.2rem; font-size: 0.97rem; color: #37403a; margin: 1.5rem 0;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 0.93rem; margin-bottom: 0.35rem; color: var(--ink); font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.8rem 0.9rem; border: 1px solid #aeb8b1; border-radius: 4px; background: var(--white);
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.form .hp { display: none; }
.form .help { font-size: 0.88rem; color: var(--muted); margin: 0.3rem 0 0; }
.form button { justify-self: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.contact-list { list-style: none; border-top: 1px solid var(--ink); }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list h3 { font-size: 1.15rem; margin: 0 0 0.25rem; color: var(--laterite); font-style: italic; }
.contact-list p { margin: 0; }
.map { margin-top: 2rem; aspect-ratio: 4 / 3; border: 0; width: 100%; filter: grayscale(.35); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; color: rgba(255,255,255,.86); background-color: var(--forest);
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  font-size: 0.97rem;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(3.5rem, 7vw, 6rem) 0 3rem; }
.foot-brand .brand { margin-bottom: 1.6rem; }
.foot-brand .brand-seal { width: 88px; height: 88px; }
.foot-brand address { font-style: normal; line-height: 1.8; }
.foot-brand .lbl { color: var(--brass-2); }
.site-footer h2 { font-family: var(--sans); font-size: 0.98rem; font-weight: 600; color: var(--white); margin: 0 0 1.1rem; letter-spacing: 0.01em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.65rem; }
.socials { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; }
.socials a:hover { background: var(--brass); border-color: var(--brass); color: var(--forest-3); text-decoration: none; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.foot-base { border-top: 1px solid var(--laterite); padding: 1.4rem 0 1.8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.88rem; color: rgba(255,255,255,.7); }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.empty { border: 1px dashed #aeb8b1; padding: 2rem; text-align: left; }
.empty h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.empty p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.levels + .split { margin-top: clamp(3rem, 6vw, 5rem); }

/* ---------- Intro film (home page, first visit in a session) ---------- */
.film {
  position: fixed; inset: 0; z-index: 100; background: var(--forest-3); color: var(--white);
  overflow: hidden; transition: opacity .8s ease, visibility .8s;
}
.film[hidden] { display: none; }
.film.is-leaving { opacity: 0; visibility: hidden; }
body.film-on { overflow: hidden; }
body.film-on .hero-title, body.film-on .hero-lead, body.film-on .hero-actions,
body.film-on .hero-badge, body.film-on .hero-img { animation-play-state: paused; }
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,44,32,.55) 0%, rgba(10,44,32,0) 24%),
    linear-gradient(0deg, rgba(10,44,32,.8) 0%, rgba(10,44,32,.25) 30%, rgba(10,44,32,0) 55%);
}
.film-brand { position: absolute; top: 1.6rem; left: var(--gutter); }
.film-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.film-lines polyline { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.film-lines.is-drawing polyline { transition: stroke-dashoffset 1.3s ease; stroke-dashoffset: 0; }
.film-lines.is-out polyline { transition: opacity .35s ease; opacity: 0; }

.film-scene { position: absolute; inset: 0; pointer-events: none; }
.film-nodes { list-style: none; margin: 0; padding: 0; }
.f-node { position: absolute; left: var(--x); top: var(--y); opacity: 0; transition: opacity .45s ease; }
.f-node::before {
  content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px;
  background: var(--brass-2); transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 1px rgba(10,44,32,.25);
}
.f-node span {
  position: absolute; left: 18px; top: 0; transform: translateY(-50%); white-space: nowrap;
  font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  text-shadow: 0 1px 12px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.4);
}
.film-scene.is-on .f-node { opacity: 1; }
.film-scene.is-on .f-node:nth-child(2) { transition-delay: .35s; }
.film-scene.is-on .f-node:nth-child(3) { transition-delay: .7s; }
.film-scene.is-on .f-node:nth-child(4) { transition-delay: 1.05s; }

.film-cap {
  position: absolute; left: 50%; bottom: clamp(2.2rem, 7vh, 4.5rem); transform: translateX(-50%);
  margin: 0; width: min(92vw, 44rem); text-align: center; opacity: 0; transition: opacity .6s ease;
  text-shadow: 0 1px 16px rgba(0,0,0,.5);
}
.film-scene.is-on .film-cap { opacity: 1; transition-delay: .2s; }
.fc-big { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.05; }
.fc-small { display: block; font-family: var(--serif); font-size: clamp(1rem, 1.4vw, 1.2rem); margin-top: .35rem; color: rgba(255,255,255,.9); }

.film-skip {
  position: absolute; right: var(--gutter); bottom: clamp(2.2rem, 7vh, 4.5rem);
  font: 500 1rem/1 var(--serif); color: var(--white); background: rgba(10,44,32,.25);
  border: 1px solid rgba(255,255,255,.85); padding: .85rem 1.3rem; cursor: pointer;
}
.film-skip:hover { background: var(--white); color: var(--forest); }
.film-skip:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; }

@media (max-width: 760px) {
  .f-node { left: var(--mx); top: var(--my); }
  .film-cap { bottom: 6.5rem; }
  .film-skip { right: 50%; transform: translateX(50%); bottom: 1.6rem; }
}

/* ---------- Drop-down menus (desktop) ---------- */
.nav li { position: relative; }
.nav .sub {
  position: absolute; top: 100%; left: -1.25rem; padding-top: 1.1rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav .sub ul {
  display: block; min-width: 16.5rem; margin: 0; padding: .6rem 0;
  background: var(--forest-3); border-top: 2px solid var(--brass);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.nav .sub a {
  display: block; padding: .55rem 1.25rem; border: 0; white-space: nowrap;
  font-size: .98rem; color: rgba(255,255,255,.86);
}
.nav .sub a:hover, .nav .sub a:focus-visible { color: var(--white); background: rgba(255,255,255,.06); }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .has-sub > a::after {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-left: .45em; vertical-align: .2em;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); opacity: .7;
}

/* Mobile menu: sub-links under each item */
.mobile-menu { overflow-y: auto; }
.mobile-menu .mm-sub { margin: -.35rem 0 .9rem; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.mobile-menu .mm-sub a { font-family: var(--sans); font-size: .92rem; color: rgba(255,255,255,.75); text-decoration: none; padding: .2rem 0; }
.mobile-menu .mm-sub a:hover { color: var(--white); }

/* ---------- Photo strip ("In the room") ---------- */
.gallery { padding: 0 0 var(--section); }
.gal-strip {
  list-style: none; margin: 0; padding: 0 var(--gutter) .75rem;
  display: flex; gap: clamp(.75rem, 1.5vw, 1.25rem); overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.gal-strip:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.gal-strip li { flex: 0 0 clamp(210px, 22vw, 300px); scroll-snap-align: start; }
.gal-strip img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.gal-strip { padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); scroll-padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); }

/* ---------- Join us ---------- */
.join { background: var(--stone); padding: var(--section) 0; }
.join-inner { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.join h2 { margin: 0 0 1rem; font-size: clamp(2.1rem, 4vw, 3.3rem); }
.join-inner > div p { color: var(--muted); max-width: 26rem; margin: 0; }
.join-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.join-list li { display: grid; grid-template-columns: 6.5rem 1fr; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.join-list .kicker { margin: 0; font-size: 1.1rem; }
.join-list a {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.2;
  color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
}
.join-list a:hover { color: var(--brand); }
@media (max-width: 800px) {
  .join-inner { grid-template-columns: 1fr; }
  .join-list li { grid-template-columns: 1fr; gap: .15rem; }
}

/* ---------- Inner page photo banners (Malvern-style) ---------- */
.page-hero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: clamp(360px, 62vh, 620px); display: flex; align-items: flex-end;
}
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: settle 1.6s ease-out both; }
.ph-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,44,32,.55) 0%, rgba(10,44,32,.1) 34%, rgba(10,44,32,.2) 55%, rgba(10,44,32,.85) 100%);
}
.ph-inner { padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero .crumbs { color: rgba(255,255,255,.8); }
.page-hero .crumbs a { color: var(--brass-2); }
.page-hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: 1.02; margin: 0; letter-spacing: -0.02em; max-width: 16ch;
  animation: rise .9s .15s cubic-bezier(.2,.7,.2,1) both; }
.page-intro { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-intro .lead {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.4; max-width: 38ch; margin: 0;
  padding-left: 1.25rem; border-left: 2px solid var(--brass);
}
@media (prefers-reduced-motion: reduce) { .ph-img, .page-hero h1 { animation: none; } }

/* ---------- Vision and mission band ---------- */
.vm-band { background: var(--forest); color: var(--white); padding: var(--section) 0; }
.vm-band .kicker { color: var(--brass-2); }
.vm-row { display: grid; grid-template-columns: 12rem 1fr; gap: 2rem; padding: 2rem 0; border-top: 1px solid rgba(255,255,255,.25); }
.vm-label { margin: .45rem 0 0; font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); }
.vm-stmt { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.25; max-width: 30ch; }
.vm-foot { border-top: 1px solid rgba(255,255,255,.25); padding-top: 2rem; }
.btn-note { font-family: var(--sans); font-size: .8em; opacity: .75; margin-left: .4em; }
@media (max-width: 700px) { .vm-row { grid-template-columns: 1fr; gap: .6rem; } }

/* ---------- Name lists (board, management) ---------- */
.names { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(1.5rem, 3vw, 2.5rem); }
.names-4 { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.names li { border-top: 1px solid var(--line); padding: 1.1rem 0 1.3rem; }
.names h3 { font-size: 1.28rem; margin: 0 0 .25rem; line-height: 1.2; }
.names p { margin: 0; color: var(--laterite); font-size: .92rem; }
@media (max-width: 1000px) { .names, .names-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .names, .names-4 { grid-template-columns: 1fr; } }

/* ---------- Level cards: CPD points ---------- */
.levels li > p:not(.who):not(.cpd) { color: var(--muted); font-size: .98rem; }
.levels p:last-child { color: inherit; }
.levels .cpd { margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.page-intro + .section { padding-top: clamp(2.5rem, 5vw, 4rem) !important; }

/* ---------- Enquire button stays visible on tablets and phones ---------- */
@media (max-width: 1080px) {
  .site-header .enquire { display: inline-flex; margin-left: auto; margin-right: .75rem; padding: .55rem 1rem; font-size: .95rem; }
}
@media (max-width: 520px) { .site-header .enquire { display: none; } }

/* ---------- At a glance (home) ---------- */
.glance { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.glance-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.glance-list li { padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1rem, 2vw, 1.75rem); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: .4rem; }
.glance-list li:first-child { border-left: 0; padding-left: 0; }
.g-num { font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.8rem); line-height: 1; color: var(--forest); font-variant-numeric: lining-nums tabular-nums; }
.g-num::after { content: ""; display: block; width: 2.2rem; height: 2px; background: var(--brass); margin-top: .9rem; }
.g-label { font-size: .98rem; color: var(--muted); max-width: 22ch; }
@media (max-width: 800px) {
  .glance-list { grid-template-columns: 1fr 1fr; }
  .glance-list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .glance-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- On this page (programmes) ---------- */
.on-page { padding-bottom: .5rem; }
.on-page .kicker { margin-bottom: .8rem; }
.on-page ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.on-page a {
  display: inline-block; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .95rem; color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s, color .2s;
}
.on-page a:hover, .on-page a:focus-visible { border-color: var(--forest); background: var(--forest); color: var(--white); }
.on-page + .section { padding-top: clamp(2.5rem, 5vw, 4rem) !important; }

/* ---------- Footer credit ---------- */
.credit a { color: var(--brass-2); text-decoration: none; border-bottom: 1px solid rgba(212,173,92,.45); }
.credit a:hover { color: var(--white); border-bottom-color: var(--white); }

/* ---------- Live classroom ---------- */
.class-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.class-card { background: var(--white); border-top: 3px solid var(--forest); box-shadow: 0 18px 50px rgba(15,59,44,.1); padding: clamp(1.5rem, 3vw, 2.5rem); }
.class-card h2, .class-side h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .4rem; }
.class-card .muted { color: var(--muted); margin-bottom: 1.5rem; }
.form .help { font-size: .85rem; color: var(--muted); margin: .35rem 0 0; }
.form .check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.form .check input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--forest); }
.form .check label { font-weight: 400; margin: 0; color: var(--muted); font-size: .95rem; }
.form-error { margin: 0; padding: .75rem 1rem; background: #fbeee9; color: #7a2e1c; border-left: 3px solid var(--laterite); font-size: .95rem; }
.class-left { background: var(--stone); border-left: 3px solid var(--brass); padding: .9rem 1.1rem; margin: 0 0 1.5rem; }
.class-steps { list-style: none; counter-reset: s; margin: 1rem 0 2rem; padding: 0; }
.class-steps li { counter-increment: s; position: relative; padding: .9rem 0 .9rem 3rem; border-top: 1px solid var(--line); color: var(--muted); }
.class-steps li::before { content: counter(s); position: absolute; left: 0; top: .55rem; font-family: var(--serif); font-size: 1.9rem; color: var(--laterite); line-height: 1; }
.class-steps strong { color: var(--ink); font-weight: 600; }
.class-side h3 { font-size: 1.3rem; margin: 0 0 .6rem; }
.class-tips { margin: 0 0 1.5rem; padding-left: 1.1rem; color: var(--muted); }
.class-tips li { margin-bottom: .35rem; }
@media (max-width: 900px) { .class-grid { grid-template-columns: 1fr; } }

/* ---------- RITI course catalogue ---------- */
.places.places-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .places.places-3 { grid-template-columns: 1fr; } }
.vm-values { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.vm-values li { font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem); padding: .45rem 1rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.cat h3 { font-size: 1.4rem; line-height: 1.2; padding-bottom: .8rem; border-bottom: 1px solid var(--ink); margin: 0; min-height: 3.2em; display: flex; align-items: flex-end; }
.course-list { list-style: none; margin: 0; padding: 0; }
.course-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.course-list em { font-style: normal; color: var(--laterite); font-size: .9rem; white-space: nowrap; }
.cert-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.cert-list li { font-family: var(--serif); font-size: 1.25rem; padding: .8rem 0 .8rem 1.4rem; border-top: 1px solid var(--line); position: relative; }
.cert-list li::before { content: ""; position: absolute; left: 0; top: 1.3rem; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }
.pro-list dd { color: var(--laterite); white-space: nowrap; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: 1fr; } .cat h3 { min-height: 0; } }
.pro-list { display: grid; grid-template-columns: 1fr auto; margin: 1rem 0 1.5rem; border-top: 1px solid var(--ink); }
.pro-list dt, .pro-list dd { margin: 0; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.pro-list dt { font-family: var(--serif); font-size: 1.15rem; padding-right: 1rem; }
.pro-list dd { font-size: .95rem; text-align: right; }
/* posters show whole, never cropped */
.news figure.poster { background: var(--stone); }
.news figure.poster img { object-fit: contain; }

/* ================= Attractiveness pass ================= */

/* Hero slideshow: slides fade over the first photo with a slow drift */
.hero-alt { opacity: 0; transition: opacity 1.8s ease; animation: none; }
.hero-alt.is-on { opacity: 1; animation: drift 9s ease-out both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Course cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem); }
.card { position: relative; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); margin-bottom: 1.1rem; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img img { transform: scale(1.06); }
.card-kicker { margin: 0 0 .3rem; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--laterite); }
.card h3 { font-size: 1.55rem; margin: 0 0 .5rem; line-height: 1.15; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.card p { color: var(--muted); margin: 0 0 1rem; }
.card-more { margin-top: auto; font-family: var(--serif); font-size: 1.05rem; color: var(--forest); display: inline-flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--brass); align-self: flex-start; padding-bottom: .15rem; }
.card-more::after { content: "\2192"; transition: transform .3s ease; }
.card:hover .card-more::after { transform: translateX(4px); }
.card:focus-within { outline: 2px solid var(--brand); outline-offset: 6px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Live classroom band */
.live-band { background: var(--forest); color: var(--white); padding: var(--section) 0; overflow: hidden; }
.live-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.live-band .kicker { color: var(--brass-2); }
.live-band h2 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); line-height: 1.05; margin: 0 0 1.2rem; }
.live-text > p:not(.kicker):not(.live-actions) { color: rgba(255,255,255,.86); max-width: 36rem; }
.live-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: var(--white); color: var(--forest); }
.live-media { position: relative; }
.live-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.live-media::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid rgba(212,173,92,.55); z-index: 0; pointer-events: none; }
.live-media img { position: relative; z-index: 1; }
.live-pill { position: absolute; z-index: 2; left: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(10,44,32,.85); color: var(--white); font-size: .85rem; font-weight: 600; letter-spacing: .06em; padding: .45rem .85rem; border-radius: 999px; }
.live-pill i { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229,72,77,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.6); } 70% { box-shadow: 0 0 0 10px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
@media (max-width: 900px) { .live-inner { grid-template-columns: 1fr; } .live-media { order: -1; } }

/* Partner logos glide past */
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .logos { flex: 0 0 auto; flex-wrap: nowrap; padding-right: clamp(1.5rem, 4vw, 3.5rem); animation: glide 38s linear infinite; }
.marquee:hover .logos { animation-play-state: paused; }
@keyframes glide { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.75rem); z-index: 60;
  display: inline-flex; align-items: center; gap: .55rem; padding: .8rem; border-radius: 999px;
  background: #1fa855; color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .25s ease, padding .25s ease;
}
.wa-float svg { width: 28px; height: 28px; flex-shrink: 0; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; transition: max-width .3s ease; }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-2px); padding-right: 1.1rem; }
.wa-float:hover span, .wa-float:focus-visible span { max-width: 9rem; }
body.film-on .wa-float { display: none; }
@media print { .wa-float { display: none; } }

/* Gentle reveal as sections scroll in (only when JS is running) */
.rv-ready .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.rv-ready .rv.rv-on { opacity: 1; transform: none; }

/* Buttons feel alive */
.btn { transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,59,44,.18); }

@media (prefers-reduced-motion: reduce) {
  .hero-alt.is-on, .marquee .logos, .live-pill i { animation: none; }
  .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee .logos[aria-hidden="true"] { display: none; }
  .marquee .logos { flex-wrap: wrap; justify-content: center; }
  .rv-ready .rv { opacity: 1; transform: none; transition: none; }
  .card-img img, .btn { transition: none; }
}
@media (min-width: 901px) { .hero-badge { bottom: clamp(5.5rem, 10vh, 7rem); } }

/* ================= Attractiveness pass 2 ================= */

/* Glassy header once you scroll */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-solid { background: rgba(15,59,44,.86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
}

/* Why RITI */
.why { background: var(--stone); padding: var(--section) 0; }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why-grid li { background: var(--white); padding: clamp(1.6rem, 3vw, 2.4rem); transition: background .3s ease; }
.why-grid li:hover { background: #fbfaf6; }
.why-grid .ic { width: 46px; height: 46px; color: var(--forest); padding: 10px; border-radius: 50%; background: rgba(196,154,69,.16); margin-bottom: 1.1rem; box-sizing: content-box; }
.why-grid h3 { font-size: 1.4rem; margin: 0 0 .45rem; }
.why-grid p { margin: 0; color: var(--muted); }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* Course category icons */
.cat-ic { width: 40px; height: 40px; color: var(--laterite); margin-bottom: .6rem; display: block; }

/* Photo-backed call to action */
.cta-band { position: relative; isolation: isolate; color: var(--white); padding: clamp(4.5rem, 10vw, 8rem) 0; overflow: hidden; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,44,32,.94) 0%, rgba(10,44,32,.82) 45%, rgba(10,44,32,.35) 100%); }
.cta-band h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.04; margin: 0 0 1rem; max-width: 14ch; }
.cta-band-inner > p { max-width: 36rem; color: rgba(255,255,255,.88); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Gallery photo viewer */
.gal-strip img { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; background: rgba(8,24,18,.94); padding: 4.5rem 4.5rem 3.5rem; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb button { position: absolute; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.5); border-radius: 999px; width: 48px; height: 48px; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.lb button:hover, .lb button:focus-visible { background: var(--white); color: var(--forest); outline: none; }
.lb .lb-close { top: 1.1rem; right: 1.1rem; }
.lb .lb-prev { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 1.1rem; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: .9rem; margin: 0; }
@media (max-width: 600px) { .lb { padding: 4rem .75rem 3.5rem; } .lb .lb-prev, .lb .lb-next { top: auto; bottom: .8rem; transform: none; } }
body.lb-open { overflow: hidden; }
.page-hero { overflow: hidden; } /* keeps the zoom-in photo from widening the page */
