/* ==========================================================================
   MHWS Competitive Centre — Design System
   Palette derived from the MHWS crest: deep crimson + antique gold on white.
   ========================================================================== */

:root {
  /* Brand */
  --crimson-900: #6d0d14;
  --crimson-800: #8c1119;
  --crimson-700: #a31621;
  --crimson-600: #c1121f;
  --crimson-500: #dc2430;
  --crimson-050: #fff1f2;

  --gold-700: #9a7b1e;
  --gold-600: #c8a24a;
  --gold-500: #d9b95f;
  --gold-050: #fdf8ec;

  --blue-700: #1e3a8a;
  --blue-600: #2547c9;
  --blue-050: #eef2ff;

  /* Ink & surface */
  --ink-900: #0e1524;
  --ink-700: #2b3648;
  --ink-500: #5b6577;
  --ink-300: #8c95a5;
  --line: #e7e9ef;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;

  /* Type — Rajdhani for display, Inter for reading copy */
  --font-display: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(14, 21, 36, .06), 0 2px 8px rgba(14, 21, 36, .04);
  --sh-md: 0 4px 12px rgba(14, 21, 36, .07), 0 12px 32px rgba(14, 21, 36, .06);
  --sh-lg: 0 12px 28px rgba(14, 21, 36, .10), 0 32px 64px rgba(14, 21, 36, .08);
  --sh-brand: 0 10px 30px rgba(163, 22, 33, .28);

  --shell: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--surface);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

/* Rajdhani is narrow and short in the x-height, so headings run a little
   larger and a touch looser than they would with a normal-width display face. */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.1;
  letter-spacing: .005em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 1.3rem + 4.2vw, 4.6rem); }
h2 { font-size: clamp(1.95rem, 1.2rem + 2.7vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); }

::selection { background: var(--crimson-600); color: #fff; }

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout primitives ---------- */
.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0; }
.section--soft { background: var(--surface-soft); }
.section--tint {
  background:
    radial-gradient(1000px 400px at 15% 0%, var(--crimson-050), transparent 65%),
    radial-gradient(900px 380px at 90% 100%, var(--gold-050), transparent 60%);
}

.grid { display: grid; gap: clamp(1rem, .6rem + 1vw, 1.6rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crimson-700);
  background: var(--crimson-050);
  border: 1px solid rgba(163, 22, 33, .14);
  padding: .42rem .95rem;
  border-radius: var(--r-pill);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-600);
}

.head { max-width: 720px; margin-bottom: clamp(2rem, 1rem + 2.5vw, 3.25rem); }
.head--center { margin-inline: auto; text-align: center; }
.head h2 { margin: 1rem 0 .85rem; }
.head p { color: var(--ink-500); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  padding: .9rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--crimson-600), var(--crimson-800));
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { box-shadow: 0 14px 38px rgba(163, 22, 33, .38); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: #23180a;
  box-shadow: 0 10px 26px rgba(154, 123, 30, .3);
}

.btn--ghost {
  background: #fff;
  color: var(--ink-900);
  border-color: var(--line);
  box-shadow: var(--sh-sm);
}
.btn--ghost:hover { border-color: var(--crimson-600); color: var(--crimson-700); }

.btn--outline-light {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  backdrop-filter: blur(6px);
}
.btn--outline-light:hover { background: #fff; color: var(--crimson-800); }

.btn--sm { padding: .62rem 1.15rem; font-size: .93rem; }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.12rem; }
.btn--block { width: 100%; }

/* ---------- Top strip ---------- */
.topbar {
  background: linear-gradient(90deg, var(--crimson-800), var(--crimson-600) 55%, var(--gold-700));
  color: #fff;
  font-size: .82rem;
}
.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  flex-wrap: wrap;
}
.topbar a { display: inline-flex; align-items: center; gap: .4rem; opacity: .95; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar__links { display: flex; gap: 1.4rem; align-items: center; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.header.is-stuck { box-shadow: var(--sh-md); }
.header .shell {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: .75rem; margin-right: auto; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--crimson-800);
  letter-spacing: .01em;
  line-height: 1.1;
}
.brand__tag {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--ink-700);
  padding: .55rem .7rem;
  border-radius: var(--r-sm);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--crimson-700); background: var(--crimson-050); }

