.page-home {
  --home-edge: 2px solid var(--brown);
  --home-shadow: 6px 6px 0 rgba(30, 26, 22, .9);
  --home-shadow-blue: 8px 8px 0 rgba(10, 31, 60, .85);
  --home-gap: clamp(20px, 3.4vw, 36px);
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home .home-head {
  margin-bottom: clamp(20px, 3vw, 30px);
}

.page-home .home-block--ink .section__eyebrow,
.page-home .home-block--ink .section__title,
.page-home .home-block--ink .section__lead {
  color: var(--cream);
}

.page-home .home-block--ink .section__lead {
  color: var(--silver);
}

/* ============ HERO ============ */
.page-home .home-hero {
  position: relative;
  padding: clamp(30px, 6vw, 76px) 0 clamp(36px, 6vw, 80px);
  background:
    radial-gradient(115% 85% at 88% 2%, rgba(0, 229, 255, .18), transparent 58%),
    radial-gradient(95% 80% at -5% 100%, rgba(255, 138, 61, .14), transparent 55%),
    linear-gradient(158deg, var(--ink-deep) 0%, var(--ink) 58%, var(--ink-soft) 100%);
  color: var(--cream);
  overflow: hidden;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(199, 208, 219, .05) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(199, 208, 219, .05) 0 1px, transparent 1px 88px);
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}

.page-home .home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 15px;
  border: 1px solid rgba(0, 229, 255, .42);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--cyan);
  background: rgba(0, 229, 255, .06);
}

.page-home .home-hero__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 229, 255, .5);
  animation: home-pulse 2.4s ease-out infinite;
}

@keyframes home-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, .5); }
  70% { box-shadow: 0 0 0 12px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.page-home .home-hero__title {
  margin: 20px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(36px, 8vw, 82px);
  line-height: 1.03;
  letter-spacing: -.02em;
  color: var(--cream);
}

.page-home .home-hero__mark {
  position: relative;
  display: inline-block;
  color: var(--amber);
}

.page-home .home-hero__mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: .1em;
  background: var(--cyan);
  opacity: .85;
}

.page-home .home-hero__lead {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
  color: var(--silver);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-home .home-hero__stats {
  list-style: none;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(199, 208, 219, .22);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.page-home .home-hero__num {
  font-family: var(--font-mono);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
}

.page-home .home-hero__label {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--slate);
}

/* hero collage */
.page-home .home-hero__collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .home-hero__photo {
  grid-column: 1 / -1;
  margin: 0;
  border: var(--home-edge);
  box-shadow: var(--home-shadow-blue);
  background: var(--ink-deep);
  overflow: hidden;
  transform: rotate(-.6deg);
}

.page-home .home-hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .home-hero__chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: var(--home-edge);
  font-size: 13.5px;
  font-weight: 600;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.page-home .home-hero__chip--cyan {
  background: var(--cyan);
  color: var(--ink-deep);
  box-shadow: var(--home-shadow);
}

.page-home .home-hero__chip--amber {
  background: var(--amber);
  color: var(--brown);
  box-shadow: var(--home-shadow);
  transform: translateY(8px);
}

.page-home .home-hero__chip-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  opacity: .72;
}

.page-home .home-hero__plate {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px dashed rgba(199, 208, 219, .4);
  background: rgba(6, 21, 43, .55);
}

.page-home .home-hero__plate .mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--cyan);
}

.page-home .home-hero__plate strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
}

/* ============ SHELL / RAIL ============ */
.page-home .home-shell {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(44px, 7vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.page-home .home-rail {
  border: var(--home-edge);
  background: var(--mist);
  box-shadow: var(--home-shadow);
  padding: 16px 16px 18px;
}

.page-home .home-rail .rail__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--slate);
}

.page-home .home-rail .rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-home .home-rail .rail__link {
  display: block;
  padding: 7px 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--brown);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color .24s var(--ease), border-color .24s var(--ease), background-color .24s var(--ease);
}

.page-home .home-rail .rail__link:hover,
.page-home .home-rail .rail__link:focus-visible {
  color: var(--cyan-ink);
  border-left-color: var(--amber);
  background: rgba(0, 229, 255, .1);
}

.page-home .home-rail .rail__link[aria-current="true"] {
  color: var(--cyan-ink);
  border-left-color: var(--amber);
  background: rgba(0, 229, 255, .14);
  font-weight: 700;
}

