/* ==========================================================================
   Hanuva Labs LLC — Atmospheric Studio Stylesheet
   Deep mineral charcoal, warm ivory ink, subtle ambient depth.
   ========================================================================== */

:root {
  --bg: #0A0D0E;
  --ink: #F5F4F0;
  --ink-secondary: #9A9B95;
  --ink-tertiary: #6E706A;
  --hairline: rgba(245, 244, 240, 0.10);
  --hairline-strong: rgba(245, 244, 240, 0.18);

  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --mx: 50%;
  --my: 42%;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background-color: var(--bg);
  color: var(--ink);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100svh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

/* ==========================================================================
   Atmospheric Ambient Layers
   ========================================================================== */

.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    640px circle at var(--mx) var(--my),
    rgba(224, 178, 122, 0.13),
    rgba(176, 146, 108, 0.045) 42%,
    transparent 74%
  );
  will-change: background;
}

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

/* ==========================================================================
   Sanctuary Page Shell
   ========================================================================== */

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: opacity 0.25s var(--ease);
}

.brand:hover {
  opacity: 0.85;
}

.brand-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.topbar-link {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-secondary);
  transition: color 0.25s var(--ease);
}

.topbar-link:hover {
  color: var(--ink);
}

/* ==========================================================================
   Centered Hero Composition
   ========================================================================== */

.hero-center {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  padding-block: clamp(28px, 6vh, 64px);
  animation: studioReveal 0.7s var(--ease) both;
}

@keyframes studioReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-rule {
  width: 38px;
  height: 1px;
  background-color: rgba(245, 244, 240, 0.28);
  margin: 0 auto 30px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero-copy {
  font-size: clamp(15.5px, 1.8vw, 17px);
  line-height: 1.68;
  color: var(--ink-secondary);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 36px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 999px;
  background-color: rgba(245, 244, 240, 0.05);
  border: 1px solid var(--hairline-strong);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact-pill:hover {
  background-color: rgba(245, 244, 240, 0.10);
  border-color: rgba(245, 244, 240, 0.36);
  transform: translateY(-1px);
}

.contact-pill:focus-visible,
.topbar-link:focus-visible,
.footer-link:focus-visible,
.brand:focus-visible,
.legal-body a:focus-visible {
  outline: 2px solid rgba(245, 244, 240, 0.55);
  outline-offset: 3px;
}

.pill-arrow {
  color: var(--ink-secondary);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.contact-pill:hover .pill-arrow {
  color: var(--ink);
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Footer Dock
   ========================================================================== */

.footer-dock {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-tertiary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-link {
  color: var(--ink-secondary);
  transition: color 0.25s var(--ease);
}

.footer-link:hover {
  color: var(--ink);
}

/* ==========================================================================
   Privacy / Legal Page
   ========================================================================== */

.legal-shell {
  gap: 56px;
}

.legal-main {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-block: clamp(12px, 3vh, 32px);
}

.legal-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 12px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.8vw, 46px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 12px;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-tertiary);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 36px;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 34px;
  margin-bottom: 10px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}

.legal-body strong {
  color: var(--ink);
  font-weight: 500;
}

.legal-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(245, 244, 240, 0.32);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s var(--ease);
}

.legal-body a:hover {
  text-decoration-color: var(--ink);
}

/* ==========================================================================
   Responsive & Accessibility
   ========================================================================== */

@media (max-width: 560px) {
  .topbar-email-hide {
    display: none;
  }

  .hero-center {
    text-align: left;
  }

  .hero-rule {
    margin-inline: 0;
    margin-bottom: 24px;
  }

  .hero-copy {
    margin-inline: 0;
  }

  .footer-dock {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-glow {
    --mx: 50%;
    --my: 42%;
  }

  .hero-center {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
