:root {
  --ink: #0F1420;
  --panel: #161D2E;
  --cream: #E8E6DF;
  --brass: #C9A227;
  --slate: #8B93A7;
  --hair: rgba(232,230,223,0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--ink);
  background-image: radial-gradient(rgba(232,230,223,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}
.voice { font-family: 'Fraunces', serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 64px;
  border-bottom: 1px solid var(--hair);
}
.wordmark { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 500; letter-spacing: 0.02em; display: flex; align-items: center; gap: 9px; }
.logo-mark { width: 24px; height: 24px; flex: 0 0 auto; }
nav { display: flex; gap: 40px; }
nav a { font-size: 14px; color: var(--slate); }
nav a:hover { color: var(--cream); }
nav a.active { color: var(--cream); }
.nav-holdings { display: flex; gap: 18px; }
.nav-holdings a { font-size: 13px; color: var(--brass); border: 1px solid rgba(201,162,39,0.4); padding: 6px 14px; border-radius: 3px; }
.nav-holdings a:hover { background: rgba(201,162,39,0.08); }

.right-rail { position: fixed; right: 36px; top: 0; height: 100vh; width: 2px; pointer-events: none; z-index: 1; }

/* Hero (home page, large) */
.hero { position: relative; padding: 100px 420px 60px 64px; max-width: 1380px; overflow: hidden; }
.hero .tag { font-size: 13px; color: var(--brass); letter-spacing: 0.04em; margin-bottom: 24px; }
.hero h1 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 46px; line-height: 1.22; max-width: 780px; margin-bottom: 22px; }
.hero p { font-size: 16.5px; color: var(--slate); max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 16px; }
.btn-primary { background: var(--brass); color: var(--ink); padding: 13px 26px; font-size: 14px; font-weight: 600; border-radius: 3px; }
.btn-secondary { padding: 13px 22px; font-size: 14px; color: var(--cream); border: 1px solid var(--hair); border-radius: 3px; }
.hero-mesh { position: absolute; right: -40px; top: -20px; width: 460px; height: 460px; opacity: 0.85; pointer-events: none; }

/* Page header (About / Services / Contact / 404 — smaller than home hero) */
.page-hero { position: relative; padding: 84px 340px 56px 64px; max-width: 1200px; overflow: hidden; }
.page-hero .tag { font-size: 13px; color: var(--brass); letter-spacing: 0.04em; margin-bottom: 20px; }
.page-hero h1 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 38px; line-height: 1.25; max-width: 640px; }
.page-hero-mesh { position: absolute; right: -30px; top: -10px; width: 320px; height: 320px; opacity: 0.8; pointer-events: none; }

.stats { display: flex; flex-wrap: wrap; max-width: 980px; padding: 48px 64px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.stat { width: 25%; padding: 8px 24px 8px 0; }
.stat .num { font-family: 'Fraunces', serif; font-size: 24px; color: var(--brass); margin-bottom: 6px; }
.stat .label { font-size: 12.5px; color: var(--slate); }

.mission { padding: 88px 64px 64px; max-width: 900px; }
.mission-head { margin-bottom: 44px; }
.mission-head h2 { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 500; }
.mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; }
.mission-item .k { font-size: 13px; color: var(--brass); letter-spacing: 0.02em; margin-bottom: 8px; }
.mission-item .v { font-family: 'Fraunces', serif; font-size: 18px; line-height: 1.4; }

.holdings { padding: 88px 64px; max-width: 980px; border-top: 1px solid var(--hair); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 44px; }
.section-head h2 { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 500; }
.section-head span { font-size: 13px; color: var(--slate); }
.holding-list { display: flex; flex-direction: column; }
.holding { display: grid; grid-template-columns: 160px 1fr 180px; gap: 32px; padding: 32px 0; border-top: 1px solid var(--hair); align-items: center; }
.holding:last-child { border-bottom: 1px solid var(--hair); }
.holding .name { font-family: 'Fraunces', serif; font-size: 24px; }
.holding .desc { font-size: 14.5px; color: var(--slate); max-width: 480px; }
.holding .visit { justify-self: end; font-size: 13.5px; color: var(--brass); border-bottom: 1px solid rgba(201,162,39,0.4); padding-bottom: 2px; }

