:root {
  --gutter: clamp(18px, 5vw, 34px);
  --pad: clamp(42px, 9.5vw, 65px);
}

.studio h2,
.contact h2 {
  font-size: clamp(2.55rem, 11.5vw, 4.3rem);
  line-height: 0.95;
  text-wrap: balance;
}

.studio p:not(.kicker),
.studio .intro,
.hero-copy > p {
  font-size: clamp(0.875rem, 3.9vw, 1rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.enhanced.pages > article[hidden] {
  display: none !important;
}

.mast-layout {
  gap: 7px;
}

.mast-layout :is(.menu-toggle, .mast-contact),
.footer-layout > a:last-child {
  min-block-size: 44px;
}

.mast-layout .menu-toggle {
  padding-inline: 6px;
}

.mast-layout .mast-contact {
  padding-inline: 9px;
}

.mast-layout nav {
  width: 100%;
  display: grid;
  gap: 0;
}

.js-nav nav {
  gap: 0;
  padding-block: 4px 14px;
  box-shadow: 0 20px 24px -16px #2b102f45;
}

.js-nav nav:not(.open) {
  display: none;
}

.js-nav nav.open {
  display: grid;
}

.mast-layout nav a {
  display: flex;
  align-items: center;
  min-block-size: 46px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
  font:
    500 1rem/1.2 Outfit,
    sans-serif;
}

.mast-layout nav a:focus-visible {
  outline-offset: -2px;
}

@media (max-width: 385px) {
  .mast-layout {
    gap: 4px;
  }
  .mast-layout .menu-toggle {
    padding-inline: 3px;
  }
  .mast-layout .mast-contact {
    padding-inline: 8px;
  }
}

@media (max-width: 650px) {
  .hero-layout {
    grid-template: "headline" "art" "intro" "action" / minmax(0, 1fr);
    padding: 30px 0 30px;
    gap: 0;
    min-height: 0;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy h1 {
    grid-area: headline;
    margin: 0;
    text-align: center;
    font-size: clamp(3.15rem, 14.1vw, 5.1rem);
    line-height: 0.9;
  }

  .hero-stage {
    grid-area: art;
    width: calc(100% + 2 * var(--gutter));
    max-width: 34rem;
    justify-self: center;
    margin: 7px 0 0;
    mask-image: linear-gradient(0deg, transparent, black 5% 95%, transparent);
  }

  .hero-copy > p {
    grid-area: intro;
    max-width: 34ch;
    text-align: center;
    justify-self: center;
    margin-top: 8px;
  }

  .hero-actions {
    grid-area: action;
    justify-self: center;
    margin-top: 17px;
    width: min(100%, 22rem);
  }

  .hero-cta {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding-inline-start: 15px;
    font-size: 0.875rem;
  }

  .hero-cta .action-icon {
    height: 46px;
  }
}

.practice-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.practice-stage header {
  max-width: none;
  padding: var(--pad) 0 10px;
}

.practice .intro {
  margin: 13px 0 0;
}

.practice-stage .still {
  position: relative;
  inset: auto;
  order: 1;
  z-index: 0;
  width: calc(100% + 2 * var(--gutter));
  max-width: 36rem;
  margin: -4px 0 0;
  aspect-ratio: 3 / 2;
  justify-self: center;
}

.practice-stage .still img {
  width: 100%;
  mask-image: linear-gradient(0deg, transparent, black 10% 94%, transparent);
}

.practice-stage::after,
.practice h2 br {
  display: none;
}

.index-line {
  border: 1px solid #704576;
  border-bottom: 0;
}

.index-line .choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.index-line .choices button {
  min-block-size: 62px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 9px clamp(8px, 2vw, 14px) 10px;
  border-color: #704576;
  border-bottom-width: 1px;
  font-size: clamp(0.85rem, 3.65vw, 1.05rem);
}

.index-line .choices button:first-child {
  border-left: 0;
}

.index-line .icon {
  width: 13px;
  height: 13px;
}

.briefs {
  padding: 0 0 var(--pad);
}

.briefs article {
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
  padding: clamp(16px, 4.5vw, 26px);
  background: #351c3c;
  border: 1px solid #704576;
  border-top: 0;
}

.briefs dl {
  grid-column: auto;
  display: grid;
  grid-template-columns: minmax(76px, 0.74fr) minmax(0, 1.26fr);
  border-left: 0;
  border-top: 1px solid #705176;
  padding: 13px 0 0;
  gap: 6px 11px;
}

.briefs dt {
  color: #dec3e0;
}

.briefs dd,
.briefs dt:not(:first-child) {
  margin: 0;
}

.briefs dd {
  font-size: 0.8rem;
}

.field-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.field-layout h2 br {
  display: none;
}

.field .intro {
  margin-top: 13px;
  max-width: 42ch;
}

.relief {
  width: min(calc(100% + var(--gutter)), 37rem);
  margin: 10px 0 4px;
  align-self: center;
}

.sector-index {
  border: 1px solid #b99fbe;
  border-bottom: 0;
}

.sector-index .choices {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sector-index .choices button {
  min-block-size: 63px;
  padding: 8px 3px;
  gap: 5px;
  font-size: clamp(0.7rem, 3.25vw, 0.79rem);
  text-align: center;
  box-shadow:
    inset 0 -1px #b99fbe,
    inset -1px 0 #b99fbe;
}

.sector-index .choices button:nth-child(4n) {
  box-shadow: inset 0 -1px #b99fbe;
}

.sector-index .sector-glyph {
  width: 25px;
  height: 25px;
}

.sector-notes {
  align-self: stretch;
}

.sector-notes article {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  background: #f1e7f1;
  border: 1px solid #b99fbe;
  border-top: 0;
  padding: clamp(16px, 4.5vw, 25px);
}

.sector-notes .sector-glyph {
  display: block;
  width: 24px;
  height: 24px;
}

.sector-notes h3 {
  margin-bottom: 8px;
}

.journey-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  padding: var(--pad) 0;
}

.journey-heading,
.route-pages {
  width: 100%;
  max-width: none;
}

.journey-stage .still {
  order: 0;
  z-index: 0;
  position: relative;
  inset: auto;
  width: min(calc(100% + 2 * var(--gutter)), 40rem);
  align-self: center;
  margin: 17px 0 0;
  aspect-ratio: 3 / 2;
  mask-image: none;
}

.journey-stage .still img {
  position: absolute;
  object-fit: contain;
}

.route {
  order: 1;
  width: calc(100% + 2 * var(--gutter));
  align-self: center;
  padding: 10px clamp(4px, 1.8vw, 18px);
  margin: 0;
  border-bottom: 1px solid #b99fbe;
}

.route:has(.choices[hidden]) {
  display: none;
}

.route .choices {
  grid-template-columns: repeat(7, minmax(44px, 1fr));
  gap: 0;
}

.route .choices button {
  position: relative;
  min-block-size: 44px;
  display: grid;
  place-items: center;
  padding: 0;
}

.route .choices button > span:not(.step) {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.step {
  width: 100%;
  justify-content: center;
}

.step-number {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  background: #eadce8;
  border-color: #a07eaa;
  font-size: 0.7rem;
}

.step::after {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  width: 100%;
}

.route .choices button:last-child .step::after {
  display: none;
}

.route .choices button[aria-selected="true"] .step::after {
  height: 1px;
  background: #ac90b1;
}

.route-pages {
  order: 2;
  margin: 0;
}

.route-pages article {
  padding: 17px 0 0;
}

.route-pages article .kicker {
  color: var(--brass-deep);
}

.signal-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.signal .intro {
  margin-top: 13px;
}

.signal-index {
  order: 0;
  margin: 21px 0 0;
  display: block;
}

.signal-index .choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #634369;
  padding: 1px 1px 0;
}

.signal-index .choices button {
  min-block-size: 55px;
  border: 0;
  background: #2a1830;
  padding: 7px 9px;
  gap: 8px;
  font-size: clamp(0.82rem, 3.6vw, 1.05rem);
}

.signal-index .choices button[aria-selected="true"] {
  background: #3c2445;
  box-shadow: inset 0 -2px var(--brass);
}

.signal-display {
  order: 1;
  border: 1px solid #634369;
}

.signal-display canvas {
  aspect-ratio: 1.78;
}

.signal-pages {
  padding: 0 15px 18px;
}

.signal .ends {
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  padding-block: 11px;
}

.signal .ends strong {
  font-size: 0.99rem;
}

.research header {
  align-items: start;
  gap: 12px;
  margin-bottom: 22px;
}

.research header .intro {
  max-width: 42ch;
}

.decision-index {
  border: 1px solid #ac8db3;
  border-bottom: 0;
}

.decision-index .choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision-index .choices button {
  min-block-size: 57px;
  padding: 8px 4px;
  font-size: clamp(0.85rem, 3.55vw, 1.05rem);
  border-inline-end: 1px solid #ac8db3;
}

.decision-index .choices button:last-child {
  border-inline-end: 0;
}

.decisions {
  margin-top: 0;
}

.decisions article {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "summary" "illustration";
  gap: 0;
  background: #f2e8f2;
  border: 1px solid #ac8db3;
  border-top: 0;
  padding: clamp(14px, 4vw, 22px);
}

.decisions:not(.enhanced) article {
  grid-template-areas: "label" "summary" "illustration";
}

.decision-copy {
  padding: 0 0 15px;
}

.decision-copy h3 {
  font-size: clamp(1.75rem, 7.25vw, 2.65rem);
}

.decision-copy p {
  margin-top: 8px;
}

.evidence-plate {
  padding: 12px;
}

.evidence-plate ul {
  font-size: 0.71rem;
  gap: 7px;
  padding-top: 9px;
}

.contact-layout {
  padding: var(--pad) 0;
  grid-template-columns: minmax(0, 1fr) clamp(72px, 27vw, 156px);
  grid-template-areas: "heading emblem" "call call";
  align-items: center;
  gap: 21px 12px;
}

.contact-layout > div {
  grid-area: heading;
}

.contact-layout h2 {
  font-size: clamp(2.3rem, 10.7vw, 3.8rem);
}

.contact-mark {
  position: static;
  width: 100%;
  height: auto;
  grid-area: emblem;
  z-index: 0;
}

.phone {
  grid-area: call;
  width: 100%;
  justify-content: space-between;
  border: 1px solid var(--brass);
  padding: 0 0 0 13px;
  min-block-size: 49px;
  gap: 8px;
}

.phone .action-icon {
  height: 47px;
  width: 50px;
}
