.loop-experience {
  position: relative;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  background: #11141a;
  color: #f3f0ed;
  isolation: isolate;
}

.loop-world {
  position: absolute;
  inset: 145px 0 180px 46%;
  overflow: hidden;
}

.loop-world canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  pointer-events: none;
}

.loop-world-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 53% 37%, #343844, #11141a 64%);
}

.loop-world.webgl-failed canvas { display: none; }
.loop-world.webgl-failed .loop-world-fallback { display: flex; }

.fallback-room {
  width: min(62vw, 600px);
  height: 330px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, #303943, #161c25);
  border: 9px solid #858b95;
  box-shadow: 45px 55px 80px #080a0e;
  transform: perspective(800px) rotateY(-13deg) rotateX(7deg);
}
.fallback-room span { color: #a5dfd3; font: 500 14px var(--mono); }
.fallback-room pre { margin: 12px 0 0; overflow: hidden; color: #82ed9c; font: 500 clamp(7px,1vw,13px)/1.7 var(--mono); white-space: pre; }
.fallback-room strong { color: #f5f3ee; font: 700 80px var(--display); }
.fallback-room b { color: #bfb1ff; font: 600 18px var(--mono); }

.loop-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(10, 12, 18, .98) 0%, rgba(10, 12, 18, .74) 22%, transparent 58%),
    linear-gradient(90deg, rgba(10, 12, 18, .42), transparent 50%),
    linear-gradient(180deg, rgba(10, 12, 18, .42), transparent 28%);
}

.loop-topline {
  position: absolute;
  z-index: 4;
  top: 112px;
  left: clamp(24px, 4vw, 68px);
  right: clamp(24px, 4vw, 68px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font: 600 10px var(--mono);
  letter-spacing: .16em;
  color: #c4c3d3;
}
.loop-top-kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 12px;
  border-radius: 50%;
  background: #a99af0;
  box-shadow: 0 0 16px #a99af0;
  vertical-align: 1px;
}
.loop-top-progress { color: #b4c8c7; }

.loop-copy {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 4vw, 68px);
  bottom: 290px;
  width: min(560px, 40vw);
  pointer-events: none;
}
.loop-overline {
  margin: 0 0 15px;
  color: #b8aff6;
  font: 600 10px var(--mono);
  letter-spacing: .19em;
}
.loop-copy h1 {
  margin: 0;
  max-width: 700px;
  color: #f4f2ee;
  font: 800 clamp(28px, 3vw, 46px)/1.08 var(--display);
  min-height: var(--loop-title-height, 3.24em);
  word-break: keep-all;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.loop-copy h1 span { display: block; }
.loop-copy h1 span:last-child { color: #b3a6ff; }
.loop-lede {
  max-width: 650px;
  min-height: var(--loop-lede-height, 4.5em);
  margin: 20px 0 0;
  color: #d0d1d6;
  font: 500 clamp(16px, 1.25vw, 19px)/1.5 var(--body);
  word-break: keep-all;
}

.loop-bottom {
  position: absolute;
  z-index: 4;
  left: clamp(24px, 4vw, 68px);
  bottom: 77px;
  width: min(720px, 77vw);
}
.loop-progress {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}
.loop-progress i {
  display: block;
  width: 58px;
  height: 3px;
  background: #42444c;
  transition: background .3s, box-shadow .3s;
}
.loop-progress i.active {
  background: #b2a5ff;
  box-shadow: 0 0 16px rgba(178, 165, 255, .75);
}
.loop-event {
  min-height: var(--loop-event-height, 2.9em);
  margin: 0 0 14px;
  color: #b3b9c2;
  font: 500 12px/1.45 var(--mono);
  letter-spacing: -.012em;
}
.loop-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 140px;
}
.loop-primary {
  position: relative;
  display: block;
  width: min(370px, 100%);
  height: 140px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  filter: drop-shadow(0 13px 18px rgba(0, 0, 0, .64));
  cursor: pointer;
  transition: transform .2s, filter .2s;
}
.loop-primary:hover { filter: drop-shadow(0 16px 22px rgba(175, 150, 255, .43)); }
.loop-primary:focus-visible { outline: 3px solid #d9c9ff; outline-offset: 3px; }
#loop-button-canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.loop-primary.webgl-failed #loop-button-canvas { display: none; }
.approval-fallback { display: none; position: absolute; inset: 0; perspective: 700px; }
.loop-primary.webgl-failed .approval-fallback { display: block; }
.approval-fallback-console {
  position: absolute;
  inset: 18% 3% 12%;
  display: flex;
  align-items: center;
  padding: 5% 9%;
  border: 3px solid #aab4bf;
  border-bottom: 10px solid #596474;
  border-radius: 12px;
  background: linear-gradient(155deg, #9ca8b8 0%, #343e4d 18%, #1b2330 72%, #101622 100%);
  box-shadow: 0 16px 0 #0a0e15, 0 25px 27px rgba(0, 0, 0, .8), inset 0 2px 2px #d2dae0;
  transform: rotateX(13deg) rotateY(-8deg);
}
.approval-fallback-key {
  position: relative;
  flex: 0 0 32%;
  aspect-ratio: 1;
  border: 8px solid #b9c3ce;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #fff 0%, #e8dfff 24%, #b29af4 54%, #6652a0 100%);
  box-shadow: 0 7px 0 #57498a, 0 11px 0 #101521, 0 0 26px rgba(190, 163, 255, .8), inset 0 2px 3px #fff;
  animation: fallbackKeyPulse 1.7s ease-in-out infinite;
}
.loop-primary:active .approval-fallback-key { transform: translateY(4px); }
.approval-fallback-display {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin-left: 9%;
  padding: 7% 5%;
  border: 2px solid #727b8f;
  border-radius: 3px;
  background: #111724;
  box-shadow: inset 0 0 13px #05080d;
  text-align: left;
}
.approval-fallback-display small { color: #bcb4de; font: 600 clamp(7px, 2vw, 10px) var(--mono); letter-spacing: .04em; white-space: nowrap; }
.approval-fallback-display strong { color: #f3eefc; font: 700 clamp(13px, 4.2vw, 20px) var(--display); white-space: nowrap; }
.approval-fallback-lamps { display: flex; gap: 6px; margin-top: 3px; }
.approval-fallback-lamps i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #555a6d; }
.loop-experience[data-approvals="1"] .approval-fallback-lamps i:first-child,
.loop-experience[data-approvals="2"] .approval-fallback-lamps i:nth-child(-n+2),
.loop-experience[data-approvals="3"] .approval-fallback-lamps i:nth-child(-n+3) { background: #c5b4ff; box-shadow: 0 0 8px #c5b4ff; }
@keyframes fallbackKeyPulse { 0%, 100% { filter: brightness(.45); } 50% { filter: brightness(1.3); } }
.loop-primary-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.loop-primary-arrow { display: none; }
.loop-quiet {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #a7a3b8;
  background: transparent;
  color: #cac6db;
  font: 500 11px var(--mono);
}
.loop-quiet:hover { color: #fff; border-color: #fff; }
.loop-primary[hidden], .loop-quiet[hidden], .loop-choices[hidden], .loop-ax[hidden] { display: none; }
.loop-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.loop-choices button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 240px;
  min-height: 58px;
  padding: 12px 17px;
  border: 1px solid #bcb9c9;
  background: rgba(24, 26, 35, .72);
  color: #f4f2ee;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font: 600 13px var(--body);
  text-align: left;
}
.loop-choices button:hover {
  background: #ddd4ff;
  color: #181522;
  border-color: #ddd4ff;
}
.loop-choices b { margin-left: 25px; font: 400 17px var(--mono); }
.loop-ax {
  margin: 17px 0 0;
  color: #e8e6ef;
  font: 700 20px/1.06 var(--display);
  letter-spacing: -.055em;
}
.loop-ax span { display: block; color: #c3b8ff; }

.loop-footer {
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(24px, 4vw, 68px);
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: rgba(12, 14, 20, .43);
  color: #92969f;
  font: 500 9px var(--mono);
  letter-spacing: .1em;
}
.loop-footer a { color: #f3f0ed; white-space: nowrap; }

@media (max-width: 900px) {
  .loop-experience {
    min-height: 0;
    display: grid;
    grid-template-rows: 112px minmax(64px, 1fr) auto auto 55px;
    row-gap: 12px;
  }
  .loop-world {
    position: relative;
    grid-row: 2;
    inset: auto;
    min-height: 0;
  }
  .loop-wash { background: none; }
  .fallback-room { width: 82%; height: 90%; padding: 12px; border-width: 4px; }
  .fallback-room strong { font-size: 28px; }
  .fallback-room span, .fallback-room b { font-size: 8px; }
  .loop-topline { top: 84px; left: 21px; right: 21px; font-size: 8px; gap: 8px; }
  .loop-top-progress { text-align: right; }
  .loop-copy {
    position: relative;
    grid-row: 3;
    inset: auto;
    width: auto;
    margin: 0 21px;
  }
  .loop-overline { font-size: 8px; margin-bottom: 11px; }
  .loop-copy h1 { font-size: clamp(26px, 7.2vw, 36px); }
  .loop-lede { font-size: 14px; line-height: 1.45; margin-top: 12px; max-width: none; }
  .loop-bottom {
    position: relative;
    grid-row: 4;
    inset: auto;
    width: auto;
    margin: 0 21px;
  }
  .loop-event { font-size: 10px; margin-bottom: 11px; }
  .loop-primary { width: 100%; height: 116px; }
  .loop-actions { display: flex; min-height: 116px; }
  .loop-quiet { margin: 0; }
  .loop-footer {
    position: relative;
    grid-row: 5;
    inset: auto;
    height: 55px;
    padding: 0 21px;
    font-size: 8px;
  }
  .loop-footer span { max-width: 230px; line-height: 1.3; }
}

@media (prefers-reduced-motion: reduce) {
  .loop-experience *, .loop-experience *::before, .loop-experience *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Three approvals are the complete story. */
@keyframes approveInvitation {
  0%, 100% { filter: drop-shadow(0 10px 15px rgba(150, 126, 225, .2)); }
  50% { filter: drop-shadow(0 10px 24px rgba(191, 170, 255, .78)); }
}
.loop-experience[data-approvals="0"] .loop-primary { animation: approveInvitation 1.7s ease-in-out infinite; }
.loop-experience[data-approvals="3"] .loop-quiet { border-bottom-color: #c0b2ff; color: #eee8ff; font-size: 12px; }
@media(prefers-reduced-motion:reduce) {
  .loop-experience[data-approvals="0"] .loop-primary { animation: none; filter: drop-shadow(0 10px 20px rgba(191, 170, 255, .65)); }
}

@media (max-width: 900px) and (max-height: 700px) {
  .site-header { height: 56px; }
  .loop-experience { grid-template-rows: 91px minmax(64px, 1fr) auto auto 41px; row-gap: 8px; }
  .loop-topline { top: 66px; }
  .loop-copy h1 { font-size: clamp(23px, 6.9vw, 32px); }
  .loop-lede { font-size: 12px; line-height: 1.4; margin-top: 8px; }
  .loop-progress { margin-bottom: 8px; }
  .loop-event { margin-bottom: 5px; line-height: 1.3; }
  .loop-primary { height: 98px; }
  .loop-actions { min-height: 98px; }
  .loop-footer { height: 41px; }
}

@media (max-width: 900px) and (max-height: 580px) {
  .site-header { height: 50px; }
  .loop-experience { grid-template-rows: 81px minmax(64px, 1fr) auto auto 35px; row-gap: 6px; }
  .loop-topline { top: 57px; }
  .loop-overline { margin-bottom: 8px; }
  .loop-lede { font-size: 11px; }
  .loop-primary { height: 82px; }
  .loop-actions { min-height: 82px; }
  .loop-footer { height: 35px; }
}

/* Measurement clones must not participate in the mobile grid. */
.loop-copy.loop-measure { position: absolute; margin: 0; }

/* The biography keeps the scene's scale and provides a prose reading measure. */
.loop-world { transition: filter .7s ease; }
.loop-profile[hidden] { display: none; }
.loop-profile {
  --profile-width: min(960px, calc(100% - 2 * clamp(28px, 6vw, 96px)));
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(48px, 5vw, 72px);
  width: var(--profile-width);
  margin: 0 auto;
  color: #f2f1ef;
  animation: profileReadingEnter 260ms ease-out both;
}
.profile-eyebrow { margin: 0 0 20px; font: 500 10px/1.6 var(--mono); letter-spacing: .08em; color: #c1c4cc; }
.profile-heading h2 { margin: 0; font: 600 clamp(40px, 3.4vw, 48px)/1.16 var(--display); letter-spacing: -.035em; text-wrap: balance; overflow-wrap: break-word; }
.profile-heading h2:focus { outline: none; }
.profile-role { margin: 24px 0 0; max-width: 320px; color: #d0d1d8; font: 400 16px/1.7 var(--body); letter-spacing: normal; word-break: keep-all; }
.profile-content { min-width: 0; }
.profile-prose { max-width: min(54ch, 540px); }
.profile-prose p { margin: 0 0 40px; font: 400 16px/1.9 var(--body); letter-spacing: normal; color: #e1e2e5; word-break: keep-all; overflow-wrap: break-word; }
.profile-prose p:last-child { margin-bottom: 36px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.profile-links a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font: 500 13px var(--body); border-bottom: 1px solid #9ea3af; }
.profile-links a:hover { color: #d4cbff; border-color: #d4cbff; }
.profile-links a:focus-visible { outline: 2px solid #dfd8ff; outline-offset: 6px; }
.loop-experience[data-phase="profile"] { display: block; height: auto; min-height: 100svh; padding: 188px 0 112px; }
.loop-experience[data-phase="profile"] .loop-world { position: absolute; inset: 77px 0 55px; filter: grayscale(1) brightness(.42); }
.loop-experience[data-phase="profile"] .loop-wash { background: linear-gradient(90deg, #101116e6 0%, #101116d9 48%, #101116d1 100%); }
.loop-experience[data-phase="profile"] .loop-copy,
.loop-experience[data-phase="profile"] .loop-event { display: none; }
.loop-experience[data-phase="profile"] .loop-progress { position: absolute; z-index: 4; top: 152px; left: max(28px, calc((100% - min(960px, calc(100% - 2 * clamp(28px, 6vw, 96px)))) / 2)); margin: 0; }
.loop-experience[data-phase="profile"] .loop-bottom { position: static; inset: auto; width: min(960px, calc(100% - 2 * clamp(28px, 6vw, 96px))); margin: 40px auto 0; }
.loop-experience[data-phase="profile"] .loop-actions { position: relative; z-index: 4; min-height: 0; }
.loop-experience[data-phase="profile"] .loop-footer { position: absolute; inset: auto 0 0; }
.loop-experience[data-phase="profile"] .loop-quiet { display: inline-flex; align-items: center; min-height: 44px; color: #d0d2d8; border-color: #9ea3af; font-size: 12px; }
@keyframes profileReadingEnter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width:900px) {
  .loop-experience[data-phase="profile"] { padding-top: 136px; padding-bottom: 96px; }
  .loop-experience[data-phase="profile"] .loop-world { inset: 67px 0 55px; }
  .loop-profile { --profile-width: min(560px, calc(100% - 56px)); grid-template-columns: 1fr; gap: 40px; }
  .profile-eyebrow { font-size: 9px; margin-bottom: 16px; }
  .profile-heading h2 { font-size: clamp(32px, 6vw, 40px); text-wrap: wrap; }
  .profile-role { margin-top: 20px; max-width: 38ch; font-size: 15px; line-height: 1.75; }
  .profile-prose p { font-size: 16px; line-height: 1.85; margin-bottom: 32px; }
  .profile-prose p:last-child { margin-bottom: 32px; }
  .profile-links { gap: 12px 20px; }
  .profile-links a { font-size: 13px; }
  .loop-experience[data-phase="profile"] .loop-bottom { width: min(560px, calc(100% - 56px)); }
  .loop-experience[data-phase="profile"] .loop-progress { top: 108px; left: max(28px, calc((100% - 560px) / 2)); }
}
@media(max-width:900px) and (max-height:700px) {
  .loop-experience[data-phase="profile"] { padding-top: 116px; }
  .loop-experience[data-phase="profile"] .loop-world { top: 56px; }
  .loop-experience[data-phase="profile"] .loop-progress { top: 94px; }
}
@media(prefers-reduced-motion:reduce) { .loop-profile { animation: none; } }

/* The name repeats the GH wordmark's square punctuation. */
.profile-name-ending { white-space: nowrap; }
.profile-name-dot {
  display: inline-block;
  width: .13em;
  height: .13em;
  margin-left: .035em;
  vertical-align: .04em;
  background: var(--violet);
  letter-spacing: normal;
}
.profile-prose strong { color: var(--violet); font-weight: 600; }

/* A distinct invitation precedes the three approvals and the biography. */
.loop-intro[hidden] { display: none; }
.loop-intro {
  position: absolute;
  z-index: 6;
  inset: 132px 4vw 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.intro-eyebrow { margin: 0 0 23px; color: #d0cdda; font: 500 10px/1.5 var(--mono); letter-spacing: .13em; }
.intro-title { margin: 0; max-width: 1120px; font: 700 clamp(42px, 4.8vw, 70px)/1.14 var(--display); letter-spacing: -.055em; color: #f5f3f0; word-break: keep-all; text-wrap: balance; }
.intro-title > span { display: block; }
.intro-title strong { color: var(--violet); font-weight: inherit; }
.intro-deck { max-width: 660px; margin: 28px 0 36px; color: #e1dfe8; font: 400 18px/1.75 var(--body); word-break: keep-all; }
.intro-start {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  width: 268px;
  max-width: 100%;
  min-height: 58px;
  padding: 16px 21px;
  border: 1px solid #c6baff;
  border-radius: 3px;
  color: #f7f3ff;
  background: #151323d9;
  font: 500 14px/1.4 var(--body);
  transition: color .2s, background .2s, box-shadow .2s;
}
.intro-start > span:last-child { color: #cbbfff; font-size: 22px; line-height: 1; }
.intro-start:hover { background: #c6baff; color: #171322; box-shadow: 0 0 28px #aba1ff33; }
.intro-start:hover > span:last-child { color: #171322; }
.intro-start:focus-visible { outline: 3px solid #eee7ff; outline-offset: 5px; }
.loop-experience[data-phase="intro"] .loop-world {
  position: absolute;
  inset: 77px -10px 55px;
  filter: blur(7px) brightness(.72);
}
.loop-experience[data-phase="intro"] .loop-wash {
  z-index: 2;
  background: radial-gradient(ellipse at 50% 45%, #14121a88 0%, #101116c9 74%), linear-gradient(0deg, #101116 0%, transparent 25%);
}
.loop-experience[data-phase="intro"] .loop-copy,
.loop-experience[data-phase="intro"] .loop-bottom,
.loop-experience[data-phase="intro"] .loop-topline { display: none; }
@media(max-width:900px) {
  .loop-intro { inset: 112px 21px 76px; }
  .intro-eyebrow { margin-bottom: 19px; font-size: 9px; }
  .intro-title { font-size: clamp(32px, 8vw, 52px); line-height: 1.18; }
  .intro-deck { margin: 25px 0 30px; font-size: 16px; line-height: 1.7; }
  .loop-experience[data-phase="intro"] .loop-world { top: 67px; }
}
@media(max-width:900px) and (max-height:700px) {
  .loop-intro { inset: 99px 21px 60px; }
  .intro-title { font-size: clamp(30px, 8vw, 44px); }
  .intro-deck { font-size: 14px; margin: 21px 0 26px; }
  .loop-experience[data-phase="intro"] .loop-world { top: 56px; bottom: 41px; }
}
@media(max-width:900px) and (max-height:580px) {
  .loop-intro { inset: 88px 21px 48px; }
  .intro-eyebrow { margin-bottom: 15px; font-size: 8px; }
  .intro-title { font-size: clamp(28px, 8.1vw, 38px); line-height: 1.16; }
  .intro-deck { margin: 20px 0 24px; font-size: 13px; line-height: 1.65; }
  .intro-start { min-height: 52px; padding: 13px 18px; }
  .loop-experience[data-phase="intro"] .loop-world { top: 50px; bottom: 35px; }
}
