/* ============ Tokens ============ */
:root {
  --bg: #ffffff;
  --fg: #102a43;
  --muted: #52606d;
  --border: rgba(16, 42, 67, 0.12);
  --surface: #eef2f6;
  --accent: #2563a6;
  --accent-dark: #1d4f87;
  --accent-foreground: #ffffff;
  --band-bg: #f3f6fa;
  --band-fg: #102a43;
  --band-muted: #52606d;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
p { line-height: 1.6; color: var(--muted); margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 640px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 14px;
}
.eyebrow-light { color: var(--accent); }

.section { padding: 120px 0; }
@media (max-width: 640px) { .section { padding: 72px 0; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-foreground); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary-inverse { background: var(--fg); color: #ffffff; margin-top: 8px; }
.btn-primary-inverse:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--fg); }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.logo-mark { width: 26px; height: auto; flex-shrink: 0; }
.wordmark { height: 18px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.nav-links a { color: var(--fg); opacity: 0.75; transition: opacity 0.15s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  opacity: 1 !important;
  background: var(--fg);
  color: var(--bg) !important;
  padding: 7px 16px;
  border-radius: 980px;
}
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--fg); display: block; }
.nav-mobile { display: none; flex-direction: column; padding: 12px 24px 20px; border-top: 1px solid var(--border); }
.nav-mobile a { padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 52px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(37,99,166,0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  z-index: 0;
}
.hero-bird {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: min(50vw, 520px);
  height: auto;
  opacity: 0.07;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; padding: 0 24px; }
.hero h1 {
  font-size: clamp(48px, 9vw, 96px);
  margin: 0 0 20px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-signature {
  height: 48px;
  width: auto;
  display: block;
  margin: 20px auto 0;
}
.hero-signature-lg {
  height: clamp(56px, 11vw, 120px);
  margin: 8px auto 0;
}
.hero-sub {
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--muted);
  max-width: 620px;
  margin: 24px auto 40px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-cue span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--border), transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.hero-content.reveal { transition-delay: 0.1s; }

/* ============ About ============ */
.two-col {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 12px 4px 0;
}
.about h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; }
.lead { font-size: 18px; color: var(--fg); }
.sig-image { height: 52px; width: auto; margin-top: 24px; display: block; }

/* ============ Placeholder blocks ============ */
.placeholder-block, .placeholder-block-sm {
  background:
    repeating-linear-gradient(45deg, var(--surface), var(--surface) 10px, #ebebee 10px, #ebebee 20px);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.placeholder-label, .placeholder-label-sm {
  font-family: var(--font-mono);
  color: var(--muted);
  padding: 16px;
  font-size: 12px;
  background: rgba(255,255,255,0.85);
  border-radius: 8px;
}
.placeholder-block-sm { border-radius: 12px; }

/* ============ Xonorate mission ============ */
.xonorate-section {
  background: var(--band-bg);
  color: var(--band-fg);
}
.light-h2 {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 780px;
  margin-bottom: 56px;
  color: var(--band-fg);
}
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 860px) { .mission-grid { grid-template-columns: 1fr; } }
.mission-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.06), 0 8px 24px -12px rgba(16, 42, 67, 0.12);
}
.mission-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
}
.mission-card h3 { color: var(--band-fg); font-size: 20px; margin: 12px 0 10px; }
.mission-card p { color: var(--band-muted); margin: 0; }
.role-line { color: var(--band-muted); font-size: 16px; margin-bottom: 8px; }

/* ============ Book ============ */
.book { background: var(--band-bg); }
.book-layout { grid-template-columns: 0.75fr 1.25fr; }
.book-cover-wrap { display: flex; justify-content: center; }
.book-cover {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 24px 48px -12px rgba(16, 42, 67, 0.25), 0 4px 12px rgba(16, 42, 67, 0.12);
}
.book h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; }
.book-cta { margin-top: 8px; }
.book-formats {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 0;
}

/* ============ Press ============ */
.press h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 48px; }
.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
}
@media (max-width: 700px) { .press-grid { grid-template-columns: 1fr; } }
.press-item { text-align: left; display: block; padding: 16px; margin: -16px; border-radius: 12px; transition: background 0.15s ease; }
.press-item:hover { background: var(--surface); }
.press-logo { height: 40px; width: 160px; margin-bottom: 16px; display: flex; align-items: center; }
.press-logo img { max-height: 100%; max-width: 100%; object-fit: contain; object-position: left center; }
.press-quote { font-size: 15px; font-style: italic; color: var(--fg); }
.press-note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ============ Contact ============ */
.contact { background: var(--surface); }
.contact h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 16px; }
.contact-form { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: 13px; font-weight: 600; color: var(--fg); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.hidden-field { position: absolute; left: -9999px; }
.btn-submit { align-self: flex-start; margin-top: 8px; border: none; }

/* ============ Footer ============ */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--fg); }
.footer-copy { display: inline-flex; align-items: center; gap: 6px; }
.footer-signature { height: 16px; width: auto; opacity: 0.85; }
.social-icons { display: flex; align-items: center; gap: 16px; }
.social-icons a { color: var(--muted); display: flex; transition: color 0.15s; }
.social-icons a:hover { color: var(--accent); }
.social-icons svg { width: 18px; height: 18px; }
