.future-page {
  --future-glow: rgba(212, 175, 55, 0.22);
}

.future-page .platform-page {
  padding-top: 28px;
}

.future-hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(4, 6, 8, 0.98) 0%, rgba(4, 6, 8, 0.82) 56%, rgba(4, 6, 8, 0.34) 100%),
    url("assets/hero-house.png") center 58% / cover;
  box-shadow: var(--shadow);
}

.future-hero::before,
.future-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.future-hero::before {
  inset: 0;
  background:
    linear-gradient(120deg, transparent 52%, rgba(212, 175, 55, 0.14)),
    linear-gradient(180deg, transparent 48%, rgba(4, 6, 8, 0.96));
}

.future-hero::after {
  top: -190px;
  right: -160px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(212, 175, 55, 0.025),
    0 0 0 120px rgba(212, 175, 55, 0.018);
}

.future-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.58fr);
  gap: 32px;
  align-items: end;
  min-height: 480px;
  padding: clamp(30px, 5vw, 68px);
}

.future-sequence {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.future-sequence::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.future-hero h1 {
  max-width: 880px;
  margin: 16px 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.5rem, 7.8vw, 7.4rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 0.8;
  text-transform: uppercase;
}

.future-hero-copy > p {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.5vw, 1.08rem);
  line-height: 1.75;
}

.future-context-card {
  padding: 24px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-md);
  background:
    linear-gradient(150deg, rgba(212, 175, 55, 0.08), transparent 46%),
    rgba(7, 9, 11, 0.88);
  backdrop-filter: blur(18px);
}

.context-status {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.context-status strong {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.context-status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d8c9ae;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.context-status span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #77b98b;
  box-shadow: 0 0 12px rgba(119, 185, 139, 0.72);
}

.future-context-card h2 {
  margin: 20px 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.1rem;
  line-height: 0.96;
  text-transform: uppercase;
}

.future-context-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.context-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.context-metrics div {
  padding: 12px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.context-metrics span,
.context-metrics strong {
  display: block;
}

.context-metrics span {
  margin-bottom: 5px;
  color: #948a79;
  font-size: 0.57rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.context-metrics strong {
  font-size: 0.76rem;
}

.future-section {
  padding: 48px 0;
  scroll-margin-top: 112px;
}

.future-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.future-section-heading > div:first-child {
  max-width: 820px;
}

.future-section-heading h2 {
  margin: 8px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.future-section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.engine-mode {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
  color: var(--sandstone);
  background: rgba(212, 175, 55, 0.045);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.engine-mode::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.75);
}

.dream-workspace {
  display: grid;
  grid-template-columns: minmax(285px, 0.72fr) minmax(0, 1.78fr);
  gap: 18px;
  align-items: start;
}

.dream-composer,
.dream-results,
.future-panel,
.time-phase-nav,
.time-stage-shell,
.time-inspector,
.future-vault {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.075), transparent 30%),
    rgba(8, 10, 12, 0.96);
  box-shadow: var(--shadow);
}

.dream-composer {
  position: sticky;
  top: 112px;
  padding: 24px;
}

.dream-composer h2,
.dream-results h2,
.future-vault h2 {
  margin: 7px 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.dream-composer > p,
.dream-results-head p,
.future-vault-head p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.dream-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.dream-field {
  display: grid;
  gap: 8px;
}

.dream-field > label,
.dream-field > legend,
.dream-field-label {
  color: var(--sandstone);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dream-field textarea,
.dream-field select,
.dream-field input[type="text"] {
  width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  outline: none;
}

.dream-field textarea {
  min-height: 145px;
  resize: vertical;
  padding: 14px;
  line-height: 1.62;
}

.dream-field select,
.dream-field input[type="text"] {
  min-height: 46px;
  padding: 0 12px;
}

.dream-field textarea:focus,
.dream-field select:focus,
.dream-field input:focus {
  border-color: rgba(212, 175, 55, 0.64);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.09);
}

.dream-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prompt-chips,
.priority-chips,
.system-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.prompt-chip,
.priority-chip {
  position: relative;
}

.prompt-chip button,
.priority-chip span,
.system-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(212, 175, 55, 0.17);
  border-radius: 999px;
  color: #d1c6b3;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.prompt-chip button:hover,
.prompt-chip button:focus-visible {
  border-color: var(--gold);
  color: var(--text);
}

.priority-chip input,
.system-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.priority-chip input:checked + span,
.system-toggle:has(input:checked) {
  border-color: rgba(212, 175, 55, 0.62);
  color: #f4d883;
  background: rgba(212, 175, 55, 0.12);
}

.dream-budget-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.dream-budget-row output {
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
}

.dream-field input[type="range"],
.time-scrubber input[type="range"],
.compare-control input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.intelligence-note {
  margin: 0;
  padding: 13px;
  border-left: 2px solid var(--gold);
  color: #a99e8b;
  background: rgba(212, 175, 55, 0.045);
  font-size: 0.67rem;
  line-height: 1.55;
}

.dream-results {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
}

.dream-results-head,
.future-vault-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
}

.intelligence-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0;
}

