:root {
  --ink: #172026;
  --muted: #5d6872;
  --paper: #fbfbf7;
  --panel: #ffffff;
  --teal: #087f7b;
  --teal-dark: #075e5b;
  --coral: #d85f45;
  --gold: #c28b1e;
  --line: #d8ded8;
  --shadow: 0 18px 50px rgba(23, 32, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(251, 251, 247, 0.88);
  border-bottom: 1px solid rgba(216, 222, 216, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(10px, 3vw, 28px);
  font-size: 14px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 32, 38, 0.86) 0%, rgba(23, 32, 38, 0.62) 42%, rgba(23, 32, 38, 0.12) 100%);
  z-index: -1;
}

.hero-content {
  width: min(760px, 92vw);
  padding: 120px clamp(18px, 5vw, 70px) 90px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffc9b8;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(42px, 9vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.55;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--teal);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.44);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.contact-actions .button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff;
}

.button.icon {
  color: #ffffff;
  background: rgba(216, 95, 69, 0.88);
}

.scroll-hint {
  position: absolute;
  left: clamp(18px, 5vw, 70px);
  bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-decoration: none;
}

.band,
.contact-band {
  padding: clamp(64px, 8vw, 108px) clamp(18px, 5vw, 70px);
}

.band.alt {
  background: #f1f6f2;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow),
.contact-band p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.metric,
.case-card,
.skill-panel,
.experience {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-value {
  color: var(--teal);
  font-size: 38px;
  font-weight: 900;
}

.metric-label,
.muted {
  color: var(--muted);
}

.experience {
  margin-top: 22px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 28px;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li {
  margin: 8px 0;
  line-height: 1.55;
}

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

.case-card {
  min-height: 430px;
  padding: 24px;
}

.case-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.case-top span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.case-top a {
  color: var(--coral);
  font-weight: 800;
  text-decoration: none;
}

.case-card p {
  color: var(--muted);
  line-height: 1.55;
}

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

.skill-list {
  display: grid;
  gap: 10px;
}

.skill {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.skill.active,
.skill:hover {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.skill-panel {
  min-height: 310px;
  padding: 26px;
}

.skill-panel p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.bar-chart {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}

.bar-chart span {
  position: relative;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #edf2ec;
}

.bar-chart span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  background: linear-gradient(90deg, rgba(8, 127, 123, 0.22), rgba(216, 95, 69, 0.26));
}

.bar-chart b {
  position: relative;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 34px;
  align-items: center;
  background: #f7eadf;
}

.chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: min(390px, calc(100vw - 36px));
  height: min(560px, calc(100vh - 36px));
  display: none;
  grid-template-rows: auto 1fr auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 80px rgba(23, 32, 38, 0.24);
  overflow: hidden;
}

.chat.open {
  display: grid;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  color: #ffffff;
  background: var(--ink);
}

.chat-head span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.chat-head button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.chat-log {
  padding: 16px;
  overflow: auto;
}

.chat-log p {
  margin-bottom: 14px;
  line-height: 1.45;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-form input,
.chat-form button {
  min-height: 42px;
  border-radius: 6px;
  font: inherit;
}

.chat-form input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 12px;
}

.chat-form button {
  border: 0;
  padding: 0 14px;
  color: #ffffff;
  background: var(--teal);
  font-weight: 800;
}

@media (max-width: 900px) {
  .metrics-grid,
  .case-grid,
  .experience,
  .dashboard,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-height: 0;
  }

  .hero-shade {
    background: rgba(23, 32, 38, 0.76);
  }
}

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

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-content {
    padding-top: 150px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }
}
