/* ARAM IAS Website vNext — Design System */

:root {
  /* Surfaces */
  --bg-base: #F7F5F0;
  --bg-subtle: #F1EEE7;
  --bg-elevated: #FFFFFF;
  --bg-dark: #151719;

  /* Foregrounds */
  --fg-base: #17191C;
  --fg-muted: #60656D;
  --fg-subtle: #858A92;
  --fg-inverse: #F9F8F4;

  /* Borders */
  --border-base: #DCD8D0;
  --border-soft: #E8E4DD;
  --border-strong: #BDB8AF;

  /* Brand */
  --brand-primary: #25324B;
  --brand-primary-hover: #1D293D;
  --brand-accent: #CA664F;
  --brand-accent-soft: #EEE3D7;

  /* Status */
  --success: #2F6B55;
  --warning: #9A6A22;
  --danger: #A34545;
  --info: #46658B;
  --focus-ring: #526C93;

  /* Typography */
  --font-sans: "Inter", "Aptos", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 44px;
  --text-4xl: 60px;
  --text-5xl: 78px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 160px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Layout */
  --content-max: 1280px;
  --content-readable: 760px;

  /* Motion */
  --motion-fast: 140ms;
  --motion-base: 220ms;
  --motion-slow: 420ms;
  --motion-hero: 700ms;
  --ease-standard: cubic-bezier(.2, .7, .2, 1);
  --ease-enter: cubic-bezier(.16, 1, .3, 1);
  --ease-exit: cubic-bezier(.7, 0, .84, 0);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(20, 20, 20, .04);
  --shadow-sm: 0 8px 24px rgba(20, 20, 20, .06);
  --shadow-lg: 0 24px 70px rgba(20, 20, 20, .10);
}

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

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

html {
  color-scheme: light;
  background: var(--bg-base);
  color: var(--fg-base);
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--fg-base);
  font-size: var(--text-md);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 40px), var(--content-max));
  margin-inline: auto;
}

.readable {
  max-width: var(--content-readable);
}

p, ul, ol {
  margin-bottom: var(--space-4);
}

ul, ol {
  padding-left: var(--space-5);
}

/* Typography */

.display {
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -.045em;
  font-weight: 600;
  max-width: 20ch;
  color: var(--fg-base);
}

.section-title {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 600;
  max-width: 36ch;
  color: var(--fg-muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  color: var(--brand-accent);
  margin-bottom: var(--space-2);
}

.lead {
  max-width: 660px;
  color: var(--fg-muted);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
}

/* Section */

.section {
  padding-block: clamp(32px, 4vw, 56px);
}

.section-header {
  margin-bottom: clamp(16px, 2.4vw, 32px);
}

.section-header .section-title {
  margin-bottom: var(--space-5);
}

.bg-subtle {
  background: var(--bg-subtle);
}

.bg-elevated {
  background: var(--bg-elevated);
}

.bg-dark {
  background: var(--bg-dark);
  color: var(--fg-inverse);
}

.bg-dark .section-title,
.bg-dark .display {
  color: var(--fg-inverse);
}

.bg-dark .lead,
.bg-dark p {
  color: var(--fg-subtle);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--text-sm);
  transition: transform var(--motion-base) var(--ease-standard),
              background var(--motion-base) var(--ease-standard),
              border-color var(--motion-base) var(--ease-standard),
              color var(--motion-base) var(--ease-standard);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--fg-inverse);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--fg-base);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--fg-base);
}

.btn-text {
  background: transparent;
  color: var(--fg-base);
  padding: 0;
  min-height: auto;
}

.btn-text:hover {
  transform: none;
}

.btn-text .arrow {
  transition: transform var(--motion-base) var(--ease-standard);
}

.btn-text:hover .arrow {
  transform: translateX(3px);
}

.btn-inverse {
  background: var(--fg-inverse);
  color: var(--fg-base);
}

.btn-inverse:hover {
  background: var(--bg-subtle);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-base) var(--ease-standard);
}

.site-header.scrolled {
  border-bottom-color: var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-base);
}

.logo span {
  color: var(--brand-accent);
}

/* Brand mark — inline CSS logo, no external image dependency.
   Guaranteed to render identically on every page. */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-base);
  line-height: 1;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2.5px solid var(--fg-base);
  border-radius: 7px;
  transform: rotate(45deg);
}

.brand-mark::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand-accent);
  transform: rotate(45deg);
}

.brand-word span {
  color: var(--brand-accent);
}

.brand-logo-image {
  width: 150px;
  height: 62px;
  justify-content: flex-start;
}

.brand-logo-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62px;
  object-fit: contain;
}


.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.main-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-muted);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--motion-fast) var(--ease-standard);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--fg-base);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-accent);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--fg-base);
}

/* Hero */

.hero {
  padding-block: clamp(80px, 12vw, 160px);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(139, 103, 66, 0.15), transparent 45%),
    radial-gradient(ellipse at 80% 90%, rgba(37, 50, 75, 0.25), transparent 45%),
    linear-gradient(160deg, #0E0F12 0%, #16191D 55%, #1A1D22 100%);
  color: var(--fg-inverse);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.hero-split {
  position: relative;
  z-index: 1;
}

.hero-split.has-side {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 300px);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
}

.hero-split.has-side:has(.result-runner) {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
}

.hero-split.has-side:has(.result-runner) .display {
  font-size: clamp(32px, 3.6vw, 52px);
  margin-bottom: var(--space-4);
}

.hero-split.has-side:has(.result-runner) .lead {
  font-size: clamp(14px, 1.2vw, 16px);
  margin-bottom: var(--space-5);
}

.hero-split.has-side .hero-content {
  max-width: none;
}

.hero-side {
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 1px solid rgba(249, 248, 244, 0.16);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero-side:has(.result-runner) {
  padding-left: 0;
  border-left: none;
}

.result-runner {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #10141B;
}

.result-runner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: resultRunnerCycle 20s infinite;
}

.result-runner-slide:nth-child(1) { animation-delay: 0s; }
.result-runner-slide:nth-child(2) { animation-delay: 5s; }
.result-runner-slide:nth-child(3) { animation-delay: 10s; }
.result-runner-slide:nth-child(4) { animation-delay: 15s; }

