:root {
  color-scheme: dark;
  --paper: #191613;
  --surface: #211d18;
  --ink: #f6edde;
  --muted: #c2b6a5;
  --accent: #efb76c;
  --rule: #897051;
  --highlight: #f7ca8e;
  --edge: #897051;
  --shadow: #080604;
  --display: Syne, sans-serif;
  --body: Manrope, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--body);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 10;
  background: var(--paper);
  padding: 16px;
}
.skip:focus {
  top: 16px;
}
.lab {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 24px 48px 16px;
  gap: 24px;
  overflow: hidden;
}
.room,
.shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100svh;
  z-index: -2;
}
.room {
  object-fit: cover;
  object-position: 50% 46%;
  filter: saturate(0.83) sepia(0.15);
}
.shade {
  z-index: -1;
  background:
    linear-gradient(90deg, #191613e8 0%, #191613a8 25%, transparent 58%),
    linear-gradient(180deg, #191613a8 0%, transparent 35%, #191613ef 90%, #191613 100%);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  z-index: 2;
}
.brand {
  font: 600 24px/1.1 var(--display);
  text-shadow: 0 2px 8px var(--shadow);
}
.brand span {
  display: block;
  color: var(--accent);
  letter-spacing: 0.24em;
  font-size: 14px;
  margin-top: 4px;
}
.stations {
  display: flex;
  gap: 16px;
}
.stations a {
  --portal-size: 76px;
  position: relative;
  width: var(--portal-size);
  height: var(--portal-size);
  padding: 8px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: var(--surface);
  font: 600 13px/1.3 var(--display);
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 var(--edge),
    inset 0 -6px 12px var(--shadow),
    0 8px 20px var(--shadow);
}
.stations a::before {
  content: '';
  position: absolute;
  inset: 5px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--highlight);
  border-bottom: 2px solid var(--edge);
  border-radius: 50%;
  transform: rotate(-35deg);
  transition: transform 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.control-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  padding: 2px;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.3;
  pointer-events: none;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface);
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.room-peek {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-size: 100% auto;
  background-position: center;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.masthead .stations .room-peek {
  opacity: 1;
}
[data-station='oilfield'] {
  --portrait: url('/lab/portrait-oilfield.webp');
}
[data-station='games'] {
  --portrait: url('/lab/portrait-social.webp');
}
[data-station='ai'] {
  --portrait: url('/lab/portrait-coordinator.webp');
}
[data-station='toys'] {
  --portrait: url('/lab/portrait-clerk.webp');
}
[data-station='oilfield'] .room-peek {
  background-position: center -5px;
}
.stations a[aria-current='true'] {
  border-color: var(--accent);
}
.stations a[aria-current='true'] .control-label {
  background: #433321;
  color: var(--highlight);
}
.stations a[aria-current='true'] .room-peek {
  background-image: var(--portrait);
  clip-path: circle(50% at 50% 50%);
}
.stations a[aria-current='true']::before {
  transform: rotate(145deg);
}
.stations a[aria-current='true'] .control-label {
  transform: translate(-50%, calc(var(--portal-size) / 2 + 8px));
  border-color: var(--edge);
  box-shadow: 0 3px 8px var(--shadow);
}
.stations a:focus-visible .room-peek {
  background-image: var(--portrait);
  clip-path: circle(50% at 50% 50%);
}
.stations a:focus-visible::before {
  transform: rotate(145deg);
}
.stations a:focus-visible .control-label {
  transform: translate(-50%, calc(var(--portal-size) / 2 + 8px));
  border-color: var(--edge);
  box-shadow: 0 3px 8px var(--shadow);
}
@media (hover: hover) and (pointer: fine) {
  .stations a:hover .room-peek {
    background-image: var(--portrait);
    clip-path: circle(50% at 50% 50%);
  }
  .stations a:hover::before {
    transform: rotate(145deg);
  }
  .stations a:hover .control-label {
    transform: translate(-50%, calc(var(--portal-size) / 2 + 8px));
    border-color: var(--edge);
    box-shadow: 0 3px 8px var(--shadow);
  }
}
.welcome {
  margin-top: auto;
  max-width: 440px;
  padding-top: 160px;
}
.welcome h1 {
  margin: 0;
  font: 700 clamp(40px, 4vw, 56px)/1.05 var(--display);
  letter-spacing: -0.025em;
}
.welcome h1 span {
  color: var(--accent);
}
.welcome p {
  margin: 16px 0 0;
  color: var(--muted);
}
.welcome .intro-detail {
  max-width: 36ch;
  font-size: 15px;
}
.welcome .station-hint {
  font-size: 13px;
  color: var(--accent);
}
.entry {
  display: grid;
  gap: 8px;
  width: 280px;
  margin-bottom: 48px;
}
.entry .enter-button {
  display: grid;
  gap: 12px;
  text-align: left;
  min-height: 52px;
  background: var(--accent);
  color: #20170e;
  padding: 12px 24px;
  font-weight: 600;
  border: 1px solid var(--highlight);
}
.entry .enter-button:hover {
  background: var(--highlight);
}
.entry > span {
  font-size: 13px;
  color: var(--muted);
}
.station-sign {
  position: absolute;
  left: 50%;
  top: 24%;
  transform: translateX(-50%);
  width: 320px;
  padding: 12px 20px;
  background: #211d18f2;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  box-shadow: 0 4px 12px #08060480;
  display: grid;
  gap: 4px;
}
.station-number {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.station-sign strong {
  font: 600 23px/1.2 var(--display);
}
.sign-action {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.station-sign:hover {
  background: #30281f;
  border-color: var(--accent);
}
.station-view .welcome {
  visibility: hidden;
}
.station-view .shade {
  background: linear-gradient(
    180deg,
    #191613b0 0%,
    transparent 30%,
    transparent 46%,
    #191613e8 85%,
    #191613 100%
  );
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid #89705170;
  padding-top: 8px;
}
footer a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.image-error {
  position: absolute;
  top: 38%;
  left: 24px;
  right: 24px;
  background: var(--paper);
  padding: 24px;
}
.lab.image-missing .room {
  display: none;
}
@media (max-width: 700px) {
  .lab {
    padding: 24px;
    gap: 24px;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .brand {
    font-size: 20px;
  }
  nav {
    width: 100%;
    padding-bottom: 32px;
  }
  .stations {
    justify-content: space-between;
    gap: 8px;
  }
  .stations a {
    --portal-size: 56px;
    font-size: 11px;
  }
  .room {
    object-position: 49% 43%;
  }
  .shade {
    background: linear-gradient(
      180deg,
      #191613df 0%,
      transparent 28%,
      transparent 42%,
      #191613ef 68%,
      #191613 100%
    );
  }
  .welcome {
    margin-top: 420px;
    padding-top: 0;
    max-width: 100%;
  }
  .welcome h1 {
    font-size: 36px;
  }
  .welcome p {
    font-size: 14px;
  }
  .welcome .intro-detail {
    font-size: 14px;
  }
  .entry {
    width: 100%;
    margin-bottom: 24px;
  }
  .entry > span {
    font-size: 12px;
  }
  .station-sign {
    top: 220px;
    width: min(280px, calc(100% - 48px));
    padding: 12px 16px;
  }
  .station-sign strong {
    font-size: 20px;
  }
  footer {
    font-size: 11px;
    align-items: center;
    gap: 16px;
  }
  footer > span {
    max-width: 27ch;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 24px;
  width: min(480px, calc(100% - 32px));
  max-height: 90svh;
  overflow: auto;
}
dialog::backdrop {
  background: #080604cf;
}
dialog h2 {
  font: 600 28px/1.2 var(--display);
  clear: both;
  padding-top: 16px;
}
dialog p {
  color: var(--muted);
}
.close-dialog {
  float: right;
  background: #30281f;
  border: 1px solid var(--rule);
  min-height: 44px;
  padding: 8px 16px;
}
dialog label {
  display: block;
  margin-top: 24px;
}
dialog select {
  width: 100%;
  min-height: 48px;
  font: inherit;
  background: #30281f;
  color: var(--ink);
  padding: 8px;
  border: 1px solid var(--rule);
}
.dialog-link {
  display: block;
  padding: 12px 16px;
  margin-top: 16px;
  background: #433321;
  border: 1px solid var(--accent);
  min-height: 48px;
}

.enter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.input-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #20170e45;
}
.input-icon {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
  font-weight: 600;
}
.input-icon svg {
  display: block;
  width: 100%;
  max-width: 44px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Original circular portal: picture first, controls behind the expanding wipe. */
.entry {
  width: 220px;
  justify-items: center;
  padding-bottom: 32px;
  gap: 48px;
}
.entry .enter-button {
  --entry-size: 180px;
  position: relative;
  width: var(--entry-size);
  height: var(--entry-size);
  min-height: 0;
  padding: 0;
  display: block;
  border-radius: 50%;
  background: var(--accent);
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 var(--edge),
    inset 0 -6px 12px var(--shadow),
    0 8px 20px var(--shadow);
}
.entry-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.entry .enter-button::before {
  content: '';
  position: absolute;
  inset: 5px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--highlight);
  border-bottom: 2px solid var(--edge);
  border-radius: 50%;
  transform: rotate(-35deg);
  transition: transform 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.entry .input-icons {
  position: absolute;
  inset: 0;
  padding: 30px 24px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 8px;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.entry .input-icon {
  font-size: 10px;
  align-content: center;
}
.entry .input-icon svg {
  max-width: 48px;
  height: 30px;
}
.entry .enter-heading {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  display: block;
  text-align: center;
  color: var(--ink);
  font: 600 18px/1.3 var(--display);
}
.entry .enter-heading > span {
  margin-left: 8px;
  color: var(--accent);
}
.entry > span:not(.sr-only) {
  text-align: center;
}
.entry .enter-button:focus-visible .input-icons {
  clip-path: circle(50% at 50% 50%);
}
.entry .enter-button:focus-visible::before {
  transform: rotate(145deg);
}
@media (hover: hover) and (pointer: fine) {
  .entry .enter-button:hover .input-icons {
    clip-path: circle(50% at 50% 50%);
  }
  .entry .enter-button:hover::before {
    transform: rotate(145deg);
  }
}
@media (max-width: 700px) {
  .entry {
    width: 220px;
    align-self: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .entry .input-icons,
  .entry .enter-button::before {
    transition: none;
  }
}

.lab-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.lab-visual .room {
  z-index: auto;
}
@media (max-width: 1200px) {
  .lab:not(.station-view) header {
    order: 0;
  }
  .lab:not(.station-view) .lab-visual {
    position: relative;
    inset: auto;
    z-index: 0;
    order: 1;
    width: 100%;
    overflow: hidden;
  }
  .lab:not(.station-view) .lab-visual .room {
    position: relative;
    inset: auto;
    left: -35%;
    width: 135%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: saturate(0.9);
  }
  .lab:not(.station-view) .welcome {
    order: 2;
    margin-top: 0;
    padding-top: 0;
  }
  .lab:not(.station-view) .entry {
    order: 3;
  }
  .lab:not(.station-view) footer {
    order: 4;
  }
  .lab:not(.station-view) .shade {
    background: linear-gradient(180deg, #191613a8 0%, #191613 100%);
  }
  .lab:not(.station-view) .welcome h1 {
    font-size: clamp(36px, 5vw, 48px);
  }
}

/* Welcome copy above the photograph; entry remains part of the photo panel. */
.lab:not(.station-view) header {
  order: 0;
}
.lab:not(.station-view) .welcome {
  order: 1;
  margin: 8px 0 0;
  padding: 0;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  align-items: start;
}
.lab:not(.station-view) .welcome h1 {
  grid-row: 1/5;
  font-size: clamp(36px, 4vw, 56px);
}
.lab:not(.station-view) .welcome p {
  margin: 0 0 8px;
  max-width: none;
}
.lab:not(.station-view) .welcome .entry-note {
  font-size: 13px;
}
.lab:not(.station-view) .lab-visual {
  position: relative;
  inset: auto;
  z-index: 0;
  order: 2;
  width: 100%;
  overflow: hidden;
  background: var(--surface);
}
.lab:not(.station-view) .lab-visual .room {
  position: relative;
  inset: auto;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: saturate(0.9);
}
.lab:not(.station-view) .lab-visual::after {
  content: '';
  position: absolute;
  inset: 55% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent, #191613a8);
  z-index: 1;
}
.lab:not(.station-view) .entry {
  position: absolute;
  left: 24px;
  right: auto;
  bottom: 24px;
  z-index: 2;
  width: 220px;
  margin: 0;
  padding: 0 0 44px;
  gap: 0;
}
.lab:not(.station-view) .shade {
  display: none;
}
.lab:not(.station-view) footer {
  order: 3;
}
.station-view .lab-visual {
  overflow: visible;
}
@media (max-width: 700px) {
  .lab:not(.station-view) .welcome {
    display: block;
    margin: 0;
  }
  .lab:not(.station-view) .welcome p {
    margin-top: 12px;
    margin-bottom: 0;
  }
  .lab:not(.station-view) .lab-visual {
    padding-bottom: 208px;
  }
  .lab:not(.station-view) .lab-visual .room {
    left: -35%;
    width: 135%;
  }
  .lab:not(.station-view) .entry {
    left: 8px;
    right: auto;
    bottom: 12px;
    width: 200px;
    padding-bottom: 40px;
  }
  .lab:not(.station-view) .entry .enter-button {
    --entry-size: 144px;
  }
  .lab:not(.station-view) .entry .input-icons {
    padding: 22px 16px;
    gap: 4px;
  }
  .lab:not(.station-view) .entry .input-icon {
    font-size: 9px;
  }
  .lab:not(.station-view) .entry .input-icon svg {
    max-width: 40px;
    height: 24px;
  }
  .lab:not(.station-view) .entry .enter-heading {
    font-size: 16px;
    width: 190px;
  }
}
.station-view .entry {
  position: absolute;
  left: 48px;
  top: calc(100svh - 340px);
  z-index: 2;
}
@media (max-width: 700px) {
  .station-view .entry {
    left: 24px;
  }
}
.lab:not(.station-view) footer {
  order: 3;
}
.lab:not(.station-view) .welcome {
  order: 1;
}
.lab:not(.station-view) .lab-visual {
  order: 2;
}

/* Give the company identity priority; keep the footer quiet and complete. */
.brand {
  font-size: clamp(48px, 4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 100%;
}
.brand span {
  font-size: 20px;
  letter-spacing: 0.3em;
  margin-top: 10px;
  font-weight: 600;
}
header {
  align-items: center;
  padding-bottom: 12px;
}
footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px 32px;
  padding: 24px 0 8px;
  font-size: 13px;
  line-height: 1.6;
}
.footer-identity strong {
  display: block;
  font: 600 18px/1.3 var(--display);
  color: var(--ink);
  margin-bottom: 8px;
}
.footer-identity p {
  margin: 0;
  max-width: 60ch;
}
footer a {
  color: var(--accent);
  gap: 12px;
  align-self: start;
  min-height: 44px;
}
footer a:hover {
  text-decoration: underline;
}
footer .legal {
  grid-column: 1/-1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #89705140;
  font-size: 11px;
  max-width: none;
  letter-spacing: 0.015em;
}
@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  nav {
    width: 100%;
  }
  .stations {
    justify-content: space-between;
  }
  .brand {
    font-size: clamp(32px, 5.4vw, 48px);
  }
  .brand span {
    font-size: 16px;
    margin-top: 8px;
  }
}
@media (max-width: 700px) {
  footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 24px;
  }
  .footer-identity strong {
    font-size: 16px;
  }
  .footer-identity p {
    font-size: 12px;
  }
  footer .legal {
    grid-column: 1;
    margin-top: 4px;
    font-size: 11px;
  }
  footer a {
    font-size: 13px;
  }
}

nav .station-hint {
  margin: 28px 0 0;
  text-align: center;
  max-width: 352px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.entry .entry-note {
  margin: 48px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink);
  max-width: 220px;
  text-shadow: 0 1px 4px var(--shadow);
}
.lab:not(.station-view) .entry {
  padding-bottom: 0;
}
.lab:not(.station-view) .welcome h1 {
  grid-row: 1/3;
}
@media (max-width: 900px) {
  nav .station-hint {
    max-width: none;
  }
}
@media (max-width: 700px) {
  nav {
    padding-bottom: 0;
  }
  .lab:not(.station-view) .lab-visual {
    padding-bottom: 248px;
  }
  .entry .entry-note {
    margin-top: 44px;
    font-size: 12px;
    max-width: 200px;
  }
}
.station-view footer,
.station-view .entry-note,
.station-view nav .station-hint {
  display: none;
}

:root {
  --display: var(--font-display);
  --body: var(--font-body);
}
.masthead {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}
.masthead nav {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.masthead nav a {
  min-width: 0;
  white-space: normal;
}
.masthead nav a:hover {
  color: var(--ink);
}
.lab {
  max-width: 1600px;
  margin: auto;
}
.lab .experience {
  padding: 0;
  order: 2;
}
.lab-visual.scene-viewport {
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.lab .room-details {
  order: 3;
}
.entry-launch {
  margin-top: 0;
}
.footer-note {
  grid-column: 1/-1;
  margin: 0;
  font-size: 12px;
}
.lab:not(.project-view) .room-details {
  display: none;
}
.lab:not(.station-view) .welcome {
  padding: 0;
}
.lab .station-sign {
  z-index: 3;
}
.lab.station-view .lab-visual {
  z-index: 0;
}
.lab.station-view .shade {
  display: none;
}
.lab.station-view .lab-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, #19161390, transparent 35%, #191613c0);
}
.lab.station-view .entry {
  z-index: 2;
}
.lab.project-view .experience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.lab.project-view .welcome {
  display: none;
}
.lab.project-view .lab-visual {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 4/3;
}
.lab.project-view .room {
  height: 100%;
  object-fit: cover;
}
.lab.project-view .entry {
  display: none;
}
.lab.project-view .room-details {
  margin: 0;
}
.lab.project-view .image-error {
  position: static;
}
.lab.image-missing .lab-visual {
  min-height: 320px;
}
.lab .image-error {
  z-index: 4;
}
.entry-launch .enter-heading {
  color: var(--ink);
}
@media (max-width: 900px) {
  .lab.project-view .experience {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lab.project-view .lab-visual {
    aspect-ratio: 4/3;
  }
  .masthead nav {
    width: 100%;
  }
}
.homepage:not(.enhanced) .room-details {
  display: block !important;
}
.homepage:not(.enhanced) .entry-launch {
  display: none;
}
.masthead .stations a {
  inset: auto;
}
.brand.wordmark {
  display: block;
}
footer {
  width: 100%;
  margin: 0;
}
.lab:not(.station-view) .lab-visual #lab-art {
  width: 100%;
  height: auto;
  max-width: none;
}
@media (max-width: 700px) {
  .lab:not(.station-view) .lab-visual #lab-art {
    width: 135%;
    left: -35%;
  }
}

.station-home {
  --home-size: 180px;
  display: none;
  position: absolute;
  right: 48px;
  bottom: 64px;
  z-index: 4;
  width: var(--home-size);
  height: var(--home-size);
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 var(--edge),
    inset 0 -6px 12px var(--shadow),
    0 8px 20px var(--shadow);
  isolation: isolate;
}
.lab.station-view:not(.project-view) .welcome {
  display: none;
}
.lab.station-view:not(.project-view) #lab-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100svh;
  max-width: none;
  object-fit: cover;
}
.station-view:not(.project-view) .station-home {
  display: block;
}
.station-home::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--highlight);
  border-bottom: 2px solid var(--edge);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  transform: rotate(-35deg);
  transition: transform 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.home-peek {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background-position: 100% 50%;
  background-size: cover;
  background-color: var(--paper);
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* The wide crew portrait sits over a softened full-bleed copy of itself.
   Its feathered edges keep the circle filled without cropping away faces. */
.home-peek::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: inherit;
  filter: blur(8px) brightness(0.65);
}
.home-crew {
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: 130% auto;
  background-position: 100% 50%;
  background-repeat: no-repeat;
  mask-image: linear-gradient(transparent 5%, #000 20%, #000 78%, transparent 96%);
}
.home-circle-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  padding: 2px;
  transform: translate(-50%, -50%);
  font: 600 18px/1.3 var(--display);
  transition:
    transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.home-return-label {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  font: 600 14px/1.3 var(--display);
  text-align: center;
  color: var(--ink);
  text-shadow: 0 1px 4px var(--shadow);
}
.station-home:focus-visible .home-peek {
  background-image: url('/lab/home-crew.webp');
  clip-path: circle(50% at 50% 50%);
}
.station-home:focus-visible .home-circle-label {
  transform: translate(-50%, calc(var(--home-size) / 2 + 12px));
  opacity: 0;
}
.station-home:focus-visible::before {
  transform: rotate(145deg);
}
@media (hover: hover) and (pointer: fine) {
  .station-home:hover .home-peek {
    background-image: url('/lab/home-crew.webp');
    clip-path: circle(50% at 50% 50%);
  }
  .station-home:hover .home-circle-label {
    transform: translate(-50%, calc(var(--home-size) / 2 + 12px));
    opacity: 0;
  }
  .station-home:hover::before {
    transform: rotate(145deg);
  }
}
@media (max-width: 700px) {
  .station-home {
    --home-size: 144px;
    right: 24px;
    bottom: 40px;
  }
  .home-return-label {
    width: 160px;
    font-size: 13px;
  }
  .home-circle-label {
    font-size: 16px;
  }
}
/* Apply the approved phone entry scale in station views too. On the narrowest
   screens the return medallion fits below its label, rather than over it. */
@media (max-width: 700px) {
  .lab.station-view .entry .enter-button {
    --entry-size: 144px;
  }
  .lab.station-view .entry .enter-heading {
    font-size: 16px;
    width: 190px;
  }
}
@media (max-width: 400px) {
  .station-home {
    --home-size: 120px;
  }
  .home-return-label {
    width: 140px;
    font-size: 12px;
  }
}

/* Oilfield plaque candidate: a solid wall plate and a clear project action. */
.sign-oilfield-action {
  display: none;
}
.station-sign[data-room='oilfield'] {
  top: 20%;
  width: 328px;
  padding: 20px 24px 16px;
  gap: 8px;
  border: 1px solid var(--highlight);
  border-radius: 3px;
  background:
    radial-gradient(
      circle at 8px 8px,
      var(--highlight) 0 1px,
      var(--edge) 1px 3px,
      transparent 3px
    ),
    radial-gradient(
      circle at calc(100% - 8px) 8px,
      var(--highlight) 0 1px,
      var(--edge) 1px 3px,
      transparent 3px
    ),
    radial-gradient(
      circle at 8px calc(100% - 8px),
      var(--highlight) 0 1px,
      var(--edge) 1px 3px,
      transparent 3px
    ),
    radial-gradient(
      circle at calc(100% - 8px) calc(100% - 8px),
      var(--highlight) 0 1px,
      var(--edge) 1px 3px,
      transparent 3px
    ),
    linear-gradient(145deg, #342b20, #211d18 65%);
  box-shadow:
    inset 0 0 0 4px #211d18,
    inset 0 0 0 5px var(--edge),
    0 3px 0 #080604,
    0 8px 18px #08060480;
  overflow: hidden;
}
.station-sign[data-room='oilfield'] .station-number {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.station-sign[data-room='oilfield'] strong {
  font-size: 24px;
  line-height: 1.15;
  color: var(--ink);
}
.station-sign[data-room='oilfield'] .sign-default-action {
  display: none;
}
.station-sign[data-room='oilfield'] .sign-oilfield-action {
  display: inline;
}
.station-sign[data-room='oilfield'] .sign-action {
  position: relative;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 8px 12px;
  border: 1px solid var(--edge);
  background: #433321;
  color: var(--highlight);
  font-weight: 600;
  transition:
    background 240ms,
    color 240ms;
}
.station-sign[data-room='oilfield'] .sign-arrow {
  font-size: 20px;
  line-height: 1;
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.station-sign[data-room='oilfield']::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, #f7ca8e20 48%, transparent 70%);
  transform: translateX(-120%);
}
.station-sign[data-room='oilfield']:focus-visible .sign-action {
  background: var(--accent);
  color: #20170e;
}
.station-sign[data-room='oilfield']:focus-visible .sign-arrow {
  transform: translateX(3px);
}
.station-sign[data-room='oilfield']:focus-visible::after {
  animation: plaque-sheen 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (hover: hover) and (pointer: fine) {
  .station-sign[data-room='oilfield']:hover .sign-action {
    background: var(--accent);
    color: #20170e;
  }
  .station-sign[data-room='oilfield']:hover .sign-arrow {
    transform: translateX(3px);
  }
  .station-sign[data-room='oilfield']:hover::after {
    animation: plaque-sheen 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}
@keyframes plaque-sheen {
  to {
    transform: translateX(120%);
  }
}
@media (max-width: 700px) {
  .station-sign[data-room='oilfield'] {
    top: 200px;
    width: min(304px, calc(100% - 48px));
    padding: 16px 20px 12px;
    gap: 6px;
  }
  .station-sign[data-room='oilfield'] strong {
    font-size: 20px;
  }
}

/* The bounded startup guard hides lazy project media until enhancement or fallback. */
html.startup-pending .homepage:not(.enhanced) .room-details {
  display: none !important;
}
