/* ============================================================
   SCHOLARO — GLOBAL SITE DESIGN SYSTEM
   Signature idea: the school timetable, made global.
   A thin "world period-clock" ticker runs through the site,
   echoing the fact that Scholaro runs schools across every
   timezone, the same way a timetable runs a school through
   every period.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── palette ── */
  --ink:        #12151C;
  --ink-2:      #454B58;
  --ink-3:      #82889A;
  --paper:      #F4F5EF;
  --paper-2:    #FFFFFF;
  --line:       #DEDCD1;
  --line-soft:  #E9E7DD;

  --brass:      #AD8A3D;
  --brass-deep: #8C6D26;
  --brass-tint: #F4ECD8;

  --teal:       #0F6B63;
  --teal-deep:  #0B4F49;
  --teal-tint:  #E3EFEC;

  --navy-deep:  #0B0D13;
  --navy-2:     #171B26;

  --green:      #2F8A5B;
  --coral:      #C1543A;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow: 0 1px 2px rgba(18,21,28,.04), 0 8px 24px rgba(18,21,28,.06);
  --shadow-lg: 0 20px 60px rgba(18,21,28,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.font-display { font-family: 'Fraunces', serif; }
.font-mono { font-family: 'IBM Plex Mono', monospace; }

::selection { background: var(--brass-tint); color: var(--brass-deep); }

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 5%; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   TICKER — the "world period-clock"
   ============================================================ */
.ticker {
  background: var(--navy-deep);
  color: rgba(255,255,255,.62);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding: 9px 0;
  animation: ticker-scroll 38s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .02em;
}
.ticker-item b { color: rgba(255,255,255,.92); font-weight: 500; }
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brass); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   NAV
   ============================================================ */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(244,245,239,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon svg { width: 17px; height: 17px; }
.nav-brand { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 500; letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .15s; position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.current { color: var(--ink); }
.nav-links a.current::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--brass);
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 9px; font-size: 14px; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: transform .15s, box-shadow .15s, opacity .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-ink { background: var(--ink); color: white; }
.btn-ink:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(18,21,28,.24); }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: white; color: var(--ink); }
.btn-white:hover { transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: white; border: 1px solid rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: white; }

/* ============================================================
   PAGE HERO (secondary pages)
   ============================================================ */
.page-hero {
  padding: 72px 5% 56px;
  text-align: center;
  position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 14px; height: 1px; background: var(--brass-deep); }
.page-hero h1 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(34px, 5vw, 58px); letter-spacing: -1px; line-height: 1.08;
  max-width: 780px; margin: 0 auto;
}
.page-hero p {
  font-size: 17px; color: var(--ink-2); max-width: 560px; margin: 18px auto 0; line-height: 1.65;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
section { padding: 88px 5%; }
.section-head { max-width: 620px; }
.section-head.center { max-width: 640px; margin: 0 auto; text-align: center; }
.section-title {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.7px; line-height: 1.15;
}
.section-sub { font-size: 16.5px; color: var(--ink-2); margin-top: 12px; line-height: 1.65; }
.section-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px; display: block;
}

hr.rule { border: none; height: 1px; background: var(--line); margin: 0; }

/* divider with timecode ticks — recurring motif */
.tick-divider {
  display: flex; align-items: center; gap: 14px; margin: 0 5%;
}
.tick-divider .line { flex: 1; height: 1px; background: var(--line); }
.tick-divider span {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-3);
  white-space: nowrap; letter-spacing: .04em;
}

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 30px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.icon-tile {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  margin-bottom: 16px; background: var(--teal-tint); color: var(--teal-deep);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip {
  display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--paper-2); overflow: hidden;
}
.stat-cell {
  flex: 1; min-width: 160px; padding: 26px 24px; border-right: 1px solid var(--line);
}
.stat-cell:last-child { border-right: none; }
.stat-num { font-family: 'Fraunces', serif; font-size: 30px; letter-spacing: -0.5px; }
.stat-label { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial-band { background: var(--navy-deep); padding: 80px 5%; text-align: center; }
.testimonial-quote {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
  font-size: clamp(21px, 2.8vw, 32px); color: white; max-width: 720px; margin: 0 auto; line-height: 1.45;
}
.testimonial-author { margin-top: 26px; font-size: 13.5px; color: rgba(255,255,255,.5); }
.testimonial-author strong { color: rgba(255,255,255,.85); font-weight: 500; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-band { padding: 90px 5%; text-align: center; }
.cta-box {
  background: var(--ink); border-radius: var(--radius-lg); padding: 60px 40px;
  max-width: 760px; margin: 0 auto; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black, transparent);
}
.cta-box h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(26px, 3.6vw, 40px); color: white; letter-spacing: -0.6px; position: relative; }
.cta-box p { color: rgba(255,255,255,.68); font-size: 15.5px; margin: 14px 0 30px; position: relative; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer { background: var(--navy-deep); padding: 56px 5% 30px; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .footer-logo { font-family: 'Fraunces', serif; font-size: 20px; color: white; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.42); margin-top: 12px; max-width: 240px; line-height: 1.65; }
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .07em; color: rgba(255,255,255,.38); margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 13.5px; color: rgba(255,255,255,.62); text-decoration: none; margin-bottom: 9px; transition: color .15s; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; flex-wrap: wrap; gap: 10px; }
.footer-copy, .footer-region { font-size: 12px; color: rgba(255,255,255,.32); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 64px 5%; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr; }
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }