:root {
  --ink: #10110f;
  --ink-raised: #161714;
  --paper: #e7e4dc;
  --muted: #8e9188;
  --doctor: #ef7041;
  --studio: #69afca;
  --line: rgba(231, 228, 220, .105);
  --line-strong: rgba(231, 228, 220, .27);
  --doctor-level: 0;
  --studio-level: 0;
  --px: 0;
  --py: 0;
  --type-shift: 0px;
  --safe-x: max(22px, env(safe-area-inset-left));
  --safe-y: max(20px, env(safe-area-inset-top));
  --snap: cubic-bezier(.18,.78,.2,1);
  --settle: cubic-bezier(.16,.72,.18,1);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

body {
  color: var(--paper);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { font: inherit; }

.field {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
  background:
    radial-gradient(circle at calc(50% + var(--px) * 12%), calc(48% + var(--py) * 9%), rgba(255,255,255,.045), transparent 37%),
    linear-gradient(122deg, rgba(255,255,255,.012), transparent 28% 71%, rgba(255,255,255,.015)),
    var(--ink);
  cursor: default;
}

.field::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  background-image: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,255,255,.012) 23px);
}

.grid,
.depth-grid {
  position: absolute;
  z-index: 0;
  inset: var(--safe-y) var(--safe-x);
  pointer-events: none;
}

.grid {
  border: 1px solid var(--line);
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: calc((100vw - 2 * var(--safe-x)) / 12) calc((100vh - 2 * var(--safe-y)) / 8);
  transform: perspective(900px) translate3d(calc(var(--px) * -3px), calc(var(--py) * -2px), -12px)
    rotateZ(calc((var(--studio-level) - var(--doctor-level)) * .22deg));
  opacity: calc(.3 + (var(--doctor-level) + var(--studio-level)) * .09);
  transition: transform 1.1s var(--settle), opacity .7s ease;
}

.grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.94%, var(--line-strong) 50%, transparent 50.06%),
    linear-gradient(transparent 49.9%, var(--line-strong) 50%, transparent 50.1%);
}

.field[data-variant="1"] .grid {
  transform: perspective(900px) translate3d(calc(var(--px) * -3px), calc(var(--py) * -2px), -12px) rotateZ(-1.15deg) scale(1.025);
}

.depth-grid {
  z-index: 1;
  opacity: 0;
  transition: opacity .35s ease, transform 1s var(--settle);
}

.depth-grid--doctor {
  left: 5%;
  right: 49%;
  background:
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(239,112,65,.16) 36px),
    linear-gradient(90deg, transparent 76%, rgba(239,112,65,.23) 76.2%, transparent 76.4%);
  mask-image: linear-gradient(90deg, #000, transparent);
  opacity: calc(var(--doctor-level) * .48);
  transform: translateX(calc((1 - var(--doctor-level)) * -22px));
}

.depth-grid--studio {
  left: 51%;
  right: 5%;
  background:
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(105,175,202,.17) 43px),
    repeating-linear-gradient(0deg, transparent 0 63px, rgba(105,175,202,.1) 64px);
  mask-image: linear-gradient(90deg, transparent, #000);
  opacity: calc(var(--studio-level) * .46);
  transform: translateX(calc((1 - var(--studio-level)) * 22px));
}

#geometry {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.perimeter {
  position: absolute;
  z-index: 10;
  inset: 0;
  pointer-events: none;
}

