summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
html:has(.chamber[open]) { overflow: hidden; }
.flight-header { opacity: var(--departure-copy, 1); }
.chamber { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: var(--paper); background: transparent; overflow: hidden; }
.chamber::backdrop { background: transparent; }
.chamber-shade { position: absolute; inset: 0; background: linear-gradient(108deg, rgb(14 9 25 / .32), rgb(10 7 19 / .16)); }
.chamber.is-warming { pointer-events: none; opacity: .015; }
.chamber-panel {
  --window-offset: 24px;
  --window-offset-y: 0px;
  position: absolute; inset: max(32px, 6svh) auto max(32px, 6svh) clamp(22px, 6.1vw, 105px);
  width: min(52vw, 770px); overflow: hidden; transform-origin: right center;
  border: 1px solid rgb(196 175 255 / .18); border-radius: 13px;
  background: linear-gradient(144deg, #261b37de, #151021df 64%, #20172bd9);
  backdrop-filter: blur(16px); box-shadow: 0 34px 100px #090612a6, inset 0 1px #f1dcf427;
  will-change: opacity, transform;
}
.chamber .chamber-panel { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b79ac082 transparent; }
.chamber.is-moving .chamber-panel { pointer-events: none; backdrop-filter: none; background: linear-gradient(144deg, #261b37f2, #151021f3 64%, #20172bee); }
.project { --chamber-edge: #bfabdb40; width: min(100% - 112px, 1000px); margin-inline: auto; padding-block: clamp(26px, 8svh, 78px) 44px; }
.chamber .project { width: auto; padding: 23px clamp(21px, 3.15vw, 48px) 32px; }
.project h2 { margin: 0; font: 400 84px/.95 Georgia, var(--editorial); }
.chamber .project h2 { font-size: clamp(53px, 6.5vw, 90px); }
.project h2:focus { outline: none; }
.project-title-line { display: flex; align-items: end; flex-wrap: wrap; gap: 0 14px; width: fit-content; max-width: 100%; }
.project-title-line .project-url { min-height: 38px; margin-bottom: -.15em; padding: 2px 9px; border: 1px solid #c8aff253; border-radius: 3px; background: #241b31a6; text-decoration: none; white-space: nowrap; }
.project-link {
  display: inline-flex;
  align-items: flex-start;
  gap: .15em;
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
  text-shadow: 0 0 20px #c4a4ef55;
  transition: text-shadow 220ms ease;
}
.project-link span {
  margin-top: .6em;
  color: #cbb7e2;
  font: 18px/1 system-ui, sans-serif;
  transition: color 220ms ease, transform 220ms ease;
}
.project-link:is(:hover, :focus-visible) { text-shadow: 0 0 22px #dcc2ff94; }
.project-link:is(:hover, :focus-visible) span { color: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .project-link:is(:hover, :focus-visible) span { transform: translate(2px, -2px); }
}
.lead { margin: 14px 0 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.5; }
.credit { margin: 8px 0 0; color: var(--mist); }
.exit-room { position: sticky; top: 10px; z-index: 2; float: right; display: inline-flex; align-items: center; gap: 11px; min-height: 44px; margin-top: 3px; padding: 0 8px; border: 1px solid #bc9ee535; border-radius: 3px; color: var(--mist); background: #1b142aeb; font-size: 14px; cursor: pointer; }
.exit-room[hidden] { display: none; }
.exit-room:hover { color: var(--mint); }
.observation { position: relative; margin-top: clamp(24px, 4svh, 40px); border: 1px solid var(--chamber-edge); border-radius: 5px; background: linear-gradient(143deg, #2d223e, #211a2e 64%); box-shadow: 0 24px 64px #100b1b7a; }
.chamber.is-moving .observation { pointer-events: none; }
.exchange { --exchange-pad: clamp(24px, 4vw, 47px); --reply-width: 58%; --recall-line: #d0b3f5; --recall-match: #e2df9e; position: relative; display: grid; grid-template-columns: minmax(0, var(--reply-width)) 1fr; min-height: 324px; }
.exchange[hidden] { display: none; }
.reply { padding: 31px var(--exchange-pad) 84px; }
.context { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 13px; color: #d9c9eb; }
.context span { width: 6px; height: 6px; background: var(--mint); transform: rotate(45deg); box-shadow: 0 0 12px #b6f7da78; }
.prompt { width: fit-content; margin: 19px 0 16px; padding: 6px 10px; border-inline-start: 1px solid #d0b3f56b; background: #d0b3f510; color: var(--mist); }
.answer { margin: 0; font: 400 clamp(23px, 2.5vw, 33px)/1.52 var(--editorial); text-wrap: balance; }
.follow-up { margin: 9px 0 0; color: var(--mist); font-size: 15px; }
.citation { position: absolute; inset: 0; pointer-events: none; }
.citation summary, .engineering summary { list-style: none; display: flex; gap: 18px; align-items: center; width: max-content; min-height: 44px; cursor: pointer; }
:is(.citation, .engineering) summary::-webkit-details-marker { display: none; }
.citation summary { z-index: 1; position: absolute; left: var(--exchange-pad); bottom: 23px; pointer-events: auto; gap: 9px; padding-inline: 9px 12px; color: var(--recall-line); background: #d0b3f510; border: 1px solid #d0b3f565; border-radius: 3px; font-size: 14px; }
.citation-icon { height: 16px; font: 23px/1 Georgia, serif; }
.citation-chevron, .engineering summary span { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 180ms ease; }
.citation[open] .citation-chevron, .engineering[open] summary span { transform: translateY(2px) rotate(225deg); }
.citation summary:hover, .citation[open] summary { border-color: var(--recall-line); }
.source { position: absolute; inset: 0 0 0 var(--reply-width); pointer-events: auto; padding: 38px clamp(24px, 4vw, 44px); border-inline-start: 1px solid var(--chamber-edge); background: #140a1855; }
.source::before { position: absolute; top: 50%; right: 100%; width: clamp(17px, 3.2vw, 48px); border-top: 1px dashed var(--recall-line); opacity: .68; transform-origin: left; content: ''; }
.source blockquote { margin: 19px 0 0; font: 400 clamp(19px, 2vw, 24px)/1.65 var(--editorial); }
.source blockquote p { margin: 0 0 9px; text-wrap: balance; }
.exchange mark { color: inherit; background: transparent; }
.exchange:has(.citation[open]) mark { box-shadow: inset 0 -.12em #e2df9e55; color: var(--recall-match); }
.citation[open] .source { animation: show-recall 300ms cubic-bezier(.25,.65,.22,1) both; }
.citation[open] .source::before { animation: show-recall-line 300ms ease both; }
@keyframes show-recall { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes show-recall-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.engineering { border-top: 1px solid var(--chamber-edge); }
.engineering summary { justify-content: space-between; width: 100%; min-height: 60px; padding-inline: clamp(24px, 4vw, 47px); background: #100e1924; color: var(--mist); font-size: 14px; }
.engineering summary:hover { color: var(--mint); }
.engineering-body { max-width: 72ch; padding: 12px clamp(24px, 4vw, 47px) 32px; color: var(--mist); }
.engineering-body h3 { color: var(--paper); font-size: 17px; margin: 0 0 5px; }
.engineering-body p { margin: 0 0 19px; }
.engineering-body p:last-child { margin-bottom: 0; }
.product-video-body { margin: 6px clamp(12px, 2vw, 24px) 20px; overflow: hidden; padding: 0 7px 7px; border: 1px solid #c7aed843; border-radius: 8px; background: #120e1c; box-shadow: 0 12px 34px #09061191; }
.video-device-bar { height: 31px; display: grid; place-items: center; position: relative; color: #d5c3df; font-size: 11px; }
.video-device-bar::before { position: absolute; left: 8px; content: ''; width: 5px; height: 5px; border-radius: 50%; background: #b88fbb; box-shadow: 8px 0 #9070a3, 16px 0 #6e617f; }
.product-video video { display: block; width: 100%; border: 1px solid #766283; border-radius: 3px; aspect-ratio: 16 / 9; background: #0e0b17; }

.project-invite {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  margin-top: 18px;
  padding: 8px clamp(12px, 2.8vw, 30px) 8px clamp(8px, 2.3vw, 24px);
  border: 1px solid var(--chamber-edge);
  border-radius: 5px;
  background: linear-gradient(112deg, #2e2240, #1c1629 62%);
  text-decoration: none;
  transition: border-color 220ms ease;
}
.project-invite:is(:hover, :focus-visible) { border-color: #bea0e3ad; }
.invite-copy { display: grid; gap: 4px; }
.invite-title { font: 400 clamp(20px, 2vw, 26px)/1.25 Georgia, var(--editorial); }
.invite-caption { color: var(--mist); font-size: 13px; }
.invite-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #c8aff253;
  border-radius: 3px;
  color: #e5d4fa;
  background: #c8aff20d;
  transition: background-color 220ms ease, color 220ms ease;
}
.project-invite:is(:hover, :focus-visible) .invite-arrow { color: var(--paper); background: #c8aff22c; }
.invite-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 68px;
  perspective: 230px;
}
.invite-visual::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse, #d5a7ff41, transparent 68%);
  content: '';
  opacity: .68;
  transition: opacity 220ms ease;
}
.project-invite:is(:hover, :focus-visible) .invite-visual::before { opacity: 1; }
.invite-crystal {
  position: relative;
  width: 32px;
  height: 2px;
  transform: rotateZ(-15deg) rotateX(12deg) rotateY(-27deg);
  transform-style: preserve-3d;
}
.invite-face {
  --side: 0deg;
  --facet-light: #e3cdf8;
  position: absolute;
  inset: auto 0 50%;
  height: 33.5px;
  backface-visibility: hidden;
  background: linear-gradient(135deg, var(--facet-light), #a68ac9);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform-origin: 50% 100%;
  /* Four triangular faces meet at each tip of the octahedron. */
  transform: rotateY(var(--side)) translateZ(16px) rotateX(28.5deg);
}
.invite-face:nth-child(4n + 2) { --side: 90deg; --facet-light: #c4a6e1; }
.invite-face:nth-child(4n + 3) { --side: 180deg; --facet-light: #b193d4; }
.invite-face:nth-child(4n + 4) { --side: 270deg; --facet-light: #f0e0ff; }
.invite-face:nth-child(n + 5) {
  inset: 50% 0 auto;
  background: linear-gradient(45deg, #47315f, var(--facet-light));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transform: rotateY(var(--side)) translateZ(16px) rotateX(-28.5deg);
}
@media (prefers-reduced-motion: no-preference) {
  .invite-crystal { animation: invite-turn 14s linear infinite; }
}
@keyframes invite-turn {
  from { transform: rotateZ(-15deg) rotateX(12deg) rotateY(-27deg); }
  to { transform: rotateZ(-15deg) rotateX(12deg) rotateY(333deg); }
}
@media (max-width: 700px) {
  .project-title-line { gap: 0 10px; }
  .project-title-line .project-url { min-height: 44px; margin-bottom: 0; }
  .chamber-panel { --window-offset: 8px; --window-offset-y: 16px; transform-origin: right top; inset: max(108px, 32svh) 12px max(12px, env(safe-area-inset-bottom)); width: auto; }
  .chamber .project { padding: 17px 14px 20px; }
  .chamber .project h2 { font-size: 54px; }
  .chamber .lead { font-size: 16px; }
  .wrap, .project { width: calc(100% - 36px); }
  .project { padding-block: clamp(24px, 5svh, 48px) 22px; }
  .project h2 { font-size: 62px; }
  .credit { font-size: 15px; }
  .exchange { display: block; min-height: 0; }
  .reply { padding: 21px 19px 8px; }
  .prompt { margin: 13px 0 11px; }
  .answer { font-size: 25px; }
  .citation { position: static; }
  .citation summary { position: static; margin: 10px 19px 18px; }
  .source { position: static; padding: 16px 19px 19px; border-inline-start: 0; border-top: 1px solid var(--chamber-edge); }
  .source::before { display: none; }
  .citation[open] .source { animation-name: show-recall-mobile; }
  .source blockquote { margin-top: 9px; }
  .engineering summary { min-height: 52px; padding-inline: 19px; }
  .engineering-body { padding: 10px 19px 22px; }
  .project-invite { grid-template-columns: 60px minmax(0, 1fr) 34px; gap: 10px; margin-top: 12px; }
}
@keyframes show-recall-mobile { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .engineering::details-content { interpolate-size: allow-keywords; block-size: 0; overflow: clip; transition: block-size 300ms cubic-bezier(.25,.65,.22,1), content-visibility 300ms allow-discrete; }
    .engineering[open]::details-content { block-size: auto; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::backdrop { transition: none !important; }
  .citation[open] .source, .citation[open] .source::before { animation: none; }
}
