
:root {
  --navy: #132d43;
  --navy-2: #0b2132;
  --teal: #0f766e;
  --teal-dark: #0a5a55;
  --gold: #c89a38;
  --cream: #f5f0e6;
  --paper: #faf9f5;
  --white: #ffffff;
  --ink: #17212b;
  --muted: #5d6e7c;
  --line: #dbe1e4;
  --soft: #eef3f3;
  --positive: #dff3e7;
  --positive-ink: #17633c;
  --warning: #fff0c7;
  --warning-ink: #775208;
  --danger: #fce7e5;
  --danger-ink: #9b2c25;
  --shadow: 0 18px 45px rgba(19, 45, 67, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 58px);
  color: var(--white);
  background: rgba(19, 45, 67, 0.97);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark, .footer-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: #f1c96e;
  font-family: Georgia, serif;
  font-weight: 800;
  letter-spacing: -.03em;
}
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font: 700 20px Georgia, serif; }
.brand-copy small { margin-top: 5px; color: #bdd0dd; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.site-header nav { display: flex; gap: clamp(18px, 3vw, 34px); font-size: 14px; font-weight: 750; }
.site-header nav a { padding: 10px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: #f1c96e; border-color: var(--gold); }

main { width: min(1440px, calc(100% - 32px)); margin: 0 auto; }
.home-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: end;
  gap: 52px;
  min-height: 520px;
  padding: 88px 0 74px;
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(circle at 83% 28%, rgba(15,118,110,.12), transparent 32%);
}
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.home-hero h1, .collection-hero h1, .gallery-hero h1, .coming-card h1 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(50px, 8vw, 92px);
  line-height: .94;
  letter-spacing: -.045em;
}
.hero-copy { max-width: 680px; margin: 25px 0 34px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.65; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
}
.button.primary { color: var(--white); background: var(--teal); box-shadow: 0 8px 20px rgba(15,118,110,.2); }
.button.primary:hover { background: var(--teal-dark); }
.button.secondary { border-color: #b9c8ce; color: var(--navy); background: var(--white); }
.button.secondary:hover { border-color: var(--teal); color: var(--teal-dark); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-stats div, .collection-stats div {
  min-height: 128px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 25px rgba(19,45,67,.06);
}
.hero-stats b, .collection-stats b { display: block; color: var(--navy); font: 700 36px Georgia, serif; }
.hero-stats span, .collection-stats span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }

.feature-section, .collections-section { padding: 78px 0; }
.feature-section { border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; color: var(--navy); font: 700 clamp(34px, 4.5vw, 52px) Georgia, serif; letter-spacing: -.025em; }
.section-heading > p { max-width: 420px; color: var(--muted); text-align: right; }
.text-link { color: var(--teal-dark); font-weight: 800; }
.text-link:hover { color: var(--navy); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 10px 28px rgba(19,45,67,.06); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-image-wrap { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 18px; background: linear-gradient(145deg, #e8ded0, #d2c1aa); }
.feature-image-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; box-shadow: 0 8px 20px rgba(0,0,0,.17); }
.feature-copy { padding: 20px 22px 23px; }
.feature-copy span { color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.feature-copy h3 { margin: 6px 0 5px; color: var(--navy); font: 700 23px Georgia, serif; }
.feature-copy p { margin: 0; color: var(--muted); font-size: 13px; }

.collections-section { padding-top: 88px; }
.directory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.directory-column { display: grid; gap: 18px; align-content: start; }
.directory-card { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 10px 28px rgba(19,45,67,.055); }
.directory-card.accent-card { align-self: start; background: var(--navy); border-color: var(--navy); color: var(--white); }
.directory-card.accent-card h3, .directory-card.accent-card .directory-link strong { color: var(--white); }
.directory-card.accent-card .directory-title p, .directory-card.accent-card .directory-link small { color: #bed0dc; }
.directory-card.accent-card .directory-link { border-color: rgba(255,255,255,.18); }
.directory-title { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 22px; }
.directory-number { padding-top: 5px; color: var(--gold); font: 700 13px Georgia, serif; }
.directory-title h3 { margin: 0; color: var(--navy); font: 700 28px Georgia, serif; }
.directory-title p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.directory-links { display: grid; }
.directory-link { display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 9px; min-height: 64px; padding: 10px 5px; border-top: 1px solid var(--line); }
.directory-link:last-child { border-bottom: 1px solid var(--line); }
.directory-arrow { color: var(--teal); font-size: 21px; transition: transform .2s ease; }
.directory-link:hover .directory-arrow { transform: translate(3px, -3px); }
.directory-link strong { display: block; color: var(--navy); font-size: 15px; }
.directory-link small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.directory-link em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.link-action { color: var(--teal); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.compact-links .directory-link { min-height: 54px; }
.project-group + .project-group { margin-top: 25px; }
.project-group h4 { margin: 0 0 6px; color: var(--teal-dark); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }

.inner-main { width: min(1540px, calc(100% - 30px)); }
.breadcrumb { display: flex; gap: 10px; align-items: center; padding: 25px 0 0; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--teal-dark); font-weight: 800; }
.breadcrumb strong { max-width: 65vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collection-hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 38px; padding: 52px 0 38px; }
.collection-hero h1, .gallery-hero h1 { max-width: 900px; font-size: clamp(42px, 6vw, 72px); }
.collection-hero > div > p:not(.eyebrow), .gallery-hero > div > p:not(.eyebrow) { max-width: 740px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.download-button { margin-top: 22px; }
.collection-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.collection-stats div { min-height: 102px; padding: 18px; }
.collection-stats b { font-size: 29px; }

.catalog-panel { margin: 10px 0 65px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
.catalog-toolbar { display: grid; grid-template-columns: minmax(260px, 2fr) repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; padding: 15px; background: #eaf0f1; border-bottom: 1px solid var(--line); }
.search-field { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 13px; border: 1px solid #b8c7cd; border-radius: 7px; background: var(--white); }
.search-field > span { color: var(--teal); font-size: 22px; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.select-field { display: grid; gap: 4px; }
.select-field span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.select-field select { min-width: 0; height: 31px; padding: 0 8px; border: 1px solid #b8c7cd; border-radius: 6px; color: var(--ink); background: var(--white); }
.catalog-summary { display: flex; align-items: center; gap: 5px; min-height: 43px; padding: 8px 16px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.catalog-summary strong { color: var(--navy); font-size: 15px; }
.catalog-summary button { margin-left: auto; padding: 5px 9px; border: 0; color: var(--teal-dark); background: transparent; font-weight: 800; }
.table-shell { max-height: 70vh; overflow: auto; }
.collection-table { width: 100%; min-width: 1060px; border-spacing: 0; border-collapse: separate; }
.collection-table th { position: sticky; top: 0; z-index: 3; padding: 11px 12px; color: var(--white); background: var(--teal); text-align: left; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.collection-table td { max-width: 330px; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 12px; white-space: pre-line; }
.collection-table tbody tr:nth-child(even) { background: #f8faf9; }
.collection-table tbody tr:hover { background: #eaf5f3; }
.collection-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.table-link { color: var(--teal-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.table-link:hover { color: var(--navy); }
.primary-cell { min-width: 190px; color: var(--navy); font-weight: 800; }
.notes-cell { min-width: 240px; }
.badge { display: inline-flex; padding: 3px 8px; border-radius: 99px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.badge.positive { color: var(--positive-ink); background: var(--positive); }
.badge.muted { color: var(--danger-ink); background: var(--danger); }
.badge.warning { color: var(--warning-ink); background: var(--warning); }
.badge.neutral { color: #335966; background: #e3eef0; }
.expand-row { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 0; border: 0; color: var(--navy); background: transparent; text-align: left; font-weight: 800; }
.expand-row span { color: var(--teal); font-size: 17px; }
.details-row td { padding: 0 18px 18px; background: #eff6f4; }
.back-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; padding-top: 15px; }
.back-detail-grid div { padding: 11px; border: 1px solid #cddfda; border-radius: 7px; background: var(--white); }
.back-detail-grid span, .back-detail-grid small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.back-detail-grid strong { display: block; margin: 4px 0; color: var(--navy); font-size: 12px; }
.empty-state { display: grid; gap: 4px; padding: 60px 20px; color: var(--muted); text-align: center; }
.empty-state b { color: var(--navy); font: 700 24px Georgia, serif; }
.load-more { display: flex; justify-content: center; padding: 16px; border-top: 1px solid var(--line); background: #f8faf9; }

.gallery-main { padding-bottom: 65px; }
.gallery-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 48px 0 32px; }
.gallery-count { min-width: 150px; padding: 20px; color: var(--white); background: var(--navy); border-radius: 10px; text-align: center; }
.gallery-count b { display: block; font: 700 34px Georgia, serif; }
.gallery-count span { color: #bdd0dd; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.gallery-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.gallery-search { width: min(480px, 100%); }
.gallery-tools > span { color: var(--muted); font-size: 12px; }
.page-tabs { display: flex; gap: 7px; margin-bottom: 18px; overflow-x: auto; }
.page-tabs a { flex: 0 0 auto; padding: 8px 15px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--white); font-size: 12px; font-weight: 800; }
.page-tabs a.active { color: var(--white); border-color: var(--teal); background: var(--teal); }
.tag-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tag-item { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 10px 28px rgba(19,45,67,.07); }
.tag-image-button { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; overflow: hidden; background: #050709; }
.tag-image-button img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.tag-image-button:hover img { transform: scale(1.02); }
.tag-image-button > span { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 5px; color: var(--white); background: rgba(5,7,9,.78); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tag-item-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; }
.tag-item-footer small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.tag-item-footer strong { display: block; margin-top: 2px; color: var(--navy); font: 700 18px Georgia, serif; }
.side-toggle { display: inline-flex; padding: 3px; border-radius: 6px; background: #eaf0f1; }
.side-toggle button { padding: 5px 8px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 850; }
.side-toggle button.active { color: var(--white); background: var(--teal); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 30px; background: rgba(5,14,21,.92); }
.lightbox-close { position: fixed; top: 15px; right: 22px; border: 0; color: var(--white); background: transparent; font-size: 40px; }
.lightbox-content { display: grid; gap: 12px; max-width: min(88vw, 920px); max-height: 90vh; }
.lightbox-content img { max-height: 80vh; margin: auto; object-fit: contain; }
.lightbox-content > div { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--white); }
.lightbox-toggle { background: rgba(255,255,255,.14); }

.featured-page-grid { display: grid; gap: 42px; padding-bottom: 70px; }
.featured-page-grid article { display: grid; grid-template-columns: minmax(320px, .9fr) 1fr; column-gap: 40px; align-items: center; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.featured-page-image { grid-row: span 4; overflow: hidden; border-radius: 12px; box-shadow: var(--shadow); }
.featured-page-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.featured-page-grid h2 { margin: 0; color: var(--navy); font: 700 42px Georgia, serif; }
.featured-page-grid article > p:last-child { color: var(--muted); }

.coming-main { display: grid; place-items: center; min-height: calc(100vh - 72px); }
.coming-card { width: min(720px, 100%); padding: clamp(35px, 7vw, 76px); border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.coming-number { display: inline-block; margin-bottom: 35px; padding: 6px 10px; border-radius: 99px; color: var(--warning-ink); background: var(--warning); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.coming-card h1 { font-size: clamp(48px, 8vw, 78px); }
.coming-card > p:not(.eyebrow) { margin: 22px 0 30px; color: var(--muted); font-size: 17px; }

.site-footer { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 108px; padding: 25px; color: #b9cbd7; background: var(--navy-2); font-size: 12px; }
.footer-mark { width: 34px; height: 34px; font-size: 11px; }

@media (max-width: 980px) {
  .home-hero, .collection-hero { grid-template-columns: 1fr; min-height: auto; }
  .home-hero { padding-top: 65px; }
  .feature-grid, .tag-gallery { grid-template-columns: repeat(2, 1fr); }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-card.tag-card, .directory-card.projects-card { grid-row: auto; }
  .catalog-toolbar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  main, .inner-main { width: min(100% - 18px, 1540px); }
  .site-header { min-height: 64px; padding: 8px 12px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy small { display: none; }
  .site-header nav { gap: 12px; font-size: 12px; }
  .home-hero { padding: 48px 0; }
  .home-hero h1 { font-size: 56px; }
  .hero-copy { font-size: 17px; }
  .hero-stats div { min-height: 100px; padding: 17px; }
  .hero-stats b { font-size: 29px; }
  .feature-section, .collections-section { padding: 55px 0; }
  .section-heading { display: grid; align-items: start; }
  .section-heading > p { text-align: left; }
  .feature-grid, .tag-gallery { grid-template-columns: 1fr; }
  .directory-card { padding: 21px; }
  .directory-link { grid-template-columns: 25px 1fr; }
  .directory-link > :last-child { grid-column: 2; }
  .collection-hero { padding-top: 38px; }
  .collection-stats { grid-template-columns: 1fr 1fr; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .gallery-hero { display: grid; }
  .gallery-count { width: 145px; }
  .gallery-tools { align-items: stretch; flex-direction: column; }
  .gallery-tools > span { align-self: flex-end; }
  .lightbox { padding: 12px; }
  .featured-page-grid article { display: block; }
  .featured-page-image { margin-bottom: 25px; }
  .featured-page-grid h2 { font-size: 34px; }
}
