/* ===== Fonts (self-hosted Open Sans, SIL Open Font License - see assets/fonts/OFL-open-sans.txt) ===== */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/open-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/open-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/open-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/open-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 300; font-display: swap; src: url('../fonts/open-sans-latin-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/open-sans-latin-400-italic.woff2') format('woff2'); }
/* Headings: self-hosted Playfair Display, SIL Open Font License - see assets/fonts/OFL-playfair-display.txt */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/playfair-display-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/playfair-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/playfair-display-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 700; font-display: swap; src: url('../fonts/playfair-display-latin-700-italic.woff2') format('woff2'); }

/* ===== Base ===== */
:root {
  --ink: #24161a;          /* near-black wine, for headings */
  --maroon: #6b1f2e;
  --maroon-deep: #4a1320;
  --champagne: #e9d3ae;    /* highlight on maroon */
  --ivory: #fdf9f4;        /* cream page background */
  --sand: #f6ece3;
  --rose: #b8606e;         /* gradient partner for maroon */
  --blush: #f8e9e4;
  --grad-brand: linear-gradient(135deg, #6b1f2e 0%, #96344a 55%, #b8606e 100%);
  --grad-soft: linear-gradient(135deg, #fdf9f4 0%, #f9ece7 55%, #f5e7d6 100%);
  --grad-blush: linear-gradient(160deg, #fbf3ef 0%, #f6e3de 60%, #f3e2cf 100%);
  --grad-gold: linear-gradient(135deg, #f1dfc0 0%, #dcb987 100%);
  --text: #5e4a4d;
  --muted: #9a8587;
  --line: #e6d8c8;
  --white: #ffffff;
  --font-head: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;   /* headings */
  --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;            /* nothing can widen the page on phones */
  touch-action: manipulation;  /* no accidental double-tap zoom (pinch-zoom still works) */
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); line-height: 1.15; }
h4 { font-family: var(--font-head); font-weight: 500; color: var(--ink); line-height: 1.3; }
h2 { font-size: clamp(30px, 3.6vw, 50px); letter-spacing: -.3px; }
h2 em, h1 em { font-style: italic; font-weight: 700; padding-right: .06em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
h3 { font-size: 24px; }
h4 { font-size: 18px; margin-bottom: 10px; }
p { margin-bottom: 18px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--grad-brand); }

/* ===== Buttons & links ===== */
.btn {
  display: inline-block;
  padding: 17px 38px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 0;
  border-radius: 6px;
  background: var(--grad-brand);
  background-size: 160% 100%;
  background-position: 0 0;
  color: var(--white);
  box-shadow: 0 10px 24px -12px rgba(107, 31, 46, .7);
  transition: background-position .6s var(--ease), box-shadow .4s, transform .4s var(--ease), color .3s;
}
.btn:hover { background-position: 100% 0; box-shadow: 0 14px 28px -12px rgba(107, 31, 46, .75); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--maroon); box-shadow: 0 10px 24px -14px rgba(36, 14, 20, .35); }
.btn-light:hover { background: var(--white); color: var(--maroon-deep); }
.btn-glass { background: rgba(255, 255, 255, .7); color: var(--maroon); box-shadow: inset 0 0 0 1px rgba(107, 31, 46, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-glass:hover { background: var(--white); color: var(--maroon-deep); }
/* On the dark hero photo: clear button with a white outline */
.hx .btn-glass { background: rgba(255, 255, 255, .08); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.hx .btn-glass:hover { background: var(--white); color: var(--maroon); }

.link-line {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--maroon);
}
.link-line::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.link-line:hover::after, a:hover > .link-line::after { transform: scaleX(.35); }
.link-line.light { color: var(--white); }
.link-arrow svg { width: 15px; height: 15px; margin-left: 6px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ===== Header: floating glass bar ===== */
.site-header {
  position: fixed;
  top: 20px;
  left: max(28px, calc((100vw - 1400px) / 2));
  right: max(28px, calc((100vw - 1400px) / 2));
  z-index: 100;
  border-radius: 12px;
  background: rgba(250, 245, 238, .82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 40px -14px rgba(36, 14, 20, .28);
  transition: top .5s var(--ease), background .4s, box-shadow .4s;
}
.site-header.scrolled { top: 12px; background: rgba(250, 245, 238, .94); box-shadow: 0 14px 40px -16px rgba(36, 14, 20, .32); }
.site-header .header-inner { display: flex; align-items: center; justify-content: space-between; max-width: none; height: 62px; padding: 0 10px 0 24px; }
body:not(.has-hero) { padding-top: 110px; }   /* pages without a hero start below the bar */

.brand { display: flex; flex-direction: column; line-height: 1; color: var(--maroon); }
.brand-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: .2px; }
.brand-sub { margin-top: 5px; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
/* Header logo: image + small divider + subtitle */
.brand-logo { flex-direction: row; align-items: center; gap: 12px; }
.brand-logo img { width: auto; height: 54px; }
.brand-logo .brand-sub { margin: 0; padding-left: 12px; border-left: 1px solid rgba(107, 31, 46, .2); font-size: 9px; font-weight: 600; line-height: 1.6; letter-spacing: 2.4px; color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .3s;
}
.main-nav > a:not(.nav-cta), .nav-dropdown > a { display: block; padding: 8px 0; line-height: 1.4; }
.main-nav > a:not(.nav-cta):hover, .nav-dropdown > a:hover { color: var(--maroon); }
.nav-cta {
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--grad-brand);
  color: var(--white) !important;
  box-shadow: 0 8px 20px -10px rgba(107, 31, 46, .7);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.nav-cta-icon { width: 15px; height: 15px; margin-left: 4px; vertical-align: -3px; fill: var(--champagne); stroke: none; }
.nav-contact-m, .nav-actions { display: none !important; }   /* mobile-menu "Contact" row; shown only in the sidebar */
.nav-ic, .nav-sub-ic { display: none; }   /* menu icons are mobile-only */
.nav-cta:hover { box-shadow: 0 12px 24px -10px rgba(107, 31, 46, .8); transform: translateY(-1px); }

.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown > a::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .3s; }   /* small ▾ arrow */
.nav-dropdown:hover > a::after { transform: rotate(-135deg) translate(-2px, -2px); }
/* Desktop: the dropdown hangs straight off the bottom edge of the header bar */
@media (min-width: 1081px) {
  .main-nav, .nav-dropdown { align-self: stretch; }
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 230px;
  padding: 0;
  overflow: hidden;
  border-top: 3px solid var(--maroon);
  border-radius: 0 0 12px 12px;
  background: var(--white);
  box-shadow: 0 24px 50px -14px rgba(36, 14, 20, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .3s var(--ease);
}
.dropdown-menu a { position: relative; display: block; padding: 14px 22px; border-bottom: 1px solid var(--line); line-height: 1.3; color: var(--ink) !important; transition: background .25s, color .25s, padding .25s; }
.dropdown-menu a:last-child { border-bottom: 0; }
.dropdown-menu a::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad-brand); transform: scaleY(0); transition: transform .25s; }
.dropdown-menu a:hover, .dropdown-menu a.active { padding-left: 28px; background: var(--blush); color: var(--maroon) !important; }
.dropdown-menu a:hover::before, .dropdown-menu a.active::before { transform: none; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }

/* Hamburger button (mobile/tablet): three lines that turn into an X when open */
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; border: 0; border-radius: 10px; background: var(--grad-brand); box-shadow: 0 8px 18px -10px rgba(107, 31, 46, .7); cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .4s var(--ease), top .4s var(--ease), opacity .25s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ===== Hero carousel ===== */
.hx {
  --hx-delay: 5000ms;
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background: var(--maroon-deep);
  color: var(--white);
}
.hx-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.hx-slide.active { opacity: 1; z-index: 1; }
.hx-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  transition: transform 1.4s ease;
}
.hx-slide.active .hx-photo { transform: scale(1); transition: transform calc(var(--hx-delay) + 1.4s) linear; }
.hx-slides::after {          /* dark wine shade so the white text reads on any photo */
  content: '';
  position: absolute; inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(36, 10, 18, .82) 0%, rgba(54, 14, 26, .6) 45%, rgba(36, 10, 18, .2) 100%),
    linear-gradient(0deg, rgba(36, 10, 18, .65) 0%, rgba(36, 10, 18, 0) 35%);
}

.hx-inner {
  position: relative;
  z-index: 4;
  pointer-events: none;    /* clicks fall through to the arrow strips; links/buttons opt back in below */
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 124px;      /* clears the floating header */
  padding-bottom: 44px;
}
.hx-captions { display: grid; margin: auto 0; }
.hx-caption { grid-area: 1 / 1; max-width: 820px; pointer-events: none; }
.hx-caption.active a, .hx-caption.active button { pointer-events: auto; }

.hx-eyebrow {
  display: block;
  margin-bottom: 26px;
  font-size: 12px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase;
  color: var(--champagne);
}
.hx-title { margin-bottom: 22px; font-size: clamp(40px, 5.4vw, 80px); font-weight: 700; line-height: 1.1; letter-spacing: -.5px; color: var(--white); text-shadow: 0 2px 24px rgba(20, 6, 10, .35); }
.hx-title em { background: none; color: var(--champagne); }
.hx-title .ln { display: block; overflow: hidden; padding-bottom: .07em; }
.hx-title .ln > span { display: block; }
.hx p { margin-bottom: 38px; font-family: var(--font-head); font-size: clamp(17px, 1.4vw, 21px); font-weight: 400; line-height: 1.4; color: rgba(255, 255, 255, .88); }
.hx-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hx-actions .btn { min-width: 250px; padding: 19px 30px; text-align: center; }

/* Caption entrance / exit */
.hx-caption .hx-eyebrow, .hx-caption p, .hx-caption .hx-actions { opacity: 0; transform: translateY(20px); transition: opacity .3s ease, transform .3s ease; }
.hx-caption .hx-title .ln > span { transform: translateY(105%); transition: transform .35s ease-in; }
.hx-caption.active .hx-eyebrow, .hx-caption.active p, .hx-caption.active .hx-actions { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hx-caption.active .hx-title .ln > span { transform: none; transition: transform .7s var(--ease); }
.hx-caption.active .hx-eyebrow { transition-delay: .1s; }
.hx-caption.active .hx-title .ln:nth-child(1) > span { transition-delay: .15s; }
.hx-caption.active .hx-title .ln:nth-child(2) > span { transition-delay: .22s; }
.hx-caption.active p { transition-delay: .3s; }
.hx-caption.active .hx-actions { transition-delay: .38s; }

/* Controls: arrows on the left and right edges, line indicators at the bottom centre
   (the active line fills with the slide timer) */
/* Each arrow is an invisible full-height strip (15% of the slide, like Bootstrap's carousel
   controls): clicking anywhere in the left strip goes back, the right strip goes forward.
   The round button is drawn by ::before, with the chevron on top of it. */
.hx-arrow {
  position: absolute; top: 0; bottom: 0; z-index: 3;
  width: 15%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hx-prev { left: 0; }
.hx-next { right: 0; }
.hx-arrow::before {
  content: '';
  position: absolute; top: 50%;
  width: 52px; height: 52px; margin-top: -26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .4s var(--ease);
}
.hx-arrow::before { left: 50%; margin-left: -26px; }   /* round button centred in its strip */
.hx-arrow svg { position: absolute; top: 50%; z-index: 1; width: 22px; height: 22px; margin-top: -11px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hx-arrow svg { left: 50%; margin-left: -11px; }
/* Desktop: keep the slide text clear of the arrow strips (15% of the screen on each side) */
@media (min-width: 821px) {
  .hx-inner { padding-left: max(32px, calc(15vw - max(0px, (100vw - 1280px) / 2) + 24px)); padding-right: max(32px, calc(15vw - max(0px, (100vw - 1280px) / 2) + 24px)); }
}
.hx-arrow:hover::before { background: var(--grad-brand); }
.hx-progress {
  position: absolute; left: 50%; bottom: 36px; z-index: 4;
  display: flex; gap: 10px;
  transform: translateX(-50%);
}
.hx-bar {
  position: relative;
  width: 44px; height: 3px;
  padding: 0;
  overflow: hidden;
  border: 0; border-radius: 3px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
}
.hx-bar::before { content: ''; position: absolute; inset: -10px 0; }   /* bigger click area */
.hx-bar:hover { background: rgba(255, 255, 255, .6); }
.hx-bar-fill { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.hx-bar.active .hx-bar-fill { animation: hx-fill var(--hx-delay) linear forwards; }
@keyframes hx-fill { to { transform: scaleX(1); } }

/* ===== Sections ===== */
.section { padding: 45px 0; scroll-margin-top: 90px; }

.section-head, .schools-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 24px;
}
.section-head h2, .schools-head h2 { margin: 0; }
.section-head > p, .schools-head > p { max-width: 380px; margin: 0; }

.lead { font-family: var(--font-head); font-size: 19px; font-weight: 300; line-height: 1.7; color: var(--ink); }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js h2.reveal { transition-delay: .1s; }

/* ===== Marquee ===== */
.marquee { overflow: hidden; padding: 28px 0; background: linear-gradient(90deg, #4a1320 0%, #6b1f2e 50%, #4a1320 100%); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 50s linear infinite; }
.marquee-track > * { margin-right: 44px; }
.marquee span { font-family: var(--font-head); font-size: clamp(17px, 1.7vw, 24px); font-weight: 300; line-height: 1; letter-spacing: .18em; text-transform: uppercase; color: var(--champagne); white-space: nowrap; }
.marquee i { font-style: normal; font-size: 14px; color: var(--rose); opacity: .9; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== About: moodboard ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.moodboard { position: relative; width: 100%; max-width: 480px; height: 440px; margin: 0 auto; }
.mb {
  position: absolute;
  margin: 0;
  padding: 5px;   /* thin white photo frame */
  background: var(--white);
  box-shadow: 0 30px 60px -24px rgba(36, 14, 20, .35);
  transition: transform .9s var(--ease);
}
.mb img { width: 100%; height: 100%; object-fit: cover; }
.mb::before {                /* strip of masking tape */
  content: '';
  position: absolute;
  top: -14px; left: 50%;
  width: 96px; height: 28px;
  background: rgba(233, 211, 174, .8);
  transform: translateX(-50%) rotate(-4deg);
}
.mb-1 { left: 0; top: 40px; width: 58%; height: 320px; transform: rotate(-3deg); }
.mb-2 { right: 0; top: 0; width: 44%; height: 225px; transform: rotate(4deg); }
.mb-3 { right: 7%; bottom: 10px; width: 50%; height: 200px; transform: rotate(-1.5deg); z-index: 2; }
.moodboard:hover .mb-1 { transform: rotate(-5deg) translate(-12px, -6px); }
.moodboard:hover .mb-2 { transform: rotate(7deg) translate(12px, -10px); }
.moodboard:hover .mb-3 { transform: rotate(1deg) translateY(12px); }

.swatches { position: absolute; left: 3%; bottom: 40px; z-index: 3; display: flex; }
.swatches span {
  width: 42px; height: 42px;
  margin-left: -12px;
  border-radius: 50%;
  border: 3px solid var(--ivory);
  background: var(--c);
  box-shadow: 0 8px 18px -6px rgba(36, 14, 20, .35);
  transition: margin .6s var(--ease);
}
.swatches span:first-child { margin-left: 0; }
.moodboard:hover .swatches span { margin-left: 6px; }
.mb-note { position: absolute; left: 3%; bottom: 0; font-family: var(--font-head); font-size: 13px; font-style: italic; color: var(--maroon); }
.mb-badge {
  position: absolute;
  top: -10px; left: 47%;
  z-index: 3;
  width: 100px; height: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--champagne);
  transform: rotate(-12deg);
}
.mb-badge::after { content: ''; position: absolute; inset: 7px; border: 1px dashed rgba(233, 211, 174, .6); border-radius: 50%; }  /* stitching */
.mb-badge span { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; }
.mb-badge strong { font-family: var(--font-display); font-size: 23px; font-weight: 700; line-height: 1; }

.about-text h2 { margin-bottom: 24px; }
.dropcap { float: left; margin: 8px 14px 0 0; font-family: var(--font-display); font-size: 60px; font-weight: 700; line-height: .8; letter-spacing: 1px; color: var(--maroon); }   /* large "NIF" at the start of the about text */

.measure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 44px 0 46px;
  padding-top: 30px;
  border-top: 1px solid rgba(107, 31, 46, .5);
  background-image:
    repeating-linear-gradient(90deg, rgba(107, 31, 46, .35) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(107, 31, 46, .6) 0 1px, transparent 1px 50px);
  background-size: 100% 8px, 100% 16px;
  background-repeat: no-repeat;
}
.measure strong { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; color: var(--maroon); }
.measure sup { font-family: var(--font-head); font-size: 18px; color: var(--maroon); }
.measure span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

/* ===== Programmes: expanding school panels ===== */
.schools { padding-top: 45px; background: var(--grad-soft); scroll-margin-top: 90px; }
.schools-panels { display: flex; height: 78vh; min-height: 540px; max-height: 820px; }
.school { position: relative; flex: 1; overflow: hidden; color: var(--white); transition: flex 1s var(--ease); }
.schools-panels:hover .school { flex: .65; }
.schools-panels .school:hover { flex: 1.35; }
.school img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.school:hover img { transform: scale(1); }
.school::before, .school::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.school::before { background: linear-gradient(0deg, rgba(74, 19, 32, .86) 0%, rgba(150, 52, 74, .32) 55%, rgba(184, 96, 110, .05) 100%); }
.school::after { background: var(--maroon); opacity: 0; mix-blend-mode: multiply; transition: opacity .8s var(--ease); }
.school:hover::after { opacity: .55; }

.school-vertical {
  position: absolute; top: 44px; right: 40px; z-index: 2;
  writing-mode: vertical-rl;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--champagne);
}
.school-content { position: absolute; left: 56px; right: 56px; bottom: 56px; z-index: 2; }
.school-no { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--champagne); }
.school h3 { margin-top: 14px; font-size: clamp(34px, 4vw, 60px); font-weight: 700; line-height: 1.1; color: var(--white); }
.school h3 em { font-style: italic; color: var(--champagne); }
.school-more { max-width: 520px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .9s var(--ease), opacity .6s .1s; }
.school:hover .school-more { max-height: 360px; opacity: 1; }
.school-more p { margin: 22px 0 18px; color: rgba(255, 255, 255, .85); }
.school-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.school-tags li { padding: 6px 14px; border-radius: 4px; background: rgba(233, 211, 174, .14); font-size: 12px; letter-spacing: 1px; color: var(--champagne); }
.school-meta { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.school-cta { display: inline-flex; align-items: center; gap: 16px; margin-top: 28px; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; }
.school-cta b {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  font-weight: 300;
  transition: background .5s, color .5s, border-color .5s, transform .6s var(--ease);
}
.school:hover .school-cta b { background: var(--champagne); border-color: var(--champagne); color: var(--maroon-deep); transform: rotate(-45deg); }

/* ===== Approach: tape-measure timeline on graph paper ===== */
.approach {
  background-color: var(--ivory);
  background-image:
    linear-gradient(rgba(107, 31, 46, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 31, 46, .05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.tape-ruler {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 64px;
  padding: 0 6px 8px;
  background-color: var(--champagne);
  background-image:
    repeating-linear-gradient(90deg, rgba(74, 19, 32, .5) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(74, 19, 32, .85) 0 1px, transparent 1px 50px),
    var(--grad-gold);
  background-size: 100% 14px, 100% 26px, 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 14px 30px -14px rgba(74, 19, 32, .45);
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--maroon-deep);
}
.tape-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.tape-steps li { position: relative; padding-top: 80px; }
.tape-steps li::before { content: ''; position: absolute; top: 0; left: 0; width: 1px; height: 56px; background: var(--maroon); }
.tape-steps li::after { content: ''; position: absolute; top: 52px; left: -5px; width: 11px; height: 11px; background: var(--maroon); transform: rotate(45deg); }
.tape-no { display: block; margin-bottom: 8px; font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: 1px; color: var(--maroon); }
.tape-steps h4 { font-size: 19px; font-weight: 500; }
.tape-steps p { margin: 0; font-size: 15px; }

.js .tape .tape-ruler { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease) .2s; }
.js .tape.in .tape-ruler { clip-path: inset(0); }
.js .tape .tape-steps li { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .tape.in .tape-steps li { opacity: 1; transform: none; }
.js .tape.in .tape-steps li:nth-child(1) { transition-delay: .5s; }
.js .tape.in .tape-steps li:nth-child(2) { transition-delay: .7s; }
.js .tape.in .tape-steps li:nth-child(3) { transition-delay: .9s; }
.js .tape.in .tape-steps li:nth-child(4) { transition-delay: 1.1s; }

/* ===== Gallery: automatic lookbook strip (moved by main.js, not by hand) ===== */
.lookbook { overflow: hidden; background: var(--grad-blush); color: var(--text); }
.lookbook-track {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  overflow-x: hidden;
  padding: 0 max(32px, calc((100vw - 1280px) / 2 + 32px)) 10px;
}
/* Visitors who turn off animations get a normal swipeable strip instead */
@media (prefers-reduced-motion: reduce) {
  .lookbook-track { overflow-x: auto; scrollbar-width: none; }
  .lookbook-track::-webkit-scrollbar { display: none; }
}
.lb { flex: 0 0 auto; margin: 0; }
.lb img { width: 100%; object-fit: cover; filter: saturate(.85); transition: filter .6s; }
.lb:hover img { filter: saturate(1.05); }
.lb-tall { width: 340px; }
.lb-tall img { height: 460px; }
.lb-wide { width: 520px; margin-top: 90px; }
.lb-wide img { height: 360px; }
.lb figcaption { display: flex; gap: 14px; margin-top: 16px; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; }
.lb figcaption b { font-weight: 500; color: var(--maroon); }
.lb-end {
  flex: 0 0 auto;
  width: 300px; height: 460px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 36px;
  border-radius: 4px;
  background: var(--grad-brand);
  color: var(--white);
  transition: background .5s;
}
.lb-end span { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.15; }
.lb-end em { color: var(--champagne); }
.lb-end b { align-self: flex-end; font-size: 24px; font-weight: 300; transition: transform .5s var(--ease); }
.lb-end:hover { box-shadow: 0 18px 36px -16px rgba(107, 31, 46, .6); }
.lb-end:hover b { transform: translateX(8px); }
.lookbook-progress { height: 1px; margin-top: 36px; background: rgba(107, 31, 46, .15); }
.lookbook-progress span { display: block; height: 100%; background: var(--grad-brand); transform: scaleX(.15); transform-origin: left; transition: transform .2s; }

/* ===== Journal: magazine spread ===== */
.mag { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: stretch; }
/* Feature image fills the height of the three journal cards beside it */
.mag-feature { position: relative; display: block; }
.mag-img { position: absolute; inset: 0; overflow: hidden; border-radius: 18px; }
.mag-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.mag-feature:hover .mag-img img { transform: scale(1.05); }
.mag-meta { display: block; margin-bottom: 12px; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--maroon); }
.mag-side { align-self: center; }
.mag-item { display: grid; grid-template-columns: 70px 1fr 96px; gap: 22px; align-items: center; padding: 20px 24px; margin-bottom: 18px; border: 1.5px dashed rgba(184, 96, 110, .45); border-radius: 18px; transition: border-color .4s, background .4s; }
.mag-item:last-child { margin-bottom: 0; }
.mag-item:hover { border-color: var(--maroon); background: rgba(184, 96, 110, .05); }
.mag-more { margin-left: 4px; font-size: 13px; font-weight: 600; letter-spacing: .5px; color: var(--maroon); white-space: nowrap; }
.mag-no { font-family: var(--font-head); font-size: 36px; font-weight: 300; line-height: 1; color: var(--rose); }
.mag-item h4 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.4; transition: color .4s; }
.mag-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; transition: border-radius .6s var(--ease), transform .6s var(--ease); }
.mag-item:hover h4 { color: var(--maroon); }
.mag-item:hover img { border-radius: 0; transform: rotate(-4deg); }

/* ===== Student voices ===== */
.voices { position: relative; overflow: hidden; text-align: center; background: var(--grad-soft); color: var(--text); }
.voices-inner { position: relative; max-width: 1000px; }
.section.voices { padding-top: 110px; }   /* room for the full quote mark above the eyebrow */
.voices-mark { position: absolute; top: -115px; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-size: 240px; line-height: 1; color: rgba(184, 96, 110, .12); pointer-events: none; }
.voices .eyebrow::after { content: ''; width: 36px; height: 1px; background: var(--grad-brand); }
.voices blockquote { position: relative; margin: 10px 0 32px; font-family: var(--font-display); font-size: clamp(21px, 2.4vw, 32px); font-weight: 400; font-style: italic; line-height: 1.5; color: var(--ink); }
.voices-person { display: inline-flex; align-items: center; gap: 16px; text-align: left; }
/* Profile photo: round, with a white ring and a thin maroon outer ring */
.voices-avatar { width: 72px; height: 72px; flex-shrink: 0; object-fit: cover; border-radius: 50%; background: var(--sand); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--rose), 0 12px 24px -12px rgba(107, 31, 46, .6); }
.voices-person strong { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.voices-person span:last-child { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }

/* ===== Footer ===== */
.site-footer { font-size: 15px; }
/* Two bands: light call-to-action on top, dark wine footer below */
.footer-cta { background: linear-gradient(180deg, #fbf1ec 0%, #f5e5dc 100%); color: var(--text); }
.footer-main { background: linear-gradient(180deg, #2a0a14 0%, #4a1226 35%, #6b1a34 70%, #8a2a48 100%); color: rgba(255, 255, 255, .88); }
/* Partner logo chips (logo only). Used in the footer band (every page) and the course pages */
.footer-partners { padding: 26px 0 30px; background: var(--white); border-top: 1px solid var(--line); }
.footer-partners .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; }
.footer-partners-label { font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; padding: 0; list-style: none; }
.partner-logos li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 150px; padding: 14px 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 14px 30px -24px rgba(36, 14, 20, .45); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.partner-logos li:hover { transform: translateY(-4px); border-color: var(--rose); box-shadow: 0 22px 40px -24px rgba(107, 31, 46, .5); }
.partner-logos img { width: auto; max-width: 180px; height: 68px; object-fit: contain; }
.partner-logos-sm li { min-width: 120px; padding: 10px 16px; box-shadow: none; }
.partner-logos-sm img { height: 50px; max-width: 150px; }
@media (max-width: 560px) { .partner-logos li { min-width: 0; flex: 1 1 40%; } .partner-logos img { height: 46px; } }
.footer-top {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  padding: 44px 0;
}
.footer-top h2 { font-size: clamp(24px, 2.4vw, 34px); color: var(--ink); }
.footer-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-ctas .btn { padding: 15px 26px; text-align: center; }
/* Same maroon button as "Apply for Admission", with an icon before the text */
.btn-icon { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* ===== Gallery page: filter tabs, masonry grid, full-screen viewer ===== */
.gal-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.gal-filters button { padding: 10px 22px; border: 1.5px dashed rgba(184, 96, 110, .45); border-radius: 30px; background: none; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--maroon); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.gal-filters button:hover { border-color: var(--maroon); }
.gal-filters button.active { border-style: solid; border-color: transparent; background: var(--grad-brand); color: var(--white); }
.gal-filters small { margin-left: 6px; padding: 2px 8px; border-radius: 10px; background: rgba(184, 96, 110, .14); font-size: 11px; letter-spacing: 0; }
.gal-filters button.active small { background: rgba(255, 255, 255, .22); }

/* Page banner (inner pages): photo with wine shade, breadcrumb, title */
.page-banner { position: relative; display: flex; align-items: flex-end; min-height: 520px; padding: 150px 0 70px; background-size: cover; background-position: center; color: var(--white); }
.page-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 10, 18, .55) 0%, rgba(74, 19, 32, .75) 60%, rgba(36, 10, 18, .92) 100%); }
.page-banner .container { position: relative; }
.page-banner .eyebrow { color: var(--champagne); }
.page-banner .eyebrow::before { background: var(--champagne); }
.page-banner h1 { max-width: 760px; margin: 0 0 18px; font-size: clamp(38px, 5vw, 68px); color: var(--white); }
.page-banner h1 em { background: none; color: var(--champagne); }
.page-banner p { max-width: 560px; margin: 0; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
/* Short banner variant (gallery): just breadcrumb + title, so the content starts quickly */
.page-banner-compact { min-height: 0; padding: 130px 0 40px; }
.page-banner-compact h1 { margin: 0; font-size: clamp(34px, 4vw, 52px); }
.page-banner-compact .crumbs { margin-bottom: 12px; }
.banner-kicker { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--champagne); }
.gal .gal-filters { margin-bottom: 26px; }
.crumbs { margin-bottom: 26px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.crumbs a { color: var(--white); }
.crumbs a:hover { color: var(--champagne); }
.crumbs span { margin: 0 10px; opacity: .6; }


/* Bento grid: big / wide / tall tiles fill gaps automatically (dense flow) */
.gal-grid { columns: 4 260px; column-gap: 18px; }   /* masonry: photos keep their own shape, nothing is cropped */
.gal-item { position: relative; display: block; margin: 0 0 18px; break-inside: avoid; overflow: hidden; border-radius: 16px; background: var(--sand); box-shadow: 0 18px 40px -24px rgba(36, 14, 20, .5); }
.gal-item[hidden] { display: none; }
.gal-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal-open img { display: block; width: 100%; height: auto; transition: transform 1.1s var(--ease); }
.gal-tag { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 20px; background: rgba(253, 249, 244, .92); font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--maroon); pointer-events: none; }
.gal-zoom { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--grad-brand); opacity: 0; transform: scale(.7); transition: opacity .4s, transform .4s var(--ease); pointer-events: none; }
.gal-zoom svg { width: 18px; height: 18px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; }
.gal-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 60px 20px 18px; background: linear-gradient(180deg, transparent 0%, rgba(36, 10, 18, .9) 100%); color: var(--white); pointer-events: none; opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .45s var(--ease); }
.gal-item figcaption b { font-family: var(--font-display); font-size: 14px; color: var(--champagne); }
.gal-item figcaption strong { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.25; }
.gal-big figcaption strong { font-size: 26px; }
.gal-item figcaption span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.gal-item:hover img { transform: scale(1.06); }
.gal-item:hover figcaption, .gal-item:hover .gal-zoom, .gal-open:focus-visible ~ figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gal-item figcaption { opacity: 1; transform: none; } }   /* touch screens: always show captions */

/* "Behind the work" cards */
.gal-behind { background: var(--grad-soft); }
.gal-behind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gal-behind-card { padding: 32px 28px; border: 1.5px dashed rgba(184, 96, 110, .45); border-radius: 18px; background: rgba(255, 255, 255, .6); transition: border-color .4s, transform .4s var(--ease); }
.gal-behind-card:hover { border-color: var(--maroon); transform: translateY(-4px); }
.gal-behind-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 50%; background: var(--grad-brand); }
.gal-behind-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--champagne); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gal-behind-card h4 { margin: 0 0 10px; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.gal-behind-card p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text); }

