@font-face {
  font-family: Inter;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'),
       url('../fonts/Inter.ttf') format('truetype');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'),
       url('../fonts/Inter.ttf') format('truetype');
  font-weight: 600 750;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('../fonts/inter-latin-800-normal.woff2') format('woff2'),
       url('../fonts/Inter.ttf') format('truetype');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Display';
  src: url('../fonts/dm-serif-display-latin-400-normal.woff2') format('woff2'),
       url('../fonts/DMSerifDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000000;
  --paper: #FFFFFF;
  --accent: #FB761F;
  --ink-muted: rgba(0, 0, 0, 0.72);
  --paper-muted: rgba(255, 255, 255, 0.78);
  --rule-dark: rgba(0, 0, 0, 0.18);
  --rule-light: rgba(255, 255, 255, 0.22);
  --measure: 1180px;
  --text-heading: clamp(2.15rem, 3.4vw, 3.15rem);
  --text-body: 1.0625rem;
  --text-sm: 0.875rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: var(--text-body);
  line-height: 1.62;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
figure,
ul,
ol,
blockquote {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.24em;
  text-decoration-thickness: 1px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: min(var(--measure), calc(100% - 4rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header: seamless borderless bleed at y=0, crisp separation on scroll */
.ht-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease);
}

.ht-site-header.is-scrolled {
  border-bottom-color: var(--rule-light);
}

.ht-site-header .ht-chrome-inner,
.ht-site-footer .ht-chrome-inner {
  width: min(var(--measure), calc(100% - 4rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.ht-site-header .ht-chrome-inner {
  min-height: 84px;
  padding-block: 0.5rem;
}

.ht-site-header .wordmark {
  display: block;
  flex-shrink: 0;
  padding: 12px 0;
  text-decoration: none;
}

.ht-site-header .wordmark img {
  width: 204px;
  height: auto;
}

.ht-header-bar {
  display: contents;
}

.ht-menu-toggle {
  display: none;
}

.ht-site-header nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.5rem;
}

.ht-site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms var(--ease);
}

.ht-site-header nav a:hover {
  color: var(--accent);
}

/* Hero: Monumental centered headline + wide interactive stage */
.hero-stage {
  background: linear-gradient(to bottom, var(--ink) 0%, var(--ink) 56%, var(--paper) 56%, var(--paper) 100%);
  padding-top: clamp(2.25rem, 5vw, 4.25rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.hero-head {
  text-align: center;
  color: var(--paper);
  max-width: 58rem;
  margin-inline: auto;
  padding-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

.hero-head h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.1rem, 7vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-head h1 .hero-accent {
  color: var(--accent);
}

.hero-lead {
  font-size: var(--text-body);
  color: var(--paper-muted);
  max-width: 44ch;
  margin: 1.5rem auto 0;
  line-height: 1.58;
}

.hero-cta-wrap {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* Primary CTA Button (one per content section) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.75rem;
  background: var(--accent);
  color: var(--ink);
  border: 1px solid var(--accent);
  font-family: Inter, Arial, sans-serif;
  font-size: var(--text-body);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.btn-primary:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary--ink:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-size: var(--text-body);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}

.text-link:hover {
  color: var(--accent);
}

/* Interactive 5-Agent Workbench */
.workbench {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 1px var(--rule-light);
}

.agent-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.agent-tab {
  appearance: none;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-right: 1px solid var(--rule-dark);
  border-bottom: 3px solid transparent;
  padding: 1.05rem 1rem;
  text-align: left;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.agent-tab:last-child {
  border-right: 0;
}

.agent-tab:hover {
  background: var(--ink);
  color: var(--paper);
}

.agent-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: var(--accent);
}

.agent-tab-name {
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.25;
}

.agent-tab-price {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.3;
}

.agent-tab:hover .agent-tab-price,
.agent-tab[aria-selected="true"] .agent-tab-price {
  color: var(--accent);
}

.workbench-panel {
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
}

.workbench-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 1.5rem 3rem;
  align-items: end;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule-dark);
}

.workbench-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: var(--text-heading);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.workbench-desc {
  margin-top: 0.65rem;
  max-width: 56ch;
  color: var(--ink-muted);
}

.workbench-pricing {
  text-align: right;
}

.workbench-price-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-heading);
  line-height: 1;
}

.workbench-price-note {
  margin-top: 0.35rem;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.workbench-io {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  padding-top: 1.75rem;
  align-items: start;
}

.io-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 0.65rem;
}

.io-input p {
  max-width: 48ch;
}

.io-boundary {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-dark);
  font-size: var(--text-sm);
  color: var(--ink-muted);
  max-width: 48ch;
}

.io-output {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
}

.io-output-greeting {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-body);
  font-weight: 400;
  margin-bottom: 0.85rem;
}

.io-output-list {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.io-output-list li {
  margin-bottom: 0.45rem;
  max-width: 54ch;
}

.io-output-next {
  font-weight: 700;
  max-width: 54ch;
}

.workbench-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  padding: 1.5rem clamp(1.5rem, 3.2vw, 2.5rem);
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.workbench-foot h3 {
  font-size: var(--text-body);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.workbench-foot p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  max-width: 36ch;
}

.workbench-meta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

/* Shared Section Typography */
.section {
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section--light {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--rule-dark);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem 3.5rem;
  align-items: end;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.section-header h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: var(--text-heading);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-header p {
  max-width: 52ch;
}

.section--dark .section-header p {
  color: var(--paper-muted);
}

.section--light .section-header p {
  color: var(--ink-muted);
}

/* Sermon Economy */
.sermon-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem 4rem;
  align-items: start;
}

.rhythm-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule-light);
}

