/* ==========================================================================
   Glazbena škola Slavonski Brod — static homepage
   Tokens: Red #BD272C (logo) · Maroon #3A0810 · Ink #1A1517 · Mist #F4F1F0
   Headings: Newsreader (Cormorant was dropped: its š/ž/č carons are badly drawn) · Body/UI: Manrope
   ========================================================================== */

:root {
  --red: #bd272c;
  --red-deep: #9e1f24;
  --maroon: #3a0810;
  --maroon-deep: #24050a;
  --ink: #1a1517;
  --gray: #6e6468;
  --mist: #f4f1f0;
  --white: #ffffff;
  --line: rgba(26, 21, 23, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 96px);
  --max: 1440px;
  --section: clamp(72px, 9vw, 150px);

  --h1: clamp(46px, 6.4vw, 104px);
  --h2: clamp(38px, 4vw, 64px);
  --h3: clamp(26px, 2.1vw, 34px);
  --body: clamp(16px, 1vw, 18px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 92px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.is-loading { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h1 em, h2 em { font-style: italic; font-weight: inherit; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { position: relative; padding-block: var(--section); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head p { margin-top: 18px; color: var(--gray); font-size: clamp(17px, 1.15vw, 20px); line-height: 1.55; }
.section-head--row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px 64px;
  align-items: end;
}
.section-head--row p { margin-top: 0; max-width: 560px; }
.section-head--row .btn { justify-self: end; margin-bottom: 10px; }

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: var(--white); color: var(--maroon); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-nav { min-height: 44px; padding: 0 22px; font-size: 15px; background: var(--red); color: var(--white); }
.btn-nav:hover { background: var(--red-deep); }

.link {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  font-weight: 600;
  font-size: 16px;
  color: var(--red);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1.5px;
  background-position: 0 100%;
  transition: background-size .3s var(--ease-out);
}
.link:hover { background-size: 30% 1.5px; }

/* Reveal on scroll (one calm fade; the hero is the only orchestrated moment) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--white);
  transition: transform .85s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s .85s;
}
.loader.is-done { transform: translateY(-100%); visibility: hidden; pointer-events: none; }

.loader-stave {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  display: grid;
  gap: 22px;
  transform: translateY(-50%);
  pointer-events: none;
}
.loader-stave i {
  display: block;
  height: 1px;
  background: rgba(255,255,255,.28);
  transform: scaleX(0);
  transform-origin: left center;
  animation: stave-draw 1.1s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 0.09s + 0.1s);
}
@keyframes stave-draw { to { transform: scaleX(1); } }

.loader-mark {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 26px;
  padding: 44px 56px;
  background: var(--maroon);
}
.loader-logo {
  width: 87px;
  height: 100px;
  color: var(--white);
  clip-path: inset(100% 0 0 0);
  animation: mark-fill 1s var(--ease-out) .4s forwards;
}
@keyframes mark-fill { to { clip-path: inset(0 0 0 0); } }
.loader-mark span {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(14px);
  animation: mark-rise .9s var(--ease-out) .9s forwards;
}
@keyframes mark-rise { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: var(--white);
}
.topbar {
  font-size: 14px;
  font-weight: 500;
  background: rgba(36, 5, 10, .55);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: blur(6px);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 24px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 24px; }
.topbar a { opacity: .85; transition: opacity .2s; }
.topbar a:hover { opacity: 1; }
.topbar-social { display: flex; gap: 14px; margin-left: 8px; padding-left: 20px; border-left: 1px solid var(--line-light); }
.topbar-social a { display: grid; place-items: center; }

.navbar { transition: background-color .3s ease, box-shadow .3s ease; }
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 32px; }
.brand { display: block; flex: none; }
.brand img { width: auto; height: 54px; }
.brand-light { display: none; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.menu { display: flex; gap: 30px; font-weight: 600; font-size: 15.5px; }
.menu a { position: relative; display: inline-block; padding: 6px 0; }
.menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.menu a:hover::after, .menu .is-active a::after { transform: scaleX(1); }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; z-index: 2; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: currentColor; transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { content: ""; left: 0; top: -7px; }
.nav-toggle span::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Scrolled state: header becomes fixed, white, red logo */
.site-header.is-scrolled { position: fixed; color: var(--ink); animation: header-in .35s var(--ease-out); }
.site-header.is-scrolled .topbar { display: none; }
.site-header.is-scrolled .navbar { background: rgba(255,255,255,.96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.site-header.is-scrolled .navbar .wrap { min-height: 74px; }
.site-header.is-scrolled .brand img { height: 46px; }
.site-header.is-scrolled .brand-dark { display: none; }
.site-header.is-scrolled .brand-light { display: block; }
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 140px;
  color: var(--white);
  background: var(--maroon);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  transform: scale(1.12);
  transition: transform 7s var(--ease-out);
}
.hero.is-in .hero-bg img { transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(36,5,10,.88) 0%, rgba(36,5,10,.7) 42%, rgba(36,5,10,.25) 100%),
    linear-gradient(180deg, rgba(36,5,10,.35) 0%, rgba(36,5,10,0) 35%, rgba(36,5,10,.75) 100%);
}
.hero-wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 820px; }
.hero-kicker { font-size: 15px; font-weight: 600; letter-spacing: .04em; opacity: .9; margin-bottom: 28px; }
.hero h1 { margin-bottom: 30px; font-weight: 340; }
.hero-lead { max-width: 560px; font-size: clamp(17px, 1.2vw, 20px); line-height: 1.55; opacity: .92; margin-bottom: 40px; }
.hero-actions .line > span { display: flex; flex-wrap: wrap; gap: 14px; }

/* Line-mask reveal: each line of copy rises out of its own clipping box */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: var(--ld, 0s); }
.hero.is-in .line > span { transform: none; }
.hero-kicker .line > span { --ld: .05s; }
.hero h1 .line:nth-child(1) > span { --ld: .15s; }
.hero h1 .line:nth-child(2) > span { --ld: .27s; }
.hero-lead .line > span { --ld: .42s; }
.hero-actions .line > span { --ld: .55s; }

/* Floating notes: positioned by inline --x/--y over the right half, masked away from the copy.
   Two independent loops per glyph: a slow drift (--p) and an occasional brightening (--tw). */
.hero-notes {
  position: absolute; top: var(--header-h); bottom: 0; right: 0;
  width: 54%;
  z-index: 1;
  pointer-events: none;
  color: var(--white);
  -webkit-mask: radial-gradient(ellipse 95% 110% at 100% 100%, #000 0%, rgba(0,0,0,.55) 40%, transparent 78%);
  mask: radial-gradient(ellipse 95% 110% at 100% 100%, #000 0%, rgba(0,0,0,.55) 40%, transparent 78%);
}
.fn {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 40px; height: 60px;
  fill: currentColor;
  overflow: visible;
  opacity: 0;
  transform: translateY(24px) scale(var(--s)) rotate(var(--r));
  transition: opacity .9s ease, transform 1.2s var(--ease-out);
  transition-delay: calc(var(--e) + .9s);
}
.fn[viewBox="0 0 56 60"] { width: 56px; }
.hero.is-in .fn {
  opacity: .16;
  transform: scale(var(--s)) rotate(var(--r));
  animation: note-drift var(--p) ease-in-out infinite, note-glow var(--tw) ease-in-out infinite;
  animation-delay: calc(var(--d) + var(--e) + 2.2s), calc(var(--td) + var(--e) + 2.2s);
}
@keyframes note-drift {
  0%, 100% { transform: translateY(0) scale(var(--s)) rotate(var(--r)); }
  50% { transform: translateY(-18px) scale(var(--s)) rotate(calc(var(--r) * -1)); }
}
@keyframes note-glow {
  0%, 82%, 100% { opacity: .16; }
  91% { opacity: .6; }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  width: 26px; height: 42px;
  transform: translateX(-50%);
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 13px;
  opacity: 0;
  transition: opacity .8s ease 1.8s, border-color .2s;
}
.hero.is-in .hero-scroll { opacity: 1; }
.hero-scroll:hover { border-color: var(--white); }
.hero-scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  background: var(--white);
  border-radius: 2px;
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* --------------------------------------------------------------------------
   Programs — a real sequence (three stages), drawn as one stave line with stops
   -------------------------------------------------------------------------- */
.stages {
  counter-reset: stage;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
  position: relative;
}
.stages::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 7px;
  height: 1px;
  background: var(--line);
}
.stage { position: relative; padding-top: 36px; display: flex; flex-direction: column; align-items: flex-start; }
.stage .btn { margin-top: auto; }
.stage::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 15px; height: 15px;
  background: var(--red);
  transform: rotate(-20deg) scaleY(.72);
  border-radius: 50%;
}
.stage-step { display: block; font-size: 14px; font-weight: 600; color: var(--gray); margin-bottom: 18px; }
.stage h3 { margin-bottom: 16px; }
.stage p { color: var(--gray); margin-bottom: 28px; max-width: 38ch; }

/* --------------------------------------------------------------------------
   Departments — a list, not cards: name large, instruments small, row reveals on hover
   -------------------------------------------------------------------------- */
.departments { background: var(--mist); }
.dept-list { border-top: 1px solid var(--line); }
.dept-list li { border-bottom: 1px solid var(--line); }
.dept-list a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) 40px;
  align-items: center;
  gap: 24px;
  padding: 26px 8px;
  transition: background-color .3s ease, padding-left .3s var(--ease-out);
}
.dept-list a:hover { background: var(--white); padding-left: 20px; }
.dept-icon { width: 44px; height: 44px; fill: currentColor; color: var(--ink); transition: color .3s; } /* Music Instrument Outline pack: filled outline paths, assets/img/instruments/ */
.dept-list a:hover .dept-icon { color: var(--red); }
.dept-name { font-family: var(--font-display); font-size: clamp(26px, 2.3vw, 38px); line-height: 1.05; font-weight: 400; }
.dept-sub { color: var(--gray); font-size: 15px; }
.dept-arrow { position: relative; width: 40px; height: 16px; justify-self: end; }
.dept-arrow::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transform: translateY(-50%) scaleX(.5); transform-origin: right; transition: transform .3s var(--ease-out); }
.dept-arrow::after { content: ""; position: absolute; right: 1px; top: 50%; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
a:hover > .dept-arrow::before, a:hover .dept-arrow::before { transform: translateY(-50%) scaleX(1); }

/* --------------------------------------------------------------------------
   Tradition
   -------------------------------------------------------------------------- */
.tradition-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.tradition-photo { position: relative; }
.tradition-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tradition-copy h2 { margin-bottom: 26px; max-width: 15ch; }
.tradition-copy p { color: var(--gray); font-size: clamp(16px, 1.05vw, 18px); line-height: 1.7; max-width: 60ch; }
/* Row list: the Odjeli treatment for any group of links (border rows + drawn arrow) */
.row-list { border-top: 1px solid var(--line); }
.row-list li { border-bottom: 1px solid var(--line); }
.row-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 4px;
  font-family: var(--font-display);
  font-size: clamp(22px, 1.7vw, 28px);
  line-height: 1.1;
  transition: padding-left .3s var(--ease-out);
}
.row-list a:hover { padding-left: 14px; color: var(--red); }
.tradition-links { margin-top: 36px; max-width: 520px; }

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */
.news { background: var(--mist); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.news-media { display: block; overflow: hidden; background: var(--white); margin-bottom: 22px; }
.news-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease-out); }
.news-card:hover .news-media img { transform: scale(1.04); }
.news-card time { display: block; font-size: 14px; font-weight: 600; color: var(--red); margin-bottom: 10px; }
.news-card h3 { margin-bottom: 12px; }
.news-card h3 a { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0 1.5px; background-position: 0 100%; transition: background-size .3s var(--ease-out); }
.news-card:hover h3 a { background-size: 100% 1.5px; }
.news-card p { color: var(--gray); font-size: 16px; }

