/* ========= Name Fame — gold & navy ========= */
:root {
  --navy: #1B3A6B;
  --navy-deep: #12294E;
  --navy-ink: #1F497D;
  --gold: #C9A84C;
  --gold-soft: #DCC27A;
  --cream: #F5F0E8;
  --cream-light: #FDFAF3;
  --text: #2A2A2A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream-light);
}

img { max-width: 100%; display: block; }

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}
h3 { font-size: 1.5rem; font-weight: 600; color: var(--navy); }
h2.light, h3.light { color: var(--cream-light); }
.centered { text-align: center; }
em { font-style: italic; }
strong { font-weight: 600; color: var(--navy); }
.section-navy strong { color: var(--gold-soft); }

.kicker {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.9rem;
}
.kicker-gold { color: var(--gold); }
.diamond { color: var(--gold); }

.rule {
  width: 90px; height: 1px;
  background: var(--gold);
  position: relative;
  margin: 1.4rem 0 1.8rem;
}
.rule::after {
  content: '✦';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 0.7rem;
  background: inherit;
  padding: 0 8px;
}
.rule-center { margin-left: auto; margin-right: auto; }
.section-cream .rule::after { background: var(--cream); }
.section-navy .rule::after  { background: var(--navy); }
.section-gold .rule::after  { background: var(--cream-light); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- nav ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 2rem;
  background: rgba(18, 41, 78, 0.96);
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
}
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-soft); }
#nav-toggle { display: none; background: none; border: none; cursor: pointer; }
#nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); margin: 5px 0;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.14), transparent 60%),
    linear-gradient(175deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  padding: 6.5rem 1.5rem 4rem;
}
.hero-frame {
  max-width: 780px;
  text-align: center;
  border: 1px solid rgba(201, 168, 76, 0.55);
  outline: 1px solid rgba(201, 168, 76, 0.25);
  outline-offset: 6px;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
}
.hero-logo {
  width: min(480px, 82%);
  height: auto;
  margin: 1.4rem auto 1.8rem;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.35));
}
.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.8rem, 2.2vw, 1.05rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.8rem;
}
.hero-lead {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: #E8E2D4;
  max-width: 580px;
  margin: 0 auto 2.2rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-qr {
  margin-top: 2.4rem;
  font-style: italic;
  font-size: 1rem;
  color: rgba(232, 226, 212, 0.75);
}

.btn {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border: 1px solid var(--gold);
  transition: all 0.25s;
  cursor: pointer;
  display: inline-block;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--gold-soft); }