.page-home .home-rail__foot {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(30, 26, 22, .16);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--slate);
}

/* ============ BLOCKS ============ */
.page-home .home-stream {
  display: grid;
  gap: var(--home-gap);
  min-width: 0;
}

.page-home .home-block {
  padding: clamp(20px, 3.4vw, 40px);
  border: var(--home-edge);
  background: #FBF7F0;
  box-shadow: var(--home-shadow);
  min-width: 0;
}

.page-home .home-block--mist {
  background: var(--mist);
  box-shadow: var(--home-shadow-blue);
}

.page-home .home-block--ink {
  background: linear-gradient(150deg, var(--ink-deep) 0%, var(--ink) 100%);
  color: var(--cream);
  border-color: var(--brown);
  box-shadow: var(--home-shadow-blue);
}

/* ============ FLOW ============ */
.page-home .home-flow {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
}

.page-home .home-flow__figure {
  margin: 0;
  border: var(--home-edge);
  background: var(--mist);
  overflow: hidden;
}

.page-home .home-flow__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .home-flow__figure figcaption {
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--slate);
  border-top: 1px solid rgba(30, 26, 22, .14);
}

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

.page-home .home-flow__step {
  position: relative;
  padding: 18px 18px 18px 68px;
  border: var(--home-edge);
  background: var(--cream);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}

.page-home .home-flow__step:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--home-shadow);
  background: #fff;
}

.page-home .home-flow__idx {
  position: absolute;
  top: 18px;
  left: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan-ink);
  letter-spacing: .04em;
}

.page-home .home-flow__idx::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 1px;
  width: 26px;
  height: 2px;
  background: var(--amber);
}

.page-home .home-flow__step h3 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--brown);
}

.page-home .home-flow__step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: #3B3730;
}

/* ============ COVERAGE ============ */
.page-home .home-cover {
  position: relative;
}

.page-home .home-cover__bg {
  position: absolute;
  inset: -8px;
  z-index: 0;
  overflow: hidden;
}

.page-home .home-cover__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .16;
}

.page-home .home-cover__head,
.page-home .home-cover__grid,
.page-home .home-cover__note,
.page-home .home-cover__cta {
  position: relative;
  z-index: 1;
}

.page-home .home-cover__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.page-home .home-cover__node {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(199, 208, 219, .28);
  border-radius: 999px;
  font-size: 13px;
  color: var(--silver);
  transition: color .24s var(--ease), border-color .24s var(--ease), background-color .24s var(--ease);
}

.page-home .home-cover__node::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slate);
  flex: none;
}

.page-home .home-cover__node:hover {
  color: var(--cream);
  border-color: rgba(0, 229, 255, .7);
  background: rgba(0, 229, 255, .12);
}

.page-home .home-cover__node--md {
  font-size: 14px;
  border-color: rgba(199, 208, 219, .42);
}

.page-home .home-cover__node--md::before {
  background: var(--cyan);
}

.page-home .home-cover__node--lg {
  font-size: 15px;
  font-weight: 700;
  padding: 8px 15px 8px 12px;
  border-color: rgba(255, 138, 61, .55);
}

.page-home .home-cover__node--lg::before {
  width: 10px;
  height: 10px;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, .16);
}

.page-home .home-cover__note {
  margin: 22px 0 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--slate);
}

.page-home .home-cover__cta {
  margin-top: 22px;
}

/* ============ GATES ============ */
.page-home .home-gates {
  display: grid;
  gap: 16px;
}

.page-home .home-gate {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.6vw, 26px);
  text-decoration: none;
  border: var(--home-edge);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.page-home .home-gate--ink {
  background: linear-gradient(152deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: var(--cream);
  box-shadow: var(--home-shadow-blue);
}

.page-home .home-gate--cream {
  background: var(--cream);
  color: var(--brown);
  box-shadow: var(--home-shadow);
}

.page-home .home-gate:hover,
.page-home .home-gate:focus-visible {
  transform: translate(-3px, -3px);
  border-color: var(--cyan);
}

.page-home .home-gate--ink:hover {
  box-shadow: 8px 8px 0 rgba(0, 229, 255, .55);
}

.page-home .home-gate--cream:hover {
  box-shadow: 8px 8px 0 rgba(255, 138, 61, .75);
}

.page-home .home-gate__tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .13em;
  padding: 5px 10px;
  border-radius: 999px;
}

.page-home .home-gate--ink .home-gate__tag {
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, .45);
}