@media (max-width: 1080px) {
  .gal-grid { columns: 2 220px; }
  .gal-behind-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-banner:not(.page-banner-compact) { min-height: 440px; padding: 130px 0 50px; }
  .page-banner-compact { padding: 100px 0 28px; }
  .gal-grid { columns: 1; }
}

.gal-lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: rgba(36, 10, 18, .94); animation: bm-fade .3s ease; }
.gal-lightbox[hidden] { display: none; }
.gal-lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.gal-lightbox img { max-width: 100%; max-height: calc(100vh - 210px); border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.gal-lightbox figcaption { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 640px; margin: 18px auto 0; color: var(--white); }
.gal-lb-meta { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--champagne); }
.gal-lb-title { font-family: var(--font-display); font-size: 24px; }
.gal-lb-desc { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.gal-lb-count { margin-top: 4px; font-size: 12px; letter-spacing: 2px; color: rgba(255, 255, 255, .55); }
.gal-lightbox button { flex-shrink: 0; width: 50px; height: 50px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); cursor: pointer; transition: background .3s; }
.gal-lightbox button:hover { background: var(--grad-brand); }
.gal-lightbox button svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gal-lb-close { position: absolute; top: 20px; right: 20px; }
@media (max-width: 640px) {
  .gal-lightbox { padding: 70px 12px; }
  .gal-lb-prev, .gal-lb-next { position: absolute; bottom: 20px; }
  .gal-lb-prev { left: calc(50% - 60px); }
  .gal-lb-next { right: calc(50% - 60px); }
}

