/*
 * AUS — Alarab University Support
 *
 * A deliberately single-theme design: deep Mediterranean navy with brass. The
 * hero is a lit particle field, which only reads on a dark ground, so there is
 * no light/dark switch — every colour is painted explicitly instead of
 * inherited from the host.
 *
 * Layout uses logical properties (inline-start/end, padding-inline) throughout,
 * so switching `dir` to rtl mirrors the whole page with no extra rules. Do not
 * reintroduce left/right — Arabic is the default language here.
 */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: dark;

  --ground: #081530;
  --ground-2: #0b1b3b;
  --surface: #0f2245;
  --raised: #16305c;
  --line: #23406e;
  --line-soft: #16294c;

  --text: #f2f5fb;
  --muted: #a3b4d0;
  --faint: #7688a8;

  --brass: #e9bc5c;
  --brass-deep: #c9962f;
  --brass-glow: rgba(233, 188, 92, 0.16);
  --gold-hi: #f7d78a;

  /* Light band */
  --sand: #f4f7fc;
  --sand-2: #e6ecf6;
  --sand-line: #d7e0ee;
  --sand-ink: #0b1b3b;
  --sand-muted: #5c6f92;

  --arabic: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --latin: 'IBM Plex Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'IBM Plex Serif', Georgia, serif;

  --font: var(--arabic);

  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* The Latin languages get the Latin family; Arabic keeps Plex Arabic. */
html[lang='fr'],
html[lang='en'] {
  --font: var(--latin);
}

/* -------------------------------------------------------------------- base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
canvas {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Arabic does not take negative tracking well — it breaks the joins. */
html[lang='ar'] h1,
html[lang='ar'] h2,
html[lang='ar'] h3 {
  letter-spacing: 0;
  line-height: 1.3;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 20px;
  }
}

.skip {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 200;
  background: var(--brass);
  color: #0b1b3b;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: inset-block-start 0.2s var(--ease);
}
.skip:focus {
  inset-block-start: 16px;
}

/* ----------------------------------------------------------- scroll rail */
.scroll-rail {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  z-index: 150;
  background: transparent;
  pointer-events: none;
}
.scroll-rail span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-hi), var(--brass));
  transition: width 0.08s linear;
}

/* ------------------------------------------------------------------- nav */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 120;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-block-end: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(8, 21, 48, 0.82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-block-end-color: var(--line-soft);
}

.nav-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 12px 20px;
    gap: 14px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--brass);
  overflow: visible;
}
.brand-mark .bm-ring {
  transform-origin: 20px 20px;
  animation: markSpin 24s linear infinite;
  opacity: 0.55;
}
@keyframes markSpin {
  to {
    transform: rotate(360deg);
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
}
.brand-text em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-inline-start: auto;
  font-size: 14.5px;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  padding-block: 4px;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 0;
  height: 1.5px;
  background: var(--brass);
  transition: width 0.32s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-inline-start: 0;
}

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 34, 69, 0.6);
}
.lang button {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--faint);
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}
.lang button:hover {
  color: var(--text);
}
.lang button.is-on {
  background: var(--brass);
  color: #0b1b3b;
  font-weight: 600;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 15.5px;
}

.btn-primary {
  background: var(--brass);
  color: #0b1b3b;
  box-shadow: 0 6px 26px -10px rgba(233, 188, 92, 0.7);
}
.btn-primary:hover {
  background: #f4cd78;
  box-shadow: 0 12px 36px -10px rgba(233, 188, 92, 0.85);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(22, 48, 92, 0.5);
}
.btn-ghost:hover {
  border-color: var(--brass);
  background: rgba(233, 188, 92, 0.08);
}

/* Sheen that sweeps across a primary button on hover. */
.btn-primary::after {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: inset-inline-start 0.6s var(--ease);
}
.btn-primary:hover::after {
  inset-inline-start: 120%;
}

