/* =========================================================
   New English Medium School — static site theme
   Palette: Google blue / red / yellow / green
   ========================================================= */
:root {
  --blue: #4285f4;   --blue-d: #1a73e8;  --blue-t: #e8f0fe;
  --red: #ea4335;    --red-d: #c5221f;   --red-t: #fce8e6;
  --yellow: #fbbc05; --yellow-d: #b06000; --yellow-t: #fef7e0;
  --green: #34a853;  --green-d: #137333; --green-t: #e6f4ea;
  --purple: #a142f4; --purple-d: #7627bb; --purple-t: #f3e8fd;
  --ink: #202124;
  --ink-2: #3c4043;
  --muted: #5f6368;
  --line: #e3e6ea;
  --soft: #f8f9fb;
  --navy: #0f1d3d;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(60,64,67,.12), 0 4px 14px rgba(60,64,67,.08);
  --shadow-lg: 0 18px 40px -12px rgba(32,33,36,.25);
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-d); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section-soft { background: var(--soft); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 1000; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- colour helpers ---------- */
.c-blue { --c: var(--blue); --cd: var(--blue-d); --ct: var(--blue-t); }
.c-red { --c: var(--red); --cd: var(--red-d); --ct: var(--red-t); }
.c-yellow { --c: var(--yellow); --cd: var(--yellow-d); --ct: var(--yellow-t); }
.c-green { --c: var(--green); --cd: var(--green-d); --ct: var(--green-t); }
.c-purple { --c: var(--purple); --cd: var(--purple-d); --ct: var(--purple-t); }
.t-blue { color: var(--blue); } .t-red { color: var(--red); } .t-yellow { color: var(--yellow); } .t-green { color: var(--green); }

/* Google-style multi-colour word */
.g-word span:nth-child(4n+1) { color: var(--blue); }
.g-word span:nth-child(4n+2) { color: var(--red); }
.g-word span:nth-child(4n+3) { color: var(--yellow); }
.g-word span:nth-child(4n+4) { color: var(--green); }

/* 4-colour stripe */
.g-stripe { height: 5px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--red) 25% 50%, var(--yellow) 50% 75%, var(--green) 75% 100%); }