.index,
.micro,
.state-readout,
.destination-kicker,
.destination-index,
.destination-enter,
.pointer-cue,
.discovery-note,
.letter-rail {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.index { position: absolute; color: var(--muted); }
.index--nw { top: var(--safe-y); left: var(--safe-x); transform: translateY(-50%); }
.index--ne { top: var(--safe-y); right: var(--safe-x); transform: translateY(-50%); }
.index--sw { bottom: var(--safe-y); left: var(--safe-x); transform: translateY(50%); }
.index--se { right: var(--safe-x); bottom: var(--safe-y); transform: translateY(50%); }

.axis { position: absolute; background: var(--paper); opacity: .45; }
.axis--x { width: 11px; height: 1px; left: 50%; top: var(--safe-y); transform: translate(-50%, -50%); }
.axis--y { width: 1px; height: 11px; top: 50%; left: var(--safe-x); transform: translate(-50%, -50%); }

.composition {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.title-wrap {
  position: absolute;
  width: min(78vw, 1160px);
  left: 50%;
  top: 44%;
  transform:
    translate(-50%, -49%)
    translate3d(calc(var(--px) * 9px), calc(var(--py) * 6px), 0)
    rotate(-.85deg)
    skewX(calc((var(--studio-level) - var(--doctor-level)) * -1.2deg));
  transition: transform .9s var(--settle), width .7s var(--settle);
}

.field[data-variant="1"] .title-wrap {
  width: min(83vw, 1220px);
  transform:
    translate(-50%, -50%)
    translate3d(calc(var(--px) * 9px), calc(var(--py) * 6px), 0)
    rotate(-1.45deg);
}

.title {
  position: relative;
  z-index: 4;
  margin: 0;
  font-size: clamp(72px, 10.55vw, 184px);
  line-height: .76;
  letter-spacing: -.062em;
  word-spacing: .04em;
  font-weight: 820;
  text-transform: uppercase;
}

.title-line {
  position: relative;
  display: block;
  width: max-content;
  transition: transform .85s var(--settle), letter-spacing .85s var(--settle);
}

.title-line--web {
  margin-left: auto;
  margin-right: auto;
  transform:
    translateX(calc(-1.35vw + (var(--studio-level) - var(--doctor-level)) * 1.8vw))
    scaleX(calc(1 + var(--doctor-level) * .035));
}

.title-line--designers {
  margin: .16em auto 0;
  transform:
    translateX(calc(.9vw + (var(--doctor-level) - var(--studio-level)) * 1.4vw))
    scaleX(calc(1 + var(--studio-level) * .025));
}

.field[data-variant="1"] .title-line--web { transform: translateX(2.8vw); }
.field[data-variant="1"] .title-line--designers { transform: translateX(-2.1vw); }

.title-line::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(231,228,220,.42);
  clip-path: inset(49% 0 0 0);
  transform: translateX(calc(var(--type-shift) * -1));
  opacity: .82;
}

.title-outline {
  position: absolute;
  z-index: 1;
  inset: -4vw -7vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(231,228,220,.09);
  font-size: clamp(66px, 9.65vw, 168px);
  font-weight: 760;
  letter-spacing: -.058em;
  white-space: nowrap;
  transform: translate3d(calc(var(--px) * -8px), calc(var(--py) * -4px), -10px);
  filter: blur(.15px);
  animation: outline-breathe 12s ease-in-out infinite alternate;
}

.title-slice {
  position: absolute;
  z-index: 6;
  left: -3%;
  right: -3%;
  top: 50%;
  display: flex;
  justify-content: space-between;
  color: transparent;
  font-size: clamp(72px, 10.55vw, 184px);
  line-height: .76;
  font-weight: 820;
  letter-spacing: -.062em;
  white-space: nowrap;
  pointer-events: none;
  transition: transform .8s var(--settle), opacity .4s ease;
}

.title-slice--upper {
  clip-path: inset(0 0 57% 0);
  -webkit-text-stroke: 1px color-mix(in srgb, var(--doctor) calc(var(--doctor-level) * 78%), transparent);
  transform: translate3d(calc(var(--doctor-level) * -11px), calc(-50% + var(--doctor-level) * -4px), 16px);
  opacity: calc(.16 + var(--doctor-level) * .72);
}

.title-slice--lower {
  clip-path: inset(58% 0 0 0);
  -webkit-text-stroke: 1px color-mix(in srgb, var(--studio) calc(var(--studio-level) * 78%), transparent);
  transform: translate3d(calc(var(--studio-level) * 12px), calc(-50% + var(--studio-level) * 5px), 20px);
  opacity: calc(.16 + var(--studio-level) * .72);
}

.title-rule {
  position: absolute;
  height: 1px;
  background: var(--line-strong);
  transition: transform .8s var(--settle), background .45s ease;
}

.title-rule--top {
  left: -10%;
  right: 18%;
  top: -2.5vw;
  transform-origin: left;
  transform: scaleX(calc(.72 + var(--doctor-level) * .28));
  background: color-mix(in srgb, var(--doctor) calc(var(--doctor-level) * 72%), var(--line-strong));
}

.title-rule--bottom {
  left: 19%;
  right: -9%;
  bottom: -3.1vw;
  transform-origin: right;
  transform: scaleX(calc(.72 + var(--studio-level) * .28));
  background: color-mix(in srgb, var(--studio) calc(var(--studio-level) * 72%), var(--line-strong));
}

.registration { position: absolute; color: var(--muted); font: 12px/1 monospace; }
.registration--a { left: -10%; top: -2.5vw; transform: translate(-50%, -50%); }
.registration--b { right: -9%; bottom: -3.1vw; transform: translate(50%, 50%); }

.micro {
  position: absolute;
  color: var(--muted);
  opacity: .48;
  transition: color .35s ease, opacity .35s ease, transform .7s var(--settle);
}

.micro--structure { left: 17%; top: 25%; }
.micro--logic { left: 47%; top: 16%; }
.micro--context { left: 25%; bottom: 19%; }
.micro--interface { right: 18%; top: 23%; }
.micro--signal { right: 28%; bottom: 15%; }
.micro--form { right: 9%; top: 51%; }
.micro--diagnosis { left: 11%; top: 43%; color: var(--doctor); opacity: clamp(0, calc((var(--doctor-level) - .3) * 2.3), .85); transform: translateX(calc((1 - var(--doctor-level)) * -13px)); }
.micro--direction { left: 31%; bottom: 12%; color: var(--doctor); opacity: clamp(0, calc((var(--doctor-level) - .55) * 2.8), .75); }
.micro--build { right: 13%; top: 38%; color: var(--studio); opacity: clamp(0, calc((var(--studio-level) - .3) * 2.3), .85); transform: translateX(calc((1 - var(--studio-level)) * 13px)); }
.micro--system { right: 37%; bottom: 11%; color: var(--studio); opacity: clamp(0, calc((var(--studio-level) - .55) * 2.8), .75); }

.letter-rail {
  position: absolute;
  z-index: 7;
  left: calc(var(--safe-x) + 2.2vw);
  top: 50%;
  display: grid;
  gap: 12px;
  color: var(--muted);
  transform: translateY(-50%);
  opacity: .5;
}

.letter-rail span:nth-child(2) { color: var(--paper); font-size: 14px; }

.scan-line {
  position: absolute;
  z-index: 5;
  width: 44%;
  height: 1px;
  left: 4%;
  top: calc(18% + var(--doctor-level) * 55%);
  opacity: calc(var(--doctor-level) * .75);
  background: linear-gradient(90deg, transparent, var(--doctor) 14%, rgba(239,112,65,.2) 78%, transparent);
  box-shadow: 0 0 12px rgba(239,112,65,.13);
  transform: translateY(calc(var(--scan, 0) * 10vh));
}

.construction { position: absolute; z-index: 2; inset: 0; }
.construction-frame {
  position: absolute;
  border: 1px solid rgba(105,175,202,.32);
  opacity: calc(var(--studio-level) * .7);
  transform: translate3d(calc((1 - var(--studio-level)) * 20px), calc((1 - var(--studio-level)) * 12px), 0) scale(calc(.94 + var(--studio-level) * .06));
  transition: transform .8s var(--settle), opacity .35s ease;
}
.construction-frame--a { width: 18vw; height: 21vh; right: 8%; top: 12%; }
.construction-frame--b { width: 11vw; height: 13vh; right: 25%; top: 27%; transition-delay: 35ms; }
.construction-frame--c { width: 24vw; height: 17vh; right: 12%; bottom: 10%; transition-delay: 70ms; }

.destinations {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
}

.destination {
  --level: 0;
  --accent: var(--paper);
  position: absolute;
  width: clamp(245px, 28vw, 420px);
  height: clamp(210px, 36vh, 340px);
  color: var(--paper);
  text-decoration: none;
  pointer-events: auto;
  outline: none;
}

.destination--doctor { --level: var(--doctor-level); --accent: var(--doctor); left: max(4vw, var(--safe-x)); top: 67%; transform: translateY(-50%); }
.destination--studio { --level: var(--studio-level); --accent: var(--studio); right: max(4vw, var(--safe-x)); top: 29%; transform: translateY(-50%); text-align: right; }

.destination-marker {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  top: 50%;
  opacity: calc(.42 + var(--level) * .58);
  transform: translateY(-50%) scale(calc(.7 + var(--level) * .3));
  transition: transform .38s var(--snap), opacity .25s ease;
}

.destination-marker::before,
.destination-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.destination-marker::before { width: calc(30px + var(--level) * 64px); height: 1px; }
.destination-marker::after { width: 1px; height: calc(30px + var(--level) * 64px); }
.destination--doctor .destination-marker { left: 0; }
.destination--studio .destination-marker { right: 0; }

.portal-ring {
  position: absolute;
  width: calc(62px + var(--level) * 52px);
  height: calc(62px + var(--level) * 52px);
  top: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 66%, transparent);
  border-radius: 50%;
  opacity: calc(.08 + var(--level) * .48);
  transform: translateY(-50%) scale(calc(.76 + var(--level) * .24)) rotate(calc(var(--level) * 32deg));
  transition: width .65s var(--settle), height .65s var(--settle), transform .65s var(--settle), opacity .3s ease;
}
.portal-ring::before,
.portal-ring::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--accent);
  border-style: solid;
}
.portal-ring::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.portal-ring::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.destination--doctor .portal-ring { left: -25px; }
.destination--studio .portal-ring { right: -25px; }

