:root {
  --ink: #17211f;
  --muted: #596663;
  --line: #d7dedb;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --green: #0f6b57;
  --blue: #1d4f91;
  --coral: #c84f37;
  --gold: #b88724;
  --shadow: 0 18px 42px rgba(28, 36, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
nav,
.hero-actions,
.contact-actions,
.ask-row,
.chips {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  background: var(--green);
  border-radius: 8px;
}

nav {
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: white;
  background: var(--ink);
  padding: 9px 13px;
  border-radius: 8px;
}

main {
  overflow: hidden;
}

section {
  padding: clamp(46px, 7vw, 92px) clamp(18px, 4vw, 56px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  min-height: calc(100vh - 70px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.lede {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.button,
button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 12px 17px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hero-actions,
.contact-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary {
  color: white;
  background: var(--green);
}

.secondary {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.inverted {
  color: white;
  border-color: rgba(255, 255, 255, 0.36);
}

.signal-panel {
  display: grid;
  gap: 14px;
}

.signal-panel > div,
.mode-output,
.case-card,
.capability-card,
.skill-card,
.timeline-item,
.assistant-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-panel > div {
  padding: 22px;
}

.metric {
  display: block;
  color: var(--blue);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.section-heading {
  display: grid;
  gap: 4px;
  max-width: 780px;
  margin-bottom: 28px;
}

.mode-grid,
.case-grid,
.capability-list,
.skills-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mode-card {
  min-height: 130px;
  padding: 18px;
  text-align: left;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mode-card[aria-pressed="true"] {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.mode-card span {
  display: block;
  margin-top: 8px;
  color: inherit;
  opacity: 0.78;
  font-size: 0.92rem;
  font-weight: 500;
}

.mode-output {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-top: 18px;
  padding: 24px;
}

.mode-output ul,
.case-card ul,
.timeline-item ul,
.capability-card ul {
  margin: 12px 0 0;
  padding-left: 19px;
}

.proof-section,
.cv-section {
  background: #ecefed;
}

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

.case-card,
.capability-card,
.skill-card,
.timeline-item,
.assistant-box {
  padding: 22px;
}

.case-card .tag,
.skill-card .tag {
  display: inline-flex;
  margin-bottom: 14px;
  color: white;
  background: var(--gold);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.capability-card strong {
  color: var(--green);
}

.skills-map {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.skill-card {
  min-height: 190px;
}

.timeline {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
}

.timeline-date {
  color: var(--blue);
  font-weight: 900;
}

.assistant-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 32px;
  align-items: start;
}

.assistant-copy p:last-child,
.contact-section p {
  color: var(--muted);
}

.chips {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip {
  min-height: 36px;
  color: var(--ink);
  background: #eef4f2;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.ask-row {
  gap: 8px;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.answer {
  min-height: 112px;
  margin-top: 14px;
  padding: 16px;
  color: var(--ink);
  background: #f4f6f4;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: var(--ink);
  color: white;
}

.contact-section .eyebrow,
.contact-section p {
  color: #d9e6df;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero,
  .assistant-section,
  .contact-section,
  .mode-output {
    grid-template-columns: 1fr;
  }

  .mode-grid,
  .case-grid,
  .capability-list,
  .skills-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .mode-grid,
  .case-grid,
  .capability-list,
  .skills-map,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  footer {
    flex-direction: column;
  }
}

@media print {
  .topbar,
  .hero-actions,
  .assistant-section,
  .contact-actions,
  footer {
    display: none;
  }

  section {
    padding: 24px;
  }

  .case-card,
  .capability-card,
  .skill-card,
  .timeline-item,
  .mode-output {
    box-shadow: none;
  }
}
