/* =========================================================
   Kalpvriksh College of Pharmacy, Pilani
   Layout: single admissions-first page; hero + ℞ fact strip,
   alternating paper / tint / deep-green bands.
   ========================================================= */

:root {
  /* Color */
  --paper:   #F7F8F4;   /* page ground, faint green bias */
  --tint:    #ECF1EA;   /* alternate band */
  --surface: #FFFFFF;   /* cards, form */
  --ink:     #17231F;   /* body text */
  --muted:   #586861;   /* secondary text */
  --line:    #D6DFD8;   /* hairlines */
  --green:   #0E3B32;   /* brand: pharmacopoeia green */
  --green-2: #15564A;   /* hover / lighter brand */
  --marigold:#F2B33D;   /* accent: Shekhawati marigold */
  --marigold-ink: #2A1E05;
  --on-dark: #EAF1EC;
  --on-dark-muted: #A9C0B7;

  /* Type */
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body:    "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.4vw, 1.35rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3:  clamp(1.9rem, 1.5rem + 1.8vw, 2.8rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.2vw, 4.2rem);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 59, 50, .06), 0 8px 24px rgba(14, 59, 50, .08);
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C1613; --tint: #111E1A; --surface: #15241F;
    --ink: #E3ECE7; --muted: #9DB1A8; --line: #24372F;
    --green: #0A2B24; --green-2: #1E6B5B;
    --marigold: #F4BE55; --marigold-ink: #241903;
    --on-dark: #EAF1EC; --on-dark-muted: #A9C0B7;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0C1613; --tint: #111E1A; --surface: #15241F;
  --ink: #E3ECE7; --muted: #9DB1A8; --line: #24372F;
  --green: #0A2B24; --green-2: #1E6B5B;
  --marigold: #F4BE55; --marigold-ink: #241903;
  --on-dark: #EAF1EC; --on-dark-muted: #A9C0B7;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; max-width: 65ch; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-weight: 500; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--marigold); color: var(--marigold-ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 12px; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green-2);
  margin-bottom: .8em;
}
.eyebrow--light { color: var(--marigold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--f-body);
  padding: .95em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--marigold); color: var(--marigold-ink); }