/* ===== Blogs page: featured post, filter tabs, card grid ===== */
.blog-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; margin-bottom: 0; padding: 18px; border: 1.5px dashed rgba(184, 96, 110, .45); border-radius: 18px; transition: border-color .4s, background .4s; }
.blog-featured:hover { border-color: var(--maroon); background: rgba(184, 96, 110, .04); }
.blog-featured-img { overflow: hidden; border-radius: 12px; }
.blog-featured-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.blog-featured:hover .blog-featured-img img { transform: scale(1.04); }
.blog-featured h3 { margin: 0 0 16px; font-size: clamp(26px, 2.6vw, 38px); }
.blog-featured p { margin: 0 0 26px; font-size: 16px; line-height: 1.7; color: var(--text); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; border: 1.5px dashed rgba(184, 96, 110, .45); border-radius: 18px; background: var(--white); transition: border-color .4s, transform .4s var(--ease), box-shadow .4s; }
.blog-card[hidden] { display: none; }
.blog-card:hover { border-color: var(--maroon); transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(36, 14, 20, .5); }
.blog-card-img { overflow: hidden; }
.blog-card-img img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform 1s var(--ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.blog-card h4 { margin: 0 0 10px; font-size: 18px; line-height: 1.4; transition: color .3s; }
.blog-card:hover h4 { color: var(--maroon); }
.blog-card p { margin: 0 0 16px; font-size: 14px; line-height: 1.65; color: var(--text); }
.blog-card .mag-more { margin: auto 0 0; }

.blog-featured-img, .blog-card-img { position: relative; }
.blog-badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 20px; background: rgba(253, 249, 244, .94); font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--maroon); }
.blog-featured .blog-badge { background: var(--grad-brand); color: var(--white); }
.blog-byline { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.blog-byline span:last-child { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.blog-byline b { font-size: 14px; color: var(--ink); }
.blog-avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--grad-brand); font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--champagne); }
.blog-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.blog-author { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.blog-author .blog-avatar { width: 28px; height: 28px; font-size: 13px; }
.blog-card .blog-card-foot .mag-more { margin: 0; }


.blog-topic-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 50%; background: var(--grad-brand); }
.blog-topic-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--champagne); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Articles + sidebar */
.blogs-main { background: var(--grad-soft); }
.blog-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.blog-layout .blog-grid { grid-template-columns: repeat(2, 1fr); }
.blog-sidebar { display: flex; flex-direction: column; gap: 22px; }
.side-card { padding: 26px 24px; border: 1.5px dashed rgba(184, 96, 110, .45); border-radius: 18px; background: var(--white); }
.side-card h5 { margin: 0 0 14px; font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.side-card p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text); }
.side-cats { margin: 0; padding: 0; list-style: none; }
.side-cats button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px dashed var(--line); background: none; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; transition: color .3s, padding .3s; }
.side-cats li:last-child button { border-bottom: 0; }
.side-cats button:hover, .side-cats button.active { padding-left: 6px; color: var(--maroon); }
.side-cats button span { min-width: 28px; padding: 2px 8px; border-radius: 10px; background: var(--blush); font-size: 12px; font-weight: 600; text-align: center; color: var(--maroon); }
.side-post { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.side-post:last-child { border-bottom: 0; padding-bottom: 0; }
.side-post img { width: 64px; height: 64px; flex-shrink: 0; object-fit: cover; border-radius: 10px; }
.side-post b { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); transition: color .3s; }
.side-post:hover b { color: var(--maroon); }
.side-post small { font-size: 12px; color: var(--muted); }
/* Sidebar: talk to a counsellor */
.side-counsel { text-align: center; }
.side-counsel .blog-topic-icon { margin: 0 auto 14px; }
.side-counsel p { margin-bottom: 20px; }
.side-counsel .btn { display: block; padding: 14px 20px; }
.side-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 12px 20px; border: 1.5px solid #25d366; border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #128c4a; transition: background .3s, color .3s; }
.side-wa:hover { background: #25d366; color: var(--white); }
.side-wa svg { width: 18px; height: 18px; fill: currentColor; }

/* Sidebar: tip of the week + "suggest a topic" inside the About card */
.blog-tip { position: relative; overflow: hidden; padding: 26px 24px; border-radius: 18px; background: var(--grad-brand); color: var(--white); }
.blog-tip-mark { position: absolute; top: -30px; right: 12px; font-family: var(--font-display); font-size: 150px; line-height: 1; color: rgba(255, 255, 255, .1); }
.blog-tip .eyebrow { margin-bottom: 12px; font-size: 10px; color: var(--champagne); }
.blog-tip .eyebrow::before { background: var(--champagne); }
.blog-tip p { position: relative; margin: 0 0 14px; font-family: var(--font-display); font-size: 17px; font-style: italic; line-height: 1.5; }
.blog-tip p em { color: var(--champagne); }
.blog-tip-by { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.side-ask { margin-top: 14px !important; padding-top: 14px; border-top: 1px dashed var(--line); font-weight: 600; color: var(--ink) !important; }
.side-ask + .btn { display: block; margin-top: 16px; padding: 13px 20px; text-align: center; }

@media (max-width: 1080px) {

  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-sidebar, .blog-layout .blog-grid { grid-template-columns: 1fr; }

}

/* Single post (blog-details.php) */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 150; height: 3px; pointer-events: none; }
.read-progress span { display: block; width: 100%; height: 100%; background: var(--grad-brand); transform: scaleX(0); transform-origin: 0 50%; }

.post-hero { min-height: 560px; padding: 160px 0 64px; }
.post-hero h1 { max-width: 880px; margin: 0 0 26px; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.12; }
.post-hero .crumbs { margin-bottom: 22px; }
.post-cat { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border: 1px solid rgba(233, 211, 174, .55); border-radius: 30px; font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--champagne); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 13px; letter-spacing: .4px; color: rgba(255, 255, 255, .8); }
.post-meta-author { display: inline-flex; align-items: center; gap: 10px; }
.post-meta-author b { font-weight: 600; color: var(--white); }
.post-meta .blog-avatar { width: 34px; height: 34px; font-size: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(233, 211, 174, .45); }
.post-meta-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--champagne); opacity: .7; }

.post { background: var(--ivory); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: start; max-width: 1140px; }
.post-article { max-width: 740px; }
.post-lead { margin: 0 0 36px; padding-left: 22px; border-left: 2px solid var(--rose); font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 23px); font-style: italic; line-height: 1.55; color: var(--ink); }
.post-figure { margin: 0 0 44px; overflow: hidden; border-radius: 18px; box-shadow: 0 30px 60px -40px rgba(36, 14, 20, .55); }
.post-figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.post-body { counter-reset: sec; }
.post-body p { margin: 0 0 22px; font-size: 17px; line-height: 1.9; color: var(--text); }
.post-body > p:first-child::first-letter { float: left; margin: 6px 12px 0 0; font-family: var(--font-display); font-size: 64px; font-weight: 700; line-height: .8; color: var(--maroon); }
.post-body h2 { counter-increment: sec; display: flex; align-items: baseline; gap: 14px; margin: 46px 0 14px; scroll-margin-top: 110px; font-size: clamp(23px, 2.2vw, 28px); letter-spacing: 0; color: var(--ink); }
.post-body h2::before { content: counter(sec, decimal-leading-zero); font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--rose); }
.post-body > p + p:last-child { margin-top: 40px; padding: 26px 30px; border-radius: 14px; background: var(--grad-blush); font-family: var(--font-display); font-size: 19px; font-style: italic; line-height: 1.6; color: var(--ink); }

.post-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 48px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-tags, .post-share { display: flex; align-items: center; gap: 10px; }
.post-tags > span, .post-share > span { margin-right: 4px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.post-tags a { padding: 7px 16px; border: 1px solid var(--line); border-radius: 30px; font-size: 12px; font-weight: 600; color: var(--maroon); transition: border-color .3s, background .3s; }
.post-tags a:hover { border-color: var(--rose); background: var(--blush); }
.post-share a, .post-share button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--maroon); cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.post-share a:hover, .post-share button:hover { border-color: transparent; background: var(--maroon); color: var(--white); transform: translateY(-2px); }
.post-share svg { width: 16px; height: 16px; fill: currentColor; }
.post-share button svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.post-copy-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; padding: 5px 10px; border-radius: 6px; background: var(--ink); font-size: 11px; white-space: nowrap; color: var(--white); opacity: 0; transform: translate(-50%, 4px); pointer-events: none; transition: opacity .3s, transform .3s; }
.post-copy.copied .post-copy-tip { opacity: 1; transform: translate(-50%, 0); }

