:root {
  --bg: #000000;
  --bg-2: #070707;
  --surface: #0d0d0d;
  --surface-2: #141414;
  --line: rgba(196, 165, 116, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f3f1ea;
  --muted: #9a9588;
  --brass: #c4a574;
  --brass-2: #e2cba0;
  --danger: #c45c5c;
  --ok: #7dba8a;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Syne", "Manrope", sans-serif;
  --max: 1180px;
  --pad: clamp(1.1rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--font);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.12; margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 1rem; top: 1rem; background: #000; color: #fff; padding: .5rem 1rem; z-index: 100; }

.shell { width: min(var(--max), calc(100% - 2 * var(--pad))); margin: 0 auto; }

/* Header */
.topbar {
  background: #000;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.topbar .shell {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.45rem 0; flex-wrap: wrap;
}
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; gap: 1rem;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: inherit; text-decoration: none; }
.brand > span,
.brand strong,
.brand-name { display: none !important; }
.brand-lockup,
.brand img { display: block; height: 58px; width: auto; object-fit: contain; }
.footer-brand { display: inline-block; margin-bottom: 0.7rem; }
.footer-brand img { height: 72px; width: auto; }

.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0.45rem 0.7rem; font-size: 0.8rem;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none;
  padding: 0.5rem 0.65rem; font-size: 0.82rem; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass-2); background: rgba(196,165,116,0.08); }
.nav-cta {
  margin-left: 0.4rem !important;
  color: #000 !important; background: var(--brass) !important;
  font-weight: 700; padding: 0.5rem 0.9rem !important;
}
.nav-cta:hover { background: var(--brass-2) !important; color: #000 !important; }

/* Hero */
.hero {
  position: relative; min-height: min(78vh, 760px);
  display: grid; align-items: end;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.45) contrast(1.08);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.88) 78%);
}
.hero-copy { position: relative; z-index: 1; padding: clamp(3rem, 8vw, 6rem) 0 3rem; }
.kicker {
  color: var(--brass); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.72rem; font-weight: 700; margin-bottom: 0.9rem;
}
.hero h1 { font-size: clamp(2rem, 5.4vw, 4.1rem); max-width: 18ch; margin-bottom: 1rem; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0.78rem 1.2rem;
  font-weight: 700; text-decoration: none; border: 1px solid transparent;
  font-size: 0.92rem;
}
.btn-primary { background: var(--brass); color: #111; }
.btn-primary:hover { background: var(--brass-2); color: #111; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-2); }

/* Sections */
.section { padding: clamp(2.2rem, 5vw, 4.2rem) 0; border-bottom: 1px solid var(--line-soft); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.grid-10, .card-grid {
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.3rem;
}
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none;
  display: flex; flex-direction: column;
}
a.card:hover { border-color: var(--brass); }
.card img { width: 100%; height: 150px; object-fit: cover; }
.card-body { padding: 0.95rem 1rem 1.1rem; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.card p, .muted { color: var(--muted); font-size: 0.92rem; }

.steps {
  display: grid; gap: 0.8rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 1.3rem;
}
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { padding: 1rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; }
.step .n { color: var(--brass); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.step h3 { margin: 0.45rem 0; font-size: 1.15rem; }

.crumbs { padding: 0.85rem 0 0; font-size: 0.8rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.15rem; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 0.4rem; color: #6e6a62; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brass-2); }
.crumbs [aria-current="page"] { color: var(--brass-2); }

.page-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; align-items: center; padding: 2.2rem 0 1rem; }
.page-hero img { width: 100%; border-radius: 16px; border: 1px solid var(--line-soft); max-height: 360px; object-fit: cover; }
.prose { max-width: 72ch; }
.prose h2 { margin: 1.6rem 0 0.6rem; }
.prose h3 { margin: 1.1rem 0 0.4rem; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.15rem; color: var(--muted); margin: 0 0 1rem; }
.prose li { margin: 0.28rem 0; }
.prose .card-grid { max-width: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 1.1rem 1.15rem; }

/* Forms */
form.scope { display: grid; gap: 0.85rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.full { grid-column: 1 / -1; }
label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; font-weight: 600; }
input, select, textarea {
  width: 100%; background: #000; color: var(--text);
  border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 0.7rem 0.75rem; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 1px solid var(--brass); border-color: var(--brass); }
.check { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--muted); font-size: 0.9rem; }
.check input { width: auto; margin-top: 0.2rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.hint { color: var(--muted); font-size: 0.82rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.35rem; }
.flash { padding: 0.75rem 1rem; border-radius: 10px; margin: 1rem 0; }
.flash-ok { background: rgba(125,186,138,0.12); border: 1px solid var(--ok); }
.flash-err { background: rgba(196,92,92,0.12); border: 1px solid var(--danger); }

/* Footer */
.footer { background: #000; border-top: 1px solid var(--line); padding: 2.4rem 0 1.4rem; }
.footer h3, .footer h4 { color: var(--brass-2); font-size: 0.95rem; margin-bottom: 0.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.2rem; }
.footer a { color: var(--muted); text-decoration: none; display: block; padding: 0.18rem 0; font-size: 0.86rem; }
.footer a:hover { color: var(--brass-2); }
.legal-strip { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); color: #6e6a62; font-size: 0.68rem; line-height: 1.45; max-width: 72ch; }
.site-index-block { margin-top: 2rem; }
.site-index-block details {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 0.8rem 1rem;
}
.site-index-block summary { cursor: pointer; color: var(--brass); font-weight: 700; }
.link-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.2rem 1rem; margin-top: 0.8rem; }
.link-cols a { color: var(--muted); text-decoration: none; font-size: 0.78rem; }
.link-group h4 { margin: 0.8rem 0 0.3rem; font-size: 0.78rem; color: var(--brass-2); }

.placeholder {
  border: 1px dashed var(--line); color: var(--brass); padding: 0.15rem 0.4rem; border-radius: 6px; font-size: 0.85em;
}

@media (max-width: 900px) {
  .brand-lockup { height: 46px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 0.8rem; }
  .nav.open { display: flex; }
  .nav-cta { margin-left: 0 !important; }
  .steps, .steps-3, .page-hero, .split, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
}
