:root {
  --ink: #101827;
  --navy: #101b35;
  --steel: #526074;
  --muted: #687385;
  --paper: #f6f8fc;
  --surface: #ffffff;
  --line: #dbe2ee;
  --blue: #3157d5;
  --teal: #0d9488;
  --copper: #d76f32;
  --gold: #d8a21f;
  --green: #2f9e44;
  --shadow: 0 22px 70px rgba(16, 24, 39, 0.12);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(246, 248, 252, 0.98) 0%, rgba(246, 248, 252, 1) 42%, #ffffff 100%),
    repeating-linear-gradient(90deg, rgba(49, 87, 213, 0.05) 0 1px, transparent 1px 96px);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

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

.scroll-meter {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--copper), var(--teal), var(--blue));
}

.site-header {
  position: sticky;
  z-index: 70;
  top: 0;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 12px 5vw;
  border-bottom: 1px solid rgba(219, 226, 238, 0.72);
  background: rgba(246, 248, 252, 0.84);
  backdrop-filter: blur(18px);
}

.site-header[data-scrolled="true"] {
  box-shadow: 0 12px 42px rgba(16, 24, 39, 0.08);
}

.brand {
  display: inline-flex;
  min-width: 210px;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 48px;
  height: 48px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(16, 24, 39, 0.18);
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0 15px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(49, 87, 213, 0.1);
  color: var(--blue);
}

.site-nav a:hover {
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  margin-left: 8px;
  background: var(--navy);
  color: #ffffff;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
  background: var(--copper);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--navy);
}

.section {
  width: min(1160px, 90vw);
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  min-height: calc(76svh - var(--header-height));
  align-items: center;
  gap: 34px;
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
  padding-top: 42px;
  padding-bottom: 34px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: 4.08rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: 2.75rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-summary {
  max-width: 720px;
  color: var(--steel);
  font-size: 1.04rem;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  padding: 0 22px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button.primary {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 27, 53, 0.22);
}

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

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--navy);
}

.button.secondary:hover {
  border-color: rgba(215, 111, 50, 0.42);
  box-shadow: 0 12px 26px rgba(16, 24, 39, 0.1);
}

.portrait-panel {
  align-self: center;
  justify-self: end;
  margin: 0;
  max-width: 450px;
}

.portrait-frame {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(16, 24, 39, 0.08);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(49, 87, 213, 0.13), rgba(13, 148, 136, 0.11)),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.portrait-frame::before {
  position: absolute;
  z-index: -1;
  inset: 18px -14px -14px 18px;
  border-radius: 28px;
  background: repeating-linear-gradient(
    135deg,
    rgba(215, 111, 50, 0.18) 0 10px,
    rgba(49, 87, 213, 0.08) 10px 20px
  );
  content: "";
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 6px solid #ffffff;
  border-radius: 26px;
  object-fit: cover;
}

.portrait-panel figcaption {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  color: var(--steel);
}

.portrait-panel figcaption strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.hero-stats {
  display: grid;
  width: min(1160px, 90vw);
  gap: 14px;
  margin: -10px auto 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stats div {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  padding: 22px;
  box-shadow: 0 14px 38px rgba(16, 24, 39, 0.07);
}

.hero-stats strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--steel);
  font-weight: 800;
}

.proof-band {
  display: flex;
  width: 100%;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-block: 1px solid var(--line);
  background: var(--navy);
  color: #ffffff;
  overflow-x: auto;
  padding: 18px 5vw;
}

.proof-band span {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 9px 15px;
}

.split-section {
  display: grid;
  align-items: start;
  gap: 42px;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
}

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

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

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

.feature-card,
.approach-item,
.education-card,
.domain-card,
.timeline-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 52px rgba(16, 24, 39, 0.08);
}

.feature-card {
  min-height: 250px;
  padding: 26px;
}

.feature-card p,
.approach-item p,
.domain-card p,
.education-card p,
.timeline-card li {
  color: var(--steel);
}

.feature-marker {
  display: block;
  width: 52px;
  height: 8px;
  margin-bottom: 22px;
  border-radius: 999px;
}

.feature-marker.automation {
  background: var(--blue);
}

.feature-marker.api {
  background: var(--teal);
}

.feature-marker.devops {
  background: var(--copper);
}

.feature-marker.leadership {
  background: var(--green);
}

.skills-section {
  width: min(1040px, 90vw);
}