.burger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  inset-inline: 10px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}
.burger span:nth-child(1) {
  inset-block-start: 15px;
}
.burger span:nth-child(2) {
  inset-block-start: 21px;
}
.burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.burger[aria-expanded='true'] span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset-block-start: 62px;
    inset-inline: 12px;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 27, 59, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.28s var(--ease),
      transform 0.28s var(--ease),
      visibility 0.28s;
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-links a:hover {
    background: rgba(233, 188, 92, 0.08);
  }
  .burger {
    display: block;
  }
  .nav-cta {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand-text em {
    display: none;
  }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 132px 96px;
  isolation: isolate;
  overflow: hidden;
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Aurora wash sitting under the particles, so the field never floats on flat
   black. Two slow, offset radial sweeps. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(64% 54% at 50% 44%, rgba(8, 21, 48, 0) 0%, rgba(8, 21, 48, 0.42) 82%),
    radial-gradient(40% 38% at 22% 26%, rgba(247, 215, 138, 0.1), transparent 70%),
    radial-gradient(46% 40% at 80% 70%, rgba(233, 188, 92, 0.12), transparent 72%);
  animation: veilDrift 22s var(--ease-in-out) infinite alternate;
}
@keyframes veilDrift {
  to {
    transform: translate3d(0, -2.5%, 0) scale(1.06);
  }
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
  text-align: center;
}

@media (max-width: 640px) {
  .hero-inner {
    padding-inline: 20px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px 6px 12px;
  border: 1px solid rgba(233, 188, 92, 0.32);
  border-radius: 999px;
  background: rgba(233, 188, 92, 0.07);
  color: var(--brass);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-block-end: 26px;
}
.badge .pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 0 rgba(233, 188, 92, 0.6);
  animation: pip 2.4s var(--ease-in-out) infinite;
}
@keyframes pip {
  0% {
    box-shadow: 0 0 0 0 rgba(233, 188, 92, 0.55);
  }
  70% {
    box-shadow: 0 0 0 11px rgba(233, 188, 92, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(233, 188, 92, 0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  margin-block-end: 22px;
  background: linear-gradient(180deg, #ffffff 20%, #b9d3de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[lang='ar'] .hero-title {
  font-weight: 700;
  font-size: clamp(2.2rem, 6.4vw, 4.5rem);
}

.hero-lede {
  max-width: 60ch;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.16rem);
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-block-start: 36px;
}

/* --------------------------------------------------------------- countdown */
.countdown {
  margin-block-start: 54px;
}
.countdown-label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-block-end: 14px;
}
html[lang='ar'] .countdown-label {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12.5px;
}

.countdown-grid {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.cd {
  min-width: 84px;
  padding: 12px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22, 48, 92, 0.7), rgba(15, 34, 69, 0.4));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cd b {
  display: block;
  font-family: var(--latin);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.cd span {
  display: block;
  margin-block-start: 5px;
  font-size: 11px;
  color: var(--faint);
}
.countdown.is-done .countdown-grid {
  display: none;
}
.countdown.is-done .countdown-label {
  color: var(--brass);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.scroll-cue {
  position: absolute;
  inset-block-end: 26px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(163, 180, 208, 0.35);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 7px;
  width: 3px;
  height: 7px;
  margin-inline-start: -1.5px;
  border-radius: 999px;
  background: var(--brass);
  animation: cue 1.9s var(--ease-in-out) infinite;
}
@keyframes cue {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  60% {
    transform: translateY(13px);
    opacity: 0;
  }
}

/* ----------------------------------------------------------------- stats */
.stats {
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--ground-2), var(--ground));
  padding-block: 44px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}
@media (max-width: 860px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 16px;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat b {
  display: block;
  font-family: var(--latin);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-block-start: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ----------------------------------------------------------------- bands */
.band {
  padding-block: clamp(72px, 11vw, 130px);
  position: relative;
}

.band.light {
  background: var(--sand);
  color: var(--sand-ink);
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-block-end: 14px;
  font-weight: 600;
}
html[lang='ar'] .eyebrow {
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 13px;
}
.band.light .eyebrow {
  color: var(--brass-deep);
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  max-width: 22ch;
  margin-block-end: 16px;
}
.band.light .section-title {
  color: var(--sand-ink);
}

.section-lede {
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.02rem;
  margin-block-end: 40px;
}
.band.light .section-lede {
  color: var(--sand-muted);
}

/* ----------------------------------------------------------------- about */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-copy h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  margin-block-end: 24px;
}
.about-copy p {
  color: var(--muted);
  margin-block-end: 18px;
  font-size: 1.02rem;
  max-width: 62ch;
}

.quote {
  margin: 0;
  padding: 30px 28px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(233, 188, 92, 0.1), rgba(247, 215, 138, 0.05));
  border: 1px solid rgba(233, 188, 92, 0.22);
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: '';
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -30%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--brass-glow), transparent 65%);
  animation: quoteGlow 9s var(--ease-in-out) infinite alternate;
}
@keyframes quoteGlow {
  to {
    transform: translate3d(-16%, 22%, 0) scale(1.25);
  }
}
.quote blockquote {
  margin: 0;
  position: relative;
  font-size: clamp(1.1rem, 2.3vw, 1.32rem);
  line-height: 1.7;
  color: var(--text);
}
html[lang='fr'] .quote blockquote,
html[lang='en'] .quote blockquote {
  font-family: var(--serif);
  font-style: italic;
}
.quote figcaption {
  position: relative;
  margin-block-start: 16px;
  font-size: 12.5px;
  color: var(--brass);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------- marquee */
.marquee {
  margin-block-start: clamp(48px, 7vw, 80px);
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  padding-block: 18px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: slide 38s linear infinite;
}
/* The track is duplicated in JS, so translating by exactly -50% loops seamlessly. */
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track span {
  font-size: 15px;
  color: var(--faint);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 44px;
}
.marquee-track span::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0.5;
}

