:root {
  --bg: #f5ecdf;
  --bg-deep: #e6d8c0;
  --card: rgba(255, 250, 243, 0.78);
  --card-soft: rgba(255, 255, 255, 0.58);
  --card-deep: rgba(19, 27, 35, 0.9);
  --text: #1a2228;
  --text-soft: #5d6a72;
  --line: rgba(26, 34, 40, 0.1);
  --brand: #d16a2d;
  --brand-deep: #a94b1d;
  --teal: #1f6f76;
  --olive: #6f7a30;
  --gold: #af8b2d;
  --shadow: 0 28px 80px rgba(66, 50, 29, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Sans SC", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(209, 106, 45, 0.18), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(31, 111, 118, 0.16), transparent 22%),
    linear-gradient(180deg, #fbf6ee 0%, #efe0cb 54%, #eadcc7 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.78;
  pointer-events: none;
}

.orb-one {
  top: 100px;
  right: -120px;
  width: 340px;
  height: 340px;
  background: rgba(209, 106, 45, 0.16);
}

.orb-two {
  top: 480px;
  left: -90px;
  width: 280px;
  height: 280px;
  background: rgba(31, 111, 118, 0.14);
}

.orb-three {
  top: 1120px;
  right: 10%;
  width: 240px;
  height: 240px;
  background: rgba(175, 139, 45, 0.12);
}

.orb-four {
  top: 760px;
  left: 45%;
  width: 180px;
  height: 180px;
  background: rgba(111, 122, 48, 0.1);
}

.site-header,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 22px auto 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(26, 34, 40, 0.08);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.64);
  backdrop-filter: blur(22px);
}

.brand,
.eyebrow,
h1,
h2,
h3,
h4,
.button,
.panel-label,
.metric-label,
.market-name,
.source-chip,
.project-badge,
.project-link {
  font-family: "Space Grotesk", sans-serif;
}

.brand {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 20px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.nav a:hover,
.source-link:hover,
.project-link:hover {
  color: var(--brand-deep);
}

main {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 34px 0 88px;
}

.hub-main,
.project-main {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  padding: 72px 0 42px;
}

.hero-home {
  position: relative;
}

.hero-copy {
  padding: 10px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-deep);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hero-text,
.section-heading p,
.principles-grid p,
.method-grid p,
.panel-card p,
.cta-section p,
.message-board-footer p,
.hero-note p,
.project-card-home p {
  color: var(--text-soft);
  line-height: 1.78;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff9f2;
  background: linear-gradient(135deg, var(--brand) 0%, #de7b41 100%);
  box-shadow: 0 16px 34px rgba(209, 106, 45, 0.26);
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--brand-deep) 0%, #bf6535 100%);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(26, 34, 40, 0.08);
}

.hero-panel-stack {
  display: grid;
  gap: 18px;
}

.hero-note {
  padding: 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-note-dark {
  background:
    linear-gradient(160deg, rgba(17, 26, 35, 0.95) 0%, rgba(33, 52, 66, 0.96) 100%);
  color: #f8f1e8;
}

.hero-note-dark p {
  color: rgba(248, 241, 232, 0.74);
}

.hero-note-dark strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.9rem;
  line-height: 1.12;
}

.hero-note-light {
  border: 1px solid rgba(26, 34, 40, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.panel-label {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
}

.signal-strip {
  display: grid;
  gap: 12px;
  margin: 8px 0 76px;
}

.signal-strip-home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-strip-project {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 10px 0 76px;
}

.signal-strip div,
.summary-strip div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.54);
}

.signal-strip span,
.summary-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.signal-strip strong,
.summary-strip strong {
  font-size: 1.08rem;
}

.section {
  margin-top: 72px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading h2,
.cta-section h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

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

.project-card-home {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(26, 34, 40, 0.08);
  background: rgba(255, 252, 247, 0.78);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.project-card-home::before {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  opacity: 0.12;
}

.accent-teal::before {
  background: var(--teal);
}

.accent-copper::before {
  background: var(--brand);
}

.accent-olive::before {
  background: var(--olive);
}

.project-card-home-top,
.project-meta-row,
.project-link {
  position: relative;
  z-index: 1;
}

.project-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(26, 34, 40, 0.06);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.project-card-home h3 {
  margin-bottom: 14px;
  font-size: 1.85rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}

.project-meta-row span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(26, 34, 40, 0.08);
  color: var(--text-soft);
  font-size: 0.84rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--brand-deep);
}

.project-link-disabled {
  opacity: 0.5;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: start;
}

.section-heading.compact {
  margin-bottom: 0;
}

.principles-grid,
.method-grid {
  display: grid;
  gap: 16px;
}

.principles-grid article,
.method-grid article {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.principles-grid span,
.method-grid span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(209, 106, 45, 0.12);
  color: var(--brand-deep);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.principles-grid h3,
.method-grid h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.status-banner {
  margin-bottom: 18px;
  padding: 15px 18px;
  border-radius: 18px;
  border: 1px solid rgba(31, 111, 118, 0.14);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-soft);
}

.status-banner.status-error {
  border-color: rgba(160, 56, 39, 0.22);
  color: #8b3222;
}

.status-banner.status-success {
  border-color: rgba(29, 134, 82, 0.2);
  color: #216e48;
}

.market-grid {
  display: grid;
  gap: 18px;
}

.market-panel {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(26, 34, 40, 0.08);
  background: rgba(255, 252, 247, 0.82);
  box-shadow: var(--shadow);
}

.market-panel-placeholder {
  border-style: dashed;
}

.market-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.market-name {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.market-subtitle {
  margin: 0;
  color: var(--text-soft);
}

.market-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 111, 118, 0.1);
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 700;
}

