/* ===================================================
   page: home
   =================================================== */

.page-home {
  --ph-deep-grad: linear-gradient(150deg, var(--deep) 0%, var(--deep-dark) 66%, #04121F 100%);
  --ph-shadow-card: 0 1px 2px rgba(6, 27, 46, .08), 0 14px 30px rgba(6, 27, 46, .07);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  overflow-x: clip;
}

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

.page-home .section {
  padding: 52px 0;
}

.page-home .section--tight {
  padding: 24px 0;
}

.page-home .lede {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--ink);
  max-width: 40em;
  margin: 0 0 15px;
}

.page-home .h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 5.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--deep);
  margin: 0 0 16px;
  max-width: 20em;
}

.page-home .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--deep);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .link-arrow::after {
  content: "→";
  font-family: var(--font-mono);
}

.page-home .link-arrow:hover {
  color: var(--coral);
  border-color: var(--coral);
}

/* ---------- hero ---------- */

.page-home .hero {
  position: relative;
  isolation: isolate;
  background: var(--paper);
  padding: 18px 0 44px;
  overflow: hidden;
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

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

.page-home .hero__wedge {
  position: absolute;
  right: -10%;
  bottom: -8%;
  width: 98%;
  height: 66%;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 76% 16%, rgba(201, 162, 39, .28), transparent 62%),
    var(--ph-deep-grad);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .hero__inner {
  position: relative;
  display: grid;
  gap: 26px;
}

.page-home .hero__copy {
  padding-top: 6px;
}

.page-home .hero__title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 6.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.022em;
  color: var(--deep);
  margin: 14px 0 16px;
  max-width: 15em;
}

.page-home .hero__lead {
  font-size: clamp(1rem, 2.7vw, 1.1rem);
  line-height: 1.78;
  color: var(--ink);
  max-width: 34em;
  margin: 0 0 22px;
}

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

.page-home .hero__meta {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--stone);
}

/* hero panel */

.page-home .hero__panel {
  background: linear-gradient(168deg, var(--deep) 0%, var(--deep-dark) 100%);
  border: 1px solid var(--line-deep);
  border-radius: var(--r-md);
  box-shadow: 0 2px 6px rgba(6, 27, 46, .18), 0 26px 50px rgba(6, 27, 46, .24);
  padding: 20px;
  color: var(--gold-soft);
}

.page-home .hero__panel .panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-deep);
  margin-bottom: 14px;
}

.page-home .hero__panel .panel__title {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--paper);
}

.page-home .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  letter-spacing: .08em;
  color: var(--mint);
}

.page-home .live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(47, 191, 155, .18);
}

.page-home .hero__big .metric__label {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  color: rgba(242, 220, 155, .68);
}

.page-home .hero__big .metric__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 7.4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .01em;
  color: var(--gold);
  margin: 4px 0 2px;
}

.page-home .hero__big .metric__delta {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--mint);
}

.page-home .hero__rows {
  margin: 16px 0 18px;
  display: grid;
  gap: 9px;
}

.page-home .hero__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: .86rem;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(242, 220, 155, .16);
}

.page-home .hero__row dt {
  color: rgba(242, 220, 155, .66);
}

.page-home .hero__row dd {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: .02em;
  color: var(--paper);
}

.page-home .hero__panelBtn {
  width: 100%;
  justify-content: center;
}

/* ---------- metrics band ---------- */

.page-home .metrics {
  background: var(--deep-dark);
  border-top: 1px solid rgba(242, 220, 155, .14);
  border-bottom: 1px solid rgba(242, 220, 155, .14);
}

.page-home .metrics__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.page-home .metrics__item {
  display: block;
  text-decoration: none;
  padding-left: 12px;
  border-left: 1px solid rgba(242, 220, 155, .2);
  transition: border-color .2s var(--ease);
}

.page-home .metrics__item:hover {
  border-left-color: var(--gold);
}

.page-home .metrics__item .metric__label {
  display: block;
  font-size: .76rem;
  letter-spacing: .08em;
  color: rgba(242, 220, 155, .66);
}

.page-home .metrics__item .metric__value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 4.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--gold);
  line-height: 1.2;
}

/* ---------- grade ---------- */

.page-home .grade__inner {
  display: grid;
  gap: 30px;
}

.page-home .grade__note {
  margin: 14px 0 0;
  font-size: .82rem;
  color: var(--stone);
}

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

.page-home .ladder li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--ph-shadow-card);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.page-home .ladder li:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, .55);
}

.page-home .ladder li:nth-child(1) { margin-left: 0; }
.page-home .ladder li:nth-child(2) { margin-left: 4px; }
.page-home .ladder li:nth-child(3) { margin-left: 8px; }
.page-home .ladder li:nth-child(4) { margin-left: 12px; }
.page-home .ladder li:nth-child(5) { margin-left: 16px; }
.page-home .ladder li:nth-child(6) { margin-left: 20px; }
.page-home .ladder li:nth-child(7) { margin-left: 24px; }
.page-home .ladder li:nth-child(8) { margin-left: 28px; }
.page-home .ladder li:nth-child(9) { margin-left: 32px; }

.page-home .ladder__no {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 700;
}

.page-home .ladder li:nth-child(9) .ladder__no {
  background: var(--gold);
  color: var(--deep-dark);
}

.page-home .ladder__name {
  font-size: .94rem;
  color: var(--ink);
}

/* ---------- howto steps ---------- */

.page-home .steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .step {
  position: relative;
  overflow: hidden;
  padding: 24px 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--ph-shadow-card);
}

.page-home .step::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), rgba(255, 107, 74, 0) 78%);
}