.pipeline-node {
  position: relative;
  padding: 11px 10px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  color: #827a6d;
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.pipeline-node:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -9px;
  width: 9px;
  height: 1px;
  background: rgba(212, 175, 55, 0.34);
}

.pipeline-node.is-active,
.pipeline-node.is-complete {
  border-color: rgba(212, 175, 55, 0.44);
  color: var(--sandstone);
  background: rgba(212, 175, 55, 0.08);
}

.pipeline-node.is-active {
  animation: future-pulse 1.1s ease-in-out infinite;
}

@keyframes future-pulse {
  50% {
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.14);
  }
}

.dream-empty {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 46px;
  border: 1px dashed rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at center, rgba(212, 175, 55, 0.08), transparent 38%),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(212, 175, 55, 0.035) 30px),
    repeating-linear-gradient(90deg, transparent 0 29px, rgba(212, 175, 55, 0.035) 30px);
  text-align: center;
}

.dream-empty[hidden],
.dream-concepts[hidden],
.selected-concept[hidden] {
  display: none;
}

.dream-orbit {
  position: relative;
  width: 138px;
  height: 138px;
  margin: 0 auto 24px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 50%;
}

.dream-orbit::before,
.dream-orbit::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 50%;
  transform: rotate(42deg) scaleY(0.48);
}

.dream-orbit::after {
  inset: 34px;
  border-radius: 4px;
  background: url("assets/logo-mark.png") center / cover;
  transform: none;
}

.dream-empty h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  text-transform: uppercase;
}

.dream-empty p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.dream-concepts > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin: 10px 0 14px;
}

.dream-concepts > header h3 {
  margin: 6px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.25rem;
  text-transform: uppercase;
}

.dream-concepts > header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.concept-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 14px;
  color: inherit;
  background: #0c0f12;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.concept-card:hover,
.concept-card:focus-visible,
.concept-card.is-selected {
  border-color: rgba(212, 175, 55, 0.72);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.concept-card.is-selected {
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.5), 0 18px 36px rgba(0, 0, 0, 0.3);
}

.concept-blueprint {
  --concept-stone: #b99b6b;
  position: relative;
  height: 172px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #151a1e 0 52%, #202923 52% 100%);
}

.concept-blueprint[data-material="limestone"] {
  --concept-stone: #d3c9b5;
}

.concept-blueprint[data-material="slate"] {
  --concept-stone: #667177;
}

.concept-blueprint[data-material="basalt"] {
  --concept-stone: #373b3d;
}

.concept-blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background:
    linear-gradient(transparent 95%, rgba(212, 175, 55, 0.2) 95%),
    linear-gradient(90deg, transparent 95%, rgba(212, 175, 55, 0.2) 95%);
  background-size: 24px 24px;
}

.plan-house,
.plan-surface,
.plan-feature,
.plan-light {
  position: absolute;
  display: block;
}

.plan-house {
  top: 22px;
  left: 14%;
  width: 72%;
  height: 55px;
  border: 1px solid rgba(242, 241, 236, 0.28);
  background: linear-gradient(145deg, #31363a, #171a1c);
  clip-path: polygon(12% 26%, 50% 0, 88% 26%, 88% 100%, 12% 100%);
}

.plan-surface {
  left: 13%;
  bottom: 15px;
  width: 74%;
  height: 77px;
  border: 1px solid rgba(240, 204, 115, 0.72);
  border-radius: 46% 12% 32% 8%;
  background:
    repeating-linear-gradient(110deg, transparent 0 19px, rgba(255, 255, 255, 0.08) 20px),
    var(--concept-stone);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.28);
  transform: perspective(180px) rotateX(24deg);
}

.concept-blueprint[data-project="driveway"] .plan-surface {
  left: 36%;
  width: 29%;
  height: 102px;
  border-radius: 4px;
}