/* --------------------------------------------------------------- pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-block-start: 44px;
}
@media (max-width: 980px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  position: relative;
  padding: 30px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(165deg, var(--surface), var(--ground-2));
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    border-color 0.4s var(--ease),
    transform 0.18s ease-out;
}
.pillar.wide {
  grid-column: span 4;
  background: linear-gradient(
    120deg,
    rgba(233, 188, 92, 0.11),
    rgba(15, 34, 69, 0.9) 55%
  );
  border-color: rgba(233, 188, 92, 0.26);
}
@media (max-width: 980px) {
  .pillar.wide {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .pillar.wide {
    grid-column: span 1;
  }
}

/* Light that follows the pointer across the card. */
.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    rgba(233, 188, 92, 0.14),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.pillar:hover {
  border-color: rgba(233, 188, 92, 0.4);
}
.pillar:hover::before {
  opacity: 1;
}

.pillar-n {
  display: block;
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brass);
  opacity: 0.7;
  margin-block-end: 16px;
}
.pillar h3 {
  font-size: 1.22rem;
  margin-block-end: 9px;
}
.pillar p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------- universities */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-block-end: 34px;
}
.tabs button {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--sand-line);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--sand-muted);
  background: rgba(255, 255, 255, 0.5);
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.tabs button:hover {
  transform: translateY(-2px);
  color: var(--sand-ink);
}
.tabs button.is-on {
  background: var(--sand-ink);
  border-color: var(--sand-ink);
  color: var(--sand);
}

.uni-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
}

.fac {
  background: #ffffff;
  border: 1px solid var(--sand-line);
  border-radius: 18px;
  padding: 24px 24px 22px;
  opacity: 0;
  transform: translateY(18px);
  animation: facIn 0.6s var(--ease) forwards;
  position: relative;
  overflow: hidden;
}
@keyframes facIn {
  to {
    opacity: 1;
    transform: none;
  }
}
.fac::after {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brass), var(--gold-hi));
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.5s var(--ease);
}
.fac:hover::after {
  transform: scaleX(1);
}

.fac h3 {
  font-size: 1.12rem;
  color: var(--sand-ink);
  margin-block-end: 14px;
}

.fac .year {
  padding-block: 12px;
  border-block-start: 1px solid var(--sand-2);
}
.fac .year:first-of-type {
  border-block-start: none;
  padding-block-start: 0;
}
.fac .year-name {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 600;
  margin-block-end: 8px;
}
html[lang='ar'] .fac .year-name {
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}
.fac .courses {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.fac .courses li {
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--sand-2);
  color: var(--sand-ink);
}
.fac .langs {
  margin-block-start: 9px;
  font-size: 12.5px;
  color: var(--sand-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.fac .langs::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--brass-deep);
  flex-shrink: 0;
}
.fac .plain {
  font-size: 0.95rem;
  color: var(--sand-muted);
}

