*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "onum" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-4);
  font-variation-settings: "opsz" 48;
}

h1 { font-size: var(--fs-h1); font-variation-settings: "opsz" 96; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--sp-4); max-width: 68ch; }

.shell {
  width: min(var(--max-w), calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--fs-caption);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--rr-sandstone-700);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--rr-basalt-900);
  color: var(--rr-bone-100);
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
}

.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.btn-primary { background: var(--rr-sandstone-700); color: var(--rr-bone-100); }
.btn-primary:hover { background: var(--rr-sandstone-900); }
.btn-ghost { background: transparent; color: var(--color-ink); }
.btn-ghost:hover { background: var(--color-panel); }
.btn-ghost.is-on { color: var(--rr-sandstone-700); }
.btn-line {
  background: transparent;
  color: var(--color-on-dark);
  border-color: rgba(238, 233, 224, 0.28);
}
.btn-line:hover { border-color: var(--rr-bone-100); }
.btn-circle {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--color-rule);
  background: var(--color-surface);
  color: var(--color-ink);
}
.btn-circle:hover { border-color: var(--rr-sandstone-700); color: var(--rr-sandstone-700); }
.btn-circle:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-text {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rr-sandstone-700);
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.btn-text::after { content: " →"; }

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding-top: 24px;
}

.nav-bar {
  width: min(874px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 8px 16px;
  background: rgba(238, 233, 224, 0.92);
  border: 1px solid rgba(204, 195, 175, 0.8);
  backdrop-filter: blur(16px);
}

.nav-bar.wide {
  width: min(var(--max-w), calc(100% - 64px));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand .mark {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
  display: block;
}

.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark .w1 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.wordmark .w2 {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 3px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: none;
  gap: 16px;
}

.nav-item { position: relative; }

.nav-links a,
.nav-toggle {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink);
  padding: 10px 12px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-links a:hover,
.nav-toggle:hover { color: var(--rr-sandstone-700); }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  padding: 12px;
  z-index: 30;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 10px 8px;
}

.dropdown small {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}

.nav-cta { margin-left: auto; flex: none; }
.nav-links + .nav-cta { margin-left: 0; }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-rule);
  background: var(--color-surface);
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--color-ink);
  position: relative;
  margin: 0 auto;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

/* Hero */
.hero {
  position: relative;
  min-height: max(36rem, min(820px, 78svh));
  padding-top: 140px;
  color: var(--rr-bone-100);
  display: flex;
  align-items: flex-end;
  background: transparent;
}

.hero-media {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.18) 40%, rgba(0, 0, 0, 0.72) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 0 72px;
}

.hero .kicker {
  font-family: var(--font-ui);
  font-size: var(--fs-caption);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rr-sandstone-300);
  margin-bottom: var(--sp-4);
}

.hero h1 {
  color: var(--rr-bone-100);
  font-size: var(--fs-display-1);
  font-weight: 400;
  line-height: 1.04;
  max-width: 16ch;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--rr-sandstone-300);
}

.hero .lede {
  color: var(--color-on-dark-muted);
  font-size: var(--fs-body-lg);
  max-width: 46ch;
  margin-top: var(--sp-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--sp-6);
}

/* Sections */
.section,
.section-tight {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
}
.section { padding: 120px 0; }
.section-tight { padding: 96px 0; }
.section-dark {
  background: var(--rr-basalt-900);
  color: var(--color-on-dark-muted);
  position: relative;
  z-index: 1;
}

.section-cutout {
  background: transparent;
  min-height: min(720px, 92svh);
  display: flex;
  align-items: center;
}

.section-cutout::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(720px, 68%);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.18) 62%, transparent);
  pointer-events: none;
}

.cutout-copy {
  position: relative;
  max-width: 36rem;
}

.section-cutout h2,
.section-cutout h4 {
  color: var(--rr-bone-100);
}

.section-cutout .eyebrow {
  color: var(--rr-sandstone-300);
}

.section-cutout p {
  color: var(--color-on-dark-muted);
}

.section-cutout .feature-detail {
  border-top-color: rgba(238, 233, 224, 0.18);
}

.section-cutout .btn-text {
  color: var(--rr-sandstone-300);
}

.cutout-points {
  margin-top: 48px;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--rr-bone-100); }

.section-dark .eyebrow { color: var(--rr-sandstone-300); }

.dots {
  background-image: url("../images/dots.png");
  background-repeat: repeat;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: 64px;
}

.section-head h2 {
  margin: 0;
  max-width: none;
}

.section-tools { display: flex; gap: 16px; }

/* Stories / testimonials */
.story-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 564px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.story-track::-webkit-scrollbar { display: none; }

.story-card {
  scroll-snap-align: start;
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: var(--rr-bone-100);
}

.story-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.88) 100%);
}

.story-card .copy {
  position: absolute;
  inset: auto 24px 28px;
  z-index: 1;
}

