:root {
  --bg: #f6f8f9;
  --surface: #ffffff;
  --surface-soft: #edf3f4;
  --ink: #17212b;
  --muted: #5e6b77;
  --line: #d9e2e6;
  --accent: #1f6f78;
  --accent-dark: #164d55;
  --accent-soft: #dcebed;
  --gold: #a8762a;
  --shadow: 0 16px 42px rgba(23, 33, 43, 0.09);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(18px, calc((100vw - var(--max)) / 2));
  background: rgba(246, 248, 249, 0.93);
  border-bottom: 1px solid rgba(217, 226, 230, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  order: 2;
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav a,
.nav-trigger {
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"],
.nav-trigger:hover,
.nav-trigger[aria-current="page"],
.nav-dropdown:focus-within .nav-trigger,
.site-footer a:hover {
  color: var(--accent);
}

.nav a[aria-current="page"],
.nav-trigger[aria-current="page"],
.nav-dropdown:focus-within .nav-trigger {
  border-bottom-color: var(--accent);
}

.nav-trigger {
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.nav-trigger::after {
  margin-left: 6px;
  color: var(--accent);
  content: "v";
  font-size: 0.75rem;
  font-weight: 700;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: fixed;
  top: 66px;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 10px max(18px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(23, 33, 43, 0.08);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.dropdown-menu::before {
  position: absolute;
  top: -16px;
  right: 0;
  left: 0;
  height: 16px;
  content: "";
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.portfolio-page .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.dropdown-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-bottom: 0;
  border-radius: 6px;
  color: var(--muted);
  line-height: 1.25;
}

.dropdown-menu a:hover,
.dropdown-menu a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}

.portfolio-page main {
  padding-top: 58px;
}

.hero,
.page-hero,
.section,
.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(340px, 0.36fr);
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 72px 0;
}

.hero--about {
  min-height: 720px;
}

.hero__content {
  max-width: 820px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: 4.6rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-title {
  position: relative;
  padding-top: 18px;
}

.hero-title::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.hero-title span {
  display: block;
  color: var(--accent-dark);
}

.hero-title--simple {
  max-width: 760px;
  color: var(--accent-dark);
}

h2 {
  margin-bottom: 18px;
  font-size: 2.35rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.lead {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.23rem;
}

.hero__content > p:not(.eyebrow):not(.lead) {
  max-width: 760px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.hero-signals span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button--secondary {
  background: transparent;
  color: var(--accent-dark);
}

.button--secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.profile-card {
  margin-bottom: 0;
}

.profile-card img {
  width: 100%;
  max-height: 680px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.profile-card figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 74px 0;
}

.section--soft {
  width: 100%;
  max-width: none;
  padding: 76px max(18px, calc((100vw - var(--max)) / 2));
  background: var(--surface-soft);
}

.section__intro {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 34px;
}

.section__intro h2 {
  max-width: 850px;
  margin-bottom: 0;
}

.section__intro--center {
  display: block;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section__intro--center .eyebrow {
  text-align: center;
}

.section-heading-small {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  color: var(--accent-dark);
  font-size: 1.28rem;
  line-height: 1.22;
  text-align: center;
}

.section__intro--stacked {
  display: block;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.feature-photo {
  margin: 0;
  background: var(--surface-soft);
}

.feature-photo img {
  width: 100%;
  height: auto;
}

.feature-copy {
  padding: 28px 30px;
}

.feature-copy h3 {
  max-width: 680px;
  margin-bottom: 14px;
  font-size: 1.65rem;
  line-height: 1.2;
}

.feature-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}

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

.category-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.category-card:hover {
  border-color: rgba(31, 111, 120, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.category-card::before {
  position: absolute;
  top: 18px;
  left: 22px;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.category-card::after {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  content: ">";
  font-weight: 700;
}

.category-card span {
  display: block;
  max-width: calc(100% - 42px);
  margin-bottom: 0;
  font-weight: 700;
  line-height: 1.2;
}

.category-card p,
.skills-grid p,
.detail-block p,
.project-detail p {
  color: var(--muted);
}

.career-section {
  padding-top: 34px;
}

.career-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.28fr) minmax(0, 0.72fr);
  gap: 26px;
  align-items: start;
}

.career-photo {
  position: sticky;
  top: 92px;
  margin: 0;
}

.career-photo img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.career-content {
  position: relative;
}

.career-ladder {
  position: relative;
  display: grid;
  gap: 18px;
}

.career-ladder::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: var(--accent-soft);
  transform: translateX(-50%);
  content: "";
}

.career-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.career-step::before {
  display: none;
}

.career-step__marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.career-step__marker::before,
.career-step__marker::after {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.career-step__marker::before {
  right: 100%;
}

.career-step__marker::after {
  left: 100%;
}

.career-step__card {
  grid-column: 3;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.06);
}

.career-step:nth-child(even) .career-step__card {
  grid-column: 1;
  grid-row: 1;
}

.career-step__card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.career-step__card .meta {
  margin-bottom: 8px;
  font-size: 0.74rem;
}

.career-step__card .clean-list li {
  padding: 6px 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

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

.skills-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.skills-header-photo {
  margin: 0;
}

.skills-header-photo img {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.skills-panel .skills-grid {
  padding: 18px;
}

.skills-grid article,
.detail-block,
.project-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.skills-grid article {
  min-height: 180px;
  padding: 24px;
}

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

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

.detail-block {
  padding: 26px;
}

.detail-title {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.detail-block .section-heading-small {
  font-size: 1.22rem;
  text-align: center;
}

.detail-block:has(.section-heading-small) .eyebrow {
  text-align: center;
}

.clean-list,
.timeline-list,
.pill-list {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.clean-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.clean-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.timeline-list span {
  color: var(--gold);
  font-weight: 700;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li,
.tags li {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.contact-section {
  padding-top: 34px;
}

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

.contact-card {
  position: relative;
  display: block;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.contact-card:hover {
  border-color: rgba(31, 111, 120, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.contact-card::before {
  position: absolute;
  top: 22px;
  left: 24px;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.contact-card span {
  display: block;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.35;
}

.hands-on-section {
  padding-top: 34px;
}

.hands-on-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 0.52fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.05);
}

.hands-on-photo {
  margin: 0;
  background: var(--surface-soft);
}

.hands-on-photo img {
  width: 100%;
  height: auto;
}

.hands-on-copy {
  padding: 28px 30px;
}

.hands-on-copy .section-heading-small {
  max-width: 660px;
  margin-left: 0;
  text-align: left;
}

.page-hero {
  padding: 82px 0 44px;
}

.page-hero h1 {
  max-width: 980px;
  font-size: 4rem;
}

.project-list {
  display: grid;
  gap: 26px;
  padding-top: 32px;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.46fr) minmax(0, 0.54fr);
  gap: 0;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(23, 33, 43, 0.06);
}

.project-wide-header {
  grid-column: 1 / -1;
  margin: 0;
}

.project-wide-header img {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.project-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
  gap: 10px;
  padding: 10px;
  background: var(--surface-soft);
}

.project-media--single {
  grid-template-columns: 1fr;
}

.project-media--three img:first-child {
  grid-row: auto;
}

.project-media img {
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 6px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #fff;
}

.project-detail__body {
  padding: 30px;
}

.project-detail__body h2 {
  font-size: 1.9rem;
}

.project-detail__body h3 {
  margin-top: 22px;
}

.meta {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.35;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}

.result {
  margin-top: 22px;
  margin-bottom: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 1080px) {
  .site-header {
    align-items: center;
  }

  .nav {
    justify-content: flex-start;
  }

  .dropdown-menu {
    top: 106px;
    justify-content: flex-start;
  }

  .portfolio-page main {
    padding-top: 96px;
  }

  .hero,
  .section__intro,
  .feature-row,
  .career-layout,
  .hands-on-row,
  .project-detail {
    grid-template-columns: 1fr;
  }

  .hands-on-copy .section-heading-small {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .career-photo {
    position: static;
  }

  .hero,
  .hero--about {
    min-height: auto;
  }

  h1,
  .page-hero h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section-heading-small {
    font-size: 1.14rem;
  }

  .category-grid,
  .skills-grid,
  .detail-grid,
  .detail-grid--three,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card {
    border-right: 1px solid var(--line);
  }

  .profile-card img {
    max-height: 640px;
  }

  .project-media {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 700px) {
  .hero,
  .page-hero,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    padding: 46px 0 56px;
    gap: 34px;
  }

  .page-hero {
    padding: 52px 0 24px;
  }

  .section,
  .section--soft {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  h1,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .section-heading-small {
    font-size: 1.05rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .category-grid,
  .skills-grid,
  .detail-grid,
  .detail-grid--three,
  .contact-grid,
  .project-media {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 0;
    padding-top: 64px;
  }

  .project-media {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .career-ladder {
    padding-left: 0;
  }

  .career-ladder::before,
  .career-step__marker::before,
  .career-step__marker::after {
    display: none;
  }

  .career-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .career-step__marker {
    grid-column: 1;
    width: max-content;
  }

  .career-step__card,
  .career-step:nth-child(even) .career-step__card {
    grid-column: 1;
    grid-row: auto;
  }

  .project-media--three img:first-child {
    grid-row: auto;
  }

  .project-detail__body {
    padding: 24px;
  }

  .hands-on-copy {
    padding: 24px;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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