/* ---------- icons ---------- */
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; vertical-align: -.25em; }
.mask-icon { display: inline-block; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

/* ---------- buttons ---------- */
.btn {
  --bc: var(--blue-d);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 500; font-size: 1.05rem;
  padding: .8em 1.6em; border-radius: 999px; border: 2px solid var(--bc);
  background: var(--bc); color: #fff; cursor: pointer; line-height: 1.2;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  box-shadow: 0 6px 0 -1px rgba(0,0,0,.12);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 18px -6px var(--bc); }
.btn:active { transform: translateY(1px); }
.btn-red { --bc: var(--red); }
.btn-green { --bc: var(--green-d); }
.btn-yellow { --bc: var(--yellow); color: var(--ink); }
.btn-yellow:hover { color: var(--ink); }
.btn-outline { background: transparent; color: var(--bc); box-shadow: none; }
.btn-outline:hover { background: var(--bc); color: #fff; }
.btn-white { --bc: #fff; color: var(--ink); }
.btn-white:hover { color: var(--ink); }
.btn-sm { font-size: .95rem; padding: .6em 1.2em; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  color: var(--cd, var(--blue-d)); background: var(--ct, var(--blue-t));
  padding: .35em 1em; border-radius: 999px; margin-bottom: 1rem;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--blue)); }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.squiggle { display: block; width: 120px; height: 14px; margin: .2rem auto 1rem; }

/* =========================================================
   TOP BAR + HEADER
   ========================================================= */
.topbar { background: var(--navy); color: #cfd6e6; font-size: .92rem; }
.topbar .container { display: flex; align-items: center; gap: 24px; min-height: 44px; }
.topbar a { color: #e8ecf5; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--yellow); }
.topbar-contact { display: flex; gap: 22px; white-space: nowrap; }
.topbar-social { display: flex; gap: 14px; margin-left: auto; }
.ticker { flex: 1; overflow: hidden; display: flex; align-items: center; gap: 10px; min-width: 0; }
.ticker-label { flex: none; background: var(--red); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track span { display: inline-block; white-space: nowrap; padding-left: 100%; animation: ticker 18s linear infinite; color: #fff; font-weight: 600; }
.ticker-track:hover span { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(32,33,36,.1); }
.nav { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; letter-spacing: .02em; }
.brand-sub { font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }

.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.menu > li { position: relative; }
.menu-link {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; color: var(--ink);
  background: none; border: 0; cursor: pointer; line-height: 1.2;
}
.menu-link .icon { width: 18px; height: 18px; transition: transform .2s; }
.menu > li:hover > .menu-link, .menu-link:focus-visible { background: var(--ct); color: var(--cd); }
.menu > li.active > .menu-link { color: var(--cd); }
.menu > li.active > .menu-link::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); transform: translateX(-50%); }
.submenu {
  position: absolute; top: calc(100% + 10px); left: -10px; min-width: 250px;
  list-style: none; margin: 0; padding: 10px; background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-lg); border-top: 4px solid var(--c);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.submenu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.menu > li:hover .submenu, .menu > li:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.menu > li:hover .menu-link .icon { transform: rotate(180deg); }
.submenu a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--ct); color: var(--cd); }
.nav-cta { flex: none; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--blue-t); color: var(--blue-d); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .nav-cta { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .topbar-contact, .topbar-social { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .menu-open .site-header { z-index: 300; }
  .brand img { width: 35px; height: 35px; }
  .brand-name { font-size: 1.5rem; }
  .menu {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); z-index: 200;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 84px 18px 30px;
    background: #fff; overflow-y: auto; box-shadow: -20px 0 50px rgba(0,0,0,.15);
    transform: translateX(105%); transition: transform .3s ease;
  }
  .menu.open { transform: none; }
  .menu-link { width: 100%; justify-content: space-between; padding: 13px 16px; font-size: 1.1rem; border-radius: 14px; }
  .menu > li.active > .menu-link::after { display: none; }
  .menu > li.active > .menu-link { background: var(--ct); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--c); border-radius: 0; margin: 2px 0 8px 18px; padding: 0 0 0 6px; min-width: 0; display: none; }
  .submenu::before { display: none; }
  li.open > .submenu { display: block; }
  li.open > .menu-link .icon { transform: rotate(180deg); }
  .menu > li:hover .menu-link .icon { transform: none; }
  li.open:hover > .menu-link .icon { transform: rotate(180deg); }
  .menu > li.menu-close { position: absolute; top: 16px; right: 18px; }
  .menu-mobile-cta { margin-top: 18px; }
  .menu-mobile-cta .btn { width: 100%; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(15,29,61,.45); z-index: 150; opacity: 0; visibility: hidden; transition: .3s; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}
@media (min-width: 961px) { .menu-close, .menu-mobile-cta, .nav-backdrop { display: none !important; } }
@media (max-width: 420px) { .brand-sub { display: none; } }

/* =========================================================
   DECORATIVE SHAPES
   ========================================================= */
.shape { position: absolute; pointer-events: none; z-index: 0; }
.shape-circle { border-radius: 50%; }
.shape-ring { border-radius: 50%; border: 10px solid currentColor; background: transparent; }
.shape-dots { width: 140px; height: 110px; background-image: radial-gradient(currentColor 2.5px, transparent 3px); background-size: 20px 20px; }
.float { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 7s ease-in-out -2s infinite; }
.spin { animation: spin 22s linear infinite; }
@media (max-width: 640px) { .hero > .shape, .page-hero > .shape { opacity: .22 !important; } }
@keyframes float { 50% { transform: translateY(-16px) rotate(6deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 1; }
.wave svg { width: 100%; height: clamp(40px, 6vw, 90px); display: block; }

/* =========================================================
   HERO (home)
   ========================================================= */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #f3f7ff 0%, #fff8e6 55%, #fdeeee 100%); padding: clamp(40px, 7vw, 90px) 0 clamp(90px, 11vw, 150px); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .28em; background: var(--yellow); opacity: .45; z-index: -1; border-radius: 6px; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.8rem 0 2rem; }
.hero-mini { display: flex; flex-wrap: wrap; gap: 26px; }
.hero-mini div { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.hero-mini .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ct); color: var(--cd); }

.hero-visual { position: relative; }
.hero-frame { position: relative; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; padding: 12px; background: conic-gradient(from 20deg, var(--blue), var(--red), var(--yellow), var(--green), var(--blue)); box-shadow: var(--shadow-lg); }
.slider { position: relative; aspect-ratio: 1680 / 1036; border-radius: inherit; overflow: hidden; background: #ddd; }
.hero-frame .slider { border-radius: 44% 56% 40% 60% / 50% 42% 58% 50%; aspect-ratio: 1.12; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.slide.is-active img { animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.14); } }
.slider-dots { position: absolute; left: 0; right: 0; bottom: -46px; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; background: #c9ced6; cursor: pointer; transition: width .3s, background .3s; }
.slider-dots button.is-active { width: 34px; background: var(--blue); }
.slider-dots button:nth-child(4n+2).is-active { background: var(--red); }
.slider-dots button:nth-child(4n+3).is-active { background: var(--yellow); }
.slider-dots button:nth-child(4n+4).is-active { background: var(--green); }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); z-index: 3; transition: .2s; }
.slider-nav:hover { background: var(--blue-d); color: #fff; }
.slider-nav.prev { left: -12px; } .slider-nav.next { right: -12px; }

.float-card { position: absolute; z-index: 4; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.float-card small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }
.float-card .big { font-family: var(--font-head); font-size: 1.6rem; color: var(--cd); }
.float-card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ct); color: var(--cd); }
.float-card.fc-1 { left: -24px; bottom: 8%; }
.float-card.fc-2 { right: -10px; top: 2%; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-mini { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 10px auto 30px; width: 100%; }
}
@media (max-width: 560px) {
  .float-card { padding: 8px 12px; font-size: .9rem; }
  .float-card .ic { width: 38px; height: 38px; }
  .float-card .big { font-size: 1.3rem; }
  .float-card.fc-1 { left: -6px; } .float-card.fc-2 { right: -6px; }
  .slider-nav { display: none; }
  .hero h1 .hl { white-space: normal; }
}

/* =========================================================
   CARDS / GRIDS
   ========================================================= */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 34px); position: relative; }