@keyframes resultRunnerCycle {
  0% { opacity: 0; }
  2% { opacity: 1; }
  23% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}

.topper-board {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.topper-board-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.topper-board-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity var(--motion-base) var(--ease-standard);
}

.topper-board-slide.is-active {
  opacity: 1;
}

.topper-board-track {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  display: flex;
  gap: var(--space-2);
}

.topper-board-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(249, 248, 244, 0.4);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.topper-board-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #F4D35E;
}

.topper-board-bar.is-filled i {
  width: 100%;
}

.topper-board-bar.is-filling i {
  animation: topperBarFill 5s linear forwards;
}

@keyframes topperBarFill {
  from { width: 0%; }
  to { width: 100%; }
}

.topper-board-count {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-4);
  z-index: 2;
  color: var(--fg-inverse);
  font-size: var(--text-xs);
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Results Overview split layout */
.result-overview-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.result-overview-copy .section-title {
  margin-top: var(--space-2);
}
.result-overview-copy .lead {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}
.result-overview-copy .proof-strip {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.result-overview-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: contain;
}
@media (max-width: 768px) {
  .result-overview-split {
    grid-template-columns: 1fr;
  }
}

/* Compact Topper Stories */
.topper-stories-section {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}
.topper-stories-section .section-header {
  margin-bottom: var(--space-3);
}
.topper-stories-compact {
  max-width: 680px;
}
.topper-stories-compact .topper-board-frame {
  aspect-ratio: 3 / 1;
}
.topper-stories-compact .btn {
  margin-top: var(--space-3);
}

/* Topper board nav arrows */
.topper-board-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.topper-board-frame:hover .topper-board-nav {
  opacity: 1;
}
.topper-board-prev { left: var(--space-3); }
.topper-board-next { right: var(--space-3); }
.topper-board-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Result overview section compact */
.result-overview-section {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

/* Result DB image */
.result-db-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.diagnostic-lead {
  max-width: 100%;
  font-size: var(--text-sm);
}

/* Performance Diagnostic full-width image */
.diagnostic-full-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
}

/* Course cards grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
}

/* Hero books (right side) */
.hero-books {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
.hero-books img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Study Material books grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.book-card {
  text-align: center;
}
.book-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-2);
}
.book-card h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin: 0 0 2px;
}
.book-card p {
  font-size: var(--text-xs);
  color: var(--fg-muted);
  margin: 0;
}
@media (max-width: 768px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-books { grid-template-columns: repeat(2, 1fr); }
}

/* Board tabs (UPSC / TNPSC) */
.board-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.board-tab {
  padding: var(--space-2) var(--space-5);
  border: 2px solid var(--border-soft);
  border-radius: 999px;
  background: var(--bg-elevated);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--fg-muted);
}
.board-tab.is-active {
  background: var(--brand-primary);
  color: var(--fg-inverse);
  border-color: var(--brand-primary);
}
.board-tab:hover:not(.is-active) {
  border-color: var(--brand-accent);
  color: var(--fg-base);
}
.board-panel {
  display: none;
}
.board-panel.is-active {
  display: block;
}
.course-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  transition: box-shadow 0.2s, transform 0.2s;
}
.course-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.course-card img {
  width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}
.course-info {
  padding: var(--space-3);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-info h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin: 0 0 4px;
}
.course-info p {
  font-size: var(--text-xs);
  color: var(--fg-muted);
  margin: 0 0 auto;
}
.course-tag {
  display: inline-block;
  margin-top: var(--space-2);
  padding: 2px 10px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  text-align: center;
}

/* YouTube-style topper video carousel */
.yt-carousel {
  position: relative;
  overflow: hidden;
}
.yt-carousel-track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--space-2);
}
.yt-carousel-track::-webkit-scrollbar { display: none; }
.yt-card {
  flex: 0 0 calc(25% - var(--space-3) * 3 / 4);
  min-width: 200px;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  transition: box-shadow 0.2s, transform 0.2s;
}
.yt-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.yt-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 0, 0, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
  transition: opacity 0.2s;
}
.yt-card:hover .yt-play { opacity: 1; }
.yt-info {
  padding: var(--space-2) var(--space-3) var(--space-3);
}
.yt-info h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yt-info p {
  font-size: var(--text-xs);
  color: var(--fg-muted);
  margin: 0;
}
.yt-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.yt-carousel:hover .yt-carousel-btn { opacity: 1; }
.yt-carousel-prev { left: var(--space-2); }
.yt-carousel-next { right: var(--space-2); }
.yt-carousel-btn:hover { background: rgba(0, 0, 0, 0.85); }
@media (max-width: 768px) {
  .yt-card { flex: 0 0 70%; min-width: 160px; }
}

.hero-side-label {
  color: #FFCF66;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.hero-side-link {
  color: var(--fg-inverse);
  font-size: var(--text-md);
  font-weight: 600;
}

.hero-side-link:hover {
  color: var(--brand-accent-soft);
}

.hero-side .social-links {
  margin-top: var(--space-2);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-side .social-links a {
  background: rgba(249, 248, 244, 0.08);
  border-color: rgba(249, 248, 244, 0.18);
  color: var(--fg-inverse);
  padding: 8px 12px;
  font-size: var(--text-xs);
  white-space: nowrap;
}

.hero-side .social-links a:hover {
  border-color: var(--brand-accent-soft);
  color: var(--brand-accent-soft);
}

.hero .eyebrow {
  color: var(--brand-accent-soft);
}

.hero .display {
  color: var(--fg-inverse);
  margin-bottom: var(--space-5);
}

.hero .lead {
  color: var(--fg-subtle);
  margin-bottom: var(--space-7);
}

.hero .btn-primary {
  background: var(--fg-inverse);
  color: var(--fg-base);
}

.hero .btn-primary:hover {
  background: var(--brand-accent-soft);
}

.hero .btn-secondary {
  border-color: rgba(249, 248, 244, 0.35);
  color: var(--fg-inverse);
}

.hero .btn-secondary:hover {
  border-color: var(--fg-inverse);
  background: rgba(249, 248, 244, 0.05);
}

.hero .btn-text {
  color: var(--fg-inverse);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.hero-programme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
  max-width: 1040px;
}

.hero-programme-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-5);
  border: 1px solid rgba(249, 248, 244, 0.18);
  border-radius: var(--radius-md);
  background: rgba(249, 248, 244, 0.07);
  color: var(--fg-inverse);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  transition: transform var(--motion-base) var(--ease-standard),
              border-color var(--motion-base) var(--ease-standard),
              background var(--motion-base) var(--ease-standard);
}

