/* City and office interaction layouts */
:root {
  --city-ink: #f4efe8;
  --city-surface: #13171a;
  --city-line: #33383c;
  --city-muted: #aaa8a3;
  --city-flame: #ff794e;
}
[hidden] { display: none !important; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 450;
  padding: 13px 18px;
  background: var(--city-flame);
  color: #120b08;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.primary-nav a[aria-current] { color: var(--city-flame); }
.hero-copy .hero-description { text-wrap: pretty; }

.home-v3 .hero {
  grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr);
  column-gap: clamp(22px,4vw,68px);
  padding-block: clamp(24px,4.5vw,74px) 26px;
  min-height: 0;
}
.home-v3 .hero-copy {
  padding: 25px 0 38px;
  justify-content: center;
}
.city-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .11em;
  text-transform: uppercase;
  line-height: 1.45;
  color: #ff9977;
}
.city-kicker > span { width: 26px; height: 1px; background: currentColor; flex: none; }
.home-v3 .hero h1 {
  color: var(--city-ink);
  font-size: clamp(64px,7.2vw,112px);
  line-height: .94;
  letter-spacing: -.08em;
  margin: 26px 0;
}
.home-v3 .hero h1 em { color: var(--city-flame); }
.home-v3 .hero-description { max-width: 42ch; color: #c2bfba; }
.home-v3 .hero-buttons { align-items: center; gap: 22px; }
.home-v3 .hero-buttons .btn {
  min-width: auto;
  min-height: 52px;
  height: auto;
  padding: 15px 20px;
  background: var(--city-flame);
}
.home-workflow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #e3ded8;
  font-size: 13px;
  font-weight: 650;
  padding-block: 10px;
}
.home-workflow span { color: var(--city-flame); }
.home-v3 .metrics { margin-top: clamp(14px,2vw,34px); }
.home-v3 #offices { border-top: 1px solid var(--city-line); }

