 /* ───── TOKENS ─────── */
 :root {
     --g-dark: #0f2010;
     --g-mid: #1e4620;
     --g-base: #2e7d32;
     --g-bright: #43a047;
     --lime: #b5d99c;
     --lime-soft: #dff0d0;
     --parch: #f5f0e8;
     --parch-mid: #ede5d4;
     --ink: #0e1a0e;
     --ink-soft: #3d3020;
     --gold: #c8941a;
     --white: #ffffff;
     --ink: #0e1a0e;
     --green-bright: #43a047;

     --ff-display: 'Cormorant Garamond', serif;
     --ff-mono: 'DM Mono', sans-serif;
     --ff-body: 'DM Sans', sans-serif;

     --nav-h: 68px;
     --ease: cubic-bezier(.4, 0, .2, 1);
     --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
 }

 *,
 *::before,
 *::after {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
 }

 html {
     scroll-behavior: smooth;
     background: var(--g-dark);
 }

 body {
     font-family: var(--ff-body);
     background: var(--parch);
     color: var(--ink);
     overflow-x: hidden;
 }

 a {
     text-decoration: none;
     color: inherit;
 }

 ul {
     list-style: none;
 }

 img {
     display: block;
     max-width: 100%;
 }

 ::-webkit-scrollbar {
     width: 5px;
 }

 ::-webkit-scrollbar-track {
     background: var(--parch-mid);
 }

 ::-webkit-scrollbar-thumb {
     background: var(--g-base);
     border-radius: 3px;
 }

 #header {
     position: sticky;
     top: 0;
     z-index: 100;
     height: var(--nav-h);
     background: var(--g-dark);
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 0 5%;
     border-bottom: 1px solid rgba(181, 217, 156, .15);
     transition: background var(--transition), box-shadow var(--transition);
 }

 #header.scrolled {
     background: var(--g-dark);
     box-shadow: 0 2px 20px rgba(0, 0, 0, .35);
 }

 .header-brand {
     display: flex;
     align-items: center;
     gap: 3px;
 }

 .header-brand img,
 .nav-logo img {
     border-radius: 50%;
 }

 /* inline SVG logo */
 .brand-logo {
     width: 40px;
     height: 40px;
     flex-shrink: 0;
 }

 .brand-text {
     line-height: 1.1;
     display: block;
     font-family: 'DM Sans', sans-serif;
     font-size: 1.25rem;
     font-weight: 500;
     color: var(--white);
     letter-spacing: .06em;
 }

 .brand-text span {
     font-family: var(--ff-mono);
     font-size: .6rem;
     font-weight: 300;
     color: var(--lime);
     letter-spacing: .2em;
     text-transform: uppercase;
     display: block;
 }

 .header-right {
     display: flex;
     align-items: center;
     gap: 32px;
 }

 .header-right a {
     font-size: 1rem;
     font-weight: 500;
     letter-spacing: .1em;
     text-transform: uppercase;
     color: rgba(255, 255, 255, .55);
     font-family: 'DM Sans', sans-serif;
     transition: color var(--transition);
 }

 .header-right a:hover {
     color: #c8e6a0;
 }

 .header-right a.active {
     color: #c8e6a0;
 }

 .nav-links-desktop {
     display: flex;
     gap: 25px;
 }

 /* Join Us Socials */
 .join-socials {
     display: flex;
     justify-content: center;
     gap: 16px;
     margin-top: 36px;
 }

 .social-link {
     width: 44px;
     height: 44px;
     border-radius: 50%;
     border: 1.5px solid rgba(200, 230, 160, .25);
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--lime-light);
     font-size: 1rem;
     transition: var(--transition);
 }

 .social-link:hover {
     background: rgba(200, 230, 160, .15);
     border-color: var(--lime);
     transform: translateY(-3px);
 }

 .social-link-mobile {
     width: 34px;
     height: 34px;
 }

 /* hamburger */
 .hamburger {
     display: none;
     flex-direction: column;
     gap: 5px;
     background: none;
     border: none;
     cursor: pointer;
     padding: 4px;
 }

 .hamburger span {
     display: block;
     width: 26px;
     height: 2px;
     background: var(--white);
     border-radius: 2px;
     transition: var(--transition);
 }

 .hamburger.open span:nth-child(1) {
     transform: translateY(7px) rotate(45deg);
 }

 .hamburger.open span:nth-child(2) {
     opacity: 0;
 }

 .hamburger.open span:nth-child(3) {
     transform: translateY(-7px) rotate(-45deg);
 }


 /* drawer */
 .drawer {
     position: fixed;
     inset: 0;
     background: var(--ink);
     z-index: 99;
     transform: translateX(100%);
     transition: transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: flex-start;
     padding: 0 8%;
     gap: 1.6rem;
 }

 .drawer.open {
     transform: translateX(0);
 }

 .drawer a {
     font-family: 'DM Sans', sans-serif;
     font-size: clamp(2.2rem, 8vw, 4rem);
     color: var(--white);
     transition: color .25s;
     font-weight: 700;
 }

 .drawer a:hover,
 .drawer a:hover {
     color: var(--lime);
 }

 /* BUTTONS */

 .btn {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     font-family: var(--font-body);
     font-size: .85rem;
     font-weight: 500;
     letter-spacing: .05em;
     padding: 14px 28px;
     border-radius: 100px;
     cursor: pointer;
     border: none;
     transition: var(--transition);
 }

 .btn-primary {
     background: var(--green-bright);
     color: var(--white);
 }

 .btn-primary:hover {
     background: var(--green-dark);
     transform: translateY(-3px);
     box-shadow: 0 12px 30px rgba(46, 125, 50, .4);
 }

 .btn-outline {
     background: transparent;
     color: var(--white);
     border: 1.5px solid rgba(255, 255, 255, .35);
 }

 .btn-outline:hover {
     border-color: var(--lime);
     color: var(--lime);
     transform: translateY(-3px);
 }

 .btn-dark {
     background: var(--ink);
     color: var(--white);
 }

 .btn-dark:hover {
     background: var(--green-dark);
     transform: translateY(-3px);
 }


 /* ──── HERO BAND ──── */
 .hero-band {
     background: var(--g-dark);
     padding: 64px 5% 56px;
     position: relative;
     overflow: hidden;
     min-height: 80vh;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
 }

 .hero-band::before {
     content: 'LIBRARY';
     position: absolute;
     right: 8%;
     bottom: -10%;
     font-family: var(--ff-display);
     font-size: 10vw;
     font-weight: 600;
     color: rgba(181, 217, 156, .04);
     line-height: 1;
     pointer-events: none;
     user-select: none;
     white-space: nowrap;
 }

 /* ruled-line texture */
 .hero-band::after {
     content: '';
     position: absolute;
     inset: 0;
     background: repeating-linear-gradient(0deg,
             transparent,
             transparent 28px,
             rgba(181, 217, 156, .025) 28px,
             rgba(181, 217, 156, .025) 29px);
     pointer-events: none;
 }

 .hero-inner {
     position: relative;
     z-index: 1;
     max-width: 800px;
 }

 .hero-band span {
     color: var(--lime-soft);
     letter-spacing: 3px;
     text-transform: uppercase;
     font-size: .9rem;
 }

 .hero-title {
     font-size: clamp(3rem, 8vw, 5rem);
     margin: 1rem 0;
     font-weight: 800;
     color: var(--white);
     line-height: .95;
     font-family: var(--ff-display);
 }

 .hero-statement {
     color: var(--parch);
     max-width: 700px;
     margin: auto;
     font-family: var(--ff-display);
 }

 em {
     font-style: italic;
     color: var(--lime);
 }

 /* ──── FILTER / TAB BAR ──── */
 .filter-bar {
     position: sticky;
     top: var(--nav-h);
     z-index: 90;
     background: var(--parch);
     border-bottom: 1px solid var(--parch-mid);
     padding: 0 5%;
 }

 .filter-inner {
     display: flex;
     align-items: center;
     gap: 4px;
     overflow-x: auto;
     scrollbar-width: none;
     padding: 12px 0;
 }

 .filter-inner::-webkit-scrollbar {
     display: none;
 }

 .filter-btn {
     flex-shrink: 0;
     background: none;
     border: 1.5px solid var(--parch-mid);
     border-radius: 100px;
     padding: 7px 16px;
     font-family: var(--ff-body);
     font-size: .76rem;
     font-weight: 500;
     letter-spacing: .04em;
     color: var(--ink-soft);
     cursor: pointer;
     transition: all .25s var(--ease);
     white-space: nowrap;
 }

 .filter-btn:hover {
     border-color: var(--g-base);
     color: var(--g-base);
 }

 .filter-btn.active {
     background: var(--g-dark);
     border-color: var(--g-dark);
     color: var(--lime);
 }

 /* ──── MAIN CONTENT ────── */
 .main {
     max-width: 1200px;
     margin-inline: auto;
     padding: 56px 5% 100px;
 }

 /* ── section label ── */
 .sec-label {
     display: flex;
     align-items: center;
     gap: 12px;
     margin-bottom: 28px;
 }

 .sec-label-text {
     font-family: var(--ff-mono);
     font-size: .68rem;
     letter-spacing: .16em;
     text-transform: uppercase;
     color: var(--g-base);
 }

 .sec-label-line {
     flex: 1;
     height: 1px;
     background: var(--parch-mid);
 }

 .sec-label-count {
     font-family: var(--ff-mono);
     font-size: .65rem;
     color: rgba(0, 0, 0, .3);
     letter-spacing: .1em;
 }

 /* ── faculty section ── */
 .faculty-section {
     margin-bottom: 72px;
 }

 .faculty-section.hidden {
     display: none;
 }

 .faculty-heading {
     display: flex;
     align-items: flex-start;
     justify-content: space-between;
     gap: 16px;
     margin-bottom: 24px;
     flex-wrap: wrap;
 }

 .faculty-name {
     font-family: var(--ff-display);
     font-size: clamp(1.6rem, 3.5vw, 2.4rem);
     font-weight: 700;
     color: var(--ink);
     line-height: 1.05;
 }

 .faculty-name span {
     display: block;
     font-family: var(--ff-mono);
     font-size: .65rem;
     font-weight: 400;
     letter-spacing: .14em;
     text-transform: uppercase;
     color: var(--g-base);
     margin-bottom: 4px;
 }

 .faculty-drive-btn {
     display: inline-flex;
     align-items: center;
     gap: 7px;
     background: var(--g-dark);
     color: var(--lime);
     border-radius: 100px;
     padding: 9px 20px;
     font-family: var(--ff-mono);
     font-size: .7rem;
     letter-spacing: .1em;
     text-transform: uppercase;
     font-weight: 500;
     border: 1px solid rgba(181, 217, 156, .2);
     transition: all .3s var(--ease);
     flex-shrink: 0;
 }

 .faculty-drive-btn:hover {
     background: var(--g-mid);
     border-color: var(--lime);
     transform: translateY(-2px);
     box-shadow: 0 8px 24px rgba(15, 32, 16, .35);
 }

 .faculty-drive-btn svg {
     flex-shrink: 0;
 }

 /* ── book grid ── */
 .book-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
     gap: 20px;
 }

 /* ── book card ── */
 .book-card {
     background: var(--white);
     border-radius: 10px;
     border: 1px solid var(--parch-mid);
     overflow: hidden;
     transition: transform .3s var(--ease), box-shadow .3s var(--ease);
     cursor: pointer;
     display: flex;
     flex-direction: column;
 }

 .book-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 18px 44px rgba(15, 32, 16, .12);
 }

 /* book spine / cover area */
 .book-cover {
     aspect-ratio: 3/4;
     position: relative;
     overflow: hidden;
     display: flex;
     align-items: flex-end;
     padding: 16px;
 }

 /* Each faculty colour variant */
 .cover-theology {
     background: linear-gradient(160deg, #1a3a1a 0%, #2e7d32 100%);
 }

 .cover-science {
     background: linear-gradient(160deg, #0d2b3e 0%, #1565c0 100%);
 }

 .cover-arts {
     background: linear-gradient(160deg, #3e1a00 0%, #b84c00 100%);
 }

 .cover-social {
     background: linear-gradient(160deg, #3e0d2b 0%, #8e24aa 100%);
 }

 .cover-education {
     background: linear-gradient(160deg, #2c2000 0%, #f9a825 50%, #f57f17 100%);
 }

 .cover-general {
     background: linear-gradient(160deg, #1a1a2e 0%, #4a4a8a 100%);
 }

 .cover-engineering {
     background: linear-gradient(160deg, #1a0a00 0%, #7b3f00 100%);
 }

 .cover-medicine {
     background: linear-gradient(160deg, #1a0000 0%, #b71c1c 100%);
 }

 .cover-pattern {
     position: absolute;
     inset: 0;
     background-image:
         repeating-linear-gradient(45deg,
             transparent,
             transparent 14px,
             rgba(255, 255, 255, .035) 14px,
             rgba(255, 255, 255, .035) 15px);
 }

 .cover-spine {
     position: absolute;
     top: 0;
     left: 0;
     bottom: 0;
     width: 6px;
     background: rgba(0, 0, 0, .25);
 }

 .cover-title {
     position: relative;
     z-index: 1;
     font-family: var(--ff-display);
     font-size: 1.05rem;
     font-weight: 600;
     color: var(--white);
     line-height: 1.25;
     text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
 }

 .cover-badge {
     position: absolute;
     top: 12px;
     right: 12px;
     background: rgba(255, 255, 255, .15);
     backdrop-filter: blur(6px);
     border: 1px solid rgba(255, 255, 255, .2);
     border-radius: 4px;
     padding: 3px 7px;
     font-family: var(--ff-mono);
     font-size: .58rem;
     letter-spacing: .1em;
     text-transform: uppercase;
     color: rgba(255, 255, 255, .85);
 }

 .book-meta {
     padding: 14px 16px 16px;
     flex: 1;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     gap: 10px;
 }

 .book-title {
     font-family: var(--ff-display);
     font-size: 1rem;
     font-weight: 600;
     color: var(--ink);
     line-height: 1.3;
     padding-top: 10px;
 }

 .book-author {
     font-family: var(--ff-mono);
     font-size: .65rem;
     color: var(--ink-soft);
     letter-spacing: .05em;
     opacity: .7;
     padding: 10px;
 }

 .book-footer {
     display: flex;
     align-items: center;
     justify-content: space-between;
 }

 .book-type {
     font-family: var(--ff-mono);
     font-size: .6rem;
     letter-spacing: .1em;
     text-transform: uppercase;
     padding: 3px 8px;
     border-radius: 4px;
     background: var(--lime-soft);
     color: var(--g-base);
 }

 .book-link {
     display: inline-flex;
     align-items: center;
     gap: 5px;
     font-family: var(--ff-mono);
     font-size: .65rem;
     font-weight: 500;
     letter-spacing: .06em;
     color: var(--g-base);
     transition: color .2s, gap .2s;
 }

 .book-link:hover {
     color: var(--g-dark);
     gap: 8px;
 }

 /* JOIN */
 #join {
     background: linear-gradient(to bottom, var(--g-mid) 0%, var(--g-dark) 90%);
     padding: 100px 5%;
     text-align: center;
     position: relative;
     overflow: hidden;
 }

 #join::before {
     content: '';
     position: absolute;
     inset: 0;
     background: radial-gradient(ellipse at 50% 50%, rgba(67, 160, 71, .35) 0%, transparent 65%);
 }

 .join-inner {
     position: relative;
     z-index: 1;
     max-width: 620px;
     margin-inline: auto;
 }

 .join-inner .section-label {
     color: var(--lime);

 }

 .join-inner .sec-title {
     color: var(--white);
     margin-bottom: 16px;
 }

 .join-inner .sec-body {
     color: rgba(200, 230, 160, .75);
     margin-inline: auto;
     margin-bottom: 36px;
 }

 .join-form {
     display: flex;
     gap: 15px;
     max-width: 460px;
     margin-inline: auto;
     flex-wrap: wrap;
     justify-content: center;
     align-items: center;
     flex-direction: column;
 }

 .join-form input {
     flex: 1;
     min-width: 100%;
     background: rgba(255, 255, 255, .1);
     border: 1.5px solid rgba(200, 230, 160, .25);
     border-radius: 100px;
     padding: 13px 22px;
     font-family: var(--font-body);
     font-size: .9rem;
     color: var(--white);
     outline: none;
     transition: border-color var(--transition);
 }

 .join-form textarea {
     min-height: 100px;
     width: 100%;
     background: rgba(255, 255, 255, .1);
     border: 1.5px solid rgba(200, 230, 160, .25);
     border-radius: 12px;
     padding: 12px;
     font-family: var(--font-body);
     font-size: .9rem;
     color: var(--white);
     outline: none;
     transition: border-color var(--transition);
     resize: vertical;
 }

 .join-form input::placeholder,
 textarea::placeholder {
     color: rgba(200, 230, 160, .45);
 }

 .join-form input:focus,
 textarea:focus {
     border-color: var(--lime);
 }

 /* ── no results ── */
 #noResults {
     display: none;
     text-align: center;
     padding: 80px 0;
 }

 #noResults.show {
     display: block;
 }

 #noResults p {
     font-family: var(--ff-display);
     font-size: 1.6rem;
     color: var(--ink-soft);
     opacity: .4;
 }

 /* ───── DRIVE HIGHLIGHT BANNER ---- */
 .drive-banner {
     background: var(--g-dark);
     border-radius: 16px;
     padding: 44px 48px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 32px;
     margin-bottom: 64px;
     position: relative;
     overflow: hidden;
     flex-wrap: wrap;
 }

 .drive-banner::before {
     content: '';
     position: absolute;
     inset: 0;
     background:
         radial-gradient(circle at 80% 50%, rgba(67, 160, 71, .2) 0%, transparent 55%),
         repeating-linear-gradient(-30deg, transparent, transparent 18px,
             rgba(181, 217, 156, .025) 18px, rgba(181, 217, 156, .025) 19px);
 }

 .drive-banner-left {
     position: relative;
     z-index: 1;
 }

 .drive-banner-left p {
     font-family: var(--ff-mono);
     font-size: .65rem;
     letter-spacing: .18em;
     text-transform: uppercase;
     color: var(--lime);
     margin-bottom: 8px;
 }

 .drive-banner-left h2 {
     font-family: var(--ff-display);
     font-size: clamp(1.5rem, 3vw, 2.2rem);
     font-weight: 700;
     color: var(--white);
     line-height: 1.1;
     margin-bottom: 10px;
 }

 .drive-banner-left span {
     font-size: .85rem;
     color: rgba(181, 217, 156, .6);
 }

 .drive-banner-right {
     position: relative;
     z-index: 1;
     display: flex;
     gap: 12px;
     flex-wrap: wrap;
 }

 .drive-btn-lg {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     padding: 13px 26px;
     border-radius: 100px;
     font-family: var(--ff-body);
     font-size: .85rem;
     font-weight: 500;
     cursor: pointer;
     border: none;
     transition: all .3s var(--ease);
 }

 .drive-btn-lg.primary {
     background: var(--lime);
     color: var(--ink);
 }

 .drive-btn-lg.primary:hover {
     background: var(--white);
     transform: translateY(-2px);
     box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
 }

 .drive-btn-lg.secondary {
     background: rgba(255, 255, 255, .1);
     color: var(--white);
     border: 1px solid rgba(255, 255, 255, .2);
 }

 .drive-btn-lg.secondary:hover {
     background: rgba(255, 255, 255, .17);
     border-color: var(--lime);
     transform: translateY(-2px);
 }

 /* ───────────────────────────────────────
       FOOTER
    ─────────────────────────────────────── */


 footer {
     background: var(--g-dark);
     padding: 52px 5% 28px;
     border-top: 1px solid rgba(181, 217, 156, .08);
 }

 .footer-top {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     flex-wrap: wrap;
     gap: 36px;
     margin-bottom: 40px;
 }


 .footer-logo-grid {
     display: flex;
     gap: 5px;
     align-items: center;
     padding-left: 8px;
 }

 .address {
     margin-top: 1rem;
     color: var(--lime);
     font-size: 11px;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: left;
     width: 250px;
     gap: 5px;
 }

 .footer-logo-text {
     font-family: var(--font-display);
     font-size: 1.3rem;
     letter-spacing: .06em;
     color: var(--white);
     line-height: 1.1;
 }

 .footer-logo-text span {
     display: block;
     font-family: var(--font-body);
     font-size: .62rem;
     font-weight: 300;
     letter-spacing: .12em;
     color: var(--lime);
     text-transform: uppercase;
 }

 .footer-col-title {
     font-family: var(--ff-mono);
     font-size: .65rem;
     letter-spacing: .16em;
     text-transform: uppercase;
     color: var(--lime);
     margin-bottom: 16px;
     opacity: .8;
 }

 .footer-col a {
     display: block;
     font-size: .82rem;
     color: rgba(255, 255, 255, .42);
     margin-bottom: 9px;
     transition: color .25s;
 }

 .footer-col a:hover {
     color: var(--white);
 }

 .footer-bottom {
     border-top: 1px solid rgba(255, 255, 255, .06);
     padding-top: 22px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-wrap: wrap;
     gap: 12px;
 }

 .footer-bottom p,
 .footer-bottom a {
     font-family: var(--ff-mono);
     font-size: .65rem;
     letter-spacing: .08em;
     color: rgba(255, 255, 255, .25);
 }

 .footer-bottom a:hover {
     color: var(--lime);
 }

 /* ───────────────────────────────────────
       SCROLL REVEAL
    ─────────────────────────────────────── */
 .reveal {
     opacity: 0;
     transform: translateY(28px);
     transition: opacity .65s ease, transform .65s ease;
 }

 .reveal.vis {
     opacity: 1;
     transform: translateY(0);
 }

 .rd1 {
     transition-delay: .08s;
 }

 .rd2 {
     transition-delay: .16s;
 }

 .rd3 {
     transition-delay: .24s;
 }

 .rd4 {
     transition-delay: .32s;
 }

 /* ───────────────────────────────────────
       BACK TOP
    ─────────────────────────────────────── */
 #backTop {
     position: fixed;
     bottom: 26px;
     right: 26px;
     width: 44px;
     height: 44px;
     background: var(--g-mid);
     border-radius: 50%;
     border: none;
     color: var(--lime);
     font-size: 1.1rem;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     z-index: 200;
     opacity: 0;
     transform: translateY(14px);
     transition: all .35s var(--ease);
     box-shadow: 0 6px 20px rgba(15, 32, 16, .5);
 }

 #backTop.show {
     opacity: 1;
     transform: translateY(0);
 }

 #backTop:hover {
     background: var(--g-dark);
 }

 /* RESPONSIVE */
 @media (max-width: 860px) {
     .nav-links-desktop {
         display: none;
     }

     .hamburger {
         display: flex;
     }

     .drive-banner {
         flex-direction: column;
     }
 }

 @media (max-width: 540px) {
     .book-grid {
         grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
     }

     .hero-band {
         padding: 48px 5% 40px;
     }
 }