.skill-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  min-width: 96px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--steel);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  transform: translateY(-1px);
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.skill-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid rgba(16, 24, 39, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0 16px;
  box-shadow: 0 10px 26px rgba(16, 24, 39, 0.07);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.skill-chip[data-hidden="true"] {
  display: none;
}

.skill-chip:hover {
  background: #f1f6ff;
  transform: translateY(-2px);
}

.experience-section {
  width: min(1060px, 90vw);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.timeline::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 175px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--teal), var(--copper));
  content: "";
}

.timeline-card {
  position: relative;
  display: grid;
  gap: 24px;
  grid-template-columns: 160px minmax(0, 1fr);
  padding: 26px;
}

.timeline-card::before {
  position: absolute;
  top: 32px;
  left: 168px;
  width: 16px;
  height: 16px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 1px rgba(215, 111, 50, 0.32);
  content: "";
}

.timeline-date {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 900;
}

.timeline-body h3 {
  margin-bottom: 4px;
}

.role {
  margin-bottom: 14px;
  color: var(--copper);
  font-weight: 900;
}

.timeline-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
}

.approach-section {
  display: grid;
  align-items: start;
  gap: 42px;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
}

.approach-copy p {
  color: var(--steel);
}

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

.approach-item {
  min-height: 230px;
  padding: 24px;
}

.approach-item strong {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(49, 87, 213, 0.1);
  color: var(--blue);
  font-weight: 900;
}

.approach-item h3 {
  margin-top: 22px;
}

.education-section {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.education-card,
.domain-card {
  min-height: 260px;
  padding: 30px;
}

.education-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.education-list p {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.education-list span {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 900;
}

.cta-section {
  display: flex;
  width: min(1160px, 90vw);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 38px auto 0;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(16, 27, 53, 0.98), rgba(37, 54, 91, 0.98)),
    var(--navy);
  color: #ffffff;
  padding: 34px;
}

.cta-copy {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cta-copy img {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  object-fit: cover;
}

.cta-copy h2 {
  max-width: 700px;
  margin: 0;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1.15;
}

.cta-copy .eyebrow {
  color: #ffb37c;
}

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

.site-footer {
  width: min(1160px, 90vw);
  margin: 0 auto;
  padding: 34px 0 46px;
  color: var(--muted);
  text-align: center;
}

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

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

@media (max-width: 980px) {
  h1 {
    font-size: 3.55rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero,
  .split-section,
  .approach-section,
  .education-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .portrait-panel {
    max-width: 520px;
  }

  .timeline::before {
    left: 22px;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    padding-left: 58px;
  }

  .timeline-card::before {
    left: 16px;
  }

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

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    padding: 10px 4vw;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 4vw;
    display: none;
    width: min(280px, 92vw);
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    justify-content: flex-start;
    border-radius: 12px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }

  .section {
    width: min(100% - 30px, 640px);
    padding: 68px 0;
  }

  .hero {
    gap: 18px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  h1 {
    font-size: 2.82rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 1.92rem;
  }

  .hero-summary {
    font-size: 0.96rem;
  }

  .hero-actions {
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 16px;
  }

  .hero-actions .button {
    min-height: 46px;
    flex: 1 1 0;
    padding: 0 10px;
    font-size: 0.88rem;
    line-height: 1.12;
    text-align: center;
  }

  .portrait-panel {
    order: -1;
    justify-self: center;
    max-width: 216px;
  }

  .portrait-frame {
    border-radius: 22px;
    padding: 12px;
  }

  .portrait-frame::before {
    inset: 12px -9px -9px 12px;
    border-radius: 20px;
  }

  .portrait-frame img {
    border-width: 4px;
    border-radius: 18px;
  }

  .portrait-panel figcaption {
    margin-top: 10px;
    text-align: center;
  }

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

  .hero-stats div {
    min-height: 96px;
  }

  .proof-band {
    justify-content: flex-start;
  }

  .feature-card,
  .approach-item,
  .education-card,
  .domain-card {
    min-height: auto;
    padding: 22px;
  }

  .timeline-card {
    border-radius: 16px;
    padding: 22px 20px 22px 48px;
  }

  .timeline-card::before {
    left: 14px;
  }

  .education-list p {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .cta-section {
    width: min(100% - 30px, 640px);
    border-radius: 22px;
    padding: 24px;
  }

  .cta-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-copy h2 {
    font-size: 1.55rem;
  }
}

@media (max-width: 460px) {
  .brand small {
    display: none;
  }

  h1 {
    font-size: 2.05rem;
  }

  h2 {
    font-size: 1.65rem;
  }

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

  .cta-actions .button {
    width: 100%;
  }

  .skill-controls {
    justify-content: flex-start;
  }

  .filter-button {
    min-width: auto;
    padding: 0 14px;
  }
}

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

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

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