.concept-blueprint[data-project="retaining"] .plan-surface {
  left: 8%;
  bottom: 23px;
  width: 84%;
  height: 42px;
  border-radius: 3px;
}

.concept-blueprint[data-project="facade"] .plan-surface {
  top: 32px;
  left: 14%;
  width: 72%;
  height: 47px;
  border-radius: 0;
  transform: none;
}

.plan-feature {
  right: 19%;
  bottom: 38px;
  width: 42px;
  height: 26px;
  border: 1px solid rgba(242, 241, 236, 0.26);
  background: #282c2f;
}

.concept-blueprint[data-project="fireplace"] .plan-feature {
  bottom: 24px;
  width: 48px;
  height: 72px;
  background: linear-gradient(90deg, #3c3c3a, var(--concept-stone));
}

.plan-light {
  right: 10%;
  bottom: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f1c95d;
  box-shadow:
    -46px -5px 11px #f1c95d,
    -91px 4px 11px #f1c95d,
    0 0 14px #f1c95d;
}

.concept-card-body {
  padding: 15px;
}

.concept-tier-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.concept-tier,
.concept-score {
  color: var(--gold);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.concept-score {
  color: #b7d7bf;
}

.concept-card h4 {
  margin: 10px 0 7px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.concept-card p {
  min-height: 58px;
  margin: 0;
  color: #aaa08e;
  font-size: 0.68rem;
  line-height: 1.5;
}

.concept-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  color: #ded4c0;
  font-size: 0.61rem;
}

.selected-concept {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.07), transparent 45%),
    #090c0f;
}

.selected-concept-visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 28%, rgba(212, 175, 55, 0.13), transparent 32%),
    linear-gradient(180deg, #11171b, #07090b);
}

.selected-concept-visual model-viewer {
  width: 100%;
  height: 100%;
  min-height: 390px;
  --poster-color: transparent;
}

.model-corner-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--sandstone);
  background: rgba(4, 6, 8, 0.76);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.selected-concept-copy h3 {
  margin: 8px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.selected-concept-copy > p {
  color: var(--muted);
  line-height: 1.65;
}

.concept-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.concept-metrics div {
  padding: 12px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.concept-metrics span,
.concept-metrics strong {
  display: block;
}

.concept-metrics span {
  margin-bottom: 7px;
  color: #8f8678;
  font-size: 0.53rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.concept-metrics strong {
  font-size: 0.75rem;
}

.concept-reasoning {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.concept-reasoning li {
  position: relative;
  padding-left: 18px;
  color: #c1b6a3;
  font-size: 0.72rem;
  line-height: 1.5;
}

.concept-reasoning li::before {
  content: "";
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.concept-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.concept-action-grid .button {
  min-width: 0;
  padding-right: 10px;
  padding-left: 10px;
  font-size: 0.62rem;
}

.future-vault {
  padding: clamp(20px, 3vw, 30px);
}

.future-vault-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.future-vault-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(255, 255, 255, 0.018);
}

.future-vault-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.future-vault-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.55;
}

.future-vault-card > div:last-child {
  display: flex;
  gap: 7px;
}

.future-vault-card button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--text);
  background: transparent;
  font-size: 0.58rem;
  text-transform: uppercase;
  cursor: pointer;
}

.future-empty-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed rgba(212, 175, 55, 0.18);
  color: var(--muted);
  text-align: center;
}

.future-toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: var(--text);
  background: rgba(7, 9, 11, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.future-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reality Time Machine */

.time-machine-hero h1 {
  max-width: 1020px;
}

.time-workspace {
  display: grid;
  grid-template-columns: minmax(200px, 0.56fr) minmax(0, 1.72fr) minmax(270px, 0.72fr);
  gap: 14px;
  align-items: start;
}

.time-phase-nav,
.time-inspector {
  position: sticky;
  top: 112px;
  overflow: hidden;
}

.time-phase-nav header,
.time-inspector > header {
  padding: 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

.time-phase-nav h2,
.time-inspector h2 {
  margin: 6px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  line-height: 0.92;
  text-transform: uppercase;
}

.phase-list {
  display: grid;
}

.phase-button {
  display: grid;
  grid-template-columns: 29px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.09);
  color: #8f887b;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.phase-button:last-child {
  border-bottom: 0;
}

.phase-button > span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  font-size: 0.6rem;
}

.phase-button strong,
.phase-button small {
  display: block;
}

