:root {
  --navy-950: #070f20;
  --navy-900: #0b1730;
  --navy-800: #12234a;
  --navy-700: #1b3263;
  --gold-500: #d6b97b;
  --gold-400: #e4cc98;
  --gold-600: #b8995a;
  --ivory: #f7f3ea;
  --ink: #0b1730;
  --ink-muted: #45526b;
  --text-on-dark: #eef1f7;
  --text-on-dark-muted: #b5bfd3;
  --radius: 14px;
  --container: 1120px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.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;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--gold-500); color: var(--navy-900);
  padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 15, 32, 0.97);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(214, 185, 123, 0.18);
  color: var(--text-on-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-word {
  font-family: var(--font-serif);
  font-weight: 600; letter-spacing: 0.28em; font-size: 1.15rem; color: var(--gold-500);
}
.brand-word-small { font-size: 1rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 0.5rem 0.85rem; border-radius: 8px;
  text-decoration: none; color: var(--text-on-dark-muted); font-size: 0.95rem; font-weight: 500;
}
.site-nav a:hover { color: var(--gold-400); background: rgba(214, 185, 123, 0.08); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
    background: transparent; border: 1px solid rgba(214, 185, 123, 0.35); color: var(--gold-500);
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
    position: relative; transition: transform 0.2s ease, background 0.2s ease;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-open .nav-toggle-bar { background: transparent; }
  .nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav { width: 100%; }
  .js .site-nav { display: none; padding-bottom: 0.75rem; }
  .js.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: 0.8rem 0.5rem; border-top: 1px solid rgba(214, 185, 123, 0.12); border-radius: 0; }
}

/* Hero */
.hero {
  position: relative;
  color: var(--text-on-dark);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(214, 185, 123, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(27, 50, 99, 0.9), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
  padding: clamp(5rem, 14vw, 9.5rem) 0 clamp(4.5rem, 12vw, 8rem);
  overflow: hidden;
}
.hero-full { min-height: 100vh; display: flex; align-items: center; }
.hero-inner { position: relative; max-width: 820px; margin-left: max(1.25rem, calc((100% - var(--container)) / 2)); }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  letter-spacing: 0.14em;
  color: var(--gold-500);
  margin-bottom: 0.35em;
}
.page-404 .hero h1 { letter-spacing: 0.02em; font-size: clamp(2.2rem, 6vw, 3.6rem); }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--text-on-dark-muted); max-width: 40ch; }
.lead strong { color: var(--text-on-dark); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent); opacity: 0.55;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; font-weight: 600;
  color: var(--gold-500); margin-bottom: 1rem;
}
.eyebrow-dark { color: var(--gold-600); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); border: 1px solid var(--gold-500); }
.btn-gold:hover { background: var(--gold-400); border-color: var(--gold-400); }
.btn-outline { border: 1px solid rgba(214, 185, 123, 0.55); color: var(--gold-400); }
.btn-outline:hover { background: rgba(214, 185, 123, 0.1); }

/* Sections */
.section { padding: clamp(4rem, 10vw, 6.5rem) 0; scroll-margin-top: 68px; }
.hero { scroll-margin-top: 68px; }
.section h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.8rem, 4.2vw, 2.6rem); max-width: 24ch; }
.section-light { background: var(--ivory); color: var(--ink); }
.section-dark {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--text-on-dark);
}
.section-dark h2 { color: var(--text-on-dark); }

.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; margin-top: 1.5rem; color: var(--ink-muted); }
.pillars { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.pillar {
  background: #fff; border: 1px solid rgba(11, 23, 48, 0.08); border-top: 3px solid var(--gold-500);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: 0 10px 30px -18px rgba(11, 23, 48, 0.35);
}
.pillar h3 { font-size: 1.1rem; color: var(--navy-900); }
.pillar p { color: var(--ink-muted); margin: 0; font-size: 0.98rem; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.product-card {
  position: relative;
  background: linear-gradient(180deg, rgba(27, 50, 99, 0.55), rgba(18, 35, 74, 0.35));
  border: 1px solid rgba(214, 185, 123, 0.25);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  scroll-margin-top: 84px;
}
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.product-head h3 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--gold-500); margin: 0; }
.badge {
  display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px;
  border: 1px solid rgba(214, 185, 123, 0.6); color: var(--gold-400);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.product-summary { color: var(--text-on-dark); margin: 0.9rem 0 1.5rem; font-size: 1.05rem; }
.product-card h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-on-dark-muted); font-weight: 600;
}
.product-scope { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 1.25rem; }
.product-scope li { position: relative; padding-left: 1.2rem; color: var(--text-on-dark-muted); font-size: 0.98rem; }
.product-scope li::before {
  content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px;
  background: var(--gold-500); transform: rotate(45deg);
}

/* Contact */
.contact-note { max-width: 760px; }
.contact-note {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius);
  background: #fff; border: 1px solid rgba(11, 23, 48, 0.08); border-left: 3px solid var(--gold-500);
  color: var(--ink-muted);
}

/* Footer */
.site-footer { background: var(--navy-950); color: var(--text-on-dark-muted); padding: 2.25rem 0; border-top: 1px solid rgba(214, 185, 123, 0.18); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold-400); }
.copyright { margin: 0; font-size: 0.88rem; }

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; gap: 0; }
  .product-scope { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
