:root {
  --burgundy-950: #2d0918;
  --burgundy-900: #441126;
  --burgundy-800: #6b1f3e;
  --burgundy-700: #8a3154;
  --gold-500: #c9a84c;
  --gold-300: #e5d29b;
  --cream-100: #f8f4ec;
  --cream-200: #efe5d4;
  --ink-900: #241a1e;
  --ink-700: #54454a;
  --ink-500: #796b70;
  --white: #fffdf9;
  --shadow-soft: 0 24px 60px rgba(63, 22, 39, 0.16);
  --shadow-deep: 0 24px 80px rgba(39, 8, 20, 0.26);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --border-soft: 1px solid rgba(107, 31, 62, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(circle at top left, rgba(201, 168, 76, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(107, 31, 62, 0.16), transparent 22%),
    linear-gradient(180deg, #fdfaf4 0%, #f8f4ec 44%, #f4eee4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.32), transparent 45%),
    repeating-linear-gradient(90deg, rgba(107, 31, 62, 0.025) 0, rgba(107, 31, 62, 0.025) 1px, transparent 1px, transparent 88px);
  opacity: 0.75;
}

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

button,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.site-header,
.hero-panel,
.bio-panel,
.framework-panel,
.evolution-panel,
.work-panel,
.forge-panel,
.site-footer {
  position: relative;
  overflow: hidden;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 28px 32px;
  border: var(--border-soft);
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 243, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.site-header::after,
.hero-panel::after,
.forge-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% 35%;
  height: 280px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.24), transparent 62%);
  pointer-events: none;
}

.brand-lockup h1,
.hero-copy h2,
.section-heading h2,
.forge-header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.brand-kicker,
.brand-subtitle,
.eyebrow,
.credential-label,
.forge-badge,
.stage,
.lever-card span {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: var(--ink-500);
}

.brand-lockup h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--burgundy-900);
}

.brand-subtitle {
  margin: 10px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--burgundy-700);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  padding-top: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-700);
  font-size: 0.88rem;
  font-weight: 700;
  transition: 160ms ease;
}

.site-nav a:hover {
  background: rgba(107, 31, 62, 0.08);
  color: var(--burgundy-900);
}

.hero-panel,
.bio-panel,
.framework-panel,
.evolution-panel,
.work-panel,
.forge-panel {
  margin-top: 24px;
  padding: 38px;
  border-radius: var(--radius-xl);
  border: var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 30px;
  background:
    linear-gradient(135deg, rgba(107, 31, 62, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(252, 246, 236, 0.96));
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-right: 10px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--burgundy-700);
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(107, 31, 62, 0.32);
}

.hero-copy h2,
.section-heading h2,
.forge-header h2 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  color: var(--ink-900);
}

.hero-text,
.bio-copy p,
.lever-card p,
.evolution-card p,
.work-card p,
.forge-header p,
.chat-meta p,
.credentials-bar,
.highlight-grid p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.72;
}

.hero-text {
  max-width: 720px;
  margin-top: 20px;
  font-size: 1.03rem;
}

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

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

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

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--burgundy-800), var(--burgundy-900));
  box-shadow: 0 16px 30px rgba(107, 31, 62, 0.22);
}

.button-secondary {
  color: var(--burgundy-900);
  border: 1px solid rgba(107, 31, 62, 0.18);
  background: rgba(255, 255, 255, 0.6);
}

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

.credential-card,
.highlight-grid article,
.bio-quote,
.lever-card,
.evolution-card,
.work-card,
.chat-shell {
  border-radius: var(--radius-lg);
}

.credential-card {
  padding: 24px;
  background: linear-gradient(160deg, rgba(60, 15, 32, 0.96), rgba(107, 31, 62, 0.92));
  box-shadow: var(--shadow-deep);
}

.credential-label {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(229, 210, 155, 0.92);
}

.credentials-bar {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 248, 237, 0.96);
}

.highlight-grid {
  display: grid;
  gap: 14px;
}

.highlight-grid article {
  padding: 22px;
  background: rgba(255, 253, 248, 0.86);
  border: var(--border-soft);
}

.highlight-grid span,
.work-card h3,
.lever-card h3,
.evolution-card h3,
.chat-meta h3 {
  color: var(--burgundy-900);
}

.highlight-grid span,
.stage {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-500);
}

.highlight-grid strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.1rem;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.bio-panel,
.work-panel {
  background: rgba(255, 252, 246, 0.82);
}

.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.7fr);
  gap: 24px;
  align-items: stretch;
}

.bio-copy {
  display: grid;
  gap: 18px;
}

