:root {
  --bg: #0b0c0e;
  --surface: #131519;
  --text: #e8e6e1;
  --muted: #8b8f98;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #c9a96e;
  --gutter: max(6vw, 28px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Flush left against a consistent page gutter; the measure of each
   text block is capped individually rather than by a centered column. */
.wrap {
  margin: 0;
  padding: 0 24px 0 var(--gutter);
  text-align: left;
}

header {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.mark {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

/* ---------- Home hero ---------- */

main {
  position: relative;
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  padding: 96px 0;
  overflow: hidden;
}

main .wrap {
  position: relative;
  z-index: 1;
}

/* Soft gold bloom behind the globe */
main.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: max(4vw, 24px);
  width: min(34vw, 400px);
  aspect-ratio: 1;
  transform: translateY(-50%) scale(1.6);
  background: radial-gradient(circle, rgba(201, 169, 110, 0.09) 0%, rgba(201, 169, 110, 0) 65%);
  pointer-events: none;
}

.globe {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: max(4vw, 24px);
  width: min(34vw, 400px);
  aspect-ratio: 1;
  animation: float 7s ease-in-out infinite;
  pointer-events: none;
}

.globe canvas {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes float {
  0%, 100% { transform: translateY(calc(-50% - 14px)); }
  50% { transform: translateY(calc(-50% + 14px)); }
}

@media (prefers-reduced-motion: reduce) {
  .globe { animation: none; transform: translateY(-50%); }
}

@media (max-width: 1080px) {
  .globe {
    right: 50%;
    transform: translate(50%, -50%);
    width: min(80vw, 400px);
    opacity: 0.22;
    animation: none;
  }

  main.hero::after { display: none; }
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.kicker::after {
  content: "";
  flex: 0 0 56px;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
}

h1 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  max-width: 20ch;
}

.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 52ch;
}

/* Entrance */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.reveal:nth-child(2) { animation-delay: 0.1s; }
.reveal:nth-child(3) { animation-delay: 0.2s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ---------- Legal pages ---------- */

main.legal {
  display: block;
  min-height: 0;
  padding: 72px 0 96px;
  overflow: visible;
}

.legal h1 {
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 12px;
  max-width: 24ch;
}

.legal .updated {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 44px;
}

.legal section {
  max-width: 68ch;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 16px;
}

.legal p + p {
  margin-top: 14px;
}

.legal ul {
  margin: 14px 0 0 20px;
}

.legal li + li {
  margin-top: 8px;
}

.legal li::marker {
  color: var(--accent);
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 110, 0.35);
}

.legal a:hover {
  border-bottom-color: var(--accent);
}

/* ---------- Footer ---------- */

footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
}

footer .wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px 40px;
  flex-wrap: wrap;
}

footer p {
  font-size: 13px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--text);
}