.market-group-stack {
  display: grid;
  gap: 18px;
}

.index-group {
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(249, 245, 238, 0.84)),
    linear-gradient(135deg, rgba(209, 106, 45, 0.04), transparent 36%);
  border: 1px solid rgba(26, 34, 40, 0.07);
}

.index-group-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.index-group-header h4 {
  margin: 0;
  font-size: 1.12rem;
}

.index-group-header span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.index-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.index-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(26, 34, 40, 0.08);
}

.index-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.index-code {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 111, 118, 0.08);
  color: var(--teal);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.index-card h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.index-card p {
  margin-bottom: 0;
}

.index-benchmark {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

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

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

.metric {
  padding: 14px;
  border-radius: 16px;
  background: rgba(246, 240, 229, 0.86);
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric strong {
  font-size: 1.6rem;
  line-height: 1;
}

.metric-hint {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.metric-note {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.metric-note-secondary {
  margin-top: 12px;
  font-size: 0.88rem;
}

.index-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(26, 34, 40, 0.06);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.source-link {
  color: var(--brand-deep);
  font-weight: 600;
}

.meta-text {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.method-section {
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.82), rgba(243, 233, 218, 0.94));
  border: 1px solid rgba(26, 34, 40, 0.08);
  box-shadow: var(--shadow);
}

.cta-section {
  padding: 34px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(18, 28, 36, 0.95), rgba(34, 53, 66, 0.95)),
    linear-gradient(135deg, rgba(209, 106, 45, 0.08), transparent 35%);
  color: #f8f1e8;
  box-shadow: var(--shadow);
}

.cta-section .eyebrow,
.cta-section p,
.cta-section .message-board-footer p,
.cta-section .message-status,
.cta-section .message-card time {
  color: rgba(248, 241, 232, 0.78);
}

.message-board {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.message-board input,
.message-board textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7f1e8;
  font: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.message-board input::placeholder,
.message-board textarea::placeholder {
  color: rgba(247, 241, 232, 0.52);
}

.message-board input:focus,
.message-board textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.12);
}

.message-board textarea {
  min-height: 160px;
  resize: vertical;
}

.message-board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.message-status {
  margin: 4px 0 0;
  font-size: 0.96rem;
}

.message-stream {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.message-stream-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.message-stream-heading h3 {
  margin: 0;
  font-size: 1.8rem;
}

.refresh-button {
  min-height: 44px;
}

.message-list {
  display: grid;
  gap: 14px;
}

.message-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.message-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.message-card-name {
  margin-bottom: 4px;
  color: rgba(255, 218, 194, 0.88);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.message-card h4 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.message-card-body {
  margin: 0;
  color: #f8f1e8;
  line-height: 1.8;
}

.message-card-placeholder {
  border-style: dashed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .site-header {
    padding: 16px 18px;
    border-radius: 26px;
    flex-direction: column;
    gap: 14px;
  }

  .hero,
  .project-grid-home,
  .split-section,
  .signal-strip-home,
  .summary-strip-project {
    grid-template-columns: 1fr;
  }

  .message-board-footer,
  .message-stream-heading,
  .market-panel-header,
  .index-group-header,
  .index-card-top,
  .message-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  main {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 24px;
  }

  .site-header {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: clamp(2.8rem, 17vw, 4.6rem);
  }

  .hero-note,
  .project-card-home,
  .market-panel,
  .method-section,
  .cta-section {
    padding: 20px;
  }

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