@font-face {
  font-family: BeVietnam;
  src: url("vendor/BeVietnamPro-Regular.ttf") format("truetype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: BeVietnam;
  src: url("vendor/BeVietnamPro-SemiBold.ttf") format("truetype");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family: BeVietnam, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}
button:active {
  transform: translateY(1px);
}
td,
.panel-body .form-caption {
  font-size: 12px;
}
.kpi-sub,
.data-note,
.field small {
  font-size: 11px;
}
.panel-head p {
  font-size: 11px;
  line-height: 1.7;
}
.hero h1 {
  font-size: clamp(46px, 4.65vw, 82px);
  line-height: 1.25;
  letter-spacing: -3.2px;
}
.hero-copy {
  padding-bottom: 72px;
}
.feature-grid {
  grid-template-columns: 1.2fr 1fr;
  gap: 30px 60px;
}
.feature:first-child {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature:first-child .mini-gantt {
  height: 215px;
  gap: 24px;
  width: 100%;
}
.feature:first-child .mini-gantt i {
  height: 22px;
}
.feature:first-child h3 {
  font-size: 30px;
  max-width: 360px;
  line-height: 1.5;
  margin-top: 15px;
}
.feature:not(:first-child) {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  column-gap: 20px;
}
.feature:not(:first-child) .feature-no {
  grid-column: 1/-1;
}
.feature:not(:first-child) > div,
.feature:not(:first-child) > svg {
  grid-column: 2;
  grid-row: 2/4;
}
.feature:not(:first-child) h3 {
  grid-column: 1;
  line-height: 1.5;
}
.feature:not(:first-child) p {
  grid-column: 1;
}
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.mode-card:hover {
  transform: none;
  box-shadow: none;
  border-color: #8ea379;
}
.mode-card:hover .mode-link b {
  transform: translate(3px, -3px);
}
.mode-link b {
  transition: transform 0.2s;
}
.mode-card,
.feature {
  border-radius: 0;
}
.mode-card .mode-link {
  font-size: 13px;
}
.feature-no {
  color: #526546;
}
.app-footer {
  color: #65715b;
}
.side-label {
  color: #a5bb96;
}
.badge {
  color: #4c6836;
}
.world-caption input {
  min-height: 26px;
}
.motion-pause {
  color: #bdcdb1;
  font-size: 10px;
  padding: 10px 0;
  text-decoration: underline;
  text-underline-offset: 5px;
  white-space: nowrap;
}
.scene-controls .motion-pause {
  font-size: 10px;
  padding: 8px 12px;
  text-decoration: none;
}
@media (max-width: 760px) {
  .landing-nav nav {
    gap: 14px;
  }
  .landing-nav .motion-pause {
    font-size: 8px;
    max-width: 70px;
    white-space: normal;
    line-height: 1.7;
  }
  .landing-nav .btn {
    min-width: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-pause {
    display: none;
  }
}
.hero-note {
  color: #9dac95;
}
.world-caption small {
  color: #b6c5a7;
}
.field label {
  color: #566d45;
}
.field small {
  color: #697b59;
}
.kpi-title,
.kpi-sub {
  color: #637352;
}
.panel-body .muted {
  color: #5e714f;
}
.scene-canvas-wrap canvas {
  touch-action: pan-y;
}
.story-copy > p:not(.eyebrow) {
  color: #5d714d;
}
.story-copy .eyebrow,
.story-index,
.story-copy > small,
.story-source {
  color: #5b724a;
}
@media (max-width: 760px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .filter-check {
    min-height: 44px;
  }
  .filter-check input {
    min-width: 20px;
    min-height: 20px;
  }
  .weekday-group label {
    min-height: 44px;
  }
  .story-stages button {
    min-width: 38px;
    min-height: 44px;
  }
  .world-caption input {
    min-height: 32px;
  }
}
.construction-story {
  height: 240dvh;
  background: #e4e9da;
  position: relative;
  color: #263e2c;
}
.story-sticky {
  height: 100dvh;
  min-height: 650px;
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 38% 62%;
  padding: 70px 6%;
  overflow: hidden;
}
.story-copy {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 430px;
}
.story-copy .eyebrow {
  font-size: 9px;
  color: #799166;
  max-width: 290px;
  line-height: 1.9;
}
.story-index {
  font-size: 11px;
  color: #819a6c;
  letter-spacing: 2px;
  display: block;
  margin: 35px 0 20px;
}
.story-copy h2 {
  font-size: clamp(37px, 3.5vw, 62px);
  line-height: 1.3;
  letter-spacing: -2px;
  font-weight: 500;
  min-height: 160px;
}
.story-copy > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.9;
  color: #7c8d6d;
  max-width: 340px;
  min-height: 110px;
  margin-top: 18px;
}
.story-stages {
  display: flex;
  gap: 7px;
  margin: 20px 0 28px;
}
.story-stages button {
  font-size: 10px;
  border: 1px solid #bbcaab;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  transition: background 0.2s;
}
.story-stages button.active {
  background: #36513c;
  color: #eaf1dc;
  border-color: #36513c;
}
.story-copy > small {
  font-size: 8px;
  letter-spacing: 1px;
  color: #8b9c7c;
}
.story-world {
  position: absolute;
  right: -4%;
  top: 5%;
  bottom: 0;
  width: 74%;
  pointer-events: auto;
}
.story-world canvas {
  height: 100%;
  width: 100%;
  touch-action: pan-y;
}
.story-source {
  position: absolute;
  bottom: 35px;
  left: 6%;
  right: 6%;
  border-top: 1px solid #cad5bc;
  padding-top: 20px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #98a78b;
}
@media (prefers-reduced-motion: reduce) {
  .construction-story {
    height: auto;
  }
  .story-sticky {
    position: relative;
  }
}
@media (max-width: 760px) {
  .story-sticky {
    display: block;
    padding: 45px 6%;
    min-height: 800px;
    height: 100dvh;
  }
  .story-copy {
    height: auto;
    max-width: 100%;
    position: relative;
  }
  .story-copy h2 {
    font-size: 36px;
    min-height: 90px;
    max-width: 330px;
  }
  .story-copy .eyebrow {
    max-width: 100%;
    font-size: 8px;
  }
  .story-index {
    margin: 25px 0 14px;
  }
  .story-copy > p:not(.eyebrow) {
    min-height: 90px;
    max-width: 340px;
    font-size: 11px;
    margin-top: 5px;
  }
  .story-stages {
    margin: 12px 0 10px;
  }
  .story-stages button {
    width: 36px;
    height: 36px;
  }
  .story-copy > small {
    font-size: 7px;
  }
  .story-world {
    width: 120%;
    left: -8%;
    right: auto;
    top: 330px;
    bottom: 45px;
    pointer-events: none;
  }
  .story-source {
    font-size: 6px;
    bottom: 20px;
    padding-top: 12px;
  }
}
.story-copy .eyebrow,
.story-index,
.story-copy > small,
.story-source {
  color: #51683f;
}
.story-copy > p:not(.eyebrow) {
  color: #536745;
}
.section-intro > p:last-child,
.mini-cost > div {
  color: #56664b;
}
.badge.neutral {
  color: #56684a;
}
.badge.critical {
  color: #91442f;
}
.badge.warning {
  color: #74551e;
}
.badge.blue {
  color: #476275;
}
.kpi-title,
.kpi-sub,
.kpi-value small {
  color: #566646;
}
.kpi-icon {
  display: none;
}
.divider {
  color: #68765e;
}
.gantt-tick,
.gantt-label small {
  color: #5c704d;
}
.gantt-bar {
  color: #28391e;
  font-size: 9px;
}
.gantt-bar.critical {
  color: #4c261a;
}
.form-caption,
.guide-grid p,
.guide-grid li,
.guide-grid code {
  color: #596e49;
}
.risk-cell.low {
  color: #506b35;
}
.risk-cell.medium {
  color: #70501d;
}
.risk-cell.high {
  color: #7c432c;
}
.risk-axis {
  color: #5e724e;
}
.scope-pill {
  color: #4d6635;
}
.phase-card .phase-num,
.phase-card p {
  color: #5b7149;
}
.panel-head p,
.history-item small {
  color: #5e724e;
}
.empty-state p {
  font-size: 13px;
}
.scene-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 13px 22px;
  background: #1b3022;
  border-bottom: 1px solid #86a86625;
}
.scene-presets button {
  color: #d1dfbc;
  border: 1px solid #6d8c554f;
  font-size: 10px;
  padding: 8px 11px;
  border-radius: 5px;
  min-height: 34px;
}
.scene-presets button:hover {
  background: #39532c;
  color: #edf5dc;
}
.machine-status {
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  color: #bbcca2;
  font-size: 9px;
  letter-spacing: 0.3px;
  z-index: 2;
  pointer-events: none;
}
.phase-card {
  text-align: left;
  width: 100%;
  color: var(--ink);
}
.phase-card:hover {
  border-color: #8faa71;
  background: #f0f5e7;
}
.hero-presets {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.hero-presets button {
  border: 1px solid #74925370;
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 9px;
  color: #c7d8ab;
  min-height: 29px;
}
.hero-presets button:hover {
  background: #3a532c;
}
@media (max-width: 760px) {
  .scene-presets {
    padding: 12px 15px;
    gap: 7px;
  }
  .scene-presets button {
    min-height: 40px;
    font-size: 9px;
  }
  .machine-status {
    top: 12px;
    left: 16px;
    right: 16px;
    font-size: 8px;
    line-height: 1.8;
  }
  .hero-presets button {
    min-height: 35px;
  }
  .world-caption {
    bottom: 0;
  }
  .hero {
    min-height: 1050px;
  }
}
.notice p {
  color: #5b704d;
}
.path-node {
  color: #8b482e;
}
.path-node > span {
  opacity: 1 !important;
  color: #825034;
}
.divider {
  color: #536547;
}
tr.click-row:focus-visible {
  outline: 2px solid #728f50;
  outline-offset: -3px;
  background: #f0f5e7;
}
@media (max-width: 760px) {
  .motion-pause {
    min-height: 44px;
  }
  .story-stages button {
    min-height: 44px;
  }
}
@media (max-width: 760px) {
  .feature-grid {
    display: flex;
    flex-direction: column;
    gap: 35px;
  }
  .feature:first-child .mini-gantt {
    height: 150px;
  }
  .feature:first-child h3 {
    font-size: 26px;
  }
  .feature:not(:first-child) {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: clamp(36px, 10vw, 50px);
    line-height: 1.28;
    letter-spacing: -2.1px;
  }
  .btn {
    min-height: 44px;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
  }
  .sidebar nav button {
    min-height: 44px;
  }
  .hero-world {
    top: 410px;
  }
  .hero {
    min-height: 1010px;
  }
  .mode-quick {
    flex-wrap: wrap;
  }
  .mode-quick .btn {
    font-size: 11px;
  }
  .world-caption {
    left: 20%;
    right: 15%;
  }
  .panel-head .panel-tools input {
    min-height: 38px;
  }
  .scene-controls .btn {
    min-height: 40px;
  }
  .phase-card {
    padding: 15px;
  }
  .phase-card h3 {
    line-height: 1.6;
  }
  .topbar-actions .badge {
    display: none;
  }
  .scene-controls {
    flex-wrap: wrap;
  }
  .scene-controls input {
    order: 3;
    flex-basis: 100%;
    min-height: 25px;
  }
  .scene-day {
    margin-left: auto;
  }
  .hero-bottom a {
    padding: 15px 0;
  }
  .landing-footer .brand {
    font-size: 24px;
  }
}