.bio-quote {
  padding: 28px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.12), rgba(255, 251, 243, 0.8));
  color: var(--burgundy-900);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1.08;
}

.framework-panel,
.evolution-panel,
.forge-panel {
  background:
    linear-gradient(180deg, rgba(254, 250, 244, 0.96), rgba(249, 243, 234, 0.96));
}

.lever-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.lever-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.66);
  border: var(--border-soft);
}

.lever-card span {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-500);
}

.lever-card h3,
.evolution-card h3,
.work-card h3 {
  margin: 0 0 12px;
  font-size: 1.14rem;
}

.evolution-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.evolution-card,
.work-card {
  padding: 24px;
  background: rgba(255, 254, 250, 0.72);
  border: var(--border-soft);
}

.evolution-card-featured {
  background: linear-gradient(180deg, rgba(107, 31, 62, 0.94), rgba(68, 17, 38, 0.96));
  box-shadow: var(--shadow-deep);
}

.evolution-card-featured .stage,
.evolution-card-featured h3,
.evolution-card-featured p {
  color: var(--white);
}

.forge-panel {
  background:
    radial-gradient(circle at top right, rgba(201, 168, 76, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(248, 242, 232, 0.98));
}

.forge-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.forge-badge {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(107, 31, 62, 0.1);
  color: var(--burgundy-900);
  font-size: 0.74rem;
  font-weight: 800;
}

.chat-shell {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(250, 246, 238, 0.92));
  border: var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.avatar-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--burgundy-800), var(--burgundy-900));
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 24px rgba(107, 31, 62, 0.22);
}

.suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.suggestion-chip {
  padding: 12px 16px;
  border: 1px solid rgba(107, 31, 62, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--burgundy-900);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.suggestion-chip:hover {
  transform: translateY(-1px);
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.5);
}

.chat-box {
  display: grid;
  gap: 16px;
}

.chat-messages {
  min-height: 380px;
  max-height: 540px;
  overflow-y: auto;
  padding: 18px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(251, 248, 242, 0.98), rgba(245, 236, 223, 0.92));
  border: 1px solid rgba(107, 31, 62, 0.08);
}

.message {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.message:last-child {
  margin-bottom: 0;
}

.message-role {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.message-bubble {
  max-width: 900px;
  padding: 16px 18px;
  border-radius: 18px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-assistant .message-bubble {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(107, 31, 62, 0.08);
}

.message-user {
  justify-items: end;
}

.message-user .message-bubble {
  background: linear-gradient(135deg, rgba(107, 31, 62, 0.96), rgba(68, 17, 38, 0.96));
  color: var(--white);
  box-shadow: 0 16px 28px rgba(107, 31, 62, 0.14);
}

.message-user .message-role {
  color: var(--burgundy-700);
}

.chat-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.chat-input {
  width: 100%;
  min-height: 58px;
  max-height: 180px;
  padding: 16px 18px;
  resize: vertical;
  border: 1px solid rgba(107, 31, 62, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-900);
}

.chat-input:focus,
.chat-send:focus,
.suggestion-chip:focus,
.site-nav a:focus,
.button:focus {
  outline: 2px solid rgba(201, 168, 76, 0.72);
  outline-offset: 3px;
}

.chat-send {
  min-width: 112px;
  padding: 0 22px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold-500), #b78d2f);
  color: #241a1e;
  font-weight: 800;
  transition: transform 160ms ease, opacity 160ms ease;
}

.chat-send:hover {
  transform: translateY(-1px);
}

.chat-send:disabled {
  opacity: 0.65;
  cursor: wait;
}

.typing {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--burgundy-700);
  animation: pulse 1s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse {
  0%,
  80%,
  100% {
    transform: scale(0.7);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.site-footer {
  margin: 24px 0 10px;
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  border: var(--border-soft);
  background: rgba(255, 250, 244, 0.84);
  text-align: center;
  color: var(--ink-700);
  font-weight: 700;
}

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

@media (max-width: 1100px) {
  .hero-panel,
  .bio-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .page-shell {
    padding: 14px;
  }

  .site-header,
  .hero-panel,
  .bio-panel,
  .framework-panel,
  .evolution-panel,
  .work-panel,
  .forge-panel,
  .site-footer {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .site-header,
  .forge-header,
  .chat-controls {
    grid-template-columns: 1fr;
  }

  .site-header,
  .forge-header {
    display: grid;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-copy h2,
  .section-heading h2,
  .forge-header h2 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .lever-grid,
  .evolution-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .chat-controls {
    display: grid;
  }

  .chat-send {
    min-height: 54px;
  }

  .chat-messages {
    min-height: 320px;
  }
}
