/**
 * Homepage story pass — process journey, bottleneck system, selected work, about, finale.
 */

/* —— Hero audit text link (tertiary) —— */
.hero__audit-link {
  margin: 0.9rem 0 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(211, 197, 173, 0.78);
}

.hero__audit-link button,
.hero__audit-link a {
  color: rgba(242, 202, 80, 0.92);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.hero__audit-link button:hover,
.hero__audit-link button:focus-visible,
.hero__audit-link a:hover,
.hero__audit-link a:focus-visible {
  color: var(--color-primary, #f2ca50);
}

/* —— Transition line —— */
.home-story-bridge {
  padding-block: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}

.home-story-bridge__text {
  margin: 0 auto;
  max-width: 36rem;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: rgba(242, 242, 240, 0.88);
}

/* —— Bottleneck / connected system —— */
.home-bottleneck {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.home-bottleneck__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max, 72rem);
  margin-inline: auto;
}

.home-bottleneck__title {
  margin: 0.55rem 0 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  color: var(--color-on-background);
  max-width: 28ch;
}

.home-bottleneck__lede {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-on-surface-variant);
}

.home-bottleneck__prompt {
  margin: 0 0 0.35rem;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 202, 80, 0.78);
}

.home-bottleneck__guide {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(242, 242, 240, 0.86);
}

.home-system {
  --sys-line: rgba(242, 202, 80, 0.35);
  display: grid;
  gap: 0.85rem;
  margin: 0 0 2rem;
  justify-items: center;
  text-align: center;
}

.home-system__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(153, 144, 124, 0.32);
  background: rgba(16, 17, 16, 0.72);
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 242, 240, 0.82);
}

.home-system__hub {
  border-color: rgba(242, 202, 80, 0.5);
  background:
    linear-gradient(160deg, rgba(40, 36, 22, 0.85), rgba(12, 13, 12, 0.95));
  color: var(--color-primary);
  font-size: 0.78rem;
  min-width: min(100%, 18rem);
  box-shadow: 0 0 0 1px rgba(242, 202, 80, 0.12), 0 18px 40px rgba(0, 0, 0, 0.28);
}

.home-system__ops {
  border-style: dashed;
  color: rgba(211, 197, 173, 0.8);
}

.home-system__flow {
  display: none;
  color: rgba(242, 202, 80, 0.55);
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .home-system {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto auto auto;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.75rem;
  }

  .home-system__north {
    grid-column: 2;
    grid-row: 1;
  }

  .home-system__west {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }

  .home-system__hub {
    grid-column: 2;
    grid-row: 2;
  }

  .home-system__east {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
  }

  .home-system__south {
    grid-column: 2;
    grid-row: 3;
  }

  .home-system__ops {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .home-system__flow {
    display: block;
  }

  .home-system__flow--nw {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    align-self: end;
  }

  .home-system__flow--ne {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    align-self: end;
  }
}

.home-service-cats {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .home-service-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .home-service-cats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.home-service-cat {
  margin: 0;
  min-height: 100%;
}

.home-service-cat__trigger {
  width: 100%;
  height: 100%;
  min-height: 100%;
  text-align: left;
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid rgba(153, 144, 124, 0.3);
  background: rgba(14, 15, 14, 0.78);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.home-service-cat__trigger:hover,
.home-service-cat__trigger:focus-visible {
  border-color: rgba(242, 202, 80, 0.55);
  background: rgba(22, 22, 20, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(242, 202, 80, 0.12);
  outline: none;
}

.home-service-cat__trigger:focus-visible {
  box-shadow: 0 0 0 2px rgba(242, 202, 80, 0.4), 0 10px 28px rgba(0, 0, 0, 0.28);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-service-cat__trigger:hover {
    transform: translateY(-2px);
  }
}

.home-service-cat__icon {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 202, 80, 0.28);
  color: var(--color-primary);
  font-size: 1rem;
}

.home-service-cat__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--color-on-background);
}

.home-service-cat__blurb {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-on-surface-variant);
}

.home-service-cat__hint {
  margin-top: 0.35rem;
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 202, 80, 0.72);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.home-service-cat__trigger:hover .home-service-cat__hint,
.home-service-cat__trigger:focus-visible .home-service-cat__hint {
  opacity: 1;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .home-service-cat__hint {
    opacity: 0.85;
  }
}

.home-bottleneck {
  padding-bottom: clamp(3rem, 7vh, 4.5rem);
}

.home-bottleneck__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
}

#process {
  padding-top: clamp(3rem, 7vh, 4.5rem);
}

/* Service category modal */
.service-cat-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 1rem;
}

.service-cat-modal.is-open {
  display: grid;
}

.service-cat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 6, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.service-cat-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  max-height: min(88vh, 40rem);
  overflow: auto;
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid rgba(153, 144, 124, 0.35);
  background: linear-gradient(165deg, rgba(22, 23, 22, 0.98), rgba(10, 11, 10, 0.99));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(242, 202, 80, 0.08);
  transform: translateY(0.6rem) scale(0.985);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.service-cat-modal.is-visible .service-cat-modal__backdrop {
  opacity: 1;
}

.service-cat-modal.is-visible .service-cat-modal__dialog {
  opacity: 1;
  transform: none;
}

.service-cat-modal__close {
  position: sticky;
  top: 0;
  float: right;
  margin: -0.25rem -0.25rem 0.5rem 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(153, 144, 124, 0.35);
  background: rgba(14, 15, 14, 0.9);
  color: var(--color-on-background);
  cursor: pointer;
}

.service-cat-modal__close:focus-visible {
  outline: 2px solid rgba(242, 202, 80, 0.55);
  outline-offset: 2px;
}

