/* ==========================================================================
   SPIC — Sudeco Polytechnic Integrated College
   Stylesheet
   Palette grounded in the SPIC crest: royal indigo, hawk gold, book-page sky.
   ========================================================================== */

:root{
  /* Color tokens */
  --ink:        #1A1638;   /* near-black indigo — primary text   */
  --royal:      #3F2E86;   /* brand purple — from crest           */
  --royal-deep: #261A57;   /* darker brand — gradients, hover      */
  --royal-soft: #EFEBFA;   /* pale tint of royal for chips/badges  */
  --gold:       #C6932E;   /* hawk gold — from crest gear/stars    */
  --gold-deep:  #876114;   /* darkened: 5.2:1 on paper (was #A2761F at 3.8:1) */
  --gold-light: #E3C878;   /* gold that stays readable on the dark panels */
  --paper:      #F8F6F1;   /* warm background                      */
  --panel:      #EDEAE1;   /* slightly deeper panel on paper       */
  --sky:        #E9EEF6;   /* pale blue — from crest book pages    */
  --slate:      #63607A;   /* muted secondary text                 */
  --line:       rgba(26,22,56,.13);
  --white:      #FFFFFF;

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  /* Scale */
  --container: 1180px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;
  --shadow-card: 0 1px 2px rgba(26,22,56,.06), 0 12px 28px -14px rgba(26,22,56,.22);
  --shadow-lift: 0 24px 48px -20px rgba(26,22,56,.35);

  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing:border-box; }
html{
  scroll-behavior:smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body{
  margin:0;
  font-family:var(--font-body);
  background:var(--paper);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
  font-size:16px;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font:inherit; cursor:pointer; background:none; border:none; color:inherit; }
h1,h2,h3,h4,p{ margin:0; }
section{ position:relative; }

/* Focus ring: a dark inner outline plus a gold halo. The dark ring keeps
   at least 3:1 against the light paper background (brand gold alone is
   only 2.5:1 there), while the gold halo stays visible when the ring
   lands on a dark royal/ink panel. */
:focus-visible{
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(198,147,46,.5);
  border-radius: 4px;
}

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

.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:24px;
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--royal);
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:600;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background:var(--gold);
  display:inline-block;
}

.section-head{
  max-width:640px;
  margin-bottom:44px;
}
.section-head h2{
  font-family:var(--font-display);
  font-size:clamp(28px, 4vw, 42px);
  font-weight:600;
  line-height:1.15;
  margin-top:10px;
  color:var(--ink);
}
.section-head p{
  margin-top:14px;
  color:var(--slate);
  font-size:16.5px;
  max-width:56ch;
}
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head.center .eyebrow::before{ display:none; }
.section-head.center p{ margin-inline:auto; }

.pad{ padding-block:96px; }
@media (max-width:720px){ .pad{ padding-block:64px; } }

.alt-bg{ background:var(--sky); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 26px;
  border-radius:999px;
  font-weight:600;
  font-size:15px;
  letter-spacing:.01em;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--gold);
  color:var(--ink);
  box-shadow:0 10px 24px -10px rgba(198,147,46,.65);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 30px -10px rgba(198,147,46,.75); }
