.group-guide {
  --display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --shell: min(1240px, calc(100% - 64px));
  --guide-space: clamp(76px, 11vw, 156px);
}

.guide-page {
  overflow-x: clip;
}

.group-guide [hidden] {
  display: none;
}

.guide-hero {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 70%, #23313f 0, transparent 68%);
}

.guide-hero-copy {
  padding-block: clamp(48px, 5vw, 72px) clamp(34px, 3vw, 46px);
  text-align: center;
}

.group-guide .eyebrow {
  color: var(--accent-ink);
  letter-spacing: .105em;
}

.guide-hero h1,
.guide-section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.063em;
  line-height: 1.02;
  text-wrap: balance;
}

.guide-hero h1 {
  margin: 18px auto 0;
  font-size: clamp(36px, 7.15vw, 96px);
}

.guide-hero em,
.guide-final em {
  color: var(--accent-ink);
  font-style: normal;
}

.guide-intro,
.guide-section-heading > p {
  max-width: 49ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
  text-wrap: pretty;
}

.guide-intro {
  max-width: 57ch;
  margin-inline: auto;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 29px;
}

.guide-hero-figure {
  margin-block: 0;
}

.guide-hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(420px, 47vw, 630px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
  background: #172530;
}

.guide-hero-backdrop,
.guide-hero-backdrop img,
.guide-hero-stage::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.guide-hero-backdrop img {
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(.78);
}

.guide-hero-stage::after {
  content: "";
  background:
    radial-gradient(ellipse at 61% 55%, transparent 25%, #0e141b4a 74%, #0e141bb0),
    linear-gradient(0deg, #0e141b91, transparent 45%);
  pointer-events: none;
}

.guide-hero-phone {
  position: relative;
  z-index: 1;
  left: 14%;
  width: clamp(214px, 23vw, 254px);
  transform: rotate(-7deg);
  filter: drop-shadow(16px 22px 24px #02070cbd);
}

.guide-hero-figure > figcaption,
.guide-step-content figcaption {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.52;
}

.guide-hero-figure > figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 12px 15px;
}

.guide-hero-figure a,
.guide-text-link {
  text-underline-offset: .35em;
}

.guide-hero-figure a:hover,
.guide-text-link:hover {
  color: var(--ink);
}

.guide-section {
  padding-block: var(--guide-space);
}

.guide-section h2 {
  max-width: 20ch;
  font-size: clamp(38px, 6vw, 82px);
}

.guide-section-heading {
  margin-bottom: clamp(30px, 4vw, 56px);
}

.guide-section h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.037em;
  font-size: clamp(23px, 2.7vw, 38px);
  text-wrap: balance;
}

.guide-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
  background: var(--surface);
}

.guide-scenarios {
  display: grid;
  grid-column: span 7;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: clamp(22px, 4vw, 56px);
  background: radial-gradient(ellipse at 0 100%, #55311d4d, transparent 68%);
}

.guide-scenarios-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guide-scenarios-top h3 {
  font-size: clamp(19px, 2vw, 26px);
}

.guide-carousel-controls {
  display: flex;
  gap: 8px;
}

.guide-carousel-controls button,
.guide-route-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-deep);
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.guide-carousel-controls button:hover,
.guide-route-control:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.guide-scenario-track {
  display: grid;
  align-items: stretch;
  align-self: center;
  gap: 20px;
  min-width: 0;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.guide-scenarios[data-enhanced] .guide-scenario-track {
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  margin: 15px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.guide-scenario-track:focus-visible {
  outline-offset: 1px;
}

.guide-scenario-track li {
  display: grid;
  align-content: center;
  padding-block: 8px;
  min-width: 0;
  scroll-snap-align: start;
}

.guide-scenario-track h4 {
  margin: 0;
  color: var(--accent-ink);
  font-family: var(--display);
  font-size: clamp(28px, 4.3vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.guide-scenario-track p,
.guide-map-card p,
.guide-step-copy p,
.guide-note p {
  max-width: 46ch;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.58;
  text-wrap: pretty;
}

.guide-carousel-position {
  margin: 0;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 12px;
}

.guide-map-card {
  display: grid;
  grid-column: span 5;
  grid-template-rows: 1fr auto;
  min-width: 0;
  margin: 0;
}

.guide-map-card img {
  width: 100%;
  height: clamp(310px, 33vw, 475px);
  border-top-right-radius: calc(var(--radius) * 2 - 1px);
  object-fit: cover;
  object-position: center 49%;
}

.guide-map-card figcaption {
  padding: clamp(20px, 3vw, 42px);
  border-top: 1px solid var(--line-soft);
}

.guide-map-card h3 {
  font-size: clamp(22px, 2.4vw, 32px);
}

.guide-map-card p {
  margin-top: 7px;
  font-size: 17px;
}

.guide-route {
  border-block: 1px solid var(--line);
  background: var(--surface-deep);
}

.guide-route-shell {
  display: flex;
  min-height: 75px;
  align-items: center;
  gap: 16px;
}

.guide-route-window {
  width: 100%;
  overflow: hidden;
}

.guide-route-track {
  display: flex;
  width: max-content;
  max-width: 100%;
  font-family: var(--mono);
  font-size: clamp(11px, 1.55vw, 18px);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-route-track p {
  margin: 0;
}

.guide-route-track span {
  margin-inline: clamp(.15em, 1.2vw, 1em);
  color: var(--accent-ink);
}

.guide-route-track .guide-route-repeat {
  display: none;
}

.guide-route-control {
  flex: none;
  font-size: 15px;
}

.guide-route[data-animated] .guide-route-window {
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.guide-route[data-animated] .guide-route-track {
  max-width: none;
  white-space: nowrap;
  animation: guide-route-slide 32s linear infinite;
  animation-play-state: paused;
}

.guide-route[data-animated] .guide-route-track p {
  display: block;
  min-width: var(--shell);
  padding-inline: clamp(14px, 7vw, 115px);
}

.guide-route[data-playing] .guide-route-track {
  animation-play-state: running;
}

@keyframes guide-route-slide {
  to { transform: translateX(-50%); }
}

.guide-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
  background: var(--surface);
}

.guide-step + .guide-step {
  border-top: 1px solid var(--line);
}

.guide-step-trigger {
  display: flex;
  align-items: center;
  min-height: 56px;
  width: 100%;
  gap: 11px;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: background .24s ease, color .24s ease;
}

.guide-step-trigger:focus-visible {
  position: relative;
  outline-offset: -5px;
  z-index: 1;
}

.guide-step-trigger:hover {
  background: var(--surface-hover);
}

.guide-step-trigger[aria-expanded="true"] {
  color: var(--accent-ink);
  background: var(--surface-deep);
}

.guide-step-index {
  color: var(--accent-ink);
}

.guide-step-plus {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  margin-left: auto;
  width: 26px;
  height: 26px;
}

.guide-step-plus::before,
.guide-step-plus::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 1px;
  background: currentColor;
}

.guide-step-plus::after {
  transform: rotate(90deg);
  transition: transform .24s ease;
}

.guide-step-trigger[aria-expanded="true"] .guide-step-plus::after {
  transform: rotate(0deg);
}

.guide-step-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  padding: clamp(22px, 4.2vw, 62px);
  background:
    radial-gradient(ellipse at 77% 53%, #2d4259 0, transparent 57%),
    var(--surface);
}

.guide-steps[data-enhanced] .guide-step-content:not([hidden]) {
  animation: guide-step-enter .36s ease both;
}

@keyframes guide-step-enter {
  from { opacity: .65; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.guide-step-content figure {
  justify-self: center;
  width: min(100%, 220px);
  margin: 0;
  text-align: center;
}

.guide-step-content img {
  width: 100%;
  filter: drop-shadow(8px 12px 12px #070b12a8);
}

.guide-step-content figcaption {
  margin-top: 7px;
}

.guide-step-copy strong,
.guide-note strong {
  color: var(--ink);
  font-weight: 600;
}

.guide-value {
  border-block: 1px solid var(--line);
  background: radial-gradient(ellipse at 82% 92%, #32251e, transparent 65%), var(--surface-deep);
}

.guide-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
  background: var(--line);
  gap: 1px;
}

.guide-value-card {
  padding: clamp(22px, 3vw, 44px);
  background: var(--surface);
}

.guide-value-card h3 {
  color: var(--accent-ink);
  font-size: clamp(23px, 2.65vw, 36px);
}

.guide-value-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 820px) {
  .guide-value-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.guide-privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  align-items: start;
  gap: clamp(26px, 6vw, 92px);
}

.guide-privacy .guide-section-heading {
  margin: 0;
}

.guide-text-link {
  display: inline-block;
  margin-top: 19px;
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
}

.guide-notes {
  display: grid;
  gap: 12px;
}

.guide-note-inner {
  padding: clamp(22px, 3.2vw, 44px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
  background: var(--surface-raised);
}

.guide-note:nth-child(2) .guide-note-inner {
  background: #242a34;
}

.guide-note:nth-child(3) .guide-note-inner {
  background: #292e37;
}

.guide-note h3 {
  font-size: clamp(22px, 2.3vw, 30px);
}

.guide-final {
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 100%, #402b21, transparent 66%), var(--surface-deep);
}

.guide-final-inner {
  display: grid;
  justify-items: center;
  gap: 26px;
  text-align: center;
}

.guide-final-inner > img {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 34px var(--shadow);
}

@media (min-width: 901px) {
  .guide-steps[data-enhanced] {
    display: flex;
    min-height: 500px;
    overflow: hidden;
  }

  .guide-steps[data-enhanced] .guide-step {
    display: flex;
    flex: 0 0 66px;
    min-width: 0;
    overflow: hidden;
    transition: flex-basis .36s cubic-bezier(.2, .75, .25, 1);
  }

  .guide-steps[data-enhanced] .guide-step.is-active {
    flex-basis: calc(100% - 132px);
  }

  .guide-steps[data-enhanced] .guide-step + .guide-step {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .guide-step-trigger {
    flex: 0 0 65px;
    flex-direction: column;
    gap: 18px;
    padding: 24px 0;
  }

  .guide-step-label {
    writing-mode: vertical-rl;
    letter-spacing: .05em;
    text-transform: uppercase;
  }

  .guide-step-plus {
    margin: auto 0 0;
  }

  .guide-step-content {
    flex: 1 0 calc(min(1240px, 100vw - 64px) - 199px);
    min-width: 0;
  }
}

@media (max-width: 1180px) {
  .group-guide .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .group-guide .nav-links {
    position: static;
    display: flex;
    gap: 16px;
    padding: 0;
    border: 0;
  }

  .group-guide .nav-links a {
    padding: 6px 0;
    border: 0;
  }
}

@media (max-width: 820px) {
  .group-guide {
    --shell: min(720px, calc(100% - 32px));
  }

  .guide-bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-scenarios,
  .guide-map-card {
    grid-column: span 1;
    border-right: 0;
  }

  .guide-map-card {
    border-top: 1px solid var(--line);
  }

  .guide-map-card img {
    height: auto;
    aspect-ratio: 5 / 6;
    max-height: 480px;
    border-radius: 0;
  }

  .guide-privacy {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .guide-hero-stage {
    min-height: clamp(350px, 102vw, 440px);
  }

  .guide-hero-phone {
    left: 11%;
    width: min(44vw, 214px);
  }
}

@media (max-width: 520px) {
  .group-guide {
    --shell: calc(100% - 24px);
  }

  .group-guide .nav .brand-copy small {
    display: none;
  }

  .group-guide .nav-links {
    gap: 12px;
  }

  .group-guide .nav-links a {
    padding-block: 14px;
    font-family: var(--display);
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    white-space: nowrap;
  }

  .guide-hero h1 {
    font-size: clamp(35px, 8.2vw, 43px);
  }

  .guide-hero-figure > figcaption {
    gap: 2px 15px;
    font-size: 10px;
  }

  .guide-step-content {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 26px;
  }

  .guide-step-content figure {
    width: min(61%, 200px);
  }

  .guide-route-shell {
    min-height: 64px;
  }
}

@media (max-width: 359px) {
  .group-guide .nav {
    gap: 8px;
  }

  .group-guide .nav .brand {
    gap: 6px;
  }

  .group-guide .nav .brand img {
    width: 32px;
    height: 32px;
  }

  .group-guide .nav-links {
    gap: 9px;
  }
}
