.page-home {
  --home-pad: 5vw;
  --home-title: clamp(2.2rem, 4.6vw, 4.4rem);
  --home-rule: #2A3A57;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(circle at 82% 6%, rgba(58, 203, 176, 0.08), transparent 28%),
    radial-gradient(circle at 12% 30%, rgba(229, 182, 92, 0.05), transparent 26%),
    linear-gradient(rgba(42, 58, 87, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 58, 87, 0.16) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-position: center top;
  color: var(--paper-100);
  overflow-x: clip;
}

.page-home a:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 3px;
}

.page-home .home-layout {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 var(--home-pad) clamp(72px, 10vw, 140px);
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 8vw, 100px);
}

.page-home .home-hero {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  min-width: 0;
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line-600);
}

.page-home .home-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.page-home .home-breadcrumb {
  margin-bottom: 4px;
}

.page-home .home-hero__context {
  margin: 0;
  padding-left: 10px;
  border-left: 2px solid var(--teal-400);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--teal-400);
  text-transform: uppercase;
}

.page-home .home-hero__title {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--home-title);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--paper-100);
}

.page-home .home-hero__lead {
  max-width: 42ch;
  margin: 0;
  font-size: calc(var(--fs-body) + 1px);
  line-height: 1.85;
  color: var(--slate-300);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}

.page-home .home-hero__meta span {
  padding-left: 10px;
  border-left: 1px solid var(--line-600);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold-200);
}

.page-home .home-hero__meta span:first-child {
  padding-left: 0;
  border-left: 0;
}

.page-home .home-hero__meta span:nth-child(2) {
  color: var(--teal-400);
}

.page-home .home-hero__visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-600);
  border-radius: var(--radius-m);
  background: var(--ink-800);
}

.page-home .home-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(0.75) contrast(1.05);
}

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(7, 13, 24, 0.16), rgba(7, 13, 24, 0.9) 76%),
    repeating-linear-gradient(0deg, rgba(159, 176, 201, 0.06) 0 1px, transparent 1px 6px);
}

.page-home .home-hero__version {
  position: absolute;
  left: clamp(16px, 2.8vw, 34px);
  bottom: clamp(22px, 5vw, 44px);
  z-index: 2;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(4.2rem, 12vw, 10.5rem);
  line-height: 0.76;
  letter-spacing: -0.1em;
  color: var(--gold-200);
  text-shadow: 0 0 40px rgba(229, 182, 92, 0.16);
}

.page-home .home-hero__annotation {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(12px, 2vw, 22px);
  z-index: 3;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--slate-300);
}

.page-home .home-hero__status {
  position: absolute;
  right: clamp(12px, 2vw, 22px);
  bottom: clamp(16px, 3vw, 24px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line-600);
  border-radius: 999px;
  background: rgba(7, 13, 24, 0.72);
  color: var(--teal-400);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(4px);
}

.page-home .home-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.page-home .home-rail__label {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-600);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--slate-300);
  text-transform: uppercase;
}

.page-home .home-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line-600);
}

.page-home .home-index__link {
  display: block;
  margin-left: -1px;
  padding: 9px 0 9px 14px;
  border-left: 2px solid transparent;
  color: var(--slate-300);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: color 180ms ease-out, border-color 180ms ease-out, background 180ms ease-out;
}

.page-home .home-index__link:hover,
.page-home .home-index__link:focus-visible {
  border-left-color: var(--gold-500);
  color: var(--paper-100);
  background: linear-gradient(90deg, rgba(229, 182, 92, 0.09), transparent);
}

.page-home .home-action {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line-600);
  border-radius: var(--radius-m);
  background: var(--ink-700);
}

.page-home .home-action::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(var(--gold-500), transparent);
}

.page-home .home-action--query::before {
  background: linear-gradient(var(--teal-400), transparent);
}

.page-home .home-action__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold-500);
}

.page-home .home-action--query .home-action__eyebrow {
  color: var(--teal-400);
}

.page-home .home-action__title {
  margin: 0 0 6px;
  color: var(--paper-100);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.page-home .home-action__text {
  margin: 0 0 14px;
  color: var(--slate-300);
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-home .home-action__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  background: var(--gold-500);
  color: var(--ink-900);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.page-home .home-action--query .home-action__link {
  border: 1px solid var(--teal-400);
  background: transparent;
  color: var(--teal-400);
}

.page-home .home-action__figure {
  margin: 14px -18px -18px;
  overflow: hidden;
  border-top: 1px solid var(--line-600);
  background: var(--ink-800);
}

.page-home .home-action__img {
  display: block;
  width: 100%;
  max-height: 150px;
  height: auto;
  object-fit: cover;
  opacity: 0.78;
}

.page-home .home-rest {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 10vw, 128px);
  min-width: 0;
}

.page-home .home-section {
  min-width: 0;
  scroll-margin-top: 120px;
}

.page-home .home-section__kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold-500);
  text-transform: uppercase;
}

.page-home .home-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--paper-100);
}

.page-home .home-section__intro {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--slate-300);
  font-size: 0.98rem;
  line-height: 1.8;
}

.page-home .home-directory__band {
  margin-top: clamp(26px, 4vw, 44px);
  border-top: 1px solid var(--line-600);
  border-bottom: 1px solid var(--line-600);
}

.page-home .home-directory__figure {
  height: clamp(100px, 16vw, 170px);
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line-600);
  background: var(--ink-700);
}

.page-home .home-directory__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
}

.page-home .home-directory__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line-600);
}

.page-home .home-directory__item {
  position: relative;
  flex: 1 1 108px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px;
  background: var(--ink-800);
  color: var(--paper-100);
  text-decoration: none;
  transition: background 180ms ease-out;
}