.hero-programme-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 248, 244, 0.38);
  background: rgba(249, 248, 244, 0.11);
}

.hero-programme-card span {
  color: var(--brand-accent-soft);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-programme-card strong {
  display: block;
  margin-top: var(--space-4);
  font-size: var(--text-xl);
  line-height: 1.18;
  font-weight: 700;
}

.hero-programme-card small {
  display: block;
  margin-top: var(--space-3);
  color: #AEB4BE;
  font-size: var(--text-sm);
  line-height: 1.45;
}

/* Footer */

.site-footer {
  background: var(--bg-dark);
  color: var(--fg-inverse);
  padding-block: var(--space-9) var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-9);
}

.footer-brand .logo {
  color: var(--fg-inverse);
  margin-bottom: var(--space-4);
}

.footer-brand .brand-logo {
  color: var(--fg-inverse);
  margin-bottom: var(--space-4);
}

.footer-brand .brand-mark::before {
  border-color: var(--fg-inverse);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--fg-subtle);
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-column h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  margin-bottom: var(--space-5);
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: var(--space-3);
}

.footer-column a {
  font-size: var(--text-sm);
  color: var(--fg-inverse);
  opacity: 0.8;
  transition: opacity var(--motion-fast) var(--ease-standard);
}

.footer-column a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(249, 248, 244, 0.1);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--fg-subtle);
}

.footer-bottom p {
  margin: 0;
}

/* Cards */

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.card-interactive {
  transition: transform var(--motion-base) var(--ease-standard),
              border-color var(--motion-base) var(--ease-standard),
              box-shadow var(--motion-base) var(--ease-standard);
}

.card-interactive:hover {
  transform: translateY(-3px);
  border-color: var(--border-base);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--fg-base);
}

.card p {
  color: var(--fg-muted);
  margin-bottom: var(--space-4);
}

/* Team */

.team-grid {
  align-items: stretch;
}

.team-card {
  text-align: center;
}

.team-photo {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  object-fit: cover;
}

.team-photo-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-accent-soft);
  color: var(--brand-accent);
  font-size: var(--text-xl);
  font-weight: 700;
}

.team-card h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--fg-base);
}

.team-role {
  color: var(--brand-accent);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.team-bio {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin-bottom: 0;
}

/* About page: compact headings + single-row team strip */

.about-page .display,
.about-page .section-title {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  white-space: nowrap;
  max-width: none;
}

.about-page .lead {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.5;
  max-width: 620px;
}

.about-page .team-grid {
  grid-template-columns: repeat(4, 1fr);
}

.about-page .team-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: var(--space-5);
  min-height: 300px;
  gap: 0;
}

.about-page .team-photo {
  width: 140px;
  height: 140px;
  margin: 0 0 var(--space-4);
}

.about-page .team-card h4 {
  font-size: var(--text-lg);
  line-height: 1.25;
  margin-bottom: var(--space-1);
}

.about-page .team-role {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.about-page .team-bio {
  font-size: var(--text-sm);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about-page .stage-panel {
  min-height: 0;
  padding: var(--space-5);
}

.about-page .stage-panel p {
  font-size: var(--text-md);
}

.about-page .social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.about-page .social-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--fg-base);
  font-weight: 700;
  font-size: var(--text-sm);
}

.about-page .social-links svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.about-page .social-links a:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

/* Grid layouts */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

/* Problem cards */

.problem-card {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
}

.problem-card p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-base);
  line-height: 1.35;
  color: var(--fg-base);
  margin-bottom: 0;
}

/* Method */

.method-step {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
}

.method-step .step-num {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-accent);
  margin-bottom: var(--space-3);
}

.method-step h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--fg-base);
}

.method-step p {
  color: var(--fg-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Answer comparison */

.answer-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.answer-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.answer-box.before {
  border-left: 4px solid var(--danger);
}

.answer-box.after {
  border-left: 4px solid var(--success);
}

.answer-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.answer-box.before .answer-label {
  color: var(--danger);
}

.answer-box.after .answer-label {
  color: var(--success);
}

.answer-box h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.answer-box p {
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.answer-box p:last-child {
  margin-bottom: 0;
}

/* Diagnostic panel */

.diagnostic-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.diagnostic-panel h3 {
  margin-bottom: var(--space-2);
}

.diagnostic-panel p {
  margin-bottom: var(--space-2);
}

.diagnostic-panel .notice {
  margin-block: var(--space-4);
}

.diagnostic-section {
  padding-block: clamp(24px, 3.5vw, 40px);
}

.diagnostic-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.diagnostic-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.diagnostic-copy .eyebrow {
  margin: 0;
}

.diagnostic-copy .section-title {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  margin: 0;
  max-width: none;
}

.diagnostic-copy .lead {
  margin: 0;
}

.dimension-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.dimension-item {
  padding: var(--space-4);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.dimension-item h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.dimension-item p {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin-bottom: 0;
}

/* Tabs */

.tab-nav {
  display: flex;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: var(--space-6);
}

.tab-nav a,
.tab-nav button {
  background: none;
  border: none;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard);
}

.tab-nav a:hover,
.tab-nav button:hover {
  color: var(--fg-base);
}

.tab-nav a.active,
.tab-nav button.active {
  color: var(--fg-base);
  border-bottom-color: var(--brand-accent);
}

/* Forms */

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--fg-base);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  font-family: inherit;
  background: var(--bg-elevated);
  color: var(--fg-base);
  transition: border-color var(--motion-fast) var(--ease-standard);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Notice */

.notice {
  background: var(--brand-accent-soft);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 25%, transparent);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--fg-base);
}

.notice strong {
  color: var(--brand-accent);
}

/* Lists */

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding-left: 28px;
  position: relative;
  margin-bottom: var(--space-3);
  color: var(--fg-muted);
}