.card-bordered { border: 1px solid var(--line); box-shadow: none; }

/* feature cards (home) */
.feature { background: var(--ct); border-radius: var(--radius); padding: 34px 26px 30px; text-align: center; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.feature::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: var(--c); opacity: .12; right: -50px; top: -50px; transition: transform .4s; }
.feature:hover { transform: translateY(-8px); box-shadow: 0 22px 40px -18px var(--c); }
.feature:hover::after { transform: scale(1.6); }
.feature .ico { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 28px; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 0 -2px var(--c); transform: rotate(-4deg); transition: transform .3s; }
.feature:hover .ico { transform: rotate(4deg) scale(1.05); }
.feature .ico img { width: 56px; height: 56px; object-fit: contain; }
.feature h3 { font-size: 1.35rem; color: var(--cd); }
.feature p { color: var(--ink-2); margin: 0; font-size: .98rem; }

/* about split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.collage { position: relative; padding: 0 40px 60px 0; }
.collage .main { border-radius: 30px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.collage .sub { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 8px solid #fff; box-shadow: var(--shadow-lg); }
.collage .badge { position: absolute; left: -14px; top: 28px; background: var(--red); color: #fff; border-radius: 22px; padding: 16px 20px; font-family: var(--font-head); line-height: 1.1; box-shadow: var(--shadow-lg); transform: rotate(-5deg); }
.collage .badge b { display: block; font-size: 2.2rem; }
.collage .shape-dots { left: -30px; bottom: 10px; color: var(--yellow); }
.checklist { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checklist .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); margin-top: 1px; }
.checklist .tick .icon { width: 18px; height: 18px; }

/* mission band */
.band { background: var(--blue-d); color: #fff; overflow: hidden; }
.band h2, .band h3 { color: #fff; }
.band .section-head p { color: #d2e3fc; }
.band .chip { background: rgba(255,255,255,.15); color: #fff; }
.mva { background: #fff; color: var(--ink-2); border-radius: var(--radius); padding: 40px 30px 34px; text-align: center; position: relative; transition: transform .3s; border-bottom: 8px solid var(--c); }
.mva:hover { transform: translateY(-8px) rotate(-1deg); }
.mva h3 { color: var(--cd); letter-spacing: .06em; }
.mva .ico { width: 96px; height: 96px; margin: -88px auto 18px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px var(--ct), var(--shadow); }
.mva .ico img { width: 56px; height: 56px; }
.mva p { margin: 0; }
.band .grid { margin-top: 70px; row-gap: 80px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 26px 14px; border-radius: var(--radius); background: var(--ct); border: 2px dashed var(--c); }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4.5vw, 3.2rem); color: var(--cd); line-height: 1; }
.stat .lbl { font-weight: 700; color: var(--ink-2); margin-top: 8px; }

/* facility cards */
.fac { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.fac:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.fac-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.fac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fac:hover .fac-img img { transform: scale(1.08); }
.fac-tag { position: absolute; left: 16px; bottom: -18px; width: 48px; height: 48px; border-radius: 16px; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; box-shadow: 0 6px 14px -4px var(--c); z-index: 2; }
.fac-body { padding: 30px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.fac-body h3 { font-size: 1.3rem; margin-bottom: .4em; }
.fac-body p { color: var(--muted); font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.link-arrow { margin-top: auto; font-family: var(--font-head); font-weight: 500; color: var(--cd); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover { color: var(--cd); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* leaders */
.leader { display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: center; background: var(--ct); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.leader img { width: 170px; height: 170px; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 4px var(--c); }
.leader blockquote { margin: 0 0 .8rem; font-family: var(--font-head); font-size: 1.18rem; color: var(--ink); line-height: 1.45; }
.leader .who { font-weight: 800; color: var(--cd); }
.leader .who small { display: block; color: var(--muted); font-weight: 600; }
.leader .qmark { position: absolute; right: 18px; top: 6px; width: 70px; height: 70px; color: var(--c); opacity: .18; }
@media (max-width: 560px) { .leader { grid-template-columns: 1fr; text-align: center; } .leader img { margin: 0 auto; width: 140px; height: 140px; } }

/* safety */
.safe { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border-left: 6px solid var(--c); transition: transform .3s; }
.safe:hover { transform: translateX(6px); }
.safe .ico { flex: none; width: 70px; height: 70px; border-radius: 20px; background: var(--ct); display: grid; place-items: center; }
.safe .ico img { width: 42px; height: 42px; }
.safe h3 { font-size: 1.25rem; margin-bottom: .3em; }
.safe p { margin: 0; color: var(--muted); font-size: .97rem; }

/* photo mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.mosaic a { border-radius: 20px; overflow: hidden; position: relative; display: block; }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform .5s; }
.mosaic a:hover img { transform: scale(1.14); }
.mosaic a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(15,29,61,.55)); opacity: 0; transition: .3s; }
.mosaic a:hover::after { opacity: 1; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }

/* CTA band */
.cta { position: relative; overflow: hidden; background: var(--yellow); border-radius: 34px; padding: clamp(36px, 6vw, 64px); display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; color: var(--ink); }
.cta h2 { margin: 0 0 .3em; }
.cta p { margin: 0; font-weight: 600; font-size: 1.1rem; }
.cta > *:not(.shape) { position: relative; z-index: 1; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   INNER PAGE BANNER
   ========================================================= */
.page-hero { position: relative; overflow: hidden; background: var(--ct); padding: clamp(50px, 8vw, 90px) 0 clamp(80px, 10vw, 120px); text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); position: relative; z-index: 2; margin-bottom: .3em; }
.page-hero h1::after { content: ""; display: block; width: 70px; height: 6px; border-radius: 6px; margin: 14px auto 0; background: var(--c); }
.crumbs { position: relative; z-index: 2; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; list-style: none; padding: 8px 20px; margin: 0; background: #fff; border-radius: 999px; font-weight: 700; font-size: .95rem; box-shadow: var(--shadow); }
.crumbs li + li::before { content: "›"; color: var(--c); margin-right: 8px; font-weight: 800; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cd); }
.crumbs [aria-current] { color: var(--cd); }

.content { padding: clamp(50px, 7vw, 90px) 0; }
.content-narrow { max-width: 900px; margin: 0 auto; }

/* profile (chairman/principal) */
.profile { display: grid; grid-template-columns: 340px 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } }
.profile-card { position: sticky; top: calc(var(--header-h) + 24px); text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 28px; overflow: hidden; }
@media (max-width: 900px) { .profile-card { position: static; max-width: 420px; margin: 0 auto; } }
.profile-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; margin-bottom: 18px; }
.profile-card h2 { font-size: 1.6rem; margin-bottom: .2em; }
.profile-card .deg { display: inline-block; font-weight: 800; color: var(--cd); background: var(--ct); padding: 3px 14px; border-radius: 999px; font-size: .92rem; }
.profile-card .exp { margin: 14px 0 0; color: var(--muted); font-weight: 600; font-size: .95rem; }
.big-quote { position: relative; background: var(--ct); border-radius: var(--radius); padding: 34px 34px 30px 90px; margin: 0 0 2rem; }
.big-quote .icon { position: absolute; left: 24px; top: 26px; width: 50px; height: 50px; color: var(--c); }
.big-quote p { font-family: var(--font-head); font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--ink); line-height: 1.4; margin: 0; }
.big-quote cite { display: block; margin-top: 10px; font-style: normal; font-weight: 800; color: var(--cd); }
.prose p { font-size: 1.08rem; }
.prose p:first-of-type::first-letter { float: left; font-family: var(--font-head); font-weight: 600; font-size: 3.6em; line-height: .9; margin: .06em .12em 0 0; color: var(--c); }
.signature { margin-top: 2rem; font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); }
.signature small { display: block; font-family: var(--font-body); color: var(--muted); font-size: .95rem; font-weight: 600; }

/* zigzag (infrastructure) */
.zigzag { display: grid; gap: clamp(50px, 7vw, 90px); }
.zz { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.zz:nth-child(even) .zz-img { order: 2; }
.zz-img { position: relative; }
.zz-img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 30px; position: relative; z-index: 1; box-shadow: var(--shadow-lg); }
.zz-img::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 30px; background: var(--ct); border: 3px dashed var(--c); }
.zz:nth-child(even) .zz-img::before { inset: 18px 18px -18px -18px; }
.zz-num { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--c); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; margin-bottom: 14px; transform: rotate(-6deg); }
.zz h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.zz p { color: var(--ink-2); }
@media (max-width: 820px) { .zz { grid-template-columns: 1fr; } .zz:nth-child(even) .zz-img { order: 0; } }

/* admission */
.rules { list-style: none; counter-reset: r; padding: 0; margin: 0; display: grid; gap: 16px; }
.rules > li { counter-increment: r; position: relative; padding: 18px 20px 18px 74px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.rules > li::before { content: counter(r); position: absolute; left: 18px; top: 16px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ct); color: var(--cd); font-family: var(--font-head); font-weight: 600; }
.rules ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 10px; }
.rules ul li::marker { color: var(--c); }
.rules mark, .hl-date { background: var(--yellow-t); color: var(--yellow-d); font-weight: 800; padding: 0 6px; border-radius: 6px; }
.age-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.age-table td { background: var(--soft); padding: 14px 18px; font-weight: 700; color: var(--ink); }
.age-table td:first-child { border-radius: 14px 0 0 14px; border-left: 6px solid var(--c); }
.age-table td:last-child { border-radius: 0 14px 14px 0; text-align: right; color: var(--cd); font-family: var(--font-head); font-size: 1.1rem; }
.age-table tr:nth-child(1) td:first-child { border-color: var(--blue); }
.age-table tr:nth-child(2) td:first-child { border-color: var(--red); }
.age-table tr:nth-child(3) td:first-child { border-color: var(--yellow); }
.age-table tr:nth-child(4) td:first-child { border-color: var(--green); }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.doc-list li { display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--ink); background: #fff; padding: 12px 16px; border-radius: 14px; }
.doc-list .n { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-family: var(--font-head); }
.doc-list li:nth-child(1) .n { background: var(--blue); }
.doc-list li:nth-child(2) .n { background: var(--red); }
.doc-list li:nth-child(3) .n { background: var(--yellow); color: var(--ink); }
.doc-list li:nth-child(4) .n { background: var(--green); }
.notes { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 10px; }
.notes li { display: flex; gap: 12px; align-items: flex-start; }
.notes li .icon { color: var(--c); margin-top: 3px; }
.note-box { display: flex; gap: 12px; align-items: flex-start; background: var(--yellow-t); color: var(--ink); border-radius: 14px; padding: 14px 18px; font-weight: 600; margin-bottom: 1.4rem; }
.note-box .icon { color: var(--yellow-d); margin-top: 3px; }
.embed { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.embed iframe { display: block; width: 100%; border: 0; }
.embed-fees iframe { height: 780px; }
@media (max-width: 640px) { .embed-fees iframe { height: 620px; } }
.embed-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 700; z-index: -1; }

.block-title { display: flex; align-items: center; gap: 14px; margin-bottom: 1.4rem; }
.block-title .ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: #fff; }
.block-title .ic .icon { width: 28px; height: 28px; }
.block-title h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.stack { display: grid; gap: clamp(28px, 4vw, 40px); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
.two-col.wide { grid-template-columns: 1.7fr 1fr; }
@media (max-width: 900px) { .two-col, .two-col.wide { grid-template-columns: 1fr; } }
.tint { background: var(--ct); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.tint h3 { color: var(--cd); }

/* downloads */
.dl { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 22px 26px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 8px solid var(--c); }
.dl .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--ct); color: var(--cd); display: grid; place-items: center; flex: none; }
.dl .ic .icon { width: 32px; height: 32px; }
.dl .meta { flex: 1; min-width: 200px; }
.dl h3 { margin: 0 0 .2em; font-size: 1.3rem; }
.dl p { margin: 0; color: var(--muted); }
.dl small { color: var(--muted); font-weight: 700; }

/* gallery */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 2rem; }
.tabs a { padding: 10px 22px; border-radius: 999px; font-family: var(--font-head); font-weight: 500; border: 2px solid var(--line); color: var(--ink-2); background: #fff; }
.tabs a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs a:not([aria-current]):hover { border-color: var(--c); color: var(--cd); }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.album { --c: var(--blue); --ct: var(--blue-t); --cd: var(--blue-d); text-align: left; cursor: pointer; border: 2px solid transparent; background: var(--ct); border-radius: 20px; padding: 20px; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 12px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.album:nth-child(4n+2) { --c: var(--red); --ct: var(--red-t); --cd: var(--red-d); }
.album:nth-child(4n+3) { --c: var(--yellow); --ct: var(--yellow-t); --cd: var(--yellow-d); }
.album:nth-child(4n+4) { --c: var(--green); --ct: var(--green-t); --cd: var(--green-d); }
.album:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.album[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 10px 24px -10px var(--c); background: #fff; }
.album .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--c); color: #fff; display: grid; place-items: center; }
.album .ic .icon { width: 26px; height: 26px; }
.album b { font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; line-height: 1.3; }
.album span { font-size: .88rem; font-weight: 700; color: var(--cd); }
.viewer { margin-top: 2.2rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.viewer-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.viewer-head h3 { margin: 0; }
.viewer iframe { height: 75vh; min-height: 480px; }
.status { text-align: center; padding: 40px 20px; color: var(--muted); font-weight: 700; }
.status.error { color: var(--red-d); background: var(--red-t); border-radius: var(--radius); }
.loader { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; border: 5px solid var(--blue-t); border-top-color: var(--blue); border-right-color: var(--red); border-bottom-color: var(--yellow); animation: spin 1s linear infinite; }
[hidden] { display: none !important; }

/* calendar */
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.seg button { border: 0; background: none; font: inherit; font-weight: 700; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--green-d); box-shadow: var(--shadow); }
.embed-cal iframe { height: 72vh; min-height: 520px; }

/* coming soon */
.soon { text-align: center; max-width: 640px; margin: 0 auto; }
.soon-blocks { display: flex; justify-content: center; gap: 12px; margin-bottom: 30px; }
.soon-blocks span { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 2rem; animation: bounce 1.6s ease-in-out infinite; }
.soon-blocks span:nth-child(1) { background: var(--blue); }
.soon-blocks span:nth-child(2) { background: var(--red); animation-delay: .15s; }
.soon-blocks span:nth-child(3) { background: var(--yellow); animation-delay: .3s; }
.soon-blocks span:nth-child(4) { background: var(--green); animation-delay: .45s; }
@keyframes bounce { 50% { transform: translateY(-14px) rotate(-6deg); } }

/* =========================================================
   FORMS
   ========================================================= */
.form-card { background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--red) 25% 50%, var(--yellow) 50% 75%, var(--green) 75%); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 800; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.field label .req { color: var(--red); }
.input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--soft);
  transition: border-color .2s, background .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235f6368'%3E%3Cpath d='M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 24px; padding-right: 44px; }
