:root {
  --bg: #0a0a0a;
  --bg-soft: #f5f3ef;
  --bg-cream: #efece5;
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --line: rgba(17, 17, 17, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-soft); color: var(--ink); }
body.home {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem;
  color: #fff;
  mix-blend-mode: difference;
}
.brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.875rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  line-height: 1;
}
.brand-logo {
  height: 1em;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-name {
  display: inline-block;
  line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: 1.0625rem; font-weight: 400; }
.nav-links a { opacity: 0.85; transition: opacity 150ms ease; }
.nav-links a:hover { opacity: 1; }
.nav-links a[aria-current="page"] { opacity: 1; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.nav-links a.login-btn {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.45em 1.1em;
  opacity: 1;
  line-height: 1;
  margin-left: 0.75rem;
  transition: background 150ms ease, color 150ms ease, opacity 150ms ease;
}
.nav-links a.login-btn:hover { background: currentColor; }
.nav-links a.login-btn:hover { color: var(--bg-soft); }
.nav-page .nav-links a.login-btn:hover { color: #fff; }

/* Nav on non-video pages */
.nav-page {
  position: sticky;
  background: var(--bg-soft);
  color: var(--ink);
  mix-blend-mode: normal;
  border-bottom: 1px solid var(--line);
}
.nav-page .nav-links a { opacity: 0.7; }
.nav-page .nav-links a:hover { opacity: 1; }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  padding: 0 2rem 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 6vw, 6.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: none;
}
.hero-title .ht-line {
  display: block;
  white-space: nowrap;
}
.hero-title em {
  font-style: italic;
}
.hero-sub {
  margin-top: 1.75rem;
  font-size: 1.1875rem;
  font-weight: 300;
  opacity: 0.85;
  max-width: 50ch;
  line-height: 1.45;
}
.hero-footnote {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 1.5rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
  display: flex; justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Sections */
.section {
  padding: 8rem 2rem;
  background: var(--bg-soft);
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.section-alt { background: var(--bg-cream); }
.section-dark { background: #0a0a0a; color: #f5f3ef; border-top: 1px solid var(--line-dark); }
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.section-dark .eyebrow { color: rgba(245, 243, 239, 0.55); }
.section-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-bottom: 2rem;
}
.section-body {
  font-size: 1.0625rem;
  max-width: 56ch;
  color: var(--ink-soft);
  font-weight: 400;
}
.section-dark .section-body { color: rgba(245, 243, 239, 0.85); }

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.25rem; }
  .hero-content { padding: 0 1.25rem 8rem; }
  .section { padding: 5rem 1.25rem; }
}
@media (max-width: 600px) {
  .hero-content { padding: 0 1.25rem 10rem; }
  .hero-title { font-size: clamp(1.85rem, 7.5vw, 2.5rem); }
  .hero-sub { font-size: 0.9rem; margin-top: 1rem; }
  .page-title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .vp-title { font-size: 1.25rem; }
  .vp-num { font-size: 1.25rem; }
  .lede { font-size: 1.05rem; }
  .brand { font-size: 1.15rem; white-space: nowrap; }
  .brand-logo { height: 1.15em; }
  .nav { padding: 0.85rem 1rem; }
  .nav-links { font-size: 0.9rem; gap: 1rem; flex-shrink: 0; }
  .nav-links a.login-btn { display: none; }
}

.cards {
  display: flex; flex-direction: column; gap: 2rem;
}
.card {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.card:last-child { border-bottom: none; padding-bottom: 0; }
.card h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Contact page */
.page-contact { background: var(--bg-soft); min-height: 100vh; min-height: 100dvh; }
.contact-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 2rem;
}
.contact-inner {
  text-align: center;
  max-width: 100%;
}
.contact-inner .eyebrow {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--muted);
}
.contact-phone {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: inline-block;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1em;
  transition: opacity 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}
.contact-phone:hover { opacity: 0.7; border-color: currentColor; }
@media (max-width: 600px) {
  .contact-phone { font-size: clamp(1.75rem, 9vw, 2.5rem); }
}

/* Prose / subpage layout */
.prose { background: var(--bg-soft); }
.prose-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
}
.page-hero {
  padding: 12rem 0 5rem;
}
.page-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 0.75rem 0 2rem;
}
.page-title em { font-style: italic; }
.lede {
  font-size: 1.4375rem;
  line-height: 1.5;
  max-width: 44ch;
  color: var(--ink-soft);
  font-weight: 300;
}

/* Value props */
.value-props {
  padding: 2rem 0 8rem;
  border-top: 1px solid var(--line);
}
.value-props .prose-inner { padding-top: 0; }
.vp {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 3rem;
  align-items: baseline;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}
.vp:last-child { border-bottom: none; }
.vp-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 2.75rem;
  color: var(--muted);
  line-height: 1;
  letter-spacing: 0;
}
.vp-body { max-width: 52ch; }
.vp-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1.12;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.vp-body p {
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .prose-inner { padding: 0 1.25rem; }
  .page-hero { padding: 8rem 0 3rem; }
  .vp {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 2.25rem 0;
  }
  .vp-num { font-size: 1.5rem; }
  .vp-title { font-size: 1.5rem; }
}

/* Contact */
.contact .section-title { margin-bottom: 1rem; }
.email {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15em;
  transition: opacity 150ms ease;
}
.email:hover { opacity: 0.7; }

/* Footer */
.footer {
  background: #0a0a0a;
  color: rgba(245, 243, 239, 0.55);
  padding: 2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; justify-content: space-between;
}
.footer-meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255,255,255,0.06);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; gap: 0.5rem; }
  .hero-footnote { font-size: 0.65rem; }
}