.checklist li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--brand-accent);
  font-weight: 700;
}

/* Focus */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus-ring) 45%, transparent);
  outline-offset: 3px;
}

/* Mega menu */

.has-mega {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 720px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--shadow-lg);
  transition: opacity var(--motion-base) var(--ease-standard),
              transform var(--motion-base) var(--ease-standard),
              visibility var(--motion-base) var(--ease-standard);
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.mega-item {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--motion-fast) var(--ease-standard);
}

.mega-item:hover {
  background: var(--bg-base);
}

.mega-item h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.mega-item p {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Flow diagram */

.flow-diagram {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.flow-item {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}

.flow-item .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-accent-soft);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
}

.flow-item h4 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.flow-item p {
  font-size: var(--text-md);
  color: var(--fg-muted);
  margin-bottom: 0;
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.publication-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.publication-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.publication-card figcaption {
  padding: var(--space-5);
}

.publication-card span {
  display: inline-flex;
  color: var(--brand-accent);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.publication-card strong {
  display: block;
  font-size: var(--text-xl);
  line-height: 1.18;
}

/* Mentor card */

.mentor-card {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}

.mentor-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.mentor-info h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.mentor-info .subject {
  color: var(--brand-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.mentor-info p {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin-bottom: 0;
}

/* Product modules */

.module-card {
  padding: var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}

.module-card .module-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-accent);
  margin-bottom: var(--space-3);
}

.module-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.module-card p {
  color: var(--fg-muted);
  margin-bottom: var(--space-4);
}

/* Audit update blocks */

.trust-band {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 28%, transparent);
  background: var(--brand-accent-soft);
}

.trust-band strong {
  display: block;
  color: var(--brand-accent);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.trust-band p {
  max-width: 920px;
  margin-bottom: 0;
  color: var(--fg-base);
}

.launchpad-preview {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: 999px;
  background: var(--bg-subtle);
  margin-bottom: var(--space-5);
}

.mode-switch span {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--fg-muted);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mode-switch span.active {
  background: var(--brand-primary);
  color: var(--fg-inverse);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.journey-tile {
  min-height: 156px;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-base);
}

.journey-tile span,
.workflow-chip {
  display: inline-flex;
  color: var(--brand-accent);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.journey-tile h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.journey-tile p {
  color: var(--fg-muted);
  margin-bottom: 0;
}

.workflow-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.workflow-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}

.workflow-item strong {
  color: var(--fg-base);
}

.workflow-item p {
  color: var(--fg-muted);
  margin-bottom: 0;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.proof-stat {
  min-height: 132px;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: var(--fg-base);
}

.proof-stat span {
  display: block;
  color: var(--brand-accent);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.proof-stat strong {
  display: block;
  font-size: var(--text-xl);
  line-height: 1.18;
  color: var(--fg-base);
}

.proof-stat p,
.proof-stat small {
  color: var(--fg-muted);
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.publication-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.publication-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.publication-card figcaption {
  padding: var(--space-5);
}

.publication-card span {
  display: inline-flex;
  color: var(--brand-accent);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.publication-card strong {
  display: block;
  font-size: var(--text-xl);
  line-height: 1.18;
}

/* Metric */

.metric {
  text-align: left;
}

.metric .number {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  line-height: 1;
  color: var(--fg-base);
  letter-spacing: -0.03em;
}

.metric .label {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin-top: var(--space-2);
}

/* Blueprint content layer */

.notice-board {
  position: relative;
  z-index: 110;
  background: linear-gradient(90deg, #C9654E 0%, #CB6550 50%, #CA674F 100%);
  color: #fff;
  border-bottom: none;
}

.notice-board.is-highlight {
  background: linear-gradient(90deg, #C9654E 0%, #CB6550 50%, #CA674F 100%);
}

.notice-board.is-highlight .notice-copy span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #F4D35E;
  color: #1B2234;
  box-shadow: 0 0 0 1px rgba(244, 211, 94, 0.35),
              0 0 26px rgba(244, 211, 94, 0.25);
}

.notice-board-inner {
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
}

.notice-board-inner::before {
  content: none;
}

.notice-ticket {
  min-width: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 5px 7px 5px 14px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
  overflow: hidden;
}

.notice-ticket::before {
  content: "📢";
  font-size: 14px;
  flex: none;
}

.notice-ticket strong,
.notice-ticket span {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.notice-ticket strong {
  color: #F4D35E;
  flex: none;
}

.notice-ticket strong::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.4);
  margin-left: var(--space-3);
  vertical-align: middle;
}

.notice-ticket span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: #F4D35E;
  color: #b5573f;
  flex: none;
}

.notice-ticket p {
  color: #fff;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  flex: 1;
}

.notice-board a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  font-weight: 800;
  font-size: var(--text-xs);
  flex: none;
}

.notice-ticket [data-notice-action] {
  color: #F9F8F4;
}

.notice-auth-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}

.notice-auth-actions a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #b5573f;
  background: #fff;
  border: 1px solid #fff;
  font-size: var(--text-xs);
  font-weight: 800;
}

.notice-auth-actions a:last-child {
  background: #F4D35E;
  border-color: #F4D35E;
  color: #b5573f;
}

.notice-controls {
  display: none;
  align-items: center;
  gap: var(--space-2);
}

.notice-controls small {
  color: rgba(249, 248, 244, 0.78);
  font-size: var(--text-xs);
}

.notice-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(249, 248, 244, 0.22);
  border-radius: 999px;
  background: rgba(249, 248, 244, 0.06);
  color: var(--fg-inverse);
  cursor: pointer;
}

.blueprint-grid {
  align-items: stretch;
}

.blueprint-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.blueprint-card p {
  flex: 1;
}

.text-link {
  color: var(--brand-accent);
  font-size: var(--text-sm);
  font-weight: 800;
}

.result-section {
  padding-block: clamp(32px, 4.5vw, 56px);
}

.result-section .lead {
  max-width: none;
  font-size: clamp(15px, 1.1vw, 17px);
  white-space: nowrap;
}

.result-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.result-compact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}

.result-compact-card h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-compact-card .text-link {
  white-space: nowrap;
  flex-shrink: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block: var(--space-4) var(--space-5);
}