.post-author { display: flex; gap: 20px; margin-top: 36px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.post-author .blog-avatar { width: 56px; height: 56px; font-size: 22px; }
.post-author-label { display: block; margin-bottom: 2px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.post-author b { display: block; margin-bottom: 8px; font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.post-author p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.post-nav a { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s, box-shadow .4s, transform .4s var(--ease); }
.post-nav a:hover { border-color: rgba(184, 96, 110, .5); box-shadow: 0 20px 40px -30px rgba(36, 14, 20, .5); transform: translateY(-3px); }
.post-nav span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--rose); }
.post-nav b { font-family: var(--font-display); font-size: 17px; line-height: 1.35; color: var(--ink); }
.post-nav-next { grid-column: 2; text-align: right; }

.post-aside { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 22px; }
.post-toc { padding: 4px 0 4px 22px; border-left: 1px solid var(--line); }
.post-toc h5 { margin: 0 0 16px; font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.post-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.post-toc li { counter-increment: toc; }
.post-toc a { position: relative; display: flex; gap: 10px; padding: 8px 0; font-size: 14px; line-height: 1.45; color: var(--text); transition: color .3s; }
.post-toc a::before { content: counter(toc, decimal-leading-zero); flex-shrink: 0; font-size: 11px; line-height: 20px; color: var(--muted); }
.post-toc a::after { content: ''; position: absolute; left: -23px; top: 8px; bottom: 8px; width: 2px; background: var(--grad-brand); transform: scaleY(0); transition: transform .4s var(--ease); }
.post-toc a:hover, .post-toc a.active { color: var(--maroon); }
.post-toc a.active::after { transform: scaleY(1); }
.post-cta { position: relative; overflow: hidden; padding: 28px 26px; border-radius: 18px; background: var(--grad-brand); color: var(--white); }
.post-cta::after { content: ''; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border: 1px solid rgba(233, 211, 174, .25); border-radius: 50%; }
.post-cta .eyebrow { margin-bottom: 12px; font-size: 10px; color: var(--champagne); }
.post-cta .eyebrow::before { width: 22px; background: var(--champagne); }
.post-cta h5 { margin: 0 0 10px; font-family: var(--font-display); font-size: 21px; line-height: 1.3; color: var(--white); }
.post-cta p { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.post-cta .btn { display: block; padding: 14px 18px; text-align: center; }
.post-missing { max-width: 740px; }

.post-more { background: var(--grad-soft); }

@media (max-width: 1080px) {
  .post-layout { grid-template-columns: 1fr; gap: 48px; }
  .post-article { max-width: none; }
  .post-aside { position: static; }
  .post-toc { display: none; }
}
@media (max-width: 640px) {
  .post-hero { min-height: 460px; padding: 120px 0 40px; }
  .post-meta { font-size: 12px; }
  .post-figure { margin-bottom: 32px; border-radius: 14px; }
  .post-body p { font-size: 16px; line-height: 1.8; }
  .post-body > p:first-child::first-letter { font-size: 54px; }
  .post-body > p + p:last-child { padding: 22px; font-size: 17px; }
  .post-end { flex-direction: column; align-items: flex-start; }
  .post-author { flex-direction: column; gap: 14px; padding: 22px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { grid-column: auto; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .post-toc a::after, .post-nav a, .post-share a, .post-share button { transition: none; } }

@media (max-width: 1080px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured { padding: 12px; }
}

/* ===== Course pages (fashion.php, interior.php) ===== */
.course-banner { min-height: 500px; padding: 130px 0 48px; }
.course-banner p { font-size: 17px; }
.course-banner h1 { margin-bottom: 12px; }
.course-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.course-actions .btn { min-width: 200px; text-align: center; }
.course-facts { background: var(--grad-brand); color: var(--white); }
.course-facts .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.course-facts .container > div { padding: 16px 16px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .15); }
.course-facts .container > div:first-child { border-left: 0; }
.course-facts span { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.course-facts strong { font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); color: var(--champagne); }
.course-soft { background: var(--grad-soft); }
.course-lead { margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: var(--text); }

/* Overview: photo + text */
.course-overview { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.course-overview-img { position: relative; }
.course-overview-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(36, 14, 20, .5); }
.course-overview-badge { position: absolute; right: -18px; bottom: 30px; display: flex; flex-direction: column; padding: 18px 22px; border-radius: 14px; background: var(--grad-brand); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, .85); box-shadow: 0 18px 30px -16px rgba(36, 14, 20, .6); }
.course-overview-badge b { font-family: var(--font-display); font-size: 30px; letter-spacing: 0; color: var(--champagne); }
.course-checks { margin: 0; padding: 0; list-style: none; }
.course-checks li { position: relative; padding: 7px 0 7px 34px; border-bottom: 1px dashed var(--line); font-size: 16px; color: var(--ink); }
.course-checks li::before { content: ''; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9d3ae' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") no-repeat center / 14px; }

/* Programme options: partner strip, degree cards, certificate cards */
.prog-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-bottom: 40px; padding: 16px 22px; border-radius: 16px; background: var(--white); box-shadow: 0 18px 40px -30px rgba(36, 14, 20, .45); }
.prog-partners-label { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.prog-partners-note { margin-left: auto; font-size: 13px; color: var(--text); }
.prog-partners-note b { color: var(--maroon); }

.prog-group-head { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.prog-group-head + .prog-degrees, .prog-group-head + .prog-certs { margin-top: 0; }
.prog-degrees + .prog-group-head { margin-top: 44px; }
.prog-group-icon { display: grid; place-items: center; flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; background: var(--grad-brand); }
.prog-group-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--champagne); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.prog-group-head h3 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); }
.prog-group-head p { margin: 2px 0 0; font-size: 14px; color: var(--text); }

/* Degree cards: big duration number, degree badge, points, button */
.prog-degrees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prog-degree { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 26px 24px 24px; border-radius: 20px; background: var(--white); border: 1.5px dashed rgba(184, 96, 110, .45); transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; }
.prog-degree::before { content: ''; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; background: var(--blush); transition: transform .6s var(--ease); }
.prog-degree:hover { transform: translateY(-6px); border-color: var(--maroon); box-shadow: 0 30px 56px -30px rgba(107, 31, 46, .6); }
.prog-degree:hover::before { transform: scale(1.25); }
.prog-degree > * { position: relative; }
.prog-tag { position: absolute; top: 18px; right: 18px; z-index: 1; padding: 4px 12px; border-radius: 20px; background: var(--grad-brand); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--champagne); }
.prog-years { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.prog-years b { font-family: var(--font-display); font-size: 60px; line-height: .9; color: var(--maroon); }
.prog-years span { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; line-height: 1.4; text-transform: uppercase; color: var(--muted); }
.prog-badge { align-self: flex-start; margin-bottom: 10px; padding: 4px 12px; border-radius: 8px; background: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--champagne); }
.prog-degree h4 { margin: 0 0 2px; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.25; }
.prog-type { margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rose); }
.prog-degree p { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: var(--text); }
.prog-points { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.prog-points li { position: relative; padding: 5px 10px 5px 24px; border-radius: 20px; background: var(--sand); font-size: 12px; font-weight: 600; color: var(--ink); }
.prog-points li::before { content: ''; position: absolute; left: 10px; top: 50%; width: 4px; height: 8px; margin-top: -6px; border-right: 2px solid var(--maroon); border-bottom: 2px solid var(--maroon); transform: rotate(45deg); }
.prog-degree .btn { margin-top: auto; justify-content: center; padding: 14px 20px; }
.prog-degree .btn svg { transition: transform .4s var(--ease); }
.prog-degree:hover .btn svg { transform: translateX(4px); }

/* Certificate cards: duration tile + name, whole card is a link */
.prog-certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.prog-cert { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border-radius: 18px; background: var(--white); box-shadow: 0 18px 40px -30px rgba(36, 14, 20, .45); border-left: 4px solid transparent; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.prog-cert:hover { transform: translateY(-4px); border-left-color: var(--maroon); box-shadow: 0 24px 46px -28px rgba(107, 31, 46, .55); }
.prog-cert-years { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 66px; height: 66px; border-radius: 16px; background: var(--grad-brand); color: var(--champagne); }
.prog-cert-years b { font-family: var(--font-display); font-size: 28px; line-height: 1; }
.prog-cert-years small { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.prog-cert h4 { margin: 2px 0 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.prog-cert-sub { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--rose); }
.prog-cert p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--text); }
.prog-cert-go { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--maroon); }
.prog-cert-go b { display: inline-block; transition: transform .4s var(--ease); }
.prog-cert:hover .prog-cert-go b { transform: translateX(5px); }

@media (max-width: 1080px) {
  .prog-degrees { grid-template-columns: 1fr 1fr; }
  .prog-partners-note { margin-left: 0; }
}
@media (max-width: 700px) {
  .prog-degrees, .prog-certs { grid-template-columns: 1fr; }
  .prog-years b { font-size: 50px; }
}


/* Curriculum module cards */
.course-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* Curriculum cards: maroon fills up from the bottom on hover, big outlined number,
   icon tile that turns maroon, and a title underline that stretches */
.course-module { position: relative; z-index: 0; overflow: hidden; padding: 26px 22px 24px; border-radius: 20px; background: var(--white); border: 1px solid rgba(184, 96, 110, .18); box-shadow: 0 18px 40px -28px rgba(36, 14, 20, .45); transition: transform .5s var(--ease), box-shadow .5s, border-color .5s; }
.course-module::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grad-brand); transform: translateY(101%); transition: transform .6s var(--ease); }
.course-module::after { content: ''; position: absolute; right: -40px; top: -40px; z-index: -1; width: 120px; height: 120px; border-radius: 50%; background: var(--blush); opacity: .7; transition: transform .6s var(--ease), opacity .6s; }
.course-module:hover { transform: translateY(-8px); border-color: transparent; box-shadow: 0 32px 60px -30px rgba(107, 31, 46, .7); }
.course-module:hover::before { transform: none; }
.course-module:hover::after { transform: scale(1.6); opacity: .12; }
.course-module-no { position: absolute; right: 18px; bottom: 8px; font-family: var(--font-display); font-size: 64px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(184, 96, 110, .35); transition: color .5s, -webkit-text-stroke-color .5s; pointer-events: none; }
.course-module .glance-icon { width: 54px; height: 54px; margin-bottom: 18px; border-radius: 16px; background: var(--blush); transition: background .5s, transform .5s var(--ease); }
.course-module .glance-icon svg { width: 25px; height: 25px; transition: stroke .5s; }
.course-module h4 { position: relative; margin: 0 0 14px; padding-bottom: 12px; font-family: var(--font-display); font-size: 20px; font-weight: 700; transition: color .5s; }
.course-module h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--grad-brand); transition: width .5s var(--ease), background .5s; }
.course-module p { position: relative; margin: 0; padding-right: 20px; font-size: 14px; line-height: 1.7; color: var(--text); transition: color .5s; }
.course-module:hover .glance-icon { background: rgba(255, 255, 255, .14); transform: rotate(-8deg) scale(1.06); }
.course-module:hover .glance-icon svg { stroke: var(--champagne); }
.course-module:hover h4 { color: var(--white); }
.course-module:hover h4::after { width: 100%; background: var(--champagne); }
.course-module:hover p { color: rgba(255, 255, 255, .85); }
.course-module:hover .course-module-no { color: rgba(233, 211, 174, .18); -webkit-text-stroke-color: rgba(233, 211, 174, .5); }

/* Year-by-year journey */
.course-journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.course-journey li { position: relative; padding: 22px 22px; border-radius: 18px; background: var(--white); border: 1.5px dashed rgba(184, 96, 110, .45); }
.course-journey li::after { content: '\2192'; position: absolute; top: 50%; right: -20px; z-index: 1; width: 32px; height: 32px; margin-top: -16px; display: grid; place-items: center; border-radius: 50%; background: var(--grad-brand); color: var(--champagne); font-size: 16px; }
.course-journey li:last-child::after { display: none; }
.course-journey span { display: inline-block; padding: 4px 12px; border-radius: 20px; background: var(--blush); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--maroon); }
.course-journey h4 { margin: 10px 0 6px; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.course-journey p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text); }

/* Careers + student work */
.course-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.course-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.course-chips li { padding: 9px 18px; border-radius: 30px; border: 1.5px solid rgba(184, 96, 110, .35); background: var(--white); font-size: 14px; font-weight: 600; color: var(--maroon); }
.course-work { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 12px; }
.course-work a { overflow: hidden; border-radius: 14px; }
.course-work a:first-child { grid-row: span 2; }
.course-work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.course-work a:hover img { transform: scale(1.06); }

/* Admission steps */
.course-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.course-steps li { padding: 22px 20px; border-radius: 18px; background: var(--white); text-align: center; box-shadow: 0 18px 40px -30px rgba(36, 14, 20, .45); }
.course-steps b { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: var(--grad-brand); font-family: var(--font-display); font-size: 20px; color: var(--champagne); }
.course-steps h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.course-steps p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); }

