.page-home {
  background: var(--paper);
  color: var(--ink);
}

/* Hero */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 18%, rgba(47, 212, 198, 0.16), transparent 34%),
    linear-gradient(155deg, var(--lake-deep) 0%, #0a4a66 54%, var(--lake) 100%);
  color: var(--paper);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -18%;
  top: 8%;
  width: 62%;
  height: 120%;
  background: var(--ochre);
  opacity: 0.13;
  clip-path: polygon(38% 0, 100% 0, 62% 100%, 0 100%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -10%;
  bottom: -30%;
  width: 46%;
  height: 80%;
  border: 1px solid rgba(217, 178, 106, 0.28);
  transform: rotate(-9deg);
  pointer-events: none;
}

.page-home .home-hero__texture {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: grayscale(0.5) contrast(1.05);
  mix-blend-mode: screen;
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
}

.page-home .home-hero .breadcrumb {
  margin: 0 0 clamp(24px, 5vw, 54px);
  color: rgba(244, 241, 234, 0.68);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.page-home .home-hero .breadcrumb__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-hero .breadcrumb__item {
  color: rgba(244, 241, 234, 0.68);
}

.page-home .home-hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: end;
}

.page-home .home-hero__lead {
  min-width: 0;
}

.page-home .home-hero__kicker {
  margin: 0 0 18px;
  color: var(--sand);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(58px, 16vw, 138px);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.page-home .home-hero__line {
  display: block;
}

.page-home .home-hero__line + .home-hero__line {
  color: var(--cyan);
}

.page-home .home-hero__lede {
  max-width: 30em;
  margin: 24px 0 0;
  color: rgba(244, 241, 234, 0.84);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.8;
}

.page-home .home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  color: rgba(244, 241, 234, 0.6);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.page-home .home-hero__entries {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.page-home .home-entry {
  display: grid;
  gap: 5px;
  padding: 18px 20px 16px;
  color: var(--paper);
  text-decoration: none;
  background: rgba(244, 241, 234, 0.07);
  border: 1px solid rgba(244, 241, 234, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.page-home .home-entry:hover,
.page-home .home-entry:focus-visible {
  background: rgba(47, 212, 198, 0.13);
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.page-home .home-entry__top {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.page-home .home-entry__index {
  color: var(--sand);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.page-home .home-entry__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.page-home .home-entry__desc {
  color: rgba(244, 241, 234, 0.74);
  font-size: 14px;
  line-height: 1.65;
}

.page-home .home-entry__meta {
  margin-top: 6px;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.page-home .home-hero__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(36px, 6vw, 64px);
  padding-top: 16px;
  border-top: 1px solid rgba(244, 241, 234, 0.18);
  color: rgba(244, 241, 234, 0.54);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.page-home .home-hero__coord {
  color: var(--sand);
  font-size: 11px;
}

/* Shell and sticky index */
.page-home .home-shell {
  display: block;
}

.page-home .home-index {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  overflow-x: auto;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  scrollbar-width: none;
}

.page-home .home-index::-webkit-scrollbar {
  display: none;
}

.page-home .home-index__label {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ochre);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.page-home .home-index__nav {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.page-home .home-index__link {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 0;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .home-index__link:hover,
.page-home .home-index__link:focus-visible {
  border-color: var(--ochre);
}

.page-home .home-index__link[aria-current="true"] {
  color: var(--lake);
  border-color: var(--lake);
}

/* Sections */
.page-home .home-body {
  min-width: 0;
}

.page-home .home-section {
  padding: clamp(44px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: calc(var(--header-h) + 58px);
}

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

.page-home .home-section--ink {
  margin: 18px 0;
  padding: clamp(30px, 5vw, 54px);
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(11, 92, 138, 0.86), rgba(6, 56, 79, 0.98)),
    var(--lake-deep);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-home .home-section__head {
  max-width: 46em;
  margin-bottom: clamp(28px, 5vw, 48px);
  padding-left: 16px;
  border-left: 5px solid var(--ochre);
}

.page-home .home-section__index {
  margin: 0 0 10px;
  color: var(--ochre);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.page-home .home-section__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(30px, 5.5vw, 54px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.page-home .home-section__intro {
  max-width: 38em;
  margin: 16px 0 0;
  color: rgba(22, 36, 43, 0.78);
  font-size: 16px;
  line-height: 1.85;
}

.page-home .home-section--ink .home-section__index {
  color: var(--sand);
}

.page-home .home-section--ink .home-section__title {
  color: var(--paper);
}

.page-home .home-section--ink .home-section__intro {
  color: rgba(244, 241, 234, 0.76);
}

/* Path steps */
.page-home .path-steps {
  margin: 0 0 0 8px;
  padding: 0;
  list-style: none;
  border-left: 1px solid rgba(154, 91, 46, 0.55);
}

.page-home .path-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 30px 22px;
}

.page-home .path-step:last-child {
  padding-bottom: 0;
}

.page-home .path-step::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 13px;
  height: 13px;
  background: var(--ochre);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.page-home .path-step__index {
  color: var(--ochre);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.page-home .path-step__title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
}

.page-home .path-step__text {
  max-width: 40em;
  margin: 0;
  color: rgba(22, 36, 43, 0.72);
  font-size: 15px;
  line-height: 1.8;
}

/* Generic split */
.page-home .home-split {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

.page-home .home-split__text {
  min-width: 0;
}

.page-home .home-split__text p {
  max-width: 36em;
  margin: 16px 0;
  color: rgba(22, 36, 43, 0.76);
  font-size: 16px;
  line-height: 1.85;
}

.page-home .home-figure {
  position: relative;
  margin: 0;
  padding-top: 3px;
  background: linear-gradient(90deg, var(--ochre), var(--sand));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-home .home-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--mist);
  filter: saturate(0.72) contrast(1.02);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.page-home .home-figure__caption {
  position: absolute;
  right: 14px;
  bottom: 10px;
  padding: 3px 6px;
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.06em;
  background: rgba(6, 56, 79, 0.72);
}

.page-home .home-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 20px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.page-home .metric {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: var(--paper);
}

.page-home .metric__value {
  color: var(--lake);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.page-home .metric__label {
  color: rgba(22, 36, 43, 0.66);
  font-size: 12px;
  line-height: 1.5;
}

/* Ink section extras */
.page-home .ink-lede {
  margin: 0 0 18px;
  color: var(--paper) !important;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 400;
  line-height: 1.6;
}

.page-home .ink-note {
  color: rgba(244, 241, 234, 0.72) !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
}

.page-home .entry-structure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.page-home .entry-structure__item {
  padding: 6px 10px;
  color: var(--lake-deep);
  font-size: 12px;
  line-height: 1.4;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}

/* Vendor fields */
.page-home .vendor-fields {
  display: grid;
  gap: 1px;
  margin: 0 0 18px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.page-home .vendor-field {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: var(--paper);
}

.page-home .vendor-field__key {
  color: var(--ochre);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.page-home .vendor-field__value {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.page-home .home-note {
  color: rgba(22, 36, 43, 0.66) !important;
  font-size: 14px !important;
}

/* Service */
.page-home .proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: clamp(26px, 4vw, 40px);
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.page-home .proof {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  background: var(--mist);
}

.page-home .proof__value {
  color: var(--lake);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
}

.page-home .proof__label {
  color: rgba(22, 36, 43, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.page-home .support-grid {
  display: grid;
  gap: 18px;
}

.page-home .team-split {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--hairline);
}

.page-home .team-split__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.page-home .team-split__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .team-split__num {
  flex: 0 0 auto;
  color: var(--ochre);
  font-size: 24px;
  line-height: 1;
}

.page-home .team-split__label {
  color: rgba(22, 36, 43, 0.74);
  font-size: 14px;
  line-height: 1.5;
}

.page-home .support-panel {
  padding: 20px;
  background: var(--mist);
  border-left: 5px solid var(--ochre);
}

.page-home .support-panel__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.page-home .support-panel__list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.page-home .support-panel__list li {
  position: relative;
  padding-left: 16px;
  color: rgba(22, 36, 43, 0.76);
  font-size: 14px;
  line-height: 1.6;
}

.page-home .support-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--lake);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.page-home .support-panel__note {
  margin: 0;
  color: rgba(22, 36, 43, 0.6);
  font-size: 13px;
  line-height: 1.6;
}

.page-home .home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 26px;
}

/* Shared link styles within page */
.page-home .home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lake);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 92, 138, 0.32);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .home-link:hover,
.page-home .home-link:focus-visible {
  color: var(--ochre);
  border-color: var(--ochre);
}

.page-home .home-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 13px 18px;
  color: var(--paper);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  background: var(--ochre);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.page-home .home-cta:hover,
.page-home .home-cta:focus-visible {
  background: var(--ochre-soft);
}

.page-home .home-cta--light {
  color: var(--lake-deep);
  background: var(--cyan);
}

.page-home .home-cta--light:hover,
.page-home .home-cta--light:focus-visible {
  color: var(--lake-deep);
  background: var(--sand);
}

.page-home .home-section--ink .home-link {
  color: var(--cyan);
  border-color: rgba(47, 212, 198, 0.42);
}

.page-home .home-section--ink .home-link:hover,
.page-home .home-section--ink .home-link:focus-visible {
  color: var(--sand);
  border-color: var(--sand);
}

.page-home .section-foot {
  margin: 28px 0 0;
}

/* Responsive */
@media (min-width: 760px) {
  .page-home .home-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  }

  .page-home .home-split--reverse {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  }

  .page-home .home-split--reverse .home-figure {
    order: -1;
  }

  .page-home .support-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: start;
  }

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

@media (min-width: 980px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
  }

  .page-home .home-hero__entries {
    padding-bottom: 8px;
  }
}

@media (min-width: 1100px) {
  .page-home .home-shell {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
  }

  .page-home .home-index {
    top: calc(var(--header-h) + 28px);
    display: block;
    padding: 0;
    overflow: visible;
    background: transparent;
    border-bottom: 0;
  }

  .page-home .home-index__label {
    display: block;
    margin-bottom: 14px;
  }

  .page-home .home-index__nav {
    display: grid;
    gap: 2px;
  }

  .page-home .home-index__link {
    display: block;
    padding: 7px 0 7px 10px;
    border-width: 0 0 0 1px;
    border-color: var(--hairline);
  }

  .page-home .home-index__link:hover,
  .page-home .home-index__link:focus-visible {
    border-color: var(--ochre);
  }

  .page-home .home-index__link[aria-current="true"] {
    color: var(--lake);
    border-color: var(--lake);
    padding-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry,
  .page-home .home-index__link,
  .page-home .home-link,
  .page-home .home-cta {
    transition: none;
  }
}