.page-home .home-gate--cream .home-gate__tag {
  color: var(--ink);
  border: 1px solid rgba(10, 31, 60, .4);
}

.page-home .home-gate h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.28;
}

.page-home .home-gate--ink h3 {
  color: var(--cream);
}

.page-home .home-gate p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
}

.page-home .home-gate--ink p {
  color: var(--silver);
}

.page-home .home-gate--cream p {
  color: #3B3730;
}

.page-home .home-gate__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.page-home .home-gate__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.6;
}

.page-home .home-gate__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 8px;
  height: 2px;
  background: var(--amber);
}

.page-home .home-gate--ink .home-gate__list li {
  color: var(--silver);
}

.page-home .home-gate--cream .home-gate__list li {
  color: #3B3730;
}

.page-home .home-gate__go {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  font-weight: 700;
}

.page-home .home-gate--ink .home-gate__go {
  color: var(--cyan);
}

.page-home .home-gate--cream .home-gate__go {
  color: var(--red);
}

/* ============ LOG ============ */
.page-home .home-log {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-log__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 15px 0 15px 16px;
  border-bottom: 1px solid rgba(30, 26, 22, .16);
  border-left: 3px solid var(--cyan);
  transition: border-left-color .26s var(--ease), padding-left .26s var(--ease);
}

.page-home .home-log__item:hover {
  border-left-color: var(--amber);
  padding-left: 22px;
}

.page-home .home-log__batch {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
}

.page-home .home-log__when {
  font-size: 12.5px;
  color: var(--slate);
}

.page-home .home-log__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--brown);
}

.page-home .home-log__cta {
  margin-top: 26px;
}

/* ============ CASES ============ */
.page-home .home-cases {
  display: grid;
  gap: 16px;
}

.page-home .home-case {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: var(--home-edge);
  box-shadow: 4px 4px 0 rgba(30, 26, 22, .18);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}

.page-home .home-case:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--home-shadow);
}

.page-home .home-case__media {
  overflow: hidden;
  border-bottom: var(--home-edge);
}

.page-home .home-case__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .home-case .card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.page-home .home-case .card__title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: clamp(17px, 2.1vw, 21px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--brown);
}

.page-home .home-case .card__body p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: #3B3730;
}

.page-home .home-case--lead {
  background: #FBF7F0;
}

.page-home .home-cases__cta {
  margin-top: 26px;
}

/* ============ TRUST ============ */
.page-home .home-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: clamp(22px, 3.4vw, 34px);
}

.page-home .home-trust__stat {
  padding: 16px 14px;
  border: 1px solid rgba(0, 229, 255, .32);
  background: rgba(6, 21, 43, .5);
}

.page-home .home-trust__stat .stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.15;
}

.page-home .home-trust__stat .stat__label {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--silver);
}

.page-home .home-trust__cols {
  display: grid;
  gap: 22px;
}

.page-home .home-trust__col h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--amber);
}

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

.page-home .home-trust__list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--silver);
}

.page-home .home-trust__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.page-home .home-trust__col--wide p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--silver);
}

/* ============ RESPONSIVE ============ */
@media (min-width: 720px) {
  .page-home .home-log__item {
    grid-template-columns: 108px 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
  }

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

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

@media (min-width: 880px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    align-items: center;
  }

  .page-home .home-flow {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: start;
  }

  .page-home .home-flow__figure {
    position: sticky;
    top: 96px;
  }

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

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

  .page-home .home-case--lead {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .page-home .home-case--lead .home-case__media {
    flex: 0 0 46%;
    border-bottom: 0;
    border-right: var(--home-edge);
  }

  .page-home .home-case--lead .home-case__media img {
    height: 100%;
    aspect-ratio: auto;
  }

  .page-home .home-case--lead .card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (min-width: 1000px) {
  .page-home .home-shell {
    grid-template-columns: 224px minmax(0, 1fr);
    gap: clamp(28px, 3.6vw, 52px);
  }

  .page-home .home-rail {
    position: sticky;
    top: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__pulse {
    animation: none;
  }

  .page-home .home-flow__step,
  .page-home .home-case,
  .page-home .home-gate,
  .page-home .home-log__item,
  .page-home .home-hero__chip {
    transition: none;
  }

  .page-home .home-flow__step:hover,
  .page-home .home-case:hover,
  .page-home .home-gate:hover,
  .page-home .home-gate:focus-visible {
    transform: none;
  }
}