.btn--accent:hover { background: #F7C15C; }
.btn--primary { background: var(--green); color: var(--on-dark); }
.btn--primary:hover { background: var(--green-2); }
.btn--ghost { border-color: currentColor; color: var(--green-2); background: transparent; }
.btn--sm { padding: .7em 1.1em; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Notice strip ---------- */
.notice { background: var(--marigold); color: var(--marigold-ink); font-size: var(--step--1); font-weight: 600; }
.notice__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .4em 1em; padding-block: .5em; justify-content: center; }
.notice__pill { background: var(--marigold-ink); color: var(--marigold); padding: .15em .6em; border-radius: 999px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.notice__link { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__bg { fill: var(--green); }
.brand__trunk { stroke: var(--marigold); stroke-width: 4; stroke-linecap: round; fill: none; }
.brand__crown { fill: var(--marigold); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--f-display); font-size: 1.2rem; font-weight: 800; color: var(--green-2); }
.brand__text small { font-size: .8rem; color: var(--muted); }

/* Utility bar */
.utility { background: var(--green); color: var(--on-dark); font-size: .85rem; }
.utility__inner { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding-block: 7px; }
.utility a { color: var(--on-dark); text-decoration: none; }
.utility a:hover { color: var(--marigold); }
.utility__contact, .utility__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.utility__links a { font-weight: 600; }
@media (max-width: 640px) { .hide-sm { display: none; } .utility__inner { justify-content: center; } }

/* Main menu with dropdowns */
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.menu__item { position: relative; }
.menu__link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font: 600 .95rem/1 var(--f-body); color: var(--ink); text-decoration: none;
  padding: .75em .75em; border-radius: 8px;
}
.menu__link:hover, .menu__item.is-open > .menu__link { background: var(--tint); color: var(--green-2); }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.menu__item.is-open .caret { transform: rotate(-135deg) translateY(-2px); }
.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  display: none; z-index: 60;
}
.submenu a { display: block; padding: .65em .8em; border-radius: 8px; text-decoration: none; font-weight: 500; color: var(--ink); }
.submenu a:hover { background: var(--tint); color: var(--green-2); }
.menu__item.is-open > .submenu { display: block; }
@media (hover: hover) and (min-width: 1081px) {
  .has-sub:hover > .submenu { display: block; }
  .has-sub:hover .caret { transform: rotate(-135deg) translateY(-2px); }
  .submenu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
}
.menu__cta { margin-left: 8px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow-y: auto;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu__link { width: 100%; justify-content: space-between; padding: .9em .6em; font-size: 1rem; }
  .submenu { position: static; box-shadow: none; border: 0; background: var(--tint); margin: 2px 0 6px; min-width: 0; }
  .menu__cta { margin: 12px 0 0; }
  .menu__cta .btn { width: 100%; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__copy { min-width: 0; }
.hero__title { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.025em; color: var(--green-2); margin-bottom: .35em; }
.hero__title .hl { color: var(--ink); display: inline-block; position: relative; }
.hero__title .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em;
  background: var(--marigold); z-index: -1; border-radius: 3px; opacity: .85;
}
.hero__title { position: relative; z-index: 0; }
.hero__lede { font-size: var(--step-1); color: var(--muted); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media { margin: 0; position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: center;
  border-radius: var(--radius) var(--radius) var(--radius) 80px;
  box-shadow: var(--shadow);
}
.hero__media::before {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 45%; height: 45%;
  border: 2px solid var(--marigold); border-radius: var(--radius); z-index: -1;
}

/* Prescription-style fact strip */
.facts {
  margin: clamp(36px, 5vw, 56px) 0 0;
  display: grid; grid-template-columns: auto repeat(5, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.facts__rx {
  display: grid; place-items: center; padding: 0 22px;
  background: var(--green); color: var(--marigold);
  font-family: var(--f-display); font-size: 2.4rem; font-weight: 700;
}
.fact { padding: 18px 20px; border-left: 1px solid var(--line); min-width: 0; }
.fact:nth-child(2) { border-left: 0; }
.fact dt { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fact dd { margin: 4px 0 0; font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.fact dd span { font-size: .85rem; color: var(--muted); font-weight: 500; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16 / 10; border-radius: var(--radius) var(--radius) var(--radius) 48px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__rx { grid-column: 1 / -1; padding: 10px; font-size: 1.6rem; justify-items: start; padding-left: 20px; }
  .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact:nth-child(even) { border-right: 1px solid var(--line); }
  .fact:nth-child(2) { border-top: 0; }
  .fact:nth-child(3) { border-top: 0; }
  .fact:last-child { grid-column: 1 / -1; border-right: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--green); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section__lede { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.note { font-size: var(--step--1); color: var(--muted); font-style: italic; margin-top: 1em; }
.note--light { color: var(--on-dark-muted); }

/* Tick lists */
.ticks { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: .6em; }
.ticks li { position: relative; padding-left: 1.8em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.1em; height: 1.1em; border-radius: 50%;
  background: var(--green-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.ticks--light li::before { background-color: var(--marigold); }
.ticks--cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__text { min-width: 0; }
.ticks:where(.split .ticks) { grid-template-columns: 1fr 1fr; }
.stack { margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: auto auto; }
.stack img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.stack img:first-child { grid-column: 1 / 6; grid-row: 1; aspect-ratio: 16 / 10; }
.stack img:last-child { grid-column: 3 / 7; grid-row: 2; margin-top: -18%; aspect-ratio: 4 / 3; border: 6px solid var(--paper); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .ticks:where(.split .ticks) { grid-template-columns: 1fr; }
}

/* Courses */
.courses { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.course {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; justify-content: space-between;
}
.course--main { box-shadow: var(--shadow); border-top: 5px solid var(--green-2); }
.course--soon { background: transparent; border-style: dashed; }
.course h3 { font-size: var(--step-2); margin-top: .5em; }
.course p { color: var(--muted); }
.course .btn { align-self: flex-start; }
.tag { display: inline-block; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: .35em .75em; border-radius: 999px; background: var(--tint); color: var(--muted); border: 1px solid var(--line); }
.tag--live { background: var(--marigold); color: var(--marigold-ink); border-color: transparent; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.specs div { background: var(--tint); border-radius: var(--radius-sm); padding: 14px; }
.specs dt { font-size: .8rem; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 700; font-family: var(--f-display); font-size: 1.15rem; }
@media (max-width: 860px) { .courses { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .specs { grid-template-columns: 1fr; } }

/* Admission */
.admission { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; position: relative; padding-bottom: 28px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: var(--line); }
.step__no {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--marigold); font-family: var(--f-display); font-weight: 800; font-size: 1.3rem;
}
.step h3 { margin-top: .6em; margin-bottom: .3em; }
.step p { color: var(--muted); margin-bottom: .6em; }
.docs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.docs li { background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: .92rem; font-weight: 600; }
.docs em { font-weight: 400; color: var(--muted); }
@media (max-width: 860px) { .admission { grid-template-columns: 1fr; } }

/* Fees */
.fees { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.table-wrap { overflow-x: auto; margin-top: 1.4em; }
.fee-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fee-table th { text-align: left; font-family: var(--f-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-muted); padding: 0 0 12px; border-bottom: 1px solid rgba(255,255,255,.18); }
.fee-table th:last-child, .fee-table td:last-child { text-align: right; }
.fee-table td { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.05rem; }
.fee-table td:last-child { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: #fff; white-space: nowrap; }
.fee-table tbody tr:first-child td:last-child { color: var(--marigold); font-size: 1.5rem; }
.fee-table td span { font-family: var(--f-body); font-size: .85rem; font-weight: 400; color: var(--on-dark-muted); }
.scholar { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.scholar .btn { margin-top: 24px; }
@media (max-width: 860px) { .fees { grid-template-columns: 1fr; } }

/* Facilities */
.facility-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.fac { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; grid-column: span 2; aspect-ratio: 4 / 3; }
.fac--wide { grid-column: span 3; aspect-ratio: auto; }
.fac img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fac:hover img { transform: scale(1.04); }
.fac figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(14, 59, 50, .88); color: #fff; font-weight: 600; font-size: .9rem;
  padding: .4em .85em; border-radius: 999px;
}
.feature-list { list-style: none; padding: 0; margin: clamp(32px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.feature-list li { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.feature-list strong { font-family: var(--f-display); font-size: 1.1rem; color: var(--green-2); }
.feature-list span { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) {
  .facility-grid { grid-template-columns: 1fr 1fr; }
  .fac, .fac--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .fac--wide:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .fac--wide:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .feature-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .feature-list { grid-template-columns: 1fr; } }

/* Faculty */
.principal { display: flex; align-items: center; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); max-width: 520px; margin-bottom: 32px; }
.principal h3 { font-size: var(--step-2); margin: 0; }
.role { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green-2); margin: 0 0 .2em; }
.avatar {
  width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--marigold); font-family: var(--f-display); font-weight: 700; font-size: .9rem;
}
.avatar--lg { width: 72px; height: 72px; font-size: 1.4rem; }
.faculty-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.group-title { font-size: 1rem; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.people li { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; }
@media (max-width: 720px) { .faculty-groups { grid-template-columns: 1fr; } }

/* Careers / why */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.two-col > div { min-width: 0; }
.chips { list-style: none; padding: 0; margin: 1.4em 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 2px solid var(--green-2); color: var(--green-2); border-radius: 999px; padding: .5em 1.1em; font-weight: 700; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; grid-auto-flow: dense; }
.g-item { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-item--tall { grid-row: span 2; }
.g-item--wide { grid-column: span 2; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(6, 18, 15, .88); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox p { color: #fff; text-align: center; margin: 12px auto 0; font-weight: 600; }
.lightbox__close { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Apply */
.apply { background: var(--green); color: var(--on-dark); position: relative; overflow: hidden; }
.apply::before {
  content: "℞"; position: absolute; right: -40px; top: -80px; font-family: var(--f-display); font-size: 420px; line-height: 1;
  color: rgba(255,255,255,.04); pointer-events: none;
}
.apply h2 { color: #fff; }
.apply__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; position: relative; }
.apply__intro p { color: var(--on-dark-muted); font-size: var(--step-1); line-height: 1.5; }
.contact-quick { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.contact-quick li { display: flex; align-items: baseline; gap: 14px; }
.contact-quick span { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--marigold); width: 54px; }
.contact-quick a { font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; text-decoration: none; color: #fff; font-variant-numeric: tabular-nums; }
.contact-quick a:hover { color: var(--marigold); }

.form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: 0 20px 50px rgba(0,0,0,.25); display: grid; gap: 16px; }
.form__row { display: grid; gap: 6px; min-width: 0; }
.form__row--2 { grid-template-columns: 1fr 1fr; gap: 14px; }
.form__row--2 > div { display: grid; gap: 6px; min-width: 0; }
.form label { font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .75em .9em;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-2) 25%, transparent); }
.form input[aria-invalid="true"] { border-color: #C0392B; }
.form__hint { font-size: .84rem; color: var(--muted); margin: 0; }
.form__error { color: #B3261E; font-weight: 600; margin: 0; }
.form__success { color: var(--green-2); font-weight: 600; margin: 0; }
@media (max-width: 860px) { .apply__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form__row--2 { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.contact__info { min-width: 0; }
.contact address { font-style: normal; font-size: var(--step-1); line-height: 1.5; margin: 1em 0 1.4em; }
.contact-list { margin: 0 0 28px; display: grid; gap: 14px; }
.contact-list dt { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a { color: var(--green-2); text-underline-offset: 3px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: var(--tint); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Ticker */
.ticker { background: var(--tint); border-bottom: 1px solid var(--line); font-size: .92rem; }
.ticker__inner { display: flex; align-items: center; gap: 14px; padding-block: 8px; }
.ticker__label { flex: none; background: var(--marigold); color: var(--marigold-ink); font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; padding: .35em .7em; border-radius: 4px; }
.ticker__track { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__items { display: flex; gap: 48px; width: max-content; animation: tick 38s linear infinite; }
.ticker__items a { white-space: nowrap; text-decoration: none; font-weight: 600; color: var(--ink); }
.ticker__items a::before { content: "●"; color: var(--marigold); margin-right: 10px; font-size: .7em; vertical-align: middle; }
.ticker__items a:hover { color: var(--green-2); text-decoration: underline; }
.ticker:hover .ticker__items, .ticker:focus-within .ticker__items { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Quick task tiles */
.quick { padding-block: 0 clamp(16px, 3vw, 32px); }
.quick__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.quick__tile {
  display: grid; gap: 4px; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.quick__tile:hover { border-color: var(--green-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.quick__tile svg { width: 28px; height: 28px; stroke: var(--green-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.quick__tile strong { font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); }
.quick__tile span { font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) { .quick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quick__grid li:last-child { grid-column: 1 / -1; } }

/* Vision & mission */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.vm__card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.vm__card h3 { font-size: 1.05rem; color: var(--green-2); }
.vm__card p { margin: 0; color: var(--muted); font-size: .97rem; }
.ticks--tight { margin-top: .4em; gap: .35em; font-size: .97rem; }
@media (max-width: 520px) { .vm { grid-template-columns: 1fr; } }

/* Approvals strip */
.approvals { background: var(--surface); border-block: 1px solid var(--line); }
.approvals__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding-block: 22px; }
.approvals__label { margin: 0; font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.approvals__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.approvals__list li { display: flex; align-items: center; gap: 12px; }
.approvals__list strong { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--green-2); color: var(--green-2); font-family: var(--f-display); font-size: .95rem; font-weight: 800; flex: none; }
.approvals__list span { font-weight: 600; max-width: 22ch; line-height: 1.3; }

/* Notice board + events */
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.board__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); min-width: 0; }
.board__title { font-size: 1.15rem; padding-bottom: 12px; border-bottom: 2px solid var(--marigold); display: inline-block; margin-bottom: 8px; }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { padding: 14px 0; border-bottom: 1px dashed var(--line); display: grid; gap: 2px; }
.notice-list li:last-child { border-bottom: 0; }
.notice-list a { font-weight: 600; color: var(--ink); text-decoration: none; }
.notice-list a:hover { color: var(--green-2); text-decoration: underline; }
.notice-list__meta { font-size: .82rem; color: var(--muted); }
.badge { justify-self: start; font-family: var(--f-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; padding: .2em .55em; border-radius: 4px; }
.badge--new { background: #C62828; color: #fff; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.event { display: grid; grid-template-columns: 68px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.event:last-child { border-bottom: 0; }
.event__date { display: grid; place-items: center; align-content: center; background: var(--green); color: #fff; border-radius: 10px; height: 68px; text-align: center; }
.event__date b { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; }
.event__date span { font-size: .7rem; color: var(--marigold); font-weight: 600; margin-top: 2px; }
.event h4 { margin: 0 0 4px; font-family: var(--f-display); font-size: 1.05rem; }
.event p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .board { grid-template-columns: 1fr; } }

/* Students' corner */
.corner { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.corner__card {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px;
  text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.corner__card:hover { border-color: var(--green-2); box-shadow: var(--shadow); }
.corner__card strong { font-family: var(--f-display); font-size: 1.08rem; color: var(--ink); }
.corner__card span { grid-column: 1; font-size: .9rem; color: var(--muted); }
.corner__card em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-2); border: 1.5px solid var(--green-2); border-radius: 6px; padding: .3em .55em; }
.corner__hint { margin-top: 16px; font-weight: 600; color: var(--green-2); }
@media (max-width: 860px) { .corner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .corner { grid-template-columns: 1fr; } }

/* Mega footer */
.site-footer { background: var(--green); color: var(--on-dark-muted); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 32px; padding-block: clamp(44px, 6vw, 64px) 28px; }
.footer__grid > div { min-width: 0; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: var(--on-dark-muted); }
.brand__bg--light { fill: rgba(255,255,255,.08); }
.footer__about p { margin-top: 14px; font-size: .95rem; }
.footer__tag { color: var(--marigold); font-weight: 700; }
.footer__h { font-size: .78rem; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--marigold); margin-bottom: 14px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__list a { color: var(--on-dark); text-decoration: none; font-size: .95rem; overflow-wrap: anywhere; }
.footer__list a:hover { color: var(--marigold); text-decoration: underline; }
.footer__copy { margin: 0; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; max-width: none; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Back to top */
.to-top {
  position: fixed; z-index: 40;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: var(--marigold); font-size: 1.3rem; box-shadow: var(--shadow);
}
@media (max-width: 720px) { .to-top { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

/* Floating apply button (mobile) */
.fab {
  display: none; position: fixed; z-index: 40;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--marigold); color: var(--marigold-ink); font-weight: 700; text-decoration: none;
  padding: .85em 1.3em; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
@media (max-width: 720px) { .fab.is-visible { display: inline-flex; } }

/* Reveal on scroll (content stays visible without JS) */
.reveal { opacity: 1; transform: none; }
.js .reveal { transform: translateY(14px); transition: transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