/* FAQ accordion (native <details>) */
.course-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.course-faq-wrap .side-wa { display: inline-flex; }
.course-faq details { margin-bottom: 10px; border: 1.5px dashed rgba(184, 96, 110, .45); border-radius: 14px; background: var(--white); transition: border-color .3s; }
.course-faq details[open] { border-color: var(--maroon); }
.course-faq summary { position: relative; padding: 14px 50px 14px 20px; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.course-faq summary::-webkit-details-marker { display: none; }
.course-faq summary::after { content: '+'; position: absolute; top: 50%; right: 18px; width: 26px; height: 26px; margin-top: -13px; display: grid; place-items: center; border-radius: 50%; background: var(--blush); font-size: 18px; color: var(--maroon); transition: transform .3s; }
.course-faq details[open] summary::after { content: '\2212'; background: var(--grad-brand); color: var(--white); }
.course-faq details p { margin: 0; padding: 0 20px 16px; font-size: 15px; line-height: 1.7; color: var(--text); }

@media (max-width: 1080px) {
  .course-modules, .course-steps { grid-template-columns: repeat(2, 1fr); }
  .course-journey { grid-template-columns: 1fr; }
  .course-journey li::after { display: none; }
  .course-overview, .course-split, .course-faq-wrap { grid-template-columns: 1fr; gap: 28px; }
  .course-overview-badge { right: 16px; }
  .course-facts .container { grid-template-columns: repeat(2, 1fr); }
  .course-facts .container > div:nth-child(3) { border-left: 0; }
  .course-facts .container > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .15); }
}
@media (max-width: 560px) {
  .course-banner { min-height: 0; }
  .course-modules, .course-steps { grid-template-columns: 1fr; }
  .course-actions .btn { flex: 1 1 100%; }
  .course-work { grid-auto-rows: 150px; }
}

/* ===== About page ===== */
.about-soft { background: var(--grad-soft); }
.about-lead { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 23px); font-style: italic; line-height: 1.55; color: var(--ink); }
.about-text { margin: 0 0 20px; font-size: 16px; line-height: 1.8; color: var(--text); }

/* Story: overlapping photo collage + text */
.about-story-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.about-collage { position: relative; height: 520px; }
.about-collage img { position: absolute; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(36, 14, 20, .55); }
.ac-1 { left: 0; top: 0; width: 72%; height: 78%; }
.ac-2 { right: 0; bottom: 0; width: 55%; height: 55%; border: 8px solid var(--ivory); }
.ac-badge { position: absolute; left: 6%; bottom: 4%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 140px; height: 140px; border-radius: 50%; background: var(--grad-brand); color: var(--white); text-align: center; box-shadow: 0 20px 40px -18px rgba(107, 31, 46, .8), 0 0 0 8px rgba(253, 249, 244, .9); animation: about-float 5s ease-in-out infinite; }
.ac-badge strong { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--champagne); }
.ac-badge span { max-width: 96px; margin-top: 4px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.4; }
@keyframes about-float { 50% { transform: translateY(-10px); } }
.about-quote { position: relative; margin: 6px 0 0; padding: 22px 24px 20px 64px; border-radius: 16px; background: var(--blush); }
.about-quote::before { content: '\201C'; position: absolute; left: 18px; top: 4px; font-family: var(--font-display); font-size: 72px; line-height: 1; color: var(--rose); }
.about-quote p { margin: 0 0 8px; font-family: var(--font-display); font-size: 18px; font-style: italic; line-height: 1.5; color: var(--ink); }
.about-quote cite { font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--maroon); }

/* Managing Director's message: portrait with offset frame + quote */
.about-md { background: var(--grad-soft); }
.about-md-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about-md-photo { position: relative; max-width: 400px; margin: 0 auto 0 0; padding: 0 0 26px 26px; }
.about-md-photo::before { content: ''; position: absolute; left: 0; bottom: 0; width: 82%; height: 82%; border-radius: 22px; background: var(--grad-brand); }
.about-md-photo::after { content: ''; position: absolute; right: -16px; top: -16px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(var(--rose) 1.6px, transparent 1.8px) 0 0 / 14px 14px; opacity: .6; }   /* dotted accent */
.about-md-frame { position: relative; z-index: 1; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 22px; background: var(--sand); box-shadow: 0 30px 60px -30px rgba(36, 14, 20, .6); }
.about-md-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-md-photo:hover .about-md-frame img { transform: scale(1.04); }
.about-md-monogram { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(160deg, var(--blush), var(--sand)); font-family: var(--font-display); font-size: clamp(56px, 8vw, 96px); font-weight: 700; font-style: italic; letter-spacing: 2px; color: rgba(107, 31, 46, .35); }
.about-md-tag { position: absolute; z-index: 2; right: -18px; bottom: 50px; display: flex; flex-direction: column; padding: 14px 20px; border-radius: 14px; background: var(--white); box-shadow: 0 18px 36px -18px rgba(36, 14, 20, .5); border-left: 4px solid var(--maroon); }
.about-md-tag strong { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.about-md-tag span { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--maroon); }
.about-md-text { position: relative; }
.about-md-text h2 { margin-bottom: 18px; }
.about-md-mark { position: absolute; right: 0; top: -20px; font-family: var(--font-display); font-size: 180px; line-height: 1; color: rgba(184, 96, 110, .15); pointer-events: none; }
.about-md-text p { position: relative; margin: 0 0 16px; font-size: 16px; line-height: 1.85; color: var(--text); }
.about-md-text .about-md-lead { font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 23px); font-style: italic; line-height: 1.55; color: var(--ink); }
.about-md-sign { display: flex; flex-direction: column; margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); }
.about-md-sign strong { font-family: var(--font-display); font-size: 24px; font-style: italic; color: var(--maroon); }
.about-md-sign span { margin-top: 2px; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

/* Numbers band */
.about-numbers { position: relative; overflow: hidden; background: var(--grad-brand); color: var(--white); }
.about-numbers::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 24px); pointer-events: none; }   /* faint ruler lines */
.about-numbers-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.about-numbers-grid > div { padding: 40px 20px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .15); }
.about-numbers-grid > div:first-child { border-left: 0; }
.about-numbers strong { display: block; font-family: var(--font-display); font-size: clamp(38px, 4.4vw, 58px); line-height: 1; color: var(--champagne); }
.about-numbers sup { font-size: .45em; }
.about-numbers small { display: block; margin-top: 10px; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255, 255, 255, .85); }

/* Mission / vision */
.about-mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-mv-card { position: relative; overflow: hidden; padding: 38px 34px; border-radius: 22px; background: var(--white); border: 1.5px dashed rgba(184, 96, 110, .45); transition: transform .45s var(--ease); }
.about-mv-card:hover { transform: translateY(-5px); }
.about-mv-card::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--blush); opacity: .7; }
.about-mv-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 20px; border-radius: 16px; background: var(--grad-brand); }
.about-mv-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--champagne); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.about-mv-card .eyebrow { position: relative; z-index: 1; margin-bottom: 10px; }
.about-mv-card h3 { position: relative; z-index: 1; margin: 0 0 12px; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.3; }
.about-mv-card p { position: relative; z-index: 1; margin: 0; font-size: 16px; line-height: 1.75; color: var(--text); }
.about-mv-dark { border: 0; background: var(--grad-brand); }
.about-mv-dark::after { background: rgba(255, 255, 255, .08); opacity: 1; }
.about-mv-dark .about-mv-icon { background: rgba(255, 255, 255, .14); }
.about-mv-dark .eyebrow { color: var(--champagne); }
.about-mv-dark .eyebrow::before { background: var(--champagne); }
.about-mv-dark h3 { color: var(--white); }
.about-mv-dark p { color: rgba(255, 255, 255, .85); }





/* Why NIF: checklist on a dark band */
.about-why { background: var(--ink); color: var(--white); }
.about-why h2 { color: var(--white); }
.about-why h2 em { background: none; color: var(--champagne); }
.about-why .eyebrow { color: var(--champagne); }
.about-why .eyebrow::before { background: var(--champagne); }
.about-why .section-head > p { color: rgba(255, 255, 255, .75); }
/* Measuring tape on the dark band: cream ticks, icon badges, cards that light up on hover */
.tape-dark .tape-ruler { box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .7); }
.tape-dark .tape-steps li { padding: 84px 18px 22px 22px; border-radius: 0 0 16px 16px; transition: background .4s; }
.tape-dark .tape-steps li:hover { background: rgba(255, 255, 255, .06); }
.tape-dark .tape-steps li::before { background: var(--champagne); }
.tape-dark .tape-steps li::after { background: var(--champagne); box-shadow: 0 0 0 4px rgba(233, 211, 174, .2); }
.tape-icon { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad-brand); transition: transform .4s var(--ease); }
.tape-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--champagne); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tape-dark .tape-steps li:hover .tape-icon { transform: rotate(-8deg) scale(1.08); }
.tape-dark .tape-no { color: var(--champagne); }
.tape-dark .tape-steps h4 { margin: 0 0 8px; font-family: var(--font-display); font-size: 20px; font-weight: 700; font-style: italic; color: var(--white); }
.tape-dark .tape-steps p { color: rgba(255, 255, 255, .78); line-height: 1.7; }

@media (max-width: 1080px) {
  .about-story-grid, .about-md-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-md-photo { margin: 0 auto; }
  .about-numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .about-numbers-grid > div:nth-child(3) { border-left: 0; }
  .about-numbers-grid > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .15); }
}
@media (max-width: 700px) {
  .about-mv { grid-template-columns: 1fr; }
  .about-md-tag { right: 0; }
  .about-collage { height: 400px; }
  .ac-badge { width: 112px; height: 112px; }
  .ac-badge strong { font-size: 32px; }
}
@media (max-width: 560px) {
  .about-numbers-grid > div { padding: 28px 12px; }
}
@media (prefers-reduced-motion: reduce) { .ac-badge { animation: none; } }


/* Accreditations: scrolling line of badges (pauses on hover) */
.accred { padding: 34px 0 38px; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.accred-head { margin-bottom: 18px; text-align: center; }
.accred-head .eyebrow { justify-content: center; }
.accred-strip { 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); }
.accred-track { display: flex; gap: 18px; width: max-content; animation: marquee 32s linear infinite; }
.accred-strip:hover .accred-track { animation-play-state: paused; }
.accred-item { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 12px 22px 12px 14px; border-radius: 40px; background: var(--ivory); border: 1.5px dashed rgba(184, 96, 110, .45); transition: border-color .3s, background .3s; }
.accred-logo { display: grid; place-items: center; flex-shrink: 0; height: 54px; padding: 4px 10px; border-radius: 12px; background: var(--white); }
.accred-logo img { width: auto; max-width: 150px; height: 46px; object-fit: contain; }
.accred-item:has(.accred-logo) { padding: 8px 18px; }
.accred-item:hover { border-color: var(--maroon); background: var(--blush); }
.accred-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--grad-brand); }
.accred-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--champagne); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.accred-item strong { display: block; font-family: var(--font-display); font-size: 17px; white-space: nowrap; color: var(--ink); }
.accred-item small { display: block; font-size: 12px; white-space: nowrap; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .accred-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .accred-item[aria-hidden] { display: none; } }

/* ===== Celebrity mentors (common/mentors.php) ===== */
.mentors { position: relative; overflow: hidden; background: var(--grad-soft); }

/* Style Icon feature card */
.icon-card { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; overflow: hidden; margin-bottom: 48px; padding: 0 0 0 48px; border-radius: 28px; background: var(--grad-brand); color: var(--white); box-shadow: 0 40px 80px -40px rgba(107, 31, 46, .8); }
.icon-card-text { position: relative; z-index: 2; align-self: center; padding: 44px 0; }
.icon-card-pill { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 20px; background: var(--champagne); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--maroon-deep); }
.icon-card h3 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); color: var(--white); }
.icon-card-role { display: block; margin: 4px 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--champagne); }
.icon-card blockquote { margin: 0 0 14px; padding-left: 16px; border-left: 3px solid var(--champagne); font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 24px); font-style: italic; line-height: 1.4; }
.icon-card p { max-width: 460px; margin: 0; font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, .85); }
.icon-card-photo { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-end; height: 100%; min-height: 380px; padding-top: 24px; }
.icon-card-photo img { position: relative; z-index: 1; width: auto; max-height: 420px; filter: drop-shadow(0 20px 30px rgba(20, 6, 10, .5)); transition: transform .8s var(--ease); }
.icon-card:hover .icon-card-photo img { transform: translateY(-8px) scale(1.03); }
.icon-card-ring { position: absolute; left: 50%; top: 50%; width: 320px; height: 320px; margin: -150px 0 0 -160px; border-radius: 50%; border: 2px dashed rgba(233, 211, 174, .5); background: radial-gradient(circle, rgba(233, 211, 174, .22), transparent 68%); animation: icon-spin 30s linear infinite; }
@keyframes icon-spin { to { transform: rotate(360deg); } }
.icon-card-word { position: absolute; z-index: 1; right: -10px; bottom: -40px; font-family: var(--font-display); font-size: clamp(120px, 18vw, 240px); font-weight: 700; font-style: italic; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(233, 211, 174, .18); pointer-events: none; }

