:root {
  --navy-950: #111827;
  --navy-900: #172033;
  --navy-800: #243047;
  --slate-700: #334155;
  --slate-600: #526175;
  --slate-400: #94a3b8;
  --slate-200: #d8e0ea;
  --slate-100: #f3f6f9;
  --white: #ffffff;
  --teal-600: #1d4ed8;
  --teal-500: #2563eb;
  --teal-400: #60a5fa;
  --teal-100: #dbeafe;
  --focus-ring: #2563eb;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--navy-900);
  background: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--navy-950);
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-ring);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  background: rgba(17, 24, 39, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 0.94rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--navy-950);
  background: var(--teal-400);
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  transform: rotate(-3deg);
}

.main-navigation {
  display: flex;
  gap: 34px;
  align-items: center;
}

.main-navigation a {
  position: relative;
  color: var(--slate-200);
  font-size: 0.9rem;
  font-weight: 600;
}

.main-navigation a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--teal-400);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-navigation a:hover::after,
.main-navigation a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  padding: 150px 0 90px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--navy-950);
  background-size: 52px 52px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
  gap: clamp(60px, 8vw, 110px);
  align-items: center;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.15;
}

.hero-glow-one {
  top: -220px;
  left: -100px;
  background: var(--teal-400);
}

.hero-glow-two {
  right: -220px;
  bottom: -180px;
  background: var(--teal-600);
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--teal-600);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero .eyebrow {
  color: var(--teal-400);
}

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

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(3.25rem, 6.5vw, 5.9rem);
  font-weight: 760;
}

h1 em {
  color: var(--teal-400);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  font-weight: 740;
}

h3 {
  font-size: 1.35rem;
}

.hero-description {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--slate-200);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 22px;
  gap: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 750;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  color: var(--navy-950);
  background: var(--teal-400);
}

.button-primary:hover {
  background: #93c5fd;
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-tags {
  display: flex;
  padding: 0;
  margin: 42px 0 0;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
}

.hero-tags li,
.tech-list span {
  padding: 7px 12px;
  color: var(--slate-200);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 650;
}

.portrait-card {
  position: relative;
  min-height: 470px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(96, 165, 250, 0.14), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  transform: rotate(1.5deg);
}

.portrait-card::before {
  position: absolute;
  z-index: -1;
  inset: 22px -22px -22px 22px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: var(--radius-lg);
  content: "";
}

.portrait-image-frame {
  display: grid;
  height: 100%;
  min-height: 440px;
  padding: 34px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(96, 165, 250, 0.2), transparent 34%),
    var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

.portrait-image {
  display: block;
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(96, 165, 250, 0.32);
}

.availability {
  position: absolute;
  right: -18px;
  bottom: 34px;
  display: flex;
  padding: 12px 16px;
  gap: 9px;
  align-items: center;
  color: var(--navy-900);
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  font-weight: 750;
  transform: rotate(-1.5deg);
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--teal-500);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.14);
}

.section {
  padding: 120px 0;
}

.section-tinted {
  background: var(--slate-100);
}

.section-heading {
  max-width: 650px;
}

.section-heading > p:not(.eyebrow) {
  color: var(--slate-600);
  font-size: 1.05rem;
}

.section-heading.centered {
  margin: 0 auto 58px;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.about-grid,
.skills-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(60px, 9vw, 130px);
}

.about-copy > p {
  color: var(--slate-600);
  font-size: 1.1rem;
}

.about-copy > p:first-child {
  color: var(--navy-900);
  font-size: 1.35rem;
  font-weight: 560;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 32px;
  margin-top: 38px;
  gap: 26px;
  border-top: 1px solid var(--slate-200);
}

.numbers strong,
.numbers span {
  display: block;
}