.service-cat-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 202, 80, 0.75);
}

.service-cat-modal__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 650;
  color: var(--color-on-background);
}

.service-cat-modal__summary {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-on-surface-variant);
}

.service-cat-modal__block {
  margin: 0 0 0.95rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(153, 144, 124, 0.25);
}

.service-cat-modal__block h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 202, 80, 0.7);
}

.service-cat-modal__block p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(242, 242, 240, 0.88);
}

.service-cat-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

html.service-cat-modal-open,
body.service-cat-modal-open {
  overflow: hidden;
}

body.service-cat-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

@media (max-width: 640px) {
  .service-cat-modal {
    padding: 0;
    align-items: end;
  }

  .service-cat-modal__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 1rem 1rem 0 0;
    padding: 1.15rem 1.1rem 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-cat-modal__backdrop,
  .service-cat-modal__dialog,
  .home-service-cat__trigger {
    transition: none;
  }
}

.home-bottleneck__help {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: rgba(211, 197, 173, 0.82);
}

.home-bottleneck__help a {
  color: rgba(242, 202, 80, 0.95);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

/* —— Selected work —— */
.home-work {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.home-work__groups {
  display: grid;
  gap: 2rem;
  margin-top: 1.75rem;
}

.home-work__label {
  margin: 0 0 0.85rem;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 202, 80, 0.8);
}

.home-work__note {
  margin: 0;
  max-width: 36rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-on-surface-variant);
}

.home-work__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .home-work__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-work__card {
  display: grid;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(153, 144, 124, 0.28);
  background: rgba(12, 13, 12, 0.72);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.home-work__card:hover,
.home-work__card:focus-visible {
  border-color: rgba(242, 202, 80, 0.45);
  outline: none;
}

.home-work__card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.home-work__card-body {
  padding: 0 0.95rem 1rem;
}

.home-work__card-meta {
  margin: 0 0 0.35rem;
  font-family: var(--font-label);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(211, 197, 173, 0.7);
}

.home-work__card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 650;
}

.home-work__card-text {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-on-surface-variant);
}

.home-work__cta {
  margin-top: 1.75rem;
}

/* —— Process journey —— */
.home-process-journey {
  --pj-gold: rgba(242, 202, 80, 0.65);
  margin: 2.25rem 0 0;
  position: relative;
}

.home-process-journey__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.home-process-journey__track {
  position: absolute;
  left: 1.15rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: rgba(153, 144, 124, 0.28);
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
}

.home-process-journey__progress {
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, rgba(242, 202, 80, 0.2), var(--pj-gold));
  transform-origin: top;
  transition: height 0.6s ease;
}

.home-process-journey__step {
  position: relative;
  padding: 0 0 1.75rem 3rem;
}

.home-process-journey__step:last-child {
  padding-bottom: 0;
}

.home-process-journey__dot {
  position: absolute;
  left: 0.7rem;
  top: 0.35rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  border: 2px solid rgba(153, 144, 124, 0.55);
  background: #0c0d0c;
  box-shadow: 0 0 0 4px rgba(8, 9, 8, 0.85);
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.home-process-journey__step.is-active .home-process-journey__dot,
.home-process-journey__step.is-complete .home-process-journey__dot {
  border-color: var(--color-primary);
  background: rgba(242, 202, 80, 0.35);
  box-shadow: 0 0 0 4px rgba(8, 9, 8, 0.85), 0 0 18px rgba(242, 202, 80, 0.25);
}

.home-process-journey__cue {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 202, 80, 0.72);
}

.home-process-journey__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 650;
}

.home-process-journey__text {
  margin: 0;
  max-width: 36rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-on-surface-variant);
}

.home-process-journey__cats {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.home-process-journey__cats a {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
}

.home-process-journey__cats a:hover,
.home-process-journey__cats a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.home-process-journey__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin: 2rem 0 0;
}

.home-finale__guide-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.home-finale__guide-link:hover,
.home-finale__guide-link:focus-visible {
  color: var(--color-primary-container, #f2ca50);
  outline: none;
}

@media (min-width: 960px) {
  .home-process-journey__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 2.75rem;
  }

  .home-process-journey__track {
    left: 6%;
    right: 6%;
    top: 1.05rem;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .home-process-journey__progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(242, 202, 80, 0.2), var(--pj-gold));
    transition: width 0.7s ease;
  }

  .home-process-journey__step {
    padding: 2.25rem 0.25rem 0;
  }

  .home-process-journey__dot {
    left: 50%;
    top: 0.7rem;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-process-journey__progress {
    transition: none;
  }

  .home-process-journey__step.is-complete .home-process-journey__dot,
  .home-process-journey__step.is-active .home-process-journey__dot {
    box-shadow: 0 0 0 4px rgba(8, 9, 8, 0.85);
  }
}

/* —— Evergreen about —— */
.home-about {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.home-about__inner {
  max-width: 40rem;
}

.home-about__title {
  margin: 0.55rem 0 0.85rem;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.home-about__text {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--color-on-surface-variant);
}

/* —— Final CTA —— */
.home-finale {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  text-align: center;
}

.home-finale__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 50% 20%, rgba(242, 202, 80, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 45% at 50% 90%, rgba(0, 0, 0, 0.4), transparent 65%);
}

.home-finale__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin-inline: auto;
}

.home-finale__title {
  margin: 0.55rem 0 0.85rem;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.15;
}

.home-finale__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.home-finale__help {
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  color: rgba(211, 197, 173, 0.82);
}

.home-finale__help a {
  color: rgba(242, 202, 80, 0.95);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
