:root {
  --navy: #071d38;
  --navy-soft: #102d4d;
  --gold: #d9ad59;
  --gold-light: #f3d79a;
  --cream: #f5f0e8;
  --paper: #fbfaf7;
  --ink: #122234;
  --muted: #66717e;
  --line: #ded9cf;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Montserrat", sans-serif; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.proposal-banner {
  display: flex; justify-content: center; gap: 12px; align-items: center;
  padding: 7px 24px; color: #fff; background: #9d762f; font-size: 11px; letter-spacing: .04em;
}
.proposal-banner span { font-weight: 700; text-transform: uppercase; }
.proposal-banner p { margin: 0; opacity: .86; }

.site-header {
  height: 88px; padding: 0 5vw; display: flex; align-items: center; gap: 38px;
  background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; max-width: 240px; }
.brand-copy strong { font-family: "Montserrat", sans-serif; color: var(--navy); font-size: 18px; font-weight: 800; line-height: 1; }
.brand-copy small { font-size: 8px; color: var(--muted); line-height: 1.35; margin-top: 5px; text-transform: uppercase; letter-spacing: .08em; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 12px; font-weight: 600; }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; height: 1px; width: 0; left: 0; bottom: -6px; background: var(--gold); transition: width .25s; }
.main-nav a:hover::after { width: 100%; }
.menu-toggle { display: none; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 52px; padding: 0 25px;
  border: 1px solid transparent; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 0 17px; }