.rhythm-list li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule-light);
  align-items: baseline;
}

.rhythm-list strong {
  color: var(--accent);
  font-weight: 700;
}

.sermon-price-block {
  margin-top: 2rem;
}

.sermon-price {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-heading);
  line-height: 1.05;
  color: var(--paper);
}

.sermon-price-caption {
  margin-top: 0.65rem;
  color: var(--paper-muted);
  max-width: 50ch;
}

.sermon-cta {
  margin-top: 1.75rem;
}

.sermon-media video {
  width: 100%;
  max-height: 460px;
  background: var(--ink);
  border: 1px solid var(--rule-light);
}

.sermon-media-caption {
  margin-top: 1rem;
  font-size: var(--text-sm);
  color: var(--paper-muted);
  max-width: 52ch;
}

.sermon-links {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}

/* Orange Chromatic Method Band */
.method-band {
  background: var(--accent);
  color: var(--ink);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.method-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.method-label {
  font-size: var(--text-sm);
  font-weight: 700;
}

.method-steps {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-heading);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* Course Ledger */
.course-ledger {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.course-ledger li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 1rem 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule-dark);
  align-items: baseline;
}

.session-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
}

.course-ledger h3 {
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.35;
}

.course-ledger p {
  color: var(--ink-muted);
  max-width: 54ch;
}

.course-footer {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}

.course-footer p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  max-width: 54ch;
}

.course-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

/* Builder + Organization Pathways */
.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 2.5rem 4rem;
  align-items: start;
}

.builder-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 10%;
  border-bottom: 5px solid var(--accent);
}

.builder-portrait figcaption {
  margin-top: 0.9rem;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.builder-portrait strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-body);
}

.builder-content h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: var(--text-heading);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.builder-bio {
  margin-top: 1.25rem;
  max-width: 54ch;
  color: var(--ink-muted);
}

.pathways {
  margin-top: 2.5rem;
  border-top: 1px solid var(--ink);
}

.pathway-item {
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule-dark);
}

.pathway-item h3 {
  font-family: Inter, Arial, sans-serif;
  font-size: var(--text-body);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.pathway-item p {
  color: var(--ink-muted);
  max-width: 54ch;
}

.pathway-item .text-link {
  margin-top: 0.5rem;
}

/* Closing Chromatic Band */
.closing-band {
  background: var(--accent);
  color: var(--ink);
  padding-block: clamp(3.75rem, 6vw, 5.25rem);
}

.closing-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem 3rem;
}

