:root {
  --ink: #111315;
  --ink-soft: #30343a;
  --paper: #ffffff;
  --mist: #f2f4f5;
  --line: #d9dde0;
  --red: #d8061d;
  --red-dark: #a90015;
  --gold: #ffd400;
  --gold-soft: #ffe977;
  --max: 1220px;
  --shadow: 0 24px 70px rgba(17, 19, 21, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell,
.nav-shell {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(17, 19, 21, 0.1);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img {
  width: 48px;
  height: 54px;
  object-fit: contain;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-name small {
  margin-top: 0.32rem;
  color: #77716e;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2rem);
  margin-left: auto;
}

.primary-nav a,
.language-option {
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 670;
  text-decoration: none;
  cursor: pointer;
}

.primary-nav a {
  position: relative;
  padding-block: 1rem;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.7rem;
  height: 2px;
  background: var(--red);
  transition: right 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  right: 0;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-option {
  padding: 0.15rem;
  color: #767a7f;
}

.language-option.is-active {
  color: var(--red);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--ink);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.05);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 12, 13, 0.93) 0%, rgba(10, 12, 13, 0.78) 48%, rgba(10, 12, 13, 0.2) 100%),
    linear-gradient(0deg, rgba(10, 12, 13, 0.26), rgba(10, 12, 13, 0.04));
}

.hero-accent {
  position: absolute;
  top: 0;
  right: clamp(2rem, 8vw, 9rem);
  width: 12px;
  height: 62%;
  background: var(--gold);
  transform: skewX(-14deg);
  transform-origin: top;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 7rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--gold);
}

.eyebrow span {
  margin-inline: 0.5rem;
  color: white;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 860px;
  margin-bottom: 1.55rem;
  font-size: clamp(3rem, 6.1vw, 5.8rem);
  font-weight: 790;
}

h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  font-weight: 770;
}

h3 {
  font-size: 1.45rem;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 2.2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--gold-soft);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.62);
  color: white;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: white;
  color: var(--ink);
}