.btn-ghost{
  background:transparent;
  border:1.5px solid rgba(255,255,255,.55);
  color:var(--white);
}
.btn-ghost:hover{ background:rgba(255,255,255,.12); border-color:#fff; }
.btn-outline{
  border:1.5px solid var(--line);
  color:var(--ink);
}
.btn-outline:hover{ border-color:var(--royal); color:var(--royal); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.nav{
  position:fixed; inset:0 0 auto 0;
  height:var(--nav-h);
  z-index:100;
  display:flex; align-items:center;
  background:rgba(248,246,241,.38);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(255,255,255,.18);
  transition:background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.nav.is-scrolled{
  background:rgba(248,246,241,.92);
  backdrop-filter:blur(10px);
  border-color:var(--line);
  box-shadow:0 8px 24px -18px rgba(26,22,56,.3);
}
.nav .container{
  display:flex; align-items:center; justify-content:space-between;
  gap:24px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:17px;
  color:var(--ink);
}
.brand img{ height:42px; width:auto; }
.brand .brand-text{ display:flex; flex-direction:column; line-height:1.2; }
.brand .brand-text b{ font-size:16.5px; }
.brand .brand-text span{
  font-family:var(--font-mono);
  font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--royal);
}

.nav-links{
  display:flex; align-items:center; gap:30px;
}
.nav-links a,
.nav-dropdown-toggle{
  font-size:14.5px; font-weight:500; color:var(--ink);
  position:relative; padding:6px 0;
}
.nav-links a::after,
.nav-dropdown-toggle::after{
  content:""; position:absolute; left:0; bottom:0; height:2px; width:0;
  background:var(--gold); transition:width .25s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after,
.nav-dropdown-toggle:hover::after,
.nav-dropdown.is-open .nav-dropdown-toggle::after{ width:100%; }
.nav-links a.is-active,
.nav-dropdown.is-open .nav-dropdown-toggle{ color:var(--royal); }

/* ---------- Campus dropdown ---------- */
.nav-dropdown{ position:relative; }
.nav-dropdown-toggle{
  display:inline-flex; align-items:center; gap:7px;
  letter-spacing:inherit;
}
.nav-caret{
  width:6px; height:6px; margin-top:-3px;
  border-right:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;
  transform:rotate(45deg);
  transition:transform .25s ease, margin-top .25s ease;
}
.nav-dropdown.is-open .nav-caret{ transform:rotate(-135deg); margin-top:2px; }
.nav-dropdown-menu{
  position:absolute; top:calc(100% + 16px); left:-18px;
  min-width:196px; z-index:20;
  display:flex; flex-direction:column; gap:2px;
  padding:8px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius-s);
  box-shadow:var(--shadow-lift);
  opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.nav-dropdown.is-open .nav-dropdown-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.nav-dropdown-menu a{
  display:block; width:100%; padding:12px 14px;
  font-size:14px; font-weight:500; color:var(--ink);
  border-radius:var(--radius-s);
}
.nav-dropdown-menu a::after{ display:none; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible{
  background:var(--royal-soft); color:var(--royal);
}

.nav-cta{ display:flex; align-items:center; gap:16px; }
.nav .btn-primary{ padding:11px 22px; font-size:14px; }

.nav-toggle{
  display:none;
  flex-direction:column; gap:5px;
  align-items:center; justify-content:center;
  width:44px; min-height:44px;   /* comfortable touch target (was 26x16) */
  margin-right:-9px;             /* keeps the icon optically flush right */
}
.nav-toggle span{ height:2px; width:26px; background:var(--ink); border-radius:2px; transition:transform .3s ease, opacity .3s ease; }

@media (max-width:960px){
  .nav-links{
    position:fixed; top:var(--nav-h); left:0; right:0;
    background:var(--paper);
    flex-direction:column; align-items:flex-start;
    padding:8px 24px 28px;
    gap:4px;
    border-bottom:1px solid var(--line);
    transform:translateY(-8px);
    opacity:0; visibility:hidden;
    transition:opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .nav-links a{ padding:12px 0; width:100%; }
  .nav-links.is-open{ transform:translateY(0); opacity:1; visibility:visible; }
  .nav-dropdown{ width:100%; }
  .nav-dropdown-toggle{ width:100%; justify-content:space-between; padding:12px 0; }
  .nav-dropdown-menu{
    position:static; top:auto; left:auto;
    min-width:0;
    display:none;
    padding:2px 0 10px 14px;
    background:none; border:0;
    border-left:2px solid var(--line);
    box-shadow:none;
    opacity:1; visibility:visible; transform:none;
  }
  .nav-dropdown.is-open .nav-dropdown-menu{ display:flex; }
  .nav-links .nav-dropdown-menu a{ padding:10px 0 10px 12px; }
  .nav-toggle{ display:flex; }
  .nav-cta .btn-primary{ display:none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  min-height:100svh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  color:var(--white);
  position:relative;
  overflow:hidden;
}
.hero-media{
  position:absolute; inset:0;
  z-index:0;
}
.hero-media img{
  width:100%; height:100%; object-fit:cover; object-position:center 30%;
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(
      180deg,
      rgba(26,20,56,.48) 0%,
      rgba(26,20,56,.28) 32%,
      rgba(20,14,45,.68) 78%,
      rgba(15,10,36,.88) 100%
    );
}
.hero-inner{
  position:relative; z-index:1;
  width:100%;
  padding-block: calc(var(--nav-h) + 56px) 64px;
}
.hero-crest{
  display:flex; align-items:center; gap:14px;
  margin-bottom:26px;
}
.hero-crest img{ height:52px; width:auto; filter:drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.hero-crest span{
  font-family:var(--font-mono);
  font-size:12px; letter-spacing:.16em; text-transform:uppercase;
  color:#E7DEFF;
}
.hero h1{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(38px, 5.6vw, 66px);
  line-height:1.02;
  max-width:24ch;
  letter-spacing:-.015em;
}
.hero .tagline{
  font-family:var(--font-display);
  font-style:italic;
  font-size:clamp(19px, 2.2vw, 25px);
  color:var(--gold-light);
  margin-top:18px;
}
.hero .sub{
  margin-top:18px;
  max-width:54ch;
  font-size:16px;
  line-height:1.65;
  color:#E7E4F3;
}
.hero-ctas{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:32px;
}

/* Ink-stamp signature badge */
.stamp{
  position:absolute;
  top: calc(var(--nav-h) + 40px);
  right: 6%;
  width:132px; height:132px;
  border:1.5px dashed rgba(255,255,255,.75);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transform:rotate(-9deg);
  z-index:2;
}
.stamp::before{
  content:"";
  position:absolute; inset:9px;
  border:1px solid rgba(255,255,255,.4);
  border-radius:50%;
}
.stamp-text{
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
  text-align:center;
  color:#fff;
  line-height:1.55;
  padding:14px;
}
.stamp-text b{ display:block; color:var(--gold-light); font-size:11px; letter-spacing:.14em; }
@media (max-width:720px){
  .stamp{ display:none; }
}

.perks-strip{
  position:relative; z-index:1;
  border-top:1px solid rgba(255,255,255,.18);
  margin-top:44px;
}
.perks-strip .container{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
}
.perk{
  padding:20px 20px 4px 0;
  border-right:1px solid rgba(255,255,255,.16);
}
.perk:last-child{ border-right:none; }
.perk b{
  display:block;
  font-family:var(--font-display);
  font-size:17px;
  font-weight:600;
  color:#fff;
}
.perk span{
  display:block;
  margin-top:4px;
  font-size:12.5px;
  color:#C9C2E8;
}
@media (max-width:860px){
  .perks-strip .container{ grid-template-columns:repeat(2,1fr); row-gap:20px; }
  .perk{ border-right:none; padding-right:12px; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:64px;
  align-items:center;
}
.about-copy .lede{
  font-family:var(--font-display);
  font-size:22px;
  line-height:1.5;
  color:var(--ink);
  margin-top:16px;
}
.value-list{
  margin-top:32px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px 24px;
}
.value-list li{
  font-size:14.5px;
  font-weight:500;
  padding-left:20px;
  position:relative;
  color:var(--ink);
}
.value-list li::before{
  content:"";
  position:absolute; left:0; top:8px;
  width:8px; height:8px;
  background:var(--gold);
  border-radius:2px;
}

.about-media{ position:relative; }
.about-media img{
  border-radius:var(--radius-l);
  box-shadow:var(--shadow-card);
}
.about-media .tag-card{
  position:absolute;
  bottom:-26px; left:-26px;
  background:var(--royal);
  color:#fff;
  border-radius:var(--radius-m);
  padding:20px 22px;
  max-width:230px;
  box-shadow:var(--shadow-lift);
}
.about-media .tag-card p{
  font-family:var(--font-display);
  font-style:italic;
  font-size:15px;
  line-height:1.5;
}
.about-media .tag-card span{
  display:block; margin-top:10px;
  font-family:var(--font-mono);
  font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--gold);
}

/* Philosophy / Mission / Vision folder tabs */
.pmv{
  margin-top:88px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2px;
  background:var(--line);
  border-radius:var(--radius-l);
  overflow:hidden;
}
.pmv-card{
  background:var(--paper);
  padding:38px 32px;
}
.pmv-card:nth-child(2){ background:var(--royal); color:#fff; }
.pmv-card .num{
  font-family:var(--font-mono);
  font-size:11px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--gold);
}
.pmv-card:nth-child(2) .num{ color:#E3C878; }
.pmv-card h3{
  font-family:var(--font-display);
  font-size:22px; font-weight:600;
  margin-top:12px;
}
.pmv-card p{
  margin-top:14px;
  font-size:14.5px;
  line-height:1.65;
  color:var(--slate);
}
.pmv-card:nth-child(2) p{ color:#D9D3F0; }

@media (max-width:900px){
  .about-grid{ grid-template-columns:1fr; }
  .about-media{ order:-1; }
  .about-media .tag-card{ left:16px; bottom:-20px; }
  .value-list{ grid-template-columns:1fr; }
  .pmv{ grid-template-columns:1fr; }
}

/* ==========================================================================
   Strands / Academic Programs
   ========================================================================== */
.strand-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:var(--radius-l);
  overflow:hidden;
}
.strand-card{
  background:var(--paper);
  padding:34px 28px;
  transition:background .25s ease;
}
.strand-card:hover{ background:var(--sky); }
.strand-code{
  font-family:var(--font-mono);
  font-size:11.5px; letter-spacing:.1em;
  color:var(--gold-deep);
  font-weight:600;
}
.strand-card h3{
  font-family:var(--font-display);
  font-size:21px; font-weight:600;
  margin-top:10px;
  line-height:1.25;
}
.strand-card p{
  margin-top:12px;
  font-size:14.4px;
  color:var(--slate);
  line-height:1.6;
}
.strand-card .paths{
  margin-top:16px;
  padding-top:16px;
  border-top:1px dashed var(--line);
  font-size:12.5px;
  color:var(--royal);
  font-weight:600;
  line-height:1.8;
}
@media (max-width:1000px){
  .strand-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .strand-grid{ grid-template-columns:1fr; }
}

/* ==========================================================================
   TVL Showcase
   ========================================================================== */
.tvl-feature{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px;
  background:var(--line);
  border-radius:var(--radius-l);
  overflow:hidden;
  margin-bottom:2px;
}
.tvl-feature.reverse .tvl-media{ order:2; }
.tvl-media{ position:relative; min-height:320px; }
.tvl-media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.tvl-text{
  background:var(--ink);
  color:#fff;
  padding:48px;
  display:flex; flex-direction:column; justify-content:center;
}
.tvl-text .strand-code{ color:var(--gold); }
.tvl-text h3{
  font-family:var(--font-display);
  font-size:26px; font-weight:600;
  margin-top:10px;
}
.tvl-text p{
  margin-top:14px;
  color:#C9C2E8;
  font-size:14.5px;
  line-height:1.7;
  max-width:44ch;
}
.tvl-text .paths{
  margin-top:18px;
  display:flex; flex-wrap:wrap; gap:8px;
}
.tvl-text .paths span{
  font-family:var(--font-mono);
  font-size:11px; letter-spacing:.03em;
  border:1px solid rgba(255,255,255,.28);
  padding:6px 12px;
  border-radius:999px;
  color:#E7E4F3;
}
.tvl-mini-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px;
  background:var(--line);
  border-radius:var(--radius-l);
  overflow:hidden;
}
.tvl-mini{
  background:var(--paper);
  padding:30px 30px;
}
.tvl-mini .strand-code{ color:var(--gold-deep); font-family:var(--font-mono); font-size:11.5px; letter-spacing:.1em; font-weight:600;}
.tvl-mini h4{
  font-family:var(--font-display); font-weight:600; font-size:19px; margin-top:8px;
}
.tvl-mini p{ margin-top:10px; font-size:13.5px; color:var(--slate); line-height:1.6; }

@media (max-width:820px){
  .tvl-feature, .tvl-feature.reverse{ grid-template-columns:1fr; }
  .tvl-feature .tvl-media, .tvl-feature.reverse .tvl-media{ order:0; min-height:240px; }
  .tvl-mini-grid{ grid-template-columns:1fr; }
}

/* ==========================================================================
   Why SPIC
   ========================================================================== */
.why-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.why-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  padding:28px 26px;
}
.why-card .mark{
  width:38px; height:38px;
  border-radius:50%;
  background:var(--royal-soft);
  color:var(--royal);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono);
  font-weight:600;
  font-size:14px;
}
.why-card h3{
  font-family:var(--font-display);
  font-size:18.5px; font-weight:600;
  margin-top:16px;
}
.why-card p{
  margin-top:8px;
  font-size:14.4px;
  color:var(--slate);
  line-height:1.6;
}
@media (max-width:900px){ .why-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .why-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   Facilities — editorial gallery
   ========================================================================== */
.gallery-editorial{
  display:grid;
  grid-template-columns: 1.3fr .85fr;
  grid-template-rows:auto auto;
  gap:20px;
}
.gallery-editorial figure{ margin:0; position:relative; overflow:hidden; border-radius:var(--radius-m); }
.gallery-editorial img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.gallery-editorial figure:hover img{ transform:scale(1.04); }
.gallery-editorial .g1{ grid-row:1 / 3; }
.gallery-editorial .g1 img{ min-height:100%; }
figcaption{
  position:absolute; left:0; right:0; bottom:0;
  padding:22px 22px 18px;
  background:linear-gradient(0deg, rgba(15,10,36,.82), rgba(15,10,36,0));
  color:#fff;
}
figcaption .cap-eyebrow{
  font-family:var(--font-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--gold);
}
figcaption .cap-title{
  font-family:var(--font-display); font-size:18px; font-weight:600; margin-top:4px;
}
@media (max-width:820px){
  .gallery-editorial{ grid-template-columns:1fr; grid-template-rows:none; }
  .gallery-editorial .g1{ grid-row:auto; }
  .gallery-editorial figure{ aspect-ratio:4/3; }
}

/* ==========================================================================
   School Life
   ========================================================================== */
.life-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.life-grid figure{ margin:0; border-radius:var(--radius-m); overflow:hidden; position:relative; aspect-ratio:4/5;}
.life-grid img{ width:100%; height:100%; object-fit:cover; }
@media (max-width:860px){
  .life-grid{ grid-template-columns:1fr 1fr; }
  .life-grid li:first-child{ grid-column:1 / 3; }
  .life-grid li:first-child figure{ aspect-ratio:16/9; }
}
@media (max-width:560px){
  .life-grid{ grid-template-columns:1fr; }
  .life-grid li:first-child{ grid-column:auto; }
  .life-grid li:first-child figure{ aspect-ratio:4/5; }
}

/* ==========================================================================
   Admissions
   ========================================================================== */
.admissions-wrap{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:56px;
  align-items:start;
}
.adm-tabs{
  display:flex;
  flex-direction:column;
  gap:10px;
  position:sticky;
  top:calc(var(--nav-h) + 24px);
}
.adm-tab{
  text-align:left;
  padding:18px 20px;
  border-radius:var(--radius-m);
  border:1px solid var(--line);
  background:var(--white);
  transition:border-color .2s ease, background .2s ease;
}
.adm-tab .t-label{
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--gold-deep);
}
.adm-tab h3{
  font-family:var(--font-display); font-size:17.5px; font-weight:600; margin-top:6px;
}
.adm-tab p{ margin-top:6px; font-size:12.8px; color:var(--slate); }
.adm-tab.is-active{
  border-color:var(--royal);
  background:var(--royal);
}
.adm-tab.is-active .t-label{ color:var(--gold); }
.adm-tab.is-active h3, .adm-tab.is-active p{ color:#fff; }

.adm-panel{
  display:none;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-l);
  padding:38px 40px;
}
.adm-panel.is-active{ display:block; }
.adm-panel .stat{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--royal-soft); color:var(--royal);
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:.06em; font-weight:600;
  padding:8px 16px; border-radius:999px;
}
.adm-panel h3{
  font-family:var(--font-display); font-size:24px; font-weight:600; margin-top:16px;
}
.adm-panel > p{ margin-top:12px; font-size:14.5px; color:var(--slate); line-height:1.7; max-width:58ch; }
.req-list{
  margin-top:24px;
  display:grid;
  gap:10px;
}
.req-list li{
  display:flex; align-items:flex-start; gap:12px;
  font-size:14px; color:var(--ink);
  padding:12px 14px;
  background:var(--paper);
  border-radius:var(--radius-s);
  border:1px solid var(--line);
}
/* Badge and tick are drawn, never typed: no glyph means no font or emoji
   dependency, and the tick stays crisp at any zoom level. */
.req-list li::before{
  content:"";
  flex:none;
  width:20px; height:20px;
  border-radius:5px;
  background-color:var(--gold);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.4l2.3 2.3L9.5 4.1' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  background-size:12px 12px;
  margin-top:1px;
}
@media (max-width:900px){
  .admissions-wrap{ grid-template-columns:1fr; }
  .adm-tabs{ position:static; flex-direction:row; overflow-x:auto; padding-bottom:4px; }
  .adm-tab{ min-width:230px; }
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list{ max-width:820px; }
.faq-item{
  border-bottom:1px solid var(--line);
}
.faq-q{
  width:100%;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:24px 4px;
  text-align:left;
}
.faq-q h3{
  font-family:var(--font-display);
  font-size:18.5px; font-weight:500;
  color:var(--ink);
}
.faq-q .plus{
  flex:none;
  width:28px; height:28px;
  border-radius:50%;
  border:1px solid var(--line);
  position:relative;
}
.faq-q .plus::before, .faq-q .plus::after{
  content:""; position:absolute; background:var(--royal);
  top:50%; left:50%; transform:translate(-50%,-50%);
}
.faq-q .plus::before{ width:11px; height:1.5px; }
.faq-q .plus::after{ width:1.5px; height:11px; transition:transform .25s ease, opacity .25s ease; }
.faq-item.is-open .faq-q .plus::after{ opacity:0; transform:translate(-50%,-50%) rotate(90deg); }
.faq-item.is-open .faq-q h3{ color:var(--royal); }

.faq-a{
  max-height:0;
  overflow:hidden;
  /* visibility:hidden keeps a collapsed answer out of the accessibility
     tree and out of the tab order, while still letting the height
     animation play. The delay lets the collapse animation finish first. */
  visibility:hidden;
  transition:max-height .35s ease, visibility 0s linear .35s;
}
.faq-item.is-open .faq-a{
  visibility:visible;
  transition:max-height .35s ease, visibility 0s;
}
.faq-a-inner{
  padding:0 4px 26px;
  font-size:15.2px;
  color:var(--slate);
  line-height:1.7;
  max-width:68ch;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-wrap{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:2px;
  background:var(--line);
  border-radius:var(--radius-l);
  overflow:hidden;
}
.contact-info{
  background:var(--royal);
  color:#fff;
  padding:48px 44px;
}
.contact-info .eyebrow{ color:var(--gold-light); }
.contact-info .eyebrow::before{ background:var(--gold-light); }
.contact-info h2{
  font-family:var(--font-display); font-weight:600;
  font-size:30px; margin-top:14px;
}
.contact-info > p{ margin-top:14px; color:#D9D3F0; font-size:14.5px; max-width:38ch; }
.c-detail{ margin-top:30px; }
.c-detail + .c-detail{ margin-top:22px; }
.c-detail .t-label{
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:#C9BFF0;
}
.c-detail div, .c-detail a{
  margin-top:6px; padding-block:3px; font-size:15px; font-weight:500;
  display:block;
}
.c-detail a:hover{ color:var(--gold-light); }

.contact-map{ position:relative; min-height:340px; background:var(--panel); }
.contact-map iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; filter:grayscale(.15) contrast(1.02); }

@media (max-width:820px){
  .contact-wrap{ grid-template-columns:1fr; }
  .contact-map{ min-height:280px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  background:var(--ink);
  color:#C9C2E8;
  padding-block:56px 28px;
}
.footer-top{
  display:flex; justify-content:space-between; align-items:flex-start;
  flex-wrap:wrap; gap:40px;
  padding-bottom:36px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-brand{ display:flex; gap:14px; align-items:center; max-width:340px; }
.footer-brand img{ height:44px; }
.footer-brand b{ font-family:var(--font-display); color:#fff; font-size:16.5px; display:block; }
.footer-brand span{ font-size:13px; color:#9E96C4; margin-top:4px; display:block; }
.footer-links{ display:flex; gap:64px; flex-wrap:wrap; }
.footer-col h3, .footer-col h4{
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:.1em; text-transform:uppercase;
  color:#9E96C4; margin-bottom:14px;
}
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size:14px; color:#E2DEF2; }
.footer-col a:hover{ color:var(--gold); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:12px;
  padding-top:24px;
  font-size:13px; color:#8A81B8;
}
.footer-bottom a{ color:#8A81B8; }
.footer-bottom a:hover{ color:var(--gold); }

@media (max-width:640px){
  .footer-top{ flex-direction:column; }
  .footer-links{ gap:36px; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
/* Reveal-on-scroll.
   Gated behind html.js (set by an inline script in each page head) so that
   if JavaScript never runs, the content stays visible instead of being
   stuck at opacity:0 forever. */
.js .reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible{ opacity:1; transform:translateY(0); }

/* If the script fails part-way through, main.js adds .reveal-fallback
   to the document so nothing is left invisible. */
html.js.reveal-fallback .reveal{ opacity:1; transform:none; }

/* ==========================================================================
   Accessibility utilities
   ========================================================================== */

/* Screen-reader-only text: present for assistive tech, invisible on screen */
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  margin:-1px; padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

/* Skip link — the first thing a keyboard user reaches */
.skip-link{
  position:fixed;
  top:10px; left:50%;
  transform:translate(-50%, -180%);
  z-index:300;
  background:var(--royal);
  color:#fff;
  font-weight:600; font-size:15px;
  padding:13px 26px;
  border-radius:999px;
  box-shadow:var(--shadow-lift);
  transition:transform .2s ease;
}
.skip-link:focus{ transform:translate(-50%, 0); color:#fff; }

/* Keep focus obvious everywhere, including on the dark panels */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
iframe:focus-visible{
  outline:3px solid var(--ink);
  outline-offset:2px;
  box-shadow:0 0 0 5px rgba(198,147,46,.5);
}
.skip-link:focus-visible{ outline:3px solid #fff; }

/* <main> is only focusable so the skip link can move keyboard focus there.
   It is not an interactive control, so it needs no focus ring. */
#main:focus,
#main:focus-visible{ outline:none; box-shadow:none; }
.contact-info :focus-visible,
.site-footer :focus-visible,
.page-hero :focus-visible{
  outline-color:#fff;
  box-shadow:0 0 0 5px rgba(227,200,120,.65);
}

/* Anchor targets must never hide behind the fixed nav.
   Note: html{scroll-padding-top} above already handles this — adding
   scroll-margin-top here as well would double the offset. */

/* Soft divider where two same-coloured sections meet */
.section-rule{
  border:0;
  height:1px;
  max-width:var(--container);
  margin-inline:auto;
  background:var(--line);
}

/* ==========================================================================
   Page hero (campus pages, careers)
   ========================================================================== */
.page-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(120% 150% at 88% -20%, rgba(198,147,46,.30) 0%, rgba(198,147,46,0) 58%),
    linear-gradient(165deg, var(--royal) 0%, var(--royal-deep) 100%);
  color:#fff;
  padding-block: calc(var(--nav-h) + 48px) 56px;
}
/* Optional photo layer — only present on pages that include the markup
   (currently recto-campus.html). Pages without it keep the plain
   gradient above untouched. */
.page-hero-media{
  position:absolute; inset:0;
  z-index:0;
}
.page-hero-media img{
  width:100%; height:100%; object-fit:cover; object-position:center 38%;
}
.page-hero-media::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(120% 150% at 88% -20%, rgba(198,147,46,.34) 0%, rgba(198,147,46,0) 58%),
    linear-gradient(165deg, rgba(63,46,134,.90) 0%, rgba(38,26,87,.95) 100%);
}
.page-hero > .container{ position:relative; z-index:1; }
.crumbs{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
  font-family:var(--font-mono);
  font-size:11.5px; letter-spacing:.1em; text-transform:uppercase;
  color:#C9BFF0;
}
.crumbs a{
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.45);
  padding-bottom:1px;
}
.crumbs a:hover{ color:var(--gold-light); border-color:var(--gold-light); }
.crumbs .sep{ color:var(--gold-light); }
.page-hero .eyebrow{ color:var(--gold-light); margin-top:24px; }
.page-hero .eyebrow::before{ background:var(--gold-light); }
.page-hero h1{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(32px, 5vw, 56px);
  line-height:1.08;
  letter-spacing:-.01em;
  margin-top:12px;
  max-width:24ch;
}
.page-hero p{
  margin-top:16px;
  max-width:62ch;
  font-size:16.5px;
  color:#E7E4F3;
}
.page-hero .hero-ctas{ margin-top:30px; }
@media (max-width:720px){
  .page-hero{ padding-block: calc(var(--nav-h) + 32px) 44px; }
}

@media (max-width:720px){
  .hero h1{
    font-size:clamp(36px, 10vw, 52px);
    line-height:1.04;
    max-width:100%;
  }

  .hero-inner{
    padding-block:calc(var(--nav-h) + 32px) 48px;
  }

  .hero-crest{
    margin-bottom:20px;
  }

  .hero-crest span{
    font-size:10px;
    letter-spacing:.12em;
  }

  .hero .sub{
    font-size:15px;
    max-width:100%;
  }
}