.destination-copy {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  opacity: calc(.1 + var(--level) * .9);
  transform: translateY(-50%) translateX(calc((1 - var(--level)) * -10px)) translateZ(calc(var(--level) * 12px));
  transition: opacity .3s ease, transform .55s var(--snap);
}
.destination--doctor .destination-copy { padding-left: 38px; }
.destination--studio .destination-copy { padding-right: 38px; transform: translateY(-50%) translateX(calc((1 - var(--level)) * 10px)) translateZ(calc(var(--level) * 12px)); }

.destination-index { position: absolute; top: calc(50% - 61px); color: var(--accent); opacity: calc(.35 + var(--level) * .65); }
.destination--doctor .destination-index { left: 2px; }
.destination--studio .destination-index { right: 2px; }
.destination-kicker { display: block; margin-bottom: 11px; color: var(--accent); opacity: clamp(0, calc((var(--level) - .18) * 2.8), 1); transform: translateY(calc((1 - var(--level)) * 4px)); }

.destination-name {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: clamp(27px, 2.8vw, 44px);
  line-height: .86;
  font-weight: 760;
  letter-spacing: -.06em;
  color: color-mix(in srgb, var(--paper) calc(52% + var(--level) * 48%), transparent);
  text-shadow: 0 8px 26px rgba(0,0,0,calc(var(--level) * .36));
}
.destination-name::after {
  content: "";
  position: absolute;
  height: 1px;
  left: 0;
  right: 0;
  bottom: -7px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(clamp(0, calc((var(--level) - .18) * 1.3), 1));
  transition: transform .5s var(--snap);
}
.destination--studio .destination-name::after { transform-origin: right; }