.page-home .home-directory__item:nth-child(3n + 1) {
  flex-grow: 1.55;
}

.page-home .home-directory__item:nth-child(4n) {
  flex-grow: 0.85;
}

.page-home .home-directory__item:hover,
.page-home .home-directory__item:focus-visible {
  background: var(--ink-700);
}

.page-home .home-directory__item::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 1px;
  background: var(--gold-500);
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.page-home .home-directory__item:hover::after,
.page-home .home-directory__item:focus-visible::after {
  opacity: 1;
}

.page-home .home-directory__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold-500);
}

.page-home .home-directory__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.page-home .home-directory__note {
  margin: 14px 0 0;
  color: var(--slate-300);
  font-size: 12px;
  line-height: 1.65;
}

.page-home .home-path__steps {
  margin-top: 32px;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-600);
  background: var(--line-600);
}

.page-home .home-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
  background: var(--ink-800);
}

.page-home .home-step__num {
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--line-600);
}

.page-home .home-step:first-child .home-step__num {
  color: var(--gold-500);
}

.page-home .home-step__title {
  margin: 0;
  color: var(--paper-100);
  font-size: 1.15rem;
}

.page-home .home-step__text {
  flex: 1;
  margin: 0;
  color: var(--slate-300);
  font-size: 0.92rem;
  line-height: 1.75;
}

.page-home .home-step__link {
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  color: var(--teal-400);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
}

.page-home .home-step__link:hover,
.page-home .home-step__link:focus-visible {
  border-bottom-color: var(--teal-400);
}

.page-home .home-capability__layout {
  margin-top: 32px;
  display: grid;
  gap: 24px;
}

.page-home .home-capability__panel,
.page-home .home-industry {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line-600);
  border-radius: var(--radius-m);
  background: linear-gradient(145deg, var(--ink-700), var(--ink-800));
}

.page-home .home-capability__panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 180px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(229, 182, 92, 0.08) 0 1px, transparent 1px 18px);
  transform: rotate(-8deg);
}

.page-home .home-capability__count {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-500);
}

.page-home .home-capability__heading,
.page-home .home-industry__heading {
  margin: 0;
  color: var(--paper-100);
  font-size: 1.15rem;
  line-height: 1.4;
}

.page-home .home-capability__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-capability__item {
  padding-top: 10px;
  border-top: 1px solid var(--line-600);
}

.page-home .home-capability__name {
  display: block;
  color: var(--paper-100);
  font-size: 0.98rem;
  font-weight: 700;
}

.page-home .home-capability__desc {
  display: block;
  margin-top: 4px;
  color: var(--slate-300);
  font-size: 0.82rem;
  line-height: 1.65;
}

.page-home .home-industry {
  background: var(--ink-800);
}

.page-home .home-industry__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.page-home .home-industry__item {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-600);
}

.page-home .home-industry__item:last-child {
  border-bottom: 0;
}

.page-home .home-industry__name {
  color: var(--gold-200);
  font-size: 0.96rem;
  font-weight: 800;
}

.page-home .home-industry__desc {
  color: var(--slate-300);
  font-size: 0.84rem;
  line-height: 1.6;
}

.page-home .home-version__figure {
  margin: clamp(26px, 4vw, 40px) 0 0;
  overflow: hidden;
  border: 1px solid var(--line-600);
  border-radius: var(--radius-m);
  background: var(--ink-800);
}

.page-home .home-version__img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-version__stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-600);
  background: var(--line-600);
}

.page-home .home-stat {
  min-width: 0;
  padding: 18px 16px;
  background: var(--ink-800);
}

.page-home .home-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold-200);
}

.page-home .home-stat__label {
  display: block;
  margin-top: 8px;
  color: var(--slate-300);
  font-size: 12px;
  line-height: 1.5;
}

.page-home .home-version__commitments {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.page-home .home-commitment {
  padding: 4px 0 4px 14px;
  border-left: 2px solid var(--teal-400);
}

.page-home .home-commitment__title {
  margin: 0;
  color: var(--paper-100);
  font-size: 1rem;
}

.page-home .home-commitment__text {
  margin: 5px 0 0;
  color: var(--slate-300);
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-home .home-commitment__text a {
  color: var(--teal-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 203, 176, 0.45);
}

.page-home .home-commitment__text a:hover,
.page-home .home-commitment__text a:focus-visible {
  border-bottom-color: var(--teal-400);
}

.page-home .home-cta {
  position: relative;
  overflow: hidden;
  margin-top: clamp(40px, 7vw, 80px);
  display: grid;
  gap: 20px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line-600);
  border-radius: var(--radius-m);
  background: linear-gradient(120deg, var(--ink-700), var(--ink-900) 70%);
}

.page-home .home-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), var(--teal-400), transparent);
}

.page-home .home-cta__title {
  margin: 0;
  color: var(--paper-100);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.page-home .home-cta__text {
  max-width: 56ch;
  margin: 10px 0 0;
  color: var(--slate-300);
  font-size: 0.96rem;
  line-height: 1.75;
}

.page-home .home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 720px) {
  .page-home .home-path__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-version__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .home-version__commitments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .page-home .home-capability__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .home-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
  }

  .page-home .home-hero__visual {
    min-height: 500px;
  }

  .page-home .home-capability__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

@media (min-width: 980px) {
  .page-home .home-layout {
    display: grid;
    grid-template-columns: minmax(250px, 32%) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: clamp(30px, 4vw, 68px);
    row-gap: clamp(36px, 5vw, 72px);
  }

  .page-home .home-hero {
    grid-column: 2;
    grid-row: 1;
  }

  .page-home .home-rail {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: 104px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
  }

  .page-home .home-rest {
    grid-column: 2;
    grid-row: 2;
  }
}
