/* Fasht Institute: concept build by Marketlube (27 Oct 2026). Fictional brand. */
:root {
  --pearl: #F7F4EF;
  --paper: #FFFFFF;
  --sand: #ECE6DC;
  --line: #D9D3C8;
  --crimson: #9B1B30;
  --crimson-deep: #6F1322;
  --slate: #25313C;
  --slate-2: #56626E;
  --ink: #141A20;
  --pod: #EDE8DF;
  --pod-2: #B9B2A7;
  --hdr: 68px;
  --gut: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --f-d: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-t: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-a: "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sec: clamp(60px, 9vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--pearl); color: var(--slate);
  font: 400 1.0625rem/1.6 var(--f-t); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-d); font-stretch: 88%; font-weight: 700; color: var(--slate); margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3vw + 1rem, 3.3rem); line-height: 1.02; }
h3 { font-weight: 600; font-size: clamp(1.2rem, 0.5vw + 1.05rem, 1.45rem); line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: calc(var(--mlc-h) + 8px); z-index: 200; background: var(--ink); color: var(--pod); padding: 10px 14px; border-radius: 4px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.tnum, .d-num, .fact dd, .course__fee, .c-fee, .c-seats, .step__n, .est__out dd, .est__n input[type=number] { font-variant-numeric: tabular-nums lining-nums; }

/* Eyebrow */
.eyebrow { display: flex; align-items: center; gap: 12px; font: 600 0.8125rem/1.2 var(--f-t); letter-spacing: 0.08em; text-transform: uppercase; color: var(--crimson); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.intro { font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem); color: var(--slate-2); max-width: 58ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 4px; border: 1.5px solid transparent; font: 600 0.975rem/1 var(--f-t); text-decoration: none; letter-spacing: 0.005em; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); white-space: nowrap; }
.btn--crimson { background: var(--crimson); color: var(--pod); }
.btn--crimson:hover { background: var(--crimson-deep); }
.btn--line { border-color: var(--slate); color: var(--slate); }
.btn--line:hover { background: var(--slate); color: var(--pearl); }
.btn--block { width: 100%; }
.btn::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-left: 2px; transition: transform .2s var(--ease); }
.btn:hover::after { transform: translateX(3px) rotate(45deg); }

/* Header */
.hdr { position: sticky; top: var(--mlc-h); z-index: 50; background: var(--pearl); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: var(--hdr); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slate); flex: none; }
.logo__mark { width: 32px; height: 32px; flex: none; }
.logo__en { font: 700 1.5rem/1 var(--f-d); font-stretch: 88%; letter-spacing: -0.01em; }
.logo__rule { width: 1px; height: 20px; background: var(--slate-2); opacity: .55; }
.logo__ar { font: 600 1.35rem/1 var(--f-a); color: var(--crimson); padding-bottom: 2px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(14px, 1.8vw, 30px); }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--slate); padding: 8px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--crimson); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.hdr__cta { min-height: 42px; padding: 0 18px; }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--slate); background: transparent; border-radius: 4px; font-weight: 600; font-size: 0.95rem; }
.menu-btn__icon { display: grid; gap: 5px; width: 18px; }
.menu-btn__icon i { display: block; height: 1.5px; background: currentColor; transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.menu { position: fixed; left: 0; right: 0; top: calc(var(--mlc-h) + var(--hdr)); bottom: 0; background: var(--pearl); padding: 24px var(--gut) 32px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; border-top: 1px solid var(--line); }
.menu[hidden] { display: none; }
.menu__nav li { border-bottom: 1px solid var(--line); }
.menu__nav a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; text-decoration: none; font: 700 clamp(2rem, 8vw, 2.75rem)/1.05 var(--f-d); font-stretch: 88%; color: var(--slate); }
.menu__nav a span { font: 600 0.8rem/1 var(--f-t); color: var(--crimson); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.menu__nav a:hover { color: var(--crimson); }
.menu__foot { display: grid; gap: 16px; padding-top: 28px; color: var(--slate-2); font-size: .95rem; }

@media (max-width: 1060px) {
  .nav, .hdr__cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Hero */
.hero { position: relative; display: grid; }
.hero__text { position: relative; z-index: 2; background: var(--pearl); padding: clamp(36px, 7vw, 64px) var(--gut) 0; container-type: inline-size; }
.hero__inner { max-width: 640px; }
.hero__title { font-size: clamp(2.5rem, 12.6cqi, 5.4rem); line-height: 0.98; letter-spacing: -0.022em; margin-bottom: clamp(20px, 3vw, 28px); }
.hero__lead { font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem); color: var(--slate-2); max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); background: var(--pearl); position: relative; z-index: 3; }
.fact { padding: 16px 14px 18px 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 14px; }
.fact dt { font-size: 0.8125rem; line-height: 1.35; color: var(--slate-2); }
.fact dd { margin: 0; font: 700 clamp(1.5rem, 1.2vw + 1.1rem, 2.25rem)/1 var(--f-d); font-stretch: 88%; color: var(--slate); white-space: nowrap; }
.fact:first-child dd { color: var(--crimson); }
.hero__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin-top: 0; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 35% 50%; }