.closing-copy h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: var(--text-heading);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.closing-copy p {
  margin-top: 1rem;
  max-width: 48ch;
}

.closing-phone {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 700;
}

/* Footer */
.ht-site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 2.25rem;
  border-top: 1px solid var(--rule-light);
}

.ht-site-footer .ht-chrome-inner {
  flex-wrap: wrap;
  align-items: flex-start;
}

.ht-footer-name {
  font-size: var(--text-body);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.ht-footer-sub {
  font-size: var(--text-sm);
  color: var(--paper-muted);
}

.ht-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.35rem;
}

.ht-site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.ht-site-footer nav a:hover {
  color: var(--accent);
}

/* Mobile Sticky Action Bar */
.mobile-action {
  display: none;
}

/* Entrance motion: visible at rest, subtle lift when supported */
@keyframes riseIn {
  from {
    opacity: 0.01;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-head h1,
.hero-lead,
.hero-cta-wrap {
  animation: riseIn 480ms var(--ease) both;
}

.hero-lead {
  animation-delay: 70ms;
}

.hero-cta-wrap {
  animation-delay: 130ms;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .agent-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-tab {
    border-bottom: 1px solid var(--rule-dark);
  }

  .agent-tab:nth-child(2n) {
    border-right: 0;
  }

  .agent-tab:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .workbench-summary,
  .workbench-io,
  .workbench-foot,
  .section-header,
  .sermon-grid,
  .builder-layout {
    grid-template-columns: 1fr;
  }

  .workbench-pricing {
    text-align: left;
  }

  .course-ledger li {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

@media (max-width: 760px) {
  .wrap,
  .ht-site-header .ht-chrome-inner,
  .ht-site-footer .ht-chrome-inner {
    width: calc(100% - 2.5rem);
  }

  .ht-site-header.ht-nav-ready .ht-chrome-inner {
    min-height: 68px;
    padding-block: 0;
    gap: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .ht-site-header.ht-nav-ready .ht-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
    width: 100%;
  }

  .ht-site-header.ht-nav-ready .wordmark {
    padding: 12px 0;
  }

  .ht-site-header.ht-nav-ready .wordmark img {
    width: 158px;
  }

  .ht-site-header.ht-nav-ready .ht-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.45rem 0.85rem;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--paper);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    transition: color 160ms var(--ease), border-color 160ms var(--ease);
  }

  .ht-site-header.ht-nav-ready .ht-menu-toggle:hover,
  .ht-site-header.ht-nav-ready.ht-nav-open .ht-menu-toggle {
    border-color: var(--accent);
    color: var(--accent);
  }

  .ht-site-header.ht-nav-ready nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--rule-light);
    padding: 0.25rem 0 0.75rem;
  }

  .ht-site-header.ht-nav-ready.ht-nav-open nav {
    display: flex;
  }

  .ht-site-header.ht-nav-ready nav a {
    width: 100%;
    min-height: 48px;
    font-size: var(--text-body);
    border-bottom: 1px solid var(--rule-light);
    justify-content: flex-start;
  }

  .ht-site-header.ht-nav-ready nav a:last-child {
    border-bottom: 0;
  }

  .hero-stage {
    background: linear-gradient(to bottom, var(--ink) 0%, var(--ink) 42%, var(--paper) 42%, var(--paper) 100%);
  }

  .hero-head h1 {
    font-size: clamp(2.5rem, 11vw, 3.6rem);
  }

  .io-output {
    padding-left: 1rem;
  }

  .rhythm-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .builder-portrait img {
    max-width: 360px;
  }

  .mobile-action {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 0.75rem 1.25rem max(0.75rem, env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--ink);
    transition: transform 200ms var(--ease), opacity 200ms var(--ease);
  }

  .mobile-action.is-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }

  .mobile-action .btn-primary {
    width: 100%;
  }

  body:has(.mobile-action) {
    padding-bottom: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