.phase-button strong {
  color: inherit;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phase-button small {
  margin-top: 3px;
  color: #706b62;
  font-size: 0.56rem;
}

.phase-button.is-complete {
  color: #c4b99f;
}

.phase-button.is-complete > span:first-child {
  color: #111;
  background: #9f8440;
}

.phase-button.is-active {
  color: #f4dd9c;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), transparent);
}

.phase-button.is-active > span:first-child {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.24);
}

.time-stage-shell {
  min-width: 0;
  overflow: hidden;
}

.time-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px 15px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.13);
}

.time-stage-head h2 {
  margin: 5px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.time-phase-badge {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.time-stage {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background:
    radial-gradient(circle at 50% 18%, rgba(185, 140, 65, 0.13), transparent 36%),
    linear-gradient(180deg, #141b21 0 58%, #182019 58% 100%);
  transition: background 400ms ease;
}

.time-stage.is-night {
  background:
    radial-gradient(circle at 76% 15%, rgba(237, 219, 161, 0.12), transparent 4%),
    radial-gradient(circle at 48% 48%, rgba(212, 175, 55, 0.08), transparent 32%),
    linear-gradient(180deg, #05080d 0 58%, #0b100e 58% 100%);
}

.time-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.24;
  background:
    linear-gradient(transparent 96%, rgba(212, 175, 55, 0.12) 96%),
    linear-gradient(90deg, transparent 96%, rgba(212, 175, 55, 0.12) 96%);
  background-size: 44px 44px;
  transform: perspective(480px) rotateX(56deg) translateY(142px) scale(1.6);
}

.time-stage svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 520px;
}

.timeline-layer {
  opacity: 0;
  transform: translateY(-5px);
  transform-origin: center;
  transition: opacity 450ms ease, transform 450ms ease;
}

.timeline-layer.is-built,
.timeline-layer.is-current {
  opacity: 1;
  transform: translateY(0);
}

.timeline-layer.is-current {
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.36));
}

.timeline-layer.is-past {
  opacity: 0.74;
}

.timeline-layer[data-phase-end].is-expired {
  opacity: 0;
}

.system-layer {
  opacity: 0;
  transition: opacity 250ms ease;
}

.time-stage.show-drainage .system-drainage,
.time-stage.show-utilities .system-utilities,
.time-stage.show-reinforcement .system-reinforcement {
  opacity: 1;
  filter: drop-shadow(0 0 7px currentColor);
}

.time-stage.is-night .night-light {
  opacity: 1;
}

.night-light {
  opacity: 0.16;
  transition: opacity 350ms ease;
}