/* Mentor cards: each has its own tone */
.mentor-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mentor-card { --arch: linear-gradient(170deg, #f1dfc0, #dcb987); --accent: var(--maroon); position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--white); box-shadow: 0 24px 50px -32px rgba(36, 14, 20, .55); transition: transform .5s var(--ease), box-shadow .5s; }
.mentor-card.tone-gold  { --arch: linear-gradient(170deg, #f6e7c8, #dcb987); --accent: #8a6a2f; }
.mentor-card.tone-blue  { --arch: linear-gradient(170deg, #e3edf4, #a9c4d6); --accent: #2f5d7c; }
.mentor-card.tone-amber { --arch: linear-gradient(170deg, #fdebd2, #efb46a); --accent: #a8601a; }
.mentor-card.tone-sand  { --arch: linear-gradient(170deg, #f3ece4, #d4c4b0); --accent: #6b5a48; }
.mentor-card:hover { transform: translateY(-8px); box-shadow: 0 36px 64px -32px rgba(107, 31, 46, .65); }

/* Portrait stepping out of the top of the arch */
.mentor-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 290px; padding-top: 14px; }
.mentor-arch { position: absolute; left: 14px; right: 14px; bottom: 0; height: 74%; border-radius: 999px 999px 0 0; background: var(--arch); transition: height .6s var(--ease); }
.mentor-arch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--grad-brand); opacity: 0; transition: opacity .6s; }
.mentor-card:hover .mentor-arch { height: 82%; }
.mentor-card:hover .mentor-arch::after { opacity: 1; }
.mentor-stage img { position: relative; z-index: 2; width: auto; max-width: 100%; max-height: 276px; filter: drop-shadow(0 14px 18px rgba(36, 14, 20, .3)); transform-origin: bottom center; transition: transform .6s var(--ease); }
.mentor-card:hover .mentor-stage img { transform: scale(1.05); }
.mentor-word { position: absolute; z-index: 1; left: 50%; top: 6px; transform: translateX(-50%); font-family: var(--font-display); font-size: 58px; font-weight: 700; font-style: italic; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px var(--accent); opacity: .35; transition: opacity .5s; }
.mentor-card:hover .mentor-word { opacity: .6; }

.mentor-info { position: relative; display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; border-top: 3px solid var(--accent); }
.mentor-field { align-self: flex-start; margin-bottom: 8px; padding: 4px 10px; border-radius: 20px; background: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white); }
.mentor-info h4 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.mentor-title { margin: 2px 0 10px; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.mentor-info p { margin: 0 0 14px; font-size: 13px; line-height: 1.65; color: var(--text); }
.mentor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 0; list-style: none; }
.mentor-tags li { padding: 4px 10px; border-radius: 20px; background: var(--sand); font-size: 11px; font-weight: 600; color: var(--ink); }

@media (max-width: 1200px) { .mentor-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .icon-card { grid-template-columns: 1fr; padding: 0 28px; }
  .icon-card-text { padding: 36px 0 0; }
  .icon-card-photo { min-height: 320px; }
  .mentor-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .mentor-cards { grid-template-columns: 1fr; } .mentor-stage { height: 320px; } .mentor-stage img { max-height: 306px; } }
@media (prefers-reduced-motion: reduce) { .icon-card-ring { animation: none; } }

/* ===== Contact page ===== */
/* Banner extras */
.contact-tagline { max-width: 520px; margin: 12px 0 0 !important; font-size: 17px !important; }
.contact-reply { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 16px; border-radius: 30px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 13px; letter-spacing: .5px; color: var(--white); }
.contact-reply i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); animation: contact-pulse 2s infinite; }
@keyframes contact-pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.page-banner-compact:has(.contact-reply) { padding-bottom: 96px; }

/* Contact cards overlapping the banner */
.contact-top { position: relative; z-index: 2; margin-top: -62px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 16px; }
.contact-card-address strong { font-size: 16px; line-height: 1.45; padding-right: 40px; }
.contact-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 22px 20px 20px; overflow: hidden; border-radius: 18px; background: var(--white); box-shadow: 0 24px 50px -28px rgba(36, 14, 20, .5); transition: transform .45s var(--ease), box-shadow .45s; }
.contact-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-brand); transform: scaleX(.25); transform-origin: left; transition: transform .5s var(--ease); }
.contact-card:hover { transform: translateY(-6px); box-shadow: 0 30px 56px -26px rgba(107, 31, 46, .6); }
.contact-card:hover::before { transform: scaleX(1); }
.contact-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 12px; border-radius: 14px; background: var(--blush); transition: background .4s, transform .4s var(--ease); }
.contact-icon svg { width: 23px; height: 23px; fill: none; stroke: var(--maroon); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.contact-card:hover .contact-icon { background: var(--grad-brand); transform: rotate(-6deg); }
.contact-card:hover .contact-icon svg { stroke: var(--champagne); }
.contact-card small { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.contact-card strong { font-family: var(--font-display); font-size: 18px; color: var(--ink); word-break: break-word; }
.contact-go { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blush); color: var(--maroon); opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s var(--ease); }
.contact-card:hover .contact-go { opacity: 1; transform: none; }

/* Form + side column, with soft colour blobs behind */
.contact-main { position: relative; overflow: hidden; }
.contact-main::before, .contact-main::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.contact-main::before { top: 40px; left: -120px; width: 380px; height: 380px; background: #f3d9d6; }
.contact-main::after { bottom: 0; right: -140px; width: 420px; height: 420px; background: #f1e3c8; }
.contact-anchor { position: absolute; top: 0; scroll-margin-top: 90px; }
.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: stretch; }
.contact-form-card { position: relative; padding: 26px 26px 28px; overflow: hidden; border-radius: 22px; background: rgba(255, 255, 255, .92); box-shadow: 0 30px 70px -40px rgba(36, 14, 20, .55); }
.contact-form-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad-brand); }
.cf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.contact-form-card h2 { margin: 0 0 6px; font-size: clamp(26px, 2.8vw, 34px); }
.cf-intro { margin: 0; font-size: 15px; color: var(--text); }
.cf-secure { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 6px 12px; border-radius: 20px; background: var(--blush); font-size: 12px; font-weight: 600; color: var(--maroon); white-space: nowrap; }
.cf-secure svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.cf-alert { margin-bottom: 16px; padding: 12px 16px; border-radius: 10px; background: #fdecea; border-left: 4px solid #c0392b; font-size: 14px; color: #8e2a20; }
.cf { display: flex; flex-direction: column; gap: 12px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field[hidden] { display: none; }
.cf-field > span { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }
.cf-field input, .cf-field select, .cf-field textarea { width: 100%; padding: 13px 14px; border: 1.5px solid transparent; border-radius: 10px; background: var(--sand); font: inherit; font-size: 15px; color: var(--ink); transition: border-color .3s, box-shadow .3s, background .3s; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--muted); }
.cf-field textarea { resize: vertical; min-height: 84px; }
.cf-field select { appearance: none; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b1f2e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; cursor: pointer; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; border-color: var(--rose); background-color: var(--white); box-shadow: 0 0 0 4px rgba(184, 96, 110, .15); }
.cf-ic { position: relative; display: block; }
.cf-ic svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .3s; }
.cf-ic input { padding-left: 44px; }
.cf-ic:focus-within svg { stroke: var(--maroon); }
.cf-field.has-error input, .cf-field.has-error select, .cf-field.has-error textarea { border-color: #c0392b; background-color: #fff7f6; }
.cf-field small, .cf-consent-error { font-size: 12px; color: #c0392b; }
.cf-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--text); cursor: pointer; }
.cf-consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--maroon); }
.cf-consent a { color: var(--maroon); font-weight: 600; }
.cf-consent.has-error span { color: #c0392b; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-submit { align-self: flex-start; padding: 16px 36px; border: 0; cursor: pointer; }
.cf-submit svg { transition: transform .4s var(--ease); }
.cf-submit:hover svg { transform: translate(4px, -4px); }
/* Light sweep across the send button */
.cf-shine { position: relative; overflow: hidden; }
.cf-shine::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: cf-shine 3.5s ease-in-out infinite; }
@keyframes cf-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.cf-success { padding: 26px 0 10px; text-align: center; }
.cf-success .glance-icon { width: 72px; height: 72px; margin: 0 auto 16px; background: var(--grad-brand); box-shadow: 0 0 0 10px var(--blush); }
.cf-success .glance-icon svg { width: 32px; height: 32px; stroke: var(--champagne); stroke-width: 2.4; }
.cf-success h3 { margin: 0 0 8px; font-size: 32px; }
.cf-success p { max-width: 420px; margin: 0 auto 20px; font-size: 16px; line-height: 1.7; color: var(--text); }

/* Side column: map with floating address card, office hours */
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-dir { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--maroon); }
.contact-dir:hover { text-decoration: underline; }
.contact-hours-card { box-shadow: 0 30px 70px -44px rgba(36, 14, 20, .5); }
.contact-hours-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.contact-hours-head h5 { margin: 0 !important; }
.open-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.open-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.open-badge.is-open { background: #e6f9ee; color: #128c4a; }
.open-badge.is-closed { background: var(--blush); color: var(--maroon); }
.contact-hours { margin: 0 0 12px; padding: 0; list-style: none; }
.contact-hours li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--text); }
.contact-hours b { color: var(--ink); }
.contact-note { font-size: 13px !important; }


/* Pill choices (enquiry type, time slot) */
.cf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-pill { position: relative; cursor: pointer; }
.cf-pill input { position: absolute; opacity: 0; pointer-events: none; }
.cf-pill span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 30px; background: var(--sand); font-size: 14px; font-weight: 600; color: var(--text); transition: background .3s, color .3s, border-color .3s; }
.cf-pill:hover span { border-color: var(--rose); color: var(--maroon); }
.cf-pill input:checked + span { border-color: transparent; background: var(--grad-brand); color: var(--white); }
.cf-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(184, 96, 110, .35); }
.cf-field.has-error .cf-pill span { border-color: #e6b3ad; }

/* Map in the side column: fills the space under "Prefer to talk?", address + button below */
.side-map { display: flex; flex-direction: column; flex: 1; overflow: hidden; padding: 8px; border: 2px dashed rgba(184, 96, 110, .55); border-radius: 22px; background: var(--white); transition: border-color .4s; box-shadow: 0 30px 70px -44px rgba(36, 14, 20, .5); }
.side-map:hover { border-color: var(--maroon); }
.side-map iframe { display: block; flex: 1; width: 100%; min-height: 240px; border: 0; border-radius: 14px 14px 0 0; }
.side-map .find-map-card { position: static; border-radius: 0 0 14px 14px; box-shadow: none; border-left: 0; border-top: 3px solid var(--maroon); }
.find-map-card { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 18px 36px -18px rgba(36, 14, 20, .55); border-left: 4px solid var(--maroon); }
.find-map-card .contact-icon { width: 44px; height: 44px; flex-shrink: 0; margin: 0; border-radius: 12px; background: var(--grad-brand); }
.find-map-card .contact-icon svg { width: 21px; height: 21px; stroke: var(--champagne); }
.find-map-card strong { display: block; font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.find-map-card span { display: block; margin: 2px 0 6px; font-size: 14px; line-height: 1.5; color: var(--text); }
.find-map-card .find-map-btn, .find-map-card .find-map-btn:hover { margin-top: 10px; padding: 12px 22px; font-size: 11px; color: var(--champagne); }   /* cream text on the maroon button */
.find-map-card .find-map-btn svg { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.find-map-card .find-map-btn:hover svg { transform: translateX(4px); }

/* Side: "Prefer to talk?" card */
.contact-talk { text-align: center; box-shadow: 0 30px 70px -44px rgba(36, 14, 20, .5); }
.contact-talk .contact-icon { margin: 0 auto 12px; background: var(--grad-brand); }
.contact-talk .contact-icon svg { stroke: var(--champagne); }
.contact-talk p { margin-bottom: 18px !important; }
.contact-talk .btn { display: flex; justify-content: center; padding: 14px 20px; }

@media (max-width: 560px) {
  .side-map iframe { min-height: 300px; }
}

/* Quick answers: course shortcut tiles */
.contact-faq { background: var(--grad-soft); }
.contact-courses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.contact-courses a { position: relative; overflow: hidden; height: 130px; border-radius: 14px; }
.contact-courses img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.contact-courses a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(36, 10, 18, .85)); }
.contact-courses span { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--white); }
.contact-courses b { display: inline-block; color: var(--champagne); transition: transform .4s var(--ease); }
.contact-courses a:hover img { transform: scale(1.07); }
.contact-courses a:hover b { transform: translateX(5px); }

