:root {
  --paper: #f7f8f6;
  --white: #ffffff;
  --ink: #181b1b;
  --muted: #606968;
  --line: #d9dfdd;
  --line-strong: #aeb8b5;
  --teal: #008f8c;
  --teal-dark: #006b69;
  --teal-soft: #dff2ef;
  --signal: #d9eb33;
  --charcoal: #252b2a;
  --shell: 1200px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

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

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-weight: 700;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  font-size: 12px;
  line-height: 1;
}

.wordmark-name {
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
}

.desktop-nav a,
.header-download {
  position: relative;
}

.desktop-nav a::after,
.header-download::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--teal);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after,
.header-download:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.desktop-nav a.active {
  color: var(--ink);
}

.header-download {
  justify-self: end;
  font-size: 14px;
  font-weight: 700;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  min-height: 650px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 72px 46px 0;
}

.eyebrow,
.section-number {
  margin: 0;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 32px;
  height: 2px;
  background: var(--teal);
}

.hero h1 {
  margin: 18px 0 0;
  font-size: 76px;
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-role {
  margin: 18px 0 0;
  color: var(--charcoal);
  font-size: 31px;
  font-weight: 650;
  line-height: 1.26;
}

.hero-summary {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button-primary {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

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

.button-quiet:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.hero-meta {
  display: grid;
  grid-template-columns: 0.8fr 1.45fr 0.8fr;
  gap: 0;
  margin: auto 0 0;
  padding-top: 34px;
}

.hero-meta div {
  padding: 0 18px;
  border-left: 1px solid var(--line);
}

.hero-meta div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-meta dt {
  color: var(--muted);
  font-size: 11px;
}

.hero-meta dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 38px 0 32px 48px;
  border-left: 1px solid var(--line);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  content: "";
}

.hero-visual::before {
  top: 44px;
  right: -100vw;
  bottom: 38px;
  left: 34px;
  background: var(--teal-soft);
}

.hero-visual::after {
  top: 44px;
  right: 0;
  width: 16px;
  height: 16px;
  background: var(--signal);
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 505px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--white);
}

.image-index {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin: 0 0 -1px 18px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--charcoal);
  font-size: 10px;
  font-weight: 700;
}

.hero-visual figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 505px);
  justify-content: space-between;
  padding-top: 10px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.metrics {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  display: flex;
  min-height: 152px;
  align-items: center;
  gap: 18px;
  padding: 26px 30px;
  border-left: 1px solid var(--line);
}

.metric:last-child {
  border-right: 1px solid var(--line);
}

.metric-value {
  flex: 0 0 auto;
  margin: 0;
  font-size: 42px;
  font-weight: 760;
  line-height: 1;
}

.metric-value span {
  color: var(--teal);
  font-size: 15px;
}

.metric > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.section {
  padding: 116px 0;
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.78fr;
  gap: 96px;
}

.section h2,
.contact-section h2 {
  margin: 14px 0 0;
  font-size: 43px;
  font-weight: 700;
  line-height: 1.16;
}

.profile-copy .lead {
  max-width: 800px;
  margin: 0;
  font-size: 26px;
  font-weight: 520;
  line-height: 1.55;
}

.profile-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
}

.profile-columns p {
  margin: 0;
}

.expertise-section,
.projects-section {
  background: var(--white);
}

.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.section-intro > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.capability-list {
  border-top: 1px solid var(--ink);
}

.capability {
  display: grid;
  grid-template-columns: 54px 0.9fr 1.55fr auto;
  align-items: center;
  gap: 28px;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, padding 180ms ease;
}

.capability:hover {
  padding-right: 18px;
  padding-left: 18px;
  background: var(--teal-soft);
}

.capability-index,
.project-row-index {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.capability h3,
.project-row h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

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

.capability-tag,
.project-row-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-note {
  max-width: 250px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.timeline {
  border-top: 1px solid var(--ink);
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 36px;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  color: var(--muted);
  font-size: 12px;
}

.company {
  margin: 0;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
}

.timeline-content h3 {
  margin: 7px 0 10px;
  font-size: 23px;
  line-height: 1.35;
}

.timeline-content > p:last-child {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
}

.featured-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 510px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.project-media {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--teal-soft);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--charcoal);
  font-size: 10px;
  font-weight: 700;
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 64px;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
}

.project-copy h3 {
  margin: 34px 0 20px;
  font-size: 34px;
  line-height: 1.24;
}

.project-copy > p {
  margin: 0;
  color: var(--muted);
}

.project-facts {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  margin: auto 0 0;
  padding-top: 36px;
}

.project-facts div {
  padding-left: 22px;
  border-left: 2px solid var(--teal);
}

.project-facts dt {
  color: var(--muted);
  font-size: 11px;
}

.project-facts dd {
  margin: 3px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.featured-project-reverse .project-media {
  grid-column: 2;
  grid-row: 1;
  border-right: 0;
  border-left: 1px solid var(--line);
}

.project-list {
  margin-top: 70px;
  border-top: 1px solid var(--ink);
}

.project-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 120px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.project-row p {
  margin: 6px 0 0;
  color: var(--muted);
}

.education-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 100px;
}

.education-visual {
  position: relative;
  border: 1px solid var(--line);
  background: var(--white);
}

.education-visual::before {
  position: absolute;
  z-index: -1;
  right: -18px;
  bottom: -18px;
  width: 74%;
  height: 62%;
  background: var(--teal-soft);
  content: "";
}

.education-copy h2 {
  margin-bottom: 54px;
}

.education-record {
  padding: 24px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.education-date {
  margin: 0;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
}

.education-record h3 {
  margin: 10px 0 0;
  font-size: 25px;
}

.education-record > p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
}

