.resources-main {
  position: relative;
  z-index: 2;
}

.journey-shell {
  padding: clamp(20px, 2.5vw, 30px) var(--site-gutter) clamp(72px, 8vw, 104px);
}

.journey-inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.credibility-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.52);
  box-shadow: 0 16px 40px rgba(27,58,91,.1), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.credibility-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(27,58,91,.08);
  border: 1px solid rgba(255,255,255,.64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 8px 20px rgba(27,58,91,.08);
}

.credibility-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.credibility-panel h2 {
  margin: 0 0 3px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 500;
  line-height: 1.15;
}

.credibility-panel p {
  max-width: 720px;
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
}

.credibility-panel a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.credibility-panel a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.journey-intro {
  max-width: 720px;
  margin: clamp(48px, 6vw, 72px) 0 30px;
}

.journey-intro h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.06;
}

.journey-intro p {
  margin: 10px 0 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

.journey-stage {
  position: relative;
  padding: clamp(30px, 4vw, 46px) 0;
  border-top: 1px solid rgba(27,58,91,.16);
}

.stage-heading {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}

.stage-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 20px rgba(27,58,91,.08);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.stage-heading h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.1;
}

.stage-heading p {
  max-width: 660px;
  margin: 6px 0 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.55;
}

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

.journey-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card {
  position: relative;
  min-width: 0;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.56);
  box-shadow:
    0 20px 52px rgba(27,58,91,.12),
    inset 0 1px 0 rgba(255,255,255,.86),
    inset 0 -1px 0 rgba(27,58,91,.08);
  backdrop-filter: blur(18px) saturate(132%);
  -webkit-backdrop-filter: blur(18px) saturate(132%);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.38), rgba(255,255,255,0) 46%, rgba(27,58,91,.04));
}

.tool-card > * {
  position: relative;
  z-index: 1;
}

.tool-card:hover {
  z-index: 1;
  transform: translateY(-3px);
  background: rgba(255,255,255,.26);
  border-color: rgba(255,255,255,.86);
  box-shadow: 0 26px 62px rgba(27,58,91,.16), inset 0 1px 0 rgba(255,255,255,.92);
}

.tool-card:focus-visible,
.credibility-panel a:focus-visible {
  outline: 3px solid rgba(27,58,91,.42);
  outline-offset: 4px;
}

.tool-icon {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--accent);
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.82), rgba(255,255,255,.12) 44%),
    rgba(27,58,91,.08);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow:
    0 10px 22px rgba(27,58,91,.1),
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -1px 0 rgba(27,58,91,.08);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.tool-icon::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -30%;
  width: 78%;
  height: 110%;
  background: linear-gradient(115deg, rgba(255,255,255,.5), rgba(255,255,255,0));
  transform: rotate(14deg);
  pointer-events: none;
}

.tool-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.tool-card h3 {
  max-width: 17ch;
  margin: 22px 0 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.08;
}

.tool-card__question {
  margin: 11px 0 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
}

.tool-card__method {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(27,58,91,.12);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.55;
}

.tool-card__cta {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.tool-card__cta::after {
  content: "→";
  transition: transform 180ms ease;
}

.tool-card:hover .tool-card__cta::after {
  transform: translateX(3px);
}

.tool-card--destination {
  min-height: 280px;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.72);
}

.tool-card--destination h3 {
  max-width: none;
  font-size: clamp(32px, 4vw, 46px);
}

.tool-card--destination .tool-card__question {
  max-width: 640px;
  font-size: 16px;
}

.tool-card--destination .tool-card__method {
  max-width: 640px;
}

.destination-mark {
  color: rgba(27,58,91,.18);
  font-family: var(--serif);
  font-size: clamp(54px, 8vw, 94px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1;
  white-space: nowrap;
}

.tool-card--request {
  border-style: dashed;
  background: rgba(255,255,255,.1);
}

.tool-card--request .tool-icon {
  color: var(--sage);
  background: rgba(93,127,110,.1);
}

@media (max-width: 860px) {
  .journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-stage--stabilize .tool-card:last-child {
    grid-column: 1 / -1;
  }

  .tool-card--destination {
    grid-template-columns: 1fr;
  }

  .destination-mark {
    position: absolute;
    right: 24px;
    bottom: 24px;
    opacity: .58;
  }
}

@media (max-width: 640px) {
  .journey-shell {
    padding: 18px 18px max(72px, env(safe-area-inset-bottom));
  }

  .credibility-panel {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .credibility-panel a {
    grid-column: 2;
    min-height: 36px;
  }

  .journey-intro {
    margin-top: 42px;
  }

  .stage-heading {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
  }

  .stage-number {
    width: 36px;
    height: 36px;
  }

  .journey-grid,
  .journey-grid--two {
    grid-template-columns: 1fr;
  }

  .journey-stage--stabilize .tool-card:last-child,
  .tool-card--destination {
    grid-column: auto;
  }

  .tool-card {
    min-height: 286px;
    padding: 22px;
  }

  .tool-card--destination {
    min-height: 330px;
    padding: 26px 22px;
  }

  .destination-mark {
    right: 18px;
    bottom: 20px;
    font-size: 58px;
  }
}

@media (max-width: 380px) {
  .journey-shell {
    padding-inline: 14px;
  }

  .credibility-mark {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card,
  .tool-card__cta::after {
    transition: none;
  }

  .tool-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .credibility-panel,
  .tool-card,
  .tool-icon {
    background: rgba(250,250,247,.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
