:root {
  --bg: #0c0e12;
  --panel: #14171e;
  --line: #342c1e;
  --gold: #d6aa54;
  --gold-hi: #e8c57a;
  --ink: #16120a;
  --text: #ece2ce;
  --muted: #848a94;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}

body { overflow-x: hidden; }

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.is-solid {
  background: rgba(12, 14, 18, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
}

.brand strong {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.brand span { color: var(--muted); font-size: 0.8rem; }

.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 0.9rem; }
.nav-links a:hover,
.nav-links a.is-active { color: var(--gold); }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--gold);
  padding: 6px 10px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #0c0e12 url("../img/hero.jpg") center 58% / cover no-repeat;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 14, 18, 0.58) 0%, rgba(12, 14, 18, 0.08) 46%, rgba(12, 14, 18, 0.22) 100%),
    linear-gradient(180deg, rgba(12, 14, 18, 0.22) 0%, transparent 34%, rgba(12, 14, 18, 0.9) 100%);
}

.hero-copy {
  position: relative;
  padding: 0 0 80px;
  max-width: 36rem;
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

h1, h2, h3 {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  color: #f7f1e4;
}

h3 { margin: 0 0 10px; font-size: 1.8rem; color: var(--gold); }

.lead {
  margin: 0 0 26px;
  color: #cfc6b4;
  font-size: 1.05rem;
  max-width: 26rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
}

.btn:hover { background: var(--gold-hi); color: var(--ink); }

.btn.ghost {
  background: rgba(12, 14, 18, 0.35);
  color: var(--gold);
}

.btn.ghost:hover { background: rgba(214, 170, 84, 0.12); color: var(--gold-hi); }

section { padding: 80px 0; scroll-margin-top: 68px; }

.section-head { margin: 0 0 32px; max-width: 36rem; }
.section-head h2 { margin: 0 0 8px; font-size: 2.1rem; }
.section-head p { margin: 0; color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step { padding: 24px 24px 4px 0; }
.step + .step { border-left: 1px solid var(--line); padding-left: 24px; }
.step b {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.step p { margin: 0; color: #c8c0ae; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 36px;
}

.split-photo { margin: 0; overflow: hidden; border: 1px solid var(--line); }
.split-photo img {
  width: 100%;
  height: min(420px, 56vh);
  object-fit: cover;
  object-position: center 40%;
}

.split-copy p { margin: 0 0 12px; color: #c8c0ae; }
.split-copy p:last-child { margin-bottom: 0; }

.sync {
  margin: 0 0 12px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.sync h3 { margin-bottom: 12px; }

.sync p { margin: 0 0 10px; color: #c8c0ae; }
.sync p:last-child { margin-bottom: 0; }

.tech {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.tech article {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 16px;
}

.tech b {
  display: block;
  font-family: Palatino, Georgia, serif;
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.tech p { margin: 0; color: #b7b09f; font-size: 0.92rem; }

.mono {
  font-family: Consolas, "Cascadia Mono", monospace;
  color: var(--gold-hi);
  font-size: 0.92em;
}

.note { color: var(--muted); font-size: 0.88rem; margin: 16px 0 0; }

.table-wrap { overflow: auto; border: 1px solid var(--line); background: var(--panel); }

table { width: 100%; border-collapse: collapse; min-width: 620px; }

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #2a2418;
  font-size: 0.94rem;
}

th { color: var(--gold); background: rgba(20, 18, 12, 0.7); }

.empty { color: var(--muted); padding: 28px 16px; text-align: center; }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--gold); margin: 0; }

.modal {
  position: relative;
  width: min(460px, calc(100% - 32px));
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  background: #14171e;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.modal::backdrop { background: rgba(6, 7, 10, 0.72); }

.modal h2 { margin: 0 0 12px; font-size: 1.8rem; }
.modal p { margin: 0 0 12px; color: #c8c0ae; }
.modal .actions { margin-top: 18px; }

.modal-x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-x:hover { color: var(--gold); }

@media (max-width: 900px) {
  .split,
  .steps,
  .tech { grid-template-columns: 1fr; }
  .step + .step {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }
  .split { gap: 22px; }
  .split-photo img { height: 240px; }
  .menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    right: 16px;
    top: 68px;
    background: #0c0e12;
    border: 1px solid var(--line);
    padding: 12px 16px;
    flex-direction: column;
  }
  .nav-links.open { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
