:root {
  --ink: #070705;
  --gold: #d6b15a;
  --gold-2: #f3e2ad;
  --paper: #f4efe6;
  --muted: #b7ad9c;
  --line: rgba(214, 177, 90, 0.28);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", "Segoe UI", sans-serif;
  --display: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: #050504;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  animation: site-fade 1s ease both;
}
@keyframes site-fade { from { opacity: 0; } to { opacity: 1; } }
img, h2, h3, p, figcaption, li, .svc, .platform-row, .nav-icons {
  animation: rise 0.9s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  body, img, video, h1, h2, h3, p, figcaption, li, .svc, .platform-row, .nav-icons { animation: none; }
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); }
button, input, select, textarea { font-family: inherit; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000 url("/images/space.jpg") center / cover no-repeat;
  animation: drift 80s linear infinite alternate;
}
@keyframes drift {
  from { background-position: 45% 40%; background-size: 118%; }
  to { background-position: 55% 60%; background-size: 128%; }
}
#binary {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.55));
}
.nav, main, footer { position: relative; z-index: 1; }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 48px;
  background: linear-gradient(to bottom, rgba(5,5,4,0.88), rgba(5,5,4,0));
}
.nav.solid {
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.brand img, .brand-logo { height: 48px; width: auto; }
.nav nav { display: flex; gap: 28px; align-items: center; }
.nav nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}
.nav-icons { display: inline-flex; gap: 14px; align-items: center; margin-left: 8px; }
.nav-icons a { line-height: 0; }
#links a,
#links a.nav-x,
.nav nav a:not(.has-icon) {
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  width: auto;
  height: auto;
  padding: 0;
}
#links a.has-icon,
.platform-row a.has-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  width: auto;
  height: auto;
  padding: 0;
}
#links a.has-icon img,
.platform-row a.has-icon img,
.social a.has-icon img,
.svc-icon { width: 20px; height: 20px; min-width: 20px; min-height: 20px; display: block; border: 0; background: transparent; object-fit: contain; }
.menu {
  display: none;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 92px 48px 48px;
}
.hero-copy { max-width: 760px; }
.wordmark {
  width: min(860px, 92%);
  height: auto;
  background: transparent;
  display: block;
  animation: float 5.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
}
.lede { color: var(--paper); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  border: 1px solid var(--gold);
}
.btn.gold { background: var(--gold); color: #1a1408; }
.btn.ghost { color: var(--paper); background: transparent; }
.hero-portrait {
  width: min(420px, 100%);
  justify-self: end;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--line);
}

.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(5,5,4,0.55); }
.ticker-track { display: flex; gap: 42px; padding: 12px 0; width: max-content; animation: slide 32s linear infinite; }
.ticker span { font-family: var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-2); font-size: 13px; }
@keyframes slide { to { transform: translateX(-50%); } }

section { padding: 80px 48px; }
.section-head { max-width: none; margin-bottom: 36px; }
.lede { max-width: none; color: var(--paper); font-size: 18px; }
.timeline p, .services p, .section-head p:last-child, .about p { max-width: none; }
h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-head p:last-child, .about p, .timeline p, .services p { color: var(--muted); }

.platform-row, .svc { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-row a, .svc a {
  border: 0;
  color: var(--paper);
  text-decoration: none;
  background: transparent;
}
.platform-row a, .svc a, .social a.has-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.platform-row svg, .svc svg, .social svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.svc { margin-top: 10px; }
.svc a {
  width: auto;
  height: auto;
  gap: 6px;
  padding: 6px 8px;
  color: var(--gold-2);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.svc svg { width: 20px; height: 20px; }

.sleeves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.sleeves figure { margin: 0; }
.sleeves figure > a img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }
.svc-icon, .platform-row img, .social img.svc-icon { width: 20px; height: 20px; aspect-ratio: auto; object-fit: contain; background: transparent; }
.sleeves figcaption { padding-top: 12px; }
.sleeves span {
  display: block;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
}
.sleeves strong {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.05;
}
.sleeves figure:hover img { outline: 1px solid var(--gold); }

.timeline, .services { list-style: none; margin: 0; padding: 0; }
.timeline li, .services li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.timeline span, .services span, dt {
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}
.timeline h3, .services h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 32px; font-weight: 500; }
.timeline p, .services p { margin: 0; max-width: 640px; }

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about img, .portrait { width: min(100%, 480px); justify-self: center; object-fit: cover; }
.about dl { display: grid; gap: 12px; margin: 28px 0 0; }
.about dl div { display: grid; grid-template-columns: 90px 1fr; border-top: 1px solid var(--line); padding-top: 10px; }
dd { margin: 0; }

