:root {
  color-scheme: light;
  --ink: #172027;
  --ink-soft: #4c5a63;
  --muted: #eef3f4;
  --paper: #ffffff;
  --line: #d9e2e4;
  --teal: #1e6f78;
  --teal-dark: #154b52;
  --amber: #c47b2c;
  --shadow: 0 18px 50px rgba(18, 39, 44, 0.13);
  --max: 1120px;
}

* {
  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);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  color: #ffffff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(23, 32, 39, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  font-weight: 700;
  font-size: 0.93rem;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("assets/it-workspace-hero.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.015);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 20, 24, 0.92) 0%, rgba(11, 20, 24, 0.76) 38%, rgba(11, 20, 24, 0.28) 100%),
    linear-gradient(0deg, rgba(11, 20, 24, 0.4), rgba(11, 20, 24, 0.08));
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding-top: 70px;
}

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

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

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

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.24rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

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

.button.primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(30, 111, 120, 0.25);
}

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

.button.secondary {
  color: inherit;
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.08);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.intro-item {
  min-height: 160px;
  padding: clamp(24px, 4vw, 42px);
  background: #f9fbfb;
}

.intro-item strong,
.intro-item span {
  display: block;
}

.intro-item strong {
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0;
}

.section.muted {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: max(18px, calc((100vw - var(--max)) / 2));
  background: var(--muted);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 38px;
}

.section-heading.compact {
  max-width: 760px;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.about-copy p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.availability-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #ffffff;
}

.availability-panel ul,
.project-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.availability-panel li,
.project-card li {
  position: relative;
  padding-left: 20px;
  margin-top: 11px;
  color: var(--ink-soft);
}

.availability-panel li::before,
.project-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

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

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

.experience-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 46px);
  padding: 28px;
  border: 1px solid #d5dee0;
  border-radius: 8px;
  background: #ffffff;
}

.role-date {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company {
  margin: -2px 0 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.experience-item ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.experience-item li + li {
  margin-top: 10px;
}

.project-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid #d5dee0;
  border-radius: 8px;
  background: #ffffff;
}

.project-card p {
  margin: 0;
  color: var(--ink-soft);
}

.card-topline {
  margin-bottom: 22px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skill-group {
  min-height: 190px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-group p {
  margin: 0;
  color: var(--ink-soft);
}

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(56px, 8vw, 92px) max(18px, calc((100vw - var(--max)) / 2));
  color: #ffffff;
  background: #172027;
}

.statement p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

.contact-section {
  text-align: left;
}

.contact-actions .button.secondary {
  color: var(--teal-dark);
  background: #ffffff;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 860px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(11, 20, 24, 0.92), rgba(11, 20, 24, 0.68)),
      linear-gradient(0deg, rgba(11, 20, 24, 0.55), rgba(11, 20, 24, 0.1));
  }

  .intro-band,
  .about-grid,
  .experience-item,
  .project-grid,
  .skills-layout,
  .statement {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: 760px;
  }

  .button {
    width: 100%;
  }

  .intro-item,
  .availability-panel,
  .project-card,
  .skill-group {
    padding: 24px;
  }

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