.nav__group { position: relative; }
.nav__group > button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--ink-700);
  padding: .55rem .7rem;
  border-radius: var(--r-sm);
}
.nav__group > button:hover { color: var(--crimson-700); background: var(--crimson-050); }
.nav__group > button svg { transition: transform .25s var(--ease); }
.nav__group:hover > button svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 50%;
  translate: -50% 0;
  min-width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s var(--ease);
}
.nav__group:hover .dropdown,
.nav__group:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown h4 {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: .6rem;
}
.dropdown a { display: block; font-size: .89rem; font-weight: 500; padding: .45rem .6rem; }

.header__cta { display: flex; align-items: center; gap: .6rem; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  place-items: center;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: .3s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 380px);
  background: #fff;
  z-index: 120;
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  overflow-y: auto;
  padding: 1.5rem 1.35rem 3rem;
  box-shadow: var(--sh-lg);
}
.drawer.is-open { transform: translateX(0); }
.drawer a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  padding: .85rem .4rem;
  border-bottom: 1px solid var(--line);
}
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer__close { background: none; border: 0; font-size: 1.8rem; cursor: pointer; line-height: 1; color: var(--ink-500); }
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(14, 21, 36, .5);
  backdrop-filter: blur(3px);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: .3s var(--ease);
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 2rem + 7vw, 7rem) 0 clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 520px at 82% 12%, rgba(200, 162, 74, .20), transparent 60%),
    radial-gradient(900px 500px at 8% 88%, rgba(193, 18, 31, .13), transparent 62%),
    #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(14, 21, 36, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 21, 36, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 600px at 50% 30%, #000, transparent 78%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}

.hero h1 { margin: 1.25rem 0 1.1rem; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--crimson-600), var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  color: var(--ink-500);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero__trust strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  color: var(--crimson-700);
  line-height: 1;
}
.hero__trust span { font-size: .82rem; color: var(--ink-500); font-weight: 500; }

/* Hero visual */
.hero__visual { position: relative; }
.hero__photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  /* Gentler than a true portrait crop — the source photos are 16:9, and a tall
     frame would cut the board and the teacher out of the shot. */
  aspect-ratio: 4 / 3.6;
  background: linear-gradient(150deg, var(--crimson-800), var(--crimson-600) 45%, var(--gold-700));
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 21, 36, .55), transparent 45%);
}

.floatcard {
  position: absolute;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: .85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  animation: bob 5s var(--ease) infinite;
}
.floatcard--tl { top: 8%; left: -6%; }
.floatcard--br { bottom: 9%; right: -5%; animation-delay: -2.5s; }
.floatcard i {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--crimson-050);
  color: var(--crimson-700);
  flex-shrink: 0;
}
.floatcard b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-900); }
.floatcard small { color: var(--ink-500); font-size: .76rem; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .floatcard { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Marquee (exam strip) ---------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 1.1rem 0;
  overflow: hidden;
}
.strip__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: slide 30s linear infinite;
}
.strip:hover .strip__track { animation-play-state: paused; }
.strip__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink-300);
  letter-spacing: .06em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.strip__track span::after { content: "◆"; color: var(--gold-600); font-size: .7rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: rgba(163, 22, 33, .22); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--ink-500); font-size: .94rem; }

.icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  margin-bottom: 1.1rem;
  background: linear-gradient(140deg, var(--crimson-050), var(--gold-050));
  color: var(--crimson-700);
  border: 1px solid rgba(163, 22, 33, .12);
}
.card:hover .icon {
  background: linear-gradient(140deg, var(--crimson-600), var(--crimson-800));
  color: #fff;
  border-color: transparent;
}
.icon svg { width: 24px; height: 24px; }

/* Course card */
.course {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.course__top {
  padding: 1.5rem 1.6rem 1.25rem;
  background: linear-gradient(135deg, var(--crimson-800), var(--crimson-600));
  color: #fff;
}
.course--gold .course__top { background: linear-gradient(135deg, var(--gold-700), var(--gold-500)); color: #23180a; }
.course--blue .course__top { background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); }
.course__top h3 { color: inherit; }
.course__top p { color: inherit; opacity: .88; font-size: .87rem; margin-top: .3rem; }
.course__body { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.course__list { display: grid; gap: .55rem; }
.course__list li {
  display: flex;
  gap: .6rem;
  font-size: .9rem;
  color: var(--ink-700);
}
.course__list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: .2rem;
  border-radius: 50%;
  background: var(--crimson-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a31621' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.course__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px dashed var(--line);
  font-size: .84rem;
  color: var(--ink-500);
}
.badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: #fff;
  color: var(--crimson-700);
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
}

/* Feature chip list */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: .58rem 1.05rem;
  font-size: .97rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--ink-700);
  box-shadow: var(--sh-sm);
  transition: .25s var(--ease);
}
.chip:hover { border-color: var(--crimson-600); color: var(--crimson-700); transform: translateY(-2px); }
.chip svg { width: 16px; height: 16px; color: var(--gold-700); }

