:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #617068;
  --paper: #f8f5ee;
  --surface: #ffffff;
  --line: #ded8cc;
  --forest: #1e5b4d;
  --teal: #147f8a;
  --coral: #d85d47;
  --gold: #c59428;
  --sky: #e7f3f5;
  --shadow: 0 20px 60px rgba(28, 39, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, 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: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(248, 245, 238, 0.86);
  border-bottom: 1px solid rgba(222, 216, 204, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-size: 0.88rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--forest);
}

.section-band,
.section,
.contact-section {
  padding-inline: clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 79px);
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(40px, 7vw, 80px);
  background:
    linear-gradient(115deg, rgba(231, 243, 245, 0.95) 0%, rgba(248, 245, 238, 0.9) 52%, rgba(255, 246, 232, 0.95) 100%);
}

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

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

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

h2 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
}

.button.primary {
  background: var(--forest);
  color: #fff;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 42px 0 0;
}

.stats div {
  padding: 18px;
  border: 1px solid rgba(222, 216, 204, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.stats dt {
  font-size: 1.35rem;
  font-weight: 800;
}

.stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  min-width: 0;
}

.visual-shell {
  overflow: hidden;
  border: 1px solid rgba(23, 33, 27, 0.12);
  border-radius: 8px;
  background: #13231f;
  box-shadow: var(--shadow);
}

.visual-topbar {
  display: flex;
  gap: 8px;
  padding: 16px;
  background: #0d1916;
}

.visual-topbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
}

.visual-topbar span:nth-child(2) {
  background: var(--gold);
}

.visual-topbar span:nth-child(3) {
  background: #58b58c;
}

.visual-grid {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
}

.terminal-card,
.metric-card,
.chip-cloud {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef7f1;
}

.terminal-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.terminal-label {
  margin: 0 0 4px;
  color: #9fcabe;
  font-size: 0.88rem;
}

.terminal-card code {
  display: block;
  padding: 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: #f3d18b;
}

.metric-card {
  padding: 20px;
}

.metric-card span {
  color: #9fcabe;
}

.metric-card strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
}

.meter {
  height: 10px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.meter span {
  display: block;
  width: 94%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #8ad8b2);
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
}

.chip-cloud span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.09);
  color: #d9efe8;
  font-size: 0.9rem;
  font-weight: 700;
}

.section {
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(64px, 10vw, 120px);
}

.section-heading {
  margin-bottom: 34px;
}

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

.service-grid article,
.insight-grid article,
.skill-panel,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(28, 39, 33, 0.06);
}

.service-grid article {
  min-height: 250px;
  padding: 24px;
}

.service-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--sky);
  color: var(--forest);
  font-weight: 900;
}

.service-grid p,
.timeline p,
.contact-section p {
  color: var(--muted);
}

.skills-section {
  background: #edf3ed;
}

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

.skill-panel {
  padding: 24px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.skill-tags span {
  border: 1px solid #cfd9d1;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #41534a;
  font-size: 0.9rem;
  font-weight: 700;
}

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

.timeline article {
  padding: 26px;
}

.timeline span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--teal);
  font-weight: 900;
}

.insight-section {
  background: #fff9ed;
}

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

.insight-grid article {
  min-height: 180px;
  padding: 24px;
}

.insight-grid p {
  margin: 0 0 18px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  padding-top: clamp(56px, 9vw, 100px);
  padding-bottom: clamp(56px, 9vw, 100px);
  background: var(--forest);
  color: #fff;
}

.contact-section .eyebrow {
  color: #f0c36c;
}

.contact-section p {
  max-width: 700px;
  color: #cfe2d9;
}

.contact-card {
  display: grid;
  gap: 12px;
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.contact-card a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

footer {
  padding: 24px clamp(20px, 5vw, 72px);
  background: #10201b;
  color: #cfe2d9;
}

footer p {
  margin: 0;
}

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

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

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

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
  }

  .stats,
  .service-grid,
  .skills-layout,
  .timeline,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article {
    min-height: auto;
  }
}

@media (max-width: 460px) {
  .brand {
    white-space: normal;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .visual-grid {
    padding: 16px;
  }
}
