:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-dark: #000000;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-on-dark: #f5f5f7;
  --text-muted-on-dark: #a1a1a6;
  --accent: #45a9ff;
  --accent-hover: #6bbbff;
  --line: rgba(0, 0, 0, 0.08);
  --line-dark: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --max: 1120px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; color: var(--text-secondary); }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.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;
}

/* Header — dark so C-logo black square reads as intentional */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: var(--text-on-dark); text-decoration: none;
}
.brand:hover { color: var(--text-on-dark); }
.brand-logo {
  width: 40px; height: 40px;
  display: block;
  /* exact file dimensions preserved — no crop/filter/recolor */
  object-fit: contain;
  border-radius: 0;
}
.brand-text {
  font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em;
}
.nav-links {
  display: flex; align-items: center; gap: 0.25rem; list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text-muted-on-dark);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav-cta {
  margin-left: 0.35rem !important;
  background: var(--accent) !important;
  color: #000 !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; color: #000 !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; border-radius: 10px;
  background: transparent; color: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(0, 0, 0, 0.97);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
  }
  .nav-cta { margin-left: 0 !important; text-align: center; }
  .brand-text { display: none; }
  body.nav-open { overflow: hidden; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  background: #000 center/cover no-repeat;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.72) 100%);
  z-index: -1;
}
.hero-inner { padding: 5rem 0 4rem; max-width: 720px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #fff;
  margin-bottom: 0.75rem;
}
.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.82);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}
.hero-roles {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border-radius: 980px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); color: #000; }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #222; color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.18);
}
.btn-outline:hover { background: var(--bg-soft); color: var(--text); }

/* Sections */
.section { padding: 5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background: #000;
  color: var(--text-on-dark);
}
.section-dark p { color: var(--text-muted-on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}
.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .split-media { order: -1; }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 1.75rem; }
  .split.reverse .split-media { order: 0; }
}
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; aspect-ratio: 1/1; }
.split-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.split-copy .lede { font-size: 1.05rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.section-dark .card {
  background: #111;
  border-color: var(--line-dark);
}
.card-media { aspect-ratio: 16/10; overflow: hidden; background: #0a0a0a; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 0.4rem; color: inherit; }
.card-body p { flex: 1; }
.card-body .btn { align-self: flex-start; margin-top: 0.5rem; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}
.feature-list strong { display: block; color: var(--text); margin-bottom: 0.35rem; }
.feature-list span { color: var(--text-secondary); font-size: 0.95rem; }

/* Books */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}
.book {
  text-align: left;
}
.book-cover {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  background: #eee;
  margin-bottom: 0.75rem;
  aspect-ratio: 2/3;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book h3 { font-size: 0.98rem; margin: 0 0 0.25rem; }
.book p { font-size: 0.85rem; margin: 0 0 0.5rem; }
.book a.buy { font-size: 0.85rem; font-weight: 600; }

.book-featured {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 640px) {
  .book-featured { grid-template-columns: 1fr; }
  .book-featured .book-cover { max-width: 180px; }
}

/* Forms */
.form-wrap {
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1rem; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
input, textarea, select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(69, 169, 255, 0.2);
}
textarea { min-height: 140px; resize: vertical; }
.form-status {
  display: none;
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
}
.form-status.is-ok { display: block; background: #e8f8ef; color: #0b5c2e; }
.form-status.is-err { display: block; background: #fdeeee; color: #8a1f1f; }
.form-status.is-pending { display: block; background: #eef5ff; color: #1a4d8c; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.faq { display: grid; gap: 0.75rem; margin-top: 2rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.faq p { margin: 0.75rem 0 0; }

/* Page hero (inner) */
.page-hero {
  background: #000;
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: #fff;
  max-width: 18ch;
}
.page-hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  max-width: 38rem;
  margin: 0;
}

/* Footer */
.site-footer {
  background: #000;
  color: var(--text-muted-on-dark);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: #fff; margin-bottom: 1rem;
}
.footer-brand img { width: 36px; height: 36px; object-fit: contain; }
.footer-brand strong { font-size: 1rem; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.85rem; }
.site-footer a { color: var(--text-muted-on-dark); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.cta-band {
  background: linear-gradient(135deg, #0a0a0a 0%, #132033 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { color: #fff; margin: 0 0 0.4rem; font-size: 1.6rem; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; max-width: 32rem; }

.note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-top: 1.5rem;
}
