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

:root {
  --bg: #0d0f0e;
  --surface: #151c24;
  --fg: #f0ede8;
  --fg-muted: rgba(240,237,232,0.45);
  --fg-dim: rgba(240,237,232,0.2);
  --teal: #3fa8b0;
  --teal-dim: rgba(63,168,176,0.12);
  --font-display: 'Cabinet Grotesk', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* GRAIN */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,15,14,0.92) 0%, transparent 100%);
  pointer-events: none;
}

.nav-logo {
  position: relative;
  z-index: 1;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  display: block;
  width: auto;
  height: 44px;
}

.nav-links {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--fg); }

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  padding: 0.6rem 1.5rem !important;
  border: 1px solid rgba(63,168,176,0.4) !important;
  border-radius: 9999px !important;
  color: var(--teal) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.08em !important;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1) !important;
}

.nav-cta:hover {
  background: var(--teal) !important;
  color: var(--bg) !important;
  border-color: var(--teal) !important;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--fg-dim);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal {
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  font-family: var(--font-display);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  font-family: var(--font-display);
  transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--fg); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--fg-dim);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 600px;
  width: calc(100% - 3rem);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.cookie-banner p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
  flex: 1;
}

.cookie-banner a { color: var(--teal); text-decoration: none; }

.cookie-btn {
  padding: 0.5rem 1.25rem;
  background: var(--teal);
  color: var(--bg);
  border: none;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.cookie-btn:hover { opacity: 0.85; }

/* INNER PAGE HERO */
.page-hero {
  padding: 10rem 3rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--teal);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--fg);
  max-width: 20ch;
  margin-bottom: 1.5rem;
}

.page-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 48ch;
  line-height: 1.75;
}

/* CONTENT SECTIONS */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 3rem 6rem;
}

.content-section h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 2.5rem 0 0.75rem;
}

.content-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.content-section a { color: var(--teal); text-decoration: none; }
.content-section a:hover { text-decoration: underline; }

.content-section ul, .content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-section li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
}

.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}

.content-section th, .content-section td {
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid var(--fg-dim);
  color: var(--fg-muted);
  line-height: 1.5;
}

.content-section th {
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.03);
}

/* CONTACT FORM */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem 6rem;
}

.contact-info-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--fg-dim);
  border-radius: 6px;
  padding: 0.875rem 1rem;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  background: rgba(63,168,176,0.04);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  background: var(--teal);
  color: var(--bg);
  border: none;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  margin-top: 0.5rem;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(63,168,176,0.25);
}

/* ANIMATIONS */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes riseBlur {
  from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

nav { animation: fadeDown 0.6s cubic-bezier(0.16,1,0.3,1) 0.1s both; }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 1.25rem 1.5rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-logo-img { height: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; padding: 0 1.5rem 4rem; }
  .page-hero { padding: 8rem 1.5rem 3rem; }
  .content-section { padding: 3rem 1.5rem 5rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