.btn-ghost:hover { background: rgba(201,168,76,0.12); }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 1.5rem; }
.section-cream { background: var(--cream); }
.section-navy {
  background: linear-gradient(180deg, var(--navy-deep), var(--navy) 30%, var(--navy) 70%, var(--navy-deep));
  color: #E8E2D4;
}
.section-navy .kicker { color: var(--gold); }
.section-navy h3 { color: var(--gold-soft); }
.section-gold {
  background: linear-gradient(180deg, var(--cream-light), #F3E9D2 50%, var(--cream-light));
}
.container { max-width: 1080px; margin: 0 auto; }
.container.narrow { max-width: 720px; }
.section-lead {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.15rem;
}
.section-lead.light { color: #E8E2D4; }

/* ---------- concept split ---------- */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: center; }
.split-text p { margin-bottom: 1.1rem; }
.book-figure { position: relative; }
.book-stack { position: relative; padding: 5% 0 0 16%; }
.book-stack img {
  border: 1px solid var(--gold);
  background: var(--cream-light);
}
.book-back {
  position: absolute;
  top: 0; left: 0;
  width: 72%;
  height: auto;
  transform: rotate(-4deg);
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}
.book-front {
  position: relative;
  width: 84%;
  height: auto;
  margin-left: auto;
  transform: rotate(1.5deg);
  box-shadow: 14px 14px 0 rgba(27, 58, 107, 0.12), 0 18px 40px rgba(0,0,0,0.22);
}
.book-figure figcaption {
  margin-top: 1.6rem;
  text-align: center;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--navy);
  opacity: 0.75;
}

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.4rem; margin-top: 3rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 1.8rem 1.6rem;
  position: relative;
}
.card-dark {
  background: rgba(253, 250, 243, 0.045);
  border: 1px solid rgba(201, 168, 76, 0.4);
  transition: border-color 0.25s, background 0.25s;
}
.card-dark:hover { border-color: var(--gold); background: rgba(253, 250, 243, 0.08); }
.card-num {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}
.card h3 { font-size: 1.32rem; margin-bottom: 0.5rem; }
.card p { font-size: 1.02rem; color: #D8D2C4; }

/* ---------- symbol library ---------- */
.lib-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.lib-tab {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--gold);
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s;
}
.lib-tab:hover { background: rgba(201,168,76,0.15); }
.lib-tab.active { background: var(--navy); color: var(--gold-soft); border-color: var(--navy); }
.lib-intro {
  text-align: center;
  font-style: italic;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--navy);
  font-size: 1.12rem;
}
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.6rem 1.4rem;
}
.lib-item { text-align: center; }
.lib-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--gold);
  outline: 1px solid rgba(201,168,76,0.3);
  outline-offset: 4px;
  padding: 10px;
  margin-bottom: 0.9rem;
  transition: transform 0.3s;
}
.lib-item:hover img { transform: translateY(-4px); }
.lib-item h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.lib-item p { font-size: 0.98rem; line-height: 1.45; color: #4a4a4a; padding: 0 0.2rem; }

/* ---------- numerology / discover ---------- */
.numo-table {
  max-width: 560px;
  margin: 0 auto 3rem;
  border: 1px solid var(--gold);
  font-family: 'Cinzel', serif;
}
.numo-head, .numo-body > div {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  text-align: center;
}
.numo-head span {
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}
.numo-body span {
  padding: 0.45rem 0;
  font-size: 0.85rem;
  color: var(--cream);
  border-top: 1px solid rgba(201,168,76,0.25);
}
.numo-body > div:nth-child(even) span { background: rgba(253,250,243,0.05); }

.calc { max-width: 860px; margin: 0 auto; }
.calc-input { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.calc-input input {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  padding: 0.7rem 1.1rem;
  background: rgba(253,250,243,0.07);
  border: 1px solid var(--gold);
  color: var(--cream-light);
  min-width: 260px;
  text-align: center;
}
.calc-input input::placeholder { color: rgba(232,226,212,0.5); font-style: italic; }
.calc-input input:focus { outline: 1px solid var(--gold-soft); background: rgba(253,250,243,0.12); }

.calc-result {
  text-align: center;
  margin-top: 2.6rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.calc-result.shown { opacity: 1; transform: none; }
.calc-heading {
  font-size: 2.2rem;
  color: var(--cream-light);
  margin-bottom: 0.5rem;
}
.calc-steps {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.calc-number {
  font-family: 'Cinzel', serif;
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
}
.calc-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-light);
  margin: 0.6rem 0 0.7rem;
}
.calc-meaning { max-width: 480px; margin: 0 auto 2.4rem; font-size: 1.08rem; color: #E8E2D4; }

.calc-emblems {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  margin-bottom: 2rem;
}
.emblem-card {
  background: rgba(253, 250, 243, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.45);
  padding: 1.2rem 1rem 1.3rem;
  transition: border-color 0.25s, transform 0.25s;
}
.emblem-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.emblem-card img {
  width: 100%;
  max-width: 130px;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 0.9rem;
  border: 1px solid var(--gold);
  background: #fff;
  padding: 6px;
}
.emblem-cat {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.emblem-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--cream-light);
  margin-bottom: 0.4rem;
}
.emblem-line { font-size: 0.95rem; line-height: 1.45; color: #D8D2C4; }
.calc-note {
  font-style: italic;
  font-size: 1rem;
  color: rgba(232,226,212,0.75);
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- collection ---------- */
.names-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 760px;
  margin: 0 auto;
}
.names-head {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.names-list { list-style: none; columns: 2; }
.names-list li { padding: 0.32rem 0; text-align: center; break-inside: avoid; }
.names-list li::before { content: '✦ '; color: var(--gold); font-size: 0.75rem; vertical-align: 2px; }
.names-list a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.2s, border-color 0.2s;
}
.names-list a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.names-note {
  text-align: center;
  margin-top: 3rem;
  font-style: italic;
  color: var(--navy);
  opacity: 0.8;
}

/* ---------- your story ---------- */
.story-lines { max-width: 480px; margin: 2.5rem auto; }
.story-prompt {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding: 1.1rem 0 0.4rem;
}

/* ---------- book modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 22, 44, 0.75);
  backdrop-filter: blur(3px);
}
.modal-panel {
  position: relative;
  max-width: 640px;
  max-height: calc(100vh - 5rem);
  margin: 2.5rem auto;
  background: var(--cream-light);
  border: 1px solid var(--gold);
  outline: 1px solid rgba(201,168,76,0.35);
  outline-offset: 5px;
  padding: 2.4rem 2.2rem 2.2rem;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.modal.open .modal-panel { opacity: 1; transform: none; }
.modal-close {
  position: absolute; top: 0.9rem; right: 1rem;
  background: none; border: none;
  font-size: 1.1rem; color: var(--navy);
  cursor: pointer; padding: 0.3rem;
}
.modal-close:hover { color: var(--gold); }
.modal-kicker {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}
.modal-name {
  font-size: 2.6rem;
  text-align: center;
  color: var(--navy);
  line-height: 1.1;
  margin: 0.2rem 0 0.4rem;
}
.modal-meaning {
  text-align: center;
  font-style: italic;
  color: var(--navy);
  opacity: 0.85;
  margin-bottom: 1.1rem;
}
.modal-facts {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.6rem;
}
.modal-chip {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: var(--navy);
  padding: 0.45rem 0.9rem;
}
.modal-sub {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.4rem;
  margin: 1.4rem 0 0.7rem;
}
.modal-list { list-style: none; }
.modal-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.32rem 0;
  border-bottom: 1px dotted rgba(201,168,76,0.4);
}
.modal-list li:last-child { border-bottom: none; }
.ml-name { font-size: 1.15rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
.ml-meta { font-size: 0.92rem; color: #6a6a6a; text-align: right; }
.modal-cta { text-align: center; margin-top: 1.8rem; }

@media (max-width: 640px) {
  .modal-panel { margin: 1rem; max-height: calc(100vh - 2rem); padding: 1.8rem 1.2rem; }
  .modal-list li { flex-direction: column; gap: 0; }
  .ml-meta { text-align: left; }
}

/* ---------- film ---------- */
.film-frame {
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--gold);
  outline: 1px solid rgba(201,168,76,0.35);
  outline-offset: 6px;
  background: var(--navy-deep);
  box-shadow: 0 20px 50px rgba(18,41,78,0.28);
}
.film-frame video { display: block; width: 100%; height: auto; }

/* ---------- accessibility / SEO ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- name pages ---------- */
.name-hero {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(201,168,76,0.14), transparent 60%),
    linear-gradient(175deg, var(--navy-deep) 0%, var(--navy) 70%, var(--navy-deep) 100%);
  padding: 7rem 1.5rem 3.5rem;
  text-align: center;
}
.name-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 600;
  color: var(--cream-light);
  line-height: 1.05;
}
.name-hero .name-meaning {
  font-style: italic;
  font-size: 1.2rem;
  color: #E8E2D4;
  margin-top: 0.7rem;
}
.name-chips {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center;
  margin-top: 1.4rem;
}
.name-section { padding: 3rem 1.5rem; }
.name-section .container { max-width: 760px; }
.name-section h2 {
  font-size: 1.9rem;
  margin-bottom: 0.8rem;
}
.name-section p { margin-bottom: 1rem; }
.name-breadcrumb {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.name-breadcrumb a { color: var(--gold); text-decoration: none; }
.name-breadcrumb a:hover { text-decoration: underline; }
.name-cta { text-align: center; padding: 1rem 1.5rem 4rem; }
.name-cta .btn { margin: 0 0.4rem 0.8rem; }

/* ---------- order page ---------- */
.order-container { max-width: 1080px; }
.mkt-label {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  color: var(--navy);
  margin-bottom: 1.2rem;
}
.mkt-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.6rem;
}
.mkt-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream-light);
  border: 1px solid var(--gold);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.mkt-btn img { width: 30px; height: auto; border: 1px solid rgba(27,58,107,0.25); }