.button-outline { border-color: var(--navy); color: var(--navy); }
.button-gold { color: var(--navy); background: var(--gold); }
.text-link { display: inline-flex; gap: 22px; align-items: center; padding-bottom: 6px; border-bottom: 1px solid var(--gold); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.light-link { color: white; }

.hero { min-height: calc(100vh - 116px); position: relative; background: var(--navy); color: white; overflow: hidden; }
.hero-image { position: absolute; inset: 0; background: url("assets/library-hero.png") center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,19,37,.98) 0%, rgba(4,19,37,.87) 37%, rgba(4,19,37,.13) 76%, rgba(4,19,37,.1)); }
.hero-content { position: relative; z-index: 2; width: min(680px, 78%); padding: 14vh 0 14vh 9vw; }
.eyebrow { margin: 0 0 19px; color: #9a7435; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3em; }
.eyebrow.light { color: var(--gold-light); }
h1, h2 { margin: 0; font-family: "Montserrat", sans-serif; font-weight: 800; line-height: .96; letter-spacing: -.055em; }
h1 { font-size: clamp(63px, 7.7vw, 122px); }
h1 em, h2 em { color: var(--gold); font-weight: 700; }
.hero-lead { max-width: 480px; margin: 28px 0 32px; color: rgba(255,255,255,.76); font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 34px; }
.hero-stats {
  position: absolute; z-index: 3; bottom: 0; right: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  width: min(650px, 52vw); padding: 24px 4vw; background: rgba(7,29,56,.92); backdrop-filter: blur(12px);
}
.hero-stats div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.16); display: flex; flex-direction: column; }
.hero-stats strong { color: var(--gold-light); font-family: "Montserrat", sans-serif; font-size: 28px; font-weight: 800; }
.hero-stats span { color: rgba(255,255,255,.6); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.hero-note { position: absolute; bottom: 9px; left: 9vw; z-index: 3; color: rgba(255,255,255,.35); font-size: 8px; }

.section { padding: 110px 8vw; }
.section-kicker { display: flex; gap: 14px; align-items: center; margin-bottom: 76px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; }
.section-kicker::after { content: ""; height: 1px; width: 70px; background: var(--line); }
.section-kicker span { color: var(--gold); }
.section-kicker.light { color: rgba(255,255,255,.48); }
.section-kicker.light::after { background: rgba(255,255,255,.15); }
h2 { color: var(--navy); font-size: clamp(48px, 5.4vw, 84px); }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 11vw; align-items: end; }
.intro-copy { padding-bottom: 6px; }
.intro-copy p, .catalog-heading > p { margin: 0 0 30px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.purpose-cards { margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.purpose-card { min-height: 310px; padding: 34px; position: relative; border-right: 1px solid var(--line); }
.purpose-card:last-child { border: 0; }
.purpose-card.featured { background: var(--cream); }
.card-number { position: absolute; right: 26px; top: 24px; color: #b4ada2; font-size: 9px; letter-spacing: .15em; }
.line-icon { color: var(--gold); font-size: 30px; margin: 15px 0 48px; }
.purpose-card h3, .services-grid h3 { margin: 0 0 13px; color: var(--navy); font-family: "Montserrat", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.purpose-card p, .services-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.services { color: white; background: var(--navy); }
.services-heading { display: grid; grid-template-columns: 1.5fr .5fr; gap: 10vw; align-items: end; }
.services-heading h2 { color: white; }
.services-heading > p { margin: 0 0 5px; color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.8; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.services-grid article { position: relative; min-height: 300px; padding: 32px 28px; border-right: 1px solid rgba(255,255,255,.15); transition: background .25s; }
.services-grid article:hover { background: var(--navy-soft); }
.services-grid article:last-child { border: 0; }
.services-grid article > span { position: absolute; top: 24px; right: 22px; color: rgba(255,255,255,.3); font-size: 9px; }
.service-icon { color: var(--gold); font-size: 31px; margin: 28px 0 62px; }
.services-grid h3 { color: white; font-size: 20px; }
.services-grid p { color: rgba(255,255,255,.52); }

.catalog { background: var(--cream); }
.catalog-heading { display: grid; grid-template-columns: 1.2fr .55fr; align-items: end; gap: 10vw; }
.catalog-tools { margin: 68px 0 38px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.search-box { width: 380px; display: flex; gap: 12px; align-items: center; padding: 0 16px; border-bottom: 1px solid #bdb5a8; }
.search-box span { font-size: 23px; color: var(--gold); }
.search-box input { width: 100%; padding: 14px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { padding: 8px 14px; color: var(--muted); border: 1px solid transparent; background: transparent; cursor: pointer; font-size: 10px; }
.filters button.active { color: var(--navy); border-color: var(--gold); background: rgba(255,255,255,.4); }
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 22px; }
.book-card { cursor: pointer; }
.book-cover {
  height: 330px; padding: 28px 25px; position: relative; overflow: hidden; color: white; background: var(--cover);
  box-shadow: 0 13px 25px rgba(8,23,39,.12); transition: transform .3s, box-shadow .3s;
}
.book-card:hover .book-cover { transform: translateY(-7px); box-shadow: 0 21px 35px rgba(8,23,39,.18); }
.book-cover::before { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(255,255,255,.25); }
.book-cover::after { content: attr(data-mark); position: absolute; bottom: -45px; right: -15px; color: rgba(255,255,255,.08); font-family: "Montserrat", sans-serif; font-size: 170px; font-weight: 800; }
.book-cover small, .book-cover h3, .book-cover p { position: relative; z-index: 1; }
.book-cover small { font-size: 8px; text-transform: uppercase; letter-spacing: .22em; opacity: .75; }
.book-cover h3 { margin: 46px 0 11px; font-family: "Montserrat", sans-serif; font-size: 25px; font-weight: 700; line-height: 1.08; letter-spacing: -.04em; }
.book-cover p { margin: 0; font-size: 9px; opacity: .7; }
.book-meta { padding-top: 16px; }
.book-meta div { display: flex; justify-content: space-between; gap: 10px; }
.book-meta strong { font-family: "Montserrat", sans-serif; font-size: 14px; font-weight: 700; color: var(--navy); }
.book-meta span { color: #916c2f; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.book-meta p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.empty-state { display: none; padding: 50px; text-align: center; border: 1px dashed #bdb5a8; color: var(--muted); }
.empty-state strong { color: var(--navy); font-family: "Montserrat", sans-serif; font-size: 21px; font-weight: 700; }

.visit { padding-top: 0; background: var(--cream); }
.visit-card { display: grid; grid-template-columns: 1.35fr .65fr; background: var(--navy); }
.visit-copy { padding: 80px 7vw; color: white; }
.visit-copy h2 { color: white; }
.visit-copy > p:not(.eyebrow) { max-width: 590px; margin: 24px 0 38px; color: rgba(255,255,255,.6); line-height: 1.8; font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 42px; }
.steps div { display: flex; gap: 13px; }
.steps span { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; color: var(--gold-light); border: 1px solid rgba(217,173,89,.5); font-size: 9px; }
.steps p { margin: 0; color: rgba(255,255,255,.45); font-size: 9px; line-height: 1.6; }
.steps strong { display: block; color: white; font-size: 10px; }
.visit-quote { padding: 75px 5vw; display: flex; flex-direction: column; justify-content: center; background: var(--gold); color: var(--navy); }
.visit-quote > span { font-family: "Montserrat", sans-serif; font-size: 100px; font-weight: 800; line-height: .5; opacity: .35; }
.visit-quote blockquote { margin: 27px 0; font-family: "Montserrat", sans-serif; font-size: 25px; font-weight: 600; font-style: italic; line-height: 1.4; letter-spacing: -.03em; }
.visit-quote cite { font-size: 9px; font-style: normal; text-transform: uppercase; letter-spacing: .17em; }

.location { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; align-items: center; }
.location .section-kicker { margin-bottom: 55px; }
.location-details { display: grid; gap: 24px; margin: 45px 0 25px; }
.location-details div { display: flex; gap: 18px; align-items: flex-start; }
.location-details span { color: var(--gold); font-size: 20px; }
.location-details p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.location-details strong { display: block; color: var(--navy); font-size: 11px; }
.location-details a { color: var(--muted); border-bottom: 1px solid rgba(217,173,89,.55); transition: color .2s; }
.location-details a:hover { color: var(--navy); }
.location-panel small { color: #a3a3a3; font-size: 8px; }
.map-card { height: 480px; position: relative; overflow: hidden; display: grid; place-items: center; align-content: center; background: #e8e1d6; color: var(--navy); }
.map-pattern { position: absolute; inset: 0; opacity: .26; background-image: linear-gradient(27deg, transparent 48%, #7d8f91 49%, #7d8f91 51%, transparent 52%), linear-gradient(117deg, transparent 48%, #7d8f91 49%, #7d8f91 51%, transparent 52%); background-size: 85px 85px; transform: scale(1.3) rotate(8deg); }
.map-card > *:not(.map-pattern) { position: relative; z-index: 1; }
.map-pin { width: 62px; height: 62px; margin-bottom: 15px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--gold); font-size: 30px; box-shadow: 0 9px 25px rgba(7,29,56,.2); }
.map-card strong { font-family: "Montserrat", sans-serif; font-size: 24px; font-weight: 800; }
.map-card p { font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }

footer { padding: 35px 8vw; display: flex; gap: 35px; align-items: center; color: white; background: #041429; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-right: auto; }
.footer-brand img { width: 45px; height: 45px; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-family: "Montserrat", sans-serif; font-weight: 700; }
.footer-brand span, footer p { color: rgba(255,255,255,.4); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.footer-links { display: flex; gap: 24px; color: rgba(255,255,255,.65); font-size: 9px; }

.reader-modal { width: min(880px, 92vw); padding: 0; border: 0; background: var(--cream); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.reader-modal::backdrop { background: rgba(3,16,31,.84); backdrop-filter: blur(5px); }
.modal-close { position: absolute; z-index: 3; top: 13px; right: 15px; width: 34px; height: 34px; color: white; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: transparent; cursor: pointer; font-size: 22px; }
.reader-header { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 21px 64px 21px 28px; color: white; background: var(--navy); }
.reader-header div { display: flex; flex-direction: column; }
.reader-header span { color: var(--gold-light); font-size: 8px; text-transform: uppercase; letter-spacing: .18em; }
.reader-header strong { font-family: "Montserrat", sans-serif; font-size: 17px; font-weight: 700; }
.reader-header p { max-width: 250px; margin: 0; color: rgba(255,255,255,.5); font-size: 8px; }
.reader-body { min-height: 520px; display: grid; grid-template-columns: 55px 1fr 55px; align-items: center; padding: 25px; }
.reader-arrow { border: 0; background: transparent; color: var(--navy); cursor: pointer; font-size: 20px; }
.reader-arrow:disabled { opacity: .2; }
.sample-page { width: min(430px, 100%); min-height: 470px; margin: auto; padding: 55px 52px; color: #3b352f; background: #fffdf8; box-shadow: 0 10px 27px rgba(58,45,30,.12); }
.sample-page h3 { margin: 0 0 12px; color: var(--navy); font-family: "Montserrat", sans-serif; font-size: 25px; font-weight: 700; letter-spacing: -.04em; }
.sample-page h4 { color: #9a7435; font-size: 9px; text-transform: uppercase; letter-spacing: .2em; }
.sample-page p { margin: 0 0 13px; font-family: "Montserrat", sans-serif; font-size: 10px; line-height: 1.9; text-align: justify; }
.sample-page .page-folio { display: block; margin-top: 35px; color: #aaa197; text-align: center; font-size: 9px; }
.reader-footer { padding: 15px 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; border-top: 1px solid var(--line); }
.reader-footer span, .reader-footer p { margin: 0; color: var(--muted); font-size: 8px; }
.progress { height: 2px; background: #d8d2c8; }
.progress i { display: block; height: 100%; width: 10%; background: var(--gold); transition: width .2s; }

@media (max-width: 1000px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { width: 38px; height: 38px; padding: 8px; display: grid; align-content: center; gap: 5px; border: 0; background: transparent; }
  .menu-toggle span { height: 1px; display: block; background: var(--navy); }
  .main-nav.open { position: absolute; display: flex; top: 88px; left: 0; right: 0; padding: 25px 5vw; flex-direction: column; align-items: flex-start; background: var(--paper); box-shadow: 0 13px 20px rgba(0,0,0,.1); }
  .hero-stats { width: 100%; }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid article { border-bottom: 1px solid rgba(255,255,255,.15); }
}

@media (max-width: 720px) {
  .proposal-banner p { display: none; }
  .site-header { height: 72px; padding: 0 18px; }
  .brand img { width: 44px; height: 44px; }
  .brand-copy small { display: none; }
  .main-nav.open { top: 72px; }
  .hero { min-height: 780px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(4,19,37,.95), rgba(4,19,37,.45)); }
  .hero-content { width: 100%; padding: 150px 22px 240px; }
  h1 { font-size: 60px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); padding: 20px 10px; }
  .hero-stats div { padding-left: 10px; }
  .hero-stats strong { font-size: 20px; }
  .hero-stats span { font-size: 7px; }
  .hero-note { bottom: 94px; left: 20px; }
  .section { padding: 75px 20px; }
  .section-kicker { margin-bottom: 45px; }
  h2 { font-size: 50px; }
  .intro-grid, .services-heading, .catalog-heading, .visit-card, .location { grid-template-columns: 1fr; }
  .intro-copy, .services-heading > p, .catalog-heading > p { margin-top: 28px; }
  .purpose-cards, .services-grid, .book-grid { grid-template-columns: 1fr; }
  .purpose-card { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .services-grid article { min-height: 250px; border-right: 0; }
  .service-icon { margin-bottom: 35px; }
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .book-cover { height: 265px; padding: 20px; }
  .book-cover h3 { margin-top: 35px; font-size: 21px; }
  .book-meta div { flex-direction: column; }
  .steps { grid-template-columns: 1fr; }
  .visit-copy, .visit-quote { padding: 60px 28px; }
  .map-card { height: 350px; }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
  .reader-header p { display: none; }
  .reader-body { min-height: 490px; grid-template-columns: 35px 1fr 35px; padding: 12px 5px; }
  .sample-page { min-height: 430px; padding: 35px 25px; }
  .reader-footer { grid-template-columns: auto 1fr; }
  .reader-footer p { display: none; }
}