.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--fg-muted);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-panel {
  min-height: 160px;
  padding: var(--space-4);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.stage-panel.dark {
  background: var(--brand-primary);
  color: var(--fg-inverse);
}

.stage-panel h3 {
  color: var(--brand-accent);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.stage-panel h4 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.stage-panel p {
  color: var(--fg-muted);
  font-size: var(--text-base);
}

.stage-panel.dark p {
  color: rgba(249, 248, 244, 0.78);
}

.stage-panel.dark .chip-row span {
  border-color: rgba(249, 248, 244, 0.2);
  background: rgba(249, 248, 244, 0.08);
  color: rgba(249, 248, 244, 0.82);
}

.blueprint-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.blueprint-note p {
  margin-bottom: 0;
}

.blueprint-image {
  margin-top: var(--space-6);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.blueprint-image img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.blueprint-image figcaption {
  padding: var(--space-5);
  color: var(--fg-muted);
  font-weight: 600;
}

.curriculum-map,
.study-chain,
.event-chain,
.ask-panel,
.database-card {
  padding: var(--space-5);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.curriculum-map h3,
.event-chain h3,
.ask-panel h3,
.database-card h3 {
  font-size: var(--text-2xl);
  line-height: 1.1;
  margin-bottom: var(--space-3);
}

.split-line {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-block: var(--space-6);
}

.split-line span {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--brand-accent-soft);
  color: var(--brand-accent);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.study-chain,
.event-chain {
  display: grid;
  gap: var(--space-3);
  max-width: 760px;
}

.study-chain {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
}

.timeline-chain {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  max-width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.mentor-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.mentor-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mentor-copy .eyebrow {
  margin: 0;
}

.mentor-copy .section-title {
  margin: 0;
  max-width: none;
}

.mentor-copy .lead {
  margin: 0;
  max-width: none;
}

.mentor-copy .btn-primary {
  align-self: flex-start;
  margin-top: var(--space-2);
}

.mentor-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.mentor-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
}

.adaptive-section {
  padding-block: clamp(24px, 3vw, 40px);
}

.ask-section {
  padding-block: clamp(24px, 3vw, 40px);
}

.answer-section {
  padding-block: clamp(24px, 3vw, 40px);
}

.answer-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.answer-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.answer-copy .eyebrow {
  margin: 0;
}

.answer-kicker {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--brand-accent);
  margin: 0;
}

.answer-title {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  color: var(--fg-muted);
  max-width: none;
  margin: 0;
}

.answer-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.answer-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.ask-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.ask-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ask-copy .eyebrow {
  margin: 0;
}

.ask-copy .section-title {
  margin: 0;
  max-width: none;
}

.ask-copy .lead {
  margin: 0;
  max-width: none;
}

.ask-lead {
  font-size: clamp(15px, 1.4vw, 18px);
}

.ask-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ask-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.adaptive-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  grid-template-rows: auto auto;
  gap: 0 clamp(20px, 4vw, 48px);
  align-items: start;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.adaptive-copy {
  grid-row: 1;
}

.adaptive-visual {
  grid-row: 1 / 3;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adaptive-visual img {
  display: block;
  width: 92%;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius-lg);
}

.adaptive-chain-wrap {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin-top: var(--space-4);
}

.adaptive-kicker {
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--brand-accent);
  margin: var(--space-3) 0 var(--space-4);
  white-space: normal;
}

.adaptive-title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  color: var(--fg-muted);
  max-width: none;
}

.timeline-item {
  position: relative;
  display: inline-block;
  cursor: default;
}

.timeline-label {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--fg-base);
  font-weight: 700;
  font-size: var(--text-xs);
  white-space: nowrap;
  transition: background var(--motion-base) var(--ease-standard);
}

.timeline-item:hover .timeline-label,
.timeline-item:focus .timeline-label,
.timeline-item:focus-within .timeline-label {
  background: var(--brand-accent-soft);
}

.timeline-story {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(4px);
  width: 280px;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--brand-primary);
  color: var(--fg-inverse);
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--motion-base) var(--ease-standard),
              transform var(--motion-base) var(--ease-standard);
  z-index: 5;
}

.timeline-story::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--brand-primary);
}

.timeline-item:hover .timeline-story,
.timeline-item:focus .timeline-story,
.timeline-item:focus-within .timeline-story {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.timeline-chain i {
  font-style: normal;
  color: var(--fg-muted);
  font-weight: 700;
}

.study-chain strong,
.study-chain span,
.event-chain span {
  display: block;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--fg-base);
  font-weight: 700;
}

.center-line {
  margin-top: var(--space-5);
  text-align: center;
}

/* Flow connector (Problem -> Solution) */
.flow-connector {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.flow-connector-line {
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, transparent, #CA664F);
}
.flow-connector-arrow {
  color: #CA664F;
  font-size: 1.6rem;
  line-height: 1;
}
.flow-connector-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  border-radius: 999px;
  background: #CA664F;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.center-line h3 {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.05;
}

.report-panel {
  max-width: 820px;
}

.report-panel h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--border-soft);
}

.report-row strong {
  color: var(--brand-accent);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
}

.report-panel .notice {
  margin-block: var(--space-3);
}

.ask-panel p {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--fg-base);
  font-weight: 700;
}

.answer-output {
  padding: var(--space-5);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--fg-muted);
}

.home-hero-live {
  padding-block: clamp(36px, 4vw, 56px);
}

.home-hero-top {
  margin-bottom: var(--space-5);
}

.home-hero-live .display {
  max-width: none;
  font-size: clamp(40px, 4.8vw, 70px);
  line-height: 0.98;
  letter-spacing: 0;
  white-space: nowrap;
  margin-bottom: 0;
}

.home-hero-live .lead {
  display: none;
}

.hero-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3);
  max-width: 620px;
}

.hero-quick-actions .btn {
  min-height: 42px;
  padding-inline: 16px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
}