.education-notes {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.education-notes li {
  position: relative;
  padding-left: 22px;
}

.education-notes li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--signal);
  content: "";
}

.contact-section {
  padding: 104px 0;
  color: var(--white);
  background: var(--charcoal);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.contact-heading .section-number {
  color: #56c5bf;
}

.contact-actions > p {
  max-width: 550px;
  margin: 0 0 34px;
  color: #bfc9c6;
}

.contact-actions > a,
.contact-line {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid #4f5856;
}

.contact-actions > a:last-of-type,
.contact-line {
  border-bottom: 0;
}

.contact-actions span {
  color: #9aa5a2;
  font-size: 12px;
}

.contact-actions strong {
  font-size: 20px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-actions a:hover strong {
  color: #70d6d0;
}

.site-footer {
  color: #8d9996;
  background: #1b201f;
  font-size: 11px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  justify-self: end;
  color: var(--white);
}

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

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

@media (max-width: 1020px) {
  .desktop-nav {
    gap: 20px;
  }

  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    min-height: 600px;
  }

  .hero-copy {
    padding-right: 38px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-role {
    font-size: 27px;
  }

  .hero-visual {
    padding-left: 30px;
  }

  .metric {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }

  .section-grid {
    gap: 60px;
  }

  .project-copy {
    padding: 42px;
  }

  .education-grid {
    gap: 64px;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-download {
    display: none;
  }

  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

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

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    top: 68px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 48;
    display: grid;
    align-content: start;
    padding: 24px 16px;
    background: var(--white);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    padding: 16px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 19px;
    font-weight: 650;
  }

  .mobile-nav a:last-child {
    margin-top: 20px;
    color: var(--white);
    background: var(--teal);
    text-align: center;
  }

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

  .hero-copy {
    min-height: auto;
    padding: 66px 0 38px;
  }

  .hero h1 {
    font-size: 66px;
  }

  .hero-summary {
    max-width: 600px;
  }

  .hero-meta {
    margin-top: 52px;
  }

  .hero-visual {
    padding: 26px 0 32px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-visual::before {
    top: 26px;
    right: -16px;
    bottom: 26px;
    left: 20%;
  }

  .hero-visual::after {
    top: 26px;
  }

  .hero-visual img,
  .hero-visual figcaption {
    width: min(82%, 510px);
  }

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

  .metric:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .metric:nth-child(4) {
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .section {
    padding: 88px 0;
  }

  .section-grid,
  .education-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .education-grid {
    gap: 52px;
  }

  .section-intro {
    align-items: start;
  }

  .capability {
    grid-template-columns: 44px 0.8fr 1.3fr auto;
    gap: 18px;
  }

  .featured-project {
    min-height: auto;
  }

  .project-copy {
    min-height: 470px;
  }

  .education-visual {
    width: min(76%, 520px);
  }

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

  .contact-grid {
    gap: 58px;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 70px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .hero-copy {
    padding-top: 48px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .hero h1 {
    margin-top: 16px;
    font-size: 52px;
  }

  .hero-role {
    margin-top: 14px;
    font-size: 25px;
  }

  .hero-summary {
    margin-top: 20px;
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button {
    flex: 1;
    padding: 0 12px;
  }

  .hero-meta {
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
    margin-top: 42px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
  }

  .hero-meta div {
    padding-left: 16px;
  }

  .hero-meta div:first-child,
  .hero-meta div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .hero-visual img,
  .hero-visual figcaption {
    width: 92%;
  }

  .hero-visual figcaption {
    gap: 10px;
  }

  .metrics-grid {
    margin: 0 -14px;
  }

  .metric {
    min-height: 138px;
    padding: 22px 18px;
  }

  .metric-value {
    font-size: 36px;
  }

  .section {
    padding: 72px 0;
  }

  .section h2,
  .contact-section h2 {
    font-size: 34px;
  }

  .profile-copy .lead {
    font-size: 21px;
  }

  .profile-columns {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .section-intro {
    display: block;
    margin-bottom: 40px;
  }

  .section-intro > p {
    margin-top: 20px;
  }

  .capability {
    grid-template-columns: 36px 1fr auto;
    gap: 14px;
    min-height: 118px;
    padding: 18px 0;
  }

  .capability h3 {
    font-size: 19px;
  }

  .capability p {
    grid-column: 2 / -1;
    font-size: 14px;
  }

  .capability:hover {
    padding-right: 8px;
    padding-left: 8px;
  }

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

  .timeline-content h3 {
    font-size: 20px;
  }

  .featured-project,
  .featured-project-reverse {
    grid-template-columns: 1fr;
  }

  .project-media,
  .featured-project-reverse .project-media {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 1;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-copy {
    min-height: 440px;
    padding: 34px 24px;
  }

  .project-copy h3 {
    margin-top: 28px;
    font-size: 28px;
  }

  .project-facts {
    gap: 18px;
  }

  .project-facts div {
    padding-left: 14px;
  }

  .project-list {
    margin-top: 48px;
  }

  .project-row {
    grid-template-columns: 32px 1fr;
    gap: 14px;
    align-items: start;
    padding: 25px 0;
  }

  .project-row h3 {
    font-size: 18px;
  }

  .project-row p {
    font-size: 14px;
  }

  .project-row-tag {
    grid-column: 2;
    color: var(--teal-dark);
  }

  .education-visual {
    width: calc(100% - 18px);
  }

  .education-copy h2 {
    margin-bottom: 38px;
  }

  .contact-section {
    padding: 72px 0;
  }

  .contact-actions strong {
    font-size: 17px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    min-height: 88px;
  }

  .footer-inner p:nth-child(2) {
    display: none;
  }
}

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

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

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