.world-stage {
  border-color: #554037;
  background: #12151b;
  margin-top: 0;
  min-height: clamp(420px,39vw,650px);
  touch-action: auto;
}
.world-stage::before { display: none; }
.world-stage::after { box-shadow: inset 0 0 70px #05050b65; }
.world-stage canvas { filter: none; touch-action: pan-y pinch-zoom; }
.world-stage.is-expanded canvas { touch-action: none; }
.world-stage.is-expanded {
  width: auto;
  margin: 0;
  inset: 12px;
  min-height: 0;
  z-index: 180;
}
.world-stage .world-top,
.world-stage.is-expanded .world-top {
  top: 14px;
  left: 15px;
  right: 15px;
  gap: 8px;
  align-items: center;
}
.world-live {
  font: 700 11px/1.3 Arial,sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f7ede4;
}
.world-live .live-dot { margin-right: 2px; }
.city-light {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #71605b;
  background: #161517ed;
  pointer-events: auto;
}
.city-light button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #ded6cf;
  font-size: 11px;
}
.city-light button[aria-pressed="true"] { background: #ffd4b9; color: #20110a; }
.world-expand, .world-close, .world-stage.is-expanded .world-close {
  top: 65px;
  right: 15px;
  min-height: 36px;
  font-size: 11px;
  letter-spacing: 0;
}
.world-stage .world-controls, .world-stage.is-expanded .world-controls {
  bottom: 64px;
  right: 15px;
  gap: 4px;
}
.world-controls button { width: 44px; height: 44px; }
.world-stage .world-bottom, .world-stage.is-expanded .world-bottom {
  left: 15px;
  right: 15px;
  bottom: 12px;
  min-height: 34px;
  z-index: 9;
  font: 11px/1.3 Arial,sans-serif;
  color: #d7c4b8;
}
.world-bottom .map-instruction { white-space: normal; max-width: 68%; }
.map-pause {
  border: 1px solid #6b5a54;
  background: #15171aed;
  color: var(--city-ink);
  padding: 7px 10px;
  min-height: 34px;
  pointer-events: auto;
}
.world-hotspots .hotspot {
  display: flex;
  align-items: center;
  gap: 6px;
  left: 0;
  top: 0;
  width: max-content;
  min-height: 30px;
  padding: 4px 9px 4px 5px;
  letter-spacing: 0;
  white-space: nowrap;
  font: 700 12px/1.15 Arial,sans-serif;
  border-radius: 5px;
  background: #11171bf5;
  border: 1px solid var(--pin);
  color: #f7f1ea;
  box-shadow: 0 2px 9px #0009;
  transition: background .18s,color .18s, box-shadow .18s;
  backdrop-filter: none;
}
.hotspot-number {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  border-radius: 3px;
  background: color-mix(in srgb,var(--pin),transparent 84%);
  color: var(--pin);
  font: 700 10px/1 monospace;
  font-variant-numeric: tabular-nums;
}
.hotspot-short, .has-compact-labels .hotspot-name { display: none; }
.has-compact-labels .hotspot-short { display: block; }
.has-compact-labels .world-hotspots .hotspot {
  min-height: 25px;
  gap: 4px;
  padding: 3px 6px 3px 3px;
  font-size: 11px;
}
.has-compact-labels .hotspot-number { min-width: 16px; height: 16px; font-size: 9px; }
.world-hotspots .hotspot[hidden] { display: none !important; }
.world-hotspots .hotspot::before, .world-hotspots .hotspot::after { content: none; }
.world-hotspots .hotspot:is(:hover,:focus-visible,.active) {
  color: #160d09;
  background: var(--pin);
  border-color: var(--pin);
  box-shadow: 0 0 16px color-mix(in srgb,var(--pin),transparent 42%);
}
.world-hotspots .hotspot:is(:hover,:focus-visible,.active) .hotspot-number {
  color: inherit;
  background: #11171b1f;
}
.city-directory {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  overflow: visible;
  padding: 8px 0 0;
  gap: 5px;
}
.city-directory::before { content: none; }
.city-directory a {
  min-width: 0;
  min-height: 43px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #131719;
  border: 1px solid #353b3f;
  color: #e7e2dc;
  font-size: 12px;
  line-height: 1.25;
  transition: border-color .2s, background .2s;
}
.city-directory a span {
  font: 700 10px/1 monospace;
  color: var(--pin);
  flex: none;
}
.city-directory a:is(:hover,:focus-visible) { border-color: var(--pin); background: #22262a; }
.city-main { padding: 30px 0 40px; }
.city-back { display: inline-flex; padding-block: 7px; color: #c5bdb5; font-size: 13px; }
.city-page-head h1 { font-size: clamp(44px,6.2vw,92px); margin-top: 10px; }
.city-page-head p { font-size: 15px; margin-bottom: 8px; }
.city-v3 .world-stage { min-height: clamp(440px,60vw,700px); }
.city-v3 .world-stage.is-expanded { min-height: 0; }
.city-directory-heading { font-size: clamp(22px,3vw,36px); letter-spacing: -.035em; margin: 24px 0 4px; }
.route-tour {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: clamp(22px,4vw,60px);
  padding: clamp(18px,3vw,42px);
  border: 1px solid #88523e;
  background: radial-gradient(ellipse at right,#55332644,transparent 65%), #181719;
}
.route-tour h2 { font-size: clamp(23px,3vw,40px); letter-spacing: -.05em; margin: 0; }
.route-tour p { color: #d3c4ba; font-size: 14px; line-height: 1.5; margin: 9px 0 0; }
.route-tour .btn { flex: none; }
.direction-card { min-width: 0; overflow-wrap: anywhere; }
.direction-card .dc-foot { gap: 8px; }
.novel-section-title h2 { overflow-wrap: anywhere; }

/* The office header stays visible while the scene and content scroll. */
.office-modal .office-shell {
  --office-bg: #10161b;
  --office-accent: inherit;
  width: min(1270px,calc(100% - 40px));
  max-height: calc(100dvh - 36px);
  border-color: #516163;
  background: var(--office-bg);
}
.office-modal .office-shell-top {
  position: sticky;
  z-index: 9;
  top: 0;
  background: #131b20;
  min-height: 58px;
  padding: 9px 21px;
  color: var(--office-accent);
}
.office-shell-top #officeRoomCode { font-size: 11px; }
.office-shell-top #officeTourStatus { margin-inline: auto 0; color: #c5d4d9; }
.office-shell-top #officeClose { min-height: 44px; flex: none; color: #f8f0eb; }
.office-modal .office-layout {
  grid-template-columns: minmax(0,1.22fr) minmax(0,.78fr);
  min-height: 0;
}
.office-modal .office-visual {
  min-height: 0;
  justify-content: center;
  padding-top: 15px;
}
.office-modal .office-svg-host { min-height: 0; padding: 0; }
.office-modal .office-visual-foot { margin-top: 0; justify-content: center; text-align: center; line-height: 1.5; }
.office-modal .office-info { padding: clamp(22px,3vw,36px); }
.office-info #officeModalTitle { margin-top: 0; font-size: clamp(30px,4.2vw,58px); overflow-wrap: anywhere; }
.office-modal .office-intro { margin-bottom: 17px; line-height: 1.55; }
.office-modal .office-stations { padding-top: 0; }
.office-modal .office-stations-buttons { margin-top: 0; border-top: 0; }
.office-modal [data-office-station] { min-height: 44px; padding: 9px 8px; }
.office-modal [data-office-station]:hover { padding-left: 8px; }
.office-modal .office-station-description { min-height: 84px; padding: 12px; margin-top: 12px; }
.office-station-description h3 { margin-top: 0; }
.office-demo { padding-top: 13px; }
.office-demo-button {
  border: 1px solid color-mix(in srgb,var(--office-accent),transparent 28%);
  padding: 8px 12px;
  min-height: 44px;
  background: #172127;
  color: var(--office-accent);
  font-size: 13px;
  font-weight: 750;
}
.office-demo-button:disabled { opacity: .65; cursor: wait; }
.office-demo-result { min-height: 1.35em; font-size: 12px; line-height: 1.4; color: #c6d2d8; margin: 9px 0 0; }
.demo-running .office-desk.active .office-monitor-lines { animation: ovBlink .65s ease infinite; }
.office-desk:focus-visible .office-station-ring { stroke: #fff; stroke-width: 5px; }
.office-shell-foot button:disabled { opacity: .42; cursor: default; }
.office-modal .office-cta-row { padding-top: 12px; }
.office-modal .office-cta-row > * { min-width: 0; }
.office-modal .office-shell-foot { padding: 10px 21px; }
.office-modal .office-shell-foot button { min-height: 44px; line-height: 1.35; }

@media (max-width: 980px) {
  .home-v3 .hero { gap: 13px; }
  .home-v3 .hero-copy { padding: 17px 0 13px; }
  .home-v3 .hero h1 { font-size: clamp(60px,10vw,86px); }
  .world-stage { min-height: clamp(365px,60vw,570px); }
  .office-modal .office-layout { display: block; }
  .office-modal .office-svg-host { max-height: min(45dvh,420px); }
  .office-modal .office-svg-host svg { max-height: min(45dvh,420px); }
  .office-visual-foot { padding-block: 9px; }
}
@media (max-width: 600px) {
  .home-v3 .hero { padding-top: 24px; }
  .home-v3 .hero h1 { font-size: clamp(52px,13vw,73px); margin: 19px 0; }
  .home-v3 .hero-buttons { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 17px; }
  .home-v3 .hero-buttons .btn { width: auto; flex: none; }
  .home-v3 .hero-copy { padding-top: 4px; }
  .city-main { padding-top: 19px; }
  .city-page-head h1 { text-wrap: balance; font-size: clamp(42px,10.8vw,58px); }
  .city-page-head p { font-size: 13px; }
  .city-v3 .world-stage, .world-stage { min-height: clamp(355px,57dvh,475px); }
  .world-stage.is-expanded { inset: 0; }
  .city-directory { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .city-directory a { min-height: 44px; padding-inline: 11px; }
  .route-tour { align-items: start; flex-direction: column; }
  .route-tour .btn { width: auto; min-width: 0; }
  .office-modal .office-shell {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
  }
  .office-modal .office-shell-top { padding-inline: 12px; gap: 8px; }
  .office-modal .office-shell-top span { max-width: none; }
  .office-shell-top #officeRoomCode { font-size: 9px; }
  .office-shell-top #officeTourStatus { font-size: 9px; text-align: center; }
  .office-modal .office-visual { padding-top: 4px; }
  .office-modal .office-visual-foot { display: none; }
  .office-modal .office-info { padding: 18px 16px; }
  .office-modal .office-station-description { min-height: 80px; }
  .office-modal .office-shell-foot { padding-inline: 14px; }
  .office-modal .office-shell-foot button { font-size: 10px; letter-spacing: 0; }
  .form-field input, .form-field textarea { font-size: 16px; }
}
@media (max-height: 420px) and (orientation: landscape) {
  .world-stage.is-expanded .world-controls { bottom: 55px; }
  .office-modal .office-shell { max-height: 100dvh; }
}

.world-stage:not(.city-ready) {
  background: #16171c url('/assets/city-map.webp') center / contain no-repeat;
}
.world-stage:not(.city-ready) :is(.world-controls,.city-light,.world-expand,.map-pause) { visibility: hidden; }
[data-reveal]:focus-within { opacity: 1 !important; transform: none !important; }
.plan-overview {
  margin-top: clamp(22px,4vw,49px);
  padding: clamp(19px,3vw,37px);
  border: 1px solid var(--city-line);
  background: var(--city-surface);
}
.plan-overview h2 { margin: 0; font-size: clamp(23px,3vw,36px); letter-spacing: -.045em; line-height: 1.1; }
.plan-overview p { color: var(--city-muted); line-height: 1.5; }
.plan-overview dl { margin: 22px 0 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.plan-overview dl > div { padding-top: 12px; border-top: 1px solid var(--city-line); }
.plan-overview dt { color: #c6bdb7; font-size: 13px; }
.plan-overview dd { margin: 8px 0 0; color: var(--city-flame); font-size: clamp(23px,3vw,39px); font-weight: 750; letter-spacing: -.04em; }
@media (max-width: 440px) {
  .plan-overview dl { grid-template-columns: minmax(0,1fr); }
  .plan-overview dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .plan-overview dd { margin: 0; }
}
@media (max-width: 1100px) {
  html:not(.menu-ready) .menu-button { display: none; }
  html:not(.menu-ready) .site-header { height: auto; position: relative; }
  html:not(.menu-ready) .header-inner { flex-wrap: wrap; padding-block: 10px; }
  html:not(.menu-ready) .primary-nav {
    display: flex;
    flex: 1 0 100%;
    position: static;
    order: 3;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    gap: 0 15px;
    box-shadow: none;
    background: transparent;
  }
  html:not(.menu-ready) .primary-nav a { padding: 8px 0; }
}
@media (pointer: coarse) {
  .world-stage .map-instruction { max-width: 72%; }
  .world-stage .world-expand { min-height: 44px; }
}
