/* Stratton & Vance — Prestige System */

:root {
  --bg: #070708;
  --bg-elevated: #0e0e10;
  --bg-card: #121214;
  --border: rgba(232, 228, 220, 0.08);
  --border-strong: rgba(232, 228, 220, 0.16);
  --text: #ece8e0;
  --text-muted: #9a958c;
  --text-subtle: #6b6760;
  --accent: #c5c0b6;
  --accent-soft: rgba(197, 192, 182, 0.12);
  --accent-line: rgba(197, 192, 182, 0.35);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

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

/* Grain */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 640px) { .grain { display: none; } }

/* Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow { max-width: 640px; }
.container.center { text-align: center; }

.section {
  padding: 6.5rem 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .section { padding: 8.5rem 0; }
}

.eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0 1.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 12px 40px rgba(0,0,0,0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 7, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(1.05);
}
.nav-wordmark {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}
@media (max-width: 480px) {
  .nav-wordmark { display: none; }
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: var(--text);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
}
.nav-links .nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 4px 0;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.nav-mobile {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(7, 7, 8, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0;
}
.nav-mobile a:hover { color: var(--text); }

/* HERO */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 640px);
  height: 420px;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(197, 192, 182, 0.07), transparent 70%);
  pointer-events: none;
  animation: glow-in 2s var(--ease) both;
}
@keyframes glow-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.hero-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.hero-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.4));
}
@media (min-width: 768px) {
  .hero-logo { width: 104px; height: 104px; }
}
.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 6.5vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero-body {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 1rem;
}
.hero-body-strong {
  color: var(--text);
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.hero-scroll:hover { opacity: 0.9; }
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* WORK / METRICS */
.work .section-title { margin-bottom: 3.5rem; }
.metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .metrics { grid-template-columns: repeat(3, 1fr); }
}
.metric {
  background: var(--bg-card);
  padding: 2.25rem 1.5rem;
  text-align: center;
}
.metric-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.65rem;
}
.metric-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.work-sub {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 420px;
}

/* BLACKBOOK */
.bb-grid {
  display: grid;
  gap: 3.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .bb-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 4.5rem;
    align-items: center;
  }
}
.bb-visual { display: flex; justify-content: center; }
.bb-cover-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 24px 64px rgba(0,0,0,0.45);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.bb-cover-wrap:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px var(--border-strong),
    0 32px 80px rgba(0,0,0,0.55);
}
.bb-cover {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}
.bb-lead {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text);
  margin: 1.25rem 0 1rem;
  line-height: 1.45;
}
.bb-body {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.bb-meta {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 2rem;
}
.bb-contents {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.bb-contents li {
  display: grid;
  gap: 0.2rem;
}
.bb-contents strong {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
}
.bb-contents span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.bb-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.bb-price {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ADVISORY */
.advisory .section-title { margin-bottom: 1.25rem; }
.adv-lead {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.adv-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.adv-facts {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 480px) {
  .adv-facts { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.adv-fact-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.4rem;
}
.adv-fact-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}
.adv-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* DISPATCHES */
.dispatches .section-title { margin-bottom: 1rem; }
.disp-lead {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.disp-body {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}
.disp-form { max-width: 480px; }
.disp-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .disp-row { flex-direction: row; }
}
.disp-row input {
  flex: 1;
  height: 2.85rem;
  padding: 0 1rem;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.disp-row input::placeholder { color: var(--text-subtle); }
.disp-row input:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.disp-row .btn { width: 100%; }
@media (min-width: 480px) {
  .disp-row .btn { width: auto; }
}
.disp-success {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.disp-error {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ACCESS */
.access .section-title { margin-bottom: 1.25rem; }
.access-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}
.access-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
}
.footer-top {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.2fr 1fr auto;
    align-items: start;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.footer-name {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-tag {
  font-size: 0.7rem;
  color: var(--text-subtle);
  margin-top: 0.15rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.footer-links a {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--text); }
.footer-social {
  display: flex;
  gap: 1.25rem;
}
.footer-social a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  transition: color 0.25s;
}
.footer-social a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.35s var(--ease);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: panel-in 0.45s var(--ease);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}
.modal-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: color 0.25s;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body {
  overflow-y: auto;
  padding: 0.5rem 0.75rem 1rem;
  flex: 1;
}
.modal-body iframe {
  display: block;
  min-height: 480px;
  background: transparent;
}

/* Reveal animations — visible by default so page never goes blank without JS */
.reveal {
  opacity: 1;
  transform: none;
}
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow { animation: none; }
  .scroll-line { animation: none; }
}

/* Legal pages shared */
.legal-page {
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
}
.legal-page .container { max-width: 640px; }
.legal-page h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  margin: 1rem 0 0.5rem;
}
.legal-page .updated {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 2.5rem;
}
.legal-page p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 1.15rem;
}
.legal-page ul {
  margin: 0 0 1.25rem 1.25rem;
  list-style: disc;
}
.legal-page li {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}
.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-back {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.legal-back:hover { color: var(--text); }
