:root {
  --bg: #f3f4f5;
  --ink: #111318;
  --muted: #646b76;
  --soft: #e8eaed;
  --line: rgba(17, 19, 24, 0.12);
  --dark: #08090b;
  --dark-2: #14171c;
  --white: #ffffff;
  --gold: #ffc400;
  --gold-dark: #b98900;
  --shadow: 0 28px 80px rgba(13, 18, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1160px, calc(100% - 28px));
  min-height: 58px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(10, 11, 14, 0.68);
  color: var(--white);
  transform: translateX(-50%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(10, 11, 14, 0.84);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-logo {
  width: 128px;
  height: 42px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
  transition: color 160ms ease;
}

.main-nav a:hover {
  color: var(--white);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.login-link:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-action {
  padding: 0 18px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.82rem;
}

.chapter {
  position: relative;
  min-height: 100vh;
  padding: 118px max(20px, calc((100vw - 1120px) / 2));
}

.hero {
  min-height: 100vh;
  overflow: hidden;
  padding: 0;
  background: var(--dark);
  color: var(--white);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 5, 7, 0.9) 0%, rgba(4, 5, 7, 0.64) 42%, rgba(4, 5, 7, 0.14) 78%),
    linear-gradient(180deg, rgba(4, 5, 7, 0.08), rgba(4, 5, 7, 0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  padding: 150px 0 250px;
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(2.75rem, 5.15vw, 4.85rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  line-height: 1.18;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.04rem, 2vw, 1.34rem);
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-width: 172px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  cursor: pointer;
}

.button-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(255, 196, 0, 0.22);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.46);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.hero-strip {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 28px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  transform: none;
  backdrop-filter: blur(20px);
}

.hero-strip div {
  min-height: 130px;
  padding: 24px;
  background: rgba(10, 11, 14, 0.62);
}

.hero-strip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1rem;
}

.hero-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.chapter-inner {
  display: grid;
  min-height: calc(100vh - 236px);
  align-content: center;
  max-width: 980px;
}

.problem {
  background: var(--bg);
}

.problem p,
.diagnostic-panel p,
.service-card p,
.timeline p,
.experience-panel span,
.contact-copy p {
  color: var(--muted);
  font-size: 1.03rem;
}

.problem .chapter-inner p {
  max-width: 850px;
  font-size: clamp(1.1rem, 2vw, 1.36rem);
}

.split-layout,
.experience-grid,
.contact {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
}

.diagnostic {
  background: #e9ebee;
}

.diagnostic-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.diagnostic-panel ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.diagnostic-panel li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.services {
  background: var(--bg);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 42px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(13, 18, 28, 0.08);
}

.service-card span {
  display: inline-block;
  margin-bottom: 70px;
  color: var(--gold-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.method {
  background: var(--dark);
  color: var(--white);
}

.method .section-kicker {
  color: var(--gold);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.timeline article {
  min-height: 320px;
  padding: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.045);
}

.timeline span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 70px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
}

.timeline p {
  color: rgba(255, 255, 255, 0.68);
}

.outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  background: #f7f7f8;
}

.outcome-list {
  display: grid;
  gap: 0;
}

.outcome-list p {
  padding: 22px 0;
  margin: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.outcome-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.experience {
  background: #e7e9ec;
}

.experience-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.experience-panel div {
  min-height: 132px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
}

.experience-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.contact {
  background: var(--dark-2);
  color: var(--white);
}

.contact-copy {
  max-width: 720px;
}

.contact-card {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.contact-card p {
  display: grid;
  gap: 8px;
  padding: 26px;
  margin: 0;
  background: rgba(255, 255, 255, 0.055);
}

.contact-card strong {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card a {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(20px, calc((100vw - 1120px) / 2));
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .chapter {
    min-height: auto;
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .hero-content {
    padding-top: 138px;
  }

  .hero-strip,
  .split-layout,
  .service-grid,
  .timeline,
  .outcomes,
  .experience-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(100% - 40px, 1120px);
    margin: -190px auto 28px;
    transform: none;
  }

  .chapter-inner {
    min-height: auto;
  }

  .service-card,
  .timeline article {
    min-height: 0;
  }

  .service-card span,
  .timeline span {
    margin-bottom: 42px;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .hero-content {
    padding: 118px 0 220px;
  }

  h1 {
    max-width: 900px;
    font-size: clamp(2.65rem, 4.6vw, 4.35rem);
  }

  .hero-copy {
    max-width: 660px;
    margin-bottom: 26px;
    font-size: 1.05rem;
  }

  .hero-strip {
    bottom: 20px;
  }

  .hero-strip div {
    min-height: 106px;
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 8px;
  }

  .brand span {
    display: none;
  }

  .brand-logo {
    width: 112px;
  }

  .nav-action {
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .login-link {
    min-height: 40px;
    padding: 0 11px;
    font-size: 0.76rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-media img {
    object-position: 62% center;
  }

  .hero-content {
    width: calc(100% - 28px);
    padding: 126px 0 268px;
  }

  h1 {
    font-size: clamp(2.72rem, 12vw, 4.15rem);
  }

  .hero-strip,
  .chapter {
    width: auto;
  }

  .chapter {
    padding-left: 14px;
    padding-right: 14px;
  }

  .diagnostic-panel,
  .service-card,
  .experience-panel div,
  .contact-card p {
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}
