/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #55524A;
  --text-faint: #8A8677;
  --accent: #DA7756;
  --accent-dark: #BE6142;
  --accent-ink: #1A1410;
  --border: #E1DDD0;
  --header-bg: #111110;
  --header-text: #F4F2ED;
  --header-text-muted: #8A8880;
  --header-border: #3A3834;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Subtle film-grain overlay for tactile depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 720px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

section {
  padding: clamp(64px, 10vw, 128px) 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--header-text);
}

.logo span { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--header-text-muted);
}

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

.nav-cta {
  color: var(--header-text);
  background: transparent;
  border: 1px solid var(--header-border);
  padding: 8px 16px;
  border-radius: 4px;
}

.nav-cta:hover { background: rgba(244, 242, 237, 0.08); border-color: var(--header-text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
}

.hero-actions {
  margin-top: 40px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(96px, 14vw, 160px);
  padding-bottom: clamp(80px, 12vw, 140px);
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 600;
  max-width: 900px;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.hero-sub {
  margin-top: 28px;
  max-width: 640px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.hero-diagram {
  display: none;
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 225px;
  color: var(--accent);
  opacity: 0.4;
  pointer-events: none;
}

.hero-diagram svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 1320px) {
  .hero-diagram { display: block; }
}

/* ---------- Problem ---------- */
.problem h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 24px;
}

.problem p {
  font-size: 18px;
  color: var(--text-muted);
}

/* ---------- Route diagram ---------- */
.route-diagram {
  position: relative;
  margin-top: 40px;
  padding: 76px 32px;
  background: #111110;
  border-radius: 8px;
}

.route-points {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.route-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-1px);
  border-top: 1.5px dashed #5F5E5A;
}

.waypoint {
  position: relative;
  display: flex;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
}

.waypoint-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  color: #F4F2ED;
  transition: color 0.35s ease;
}

.waypoint-label-top {
  bottom: calc(100% + 14px);
  font-weight: 600;
}

.waypoint-label-bottom {
  top: calc(100% + 14px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A8880;
}

.waypoint-dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #B8B6AE;
  flex-shrink: 0;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.waypoint-final .waypoint-dot {
  width: 16px;
  height: 16px;
  background: var(--accent);
}

.waypoint-final .waypoint-label,
.waypoint-final .waypoint-label-bottom {
  color: var(--accent);
}

/* Dimmed state, applied only once JS confirms it can animate the reveal */
.route-diagram.js-anim .waypoint:not(.is-active) .waypoint-dot {
  background: #5F5E5A;
}

.route-diagram.js-anim .waypoint:not(.is-active).waypoint-final .waypoint-dot {
  box-shadow: none;
}

.route-diagram.js-anim .waypoint:not(.is-active) .waypoint-label,
.route-diagram.js-anim .waypoint:not(.is-active) .waypoint-label-bottom {
  color: #8A8880;
}

@media (max-width: 700px) {
  .route-diagram {
    padding: 64px 12px;
  }

  .waypoint-label {
    width: 82px;
  }

  .waypoint-label-top {
    font-size: 11px;
    bottom: calc(100% + 12px);
  }

  .waypoint-label-bottom {
    font-size: 9px;
    top: calc(100% + 12px);
  }
}

/* ---------- How it works ---------- */
.how-it-works h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  max-width: 640px;
  margin-bottom: 56px;
}

.phase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.phase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.phase-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.phase-card h3 {
  font-size: 22px;
  margin-top: 10px;
  margin-bottom: 24px;
  color: var(--text);
}

.phase-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.phase-list li {
  font-size: 15px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.phase-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.phase-list strong {
  color: var(--text);
  font-weight: 600;
}

.phase-output {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.phase-output strong { color: var(--accent); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
}

.about-photo {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.about-headshot {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--accent);
  filter: grayscale(0.5) contrast(1.02);
}

.about-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.about-linkedin svg {
  width: 18px;
  height: 18px;
}

.about-linkedin:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.about-copy h2 {
  font-size: clamp(24px, 3vw, 32px);
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--text);
}

.about-copy p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 20px;
  max-width: 620px;
}

.about-copy p:last-child { margin-bottom: 0; }

.about-copy strong { color: var(--text); font-weight: 600; }

.pull-quote {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  max-width: 560px;
}

.pull-quote p {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--accent);
  margin: 0;
  max-width: none;
}

/* ---------- Who this is for ---------- */
.fit h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 32px;
}

.fit-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.fit-list li {
  font-size: 18px;
  padding-left: 32px;
  position: relative;
  color: var(--text);
}

.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
}

.fit-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 9px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
}

.fit-note {
  color: var(--text-muted);
  font-size: 15px;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}

/* ---------- FAQ ---------- */
.faq h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 40px;
  max-width: 560px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 620px;
}

/* ---------- Terms ---------- */
.terms h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  color: var(--text);
  margin-bottom: 24px;
}

.terms h2 span {
  font-size: 0.35em;
  color: var(--text-muted);
  font-family: var(--sans);
  font-weight: 500;
}

.terms-note {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
}

.cost-compare {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  height: 200px;
  margin: 48px 0 20px;
  max-width: 420px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  height: 100%;
  text-align: center;
}

.bar-value {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.bar {
  width: 100%;
  max-width: 84px;
  background: #3A3834;
  border-radius: 3px 3px 0 0;
}

.bar-accent {
  background: var(--accent);
}

.bar-label {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.cost-compare-note {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
}

.cost-compare-footnote {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 560px;
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
}

.contact h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  max-width: 640px;
  margin: 0 auto;
}

.contact .hero-actions {
  display: flex;
  justify-content: center;
}

.contact-links {
  margin-top: 32px;
  font-size: 15px;
  color: var(--text-muted);
}

.contact-links a:hover { color: var(--accent); }

.divider {
  margin: 0 12px;
  color: var(--text-faint);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
}

.site-footer p {
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .phase-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-photo {
    position: static;
    max-width: 220px;
  }

  .about-headshot {
    max-width: 220px;
  }
}

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  section {
    padding: 56px 0;
  }

  .phase-card {
    padding: 28px;
  }
}