.book form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; max-width: none; }
.book label { display: grid; gap: 6px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); }
.book .full { grid-column: 1 / -1; }
.book input, .book select, .book textarea {
  width: 100%;
  background: rgba(8,7,5,0.72);
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 12px;
  font: 15px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.book button { width: max-content; cursor: pointer; }
.form-note { grid-column: 1 / -1; color: var(--muted); margin: 0; }

main { padding-bottom: 92px; }
footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 48px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}
footer img, footer .brand-logo { height: 36px; width: auto; }
footer p { margin: 0; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; }
.social { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.social a.has-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  width: auto;
  height: auto;
}
.social a { color: var(--gold-2); letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; text-decoration: none; }

@media (max-width: 980px) {
  .hero, .about, .book form, .sleeves { grid-template-columns: 1fr 1fr; }
  .hero { align-items: center; }
}
@media (max-width: 720px) {
  .menu { display: block; }
  .nav nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 6vw 22px;
    background: #0c0b08;
    border-bottom: 1px solid var(--line);
  }
  .nav nav.open { display: flex; }
  .hero, .about, .book form, .sleeves, .timeline li, .services li { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 120px; }
  .hero-portrait { width: 100%; max-width: 420px; }
}

/* ---------- privacy notice ---------- */
html.consent-open, html.consent-open body { overflow: hidden; }
.consent-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(3, 3, 2, 0.72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: consent-in .35s ease both;
}
.consent-backdrop.consent-hide { opacity: 0; transition: opacity .3s ease; }
@keyframes consent-in { from { opacity: 0; } to { opacity: 1; } }
.consent {
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, #11100c 0%, #070705 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 26px 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(214, 177, 90, .08) inset;
  color: var(--paper);
  animation: none;
}
.consent .consent-kicker { margin: 0 0 6px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); animation: none; }
.consent h2 { margin: 0 0 10px; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--gold-2); animation: none; }
.consent p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--paper); animation: none; }
.consent p a { color: var(--gold-2); text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.consent-btn {
  min-height: 46px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.consent-decline { background: transparent; color: var(--muted); border: 1px solid rgba(183, 173, 156, .35); }
.consent-decline:hover, .consent-decline:focus-visible { color: var(--paper); border-color: var(--muted); }
.consent-accept { background: var(--gold); color: #0b0a07; border: 1px solid var(--gold); }
.consent-accept:hover, .consent-accept:focus-visible { background: var(--gold-2); border-color: var(--gold-2); }
.consent-btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
@media (max-width: 560px) {
  .consent-backdrop { align-items: flex-end; padding: 0; }
  .consent { max-width: none; border-radius: 16px 16px 0 0; border-bottom: 0; padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); }
  .consent h2 { font-size: 22px; }
  .consent-actions { flex-direction: row; }
  .consent-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .consent-backdrop { animation: none; } }

/* ---------- privacy page ---------- */
.privacy-page { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 56px 22px 40px; }
.privacy-page h1 { font-family: var(--serif); font-weight: 600; color: var(--gold-2); font-size: 38px; line-height: 1.15; margin: 0 0 8px; }
.privacy-page h2 { font-family: var(--serif); color: var(--gold); font-size: 22px; margin: 30px 0 8px; }
.privacy-page p, .privacy-page li { color: var(--paper); }
.privacy-page .back { display: inline-block; margin-bottom: 26px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.privacy-page .meta { color: var(--muted); font-size: 14px; margin: 0; }
