:root {
  --bg: #0e0f13;
  --bg-2: #121419;
  --panel: #15181f;
  --panel-2: #181c24;
  --line: #23262f;
  --line-2: #2c303b;
  --ink: #edeae3;
  --muted: #9aa3b2;
  --faint: #6b7280;
  --accent: #e7b14c;
  --accent-soft: rgba(231, 177, 76, 0.12);
  --radius: 14px;
  --maxw: 960px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.1px;
}

h1, h2, h3, h4 { font-family: var(--font-display); }

/* Fine film grain overlay */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.045; mix-blend-mode: overlay;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll-reveal (only when JS is active, so no-JS still shows everything) */
html.js section, html.js .hero {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js section.in, html.js .hero.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js section, html.js .hero { opacity: 1; transform: none; transition: none; }
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
::selection { background: var(--accent-soft); }

/* Header */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 15, 19, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
}
.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; }
.mark { display: none; }
.brand b {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700; letter-spacing: -0.6px; color: var(--ink);
}
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  color: var(--muted); text-decoration: none;
  font-size: 14.5px; padding: 8px 12px; border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
nav a:hover { color: var(--ink); background: var(--panel); }
@media (max-width: 600px) {
  nav a:not(.nav-contact) { display: none; }
}

/* Hero */
.hero { position: relative; padding: 104px 0 76px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 560px;
  background:
    radial-gradient(closest-side, rgba(231, 177, 76, 0.16), transparent 70%),
    radial-gradient(closest-side, rgba(120, 140, 200, 0.07), transparent 72%);
  filter: blur(10px); pointer-events: none;
}
.eyebrow {
  display: inline-block; color: var(--accent);
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 6px 14px; background: var(--panel);
}
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.04; letter-spacing: -1.8px;
  margin: 22px 0 20px; font-weight: 700; max-width: 16ch;
  color: var(--ink);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(176deg, #ffffff 0%, var(--ink) 52%, #b4ac9e 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }
/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-label {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.6px;
  line-height: 1.2; font-weight: 750;
}
.section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }

/* Cards */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid var(--line-2);
  display: grid; place-items: center; margin-bottom: 16px;
  color: var(--accent); font-weight: 800; font-size: 16px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.2px; }
.card p { color: var(--muted); font-size: 15px; }

/* Approach list */
.principles { display: grid; gap: 2px; }
.principle {
  display: grid; grid-template-columns: 40px 1fr; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.principle:last-child { border-bottom: 0; }
.principle .num { color: var(--accent); font-weight: 800; font-size: 15px; padding-top: 2px; }
.principle h4 { font-size: 16.5px; margin-bottom: 4px; }
.principle p { color: var(--muted); font-size: 15px; }

/* Contact */
.contact-card {
  background: linear-gradient(180deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 36px; text-align: center;
}
.contact-card h2 { font-size: 26px; letter-spacing: -0.5px; margin-bottom: 10px; }
.contact-card p { color: var(--muted); max-width: 48ch; margin: 0 auto 20px; }
.btn {
  display: inline-block; text-decoration: none;
  background: var(--accent); color: #1a1304;
  font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 10px;
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.06); }

/* Legal page body */
.legal { padding: 56px 0 24px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.8px; margin-bottom: 8px; }
.legal .updated { color: var(--faint); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 19px; margin: 34px 0 10px; letter-spacing: -0.3px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal .back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-size: 14.5px; }
.legal .back:hover { color: var(--ink); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 64px; }
.foot-top {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px;
}
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.foot-links a:hover { color: var(--ink); }
.foot-legal { color: var(--faint); font-size: 13px; line-height: 1.7; max-width: 70ch; }
.foot-legal p { margin-bottom: 3px; }
