/* The surface is a short invitation; proof and background follow below. */
.surface {
  height: 100svh;
  min-height: 620px;
}
.surface-header {
  flex-shrink: 0;
}
.surface-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 12px;
}
.invitation {
  padding: 45px 0;
  max-width: 68vw;
}
.invitation-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
  margin-top: 18px;
  font-size: 11px;
}
.invitation-shortcuts button {
  padding: 12px 0;
}
.surface-footer {
  flex-shrink: 0;
}
.surface-image {
  filter: saturate(0.65);
}
.surface-work,
.about-section {
  padding: 100px 7vw;
  background: #141914;
  scroll-margin-top: 25px;
}
.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10vw;
  align-items: end;
}
.section-intro > .eyebrow {
  grid-column: 1/-1;
}
.section-intro h2,
.about-section h2 {
  font-size: clamp(40px, 4.3vw, 70px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.08;
  margin: 0;
}
.section-intro h2 em,
.about-section h2 em {
  color: #d9c29f;
}
.section-intro > p:last-child {
  color: #c9c5b5;
  max-width: 430px;
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px 35px;
  margin-top: 65px;
}
.work-card h3 {
  font-size: 30px;
  letter-spacing: -0.04em;
  font-weight: 400;
  margin: 0 0 15px;
}
.work-card > .eyebrow {
  margin: 24px 0 13px;
}
.work-card > p:not(.eyebrow) {
  color: #c4c6b7;
  line-height: 1.85;
  font-size: 14px;
  max-width: 510px;
}
.work-visual {
  display: block;
  position: relative;
  aspect-ratio: 1.5;
  overflow: hidden;
  border: 1px solid #c3b78a35;
  background: #20281f;
}
.work-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s;
}
.work-visual:hover img {
  transform: scale(1.025);
}
.work-visual > span {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 12px 18px;
  background: #151b15ed;
  color: #eaddc5;
  font-size: 12px;
}
.product-link {
  display: inline-block;
  border-bottom: 1px solid #b2a17b80;
  font-size: 12px;
  line-height: 1.7;
  padding: 10px 0;
  color: #e4c89e;
}
.work-diagram {
  aspect-ratio: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid #c3b78a35;
  background: radial-gradient(ellipse at center, #384437, #1c251e 70%);
  gap: 14px;
  text-align: center;
}
.work-diagram > span {
  font:
    9px Mono,
    monospace;
  letter-spacing: 2px;
  border: 1px solid #9aaf9280;
  padding: 12px 25px;
  border-radius: 30px;
}
.work-diagram strong {
  font-size: clamp(24px, 3vw, 45px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.work-diagram strong em {
  color: #dfc49c;
}
.work-diagram small {
  position: absolute;
  bottom: 18px;
  font:
    7px Mono,
    monospace;
  letter-spacing: 1px;
  color: #adb9a4;
}
.work-diagram i {
  font-style: normal;
  color: #adc4a4;
  line-height: 1;
}
.adra-diagram {
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  gap: 12px;
  padding: 50px 40px;
}
.adra-diagram strong {
  grid-column: 1/-1;
}
.adra-diagram i:nth-of-type(2) {
  display: none;
}
.adra-diagram > span {
  padding: 10px;
  font-size: 8px;
}
.iris-diagram {
  background: radial-gradient(ellipse at center, #413c30, #211f19 70%);
}
.about-section {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px 10vw;
  background: #191c15;
}
.about-copy p,
.colony-origin > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.95;
  color: #d1cbb9;
  margin: 0 0 20px;
}
.about-copy a:not(.product-link),
.colony-origin > a {
  text-decoration: underline;
  text-decoration-color: #bcad8680;
  text-underline-offset: 5px;
}
.colony-origin > a {
  font-size: 12px;
}
.about-section .expertise {
  margin: 0;
  max-width: none;
}
.about-section .expertise-row {
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 24px;
}
.about-section .expertise-row h2 {
  font:
    8px Mono,
    monospace;
  letter-spacing: 1.4px;
}
.about-section .expertise-row p {
  font-size: 12px;
}
.about-section .expertise-support {
  margin-left: 0;
}
.profile-footer {
  padding: 50px 7vw;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  font-size: 18px;
  background: #10150f;
}
.profile-footer nav {
  display: flex;
  gap: 25px;
  font-size: 11px;
}
/* Loading never covers the exit or map; slow loads have a readable alternative. */
.world-loading {
  z-index: 4;
  flex-direction: column;
  padding: 110px 30px;
  text-align: center;
  line-height: 1.7;
}
.world-loading button {
  padding: 15px;
  border: 1px solid var(--line);
  font:
    11px Inter,
    sans-serif;
}
.world-loading.is-ready {
  visibility: hidden;
}
.expedition-header {
  background: linear-gradient(#11170feb, transparent);
  gap: 10px;
}
.junction-shortcuts {
  display: flex;
  gap: 24px;
  margin: 14px 0;
  font-size: 11px;
  flex-wrap: wrap;
}
.junction-shortcuts button,
.junction-shortcuts a {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.travel-option {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #d2c7b2;
  pointer-events: auto;
}
.travel-option input {
  accent-color: #d8b383;
  width: 16px;
  height: 16px;
}
.begin-trail {
  margin-top: 10px;
}
.room-proof {
  max-width: 370px;
  margin: 17px 0 0;
  border-top: 1px solid #d4bd8e55;
  padding-top: 13px;
}
.room-proof a {
  display: block;
}
.room-proof b {
  display: block;
  color: #e6c393;
  font:
    9px Mono,
    monospace;
  letter-spacing: 0.6px;
}
.room-proof span {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  color: #d7cfbd;
  margin-top: 7px;
}
.room-proof small {
  display: block;
  font-size: 9px;
  margin-top: 8px;
  color: #dcb88c;
}
.room-description {
  margin-bottom: 15px;
}
.room-principle {
  font-size: 10px;
}
.room-copy h3 {
  margin-bottom: 18px;
}
.room-copy {
  max-height: calc(100% - 90px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.product-stories {
  grid-template-columns: repeat(2, 1fr);
}
.scene-meaning {
  max-width: 240px;
}
.world-status {
  top: auto;
  bottom: 90px;
  background: #151b15e8;
  padding: 12px;
  max-width: 320px;
  font-size: 9px;
}
.is-fallback .world {
  background: radial-gradient(ellipse at 65% 25%, #344333, #141b15 70%);
}
@media (max-width: 900px) {
  .surface-nav {
    gap: 15px;
  }
  .surface-nav > a[href="#about"] {
    display: none;
  }
  .identity {
    font-size: 15px;
  }
  .identity small {
    font-size: 7px;
  }
  .section-intro {
    gap: 25px;
    grid-template-columns: 1fr;
  }
  .about-section {
    gap: 40px;
    grid-template-columns: 1fr;
  }
  .profile-footer {
    flex-wrap: wrap;
  }
  .expedition-actions {
    gap: 12px;
  }
  .expedition-actions button {
    font-size: 10px;
  }
  .exit-button span {
    margin-left: 7px;
  }
  .room-proof {
    max-width: 320px;
  }
}
@media (max-width: 650px) {
  .surface {
    height: 100svh;
    min-height: 530px;
  }
  .surface-header {
    padding-top: 20px;
    margin: 0 6vw;
    align-items: flex-start;
  }
  .surface-nav {
    gap: 15px;
    font-size: 10px;
  }
  .surface-nav > a[href="#work"] {
    display: none;
  }
  .surface-nav .quiet-link {
    font-size: 10px;
    padding: 0 0 5px;
  }
  .surface-nav .quiet-link span {
    margin-left: 4px;
  }
  .identity {
    font-size: 14px;
    gap: 8px;
  }
  .identity svg {
    width: 23px;
    height: 30px;
  }
  .identity small {
    font-size: 5px;
    letter-spacing: 0.4px;
  }
  .surface-image {
    background-size: cover;
    background-position: center 27%;
  }
  .surface-shade {
    background: linear-gradient(
      0deg,
      #11170f 0%,
      #11170fed 18%,
      #11170f99 56%,
      #11170f22 78%,
      #11170f88
    );
  }
  .invitation {
    margin: auto 6vw 0;
    padding: 75px 0 18px;
    width: auto;
    max-width: none;
  }
  .invitation h1 {
    font-size: clamp(49px, 14.2vw, 83px);
    margin-bottom: 15px;
  }
  .hero-role {
    font-size: 25px;
    margin-bottom: 12px;
  }
  .invitation > .eyebrow {
    font-size: 6px;
    margin-bottom: 16px;
  }
  .invitation-copy {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .enter-button {
    width: 100%;
    max-width: 320px;
    padding: 13px 16px;
    font-size: 12px;
  }
  .invitation-shortcuts {
    justify-content: flex-start;
    gap: 24px;
    font-size: 10px;
    margin-top: 8px;
  }
  .surface-footer {
    margin: 0 6vw;
    padding: 12px 0 17px;
    font-size: 6px;
  }
  .surface-footer button {
    font-size: 7px;
  }
  .entrance-marker {
    display: none;
  }
  .surface-work,
  .about-section {
    padding: 65px 6vw;
  }
  .section-intro h2,
  .about-section h2 {
    font-size: 43px;
  }
  .section-intro > p:last-child {
    font-size: 13px;
  }
  .work-grid {
    grid-template-columns: 1fr;
    margin-top: 35px;
    gap: 50px;
  }
  .work-card > p:not(.eyebrow) {
    font-size: 13px;
  }
  .work-diagram strong {
    font-size: 36px;
  }
  .adra-diagram {
    padding: 32px 25px;
  }
  .about-copy p,
  .colony-origin > p:not(.eyebrow) {
    font-size: 13px;
  }
  .profile-footer {
    padding: 35px 6vw;
    font-size: 16px;
    gap: 25px;
  }
  .profile-footer nav {
    font-size: 10px;
  }
  .expedition-header {
    padding: 13px 5vw;
    align-items: flex-start;
  }
  .colony-home {
    gap: 5px;
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  .colony-home svg {
    width: 22px;
  }
  .colony-home small {
    font-size: 6px;
    letter-spacing: 0;
  }
  .expedition-actions {
    gap: 7px;
  }
  .expedition-actions button {
    font-size: 8px;
    min-height: 36px;
  }
  .exit-button {
    padding: 0 8px;
  }
  .exit-button span {
    margin-left: 2px;
  }
  .junction {
    padding-top: 90px;
    overflow-y: auto;
  }
  .junction-copy {
    max-width: 100%;
  }
  .junction-shortcuts {
    gap: 22px;
    font-size: 10px;
    margin: 5px 0 8px;
  }
  .travel-option {
    font-size: 9px;
  }
  .begin-trail {
    font-size: 11px;
    margin-top: 5px;
  }
  .junction-copy > p:not(.eyebrow) {
    font-size: 11px;
    line-height: 1.7;
  }
  .junction h3 {
    font-size: 34px;
  }
  .junction-foot {
    padding-bottom: 12px;
  }
  .room-copy {
    max-height: calc(100% - 205px);
    padding: 10px 0;
    margin-top: auto;
    margin-bottom: 0;
    overflow-y: auto;
    max-width: 100%;
  }
  .room-copy h3 {
    font-size: 33px;
    margin-bottom: 12px;
  }
  .room-copy .eyebrow {
    font-size: 7px;
    margin-bottom: 10px;
  }
  .room-description {
    font-size: 11px;
    line-height: 1.7;
    margin-bottom: 10px;
  }
  .room-principle {
    font-size: 9px;
    margin: 8px 0;
  }
  .room-proof {
    max-width: 100%;
    margin-top: 12px;
    padding-top: 10px;
  }
  .room-proof span {
    font-size: 10px;
    line-height: 1.7;
  }
  .room-proof b {
    font-size: 8px;
  }
  .room-proof small {
    font-size: 9px;
  }
  .scene-meaning {
    top: 112px;
    max-width: 245px;
  }
  .scene-meaning p > span {
    font-size: 9px;
  }
  .passage-footer {
    padding-top: 12px;
    flex-shrink: 0;
  }
  .world-status {
    bottom: 85px;
    right: 5vw;
    left: 5vw;
    max-width: none;
    z-index: 1;
  }
  .is-fallback .scene-meaning {
    display: none;
  }
  .is-fallback .room-copy {
    max-height: calc(100% - 180px);
    margin-top: 10px;
    margin-bottom: auto;
  }
  .product-stories {
    grid-template-columns: 1fr;
  }
  .ending {
    padding-bottom: 30px;
  }
}
@media (max-width: 650px) and (max-height: 620px) {
  .surface {
    min-height: 480px;
  }
  .invitation {
    padding-top: 42px;
    padding-bottom: 8px;
  }
  .hero-role {
    font-size: 23px;
  }
  .invitation h1 {
    font-size: 49px;
    margin-bottom: 12px;
  }
  .invitation > .eyebrow {
    margin-bottom: 12px;
  }
  .invitation-copy {
    margin-bottom: 16px;
  }
  .surface-footer {
    padding-top: 5px;
  }
  .junction {
    padding-top: 75px;
  }
  .junction h3 {
    font-size: 29px;
    margin-bottom: 10px;
  }
  .junction-copy .eyebrow {
    margin-bottom: 9px;
  }
  .junction-copy > p:not(.eyebrow) {
    font-size: 10px;
  }
  .route-choices {
    gap: 7px;
    margin-top: 15px;
  }
  .route-card {
    padding: 12px;
    min-height: 98px;
  }
  .route-card h4 {
    font-size: 19px;
  }
  .route-card p {
    font-size: 9px;
  }
  .junction-foot {
    margin-top: 12px;
  }
  .room-copy {
    max-height: calc(100% - 165px);
  }
  .scene-meaning {
    top: 93px;
  }
  .room-copy h3 {
    font-size: 28px;
  }
  .room-description {
    font-size: 10px;
  }
  .passage {
    padding-top: 74px;
  }
  .room-proof span {
    font-size: 9px;
  }
}
@media (min-width: 651px) and (max-height: 700px) {
  .surface {
    min-height: 560px;
  }
  .invitation {
    padding: 30px 0;
  }
  .invitation h1 {
    font-size: 80px;
  }
  .hero-role {
    font-size: 26px;
  }
  .room-copy h3 {
    font-size: 36px;
  }
  .room-copy {
    padding: 20px 0;
    max-width: 380px;
  }
  .room-description {
    font-size: 11px;
  }
  .room-proof span {
    font-size: 10px;
  }
  .junction-copy {
    max-width: 520px;
  }
  .junction h3 {
    font-size: 38px;
  }
  .junction-copy > p:not(.eyebrow) {
    font-size: 12px;
  }
  .junction {
    padding-top: 90px;
  }
  .junction-shortcuts {
    margin: 0;
  }
  .route-card {
    min-height: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .work-visual img {
    transition: none;
  }
}
@media (min-width: 651px) and (max-height: 500px) {
  .surface {
    height: 100svh;
    min-height: 350px;
  }
  .surface-header {
    padding-top: 16px;
  }
  .identity small {
    display: none;
  }
  .invitation {
    margin: auto 0 auto 7vw;
    padding: 14px 0;
    width: 70%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 245px;
    gap: 7px 25px;
    align-items: center;
  }
  .invitation > .eyebrow {
    grid-column: 1/-1;
    margin-bottom: 0;
    font-size: 7px;
  }
  .invitation h1 {
    font-size: 62px;
    margin: 0;
    grid-column: 1;
  }
  .hero-role {
    font-size: 22px;
    margin: 0;
    grid-column: 1;
  }
  .invitation-copy {
    font-size: 12px;
    margin: 0;
    grid-column: 1;
  }
  .enter-button {
    grid-column: 2;
    grid-row: 2/4;
    width: 245px;
  }
  .invitation-shortcuts {
    grid-column: 2;
    grid-row: 4;
    font-size: 9px;
    gap: 15px;
    margin: 0;
  }
  .surface-footer {
    padding-bottom: 15px;
    font-size: 6px;
  }
  .surface-footer button {
    font-size: 7px;
  }
}
.work-visual img[src$="mnemosyne.jpg"] {
  object-position: center 27%;
}

@media (max-width: 650px) {
  .room-navigation {
    width: 100%;
    gap: 10px;
  }
  #room-steps button {
    min-width: 0;
    padding: 10px 2px;
    font-size: 9px;
  }
  .room-navigation > button {
    width: 36px;
    height: 36px;
  }
  #room-steps {
    min-width: 0;
  }
}

/* The copy's auto margin already distributes free space. Start-aligned
   content keeps any overflow scrollable from the top on short screens. */
.junction {
  justify-content: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Landing: the concept, then a side view of the whole colony. */
.colony-concept,
.colony-side {
  padding: 100px 7vw;
  background: #15120e;
  scroll-margin-top: 25px;
}
.colony-side {
  padding-top: 30px;
}
.concept-intro {
  max-width: 760px;
}
.concept-intro h2,
.side-intro h2 {
  font-size: clamp(40px, 4.3vw, 70px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.08;
  margin: 0 0 28px;
}
.concept-intro h2 em,
.side-intro h2 em {
  color: #d9c29f;
}
.concept-intro > p:last-child,
.side-intro > p:last-child {
  color: #c9c5b5;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
}
.concept-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 30px;
  margin: 60px 0 0;
  border-top: 1px solid #c3b78a35;
}
.concept-map > div {
  padding-top: 22px;
}
.concept-map dt {
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #f1e7d3;
  margin-bottom: 10px;
}
.concept-map dt span {
  color: #d9b07a;
  margin: 0 4px;
}
.concept-map dd {
  margin: 0;
  color: #bdb9a8;
  font-size: 13px;
  line-height: 1.7;
}
.side-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10vw;
  align-items: end;
}
.side-intro > .eyebrow {
  grid-column: 1/-1;
}
.side-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin: 45px 0 18px;
  padding: 0;
}
.side-legend a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: #ece2cd;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.side-legend a:hover,
.side-legend a:focus-visible {
  border-bottom-color: #b2a17b80;
}
.side-dot {
  width: 9px;
  height: 9px;
  align-self: center;
}
.side-number,
.side-legend small {
  font:
    10px Mono,
    monospace;
  letter-spacing: 1px;
  color: #b8b29f;
}
.side-figure {
  border: 1px solid #c3b78a35;
  background: #110e0b;
  overflow-x: auto;
  scrollbar-color: #8d7857 #1d1812;
}
.side-figure .colony-section {
  max-height: none;
  min-height: 0;
}
.side-hint {
  display: none;
}
.side-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
  margin-top: 34px;
}
.side-actions .enter-button {
  margin: 0;
}
@media (max-width: 650px) {
  .colony-concept,
  .colony-side {
    padding: 70px 6vw;
  }
  .colony-side {
    padding-top: 10px;
  }
  .concept-map {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }
  .concept-map > div {
    padding: 16px 0;
    border-bottom: 1px solid #c3b78a24;
  }
  .side-intro {
    grid-template-columns: 1fr;
  }
  .side-intro h2 {
    margin-bottom: 20px;
  }
  .side-hint {
    display: block;
    margin: 0 0 10px;
    font:
      9px Mono,
      monospace;
    letter-spacing: 1px;
    color: #b8b29f;
  }
  .side-figure .colony-section {
    min-width: 880px;
  }
}

/* What I built: the rest of the work, grouped below the featured stories. */
.more-work {
  margin-top: 70px;
  padding-top: 34px;
  border-top: 1px solid #c3b78a35;
}
.more-work h3,
.more-work h4 {
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 0 0 30px;
}
.more-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 34px 40px;
}
.more-group ul {
  list-style: none;
  display: grid;
  gap: 18px;
  margin: 14px 0 0;
  padding: 0;
}
.more-group li > a,
.more-group li > div {
  display: block;
}
.more-group b {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
  font-weight: 400;
  color: #f1e7d3;
}
.more-group span {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: #bdb9a8;
}
.more-group a:hover b,
.more-group a:focus-visible b {
  color: #e4c89e;
}

/* The ending now lists all the work across its full width; keep it readable
   over whatever chamber the visitor left behind. */
.expedition[data-view="ending"] .world-grade {
  background:
    linear-gradient(115deg, #13100cf2, #13100cdb),
    linear-gradient(0deg, #13100c, transparent);
}

/* Warm charcoal throughout, matching the entrance photograph rather than a
   green-tinted black. */
.profile-footer {
  background: #120f0b;
}
/* The entrance shade uses the photograph's warm black, not a green-tinted one. */
.surface-shade {
  background:
    linear-gradient(
      90deg,
      #14100beb 0%,
      #14100bc2 24%,
      #14100b3d 61%,
      #14100b0d
    ),
    linear-gradient(
      0deg,
      #120f0be6,
      transparent 28%,
      transparent 76%,
      #120f0b94
    );
}
@media (max-width: 650px) {
  .surface-shade {
    background: linear-gradient(
      0deg,
      #14100b 0%,
      #14100bed 18%,
      #14100b99 56%,
      #14100b22 78%,
      #14100b88
    );
  }
}