@media (min-width: 960px) {
  .hero { grid-template-columns: repeat(12, minmax(0, 1fr)); height: clamp(600px, calc(100svh - var(--mlc-h) - var(--hdr)), 700px); }
  .hero__text { grid-column: 1 / 7; grid-row: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px clamp(32px, 4vw, 64px) 128px max(var(--gut), calc((100vw - var(--max)) / 2)); }
  .facts { grid-column: 1 / 7; grid-row: 1; align-self: end; margin: 0 clamp(32px, 4vw, 64px) 0 max(var(--gut), calc((100vw - var(--max)) / 2)); padding-bottom: 12px; }
  .hero__media { grid-column: 6 / -1; grid-row: 1; aspect-ratio: auto; height: 100%; }
  .hero__media img { object-position: 38% 50%; }
}
@media (max-width: 959px) {
  .hero__text { padding-bottom: 32px; }
  .facts { margin: 0 var(--gut); border-top: 0; }
}

/* Sections */
.sec { padding: var(--sec) 0; }
.sec__head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }
.sec__head--split { display: grid; gap: 20px; max-width: none; align-items: end; }
@media (min-width: 900px) { .sec__head--split { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } .sec__head--split .intro { padding-bottom: 6px; } }

/* Courses */
.courses { border-top: 1px solid var(--line); }
.courses__head { display: grid; gap: 32px; margin-bottom: 40px; align-items: end; }
.courses__intro h2 { margin-bottom: 20px; }
.courses__fig { position: relative; overflow: hidden; }
.courses__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.courses__fig figcaption { margin-top: 10px; font-size: .875rem; color: var(--slate-2); }
@media (min-width: 960px) { .courses__head { grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: stretch; } .courses__intro { display: flex; flex-direction: column; } .courses__intro .intro { margin-top: auto; } .courses__intro h2 { font-size: clamp(2.6rem, 3.4vw + 1rem, 4.2rem); } }

.rhythm { display: none; }
@media (min-width: 960px) {
  .rhythm { display: grid; grid-template-columns: repeat(3, 1fr); margin: 36px 0 32px; border-top: 1px solid var(--line); }
  .rhythm li { padding: 14px 16px 0 0; font: 600 1.1rem/1.25 var(--f-d); font-stretch: 88%; color: var(--slate); }
  .rhythm li + li { padding-left: 16px; border-left: 1px solid var(--line); }
  .rhythm span { display: block; font: 600 .78rem/1 var(--f-t); letter-spacing: .08em; color: var(--crimson); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 500; font-size: .95rem; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.pill:hover { border-color: var(--slate); }
.pill[aria-pressed="true"] { background: var(--crimson); border-color: var(--crimson); color: var(--pod); }
.pill__n { font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--slate-2); }
.pill[aria-pressed="true"] .pill__n { color: var(--pod); opacity: .85; }

.grid-courses { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.course { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s var(--ease); }
.course:hover { border-color: var(--slate); }
.course.is-out { display: none; }
.course__track { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--crimson); }
.course__name { font-size: clamp(1.3rem, 0.6vw + 1.1rem, 1.55rem); }
.course__out { color: var(--slate-2); font-size: .98rem; }
.course__meta { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.course__meta div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: baseline; }
.course__meta dt { font-size: .8rem; color: var(--slate-2); }
.course__meta dd { margin: 0; font-size: .93rem; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 3px; background: var(--sand); font-size: .8rem; font-weight: 500; line-height: 1.4; }
.course__fee { font: 700 1.9rem/1 var(--f-d); font-stretch: 88%; color: var(--crimson); margin-top: 6px; }
.course__fee .cur { font: 600 .8rem/1 var(--f-t); letter-spacing: .06em; vertical-align: 0.6em; margin-right: 2px; }
.course__fee .per { font: 500 .85rem/1 var(--f-t); color: var(--slate-2); }
.course-ask { background: var(--ink); color: var(--pod); border-radius: 6px; padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.course-ask__k { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #E7A8B2; }
.course-ask__t { color: var(--pod); font-size: clamp(1.25rem, 0.6vw + 1.05rem, 1.5rem); line-height: 1.22; }
.course-ask .btn { margin-top: auto; align-self: flex-start; }
.course-ask :focus-visible { outline-color: var(--pod); }
.course-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; font-size: .85rem; color: var(--slate-2); margin: -12px 0 14px; }
.note { margin-top: 24px; font-size: .925rem; color: var(--slate-2); max-width: 70ch; padding-left: 14px; border-left: 2px solid var(--crimson); }

/* Schedule */
.schedule { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tt__controls { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); gap: 4px; }
.tabs [role=tab] { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px 10px; margin-bottom: -1px; font: 700 clamp(1.2rem, 1vw + 1rem, 1.6rem)/1.1 var(--f-d); font-stretch: 88%; color: var(--slate-2); min-height: 48px; }
.tabs [role=tab] span { font: 500 .85rem/1 var(--f-t); margin-left: 4px; font-variant-numeric: tabular-nums; }
.tabs [role=tab]:hover { color: var(--slate); }
.tabs [role=tab][aria-selected="true"] { color: var(--slate); border-bottom-color: var(--crimson); }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--sand); padding: 4px; border-radius: 6px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 0 14px; min-height: 40px; border-radius: 4px; font-size: .9rem; font-weight: 500; color: var(--slate); }
.seg button:hover { background: rgba(37, 49, 60, .07); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--pod); }
.tt__status { font-size: .875rem; color: var(--slate-2); margin-bottom: 16px; }
.tt__panel:focus-visible { outline-offset: 6px; }
.tt__table { width: 100%; border-collapse: collapse; background: var(--paper); }
.tt__table thead th { background: var(--ink); color: var(--pod); text-align: left; font: 600 .75rem/1.2 var(--f-t); letter-spacing: .08em; text-transform: uppercase; padding: 14px 16px; white-space: nowrap; }
.tt__table td { padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .95rem; }
.tt__table tbody tr { transition: background-color .2s var(--ease); }
.tt__table tbody tr:hover { background: var(--pearl); }
.tt__table tr[hidden] { display: none; }
.c-date { white-space: nowrap; width: 1%; }
.d-day { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-2); }
.d-num { font: 700 2.6rem/0.9 var(--f-d); font-stretch: 88%; color: var(--slate); margin-right: 6px; }
.d-mon { font: 600 1rem/1 var(--f-d); font-stretch: 88%; color: var(--slate); }
.c-course strong { display: block; font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.c-sub { display: block; font-size: .82rem; color: var(--crimson); font-weight: 600; margin-top: 3px; }
.c-pattern { color: var(--slate-2); }
@media (min-width: 1181px) { .c-format, .c-pattern { white-space: nowrap; } }
.c-seats { white-space: nowrap; }
.c-seats.few { color: var(--crimson); font-weight: 600; }
.c-seats i, .tt__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); margin-right: 8px; vertical-align: 1px; }
.c-fee { font-weight: 600; white-space: nowrap; color: var(--crimson); }
.c-fee small { display: block; font-weight: 500; color: var(--slate-2); font-size: .78rem; }
.c-act { text-align: right; width: 1%; }
.hold { white-space: nowrap; border: 1.5px solid var(--slate); background: transparent; border-radius: 4px; min-height: 40px; padding: 0 14px; font-weight: 600; font-size: .875rem; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.hold:hover { background: var(--crimson); border-color: var(--crimson); color: var(--pod); }
.tt__empty { padding: 28px; background: var(--sand); margin-top: 8px; }
.tt__key { margin-top: 18px; font-size: .85rem; color: var(--slate-2); }

@media (max-width: 860px) {
  .tt__table, .tt__table tbody { display: block; }
  .tt__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tt__table tbody tr { display: grid; grid-template-columns: 76px 1fr auto; column-gap: 16px; row-gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .tt__table tbody tr:first-child { border-top: 3px solid var(--ink); }
  .tt__table tbody tr:hover { background: transparent; }
  .tt__table td { display: block; padding: 0; border: 0; font-size: .93rem; }
  .tt__table .c-date { grid-row: 1 / span 5; background: var(--sand); border-radius: 4px; padding: 10px 6px; text-align: center; width: auto; align-self: start; }
  .d-num { display: block; margin: 4px 0 2px; font-size: 2.2rem; }
  .d-mon { display: block; font-size: .9rem; }
  .c-course strong { font-size: 1.02rem; }
  .tt__table .c-pattern { font-size: .88rem; }
  .tt__table td:not(.c-date) { grid-column: 2 / 4; }
  .tt__table td.c-seats { grid-column: 2; margin-top: 6px; }
  .tt__table td.c-fee { grid-column: 3; text-align: right; margin-top: 6px; }
  .tt__table .c-fee small { display: inline; margin-left: 4px; }
  .tt__table .c-act { text-align: left; margin-top: 10px; width: auto; }
  .hold { width: 100%; min-height: 44px; }
  .tabs { width: 100%; }
  .tabs [role=tab] { flex: 1; padding: 10px 6px; }
  .seg { width: 100%; display: grid; grid-template-columns: 0.8fr 1.2fr 1fr; }
  .seg button { padding: 6px 6px; font-size: .84rem; line-height: 1.2; }
}

/* Formats */
.formats { background: var(--sand); }
.formats__grid { display: grid; gap: 16px; }
.fmt { display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; }
.fmt--sand { background: var(--pearl); }
.fmt--ink { background: var(--ink); color: var(--pod); }
.fmt--ink h3 { color: var(--pod); }
.fmt--ink p { color: var(--pod-2); }
.fmt__fig { overflow: hidden; aspect-ratio: 4 / 3; }
.fmt__fig img { width: 100%; height: 100%; object-fit: cover; }
.fmt__body { padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; }
.fmt__body h3 { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2.1rem); font-weight: 700; }
.fmt__body > p:not(.fmt__tag) { max-width: 52ch; }
.fmt__tag { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--crimson); }
.fmt--ink .fmt__tag { color: #E7A8B2; }
.fmt__list { display: grid; gap: 8px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .93rem; color: var(--slate); }
.fmt--ink .fmt__list { border-top-color: rgba(237, 232, 223, .18); color: var(--pod); }
.fmt__list li { display: flex; gap: 10px; }
.fmt__list li::before { content: ""; width: 10px; height: 2px; background: var(--crimson); margin-top: .75em; flex: none; }
.fmt--ink .fmt__list li::before { background: #E7A8B2; }
@media (min-width: 900px) {
  .formats__grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .fmt__fig--tall { aspect-ratio: 4 / 3; }
  .fmt__fig--tall img { object-position: 50% 40%; }
}

/* Teams */
.teams__grid { display: grid; gap: 48px; }
.teams__copy h2 { margin-bottom: 20px; }
.points { margin: 32px 0 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.points li { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.points__n { font: 700 1rem/1 var(--f-d); color: var(--crimson); width: 18px; flex: none; }
.points strong { font-weight: 600; color: var(--slate); }
.points p { color: var(--slate-2); }
.teams__fig { overflow: hidden; border-radius: 6px; }
.teams__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.est { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--crimson); border-radius: 6px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; align-self: start; }
.est__title { font-size: clamp(1.5rem, 1vw + 1.2rem, 2rem); font-weight: 700; }
.est__sub { color: var(--slate-2); font-size: .95rem; margin-top: -10px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-size: .875rem; font-weight: 600; color: var(--slate); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--slate); font-size: 1rem;
  transition: border-color .2s var(--ease);
}
.field select { text-overflow: ellipsis; appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 112px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--crimson); outline-offset: 0; border-color: var(--crimson); }
.est__n { display: grid; grid-template-columns: 1fr 84px; gap: 14px; align-items: center; }
.est__n input[type=number] { text-align: center; font-weight: 600; font-size: 1.1rem; }
.est__scale { position: relative; height: 1.1em; margin-right: 98px; font-size: .75rem; line-height: 1.1; color: var(--slate-2); font-variant-numeric: tabular-nums; }
.est__scale span { position: absolute; top: 0; left: calc(11px + (100% - 22px) * var(--p)); transform: translateX(-50%); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, var(--crimson) 0 var(--p, 18%), var(--line) var(--p, 18%) 100%); border-radius: 2px; }
input[type=range]::-moz-range-track { height: 4px; background: var(--line); border-radius: 2px; }
input[type=range]::-moz-range-progress { height: 4px; background: var(--crimson); border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--crimson); margin-top: -9px; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--crimson); }
input[type=range]:focus-visible { outline: 2px solid var(--crimson); outline-offset: 4px; border-radius: 4px; }
.est__out { margin: 0; border-top: 1px solid var(--line); }
.est__out div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.est__out dt { font-size: .9rem; color: var(--slate-2); white-space: nowrap; }
.est__out dd { margin: 0; font-weight: 600; text-align: right; }
.est__total dt { color: var(--slate); font-weight: 600; }
.est__total dd { font: 700 clamp(1.6rem, 1.2vw + 1.2rem, 2.1rem)/1 var(--f-d); font-stretch: 88%; color: var(--crimson); }
.est__cohort { background: var(--sand); padding: 12px 14px; font-size: .9rem; border-radius: 4px; }
.est__fine { font-size: .82rem; color: var(--slate-2); }
@media (min-width: 1000px) {
  .teams__grid { grid-template-columns: 1.15fr 0.85fr; gap: clamp(48px, 6vw, 96px); }
  .est { position: sticky; top: calc(var(--mlc-h) + var(--hdr) + 24px); }
}