.uni-note {
  margin-block-start: 30px;
  font-size: 0.95rem;
  color: var(--sand-muted);
  padding-inline-start: 16px;
  border-inline-start: 2px solid var(--brass);
  max-width: 62ch;
}

/* ----------------------------------------------------------------- steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-block-start: 44px;
  counter-reset: s;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding-block-start: 8px;
}
/* Connector line between steps — drawn only on the wide layout. */
@media (min-width: 901px) {
  .step:not(:last-child)::before {
    content: '';
    position: absolute;
    inset-block-start: 25px;
    inset-inline-start: 52px;
    inset-inline-end: -20px;
    height: 1px;
    background: linear-gradient(90deg, var(--line), transparent);
  }
  html[dir='rtl'] .step:not(:last-child)::before {
    background: linear-gradient(270deg, var(--line), transparent);
  }
}

.step-num {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--raised), var(--surface));
  border: 1px solid var(--line);
  margin-block-end: 18px;
  position: relative;
  transition:
    border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.step:hover .step-num {
  border-color: var(--brass);
  transform: translateY(-4px);
}
.step-num span {
  font-family: var(--latin);
  font-size: 17px;
  font-weight: 600;
  color: var(--brass);
}
.step h3 {
  font-size: 1.05rem;
  margin-block-end: 8px;
}
.step p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ------------------------------------------------------------------ team */
.team {
  background: linear-gradient(180deg, var(--ground), var(--ground-2));
}
.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(36px, 6vw, 70px);
  align-items: center;
}
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
.team-copy h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-block-end: 20px;
}
.team-copy > p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 56ch;
}

.team-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-block-start: 28px;
}
.team-badges li {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(22, 48, 92, 0.5);
  transition:
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.team-badges li:hover {
  border-color: var(--brass);
  color: var(--text);
}

/* Concentric orbits carrying the specialists. Dots are injected by main.js. */
.orbit {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
  display: grid;
  place-items: center;
}
.orbit-core {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(233, 188, 92, 0.32),
    rgba(15, 34, 69, 0.95)
  );
  border: 1px solid rgba(233, 188, 92, 0.45);
  box-shadow: 0 0 60px -12px rgba(233, 188, 92, 0.5);
  z-index: 2;
}
.orbit-core span {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--brass);
}
.ring {
  position: absolute;
  border: 1px dashed rgba(163, 180, 208, 0.18);
  border-radius: 50%;
  inset: 0;
}
.ring.r1 {
  inset: 27%;
  animation: spin 26s linear infinite;
}
.ring.r2 {
  inset: 13%;
  animation: spin 42s linear infinite reverse;
}
.ring.r3 {
  inset: 0;
  animation: spin 62s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.dot {
  position: absolute;
  width: 11px;
  height: 11px;
  margin: -5.5px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 12px rgba(247, 215, 138, 0.8);
}
.ring.r2 .dot {
  background: var(--brass);
  box-shadow: 0 0 12px rgba(233, 188, 92, 0.85);
}
.ring.r3 .dot {
  width: 8px;
  height: 8px;
  margin: -4px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(207, 227, 236, 0.6);
}

/* --------------------------------------------------------------- contact */
.contact {
  text-align: center;
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(233, 188, 92, 0.14), transparent 68%),
    var(--ground);
  border-block-start: 1px solid var(--line-soft);
}
.contact-inner h2 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  max-width: 20ch;
  margin-inline: auto;
  margin-block-end: 18px;
}
.contact-lede,
.contact-inner > p {
  color: var(--muted);
  max-width: 52ch;
  margin-inline: auto;
  font-size: 1.04rem;
}
.contact-actions {
  display: flex;
  gap: 13px;
  justify-content: center;
  flex-wrap: wrap;
  margin-block: 38px 26px;
}
.contact-where {
  font-size: 13px;
  color: var(--faint);
}