/* ---------- Stats band ---------- */
.band {
  background: linear-gradient(120deg, var(--crimson-900), var(--crimson-700) 55%, var(--crimson-800));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 12% 0%, rgba(200, 162, 74, .28), transparent 60%),
    radial-gradient(500px 280px at 88% 100%, rgba(200, 162, 74, .2), transparent 60%);
}
.band .shell { position: relative; z-index: 1; }
.band h2 { color: #fff; }
.stat { text-align: center; padding: 1rem; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  line-height: 1;
  color: var(--gold-500);
  letter-spacing: .01em;
}
.stat span { font-size: .9rem; opacity: .82; }

/* ---------- Gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gal figure {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, var(--ink-900), var(--crimson-800));
  cursor: pointer;
}
/* 7 tiles in a 4-column grid: one 2x2 feature, four singles, two 2x1 wides.
   Fills rows 1-3 exactly, no gaps. */
.gal figure:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal figure:nth-child(6),
.gal figure:nth-child(7) { grid-column: span 2; aspect-ratio: 16 / 7; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal figure:hover img { transform: scale(1.07); }
.gal figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1.1rem .9rem;
  background: linear-gradient(to top, rgba(14, 21, 36, .85), transparent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
}

/* ---------- Faculty ---------- */
.tutor { text-align: center; padding: 2rem 1.25rem; }
.tutor__ph {
  width: 108px; height: 108px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--crimson-700), var(--gold-600));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--gold-500), var(--sh-md);
  overflow: hidden;
}
.tutor__ph img { width: 100%; height: 100%; object-fit: cover; }
.tutor h3 { font-size: 1.26rem; margin-bottom: .2rem; }
.tutor .role { color: var(--crimson-700); font-weight: 700; font-size: .94rem; font-family: var(--font-display); }
.tutor .exp { color: var(--ink-500); font-size: .85rem; margin-top: .5rem; }

/* ---------- Results ---------- */
.ranker {
  text-align: center;
  padding: 2rem 1.25rem 1.6rem;
  position: relative;
  overflow: hidden;
}
.ranker::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--crimson-600), var(--gold-500));
}
.ranker__ph {
  width: 96px; height: 96px;
  margin: .5rem auto 1rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-600), var(--crimson-700));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.8rem;
  overflow: hidden;
}
.ranker__ph img { width: 100%; height: 100%; object-fit: cover; }
.ranker .rank {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--crimson-700);
  margin-top: .35rem;
}
.ranker .exam {
  display: inline-block;
  margin-top: .5rem;
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: var(--gold-050);
  padding: .25rem .7rem;
  border-radius: var(--r-pill);
}

/* ---------- Testimonials ---------- */
.rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .5rem .25rem 1.5rem;
  scrollbar-width: thin;
}
.rail > * { flex: 0 0 min(380px, 84vw); scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.rail::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

.quote { display: flex; flex-direction: column; gap: 1rem; }
.stars { color: var(--gold-600); letter-spacing: .12em; font-size: .95rem; }
.quote p { color: var(--ink-700); font-size: .96rem; font-style: italic; }
.quote__who { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: .5rem; }
.quote__who div b { display: block; font-family: var(--font-display); color: var(--ink-900); font-size: .92rem; }
.quote__who div small { color: var(--ink-500); font-size: .8rem; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--crimson-600), var(--gold-600));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  flex-shrink: 0;
}

.rail__nav { display: flex; gap: .5rem; justify-content: flex-end; margin-bottom: 1rem; }
.rail__nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink-700);
  transition: .25s var(--ease);
}
.rail__nav button:hover { background: var(--crimson-700); color: #fff; border-color: transparent; }

/* ---------- Accordion (FAQ) ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.acc + .acc { margin-top: .85rem; }
.acc__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.15rem 1.4rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.14rem;
  color: var(--ink-900);
}
.acc__q::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--crimson-700);
  transition: transform .3s var(--ease);
  flex-shrink: 0;
}
.acc.is-open .acc__q::after { transform: rotate(45deg); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 1.4rem 1.3rem; color: var(--ink-500); font-size: .95rem; }

/* ---------- Forms ---------- */
.field { display: grid; gap: .4rem; margin-bottom: .95rem; }
.field label { font-size: .82rem; font-weight: 700; font-family: var(--font-display); color: var(--ink-900); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: .93rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--crimson-600);
  box-shadow: 0 0 0 4px rgba(193, 18, 31, .1);
}
.field textarea { min-height: 110px; resize: vertical; }
.field small.err { color: var(--crimson-600); font-size: .78rem; display: none; }
.field.has-err input, .field.has-err select { border-color: var(--crimson-600); }
.field.has-err small.err { display: block; }

.formcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  box-shadow: var(--sh-md);
}
.form-note { font-size: .78rem; color: var(--ink-300); text-align: center; margin-top: .85rem; }
.form-ok {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--r-sm);
  padding: .9rem 1rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.form-ok.is-shown { display: block; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--ink-900), var(--crimson-900) 70%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 340px at 50% -10%, rgba(200, 162, 74, .28), transparent 65%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: .85rem; }
.cta p { color: rgba(255, 255, 255, .78); max-width: 60ch; margin: 0 auto 1.75rem; }
.cta__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: rgba(255, 255, 255, .68); padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.footer h4 {
  color: #fff;
  font-size: .86rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer a { font-size: .9rem; display: block; padding: .3rem 0; transition: color .2s var(--ease); }
.footer a:hover { color: var(--gold-500); }
.footer p { font-size: .9rem; }
.footer .brand__name { color: #fff; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.footer__social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  display: grid; place-items: center;
  padding: 0;
}
.footer__social a:hover { background: var(--crimson-600); border-color: transparent; color: #fff; }
.footer__bar {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .84rem;
}
.seo-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; }
.seo-links a { font-size: .82rem; color: rgba(255, 255, 255, .5); }

/* ---------- Floating actions ---------- */
.dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  gap: .65rem;
}
.dock a {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--sh-md);
  transition: transform .25s var(--ease);
}
.dock a:hover { transform: scale(1.09); }
.dock .wa { background: #25d366; }
.dock .call { background: var(--crimson-700); }
.dock a::after {
  content: attr(data-label);
  position: absolute;
  right: 66px;
  background: var(--ink-900);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem .7rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.dock a:hover::after { opacity: 1; }
.dock a { position: relative; }

/* Mobile sticky action bar */
.mobar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
  gap: .5rem;
  box-shadow: 0 -6px 20px rgba(14, 21, 36, .08);
}
.mobar .btn { flex: 1; padding: .8rem .5rem; font-size: .85rem; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: .3s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--sh-lg);
  transform: translateY(16px) scale(.97);
  transition: transform .3s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: absolute;
  top: .9rem; right: 1rem;
  background: none; border: 0;
  font-size: 1.7rem; line-height: 1;
  cursor: pointer; color: var(--ink-300);
}

/* ---------- Page hero (inner pages) ---------- */
.phero {
  background:
    radial-gradient(800px 340px at 80% 0%, rgba(200, 162, 74, .18), transparent 60%),
    radial-gradient(700px 320px at 5% 100%, rgba(193, 18, 31, .1), transparent 60%),
    var(--surface-soft);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0;
}
.crumb { font-size: .84rem; color: var(--ink-500); margin-bottom: 1rem; }
.crumb a:hover { color: var(--crimson-700); }
.phero h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); }
.phero p { color: var(--ink-500); max-width: 62ch; margin-top: .85rem; font-size: 1.05rem; }

/* ---------- Utilities ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.center { text-align: center; }
.muted { color: var(--ink-500); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; } .mt-4 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.75rem; }
.hide-sm { display: initial; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header__cta .btn--ghost { display: none; }
  .burger { display: grid; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin-inline: auto; order: -1; }
  .floatcard--tl { left: 0; }
  .floatcard--br { right: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .gal figure:nth-child(1) { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
  .gal figure:nth-child(6),
  .gal figure:nth-child(7) { grid-column: span 2; aspect-ratio: 16 / 8; }
}

@media (max-width: 860px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar__links { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; padding-bottom: 68px; }
  .shell { width: min(100% - 1.75rem, var(--shell)); }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr; }
  .gal figure:nth-child(1),
  .gal figure:nth-child(6),
  .gal figure:nth-child(7) { grid-column: auto; aspect-ratio: 4 / 3; }
  .hero__actions .btn { flex: 1 1 100%; }
  .mobar { display: flex; }
  .dock { bottom: 84px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .brand__name { font-size: 1rem; }
}

/* ---------- Print ---------- */
@media print {
  .header, .topbar, .dock, .mobar, .footer, .cta { display: none !important; }
  body { color: #000; }
}
