/* NES-NYSTCE.com — New York blue and gold, answer-sheet bubbles as the signature. */
:root {
  --navy: #14305C;
  --navy-deep: #0D2244;
  --gold: #E5A823;
  --gold-soft: #FBEFD0;
  --paper: #F7F9FC;
  --white: #FFFFFF;
  --ink: #1B2333;
  --graphite: #566175;
  --line: #D8DEE8;
  --line-soft: #E8ECF2;
  --right: #1E7A4C;
  --right-soft: #E3F3EA;
  --wrong: #B42318;
  --wrong-soft: #FDECEA;
  --focus: #2F6FDE;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--graphite); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--navy-deep); }
h1 { font-size: clamp(36px, 5.4vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 38px); }
h3 { font-size: 23px; }
p { margin: 0 0 1em; }
.lede { font-size: 20px; color: var(--graphite); max-width: 36em; }

/* ---------- header ---------- */
.top { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .01em; }
.brand:hover { color: var(--white); }
.brand .mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a, .nav button.link {
  color: #DCE5F4; text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500;
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button.link:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.1); }
.cartlink .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 4px; border-radius: 10px; background: var(--gold); color: var(--navy-deep); font-size: 12px; font-weight: 700; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.35); color: var(--white); border-radius: var(--r-sm); padding: 6px 12px; cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a, .nav button.link { padding: 12px; text-align: left; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-sm); border: 2px solid var(--navy);
  background: var(--navy); color: var(--white); font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn.gold:hover { background: #D1961A; border-color: #D1961A; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--white); color: var(--navy-deep); }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btnrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- bubbles (signature) ---------- */
.bubble {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  border: 2px solid var(--navy); display: grid; place-items: center;
  font: 600 15px/1 var(--sans); color: var(--navy); background: var(--white);
  transition: background .18s, color .18s, border-color .18s;
}
.choice[aria-pressed="true"] .bubble, .bubble.filled { background: var(--navy); color: var(--white); }
.choice.right .bubble { background: var(--right); border-color: var(--right); color: var(--white); }
.choice.wrong .bubble { background: var(--wrong); border-color: var(--wrong); color: var(--white); }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: #DCE5F4; padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero h1 { color: var(--white); max-width: 12em; }
.hero .lede { color: #C3D0E6; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-facts { display: flex; gap: 28px; margin: 28px 0 32px; flex-wrap: wrap; }
.hero-facts div { font-size: 15px; color: #C3D0E6; }
.hero-facts strong { display: block; font-family: var(--serif); font-size: 32px; font-weight: 500; color: var(--gold); line-height: 1.1; }
.hero .btn.ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.1); }
.sheet {
  background: var(--white); color: var(--ink); border-radius: var(--r-md); padding: 26px 26px 22px;
  box-shadow: 0 24px 60px rgba(5, 18, 40, .45); position: relative;
}
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; font-size: 14px; color: var(--graphite); }
.sheet-head b { color: var(--navy); }
.sheet .stem { font-family: var(--serif); font-size: 20px; line-height: 1.4; margin-bottom: 16px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (prefers-reduced-motion: no-preference) {
  .sheet .choice { animation: rise .5s both; }
  .sheet .choice:nth-child(2) { animation-delay: .08s; }
  .sheet .choice:nth-child(3) { animation-delay: .16s; }
  .sheet .choice:nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- choices ---------- */
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 14px; align-items: center; text-align: left; width: 100%;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white);
  cursor: pointer; font-size: 16px; line-height: 1.45;
}
.choice:hover:not([disabled]) { border-color: var(--navy); }
.choice[aria-pressed="true"] { border-color: var(--navy); background: #F1F5FB; }
.choice.right { border-color: var(--right); background: var(--right-soft); }
.choice.wrong { border-color: var(--wrong); background: var(--wrong-soft); }
.choice[disabled] { cursor: default; }
.explain { margin-top: 16px; padding: 14px 16px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 16px; }
.explain.right-note { border-left-color: var(--right); background: var(--right-soft); }
.explain.wrong-note { border-left-color: var(--wrong); background: var(--wrong-soft); }
.explain p:last-child { margin: 0; }

/* ---------- sections ---------- */
.section { padding-top: 72px; padding-bottom: 72px; }
.section.alt { background: var(--white); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 40em; margin-bottom: 36px; }

.courses { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.course {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px;
  display: flex; flex-direction: column; border-top: 6px solid var(--navy);
}
.course.eas { border-top-color: var(--gold); }
.course .code { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--navy); margin-bottom: 6px; }
.course.eas .code { color: #B07F12; }
.course h3 { margin-bottom: 4px; }
.course .sub { color: var(--graphite); font-size: 15px; margin-bottom: 16px; }
.facts { margin: 18px 0 24px; border-top: 1px solid var(--line-soft); }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.facts dt { color: var(--graphite); }
.facts dd { margin: 0; }
.course .btnrow { margin-top: auto; }
@media (max-width: 860px) { .courses { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: step; }
.steps li { list-style: none; position: relative; padding-top: 52px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--navy); display: grid; place-items: center; font-weight: 700; color: var(--navy);
}
.steps ol, ol.steps { padding: 0; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--navy); }
.plan .price { font-family: var(--serif); font-size: 44px; color: var(--navy-deep); line-height: 1; margin: 10px 0 4px; }
.plan .per { color: var(--graphite); font-size: 15px; margin-bottom: 16px; }
.plan ul { padding-left: 20px; margin: 0 0 22px; font-size: 15px; }
.plan .btnrow { margin-top: auto; }
.tag { display: inline-block; background: var(--gold-soft); color: #7A5408; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 46em; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.faq details p { margin: 10px 0 0; color: var(--graphite); }

/* ---------- page headers ---------- */
.pagehead { background: var(--white); border-bottom: 1px solid var(--line); padding: 40px 0 32px; }
.crumbs { font-size: 14px; color: var(--graphite); margin-bottom: 12px; }
.crumbs a { color: var(--graphite); }

/* ---------- course page ---------- */
.course-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .course-layout { grid-template-columns: 1fr; } }
.testlist { display: grid; gap: 12px; }
.testrow {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px;
}
.testrow .num { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--navy); display: grid; place-items: center; font-weight: 700; color: var(--navy); }
.testrow.done .num { background: var(--navy); color: var(--white); }
.testrow h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 0 0 2px; color: var(--ink); }
.testrow .meta { font-size: 14px; color: var(--graphite); }
.testrow .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lock { font-size: 14px; color: var(--graphite); display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 640px) {
  .testrow { grid-template-columns: 44px 1fr; }
  .testrow .acts { grid-column: 1 / -1; justify-content: flex-start; }
}
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; margin-bottom: 20px; }
.panel h3 { font-size: 20px; }
.panel.navy { background: var(--navy); color: #DCE5F4; border-color: var(--navy); }
.panel.navy h3 { color: var(--white); }
.access-ok { color: var(--right); font-weight: 600; }
.option-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.option-row:last-of-type { border-bottom: 0; }
.option-row b { font-size: 18px; }

/* ---------- test runner ---------- */
.runner { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; padding: 28px 0 60px; }
@media (max-width: 960px) { .runner { grid-template-columns: 1fr; } .runner aside { order: -1; } }
.qcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.qtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.qtop .qnum { font-weight: 700; color: var(--navy); }
.qtext { font-family: var(--serif); font-size: 21px; line-height: 1.5; margin-bottom: 20px; }
.qfig { margin: 0 0 22px; padding: 18px; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-sm); display: flex; justify-content: center; }
.qfig svg { height: auto; }
.flagbtn { background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 12px; cursor: pointer; font-size: 14px; color: var(--graphite); }
.flagbtn[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); color: #7A5408; }
.qnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.timer { font: 600 26px/1 var(--sans); color: var(--navy-deep); font-variant-numeric: tabular-nums; }
.timer.low { color: var(--wrong); }
.grid-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; margin: 14px 0; }
.grid-sheet button {
  aspect-ratio: 1; border-radius: 50%; border: 2px solid #9FB0CB; background: var(--white); cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--graphite); padding: 0;
}
.grid-sheet button.ans { background: var(--navy); border-color: var(--navy); color: var(--white); }
.grid-sheet button.flag { box-shadow: 0 0 0 3px var(--gold); }
.grid-sheet button.cur { border-color: var(--gold); border-width: 3px; }
.grid-sheet button.ok { background: var(--right); border-color: var(--right); color: var(--white); }
.grid-sheet button.no { background: var(--wrong); border-color: var(--wrong); color: var(--white); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--graphite); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid #9FB0CB; }
.legend .l-ans::before { background: var(--navy); border-color: var(--navy); }
.legend .l-flag::before { box-shadow: 0 0 0 2px var(--gold); }
.cr-scenario { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 16px 18px; margin-bottom: 16px; }
.cr-scenario h4, .model h4 { margin: 0 0 6px; font-size: 15px; color: var(--navy); }
textarea.cr { width: 100%; min-height: 240px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; line-height: 1.6; resize: vertical; background: var(--white); }
.wordcount { font-size: 13px; color: var(--graphite); text-align: right; margin-top: 4px; }
.model { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.model dl { margin: 0; }
.model dt { font-weight: 700; color: var(--navy); margin-top: 12px; }
.model dd { margin: 4px 0 0; }

/* ---------- results ---------- */
.scorebox { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; margin: 24px 0; }
.ring { width: 150px; height: 150px; }
.ring text { font-family: var(--serif); }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 200px 1fr 54px; gap: 12px; align-items: center; font-size: 15px; }
.bar .track { height: 10px; background: var(--line-soft); border-radius: 5px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--navy); }
@media (max-width: 640px) { .scorebox { grid-template-columns: 1fr; justify-items: start; } .bar { grid-template-columns: 1fr 1fr 44px; } }
.review { display: grid; gap: 16px; }
.review .qcard { padding: 22px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 20px; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 20px; padding: 6px 14px; cursor: pointer; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- tables & forms ---------- */
table.list { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: 15px; }
table.list th, table.list td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.list th { background: #F1F4F9; font-weight: 600; color: var(--graphite); font-size: 14px; }
.tablewrap { overflow-x: auto; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; background: var(--white); width: 100%; }
.notice { padding: 14px 16px; border-radius: var(--r-sm); background: #EEF3FB; border: 1px solid #CFDCF0; margin: 0 0 20px; }
.notice.warn { background: var(--gold-soft); border-color: #F0D79A; }
.notice.err { background: var(--wrong-soft); border-color: #F5C2BD; }
.prose { max-width: 46em; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }

/* ---------- footer ---------- */
footer.site { background: var(--navy-deep); color: #AFC0DB; padding: 48px 0 32px; margin-top: 0; font-size: 15px; }
footer.site a { color: #DCE5F4; text-decoration: none; }
footer.site a:hover { text-decoration: underline; color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid h4 { color: var(--white); margin: 0 0 12px; font-size: 15px; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: 13px; line-height: 1.6; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .top, footer.site, .runner aside, .qnav { display: none; } }

/* =================== Hub, v2: vivid, animated =================== */
:root { --royal: #1B4E9B; --teal: #0FA3B1; --teal-soft: #DDF4F6; --coral: #F25C54; --sun: #FFC94A; }
.top .wrap { min-height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo .mark { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.wordmark { display: grid; line-height: 1.05; }
.wm-name { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .01em; color: #fff; }
.wm-dot { color: var(--sun); margin: 0 1px; }
.wm-tag { font-size: 12.5px; font-weight: 500; color: #FFD879; letter-spacing: .01em; margin-top: 4px; }
@media (max-width: 1060px) { .wm-tag { display: none; } }
@media (max-width: 820px) { .nav { top: 80px; } .wm-name { font-size: 22px; } .logo .mark { width: 40px; height: 40px; } }
footer.site .wm-tag { display: block; }

.btn.lg { padding: 15px 28px; font-size: 17px; }
.btn.ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn.ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn.gold { box-shadow: 0 8px 24px rgba(229,168,35,.35); }
.btn { transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }

/* carousel */
.carousel { position: relative; height: min(78vh, 640px); min-height: 480px; overflow: hidden; background: var(--navy-deep); color: #fff; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; display: flex; align-items: center; }
.slide.on { opacity: 1; z-index: 1; }
.slide-img { position: absolute; inset: -2%; background-size: cover; background-position: center; transform: scale(1.08); }
.slide.on .slide-img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(1%, 1%); } to { transform: scale(1.0) translate(0, 0); } }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(10,26,56,.92) 0%, rgba(10,26,56,.72) 42%, rgba(10,26,56,.15) 100%); }
.slide-copy { position: relative; z-index: 2; width: 100%; }
.slide-copy h1 { color: #fff; max-width: 13em; font-size: clamp(36px, 5.6vw, 66px); text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.slide-copy .lede { color: #E1E9F7; max-width: 32em; }
.place { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--sun); margin-bottom: 14px; }
.place::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--sun); }
.slide.on .slide-copy > * { animation: copyin .8s both; }
.slide.on .slide-copy > :nth-child(2) { animation-delay: .12s; }
.slide.on .slide-copy > :nth-child(3) { animation-delay: .24s; }
.slide.on .slide-copy > :nth-child(4) { animation-delay: .36s; }
@keyframes copyin { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.car-ctrl { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; display: flex; align-items: center; gap: 16px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 46px; height: 24px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; align-items: center; }
.dots button span { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
.dots button.on span::after { content: ""; position: absolute; inset: 0; background: var(--sun); transform-origin: left; animation: fillbar 6.5s linear forwards; }
@keyframes fillbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.car-pause { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 20px; padding: 5px 14px; font-size: 13px; cursor: pointer; }

/* stats */
.statbar { background: linear-gradient(90deg, var(--royal), var(--navy) 55%, #0F6E8C); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.stats strong { display: block; font-family: var(--serif); font-size: 42px; font-weight: 600; color: var(--sun); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats span { font-size: 15px; color: #D6E2F5; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* search + categories */
.bigsearch { display: flex; gap: 10px; max-width: 720px; margin-bottom: 32px; }
.bigsearch input { flex: 1; border: 2px solid var(--line); border-radius: var(--r-md); padding: 15px 18px; font-size: 18px; background: #fff; }
.bigsearch input:focus { border-color: var(--royal); outline: none; box-shadow: 0 0 0 4px rgba(27,78,155,.15); }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cattile { position: relative; display: grid; gap: 6px; padding: 20px 20px 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cattile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--teal), var(--royal)); }
.cattile:nth-child(3n+2)::before { background: linear-gradient(180deg, var(--sun), #F08C1F); }
.cattile:nth-child(3n)::before { background: linear-gradient(180deg, var(--coral), #B83280); }
.cattile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,48,92,.14); border-color: transparent; color: var(--ink); }
.catname { font-weight: 700; font-size: 17px; }
.catcount { font-size: 14px; color: var(--graphite); }

/* exam cards */
.exgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.excard { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.excard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,48,92,.13); color: var(--ink); }
.excard.live { border: 2px solid var(--teal); background: linear-gradient(180deg, #fff, var(--teal-soft)); }
.excard-top { display: flex; justify-content: space-between; align-items: center; }
.prog { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; letter-spacing: .02em; }
.prog-nystce { background: #E3ECFA; color: var(--royal); }
.prog-nes { background: #FDE8E7; color: #B23A33; }
.pagehead .prog { margin-bottom: 12px; }
.excode { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.exname { font-weight: 650; font-size: 16px; line-height: 1.35; }
.excat { font-size: 13px; color: var(--graphite); }
.pill-live, .pill-soon { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.pill-live { background: var(--teal); color: #fff; }
.pill-soon { background: var(--gold-soft); color: #7A5408; }
.filterbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.filterbar input, .filterbar select { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: #fff; }
.filterbar input { flex: 1 1 260px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.chk { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; }

/* photo page heads */
.pagehead.photo { background-size: cover; background-position: center; color: #fff; border: 0; padding: 64px 0 52px; }
.pagehead.photo h1 { color: #fff; }
.pagehead.photo .lede, .pagehead.photo .crumbs, .pagehead.photo .crumbs a { color: #DCE5F4; }

/* split + sample */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split .sheet { box-shadow: 0 24px 60px rgba(20,48,92,.18); border: 1px solid var(--line-soft); }

/* cities marquee */
.cities { background: var(--navy-deep); color: #fff; padding: 56px 0 60px; overflow: hidden; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: 16px; width: max-content; animation: scroll 60s linear infinite; }
.cities:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.city { margin: 0; position: relative; width: 260px; height: 170px; border-radius: var(--r-md); overflow: hidden; flex: none; }
.city img { width: 100%; height: 100%; object-fit: cover; }
.city figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); font-weight: 700; }
.cities-copy { margin-top: 36px; }
.cities-copy h2 { color: #fff; }
.cities-copy p { color: #C3D0E6; max-width: 40em; }

/* coming soon */
.soonbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; border-top: 5px solid var(--sun); }
.soonbox h2 { font-size: 28px; margin-top: 12px; }
.notify { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.notify input { flex: 1 1 240px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.catgrid .reveal:nth-child(4n+2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.catgrid .reveal:nth-child(4n+3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.catgrid .reveal:nth-child(4n) { transition-delay: .24s; }
.course { transition: transform .2s, box-shadow .2s; }
.course:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,48,92,.15); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .track { animation: none; } }
@media (max-width: 600px) { .dots button { width: 26px; } .car-ctrl { bottom: 18px; gap: 10px; } .carousel { min-height: 560px; } }
.progs { display: inline-flex; gap: 4px; flex-wrap: wrap; } .pagehead .progs { margin-bottom: 12px; }

/* logo v3: swoosh mark + heavy italic wordmark */
.logo .mark { width: 54px; height: 54px; filter: none; }
.wm-name { font-family: "Barlow", "Arial Black", sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 30px; letter-spacing: .02em; line-height: 1; }
.wm-dot { color: #FFB627; }
.wm-tag { font-family: var(--sans); font-style: normal; font-size: 13px; color: #FFD879; margin-top: 3px; }
@media (max-width: 820px) { .wm-name { font-size: 24px; } .logo .mark { width: 44px; height: 44px; } }