.destination-detail {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .025em;
  white-space: nowrap;
  opacity: clamp(0, calc((var(--level) - .38) * 2.7), 1);
  transform: translateY(calc((1 - var(--level)) * 6px));
}

.destination-enter {
  display: block;
  width: max-content;
  margin-top: 15px;
  padding: 0 0 5px;
  color: var(--paper);
  border-bottom: 1px solid var(--accent);
  opacity: clamp(0, calc((var(--level) - .58) * 3.2), 1);
  transform: translateY(calc((1 - var(--level)) * 7px));
}
.destination--studio .destination-enter { margin-left: auto; }

.destination:hover,
.destination:focus-visible { --level: 1; }

.destination:focus-visible::after {
  content: "";
  position: absolute;
  inset: 9% -14px;
  border: 1px solid var(--accent);
  clip-path: polygon(0 0, 20px 0, 20px 1px, 1px 1px, 1px 20px, 0 20px, 0 0, 100% 0, 100% 20px, calc(100% - 1px) 20px, calc(100% - 1px) 1px, calc(100% - 20px) 1px, calc(100% - 20px) 0, 100% 0, 100% 100%, calc(100% - 20px) 100%, calc(100% - 20px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 20px), 100% calc(100% - 20px), 100% 100%, 0 100%, 0 calc(100% - 20px), 1px calc(100% - 20px), 1px calc(100% - 1px), 20px calc(100% - 1px), 20px 100%, 0 100%);
}

.pointer-cue {
  position: absolute;
  z-index: 20;
  left: 0;
  top: 0;
  padding: 6px 7px;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  background: rgba(16,17,15,.84);
  opacity: 0;
  transform: translate3d(calc(var(--cue-x, 0px) + 16px), calc(var(--cue-y, 0px) + 16px), 0);
  transition: opacity .16s ease;
  pointer-events: none;
}
.pointer-cue.is-visible { opacity: .92; }

.discovery-note {
  position: absolute;
  z-index: 9;
  color: var(--paper);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.discovery-note.is-visible { opacity: .62; }

.state-readout {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: max(34px, calc(var(--safe-y) + 12px));
  display: flex;
  gap: 10px;
  color: var(--muted);
  transform: translateX(-50%);
}
.readout-value { color: var(--paper); min-width: 70px; }

.field.is-pulsing .title-wrap { animation: structural-pulse .82s var(--settle); }
@keyframes outline-breathe {
  from { opacity: .72; }
  to { opacity: 1; }
}
@keyframes structural-pulse {
  0%, 100% { scale: 1; }
  38% { scale: .985 1.035; }
  68% { scale: 1.008 .994; }
}

@media (max-width: 760px) {
  .field { min-height: 540px; }
  .grid { background-size: calc((100vw - 2 * var(--safe-x)) / 6) calc((100vh - 2 * var(--safe-y)) / 10); }
  .index--ne, .index--sw, .micro--logic, .micro--signal, .letter-rail { display: none; }
  .depth-grid--doctor { right: 50%; }
  .depth-grid--studio { left: 50%; }

  .title-wrap {
    width: 100vw;
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%) rotate(-1.5deg);
  }
  .title {
    font-size: clamp(42px, 13.2vw, 58px);
    line-height: .84;
    letter-spacing: -.045em;
  }
  .title-line--web {
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-3.5vw);
  }
  .title-line--designers {
    margin: .28em auto 0;
    font-size: 1em;
    transform: translateX(1vw);
  }
  .field[data-variant="1"] .title-wrap { width: 103vw; transform: translate(-50%, -50%) rotate(1.15deg); }
  .field[data-variant="1"] .title-line--web { transform: translateX(2vw); }
  .field[data-variant="1"] .title-line--designers { transform: translateX(-1.5vw); }
  .title-outline {
    inset: -8vw -2vw;
    font-size: clamp(42px, 13.2vw, 58px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .28em;
    opacity: .62;
  }
  .title-slice {
    left: 0;
    right: 0;
    font-size: clamp(42px, 13.2vw, 58px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    row-gap: .28em;
  }
  .title-slice span:first-child { transform: translateX(-3.5vw); }
  .title-slice span:last-child { font-size: 1em; transform: translateX(1vw); }
  .title-rule--top { top: -5vw; }
  .title-rule--bottom { bottom: -7vw; }

  .micro--structure { left: 8%; top: 17%; }
  .micro--context { left: 8%; bottom: 27%; }
  .micro--interface { right: 8%; top: 17%; }
  .micro--form, .micro--diagnosis, .micro--direction, .micro--build, .micro--system { display: none; }
  .construction-frame--a { width: 35vw; height: 16vh; top: 12%; }
  .construction-frame--b { width: 26vw; height: 10vh; top: 23%; }
  .construction-frame--c { width: 37vw; height: 12vh; bottom: 28%; }
  .scan-line { width: 52%; }

  .destination {
    width: calc(50vw - var(--safe-x) - 5px);
    height: 198px;
    top: auto;
    bottom: max(36px, calc(var(--safe-y) + 16px));
    transform: none;
  }
  .destination--doctor { left: var(--safe-x); }
  .destination--studio { right: var(--safe-x); }
  .destination-marker { top: 28px; opacity: calc(.68 + var(--level) * .32); }
  .portal-ring {
    top: 28px;
    width: calc(48px + var(--level) * 28px);
    height: calc(48px + var(--level) * 28px);
    opacity: calc(.22 + var(--level) * .55);
  }
  .destination--doctor .portal-ring { left: -18px; }
  .destination--studio .portal-ring { right: -18px; }
  .destination-copy,
  .destination--studio .destination-copy {
    top: 30px;
    opacity: calc(.58 + var(--level) * .42);
    transform: none;
  }
  .destination--doctor .destination-copy { padding: 20px 0 0; }
  .destination--studio .destination-copy { padding: 20px 0 0; }
  .destination-index { top: 20px; }
  .destination--doctor .destination-index { left: 22px; }
  .destination--studio .destination-index { right: 22px; }
  .destination-name {
    font-size: clamp(21px, 6vw, 31px);
    color: color-mix(in srgb, var(--paper) calc(78% + var(--level) * 22%), transparent);
  }
  .destination-detail { font-size: 9px; white-space: normal; line-height: 1.35; max-width: 150px; opacity: calc(.34 + var(--level) * .66); }
  .destination--studio .destination-detail { margin-left: auto; }
  .destination-kicker { display: none; }
  .destination-enter { font-size: 8px; opacity: calc(.42 + var(--level) * .58); }
  .state-readout, .pointer-cue, .discovery-note { display: none; }

  .destination--doctor .destination-marker::before {
    animation: doctor-measure 9s ease-in-out infinite;
  }
  .destination--studio .portal-ring::after {
    animation: studio-assemble 9s 4.5s ease-in-out infinite;
  }
}

@keyframes doctor-measure {
  0%, 42%, 100% { opacity: .38; }
  16%, 24% { opacity: 1; }
}

@keyframes studio-assemble {
  0%, 42%, 100% { opacity: .32; }
  16%, 24% { opacity: 1; }
}

@media (max-width: 420px) {
  .index { font-size: 8px; letter-spacing: .1em; }
  .index--se { display: none; }
  .title-wrap { top: 36%; }
  .title { font-size: clamp(42px, 13.2vw, 58px); }
  .destination { bottom: max(28px, var(--safe-y)); }
  .destination-name { font-size: 20px; }
  .destination-detail { font-size: 8px; max-width: 128px; }
}

@media (max-height: 780px) and (min-width: 761px) {
  .title-wrap { top: 44%; }
  .title { font-size: min(15.8vh, 10.2vw); }
  .title-slice { font-size: min(15.8vh, 10.2vw); }
  .destination { height: 58vh; }
  .destination-name { font-size: clamp(24px, 2.45vw, 32px); }
}

@media (prefers-reduced-motion: reduce) {
  :root { --doctor-level: .68; --studio-level: .68; --px: 0; --py: 0; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .grid, .title-wrap, .title-outline { transform: none; }
  .title-wrap { transform: translate(-50%, -49%) rotate(-.85deg); }
  .scan-line { top: 68%; }
  .destination-detail, .destination-enter { opacity: 1; transform: none; }
  .pointer-cue, .discovery-note { display: none; }
}

html.is-reduced {
  --doctor-level: .68;
  --studio-level: .68;
  --px: 0;
  --py: 0;
}
html.is-reduced *, html.is-reduced *::before, html.is-reduced *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}
html.is-reduced .grid,
html.is-reduced .title-outline { transform: none; }
html.is-reduced .title-wrap { transform: translate(-50%, -49%) rotate(-.85deg); }
html.is-reduced .scan-line { top: 68%; transform: none; }
html.is-reduced .destination-detail,
html.is-reduced .destination-enter { opacity: 1; transform: none; }
html.is-reduced .pointer-cue,
html.is-reduced .discovery-note { display: none; }

html.is-hidden *, html.is-hidden *::before, html.is-hidden *::after {
  animation-play-state: paused !important;
}