@media (max-width: 1080px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-card-address { grid-column: span 2; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .contact-top { margin-top: -40px; }
  .contact-cards, .cf-row { grid-template-columns: 1fr; }
  .contact-card-address { grid-column: auto; }
  .contact-form-card { padding: 24px 18px; }
  .cf-head { flex-direction: column; }
  .cf-submit { align-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cf-shine::after, .contact-reply i { animation: none; } }

/* ===== Legal pages (privacy policy, terms): contents list + readable text column ===== */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 110px; padding: 24px 22px; border: 1.5px dashed rgba(184, 96, 110, .45); border-radius: 18px; background: var(--white); }
.legal-toc h5 { margin: 0 0 12px; font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.legal-toc ol { margin: 0; padding-left: 20px; }
.legal-toc ol { list-style: none; padding: 0; }
.legal-toc li { padding: 0; font-size: 14px; }
.legal-toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--text); transition: color .3s, border-color .3s, padding .3s; }
.legal-toc a:hover { color: var(--maroon); }
.legal-toc a.active { padding-left: 18px; border-left-color: var(--maroon); font-weight: 600; color: var(--maroon); }
.legal-progress { height: 3px; margin-bottom: 14px; border-radius: 3px; background: var(--blush); overflow: hidden; }
.legal-progress span { display: block; width: 100%; height: 100%; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.legal-print { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 18px; padding: 11px 14px; border: 1.5px solid var(--maroon); border-radius: 8px; background: none; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--maroon); cursor: pointer; transition: background .3s, color .3s; }
.legal-print:hover { background: var(--maroon); color: var(--white); }
.legal-print svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* "At a glance" summary cards */
.legal-glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 56px; }
.glance-card { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; border-radius: 18px; background: var(--white); box-shadow: 0 18px 40px -28px rgba(36, 14, 20, .45); border-top: 3px solid var(--maroon); transition: transform .4s var(--ease); }
.glance-card:hover { transform: translateY(-4px); }
.glance-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 50%; background: var(--blush); }
.glance-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--maroon); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.glance-card strong { font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.glance-card > span:last-child { font-size: 14px; line-height: 1.6; color: var(--text); }

.legal-body { max-width: 780px; }
.legal-updated { display: inline-block; margin: 0 0 18px; padding: 5px 14px; border-radius: 20px; background: var(--blush); font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--maroon); }
.legal-intro { margin: 0 0 10px; padding-left: 18px; border-left: 3px solid var(--rose); font-size: 18px; line-height: 1.75; color: var(--text); }
.legal-body h3 { display: flex; align-items: center; gap: 14px; margin: 44px 0 16px; padding-top: 28px; border-top: 1px dashed var(--line); font-size: 26px; scroll-margin-top: 110px; }
.legal-body h3 span { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--grad-brand); font-family: var(--font-display); font-size: 15px; color: var(--champagne); }
.legal-note { display: flex; align-items: flex-start; gap: 14px; margin: 6px 0 16px; padding: 16px 20px; border-radius: 12px; background: var(--blush); border-left: 4px solid var(--maroon); }
.legal-note svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--maroon); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.legal-body .legal-note p { margin: 0; color: var(--ink); }
.legal-note a, .legal-body p a { color: var(--maroon); font-weight: 600; }
.legal-body p a:hover { text-decoration: underline; }
.legal-table { width: 100%; margin: 6px 0 18px; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.legal-table th { padding: 12px 16px; background: var(--grad-brand); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-align: left; text-transform: uppercase; color: var(--white); }
.legal-table td { padding: 12px 16px; border-top: 1px solid var(--line); line-height: 1.6; vertical-align: top; color: var(--text); }
.legal-table tr:nth-child(even) td { background: var(--sand); }
.legal-table td:first-child { width: 34%; font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .legal-table td:first-child { width: 40%; } .legal-table td, .legal-table th { padding: 10px 12px; } }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.8; color: var(--text); }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 22px; }
.legal-body li::marker { color: var(--rose); }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-contact { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; padding: 28px; border-radius: 18px; background: var(--grad-brand); color: rgba(255, 255, 255, .85); font-size: 15px; }
.legal-contact strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 20px; color: var(--white); }
.legal-contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.legal-contact-btns a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 30px; background: rgba(255, 255, 255, .14); font-size: 14px; font-weight: 600; color: var(--white); transition: background .3s, color .3s; }
.legal-contact-btns a:hover { background: var(--champagne); color: var(--maroon-deep); }
.legal-contact-btns svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1080px) { .legal-glance { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
}
@media (max-width: 560px) { .legal-glance { grid-template-columns: 1fr; } }
/* Printing a legal page: just the text */
@media print {
  .site-header, .site-footer, .float-actions, .legal-toc, .page-banner, .legal-glance, .bm { display: none !important; }
  .legal-layout { display: block; }
  .legal-body h3 span { background: none; color: var(--ink); border: 1px solid var(--ink); }
  .legal-contact { background: none; color: var(--ink); border: 1px solid var(--line); }
  .legal-contact strong, .legal-contact-btns a { color: var(--ink); background: none; }
}

/* ===== Themed dropdown (replaces the browser's list; see initSelects in main.js) ===== */
.nice-select { position: relative; }
.nice-select-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }   /* real <select>, kept for the form */
.nice-select::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--maroon); border-bottom: 2px solid var(--maroon); transform: rotate(45deg); transition: transform .3s; pointer-events: none; }
.nice-select.open::after { margin-top: -2px; transform: rotate(-135deg); }
.nice-select-btn { display: block; width: 100%; padding: 13px 44px 13px 14px; border: 1.5px solid transparent; border-radius: 10px; background: var(--sand); font: inherit; font-size: 15px; text-align: left; color: var(--ink); cursor: pointer; transition: border-color .3s, box-shadow .3s, background .3s; }
.nice-select-btn.is-placeholder { color: var(--muted); }
.nice-select-btn:focus, .nice-select.open .nice-select-btn { outline: none; border-color: var(--rose); background: var(--white); box-shadow: 0 0 0 4px rgba(184, 96, 110, .15); }
.nice-select-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none; overflow: hidden; border-top: 3px solid var(--maroon); border-radius: 12px; background: var(--white); box-shadow: 0 24px 50px -14px rgba(36, 14, 20, .35); animation: nice-select-in .25s var(--ease); }
@keyframes nice-select-in { from { opacity: 0; transform: translateY(-6px); } }
.nice-select-list li { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 8px; font-size: 15px; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.nice-select-list li:hover, .nice-select-list li.is-active { background: var(--blush); color: var(--maroon); }
.nice-select-list li.is-selected { font-weight: 600; color: var(--maroon); }
.nice-select-list li.is-selected::after { content: ''; width: 6px; height: 11px; margin-right: 4px; border-right: 2px solid var(--maroon); border-bottom: 2px solid var(--maroon); transform: rotate(45deg); }
.cf-field.has-error .nice-select-btn, .nice-select:has(.invalid) .nice-select-btn { border-color: #c0392b; background-color: #fff7f6; }
/* In the roadmap pop-up the fields are white with a thin border */
.bm-form .nice-select-btn { padding: 11px 40px 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.bm-form .nice-select-list li { text-align: left; }

/* ===== Welcome pop-up (Interior Design promo) — reuses the .bm overlay and box ===== */
.promo-box { max-width: 480px; }
.promo-banner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; height: 220px; padding: 20px 24px; background-size: cover; background-position: center; color: var(--white); }
.promo-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 10, 18, .1) 30%, rgba(74, 19, 32, .85) 100%); }
.promo-banner > * { position: relative; }
.promo-pill { position: absolute; top: 18px; left: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: var(--champagne); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--maroon-deep); }
.promo-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--maroon); animation: contact-pulse 2s infinite; }
.promo-school { font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--champagne); }
.promo-body { padding: 22px 26px 24px; text-align: center; }
.promo-body h3 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 30px); }
.promo-body h3 em { font-style: italic; color: var(--maroon); }
.promo-body > p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--text); }
.promo-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.promo-points li { display: flex; flex-direction: column; gap: 2px; padding: 12px 6px; border-radius: 12px; background: var(--blush); }
.promo-points b { font-family: var(--font-display); font-size: 14px; color: var(--maroon); }
.promo-points span { font-size: 11px; line-height: 1.3; color: var(--text); }
.promo-cta { display: flex; justify-content: center; width: 100%; padding: 15px 20px; color: var(--champagne); }
.promo-cta:hover { color: var(--champagne); }
.promo-cta svg { transition: transform .4s var(--ease); }
.promo-cta:hover svg { transform: translateX(4px); }
.promo-later { margin-top: 12px; padding: 4px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.promo-later:hover { color: var(--maroon); text-decoration: underline; }
@media (max-width: 420px) {
  .promo-banner { height: 170px; }
  .promo-points { grid-template-columns: 1fr; }
}

/* ===== Brochure pop-up: photo banner on top, enquiry form below ===== */
.bm { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(36, 10, 18, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: bm-fade .3s ease; }
.bm[hidden] { display: none; }
@keyframes bm-fade { from { opacity: 0; } }
.bm-box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 16px; background: var(--ivory); box-shadow: 0 30px 80px -20px rgba(20, 6, 10, .6); animation: bm-rise .4s var(--ease); }
@keyframes bm-rise { from { transform: translateY(24px); } }
.bm-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--white); cursor: pointer; box-shadow: 0 6px 16px -6px rgba(20, 6, 10, .5); transition: transform .3s var(--ease); }
.bm-close:hover { transform: rotate(90deg); }
.bm-close svg { width: 18px; height: 18px; fill: none; stroke: var(--maroon); stroke-width: 2; stroke-linecap: round; }
.bm-banner { position: relative; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; min-height: 170px; padding: 44px 26px 18px; text-align: right; background-size: cover; background-position: center; color: var(--white); }
.bm-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(74, 19, 32, .35) 0%, rgba(74, 19, 32, .85) 45%, rgba(74, 19, 32, .95) 100%); }
.bm-banner > * { position: relative; }
.bm-tag { position: absolute; top: 16px; left: 22px; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--champagne); }
.bm-free { font-size: 15px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--champagne); }
.bm-big { margin: 6px 0; font-family: var(--font-display); font-size: clamp(26px, 5vw, 34px); line-height: 1.1; }
.bm-small { font-size: 14px; letter-spacing: 1px; color: rgba(255, 255, 255, .85); }
.bm-form { display: flex; flex-direction: column; gap: 10px; padding: 18px 24px 22px; text-align: center; }
.bm-form h3 { margin: 0; font-size: clamp(24px, 3.6vw, 28px); }
.bm-form h3 em { font-style: italic; color: var(--maroon); }
.bm-form p { margin: -4px 0 4px; font-size: 14px; color: var(--text); }
.bm-form input, .bm-form select { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font: inherit; font-size: 15px; color: var(--ink); transition: border-color .3s, box-shadow .3s; }
.bm-form select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b1f2e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; cursor: pointer; }
.bm-form select:invalid { color: var(--muted); }
.bm-form input::placeholder { color: var(--muted); }
.bm-form input:focus, .bm-form select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(184, 96, 110, .18); }
.bm-form .invalid { border-color: #c0392b; }
.bm-error { min-height: 0; font-size: 13px; color: #c0392b; }
.bm-error:empty { display: none; }
.bm-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; cursor: pointer; }
.bm-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.bm-open { overflow: hidden; }

/* Standard footer: brand | explore | programmes | contact | map */
.footer-grid { display: grid; grid-template-columns: 1.45fr .7fr .85fr 1.3fr 1.25fr; gap: 40px; padding: 52px 0 36px; }
.footer-about p { margin: 0 0 22px; line-height: 1.75; }
.fc-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; line-height: 1.55; }
.fc-item svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: var(--champagne); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-col > a.fc-item { display: flex; }

