:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --surface: #161616;
  --text: #f5f2eb;
  --muted: #9a958c;
  --line: rgba(245, 242, 235, 0.12);
  --accent: #c4a574;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --space: clamp(1.25rem, 4vw, 2rem);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.nav {
  display: none;
  gap: 2rem;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.nav a:hover,
.nav a:focus-visible { color: var(--accent); outline: none; }
.nav-cta {
  border: 1px solid var(--line);
  padding: 0.45rem 1rem;
  transition: border-color 0.25s, color 0.25s;
}
.nav-cta:hover,
.nav-cta:focus-visible { border-color: var(--accent); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem var(--space) 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav a { font-size: 1rem; letter-spacing: 0.04em; }

@media (min-width: 768px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, var(--bg) 95%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.4), transparent 60%),
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(196, 165, 116, 0.15), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(80, 70, 55, 0.25), transparent 50%),
    linear-gradient(160deg, #1a1814 0%, #0a0a0a 50%, #12100e 100%);
  animation: heroShift 18s ease-in-out infinite alternate;
}

@keyframes heroShift {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

.hero-inner { position: relative; z-index: 1; max-width: 40rem; }

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-style: italic;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28rem;
  margin: 0 0 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: var(--bg); }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: clamp(4rem, 10vw, 7rem) 0; }
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 2.5rem;
  max-width: 18ch;
}

.about { border-top: 1px solid var(--line); }
.about-grid {
  display: grid;
  gap: 2rem;
}
.about-grid h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0;
  max-width: 14ch;
}
.about-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 36rem;
}
.about-copy p:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.focus-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.focus-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.focus-num {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.focus-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}
.focus-card p {
  color: var(--muted);
  margin: 0;
  max-width: 28rem;
}

@media (min-width: 768px) {
  .focus-grid {
    grid-template-columns: repeat(3, 1fr);
    border-top: none;
    gap: 0;
  }
  .focus-card {
    padding: 2rem 1.75rem 2rem 0;
    border-bottom: none;
    border-right: 1px solid var(--line);
  }
  .focus-card:last-child {
    border-right: none;
    padding-right: 0;
  }
  .focus-card:first-child { padding-left: 0; }
}

.approach { background: var(--bg-elevated); }
.approach-list {
  display: grid;
  gap: 2rem;
}
.approach-list h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}
.approach-list p {
  color: var(--muted);
  margin: 0;
}
@media (min-width: 768px) {
  .approach-list { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
}

.contact {
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact-inner h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
}
.contact-inner p {
  color: var(--muted);
  margin: 0 0 2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-inner nav a:hover,
.footer-inner nav a:focus-visible { color: var(--accent); outline: none; }
.footer-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  animation: revealUp 0.9s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes revealUp {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .hero-bg { animation: none; }
}

/* Legal + 404 pages */
.legal-page,
.error-page {
  padding-block: clamp(6rem, 16vw, 8rem) 4rem;
  min-height: 60vh;
}
.legal-page .container,
.error-page .container {
  max-width: 42rem;
}
.legal-page h1,
.error-page h1 {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.legal-page .legal-updated {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0 0 2rem;
}
.legal-page h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}
.legal-page p,
.legal-page li {
  margin: 0 0 1rem;
  line-height: 1.65;
}
.legal-page ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.error-page {
  text-align: center;
  display: flex;
  align-items: center;
}
.error-page .container {
  margin-inline: auto;
}
.error-page .error-code {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.75rem;
}
.error-page p {
  margin: 0 0 1.75rem;
  opacity: 0.8;
}