/* --------------------------------------------------------------------------
   Enrol band
   -------------------------------------------------------------------------- */
.enrol {
  position: relative;
  color: var(--white);
  background: var(--maroon) url(../img/ulaz.jpg) center 40% / cover no-repeat;
}
/* same shade as the hero: maroon, heavier on the left where the copy sits */
.enrol::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(36,5,10,.9) 0%, rgba(36,5,10,.74) 45%, rgba(36,5,10,.45) 100%),
    linear-gradient(180deg, rgba(36,5,10,.3) 0%, rgba(36,5,10,0) 40%, rgba(36,5,10,.5) 100%);
}
.enrol .wrap { position: relative; }
.enrol-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.enrol-copy h2 { margin-bottom: 20px; }
.enrol-copy p { max-width: 48ch; opacity: .92; font-size: clamp(16px, 1.1vw, 19px); }
.enrol-links { border-top: 1px solid rgba(255,255,255,.3); }
.enrol-links li { border-bottom: 1px solid rgba(255,255,255,.3); }
.enrol-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.1;
  transition: padding-left .3s var(--ease-out);
}
.enrol-links a:hover { padding-left: 16px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--maroon); color: rgba(255,255,255,.82); padding-top: clamp(64px, 7vw, 110px); }
.site-footer h3 { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 18px; }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: clamp(48px, 5vw, 80px);
  font-size: 15.5px;
  line-height: 1.65;
}
.footer-brand img { height: 56px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 32ch; }
.footer-social { display: flex; gap: 18px; margin-top: 24px; }
.footer-contact p + p { margin-top: 12px; }
.footer-phones dl { display: grid; gap: 8px; }
.footer-phones dl div { display: flex; justify-content: space-between; gap: 16px; max-width: 280px; }
.footer-phones dt { opacity: .7; }
.footer-phones dd a { color: var(--white); font-weight: 600; }
.footer-hours { margin-top: 18px; font-size: 14px; opacity: .75; }
.footer-nav ul { display: grid; gap: 8px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 26px;
  border-top: 1px solid var(--line-light);
  font-size: 14px;
}
.footer-partner { display: inline-block; background: var(--white); padding: 6px 10px; }
.footer-partner img { height: 44px; width: auto; }
.footer-bottom a:not(.footer-partner) { color: var(--white); font-weight: 600; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dept-list a { grid-template-columns: 48px minmax(0, 1fr) 40px; }
  .dept-sub { grid-column: 2; }
  .dept-arrow { grid-row: 1 / span 2; grid-column: 3; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .topbar-right > a { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 40px;
    padding: 100px var(--gutter) 60px;
    background: var(--maroon);
    color: var(--white);
    transform: translateX(100%);
    transition: transform .45s var(--ease-out);
  }
  .site-nav.is-open { transform: none; }
  .site-header.is-scrolled .site-nav.is-open ~ *, .site-header .site-nav.is-open { color: var(--white); }
  .menu { flex-direction: column; gap: 14px; font-family: var(--font-display); font-size: 34px; font-weight: 400; }
  .site-nav .btn-nav { min-height: 54px; padding: 0 30px; font-size: 16px; }
  .site-header.is-scrolled .nav-toggle[aria-expanded="true"] { color: var(--white); }
  .hero { padding-bottom: 150px; }
  .stages { grid-template-columns: 1fr; gap: 40px; }
  .stages::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .stage { padding-top: 0; padding-left: 40px; }
  .stage::before { top: 6px; }
  .section-head--row { grid-template-columns: 1fr; align-items: start; }
  .tradition-grid, .enrol-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .topbar .wrap { justify-content: center; }
  .topbar-right { display: none; }
  .topbar-left { gap: 16px; font-size: 13px; }
  .brand img, .site-header.is-scrolled .brand img { height: 42px; }
  .hero { padding-top: calc(var(--header-h) + 72px); }
  .hero h1 { font-size: clamp(42px, 12vw, 56px); }
  .hero-notes { width: 80%; }
  .fn:nth-child(3n) { display: none; }
  .dept-list a { grid-template-columns: 36px minmax(0, 1fr); padding: 20px 4px; gap: 16px; }
  .dept-list a:hover { padding-left: 4px; }
  .dept-icon { width: 30px; height: 30px; }
  .dept-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .line > span { transform: none; transition: none; }
  .hero-bg img { transform: none; transition: none; }
  .fn { opacity: .16; transform: scale(var(--s)) rotate(var(--r)); transition: none; }
  .hero.is-in .fn { animation: none; }
  .hero-scroll { opacity: 1; transition: none; }
  .hero-scroll span { animation: none; }
  .news-media img, .dept-list a, .enrol-links a { transition: none; }
}

/* Large screens: scale the 1440 canvas up instead of stretching it */
@media (min-width: 2100px) { body { zoom: 1.2; } .hero { min-height: calc(100svh / 1.2); } }
@media (min-width: 2800px) { body { zoom: 1.5; } .hero { min-height: calc(100svh / 1.5); } }