/* Exams */
.exams { background: var(--ink); color: var(--pod); }
.exams h2, .exams h3 { color: var(--pod); }
.exams .intro { color: var(--pod-2); }
.eyebrow--dark { color: #E7A8B2; }
.rail { position: relative; }
.rail__line { position: absolute; background: rgba(237, 232, 223, .16); }
.rail__fill { position: absolute; inset: 0; background: var(--crimson); }
.rail__steps { display: grid; gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 0 36px 56px; }
.step__n { display: block; font: 700 clamp(2.6rem, 3vw + 1.4rem, 4rem)/1 var(--f-d); font-stretch: 88%; color: var(--pod); margin-bottom: 14px; letter-spacing: -0.02em; }
.step::before { content: ""; position: absolute; left: 13px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 2px solid var(--crimson); z-index: 1; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--pod-2); font-size: .975rem; max-width: 42ch; }
@media (max-width: 999px) {
  .rail__line { left: 19px; top: 12px; bottom: 36px; width: 2px; }
  .rail__fill { transform-origin: top center; }
}
@media (min-width: 1000px) {
  .rail__line { left: 0; right: 0; top: 6px; height: 2px; }
  .rail__fill { transform-origin: left center; }
  .rail__steps { grid-template-columns: repeat(5, 1fr); gap: 28px; padding-top: 40px; }
  .step { padding: 0; }
  .step::before { left: 0; top: -40px; }
}
.exams__note { margin-top: clamp(32px, 5vw, 56px); background: var(--crimson); color: var(--pod); border-radius: 6px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 10px; }
.exams__note-k { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.exams__note-t { font: 600 clamp(1.25rem, 1vw + 1rem, 1.75rem)/1.25 var(--f-d); font-stretch: 88%; max-width: 46ch; }
@media (min-width: 900px) { .exams__note { grid-template-columns: 220px 1fr; align-items: baseline; gap: 32px; } }

/* Instructors */
.inst { display: grid; gap: 32px; }
.inst__fig { overflow: hidden; border-radius: 6px; }
.inst__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.inst__lead { display: grid; gap: 14px; align-content: start; }
.inst__track, .person__track { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--crimson); }
.inst__name { font-size: clamp(2rem, 2vw + 1.4rem, 3rem); font-weight: 700; }
.inst__bio { font-size: 1.1rem; color: var(--slate); max-width: 46ch; }
.inst__method { background: var(--sand); border-radius: 6px; padding: 18px 20px; display: grid; gap: 6px; max-width: 52ch; margin-top: 8px; }
.inst__method-k { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-2); }
.inst__method-t { font-size: 1rem; color: var(--slate); }
.inst__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.person { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.person__tile { width: 72px; height: 72px; border-radius: 6px; display: grid; place-items: center; font: 700 1.6rem/1 var(--f-d); font-stretch: 88%; letter-spacing: .01em; }
.person__tile--crimson { background: var(--crimson); color: var(--pod); }
.person__tile--slate { background: var(--slate); color: var(--pod); }
.person__tile--sand { background: var(--sand); color: var(--slate); }
.person h3 { font-size: 1.25rem; }
.person__track { margin: 4px 0 8px; }
.person p:last-child { color: var(--slate-2); font-size: .95rem; }
@media (min-width: 900px) {
  .inst { grid-template-columns: 0.9fr 1.1fr; grid-template-rows: auto 1fr; column-gap: clamp(40px, 5vw, 80px); row-gap: 40px; }
  .inst__fig { grid-row: 1 / span 2; }
  .inst__lead { padding-top: 8px; }
  .inst__list { align-self: end; }
}

/* Fees */
.fees { border-top: 1px solid var(--line); }
.fees__grid { display: grid; gap: 16px; }
.fee-col { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 3vw, 36px); }
.fee-col h3 { display: flex; align-items: baseline; gap: 12px; font-size: 1.5rem; font-weight: 700; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.fee-col__n { font: 600 .8rem/1 var(--f-t); color: var(--crimson); letter-spacing: .06em; }
.fee-col li { padding: 10px 0 10px 22px; position: relative; border-bottom: 1px solid var(--line); font-size: .98rem; }
.fee-col li:last-child { border-bottom: 0; }
.fee-col li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 10px; height: 2px; background: var(--crimson); }
.fee-col:nth-child(2) li::before { background: var(--slate-2); }
.slots { display: grid; gap: 16px; margin-top: 16px; }
.slot { border: 1.5px dashed var(--line); border-radius: 6px; padding: 22px 24px; display: grid; gap: 6px; color: var(--slate-2); font-size: .95rem; }
.slot__k { font-weight: 600; color: var(--slate); font-size: 1rem; }
@media (min-width: 900px) { .fees__grid { grid-template-columns: repeat(3, 1fr); } .slots { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { background: var(--sand); }
.faq__grid { display: grid; gap: 36px; }
.faq__head h2 { margin-bottom: 18px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font: 600 clamp(1.1rem, 0.5vw + 1rem, 1.3rem)/1.3 var(--f-d); font-stretch: 92%; color: var(--slate); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background-color: var(--pearl); background-image: linear-gradient(var(--slate), var(--slate)), linear-gradient(var(--slate), var(--slate)); background-size: 12px 1.5px, 1.5px 12px; background-position: center; background-repeat: no-repeat; transition: transform .25s var(--ease), background-color .2s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(45deg); background-color: var(--crimson); background-image: linear-gradient(var(--pod), var(--pod)), linear-gradient(var(--pod), var(--pod)); }
.faq__list summary:hover { color: var(--crimson); }
.faq__a { padding: 0 52px 22px 0; color: var(--slate-2); max-width: 64ch; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: 80px; } .faq__head { position: sticky; top: calc(var(--mlc-h) + var(--hdr) + 32px); align-self: start; } }

/* Enquire */
.enquire { background: var(--crimson-deep); color: var(--pod); }
.enquire h2 { color: var(--pod); font-size: clamp(2.1rem, 3.4vw + 1rem, 3.8rem); margin-bottom: 20px; }
.enquire .intro { color: #E4D3D2; }
.enquire__grid { display: grid; gap: 40px; }
.visit { margin-top: 40px; display: grid; gap: 24px; }
.visit__list { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(237, 232, 223, .22); }
.visit__list div { display: grid; grid-template-columns: clamp(92px, 22vw, 120px) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(237, 232, 223, .22); }
.visit__list dt { font-size: .85rem; color: #E4D3D2; }
.visit__list dd { margin: 0; font-weight: 500; }
.visit__list a { text-decoration: underline; text-decoration-color: rgba(237, 232, 223, .5); text-underline-offset: 3px; }
.visit__list a:hover { text-decoration-color: currentColor; }
.enquire :focus-visible { outline-color: var(--pod); }
.nw { white-space: nowrap; }
.map { background: var(--slate); border-radius: 6px; overflow: hidden; }
.map svg { display: block; width: 100%; height: auto; }
.map figcaption { padding: 8px 14px; font-size: .78rem; color: var(--slate-2); background: var(--sand); border-top: 1px solid var(--line); }
.form { background: var(--paper); color: var(--slate); border-radius: 6px; padding: clamp(22px, 3vw, 40px); display: grid; gap: 18px; align-self: start; }
.form :focus-visible { outline-color: var(--crimson); }
.form__title { font-size: 1.6rem; font-weight: 700; }
.form__row { display: grid; gap: 18px; }
.radios { border: 0; padding: 0; margin: 0; }
.radios legend { padding: 0; margin-bottom: 8px; }
.radios__set { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radios label { position: relative; display: block; }
.radios input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radios span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line); border-radius: 4px; font-weight: 500; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.radios input:checked + span { background: var(--crimson); border-color: var(--crimson); color: var(--pod); }
.radios input:focus-visible + span { outline: 2px solid var(--crimson); outline-offset: 2px; }
.radios label:hover span { border-color: var(--slate-2); }
.opt { font-weight: 400; color: var(--slate-2); }
.form__fine { font-size: .82rem; color: var(--slate-2); text-align: center; }
.field[hidden] { display: none; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .enquire__grid { grid-template-columns: 0.9fr 1.1fr; gap: clamp(48px, 6vw, 96px); } }

/* Footer */
.ftr { background: var(--ink); color: var(--pod); padding: clamp(56px, 7vw, 96px) 0 28px; }
.ftr__top { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(237, 232, 223, .16); }
.ftr__lockup { display: flex; align-items: center; gap: 16px; }
.ftr__lockup svg { flex: none; }
.ftr__name { font: 700 1.6rem/1.1 var(--f-d); font-stretch: 88%; }
.ftr__ar { font: 600 1.15rem/1.3 var(--f-a); color: #E7A8B2; }
.ftr__tag { margin-top: 22px; font-size: 1.05rem; }
.ftr__tag-ar { font: 600 1.05rem/1.5 var(--f-a); color: var(--pod-2); margin-top: 4px; text-align: left; }
.ftr__col h2 { font: 600 .78rem/1 var(--f-t); letter-spacing: .1em; text-transform: uppercase; color: var(--pod-2); margin-bottom: 16px; }
.ftr__col li { padding: 5px 0; color: var(--pod); }
.ftr__col a { text-decoration: none; }
.ftr__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ftr :focus-visible { outline-color: var(--pod); }
.ftr__bottom { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: baseline; padding-top: 24px; font-size: .875rem; color: var(--pod-2); }
.ftr__bottom p { max-width: 80ch; }
.ftr__bottom a { color: var(--pod); text-underline-offset: 3px; }
.ftr__up { text-decoration: none; }
@media (max-width: 719px) { .ftr__top { grid-template-columns: 1fr 1fr; column-gap: 24px; } .ftr__brand, .ftr__top > .ftr__col:last-child { grid-column: 1 / -1; } }
@media (min-width: 720px) { .ftr__top { grid-template-columns: 1fr 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .ftr__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .ftr__brand { grid-column: auto; } }

/* Motion: hidden start states only when the head script added .js-motion */
.js-motion .hero__title { opacity: 0; }
.js-motion [data-hero], .js-motion [data-r] { opacity: 0; transform: translate3d(0, 26px, 0); }
.js-motion [data-img] { clip-path: inset(100% 0% 0% 0%); }
.js-motion .rail__fill { transform: scaleX(0); }
@media (max-width: 999px) { .js-motion .rail__fill { transform: scaleY(0); } }
.split-line { padding-bottom: 0.06em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Mobile: courses as a swipe row, shorter crops */
@media (max-width: 639px) {
  .grid-courses { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 14px; scroll-padding: 0 var(--gut); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .grid-courses > li { scroll-snap-align: start; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: -6px calc(-1 * var(--gut)) 16px; padding: 6px var(--gut) 8px; scrollbar-width: none; scroll-padding: 0 var(--gut); }
  .filters::-webkit-scrollbar { display: none; }
  .pill { flex: none; }
  .course-hint { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .course-hint::after { content: ". Swipe to see them all."; }
  .inst__fig img { aspect-ratio: 1 / 1; object-position: 50% 20%; }
  .fmt__fig { aspect-ratio: 3 / 2; }
  .fmt__fig--tall img { object-position: 50% 35%; }
  .courses__fig img { aspect-ratio: 16 / 10; }
  .teams__fig img { aspect-ratio: 16 / 10; }
}