.mkt-btn:hover { background: rgba(201,168,76,0.18); }
.mkt-btn.active { background: var(--navy); color: var(--gold-soft); border-color: var(--navy); }
.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem;
}
.order-card {
  border: 1px solid var(--gold);
  background: var(--cream-light);
  padding: 1rem 1.1rem 1.05rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  scroll-margin-top: 90px;
}
.order-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(27,58,107,0.12); }
.order-card:target { outline: 2px solid var(--gold); outline-offset: 3px; }
.order-card-name {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 0.35rem;
}
.order-card-name:hover { color: var(--gold); }
.order-link {
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
.order-link:hover { color: var(--navy); border-bottom-color: var(--navy); }
.order-card.soon { opacity: 0.55; }
.order-soon {
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.7;
}
.order-note {
  text-align: center;
  font-style: italic;
  margin-top: 2.6rem;
  color: var(--navy);
  opacity: 0.8;
}
@media (max-width: 640px) {
  .mkt-btn span { display: none; }
  .mkt-btn { padding: 0.45rem 0.55rem; }
  .order-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- footer ---------- */
footer {
  background: var(--navy-deep);
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(201,168,76,0.4);
}
.footer-logo { height: 52px; width: auto; margin: 0 auto 1rem; }
.footer-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.2rem;
}
.footer-copy { font-size: 0.95rem; color: rgba(232,226,212,0.6); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split-visual { max-width: 420px; margin: 0 auto; }
  .calc-emblems { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--navy-deep);
    padding: 1.2rem 2rem;
    gap: 1.1rem;
    border-bottom: 1px solid rgba(201,168,76,0.4);
  }
  .nav-links.open { display: flex; }
  #nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .names-cols { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .calc-emblems { grid-template-columns: 1fr; }
}