.current-affairs-linker,
.hero-ad-carousel {
  position: relative;
  width: 100%;
  height: 560px;
  min-height: 0;
  max-height: none;
  border: 1px solid rgba(249, 248, 244, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(249, 248, 244, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.current-affairs-linker {
  padding: var(--space-5);
  background:
    linear-gradient(180deg, rgba(255, 207, 102, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(13, 16, 21, 0.82);
}

.linker-head {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.linker-head span,
.linker-list span {
  color: #FFCF66;
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.linker-head strong {
  color: var(--fg-inverse);
  font-size: var(--text-2xl);
  line-height: 1.05;
}

.linker-list {
  display: grid;
  gap: 10px;
}

.linker-list a {
  display: grid;
  gap: var(--space-1);
  padding: 13px 14px;
  border: 1px solid rgba(249, 248, 244, 0.12);
  border-radius: var(--radius-md);
  background: rgba(249, 248, 244, 0.06);
}

.linker-list a.active {
  border-color: rgba(255, 207, 102, 0.48);
  background: rgba(255, 207, 102, 0.12);
}

.linker-list strong {
  color: var(--fg-inverse);
  font-size: var(--text-sm);
  line-height: 1.25;
}

.linker-list small {
  color: rgba(249, 248, 244, 0.64);
  font-size: var(--text-xs);
}

.hero-ad-track {
  position: relative;
  height: 100%;
  min-height: 0;
}

.hero-ad-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5) var(--space-5) 58px;
  opacity: 0;
  transform: translateX(18px);
  animation: adCycle 18s infinite;
  background: #121722;
}

.hero-ad-slide:nth-child(2) {
  animation-delay: 6s;
}

.hero-ad-slide:nth-child(3) {
  animation-delay: 12s;
}

.hero-ad-slide.ad-gold {
  background:
    radial-gradient(circle at 85% 12%, rgba(244, 211, 94, 0.28), transparent 28%),
    linear-gradient(145deg, #201815 0%, #3B2418 52%, #7A411B 100%);
}

.hero-ad-slide.ad-blue {
  background:
    radial-gradient(circle at 82% 14%, rgba(82, 108, 147, 0.38), transparent 28%),
    linear-gradient(145deg, #101821 0%, #162942 55%, #243A5C 100%);
}

.hero-ad-slide.ad-red {
  background:
    radial-gradient(circle at 84% 12%, rgba(228, 72, 72, 0.34), transparent 28%),
    linear-gradient(145deg, #1A1518 0%, #381F24 56%, #6C252C 100%);
}

.hero-ad-slide.has-image {
  padding: 0;
  background: #10141B;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.ad-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-ad-slide.has-image .ad-image {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  max-height: 66%;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: top center;
  background: #F9F8F4;
}

.ad-image-caption {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  padding: var(--space-4) var(--space-5) 34px;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.06));
  border-top: 1px solid rgba(249, 248, 244, 0.12);
}

.ad-image-caption strong {
  color: var(--fg-inverse);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1.3;
}

.ad-image-caption em {
  align-self: flex-start;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--fg-inverse);
  color: var(--fg-base);
  font-style: normal;
  font-weight: 800;
  font-size: var(--text-sm);
}

.ad-art {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  height: 168px;
  border: 1px solid rgba(249, 248, 244, 0.14);
  border-radius: var(--radius-md);
  background: rgba(249, 248, 244, 0.08);
  overflow: hidden;
}

.ad-art span {
  position: absolute;
  border-radius: var(--radius-sm);
  background: rgba(249, 248, 244, 0.12);
}

.ad-art span:nth-child(1) {
  left: 18px;
  top: 18px;
  width: 44%;
  height: 18px;
}

.ad-art span:nth-child(2) {
  left: 18px;
  top: 52px;
  width: 70%;
  height: 76px;
}

.ad-art span:nth-child(3) {
  right: 18px;
  bottom: 18px;
  width: 72px;
  height: 32px;
  background: rgba(244, 211, 94, 0.6);
}

.ad-blue .ad-art span:nth-child(3) {
  background: rgba(126, 164, 216, 0.7);
}

.ad-red .ad-art span:nth-child(3) {
  background: rgba(255, 143, 143, 0.7);
}

.ad-kicker {
  align-self: flex-start;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  margin-top: 190px;
  margin-bottom: var(--space-3);
  border-radius: 999px;
  background: #F4D35E;
  color: #1B2234;
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-ad-slide strong {
  display: block;
  color: var(--fg-inverse);
  font-size: clamp(22px, 1.7vw, 28px);
  line-height: 1.08;
  margin-bottom: var(--space-3);
}

.hero-ad-slide p {
  color: rgba(249, 248, 244, 0.82);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.hero-ad-slide em {
  align-self: flex-start;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--fg-inverse);
  color: var(--fg-base);
  font-style: normal;
  font-weight: 800;
  font-size: var(--text-sm);
}

.ad-dots {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  top: var(--space-3);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.ad-dots span {
  height: 4px;
  border-radius: 999px;
  background: rgba(249, 248, 244, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.ad-dots span:nth-child(1) {
  animation: dotCycle 18s infinite;
}

.ad-dots span:nth-child(2) {
  animation: dotCycle 18s infinite 6s;
}

.ad-dots span:nth-child(3) {
  animation: dotCycle 18s infinite 12s;
}

.vertical-notice-board {
  align-self: stretch;
  width: 100%;
  height: 560px;
  min-height: 0;
  max-height: none;
  border: 1px solid rgba(249, 248, 244, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(13, 16, 21, 0.82);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.hero-with-notice {
  padding-block: clamp(36px, 4vw, 56px);
  background: #0D1015;
}

.hero-with-notice .hero-content {
  align-self: start;
}

.hero-with-notice .eyebrow {
  color: #FFCF66;
}

.hero-with-notice .display {
  color: var(--fg-inverse);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.12;
  text-align: left;
  max-width: 400px;
}

.hero-with-notice .lead {
  color: rgba(249, 248, 244, 0.72);
  font-size: var(--text-sm);
  line-height: 1.5;
  text-align: left;
  max-width: 400px;
}

.hero-with-notice .hero-actions {
  justify-content: flex-start;
}

.hero-notice-grid {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(360px, 1fr) minmax(280px, 340px);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

.hero-notice-grid .hero-content {
  justify-self: start;
}

.hero-notice-grid .hero-ad-carousel,
.hero-notice-grid .hero-notice-panel {
  height: 560px;
}

.hero-notice-grid .hero-ad-carousel {
  max-width: none;
  width: 100%;
  justify-self: stretch;
}

.hero-notice-panel {
  padding: var(--space-5);
  border: 1px solid rgba(249, 248, 244, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 207, 102, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(13, 16, 21, 0.82);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.hero-notice-panel .linker-list a {
  background: rgba(249, 248, 244, 0.06);
}

.vertical-notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 72px;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgba(249, 248, 244, 0.12);
  background: rgba(190, 42, 42, 0.18);
}

.vertical-notice-head span {
  color: #FFCF66;
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vertical-notice-head strong {
  color: var(--fg-inverse);
  font-size: var(--text-sm);
}

.vertical-notice-window {
  height: calc(100% - 72px);
  overflow: hidden;
}

.vertical-notice-track {
  display: grid;
  gap: 10px;
  padding: var(--space-4);
  animation: verticalNotice 32s linear infinite;
}

.vertical-notice-board:hover .vertical-notice-track {
  animation-play-state: paused;
}

.vertical-notice-item {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(249, 248, 244, 0.12);
  border-left: 4px solid #FFCF66;
  border-radius: var(--radius-md);
  background: rgba(249, 248, 244, 0.07);
}

.vertical-notice-item.urgent {
  border-left-color: #E44848;
  background:
    linear-gradient(90deg, rgba(228, 72, 72, 0.18), rgba(249, 248, 244, 0.06));
}

.vertical-notice-item span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  margin-bottom: var(--space-2);
  border-radius: 999px;
  background: rgba(255, 207, 102, 0.13);
  color: #FFCF66;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vertical-notice-item.urgent span {
  background: rgba(228, 72, 72, 0.18);
  color: #FF8F8F;
}

.vertical-notice-item strong {
  display: block;
  color: var(--fg-inverse);
  font-size: var(--text-sm);
  line-height: 1.28;
  margin-bottom: var(--space-1);
}

.vertical-notice-item small {
  display: block;
  color: rgba(249, 248, 244, 0.68);
  font-size: var(--text-xs);
  line-height: 1.4;
}

.ai-home-section {
  overflow: hidden;
}

.ai-home-section .section-header {
  max-width: 820px;
}

.ai-home-section.bg-dark {
  padding-block: clamp(32px, 4.5vw, 56px);
}

.ai-home-split {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.ai-home-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ai-home-copy .eyebrow {
  color: var(--brand-accent-soft);
  margin: 0;
}

.ai-home-copy .section-title {
  color: var(--fg-inverse);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  margin: 0;
}

.ai-home-copy .lead {
  color: rgba(249, 248, 244, 0.78);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: 0;
}

.ai-home-copy .btn-primary {
  align-self: flex-start;
  margin-top: var(--space-2);
}

.ai-home-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ai-home-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
}

.ai-banner-section {
  padding-top: clamp(10px, 1.4vw, 18px);
  padding-bottom: clamp(10px, 1.4vw, 18px);
}

.ai-banner-cta {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 20px;
  border-radius: 999px;
  background: var(--fg-inverse);
  color: var(--fg-base);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.ai-banner-cta:hover {
  background: var(--brand-accent-soft);
}

.ai-banner-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(320px, 42vw, 480px);
  overflow: hidden;
  background: linear-gradient(90deg, #E4CECB 0%, #2E3550 55%, #171A28 100%);
}

.ai-banner-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@keyframes verticalNotice {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes adCycle {
  0%, 3% {
    opacity: 0;
    transform: translateX(18px);
  }
  7%, 30% {
    opacity: 1;
    transform: translateX(0);
  }
  34%, 100% {
    opacity: 0;
    transform: translateX(-18px);
  }
}

@keyframes dotCycle {
  0%, 33% { background: #F4D35E; }
  34%, 100% { background: rgba(249, 248, 244, 0.28); }
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(244, 211, 94, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(244, 211, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 211, 94, 0); }
}

/* Responsive */

@media (max-width: 1024px) {
  .main-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .hero-programme-grid,
  .flow-diagram,
  .publication-grid,
  .footer-grid,
  .answer-compare,
  .dimension-list,
  .form-row,
  .notice-board-inner,
  .mega-menu-grid {
    grid-template-columns: 1fr;
  }

  .notice-board-inner {
    gap: var(--space-2);
    padding-block: var(--space-3);
  }

  .notice-ticket {
    width: 100%;
  }

  .notice-auth-actions {
    justify-content: flex-start;
  }

  .display {
    font-size: clamp(40px, 10vw, 64px);
  }

  .mega-menu {
    display: none;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .ai-home-split {
    grid-template-columns: 1fr;
  }

  .diagnostic-split {
    grid-template-columns: 1fr;
  }

  .result-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-section .lead {
    white-space: normal;
  }

  .about-page .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-split.has-side {
    grid-template-columns: 1fr;
  }

  .mentor-split {
    grid-template-columns: 1fr;
  }

  .adaptive-split {
    grid-template-columns: 1fr;
  }

  .adaptive-copy,
  .adaptive-visual,
  .adaptive-chain-wrap {
    grid-column: 1;
    grid-row: auto;
  }

  .ask-split {
    grid-template-columns: 1fr;
  }

  .answer-split {
    grid-template-columns: 1fr;
  }

  .adaptive-kicker {
    white-space: normal;
  }

  .hero-side {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(249, 248, 244, 0.16);
    padding-top: var(--space-5);
    margin-top: var(--space-5);
  }

  .about-page .display,
  .about-page .section-title {
    white-space: normal;
  }

  .hero-notice-grid {
    grid-template-columns: 1fr;
  }

  .hero-notice-grid .hero-ad-carousel,
  .hero-notice-grid .hero-notice-panel {
    height: 340px;
  }

  .hero-with-notice .display,
  .hero-with-notice .lead {
    max-width: none;
  }

  .home-hero-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-quick-actions {
    justify-content: flex-start;
  }

  .current-affairs-linker,
  .hero-ad-carousel,
  .vertical-notice-board {
    height: 420px;
    min-height: 0;
    max-height: none;
  }

  .hero-ad-track {
    height: 420px;
    min-height: 0;
  }

  .ai-home-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {
  .section {
    padding-block: clamp(32px, 8vw, 48px);
  }

  .section-title {
    font-size: clamp(30px, 8vw, 44px);
  }

  .problem-card p {
    font-size: var(--text-lg);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-hero-live .display {
    white-space: normal;
  }

  .result-compact-grid {
    grid-template-columns: 1fr;
  }

  .about-page .team-grid {
    grid-template-columns: 1fr;
  }

  .study-chain {
    grid-template-columns: 1fr;
  }

  .timeline-chain {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline-chain span {
    white-space: normal;
  }

  .timeline-chain i {
    display: none;
  }

  .timeline-item {
    display: block;
    width: 100%;
  }

  .timeline-label {
    white-space: normal;
  }

  .timeline-story {
    position: static;
    display: none;
    width: 100%;
    transform: none;
    margin-top: var(--space-2);
    opacity: 1;
    visibility: visible;
  }

  .timeline-story::after {
    display: none;
  }

  .timeline-item:hover .timeline-story,
  .timeline-item:focus .timeline-story,
  .timeline-item:focus-within .timeline-story {
    display: block;
    transform: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
  }

  .blueprint-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage-panel {
    min-height: auto;
    padding: var(--space-6);
  }

}

/* ==========================================================================
   THEME: Warm Light (toggle by adding .theme-warm to .hero-with-notice)
   To revert: remove .theme-warm class from the hero element in JS
   To try another theme: duplicate this block and change colors
   ========================================================================== */

.theme-warm.hero-with-notice,
.theme-warm.hero {
  background: #faf7f2;
  border-bottom: 1px solid #e8e2d9;
}

.theme-warm .eyebrow {
  color: #CA664F;
}

.theme-warm .display {
  color: #1a1a1a;
}

.theme-warm .lead {
  color: #4a4a4a;
}

.theme-warm .btn-primary {
  background: #CA664F;
  color: #fff;
  border-color: #CA664F;
}

.theme-warm .btn-primary:hover {
  background: #b5573f;
}

.theme-warm .btn-secondary {
  border-color: #CA664F;
  color: #CA664F;
  background: transparent;
}

.theme-warm .btn-secondary:hover {
  background: #CA664F;
  color: #fff;
}

.theme-warm .hero-notice-panel {
  background: #fff;
  border-color: #e8e2d9;
}

.theme-warm .hero-notice-panel .linker-head span,
.theme-warm .hero-notice-panel .linker-list span {
  color: #c87e2a;
}

.theme-warm .hero-notice-panel .linker-head strong {
  color: #1a1a1a;
}

.theme-warm .hero-notice-panel .linker-list a {
  background: #faf7f2;
  border-color: #e8e2d9;
}

.theme-warm .hero-notice-panel .linker-list a.active {
  border-color: rgba(200, 126, 42, 0.4);
  background: rgba(200, 126, 42, 0.08);
}

.theme-warm .hero-notice-panel .linker-list strong {
  color: #1a1a1a;
}

.theme-warm .hero-notice-panel .linker-list small {
  color: #666;
}

.theme-warm .hero-side {
  border-left-color: #e8e2d9;
}

.theme-warm .hero-side-label {
  color: #CA664F;
}

.theme-warm .hero-side-link {
  color: #1a1a1a;
}

.theme-warm .hero-side-link:hover {
  color: #CA664F;
}

.theme-warm .hero-side .social-links a {
  background: rgba(202, 102, 79, 0.08);
  border-color: rgba(202, 102, 79, 0.2);
  color: #CA664F;
}

.theme-warm .current-affairs-linker {
  background: #fff;
  border: 1px solid #e8e2d9;
}

.theme-warm .vertical-notice-board {
  background: #fff;
  border-color: #e8e2d9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.theme-warm .vertical-notice-head {
  background: #fff;
}

.theme-warm .vertical-notice-head span {
  color: #CA664F;
}

.theme-warm .vertical-notice-head strong {
  color: #1a1a1a;
}

.theme-warm .vertical-notice-item {
  border-color: #e8e2d9;
  border-left: 4px solid #d4a034;
  background: #fff;
}

.theme-warm .vertical-notice-item.urgent {
  border-left-color: #d4a034;
  background: #fff;
}

.theme-warm .vertical-notice-item span {
  background: rgba(212, 160, 52, 0.1);
  color: #c87e2a;
}

.theme-warm .vertical-notice-item.urgent span {
  background: rgba(212, 160, 52, 0.1);
  color: #c87e2a;
}

.theme-warm .vertical-notice-item strong {
  color: #1a1a1a;
}

.theme-warm .vertical-notice-item small {
  color: #666;
}

.theme-warm .linker-head span,
.theme-warm .linker-list span {
  color: #CA664F;
}

.theme-warm .linker-head strong {
  color: #1a1a1a;
}

.theme-warm .linker-list strong {
  color: #1a1a1a;
}

.theme-warm .linker-list small {
  color: #666;
}

.theme-warm .linker-list a {
  background: #faf7f2;
  border-color: #e8e2d9;
}

.theme-warm .hero-ad-carousel {
  border-color: #e8e2d9;
  background: #fff;
}

.theme-warm .hero-ad-slide {
  background: #fff;
}

.theme-warm .hero-ad-slide strong {
  color: #1a1a1a;
}

.theme-warm .hero-ad-slide p {
  color: #4a4a4a;
}

.theme-warm .hero-ad-slide em {
  background: #CA664F;
  color: #fff;
}

.theme-warm .hero-ad-slide.ad-gold {
  background: linear-gradient(135deg, #fef9f0 0%, #fdf5e6 100%);
}

.theme-warm .hero-ad-slide.ad-blue {
  background: linear-gradient(135deg, #f0f5fa 0%, #e8f0f8 100%);
}

.theme-warm .hero-ad-slide.ad-red {
  background: linear-gradient(135deg, #fef5f2 0%, #fdf0ec 100%);
}

.theme-warm .hero-ad-slide.has-image {
  background: #fff;
}

.theme-warm .ad-bar,
.theme-warm .hero-ad-track::before {
  background: rgba(46, 107, 71, 0.15);
}

.theme-warm .ad-bar-fill {
  background: #CA664F;
}

/* (top-announce-bar removed — using global notice-board instead) */