.time-stage-labels {
  position: absolute;
  z-index: 4;
  inset: 12px 12px auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.time-stage-labels span {
  padding: 7px 9px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  color: #b8ae9b;
  background: rgba(6, 8, 10, 0.68);
  font-size: 0.55rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.time-controls {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
}

.time-control-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.time-icon-button {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.time-icon-button:hover,
.time-icon-button:focus-visible,
.time-icon-button.is-active {
  border-color: var(--gold);
  color: #f4d77b;
}

.time-scrubber {
  display: grid;
  gap: 6px;
}

.time-scrubber-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #8f8779;
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.system-toggles {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.system-toggle {
  position: relative;
}

.time-inspector-content {
  padding: 18px;
}

.phase-summary {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.phase-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 16px;
}

.phase-data-grid div {
  padding: 11px;
  border: 1px solid rgba(212, 175, 55, 0.13);
  background: rgba(255, 255, 255, 0.02);
}

.phase-data-grid span,
.phase-data-grid strong {
  display: block;
}

.phase-data-grid span {
  margin-bottom: 5px;
  color: #847c70;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phase-data-grid strong {
  font-size: 0.69rem;
  line-height: 1.35;
}

.phase-inspection {
  margin-bottom: 16px;
  padding: 12px;
  border-left: 2px solid var(--gold);
  background: rgba(212, 175, 55, 0.045);
}

.phase-inspection span,
.phase-inspection strong {
  display: block;
}

.phase-inspection span {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 0.53rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phase-inspection strong {
  font-size: 0.68rem;
  line-height: 1.45;
}

.checkpoint-form {
  display: grid;
  gap: 9px;
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.checkpoint-form label {
  color: var(--sandstone);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.checkpoint-form textarea,
.checkpoint-form select {
  width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.checkpoint-form textarea {
  min-height: 82px;
  padding: 11px;
  resize: vertical;
}

.checkpoint-form select {
  min-height: 42px;
  padding: 0 10px;
}

.checkpoint-log {
  display: grid;
  gap: 7px;
  max-height: 190px;
  margin: 15px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.checkpoint-log li {
  padding: 10px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  background: rgba(255, 255, 255, 0.018);
}

.checkpoint-log strong,
.checkpoint-log span {
  display: block;
}

.checkpoint-log strong {
  color: #d8ccb6;
  font-size: 0.61rem;
}

.checkpoint-log span {
  margin-top: 4px;
  color: #8f877a;
  font-size: 0.56rem;
  line-height: 1.45;
}

.time-dashboard {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.7fr));
  gap: 10px;
  margin-top: 14px;
}

.time-dashboard > article {
  padding: 17px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.055), transparent 45%),
    rgba(9, 11, 13, 0.93);
}

.time-dashboard h3 {
  margin: 7px 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  text-transform: uppercase;
}

.time-dashboard strong {
  display: block;
  margin: 7px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
}

.time-dashboard p {
  margin: 0;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.55;
}

.time-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(8, 10, 12, 0.92);
}

.time-action-bar .button {
  font-size: 0.63rem;
}

.timeline-disclaimer {
  margin: 14px 0 0;
  color: #8e877c;
  font-size: 0.64rem;
  line-height: 1.55;
}

@media (max-width: 1120px) {
  .concept-grid,
  .future-vault-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .concept-card:last-child {
    grid-column: 1 / -1;
  }

  .time-workspace {
    grid-template-columns: minmax(190px, 0.48fr) minmax(0, 1.52fr);
  }

  .time-inspector {
    position: static;
    grid-column: 1 / -1;
  }

  .time-inspector-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .future-hero-grid,
  .dream-workspace {
    grid-template-columns: 1fr;
  }

  .future-hero-grid {
    align-items: end;
  }

  .dream-composer {
    position: static;
  }

  .selected-concept {
    grid-template-columns: 1fr;
  }

  .selected-concept-visual,
  .selected-concept-visual model-viewer {
    min-height: 330px;
  }

  .time-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .future-section {
    padding: 34px 0;
  }

  .future-section-heading,
  .dream-results-head,
  .future-vault-head,
  .dream-concepts > header {
    display: block;
  }

  .future-section-heading .engine-mode,
  .dream-results-head .engine-mode {
    margin-top: 12px;
  }

  .future-hero,
  .future-hero-grid {
    min-height: 620px;
  }

  .future-hero h1 {
    font-size: clamp(2.5rem, 12.5vw, 4.4rem);
  }

  .future-hero-grid > *,
  .future-hero-copy,
  .future-context-card {
    min-width: 0;
    max-width: 100%;
  }

  .context-status {
    flex-wrap: wrap;
  }

  .future-hero-grid {
    padding: 26px 20px;
  }

  .concept-grid,
  .future-vault-list,
  .concept-metrics,
  .dream-field-grid,
  .time-dashboard {
    grid-template-columns: 1fr;
  }

  .concept-card:last-child {
    grid-column: auto;
  }

  .intelligence-pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-node:nth-child(2)::after {
    display: none;
  }

  .concept-action-grid {
    grid-template-columns: 1fr;
  }

  .time-workspace {
    display: flex;
    flex-direction: column;
  }

  .time-stage-shell {
    order: 1;
    width: 100%;
  }

  .time-phase-nav {
    position: static;
    order: 2;
    width: 100%;
  }

  .time-inspector {
    order: 3;
    width: 100%;
  }

  .phase-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase-button {
    border-right: 1px solid rgba(212, 175, 55, 0.09);
  }

  .time-stage {
    min-height: 390px;
  }

  .time-stage svg {
    height: 390px;
  }

  .time-control-row {
    grid-template-columns: auto auto 1fr;
  }

  .time-control-row > :nth-last-child(-n + 2) {
    display: none;
  }

  .time-inspector-content {
    display: block;
  }
}

@media (max-width: 480px) {
  .future-hero,
  .future-hero-grid {
    min-height: 670px;
  }

  .future-context-card,
  .dream-composer,
  .dream-results,
  .future-vault {
    padding: 17px;
  }

  .context-metrics,
  .phase-data-grid {
    grid-template-columns: 1fr;
  }

  .phase-list {
    grid-template-columns: 1fr;
  }

  .time-stage-head {
    display: block;
  }

  .time-phase-badge {
    display: inline-flex;
    margin-top: 10px;
  }

  .time-stage {
    min-height: 330px;
  }

  .time-stage svg {
    height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pipeline-node.is-active {
    animation: none;
  }

  .timeline-layer,
  .future-toast {
    transition: none;
  }
}