.proof-band {
  background: var(--ink);
  color: white;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-item {
  min-height: 162px;
  padding: 2rem clamp(1rem, 2vw, 2rem);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.proof-item:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.proof-item strong,
.proof-item span {
  display: block;
}

.proof-item strong {
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 2.35rem;
  line-height: 1;
}

.proof-item span {
  max-width: 220px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.9rem;
  line-height: 1.45;
}

.section {
  padding-block: clamp(5rem, 9vw, 8.5rem);
}

.section-intro {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: 4rem;
}

.section-intro h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.section-intro > p {
  margin-bottom: 0.4rem;
  color: #5d6268;
  font-size: 1.06rem;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pathway-card {
  position: relative;
  min-height: 310px;
  padding: clamp(2rem, 4vw, 3.25rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.pathway-card.featured {
  background: var(--gold);
  border-color: var(--gold);
}

.pathway-card.featured + .pathway-card {
  border-left-color: var(--gold);
}

.pathway-number {
  display: block;
  margin-bottom: 4.8rem;
  color: var(--red);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.pathway-card.featured .pathway-number {
  color: var(--ink);
}

.pathway-card h3 {
  max-width: 400px;
  margin-bottom: 1rem;
}

.pathway-card p {
  max-width: 500px;
  margin-bottom: 0;
  color: #60656b;
}

.pathway-card.featured p {
  color: rgba(17, 19, 21, 0.74);
}

.sector-line {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2.5rem;
}

.sector-line > span {
  flex: 0 0 auto;
  padding-top: 0.35rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sector-line ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sector-line li {
  padding: 0.45rem 0.8rem;
  background: var(--mist);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.87rem;
  font-weight: 650;
}

.education {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: white;
}

.education::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 34%;
  height: 100%;
  background: var(--red-dark);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
}

.education-mark {
  position: absolute;
  right: -0.04em;
  bottom: -0.28em;
  color: rgba(255, 212, 0, 0.12);
  font-size: min(50vw, 44rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.1em;
  user-select: none;
}

.education-shell {
  position: relative;
  z-index: 1;
}

.education-heading {
  margin-bottom: clamp(2.8rem, 5vw, 4.5rem);
}

.education-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: end;
}

.education-intro h2 {
  max-width: 720px;
  margin-bottom: 0;
}

.education-intro p {
  max-width: 620px;
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.school-card {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: clamp(1.6rem, 3.4vw, 2.7rem);
  background: rgba(255, 255, 255, 0.97);
  border-top: 5px solid var(--gold);
  color: var(--ink);
  box-shadow: 0 18px 46px rgba(91, 0, 12, 0.18);
}

.school-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3.2rem;
}

.school-number {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.school-type {
  padding: 0.38rem 0.65rem;
  background: #f1f2f3;
  color: #5e6369;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.25;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.school-card h3 {
  max-width: 520px;
  margin-bottom: 0.3rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.16;
}

.school-location {
  margin: 0 0 1.35rem;
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 760;
}

.school-description {
  margin: 0 0 1.25rem;
  color: #53595f;
}

.school-highlights {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  padding: 0;
  color: #30353a;
  list-style: none;
}

.school-highlights li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.94rem;
}

.school-highlights li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  background: var(--gold);
  border: 1px solid rgba(17, 19, 21, 0.22);
  transform: rotate(45deg);
}

.school-role {
  margin: auto 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
}

.education-note {
  max-width: 960px;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.8rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.18rem;
  border-bottom: 2px solid var(--red);
  font-weight: 760;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(4px);
}

.light-link {
  border-color: var(--gold);
}

.about {
  background: var(--mist);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) 1.28fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.portrait-wrap {
  position: relative;
  max-width: 480px;
  box-shadow: var(--shadow);
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18px;
  left: -18px;
  width: 40%;
  height: 40%;
  background: var(--gold);
}

.portrait-wrap img {
  width: 100%;
  aspect-ratio: 0.95;
  object-fit: cover;
  object-position: center top;
}

.portrait-caption {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.4rem;
  background: var(--ink);
  color: white;
}

.portrait-caption strong {
  font-size: 1.15rem;
}

.portrait-caption span {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.9rem;
}

.about-content h2 {
  max-width: 770px;
}

.about-summary {
  max-width: 760px;
  margin-bottom: 2.6rem;
  color: #575c62;
  font-size: 1.1rem;
}

.timeline {
  border-top: 1px solid #cbd0d3;
}

.timeline-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid #cbd0d3;
}

.timeline-row strong {
  color: var(--red);
}

.timeline-row p {
  margin-bottom: 0;
  color: #555b61;
}

.iitgc-section {
  padding-block: clamp(4rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.iitgc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.iitgc-grid h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
}

.iitgc-grid > div:last-child p {
  margin-bottom: 1.4rem;
  color: #5c6267;
  font-size: 1.05rem;
}

.contact {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.contact-grid h2 {
  max-width: 730px;
}

.contact-grid > div > p:last-child {
  max-width: 650px;
  color: #5c6267;
  font-size: 1.06rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 3.2rem);
  background: var(--gold);
  font-style: normal;
}

.contact-label {
  margin-bottom: 2rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-card strong {
  margin-bottom: 0.2rem;
  font-size: 1.55rem;
}

.contact-card > span:not(.contact-label) {
  color: rgba(17, 19, 21, 0.72);
}

.contact-card a {
  width: fit-content;
  margin-top: 1rem;
  font-weight: 760;
  text-underline-offset: 4px;
}

.site-footer {
  padding-block: 2.1rem;
  background: var(--ink);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  width: 46px;
  height: 52px;
  object-fit: contain;
}

.footer-brand div,
.footer-brand span {
  display: flex;
  flex-direction: column;
}

.footer-brand span,
.site-footer p,
.site-footer > div > a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.site-footer > div > a {
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .nav-shell {
    gap: 1rem;
  }

  .menu-toggle {
    display: block;
    order: 2;
    margin-left: auto;
  }

  .language-switch {
    order: 1;
    margin-left: auto;
  }

  .primary-nav {
    position: fixed;
    z-index: 48;
    inset: 84px 0 auto;
    display: flex;
    max-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    overflow: hidden;
    background: white;
    box-shadow: 0 18px 32px rgba(17, 19, 21, 0.12);
    transition: max-height 220ms ease;
  }

  .primary-nav.is-open {
    max-height: calc(100vh - 84px);
  }

  .primary-nav a {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a::after {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

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

  .proof-item:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }

  .section-intro,
  .education-intro,
  .about-grid,
  .iitgc-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .education::before {
    width: 60%;
    opacity: 0.55;
  }

  .portrait-wrap {
    max-width: 520px;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 680px) {
  .page-shell,
  .nav-shell {
    width: min(calc(100% - 2rem), var(--max));
  }

  .nav-shell {
    min-height: 74px;
  }

  .brand img {
    width: 40px;
    height: 46px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .language-switch {
    padding: 0.4rem 0.55rem;
  }

  .language-option {
    font-size: 0.8rem;
  }

  .primary-nav {
    inset: 74px 0 auto;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding-block: 5.5rem;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(10, 12, 13, 0.91), rgba(10, 12, 13, 0.58));
  }

  .hero-accent {
    right: 1.2rem;
    width: 7px;
    height: 42%;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .proof-item:nth-child(2),
  .proof-item:last-child {
    min-height: auto;
    padding: 1.4rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .proof-item span {
    max-width: 100%;
  }

  .section-intro {
    margin-bottom: 2.5rem;
  }

  .pathway-grid,
  .school-grid {
    grid-template-columns: 1fr;
  }

  .pathway-card {
    min-height: 265px;
  }

  .pathway-number {
    margin-bottom: 3rem;
  }

  .sector-line {
    flex-direction: column;
    gap: 0.9rem;
  }

  .school-card {
    min-height: auto;
  }

  .school-card-top {
    margin-bottom: 2.25rem;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer p {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
