:root {
  --ink: #172126;
  --muted: #5d6c72;
  --paper: #f4f7f5;
  --surface: #ffffff;
  --line: #c9d8d2;
  --accent: #147d6d;
  --accent-soft: #dcefe9;
  --shadow: 0 18px 50px rgba(30, 57, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 3%, rgba(220, 239, 233, 0.78), transparent 29rem),
    var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.container {
  width: min(100% - 3rem, 1080px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  padding: 1.75rem 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.section-title,
#introduce {
  scroll-margin-top: 8rem;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

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

.nav-list {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  cursor: pointer;
}

.menu-line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0.25rem 0;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.monogram {
  display: grid;
  width: clamp(3.25rem, 6vw, 2.75rem);
  height: clamp(3.25rem, 6vw, 2.75rem);
  place-items: center;
  color: var(--surface);
  background: var(--ink);
  border-radius: 0.75rem;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: clamp(0.85rem, 2.5vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

#logo {
  text-decoration: none;
}

.header-name {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.15rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(3rem, 9vw, 8rem);
  align-items: center;
  min-height: 550px;
  padding-top: 3rem;
  padding-bottom: 7rem;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 650px;
  font-size: clamp(3.4rem, 6vw, 6.8rem);
  line-height: 0.98;
}

#hero-title {
  font-size: clamp(3.4rem, 6vw, 4.8rem);
  line-height: 0.98;
  color: var(--accent);
}

h2 {
  font-size: clamp(2.3rem, 4vw, 1.25rem);
  line-height: 0.98;
}

h2 span {
  color: var(--accent);
}

#introduce span{
  font-weight: bold;
  color: var(--ink);
}

.intro {
  max-width: 620px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.social-link {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-link svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--surface);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.portrait-frame {
  position: relative;
  justify-self: end;
  width: 230px;
  padding: 0.8rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.portrait-frame::before {
  position: absolute;
  z-index: -1;
  inset: 1.8rem -1rem -1.3rem 1.8rem;
  border: 1px solid var(--line);
  content: "";
}

.portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 427 / 696;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
}

.section-title {
  padding-bottom: 8rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.section-heading .eyebrow {
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  line-height: 1;
}

.timeline {
  position: relative;
  padding: 3.5rem 0 0 2.5rem;
}

.timeline::before {
  position: absolute;
  top: 3.5rem;
  bottom: 0;
  left: 0.34rem;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding: 0 0 4.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  position: absolute;
  top: 0.25rem;
  left: -2.5rem;
  width: 0.7rem;
  height: 0.7rem;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  content: "";
}

.timeline-date {
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.5;
}

.timeline-company {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.2;
}

.timeline-role {
  margin: 0.45rem 0 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.timeline-description {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 2rem, 540px);
  }

  .site-header {
    padding: 1.25rem 0;
  }

  .header-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .monogram {
    width: 2.5rem;
    height: 2.5rem;
  }

  .header-name {
    min-width: 0;
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    visibility: hidden;
    padding: 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

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

  .nav-list {
    display: grid;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] .menu-line:first-child {
    transform: translateY(0.375rem) rotate(45deg);
  }

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

  .menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-0.375rem) rotate(-45deg);
  }

  .hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    min-height: auto;
    gap: 3.5rem;
    padding-top: 3rem;
    padding-bottom: 5.5rem;
  }

  .portrait-frame {
    align-self: center;
    width: min(64vw, 230px);
  }

  h1 {
    font-size: clamp(3.4rem, 16vw, 5.2rem);
  }

  .intro {
    font-size: 0.98rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    max-width: 350px;
  }

  .timeline {
    padding-top: 2.75rem;
  }

  .timeline::before {
    top: 2.75rem;
  }

  .timeline-item {
    display: block;
    padding-bottom: 3.5rem;
  }

  .timeline-date {
    display: block;
    margin-bottom: 0.75rem;
  }
}

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