.page-home .step__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--deep-light);
  opacity: .45;
}

.page-home .step__title {
  font-family: var(--font-head);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--deep);
  margin: 8px 0 9px;
}

.page-home .step__text {
  margin: 0;
  font-size: .93rem;
  line-height: 1.74;
  color: var(--stone);
}

/* ---------- client (deep) ---------- */

.page-home .section--deep {
  background: var(--ph-deep-grad);
  color: var(--gold-soft);
}

.page-home .section--deep .h2 {
  color: var(--paper);
}

.page-home .section--deep .lede {
  color: rgba(247, 242, 231, .82);
}

.page-home .client__inner {
  display: grid;
  gap: 30px;
}

.page-home .client__list {
  list-style: none;
  margin: 20px 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .client__list li {
  position: relative;
  padding-left: 22px;
  font-size: .95rem;
  line-height: 1.72;
  color: rgba(242, 220, 155, .86);
}

.page-home .client__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 10px;
  height: 2px;
  background: var(--gold);
}

.page-home .figure__frame {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.page-home .section--deep .figure__frame {
  border-color: var(--line-deep);
}

.page-home .figure__caption {
  margin-top: 10px;
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--stone);
}

.page-home .section--deep .figure__caption {
  color: rgba(242, 220, 155, .6);
}

/* ---------- mobile ---------- */

.page-home .mobile__inner {
  display: grid;
  gap: 30px;
}

.page-home .mobile__fig {
  margin: 0;
  max-width: 320px;
}

.page-home .quickbar {
  list-style: none;
  margin: 22px 0 24px;
  padding: 12px 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  background: var(--deep);
  border-radius: var(--r-md);
  box-shadow: 0 2px 6px rgba(6, 27, 46, .16), 0 18px 36px rgba(6, 27, 46, .16);
}

.page-home .quickbar__item {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 2px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: rgba(242, 220, 155, .7);
  transition: background .2s var(--ease), color .2s var(--ease);
}

.page-home .quickbar__item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .quickbar__label {
  font-size: .72rem;
  letter-spacing: .04em;
}

.page-home .quickbar__item:hover {
  background: rgba(201, 162, 39, .14);
  color: var(--gold);
}

.page-home .quickbar__item--on {
  color: var(--gold);
  background: rgba(201, 162, 39, .14);
}

/* ---------- trust ---------- */

.page-home .trust__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 30px;
}

.page-home .stat {
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--ph-shadow-card);
  border-top: 2px solid var(--deep-light);
}

.page-home .stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 5.4vw, 1.95rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.15;
  color: var(--deep);
}

.page-home .stat__label {
  display: block;
  margin-top: 5px;
  font-size: .82rem;
  color: var(--stone);
}

.page-home .trust__fig {
  margin: 26px 0 0;
}

/* contact box */

.page-home .contactbox {
  margin-top: 34px;
  padding: 24px 20px;
  background: var(--ph-deep-grad);
  border: 1px solid var(--line-deep);
  border-radius: var(--r-md);
  display: grid;
  gap: 22px;
  color: var(--gold-soft);
}

.page-home .contactbox__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--paper);
  margin: 0;
}

.page-home .contactbox__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.page-home .contactbox__row {
  display: grid;
  gap: 3px;
  padding-bottom: 11px;
  border-bottom: 1px dashed rgba(242, 220, 155, .16);
}

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

.page-home .contactbox__label {
  font-size: .75rem;
  letter-spacing: .1em;
  color: rgba(242, 220, 155, .58);
}

.page-home .contactbox__value {
  font-size: .94rem;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.page-home .contactbox__value--mono {
  font-family: var(--font-mono);
  letter-spacing: .02em;
}

.page-home .contactbox__note {
  margin: 0 0 16px;
  font-size: .9rem;
  line-height: 1.72;
  color: rgba(247, 242, 231, .8);
}

/* ===================================================
   responsive
   =================================================== */

@media (min-width: 620px) {
  .page-home .hero {
    padding: 26px 0 60px;
  }

  .page-home .hero__actions .btn {
    min-width: 190px;
    justify-content: center;
  }

  .page-home .contactbox {
    padding: 30px 28px;
  }
}

@media (min-width: 760px) {
  .page-home .section {
    padding: 72px 0;
  }

  .page-home .section--tight {
    padding: 28px 0;
  }

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

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

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

  .page-home .mobile__fig {
    max-width: 360px;
  }
}

@media (min-width: 900px) {
  .page-home .section {
    padding: 88px 0;
  }

  .page-home .hero {
    padding: 34px 0 92px;
  }

  .page-home .hero__wedge {
    top: -18%;
    right: -6%;
    bottom: auto;
    width: 62%;
    height: 138%;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  }

  .page-home .hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 46px;
    align-items: center;
    padding-top: 32px;
  }

  .page-home .hero__title {
    margin-top: 18px;
  }

  .page-home .hero__panel {
    padding: 26px 24px;
  }

  .page-home .grade__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
    align-items: start;
  }

  .page-home .client__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 54px;
    align-items: center;
  }

  .page-home .mobile__inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 56px;
    align-items: center;
  }

  .page-home .contactbox {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 36px;
    align-items: start;
    padding: 34px 32px;
  }
}

@media (min-width: 1180px) {
  .page-home .hero__inner {
    gap: 56px;
  }

  .page-home .hero__lead {
    max-width: 32em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ladder li,
  .page-home .quickbar__item,
  .page-home .link-arrow,
  .page-home .metrics__item {
    transition: none;
  }

  .page-home .ladder li:hover {
    transform: none;
  }
}