.story-card .copy h3 {
  color: var(--rr-bone-100);
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.story-card .copy p { margin: 0; color: var(--color-on-dark-muted); }

.story-card-logo {
  display: flex;
  flex-direction: column;
  background: #12100f;
}

.story-card-logo::after { display: none; }

.story-card-logo .logo-fit {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 24px 12px;
}

.story-card-logo .logo-fit img {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: calc(100% - 40px);
  object-fit: contain;
}

.story-card-logo .logo-fit span {
  font-family: var(--font-ui);
  font-size: clamp(16px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--rr-bone-100);
  line-height: 1;
}

.story-card-logo .copy {
  position: static;
  flex: none;
  padding: 0 24px 28px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: 680px 1fr 1fr;
  gap: 16px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-image {
  width: 100%;
  height: 423px;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.feature.compact .feature-image { height: 176px; }

.feature-text h3 { margin-bottom: 8px; }
.feature-text p { margin: 0; }

/* Split */
.split {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 80px;
  align-items: start;
}

.split-reverse { grid-template-columns: 536px 1fr; }

.feature-detail {
  padding: 16px 0;
  border-top: 1px solid var(--color-rule);
}

.feature-detail h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 58px;
}

.trio article {
  padding-left: 24px;
  border-left: 1px solid var(--color-rule);
}

.portrait {
  width: 100%;
  height: 720px;
  object-fit: cover;
}

.portrait-logo {
  object-fit: contain;
  background: var(--color-surface);
  padding: 80px;
}

/* Opportunities */
.opp-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
}

.opp-list { display: grid; gap: 32px; }

.opp-item {
  padding-top: 24px;
  border-top: 1px solid rgba(204, 195, 175, 0.16);
}

/* Roadmap */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.year {
  background: var(--color-panel);
  padding: 28px 24px;
  min-height: 280px;
}

.year .label {
  font-family: var(--font-ui);
  font-size: var(--fs-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rr-sandstone-700);
  margin-bottom: 16px;
}

.year ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.year li {
  padding: 8px 0;
  border-top: 1px solid var(--color-rule);
  font-family: var(--font-ui);
  font-size: var(--fs-small);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--rr-basalt-900);
  color: var(--color-on-dark-muted);
  padding: 80px 0 0;
}

.footer-cta {
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(204, 195, 175, 0.12);
}

.footer-cta h2 {
  color: var(--rr-bone-100);
  font-size: var(--fs-display-2);
  max-width: 16ch;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 80px;
  padding: 48px 0 64px;
}

.footer-brand .mark { width: 48px; height: 48px; }
.footer-brand .w1 { color: var(--rr-white); }
.footer-brand .w2 { color: var(--rr-sand-80); }
.footer-brand { display: flex; flex-direction: column; gap: 24px; }

.socials { display: flex; gap: 12px; }
.socials a {
  width: 20px;
  height: 20px;
  color: var(--rr-bone-100);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-cols h5 {
  font-family: var(--font-ui);
  font-size: var(--fs-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rr-sandstone-300);
  margin-bottom: 16px;
}

.footer-cols a {
  display: block;
  padding: 4px 0;
  font-family: var(--font-ui);
  font-size: 14px;
}

.footer-cols a:hover { color: var(--rr-bone-100); }

.legal {
  border-top: 1px solid rgba(204, 195, 175, 0.12);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-ui);
  font-size: 12px;
}

.legal nav { display: flex; gap: 16px; }

/* Inner pages */
.page-hero {
  padding: 180px 0 72px;
  background:
    linear-gradient(180deg, var(--rr-bone-200), var(--color-surface));
  border-bottom: 1px solid var(--color-rule);
}

.page-hero h1 { font-size: var(--fs-display-2); max-width: 18ch; }

.prose { padding: 80px 0 120px; }
.prose .measure { max-width: 72ch; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.panel {
  background: var(--rr-white);
  border: 1px solid var(--color-rule);
  padding: 28px 24px;
}

.panel h3 { margin-bottom: 8px; }

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
}

.about-logo {
  width: 160px;
  height: 160px;
  margin-bottom: 24px;
}

/* Form */
.form { display: grid; gap: 16px; max-width: 560px; }
label {
  display: grid;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-ink);
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--color-rule);
  background: var(--rr-white);
  padding: 12px 14px;
  border-radius: var(--r-md);
  color: var(--color-ink);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--rr-sandstone-300);
  border-color: var(--rr-sandstone-700);
}

.form-success {
  display: none;
  padding: 24px;
  background: var(--rr-sandstone-100);
  border-left: 3px solid var(--rr-sandstone-700);
}

.form-success.is-visible { display: block; }

/* Mobile overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.55);
}

.mobile-menu.is-open { display: block; }

.mobile-panel {
  margin: 16px;
  background: var(--color-surface);
  min-height: 368px;
  padding: 16px;
}

.mobile-panel a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--color-rule);
  font-family: var(--font-ui);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid .span-2 { grid-column: 1 / -1; }
  .split, .split-reverse, .opp-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait, .story-card { min-height: 420px; height: 420px; }
  .feature-image { height: 260px; }
}

@media (max-width: 820px) {
  :root { --page-gutter: 16px; }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .nav-bar { width: calc(100% - 32px); }
  .feature-grid, .card-grid, .roadmap, .trio, .footer-cols { grid-template-columns: 1fr; }
  .section, .section-tight { padding: 72px 0; }
  .hero { min-height: max(34rem, 72svh); }
  .hero-copy { padding-bottom: 40px; }
  .legal { flex-direction: column; }
  .page-hero { padding-top: 140px; }
  .about-layout { grid-template-columns: 1fr; }
}