textarea.input { min-height: 140px; resize: vertical; }
.input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-t); }
.field.invalid .input { border-color: var(--red); background: #fff; }
.field.invalid .input:focus { box-shadow: 0 0 0 4px var(--red-t); }
.err { display: none; color: var(--red-d); font-size: .88rem; font-weight: 700; margin-top: 6px; }
.field.invalid .err { display: block; }
.form-sub { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin: 6px 0 2px; color: var(--cd); }
.form-sub .ic { width: 36px; height: 36px; border-radius: 12px; background: var(--ct); display: grid; place-items: center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-msg { font-weight: 700; padding: 12px 16px; border-radius: 12px; flex: 1 1 260px; }
.form-msg.ok { background: var(--green-t); color: var(--green-d); }
.form-msg.bad { background: var(--red-t); color: var(--red-d); }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }

/* contact */
.info-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .info-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .info-cards { grid-template-columns: 1fr; } }
.info { background: var(--ct); border-radius: var(--radius); padding: 26px 22px; text-align: center; transition: transform .3s; }
.info:hover { transform: translateY(-6px); }
.info .ic { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 7px #fff; }
.info .ic .icon { width: 28px; height: 28px; }
.info h3 { font-size: 1.2rem; margin-bottom: .4em; }
.info p, .info a { margin: 0; color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
.info a:hover { color: var(--cd); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; margin-top: 50px; align-items: stretch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.map { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); min-height: 420px; position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.aside-list li { display: flex; gap: 14px; align-items: flex-start; }
.aside-list .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--cd); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.steps li::before { content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--cd); font-family: var(--font-head); font-weight: 600; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { position: relative; background: var(--navy); color: #b8c2d8; margin-top: 40px; }
.footer-wave { position: absolute; top: 0; left: 0; right: 0; transform: translateY(-99%); line-height: 0; }
.footer-wave svg { width: 100%; height: clamp(30px, 5vw, 70px); display: block; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 70px; padding-bottom: 50px; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 { color: #fff; font-size: 1.2rem; margin-bottom: 1.1rem; position: relative; padding-bottom: 12px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--red) 25% 50%, var(--yellow) 50% 75%, var(--green) 75%); }
.site-footer a { color: #d5dcea; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; }
.footer-brand img { width: 45px; height: 45px; object-fit: contain; }
.footer-brand .brand-name { font-size: 1.8rem; }
.footer-brand .brand-sub { color: #b8c2d8; }
.flinks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.flinks a { display: inline-flex; align-items: center; gap: 8px; }
.flinks a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); transition: transform .2s; }
.flinks a:hover::before { transform: scale(1.5); }
.fcontact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.fcontact li { display: flex; gap: 12px; align-items: flex-start; }
.fcontact .icon { color: var(--yellow); margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: .2s; }
.socials a:nth-child(1):hover { background: var(--blue); color: #fff; }
.socials a:nth-child(2):hover { background: var(--red); color: #fff; }
.socials a:nth-child(3):hover { background: var(--yellow); color: var(--ink); }
.socials a:nth-child(4):hover { background: var(--green); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .92rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

.credit a { color: #fff; font-weight: 800; border-bottom: 2px solid var(--yellow); }
.credit a:hover { color: var(--yellow); }
.credit .heart { display: inline-block; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 50px; height: 50px; border-radius: 16px; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(14px); transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-d); }

/* 404 */
.nf { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.nf .code { font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 22vw, 12rem); line-height: 1; letter-spacing: .04em; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track span { animation: none !important; padding-left: 0; }
}
