:root {
  color-scheme: light;
  --ink: #141414;
  --muted: #5f6670;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #dedbd0;
  --teal: #0c7c76;
  --teal-dark: #075651;
  --amber: #d08a1f;
  --brick: #9a4b32;
  --charcoal: #171b1f;
  --shadow: 0 20px 50px rgba(20, 20, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: var(--ink);
  background: rgba(247, 245, 239, 0.94);
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.09);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-header.scrolled,
.site-header.nav-active {
  color: var(--ink);
  background: rgba(247, 245, 239, 0.94);
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.09);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-cv {
  color: #fff;
  background: var(--teal);
}

.site-nav a:hover {
  background: #ebe6da;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.nav-active .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-active .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-active .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--charcoal);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    radial-gradient(circle at 78% 24%, rgba(208, 138, 31, 0.28), transparent 28%),
    radial-gradient(circle at 52% 76%, rgba(12, 124, 118, 0.42), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.68) 48%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 54px;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.hero-copy-block {
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 5.65rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 700px;
  margin-top: 20px;
}

.hero-stats article {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

.hero-stats strong {
  display: block;
  font-size: 1rem;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
}

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

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

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

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.button.subtle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.contact-section .button.ghost,
.credentials .button.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.role-tags span {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(247, 245, 239, 0.12);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--amber), var(--teal));
}

.panel-label {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.hero-checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.hero-checklist li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.83);
  line-height: 1.5;
}

.hero-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border: 2px solid var(--amber);
  border-radius: 999px;
  background: rgba(208, 138, 31, 0.24);
}

.panel-link {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  text-decoration: none;
  font-weight: 800;
}

.panel-link:hover {
  background: var(--teal-dark);
}

.section {
  padding: clamp(68px, 9vw, 120px) 0;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
  line-height: 1.72;
}

.intro-band {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
}

.intro-grid p:last-child {
  margin: 0;
  font-size: 1.1rem;
}

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

.service-card,
.project-card,
.credential-list article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(20, 20, 20, 0.06);
}

.service-card {
  min-height: 280px;
  padding: 24px;
}

.icon-badge {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brick);
  font-weight: 800;
}

.service-card h3,
.project-card h3,
.timeline h3 {
  margin: 26px 0 10px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.service-card p,
.project-card p {
  margin: 0;
}

.stack-band,
.timeline-band {
  color: #fff;
  background: var(--charcoal);
}

.stack-band p,
.timeline-band p {
  color: rgba(255, 255, 255, 0.74);
}

.stack-layout,
.credentials-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-cloud span {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.filter-group {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.filter-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active {
  color: #fff;
  background: var(--teal);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.project-card.is-hidden {
  display: none;
}

.project-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-topline span {
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #e2efeb;
  font-size: 0.76rem;
  font-weight: 800;
}

.project-card ul {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.project-link {
  display: inline-flex;
  width: max-content;
  margin-top: auto;
  padding-top: 22px;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

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

.timeline article {
  min-height: 260px;
  padding: 26px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 255, 255, 0.08);
}

.timeline span {
  color: var(--amber);
  font-weight: 800;
}

.timeline h3 {
  color: #fff;
}

.credentials {
  background: #fff;
}

.credential-list {
  display: grid;
  gap: 14px;
}

.credential-list article {
  padding: 20px;
}

.credential-list strong,
.credential-list span {
  display: block;
}

.credential-list span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-section {
  background: #efe9dd;
}

.contact-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfcabe;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfaf7;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(12, 124, 118, 0.22);
  border-color: var(--teal);
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: #fff;
  background: #101214;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 650ms ease, transform 650ms ease;
}

.animations-ready .reveal {
  opacity: 0;
  transform: translateY(34px);
}

.animations-ready .reveal.is-visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card,
.project-card,
.timeline article,
.credential-list article,
.contact-form {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover,
.project-card:hover,
.credential-list article:hover {
  border-color: rgba(12, 124, 118, 0.32);
  box-shadow: 0 20px 44px rgba(20, 20, 20, 0.1);
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    padding: 94px 20px 28px;
    color: var(--ink);
    background: rgba(247, 245, 239, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 1rem;
  }

  .site-nav .nav-cv {
    color: #fff;
    border-color: var(--teal);
    background: var(--teal);
  }

  .hero {
    min-height: 900px;
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-panel {
    max-width: 620px;
  }

  .hero-stats {
    max-width: 620px;
  }

  .service-grid,
  .project-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .intro-grid,
  .stack-layout,
  .credentials-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  .brand span:last-child {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    width: min(100% - 32px, 1180px);
    padding: 112px 0 34px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.45rem);
  }

  .service-grid,
  .project-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    gap: 10px;
  }

  .role-tags span {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 22px;
  }

  .filter-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .site-footer {
    flex-direction: column;
  }
}
