:root {
  --ink: #17201d;
  --muted: #66706c;
  --paper: #f7f5ef;
  --white: #fffdf8;
  --line: #d9ddd7;
  --green: #1d6b4f;
  --green-light: #dce9df;
  --coral: #e86f51;
  --yellow: #f3c85b;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system,
    sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 76px;
  border-bottom: 1px solid transparent;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.site-header.scrolled {
  border-color: rgba(23, 32, 29, 0.1);
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
}

.site-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: 14px;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--green);
}

.site-nav .nav-cta {
  padding: 9px 16px;
  border: 1px solid var(--ink);
}

.site-nav .nav-cta:hover {
  color: var(--white);
  background: var(--ink);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.hero {
  min-height: 720px;
  padding: 132px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 76px;
  align-items: center;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.eyebrow b,
.availability b,
.contact-email b {
  font: inherit;
}

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

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

h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(72px, 8vw, 116px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 520px;
  margin-bottom: 34px;
  color: #3f4945;
  font-size: 19px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 28px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 21px;
  gap: 28px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.button-primary {
  color: var(--white);
  background: var(--ink);
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.button-primary:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.text-link {
  padding: 10px 0 7px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.hero-stats {
  display: flex;
  margin: 64px 0 0;
}

.hero-stats div {
  min-width: 112px;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.hero-stats div + div {
  padding-left: 24px;
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1.1;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.hero-visual {
  position: relative;
  padding: 0 0 42px 42px;
}

.hero-visual::before {
  position: absolute;
  inset: 42px 38px 0 0;
  z-index: -1;
  background: var(--green-light);
  content: "";
}

.portrait-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, #c8d8cf 0 50%, #f0c9b7 50%),
    var(--green-light);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.availability {
  position: absolute;
  right: 0;
  bottom: 20px;
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0;
  padding: 12px 15px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 12px;
  box-shadow: 0 12px 32px rgba(23, 32, 29, 0.08);
}

.availability span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39a96b;
  box-shadow: 0 0 0 4px rgba(57, 169, 107, 0.13);
}

.section {
  padding: 112px 0;
}

.section-number {
  margin-bottom: 22px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2,
.section-top h2,
.contact h2 {
  margin-bottom: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
}

.about {
  color: var(--white);
  background: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
}

.about .section-number {
  color: #8fc5a8;
}

.about-content {
  padding-top: 46px;
  color: #b9c1be;
}

.about-content p {
  max-width: 660px;
  margin-bottom: 24px;
}

.about-content .about-intro {
  color: var(--white);
  font-family: Georgia, "Songti SC", serif;
  font-size: 25px;
  line-height: 1.75;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.skill-list span {
  padding: 8px 14px;
  border: 1px solid #46504c;
  font-size: 13px;
}

.favorite-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.person-card {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: #29332f;
}

.person-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
  transition:
    transform 300ms ease,
    filter 300ms ease;
}

.person-card::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(10, 15, 13, 0.88));
  content: "";
}

.person-card figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
}

.person-card strong,
.person-card span {
  display: block;
}

.person-card strong {
  color: var(--white);
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
  font-weight: 500;
}

.person-card span {
  margin-top: 2px;
  color: #c8d2ce;
  font-size: 11px;
}

.person-card:hover img {
  filter: saturate(1);
  transform: scale(1.025);
}

.work {
  background: var(--white);
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 64px;
}

.section-top > p {
  max-width: 360px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 14px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 72px 28px;
}

.project-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.55fr 0.8fr;
  gap: 40px;
  align-items: end;
}

.project-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-featured .project-art {
  aspect-ratio: 16 / 9;
}

.project-art-photo {
  background: #e7e8e3;
}

.project-art-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.project:hover .project-art-photo img {
  transform: scale(1.02);
}

.travel-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e7e8e3;
}

.travel-gallery figure {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.travel-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.travel-gallery figure:hover img {
  transform: scale(1.025);
}

.travel-gallery figcaption {
  position: absolute;
  right: 10px;
  bottom: 9px;
  padding: 4px 7px;
  color: var(--white);
  background: rgba(23, 32, 29, 0.78);
  font-size: 10px;
}

.project-art-one {
  display: grid;
  place-items: center;
  background: #d9e8de;
}

.project-art-one::before {
  position: absolute;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.phone {
  position: relative;
  width: 30%;
  min-width: 166px;
  aspect-ratio: 0.52;
  padding: 16px;
  border: 7px solid var(--ink);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 20px 24px 0 rgba(23, 32, 29, 0.16);
  transform: rotate(6deg);
}

.phone-bar {
  width: 38%;
  height: 5px;
  margin: 0 auto 28px;
  border-radius: 4px;
  background: var(--ink);
}

.phone-title {
  width: 58%;
  height: 10px;
  background: var(--ink);
}

.phone-chart {
  height: 40%;
  margin: 22px 0;
  background:
    linear-gradient(145deg, transparent 46%, var(--coral) 47% 53%, transparent 54%),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 25%);
}

.phone-lines {
  height: 32%;
  background: repeating-linear-gradient(
    0deg,
    #d1d6d3 0 7px,
    transparent 7px 20px
  );
}

.art-label {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 5px 8px;
  color: var(--white);
  background: var(--ink);
  font-size: 10px;
}

.project-art-two {
  display: grid;
  place-items: center;
  background: var(--coral);
}

.poster {
  display: grid;
  width: 58%;
  aspect-ratio: 0.72;
  padding: 11%;
  place-items: center;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.72);
  font-family: Georgia, serif;
  font-size: clamp(16px, 3vw, 38px);
}

.poster strong {
  color: var(--yellow);
  font-size: 2em;
  font-weight: 400;
}

.project-art-three {
  display: grid;
  place-items: center;
  background: #ebc95f;
}

.browser {
  position: relative;
  width: 78%;
  height: 67%;
  overflow: hidden;
  color: var(--white);
  background: var(--green);
  box-shadow: 14px 16px 0 rgba(23, 32, 29, 0.16);
}

.browser-top {
  display: flex;
  height: 24px;
  padding: 0 9px;
  gap: 5px;
  align-items: center;
  background: var(--white);
}

.browser-top i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.browser-word {
  padding: 7% 10%;
  font-family: "Songti SC", serif;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.9;
}

.browser-note {
  position: absolute;
  right: 8%;
  bottom: 8%;
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.project-copy {
  padding-top: 22px;
}

.project-copy > p {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.project-copy h3 {
  max-width: 460px;
  margin-bottom: 15px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.45;
}

.project-copy .project-description {
  display: block;
  max-width: 460px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.project-copy a {
  display: inline-flex;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.experience {
  background: var(--paper);
}

.experience .section-heading {
  margin-bottom: 56px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 0.65fr 1fr 1.1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item time,
.timeline-item > p,
.timeline-item div p {
  color: var(--muted);
  font-size: 13px;
}

.timeline-item h3 {
  margin-bottom: 3px;
  font-size: 17px;
}

.timeline-item p {
  margin-bottom: 0;
}

.contact {
  padding: 112px 0 44px;
  color: var(--white);
  background: var(--green);
}

.contact .section-number {
  color: #b9dac9;
}

.contact h2 {
  max-width: 850px;
  margin-bottom: 52px;
  font-size: clamp(48px, 7vw, 84px);
}

.contact-email {
  display: flex;
  padding: 22px 0;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-family: Georgia, serif;
  font-size: clamp(25px, 4vw, 48px);
}

.contact-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 54px;
  color: #c8ddd3;
  font-size: 13px;
}

.contact-meta div {
  display: flex;
  gap: 26px;
}

.contact-meta a:hover {
  color: var(--white);
}

footer {
  color: #bcc5c1;
  background: var(--green);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  padding: 24px 0;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-inner p {
  margin: 0;
}

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

.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

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

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

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

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

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

  .hero-visual {
    width: min(100%, 720px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .about-content {
    padding-top: 0;
  }

  .project-featured {
    display: block;
  }

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

  .timeline-item > p {
    grid-column: 2;
  }
}

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

  .site-header {
    height: 66px;
  }

  .menu-button {
    position: relative;
    z-index: 2;
    display: block;
  }

  .menu-open .menu-button span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-open .menu-button span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    padding: 110px 24px 40px;
    gap: 22px;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    background: var(--paper);
    font-family: Georgia, "Songti SC", serif;
    font-size: 34px;
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .site-nav .nav-cta {
    padding: 0;
    border: 0;
  }

  .site-nav .nav-cta:hover {
    color: var(--green);
    background: transparent;
  }

  .hero {
    min-height: auto;
    padding: 112px 0 64px;
  }

  .hero-grid {
    gap: 42px;
  }

  h1 {
    font-size: 66px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-stats {
    margin-top: 46px;
  }

  .hero-stats div {
    min-width: 0;
    flex: 1;
    padding-right: 10px;
  }

  .hero-stats div + div {
    padding-left: 12px;
  }

  .hero-stats dt {
    font-size: 23px;
  }

  .hero-stats dd {
    font-size: 10px;
    line-height: 1.45;
  }

  .hero-visual {
    padding: 0 0 28px 18px;
  }

  .hero-visual::before {
    inset: 24px 18px 0 0;
  }

  .availability {
    right: 0;
    bottom: 8px;
  }

  .section {
    padding: 80px 0;
  }

  .section-heading h2,
  .section-top h2 {
    font-size: 40px;
  }

  .about-content .about-intro {
    font-size: 21px;
  }

  .favorite-people {
    gap: 10px;
    margin-top: 34px;
  }

  .person-card figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .person-card strong {
    font-size: 16px;
  }

  .section-top {
    display: block;
    margin-bottom: 42px;
  }

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

  .project-list {
    display: block;
  }

  .project {
    margin-bottom: 54px;
  }

  .project:last-child {
    margin-bottom: 0;
  }

  .project-featured .project-art,
  .project-art {
    aspect-ratio: 4 / 3;
  }

  .travel-gallery {
    aspect-ratio: 1 / 1;
    gap: 5px;
  }

  .project-copy h3 {
    font-size: 24px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 26px 0;
  }

  .timeline-item > p {
    grid-column: auto;
  }

  .contact {
    padding-top: 82px;
  }

  .contact h2 {
    margin-bottom: 40px;
    font-size: 44px;
  }

  .contact-email {
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .contact-meta {
    gap: 28px;
    flex-direction: column;
  }

  .footer-inner {
    padding: 20px 0;
  }
}
