:root {
  color-scheme: light;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #0b1511;
  --forest: #14231d;
  --forest-2: #1e342a;
  --paper: #f6f7f4;
  --cream: #efede4;
  --soft: #e8ece8;
  --muted: #69766f;
  --line: #d4dad5;
  --orange: #ef6b34;
  --orange-dark: #b74921;
  --mobility: #dfe9e3;
  --stay: #e7e0d4;
  --wellness: #dfe9e8;
  --commerce: #f1dfcf;
  --ops: #dcded8;
  --future: #eff0ec;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.app-shell { min-height: 100vh; }
.topbar {
  width: min(1560px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand span { display: grid; gap: 3px; }
.brand strong { font-size: 16px; letter-spacing: -.03em; }
.brand small { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #536159;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .11em;
  white-space: nowrap;
}
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px #ef6b3414; }
.link-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
}

.workspace { width: min(1560px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 64px; }
.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr);
  gap: 70px;
  align-items: end;
}
.eyebrow { margin: 0 0 14px; color: var(--orange-dark); font-size: 10px; font-weight: 950; letter-spacing: .17em; }
.intro-panel h1 { margin: 0; max-width: 890px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 5.8vw, 92px); line-height: .92; letter-spacing: -.058em; }
.lead { max-width: 890px; margin: 26px 0 0; color: #4f5d56; font-size: 17px; line-height: 1.65; }
.metric-rack { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); background: #fff; }
.metric-rack article { min-height: 108px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: end; }
.metric-rack article:nth-child(even) { border-right: 0; }
.metric-rack article:nth-last-child(-n+2) { border-bottom: 0; }
.metric-rack b { font-size: 27px; letter-spacing: -.05em; }
.metric-rack span { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.control-strip {
  margin-top: 44px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  border: 1px solid var(--line);
  background: #fff;
}
.control-group { min-height: 66px; display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-right: 1px solid var(--line); }
.control-group:last-child { border-right: 0; }
.control-group > span { margin-right: 5px; color: #738078; font-size: 8px; font-weight: 950; letter-spacing: .15em; }
.control-group button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d9ddd9;
  border-radius: 999px;
  background: #fff;
  color: #46524c;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
}
.control-group button:hover { border-color: #9da69f; }
.control-group button.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.layer-control { justify-content: flex-end; }
.layer-control label { display: inline-flex; align-items: center; gap: 5px; color: #4e5d55; font-size: 10px; font-weight: 750; }
.layer-control input { accent-color: var(--forest); }

.map-layout { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: stretch; }
.map-card, .detail-card { border: 1px solid var(--line); background: #fff; }
.map-card { min-width: 0; }
.map-toolbar { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.map-toolbar > div:first-child { display: grid; gap: 3px; }
.map-toolbar strong { font-size: 13px; }
.map-toolbar span { color: var(--muted); font-size: 10px; }
.map-scale { display: flex; align-items: end; gap: 8px; white-space: nowrap; }
.map-scale i { display: block; width: 100px; height: 8px; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); border-bottom: 2px solid var(--ink); }
.map-scale span { color: var(--ink); font-weight: 800; }
.map-scroller { overflow: auto; background: #f3f2ed; }
#hubMap { display: block; width: 100%; min-width: 900px; height: auto; background: #f3f2ed; }

.map-legend { min-height: 52px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; color: #5e6a63; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.legend-swatch { width: 13px; height: 13px; border: 1px solid #aab3ad; }
.legend-swatch.mobility { background: var(--mobility); }
.legend-swatch.stay { background: var(--stay); }
.legend-swatch.wellness { background: var(--wellness); }
.legend-swatch.commerce { background: var(--commerce); }
.legend-swatch.ops { background: var(--ops); }
.legend-swatch.future { background: repeating-linear-gradient(45deg, #fff 0 4px, #e4e6e2 4px 8px); }

.detail-card { position: relative; padding: 22px; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.detail-head span { color: var(--orange-dark); font-size: 9px; font-weight: 950; letter-spacing: .14em; }
.detail-head button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; color: #536159; font-size: 20px; line-height: 1; }
.detail-card h2 { margin: 24px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 38px; line-height: 1; letter-spacing: -.045em; }
#detailSummary { margin: 0; color: #536159; font-size: 13px; line-height: 1.62; }
.detail-stats { margin: 24px 0 0; border-top: 1px solid var(--line); }
.detail-stats div { min-height: 51px; display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.detail-stats dt { color: #7b877f; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.detail-stats dd { margin: 0; font-size: 11px; font-weight: 800; line-height: 1.35; }
.detail-section { margin-top: 24px; }
.detail-section h3 { margin: 0 0 7px; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.detail-section p { margin: 0; color: #5b6961; font-size: 11px; line-height: 1.58; }

.pulse-panel { margin-top: 18px; padding: 28px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; align-items: center; background: var(--forest); color: #fff; }
.pulse-copy .eyebrow { color: #ff8a58; }
.pulse-copy h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 3.2vw, 52px); line-height: 1; letter-spacing: -.04em; }
.pulse-copy p:last-child { margin: 14px 0 0; color: #cbd4cf; font-size: 13px; line-height: 1.6; }
.pulse-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #ffffff26; }
.pulse-grid article { min-height: 112px; display: flex; flex-direction: column; justify-content: end; padding: 18px; border-right: 1px solid #ffffff26; }
.pulse-grid article:last-child { border-right: 0; }
.pulse-grid small { color: #aebcb5; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.pulse-grid b { margin-top: 10px; font-size: 29px; letter-spacing: -.05em; }
.pulse-grid span { margin-top: 3px; color: #cbd4cf; font-size: 9px; }

.model-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; }
.model-grid article { min-height: 230px; padding: 30px; border-right: 1px solid var(--line); }
.model-grid article:last-child { border-right: 0; }
.model-grid article > span { color: var(--orange-dark); font-size: 9px; font-weight: 950; letter-spacing: .15em; }
.model-grid h3 { margin: 48px 0 10px; font-size: 20px; letter-spacing: -.03em; }
.model-grid p { margin: 0; color: #5e6a63; font-size: 12px; line-height: 1.65; }

footer { margin-top: 18px; padding: 18px 4px 0; color: #748078; font-size: 10px; line-height: 1.6; }
footer strong { color: #58665e; }

/* SVG masterplan */
.site-base { fill: #f8f7f2; stroke: #27342e; stroke-width: 2; }
.site-grid line { stroke: #d8ddd8; stroke-width: .55; }
.site-grid .major { stroke: #c7cec8; stroke-width: .8; }
.boundary-label { fill: #59675f; font-size: 7px; font-weight: 800; letter-spacing: .11em; }
.road { fill: #c6cac5; }
.road-line { stroke: #f8f8f2; stroke-width: 2.1; stroke-dasharray: 14 10; }
.road-label { fill: #4e5b55; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.internal-road { fill: #d7d9d4; stroke: #c2c7c1; stroke-width: .8; }
.walkway { fill: none; stroke: #b7beb8; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 8; }
.green-buffer { fill: #dde4d7; stroke: #c6d0c1; stroke-width: .8; }
.tree { fill: #9daf96; opacity: .75; }
.gate-line { stroke: #17221d; stroke-width: 3; }
.flow-arrow { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 6 6; marker-end: url(#arrowHead); opacity: .25; transition: opacity .2s ease, stroke-width .2s ease; }
.flow-arrow.hot { opacity: .9; stroke-width: 3.2; animation: dash 2.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }

.zone { cursor: pointer; transition: opacity .2s ease, filter .2s ease; }
.zone.hidden-layer { opacity: .08; pointer-events: none; }
.zone.future-zone { opacity: .34; }
.zone.phase-hidden { opacity: .11; pointer-events: none; }
.zone:hover .zone-shape, .zone.selected .zone-shape { stroke: #0b1511; stroke-width: 2.1; filter: drop-shadow(0 2px 4px #00000018); }
.zone-shape { stroke: #8f9a93; stroke-width: 1; transition: stroke .15s ease, filter .15s ease; }
.zone[data-category="mobility"] .zone-shape { fill: var(--mobility); }
.zone[data-category="stay"] .zone-shape { fill: var(--stay); }
.zone[data-category="wellness"] .zone-shape { fill: var(--wellness); }
.zone[data-category="commerce"] .zone-shape { fill: var(--commerce); }
.zone[data-category="ops"] .zone-shape { fill: var(--ops); }
.zone.future-zone .zone-shape { fill: url(#futureHatch); }
.zone-title { fill: #132019; font-size: 8px; font-weight: 950; pointer-events: none; letter-spacing: -.01em; }
.zone-sub { fill: #58675f; font-size: 5.7px; font-weight: 750; pointer-events: none; }
.micro-label { fill: #59675f; font-size: 5px; font-weight: 800; pointer-events: none; }
.zone-badge { fill: #fff; stroke: #919b95; stroke-width: .7; }
.zone-badge-text { fill: #26332d; font-size: 5px; font-weight: 950; text-anchor: middle; pointer-events: none; }
.parking-stall { fill: none; stroke: #aeb6b0; stroke-width: .6; }
.parking-accessible { fill: #e8ece8; stroke: #6d7972; stroke-width: .7; }
.cabin { fill: #f4efe6; stroke: #9b9388; stroke-width: .7; cursor: pointer; }
.cabin.future { fill: #f3f3ef; stroke-dasharray: 2 2; opacity: .5; }
.cabin-door { stroke: #7d746b; stroke-width: .7; }
.food-truck { fill: #fff7ef; stroke: #b78366; stroke-width: .8; }
.food-awning { stroke: #ef6b34; stroke-width: 2; }
.health-bay { fill: #eef7f6; stroke: #8ea9a5; stroke-width: .7; }
.market-bay { fill: #fff2e5; stroke: #b9967b; stroke-width: .7; }
.shuttle { fill: #f8f8f4; stroke: #6c7871; stroke-width: .8; }
.shuttle-window { fill: #cfd8d2; }
.security-ring { fill: none; stroke: #ef6b34; stroke-width: 1.2; stroke-dasharray: 4 4; opacity: .55; }
.north-arrow text { fill: #26332d; font-size: 7px; font-weight: 950; }
.north-arrow path { fill: #26332d; }

@media (max-width: 1180px) {
  .intro-panel { grid-template-columns: 1fr; gap: 28px; }
  .metric-rack { max-width: 700px; }
  .control-strip { grid-template-columns: 1fr 1fr; }
  .layer-control { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid var(--line); }
  .phase-control { border-right: 1px solid var(--line); }
  .pulse-control { border-right: 0; }
  .map-layout { grid-template-columns: 1fr; }
  .detail-card { min-height: auto; }
  .pulse-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar, .workspace { width: min(100% - 24px, 1560px); }
  .topbar { min-height: 70px; }
  .status-pill { display: none; }
  .link-button { display: none; }
  .workspace { padding-top: 34px; }
  .intro-panel h1 { font-size: clamp(46px, 15vw, 72px); }
  .lead { font-size: 15px; }
  .metric-rack { grid-template-columns: 1fr 1fr; }
  .metric-rack article { min-height: 88px; padding: 16px; }
  .metric-rack b { font-size: 22px; }
  .control-strip { grid-template-columns: 1fr; }
  .control-group { flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .control-group:last-child { border-bottom: 0; }
  .layer-control { grid-column: auto; border-top: 0; }
  .map-toolbar { align-items: flex-start; }
  .map-scale { display: none; }
  .map-scroller { margin: 0; }
  #hubMap { min-width: 830px; }
  .map-legend { gap: 11px; }
  .pulse-panel { padding: 22px; }
  .pulse-grid { grid-template-columns: 1fr 1fr; }
  .pulse-grid article:nth-child(2) { border-right: 0; }
  .pulse-grid article:nth-child(-n+2) { border-bottom: 1px solid #ffffff26; }
  .model-grid { grid-template-columns: 1fr; }
  .model-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .model-grid article:last-child { border-bottom: 0; }
  .model-grid h3 { margin-top: 28px; }
}