.numbers strong {
  color: var(--teal-600);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.numbers span {
  margin-top: 9px;
  color: var(--slate-600);
  font-size: 0.76rem;
  line-height: 1.4;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 430px;
  padding: 36px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.service-card.featured {
  color: var(--white);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.service-number {
  position: absolute;
  top: 26px;
  right: 28px;
  color: var(--slate-400);
  font-size: 0.75rem;
  font-weight: 750;
}

.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 48px;
  place-items: center;
  color: var(--teal-600);
  background: var(--teal-100);
  border-radius: 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.15rem;
  font-weight: 800;
}

.featured .service-icon {
  color: var(--navy-950);
  background: var(--teal-400);
}

.service-card p {
  color: var(--slate-600);
  font-size: 0.93rem;
}

.featured p {
  color: var(--slate-200);
}

.service-card ul {
  padding: 22px 0 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--slate-200);
  list-style: none;
}

.featured ul {
  border-color: rgba(255, 255, 255, 0.12);
}

.service-card li {
  position: relative;
  padding: 5px 0 5px 20px;
  color: var(--slate-700);
  font-size: 0.82rem;
}

.featured li {
  color: var(--slate-200);
}

.service-card li::before {
  position: absolute;
  left: 0;
  color: var(--teal-500);
  content: "✓";
  font-weight: 800;
}

.work-list {
  display: grid;
  margin-top: 58px;
  gap: 20px;
}

.work-card {
  padding: 32px 36px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.work-card:hover {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.work-meta {
  display: flex;
  margin-bottom: 25px;
  align-items: center;
  justify-content: space-between;
  color: var(--teal-600);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-content {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 50px;
}

.work-content h3 {
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.work-content p {
  max-width: 700px;
  margin-bottom: 20px;
  color: var(--slate-600);
}

.work-details {
  display: grid;
  max-width: 730px;
  padding: 0;
  margin: 0;
  gap: 10px;
  list-style: none;
}

.work-details li {
  position: relative;
  padding-left: 19px;
  color: var(--slate-700);
  font-size: 0.86rem;
  line-height: 1.55;
}

.work-details li::before {
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--teal-500);
  border-radius: 50%;
  content: "";
}

.work-result {
  padding-left: 28px;
  border-left: 2px solid var(--teal-400);
}

.work-result small {
  display: block;
  margin-bottom: 10px;
  color: var(--teal-600);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-result strong,
.work-result span {
  display: block;
}

.work-result strong {
  font-size: 1.05rem;
}

.work-result span {
  margin-top: 5px;
  color: var(--slate-600);
  font-size: 0.78rem;
}

.tech-list {
  display: flex;
  margin-top: 26px;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-list span {
  color: var(--slate-700);
  background: var(--slate-100);
  border-color: var(--slate-200);
}

.skills-section {
  color: var(--white);
  background: var(--navy-900);
}

.skills-section .section-heading h2 {
  margin-bottom: 0;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 38px 48px;
}

.skill-groups div {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.skill-groups h3 {
  margin-bottom: 8px;
  color: var(--teal-400);
  font-size: 0.92rem;
  letter-spacing: 0;
}

.skill-groups p {
  margin-bottom: 0;
  color: var(--slate-200);
  font-size: 0.88rem;
}

.contact-section {
  padding-bottom: 80px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  padding: clamp(42px, 7vw, 76px);
  gap: 80px;
  align-items: end;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(147, 197, 253, 0.22), transparent 30%),
    var(--teal-600);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  max-width: 720px;
}

.contact-card p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: #eaf2ff;
}

.eyebrow.light {
  color: var(--teal-100);
}

.contact-actions {
  display: grid;
  gap: 16px;
}

.button-light {
  color: var(--navy-900);
  background: var(--white);
}

.button-light:hover {
  background: var(--teal-100);
}

.contact-link {
  padding: 6px 2px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.87rem;
  font-weight: 700;
}

.site-footer {
  color: var(--slate-400);
  background: var(--navy-950);
}

.site-footer .container {
  display: flex;
  min-height: 120px;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.site-footer .brand {
  color: var(--white);
}

.site-footer p,
.site-footer > span {
  margin: 0;
  font-size: 0.78rem;
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .skills-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 70px;
  }

  .portrait-card {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .service-icon {
    margin-bottom: 32px;
  }

  .work-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .work-result {
    padding-top: 18px;
    padding-left: 0;
    border-top: 2px solid var(--teal-400);
    border-left: 0;
  }

  .contact-card {
    gap: 45px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    backdrop-filter: blur(22px);
  }

  .menu-button {
    display: block;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-navigation {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: grid;
    padding: 24px 20px 36px;
    gap: 4px;
    visibility: hidden;
    background: rgba(17, 24, 39, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(-12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .main-navigation.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .main-navigation a {
    padding: 14px 8px;
    font-size: 1rem;
  }

  .main-navigation a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 130px 0 82px;
  }

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

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

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

  .portrait-card {
    min-height: 410px;
    transform: none;
  }

  .portrait-image-frame {
    min-height: 380px;
  }

  .portrait-card::before {
    display: none;
  }

  .availability {
    right: 20px;
    bottom: 28px;
    left: 20px;
    justify-content: center;
    transform: none;
  }

  .section {
    padding: 84px 0;
  }

  .numbers {
    grid-template-columns: 1fr;
  }

  .numbers div {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
  }

  .numbers span {
    margin-top: 0;
  }

  .service-card,
  .work-card {
    padding: 28px 24px;
  }

  .work-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .skill-groups {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 38px 26px;
  }

  .site-footer .container {
    padding: 38px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

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