.systems { padding: 88px 64px; max-width: 980px; border-top: 1px solid var(--hair); }
.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.panel { background: var(--panel); border-radius: 6px; padding: 22px 24px 18px; }
.panel .p-label { font-size: 12.5px; color: var(--slate); margin-bottom: 4px; }
.panel .p-value { font-family: 'Fraunces', serif; font-size: 20px; color: var(--cream); margin-bottom: 12px; }
.panel svg { display: block; width: 100%; height: 48px; }

.flow { padding: 0 64px 96px; max-width: 980px; }
.flow-row { display: flex; align-items: flex-start; gap: 0; margin-top: 40px; }
.flow-step { flex: 1; text-align: center; }
.flow-step .fs-box { border: 1px solid var(--hair); border-radius: 4px; padding: 16px 10px; font-size: 13.5px; color: var(--cream); background: var(--panel); }
.flow-step .fs-note { font-size: 11.5px; color: var(--slate); margin-top: 8px; }
.flow-arrow { color: var(--brass); font-size: 16px; padding: 0 8px; flex: 0 0 auto; align-self: center; }

/* About page */
.about-note { padding: 20px 64px 88px; max-width: 760px; border-top: 1px solid var(--hair); margin-top: 32px; }
.about-note p { font-size: 16px; color: var(--slate); margin-bottom: 20px; max-width: 660px; }
.about-note .sign { font-family: 'Fraunces', serif; font-style: italic; color: var(--cream); margin-top: 8px; }

/* Services page */
.services-list { padding: 20px 64px 96px; max-width: 900px; border-top: 1px solid var(--hair); margin-top: 32px; }
.service-row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--hair); }
.service-row .s-name { font-family: 'Fraunces', serif; font-size: 20px; }
.service-row .s-desc { font-size: 15px; color: var(--slate); max-width: 540px; }

/* Contact page */
.contact-wrap { padding: 20px 64px 96px; max-width: 980px; border-top: 1px solid var(--hair); margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info .c-item { margin-bottom: 28px; }
.contact-info .c-label { font-size: 12.5px; color: var(--slate); margin-bottom: 6px; }
.contact-info .c-value { font-family: 'Fraunces', serif; font-size: 18px; }
.contact-form label { display: block; font-size: 12.5px; color: var(--slate); margin-bottom: 6px; margin-top: 18px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--hair); border-radius: 4px;
  padding: 11px 14px; color: var(--cream); font-family: 'Inter', sans-serif; font-size: 14px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: rgba(201,162,39,0.5); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form button { margin-top: 24px; }

/* 404 page */
.notfound { padding: 140px 64px; max-width: 700px; text-align: left; }
.notfound .code { font-family: 'Fraunces', serif; font-size: 84px; color: var(--brass); line-height: 1; margin-bottom: 24px; }
.notfound h1 { font-family: 'Fraunces', serif; font-size: 28px; margin-bottom: 16px; }
.notfound p { color: var(--slate); font-size: 15.5px; margin-bottom: 28px; max-width: 480px; }

footer { padding: 32px 64px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--slate); }
.footer-tag { font-size: 12px; color: var(--slate); opacity: 0.7; }

@media (max-width: 900px) {
  header, .hero, .page-hero, .stats, .mission, .holdings, .systems, .flow, .about-note, .services-list, .contact-wrap, .notfound, footer { padding-left: 20px; padding-right: 20px; }
  .hero, .page-hero { padding-right: 20px; }
  .notfound { padding-top: 72px; padding-bottom: 72px; }
  .hero-mesh, .page-hero-mesh, .right-rail { display: none; }
  .hero h1 { font-size: 30px; }
  .page-hero h1 { font-size: 26px; }
  .mission-grid { grid-template-columns: 1fr; }
  .holding { grid-template-columns: 1fr; gap: 10px; text-align: left; }
  .holding .visit { justify-self: start; }
  .panel-grid { grid-template-columns: 1fr; }
  .flow-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .flow-arrow { display: none; }
  .stat { width: 50%; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .service-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  header { flex-wrap: wrap; row-gap: 14px; padding-top: 20px; padding-bottom: 20px; }
  nav { order: 3; width: 100%; gap: 18px; flex-wrap: wrap; }
  .nav-holdings { gap: 10px; }
  .hero-cta { flex-wrap: wrap; }
  .footer-tag { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 25px; }
  .page-hero h1 { font-size: 22px; }
  .stat { width: 100%; }
  .notfound .code { font-size: 60px; }
}
