:root {
  --blue-950: #061f3f;
  --blue-900: #073763;
  --blue-800: #0a4d8f;
  --blue-700: #0a5eb8;
  --blue-600: #0f6fca;
  --blue-100: #eaf4ff;
  --blue-50: #f5f9ff;
  --teal-700: #167986;
  --ink: #132033;
  --muted: #607086;
  --line: #d7e2ef;
  --surface: #ffffff;
  --page: #f8fbff;
  --shadow: 0 18px 55px rgba(6, 31, 63, 0.12);
  --radius: 8px;
  --container: 1160px;
  --section-space: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

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

a:hover {
  color: var(--blue-700);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(15, 111, 202, 0.34);
  outline-offset: 4px;
}

p,
ul,
dl {
  margin-top: 0;
}

p {
  margin-bottom: 0;
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--blue-950);
  line-height: 1.1;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: 4.4rem;
  font-weight: 850;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 2.55rem;
  font-weight: 820;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 800;
}

h4 {
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: 14px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--blue-950);
  color: #ffffff;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(215, 226, 239, 0.9);
  background: rgba(248, 251, 255, 0.94);
  backdrop-filter: blur(16px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-950);
  font-weight: 850;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-900);
  color: #ffffff;
  font-size: 0.9rem;
}

.nav-menu {
  margin-left: auto;
}

.nav-toggle {
  display: none;
}

.menu-button {
  display: none;
}

.menu-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--blue-100);
  color: var(--blue-800);
}

.section-band {
  background:
    linear-gradient(90deg, rgba(234, 244, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 52%, rgba(234, 244, 255, 0.8) 100%);
}

.hero {
  scroll-margin-top: 92px;
  padding: 84px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  align-items: center;
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  gap: 72px;
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--teal-700);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-role {
  margin-bottom: 22px;
  color: var(--blue-700);
  font-size: 1.32rem;
  font-weight: 780;
}

.hero-text {
  max-width: 690px;
  margin-bottom: 32px;
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 820;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  background: var(--blue-800);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(10, 77, 143, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-950);
  color: #ffffff;
}

.button-secondary {
  border-color: rgba(10, 94, 184, 0.28);
  background: #ffffff;
  color: var(--blue-800);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--blue-600);
  background: var(--blue-100);
  color: var(--blue-900);
}

.profile-visual {
  margin: 0;
}

.profile-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section {
  scroll-margin-top: 96px;
  padding: var(--section-space) 0;
}

.section > *,
.contact-layout {
  width: min(100% - 48px, var(--container));
  margin-right: auto;
  margin-left: auto;
}

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

.section-heading p:not(.section-kicker) {
  max-width: 700px;
  margin-top: 20px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 44px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 20px;
}

.objective-box {
  padding: 30px;
  border-left: 5px solid var(--blue-700);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-soft {
  background: var(--blue-50);
}

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

.skill-card,
.service-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.skill-card {
  border-top: 4px solid var(--blue-600);
}

.tools-panel {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--blue-900);
}

.tools-panel h3 {
  color: #ffffff;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.tool-list li {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 720;
}

.service-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 850;
}

.section-deep {
  background: var(--blue-950);
}

.section-deep .section-kicker {
  color: #8fd7e1;
}

.section-deep h2,
.section-deep h3,
.section-deep h4 {
  color: #ffffff;
}

.section-deep p {
  color: #c7d7ea;
}

.timeline {
  display: grid;
  gap: 22px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--blue-900);
  font-size: 1.1rem;
  font-weight: 850;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.75fr);
  gap: 54px;
  align-items: start;
}

.contact-panel {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-list div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-list dt {
  margin-bottom: 4px;
  color: var(--blue-800);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 720;
}

.site-footer {
  padding: 28px 24px;
  background: #04162d;
  text-align: center;
}

.site-footer p {
  color: #d8e7f7;
}

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

  h2 {
    font-size: 2.15rem;
  }

  .hero-inner,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .profile-visual {
    max-width: 520px;
    margin-right: auto;
    margin-left: auto;
  }

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

@media (max-width: 900px) {
  .navbar {
    position: relative;
    min-height: 72px;
  }

  .nav-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 3;
    display: block;
    width: 46px;
    height: 46px;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 46px;
    height: 46px;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(6, 31, 63, 0.08);
  }

  .nav-toggle:focus-visible + .menu-button {
    outline: 3px solid rgba(15, 111, 202, 0.34);
    outline-offset: 4px;
  }

  .menu-line {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--blue-900);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle:checked + .menu-button .menu-line:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .menu-button .menu-line:nth-child(3) {
    opacity: 0;
  }

  .nav-toggle:checked + .menu-button .menu-line:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    align-items: stretch;
    flex-direction: column;
    width: min(320px, calc(100vw - 32px));
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
  }
}

@media (max-width: 760px) {
  :root {
    --section-space: 72px;
  }

  body {
    font-size: 15px;
  }

  .navbar {
    align-items: center;
    flex-direction: row;
    justify-content: center;
    width: min(100% - 32px, var(--container));
    padding: 14px 0;
  }

  .hero {
    padding: 58px 0 56px;
  }

  .hero-inner,
  .section > *,
  .contact-layout {
    width: min(100% - 32px, var(--container));
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-role {
    font-size: 1.12rem;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-year {
    width: 70px;
    height: 70px;
  }

  .contact-layout {
    gap: 24px;
  }
}

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

  h2 {
    font-size: 1.62rem;
  }

  .brand span:last-child {
    max-width: 220px;
  }

  .skill-card,
  .service-card,
  .objective-box,
  .contact-panel,
  .tools-panel,
  .timeline-item {
    padding: 22px;
  }
}