/* ---------------------------------------------------------------- footer */
.foot {
  border-block-start: 1px solid var(--line-soft);
  padding-block: 40px;
  background: var(--ground-2);
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.foot-brand strong {
  font-family: var(--latin);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--brass);
}
.foot-brand span,
.foot-note,
.foot-legal {
  font-size: 13px;
  color: var(--faint);
}
.foot-note {
  max-width: 40ch;
}

/* -------------------------------------------------------------- reveals */
/*
 * Entrance choreography. Elements start displaced and are released by an
 * IntersectionObserver adding `.in`. The per-element `data-d` becomes a
 * stagger delay in main.js.
 *
 * Everything here degrades to "already visible" when the observer never runs
 * (no JS, old browser) — see the `.no-js` guard main.js removes on boot.
 */
html.js-on .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js-on .reveal.in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .marquee-track {
    animation: none;
  }
  .scroll-cue {
    display: none;
  }
}

/* ------------------------------------------------------- language switch */
/*
 * A brass curtain sweeps across while the text is swapped underneath, so the
 * reader never sees three languages half-applied. Sweep direction follows the
 * script: it enters from the side the new language reads from.
 */
.lang-veil {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    var(--brass) 0%,
    var(--brass-deep) 55%,
    var(--gold-hi) 130%
  );
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.42s var(--ease-in-out);
}
.lang-veil.cover {
  transform: scaleX(1);
}
.lang-veil.gone {
  transform-origin: inline-end;
  transform: scaleX(0);
}

/* --------------------------------------------------------------- the crest */
/*
 * A vector rebuild of the AUS logo — mortarboard, laurel wreath, open book.
 * Vector rather than the original raster so it stays sharp at any size and can
 * assemble itself: the wreath grows leaf by leaf, the cap drops onto it, the
 * book opens underneath.
 *
 * Colours are taken straight from the logo: white cap and pages, gold laurel
 * and tassel, gold "U" between white "A" and "S".
 */
.brand-mark .bm-cap {
  fill: var(--text);
}
.brand-mark .bm-cap-under {
  stroke: var(--text);
}
.brand-mark .bm-tassel,
.brand-mark .bm-book {
  stroke: var(--brass);
  fill: none;
}
.brand-mark circle.bm-tassel {
  fill: var(--brass);
  stroke: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--brass);
}

/* The logo sets AUS in a serif; the wordmark follows it. */
.brand-text strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.1em;
  color: var(--text);
}
.brand-text em {
  font-family: var(--latin);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.crest-wrap {
  display: flex;
  justify-content: center;
  margin-block-end: 34px;
}
.crest {
  width: clamp(190px, 26vw, 260px);
  height: auto;
  overflow: visible;
}

.crest-word {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 58px;
  letter-spacing: 0.04em;
}

/* Resting state before the section scrolls in. */
html.js-on .crest-wreath use {
  opacity: 0;
  transform: scale(0.2);
  transform-box: fill-box;
  transform-origin: 0 50%;
}
html.js-on .crest-cap {
  opacity: 0;
  transform: translateY(-26px);
}
html.js-on .crest-book {
  opacity: 0;
  transform: translateY(16px);
}
html.js-on .crest-word {
  opacity: 0;
}

/* Assembly, released when the surrounding .reveal is observed. */
html.js-on .crest-wrap.in .crest-wreath use {
  animation: leafIn 0.62s var(--ease) forwards;
}
html.js-on .crest-wrap.in .crest-cap {
  animation: capIn 0.85s var(--ease) 0.5s forwards;
}
html.js-on .crest-wrap.in .crest-book {
  animation: bookIn 0.8s var(--ease) 0.72s forwards;
}
html.js-on .crest-wrap.in .crest-word {
  animation: wordIn 1s var(--ease) 0.62s forwards;
}

@keyframes leafIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes capIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bookIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes wordIn {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js-on .crest-wreath use,
  html.js-on .crest-cap,
  html.js-on .crest-book,
  html.js-on .crest-word {
    opacity: 1;
    transform: none;
  }
}