/* Floating actions (all pages) */
.float-actions {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;   /* badge sits centred above the WhatsApp and top buttons */
  gap: 10px;
}
.float-actions .fa-admission { margin-bottom: 4px; }
.fa-btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--grad-brand);
  cursor: pointer;
  box-shadow: 0 8px 22px -8px rgba(36, 14, 20, .55), 0 0 0 1px rgba(250, 245, 238, .14);
  transition: background .3s, opacity .4s, transform .4s var(--ease);
}
.fa-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ivory); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fa-btn:hover { transform: translateY(-2px); }
/* WhatsApp: brand green so it is recognised at a glance */
.fa-whatsapp { background: #25d366; box-shadow: 0 8px 22px -8px rgba(18, 140, 126, .6); }
.fa-whatsapp svg { width: 24px; height: 24px; fill: var(--white); stroke: none; }
.fa-btn.at-edge { opacity: .45; }
.fa-btn.at-edge:hover { opacity: .8; }

/* Admission badge: text ring rotating around a champagne core */
.fa-admission {
  position: relative;
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 14px 30px -10px rgba(36, 14, 20, .55), 0 0 0 3px rgba(250, 245, 238, .9);
  transition: transform .5s var(--ease);
  animation: fa-glow 3s ease-in-out infinite;
}
.fa-admission::after {            /* stitched inner edge */
  content: '';
  position: absolute; inset: 15px;
  border: 1px dashed rgba(233, 211, 174, .4);
  border-radius: 50%;
}
.fa-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: fa-spin 16s linear infinite; }
.fa-ring text { font-family: var(--font-body); font-size: 10.5px; font-weight: 600; fill: var(--champagne); }
.fa-core {
  position: relative; z-index: 1;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--champagne);
  transition: background .4s, transform .5s var(--ease);
}
.fa-core svg { grid-area: 1 / 1; width: 16px; height: 16px; fill: none; stroke: var(--maroon-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s, transform .4s var(--ease); }
.fa-core .fa-arrow { opacity: 0; transform: translate(-6px, 6px); stroke-width: 2; }
.fa-admission:hover { transform: scale(1.06); }
.fa-admission:hover .fa-ring { animation-duration: 6s; }
.fa-admission:hover .fa-core { background: var(--white); transform: rotate(-8deg); }
.fa-admission:hover .fa-cap { opacity: 0; transform: translate(6px, -6px); }
.fa-admission:hover .fa-arrow { opacity: 1; transform: none; }
@keyframes fa-spin { to { transform: rotate(360deg); } }
@keyframes fa-glow {
  0%, 100% { box-shadow: 0 14px 30px -10px rgba(36, 14, 20, .55), 0 0 0 3px rgba(250, 245, 238, .9), 0 0 0 3px rgba(107, 31, 46, .35); }
  50% { box-shadow: 0 14px 30px -10px rgba(36, 14, 20, .55), 0 0 0 3px rgba(250, 245, 238, .9), 0 0 0 12px rgba(107, 31, 46, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .fa-ring, .fa-admission { animation: none; }
}
.site-footer .brand { display: flex; color: var(--white); margin-bottom: 20px; }
/* Footer logo: the dark logo is turned white for the wine background */
.footer-logo { flex-direction: row; align-items: center; gap: 14px; }
.footer-logo img { width: auto; height: 78px; filter: brightness(0) invert(1); }
.footer-logo .brand-sub { margin: 0; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .25); font-size: 9px; line-height: 1.6; letter-spacing: 2.4px; color: rgba(255, 255, 255, .6); }
.footer-about p { max-width: 300px; }
.footer-col h4 { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--champagne); margin-bottom: 20px; }
.footer-col > a { display: block; margin-bottom: 10px; transition: color .3s; }
.footer-col > a:hover, .footer-legal a:hover { color: var(--white); }
.footer-col p { margin-bottom: 10px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 22px 84px 26px 0;   /* right space keeps text clear of the floating buttons */
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px; letter-spacing: 1px;
  color: rgba(255, 255, 255, .85);
}
.footer-credit a { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; color: #fff; font-weight: 700; transition: opacity .3s; }
.footer-bottom > span { white-space: nowrap; }   /* copyright + credit each stay on one line */
.footer-credit a img { width: 16px; height: 16px; object-fit: contain; }
.footer-credit a:hover { opacity: .75; }
.footer-credit .accent { color: #2ecfb5; }
.footer-legal { display: flex; gap: 28px; }
.footer-legal a { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; transition: color .3s; }

/* Social icons */
.social { display: flex; flex-wrap: wrap; gap: 7px; }
.social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.social svg { width: 17px; height: 17px; fill: none; stroke: var(--champagne); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.social svg .fill { fill: var(--champagne); transition: fill .3s; }
.social a:hover { background: var(--champagne); transform: translateY(-3px); }
.social a:hover svg { stroke: var(--maroon-deep); }
.social a:hover svg .fill { fill: var(--maroon-deep); }

/* Small map tile */
.footer-map-frame { display: block; width: 100%; height: 170px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .06); box-shadow: 0 16px 32px -18px rgba(0, 0, 0, .6); }
/* ===== Responsive ===== */
@media (max-width: 1080px) {
  /* Fixed full-width bar. The blur is turned off here: it would trap the
     position:fixed sidebar inside the header instead of the screen. */
  .site-header, .site-header.scrolled {
    top: 0; left: 0; right: 0;
    border-radius: 0;
    background: rgba(253, 249, 244, .97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 6px 24px -12px rgba(36, 14, 20, .3);
  }
  .site-header .header-inner { height: 64px; padding: 0 12px 0 24px; }
  .nav-toggle { display: block; z-index: 2; }
  body:not(.has-hero) { padding-top: 64px; }

  /* Sidebar menu: slides in from the right */
  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 1;
    width: min(320px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    padding: 84px 28px 28px;
    background: var(--ivory);
    box-shadow: -24px 0 60px -20px rgba(36, 14, 20, .45);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .45s var(--ease), visibility .45s;
  }
  .main-nav.open { visibility: visible; transform: none; }
  .main-nav a { font-size: 13px; }
  .main-nav > a:not(.nav-cta), .nav-dropdown > a { display: block; padding: 15px 0; border-bottom: 1px solid rgba(107, 31, 46, .08); }
  .nav-cta { display: none; }   /* replaced by the Contact row in the sidebar */
  /* Menu rows: icon tile + label */
  .main-nav > a:not(.nav-cta), .nav-dropdown > a, .main-nav > a.nav-contact-m { display: flex !important; align-items: center; gap: 14px; }
  .nav-ic { display: block; flex-shrink: 0; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(107, 31, 46, .08); fill: none; stroke: var(--maroon); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: background .3s, stroke .3s; }
  .main-nav a.active .nav-ic, .main-nav a:hover .nav-ic { background: var(--grad-brand); stroke: var(--white); }
  .main-nav > a.active, .nav-dropdown > a.active { color: var(--maroon); }

  /* Call / WhatsApp buttons pinned to the bottom of the sidebar */
  .main-nav .nav-actions { display: grid !important; gap: 10px; margin-top: auto; padding-top: 26px; }
  .main-nav .nav-act { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 12px; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; color: var(--white); transition: transform .3s var(--ease), box-shadow .3s; }
  .main-nav .nav-act svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .main-nav .nav-act:active { transform: scale(.98); }
  .main-nav .nav-act-call { background: var(--grad-brand); box-shadow: 0 10px 22px -10px rgba(107, 31, 46, .75); }
  .main-nav .nav-act-wa { background: linear-gradient(135deg, #25d366, #128c7e); box-shadow: 0 10px 22px -10px rgba(18, 140, 126, .7); }
  .nav-cta { margin-top: auto; padding: 15px 20px; text-align: center; }
  .nav-dropdown { display: block; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 6px 0 10px 50px; min-width: 0; border-radius: 0; border-bottom: 1px solid rgba(107, 31, 46, .08); }
  .dropdown-menu a { padding: 5px 0; line-height: 1.3; color: var(--muted) !important; }
  .dropdown-menu { border-top: 0; overflow: visible; }

  /* Courses dropdown (mobile): chevron + collapsible sub-menu */
  .nav-dropdown { border-bottom: 1px solid rgba(107, 31, 46, .08); }
  .main-nav .nav-dropdown > a::after { display: block; content: ''; flex-shrink: 0; width: 8px; height: 8px; margin: 0 6px 3px auto; border-right: 2px solid var(--maroon); border-bottom: 2px solid var(--maroon); transform: rotate(45deg); transition: transform .3s var(--ease); }   /* arrow on Courses */
  .main-nav .nav-dropdown.open > a::after { transform: rotate(-135deg) translate(-2px, -2px); margin-bottom: 0; }
  .nav-dropdown .dropdown-menu { max-height: 0; overflow: hidden; margin: 0; padding: 0; background: var(--blush); border: 0 solid rgba(107, 31, 46, .14); border-radius: 12px; transition: max-height .35s var(--ease), margin .35s var(--ease); }
  .nav-dropdown.open .dropdown-menu { max-height: 220px; margin-bottom: 14px; border-width: 1px; }
  .main-nav .nav-dropdown .dropdown-menu a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; line-height: 1.3; color: var(--maroon-deep) !important; background: none; border-bottom: 1px solid rgba(107, 31, 46, .14); }
  .main-nav .nav-dropdown .dropdown-menu a:last-child { border-bottom: 0; }
  .main-nav .nav-dropdown .dropdown-menu a:hover, .main-nav .nav-dropdown .dropdown-menu a:active, .main-nav .nav-dropdown .dropdown-menu a.active { padding-left: 14px; background: rgba(107, 31, 46, .09); }
  .nav-sub-ic { display: block; flex-shrink: 0; width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: var(--white); box-shadow: 0 2px 8px -3px rgba(107, 31, 46, .35); fill: none; stroke: var(--maroon); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dropdown-menu a, .dropdown-menu a:last-child { border-bottom: 0; }
  .dropdown-menu a:hover, .dropdown-menu a.active { padding-left: 0; background: none; }
  .dropdown-menu a::before, .nav-dropdown > a::after { display: none; }
  .nav-dropdown > a { border-bottom: 0; }

  /* Dark overlay behind the open sidebar; the page underneath does not scroll */
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; z-index: 99; background: rgba(36, 10, 18, .5); animation: nav-fade .35s ease; }
  @keyframes nav-fade { from { opacity: 0; } }

  .section { padding: 36px 0; }
  .schools { padding-top: 36px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-map { grid-column: 1 / -1; }
  .footer-map-frame { height: 200px; }
  .about { gap: 48px; }
  .moodboard { height: 400px; }
  .mb-1 { height: 290px; }
  .mb-2 { height: 200px; }
  .mb-3 { height: 180px; }
  .mag { gap: 50px; }

  /* Tape measure turns vertical */
  .tape { display: grid; grid-template-columns: 58px 1fr; gap: 40px; }
  .tape-ruler {
    height: auto;
    flex-direction: column;
    align-items: flex-end;
    padding: 6px 8px 6px 0;
    background-image:
      repeating-linear-gradient(180deg, rgba(74, 19, 32, .5) 0 1px, transparent 1px 10px),
      repeating-linear-gradient(180deg, rgba(74, 19, 32, .85) 0 1px, transparent 1px 50px);
    background-size: 14px 100%, 26px 100%;
  }
  .js .tape .tape-ruler { clip-path: inset(0 0 100% 0); }
  .tape-steps { grid-template-columns: 1fr; gap: 0; }
  .tape-steps li { padding: 0 0 44px; }
  .tape-steps li::before { top: 18px; left: -40px; width: 32px; height: 1px; }
  .tape-steps li::after { top: 13px; left: -12px; }
  .tape-dark .tape-steps li { padding: 0 64px 36px 0; border-radius: 0; }
  .tape-dark .tape-steps li:hover { background: none; }
  .tape-icon { top: 0; right: 0; width: 42px; height: 42px; }
}

@media (max-width: 820px) {
  .container { padding: 0 20px; }
  .section { padding: 28px 0; }
  .schools { padding-top: 28px; }
  .section-head, .schools-head { flex-direction: column; align-items: flex-start; margin-bottom: 44px; }
  .about, .mag { grid-template-columns: 1fr; }
  .mag-img { position: static; }
  .mag-img img { height: auto; aspect-ratio: 16 / 11; }
  .moodboard { height: 380px; margin: 0 auto; }
  .mb-1 { height: 270px; }
  .mb-2 { height: 190px; }
  .mb-3 { height: 170px; }
  .mb-badge { width: 88px; height: 88px; }
  .mb-badge strong { font-size: 20px; }

  .schools-panels { flex-direction: column; height: auto; max-height: none; min-height: 0; }
  .school, .schools-panels:hover .school, .schools-panels .school:hover { flex: none; height: 560px; }
  .school + .school { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
  .school-content { left: 24px; right: 24px; bottom: 32px; }
  .school-vertical { top: 28px; right: 20px; }
  .school-more { max-height: none; opacity: 1; }

  /* Phones/tablets: one even-sized photo at a time instead of staggered heights */
  .lookbook-track { padding: 0 20px 10px; gap: 16px; }
  .lb-tall, .lb-wide { width: min(78vw, 420px); margin-top: 0; }
  .lb-tall img, .lb-wide img { height: min(100vw, 420px); }
  .lb-end { width: min(60vw, 300px); height: min(100vw, 420px); padding: 28px; }
  .lb-end span { font-size: 24px; }

  
  .footer-top { padding: 36px 0; }
  .footer-ctas .btn { flex: 1 1 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .footer-about, .footer-contact, .footer-map { grid-column: 1 / -1; }

  .site-header .header-inner { height: 58px; padding: 0 6px 0 16px; }

  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 8px; letter-spacing: 2.4px; }
  .brand-logo { gap: 11px; }
  .brand-logo img { height: 46px; }
  .brand-logo .brand-sub { padding-left: 11px; font-size: 8px; letter-spacing: 1.8px; }
  body:not(.has-hero) { padding-top: 58px; }
  .main-nav { padding-top: 78px; }
  .hx { min-height: 620px; height: 100svh; }
  .hx-inner { padding-top: 96px; padding-bottom: 80px; }   /* room for the arrows and indicators */
  .hx-slides::after { background: linear-gradient(180deg, rgba(36, 10, 18, .45) 0%, rgba(36, 10, 18, .7) 50%, rgba(36, 10, 18, .85) 100%); }
  /* Phones/tablets: same full-height tap strips as desktop, with a smaller round button.
     The slide's links and buttons sit above the strips, so they still work. */
  .hx-arrow { width: 18%; }
  .hx-arrow::before { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .hx-arrow svg { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
  .hx-progress { bottom: 41px; }
  .hx-actions .btn { min-width: 0; flex: 1 1 220px; }

  /* Floating stack waits until the visitor scrolls, so it never covers the hero buttons */
  .float-actions { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
  .fa-visible .float-actions { opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 520px) {
  .moodboard { height: 310px; }
  .mb { padding: 7px; }
  .mb-1 { width: 62%; height: 210px; top: 30px; }
  .mb-2 { width: 46%; height: 140px; }
  .mb-3 { width: 54%; height: 130px; right: 4%; }
  .mb-badge { left: 42%; width: 72px; height: 72px; }
  .mb-badge span { font-size: 8px; letter-spacing: 2px; }
  .mb-badge strong { font-size: 17px; }
  .swatches { bottom: 10px; }
  .mb-note { display: none; }
  .swatches span { width: 32px; height: 32px; margin-left: -10px; }
  .dropcap { font-size: 46px; }
  .measure strong { font-size: 28px; }
  .measure sup { font-size: 18px; }
  .measure span { font-size: 10px; letter-spacing: 1px; }
  .school { height: 600px !important; }
  .mag-item { grid-template-columns: 48px 1fr 72px; gap: 16px; }
  .mag-no { font-size: 28px; }
  .mag-item h4 { font-size: 16px; }
  .mag-item img { width: 72px; height: 72px; }
  .section.voices { padding-top: 85px; }
  .voices-mark { font-size: 180px; top: -95px; }
  .footer-legal { flex-wrap: wrap; gap: 18px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 6px; padding-left: 48px; padding-right: 48px; text-align: center; font-size: min(11px, 2.65vw); letter-spacing: 0; }   /* copyright + credit centered (side space keeps clear of the floating buttons) */
  .float-actions { right: 12px; bottom: 12px; gap: 8px; }
  .fa-btn { width: 40px; height: 40px; }
  .fa-btn svg { width: 16px; height: 16px; }
  .fa-admission { width: 58px; height: 58px; }
  .fa-admission::after { inset: 13px; }
  .fa-core { width: 26px; height: 26px; }
  .fa-core svg { width: 14px; height: 14px; }
  .hx-title { letter-spacing: -1px; }
  .hx-bar { width: 32px; }
}

/* Very narrow phones (Galaxy Fold, small Androids): give journal titles the full width */
@media (max-width: 400px) {
  .mag-item { grid-template-columns: 38px 1fr; gap: 12px; padding: 16px 18px; }
  .mag-item img { display: none; }
  .mag-no { font-size: 24px; }
  .hx-actions .btn { padding: 16px 18px; }
}

/* Touch screens: show programme details without hover */
@media (hover: none) {
  .school-more { max-height: none; opacity: 1; }
}