:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #5f6b64;
  --line: #dbe2dd;
  --paper: #f8faf6;
  --surface: #ffffff;
  --accent: #116a56;
  --accent-strong: #0b4a3d;
  --warm: #f0c36a;
  --soft: #e9f2ef;
  --shadow: 0 18px 60px rgba(23, 33, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(219, 226, 221, 0.8);
  background: rgba(248, 250, 246, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(17, 106, 86, 0.12);
}

.site-nav {
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  min-height: calc(100svh - 76px);
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  padding: clamp(56px, 8vw, 112px) clamp(20px, 5vw, 72px) 52px;
  background:
    linear-gradient(135deg, rgba(17, 106, 86, 0.12), transparent 36%),
    radial-gradient(circle at right 20%, rgba(240, 195, 106, 0.22), transparent 32%),
    var(--paper);
}

.hero-copy {
  max-width: 760px;
}

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

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

h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-size: clamp(4rem, 11vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-facts {
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.hero-facts div {
  min-height: 104px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-facts dt {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 750;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 34px rgba(17, 106, 86, 0.24);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
}

.profile-panel {
  display: grid;
  gap: 24px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.avatar {
  width: min(100%, 260px);
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.panel-label,
.focus-number {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.profile-panel p,
.focus-item p,
.project-card p,
.contact p {
  color: var(--muted);
}

.section {
  padding: clamp(56px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(30px, 5vw, 52px);
}

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

.focus-item {
  min-height: 250px;
  border-top: 3px solid var(--accent);
  padding: 24px 4px 0;
}

.muted {
  background: var(--soft);
}

.project-list {
  display: grid;
  gap: 16px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(17, 106, 86, 0.14);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface);
}

.project-card a {
  color: var(--accent-strong);
  font-weight: 750;
}

.project-card span {
  align-self: start;
  border: 1px solid rgba(17, 106, 86, 0.18);
  border-radius: 8px;
  padding: 7px 10px;
  background: #f6fbfa;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
}

.twin-section {
  background: var(--surface);
}

.twin-section .section-heading p:last-child {
  max-width: 720px;
  color: var(--muted);
}

.chat-shell {
  display: grid;
  max-width: 920px;
  min-height: 540px;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.chat-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.chat-person h3 {
  margin-bottom: 2px;
}

.chat-person p,
.chat-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.icon-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 18px;
}

.message {
  max-width: min(78%, 680px);
  border-radius: 8px;
  padding: 12px 14px;
}

.message p {
  margin: 0;
}

.message.assistant {
  align-self: flex-start;
  border: 1px solid var(--line);
  background: var(--surface);
}

.message.user {
  align-self: flex-end;
  background: var(--accent);
  color: white;
}

.message.error {
  border-color: #efb1a5;
  background: #fff1ee;
  color: #8a2e20;
}

.prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 16px;
}

.prompt-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  background: var(--surface);
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
}

.prompt-row button:hover {
  border-color: rgba(17, 106, 86, 0.36);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.chat-form textarea {
  width: 100%;
  min-height: 52px;
  max-height: 160px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.chat-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(17, 106, 86, 0.16);
}

.chat-status {
  padding: 0 18px 16px;
}

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

.contact > div {
  max-width: 760px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 700;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(3.5rem, 19vw, 6.6rem);
  }

  .focus-grid,
  .contact,
  .project-card,
  .chat-form,
  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    min-height: auto;
  }

  .message {
    max-width: 94%;
  }

  .focus-item {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .button {
    width: 100%;
  }
}
