:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #f5f2ea;
  --text: #1c2430;
  --ink: #131a24;
  --muted: #6f7a88;
  --line: #e7e3d8;
  --primary: #0f9a86;
  --primary-2: #13b39c;
  --primary-weak: #e2f4f0;
  --accent: #f59e0b;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgb(28 36 48 / 5%), 0 8px 28px rgb(28 36 48 / 7%);
  --shadow-lg: 0 6px 16px rgb(28 36 48 / 10%), 0 20px 48px rgb(28 36 48 / 12%);
  --content: 1160px;
  --space-page: clamp(20px, 4vw, 64px);
  --nav-h: 64px;
  color-scheme: light;
  font-family: var(--sans);
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 4%, rgb(19 179 156 / 13%), transparent 24rem),
    radial-gradient(circle at 4% 54%, rgb(245 158 11 / 9%), transparent 20rem);
}

a {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 15px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-pill);
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgb(255 255 255 / 82%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px);
}

.nav-inner,
main,
footer {
  width: min(calc(100% - (var(--space-page) * 2)), var(--content));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 10px;
  box-shadow: 0 4px 12px rgb(15 154 134 / 35%);
  place-items: center;
}

.brand-mark + span {
  letter-spacing: 0.05em;
}

nav {
  display: flex;
  gap: 4px;
}

nav a {
  padding: 8px 13px;
  color: var(--muted);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

nav a:hover {
  color: var(--primary);
  background: var(--primary-weak);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(100svh - var(--nav-h));
  padding: clamp(64px, 10vw, 120px) 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 5px 13px;
  color: var(--primary);
  background: var(--primary-weak);
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(52px, 7.5vw, 100px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero h1 span {
  display: block;
  color: var(--primary);
}

.hero-lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 4px 14px rgb(15 154 134 / 30%);
}

.button-primary:hover {
  box-shadow: 0 8px 22px rgb(15 154 134 / 40%);
  transform: translateY(-2px);
}

.text-link {
  padding: 10px 2px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--primary);
}

.hero-orbit {
  position: relative;
  width: min(100%, 410px);
  aspect-ratio: 1;
  margin-left: auto;
  background: linear-gradient(145deg, rgb(255 255 255 / 90%), rgb(226 244 240 / 75%));
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

.orbit {
  position: absolute;
  border: 1px solid rgb(15 154 134 / 34%);
  border-radius: 50%;
}

.orbit-large {
  inset: 8%;
  border-style: dashed;
  animation: orbit-spin 26s linear infinite;
}

.orbit-small {
  inset: 23%;
  border-color: rgb(245 158 11 / 76%);
  transform: rotate(32deg) scaleY(0.5);
}

.orbit-core {
  position: absolute;
  inset: 34%;
  display: grid;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 50%;
  box-shadow: 12px 12px 0 rgb(245 158 11 / 82%);
  font-family: var(--sans);
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 900;
  letter-spacing: -0.08em;
  place-items: center;
}

.orbit-note {
  position: absolute;
  padding: 6px 10px;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.orbit-note-top {
  top: 7%;
  left: 48%;
}

.orbit-note-right {
  top: 49%;
  right: -3%;
}

.orbit-note-bottom {
  bottom: 8%;
  left: 11%;
}

.manifesto,
.work-section,
.contact-section {
  border-top: 1px solid var(--line);
}

.manifesto {
  display: grid;
  grid-template-columns: 72px minmax(250px, 0.9fr) minmax(300px, 1fr);
  gap: 48px;
  padding: 104px 0;
}

.section-index {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-heading h2,
.work-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.about-copy {
  align-self: end;
}

.about-copy > p {
  margin: 0 0 21px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.principles span {
  padding: 8px 14px;
  color: var(--primary);
  background: var(--primary-weak);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
}

.work-section {
  padding: 104px 0;
}

.work-heading {
  display: flex;
  gap: 48px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.work-heading > p {
  max-width: 410px;
  margin: 0 0 7px;
  color: var(--muted);
  line-height: 1.75;
}

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

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: var(--card-accent);
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 45%, var(--line));
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.project-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.project-card-red {
  --card-accent: var(--primary);
}

.project-card-amber {
  --card-accent: var(--accent);
}

.card-topline,
.card-footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
}

.card-topline span:last-child {
  padding: 4px 9px;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 11%, white);
  border-radius: var(--radius-pill);
}

.card-kicker {
  margin: 0 0 11px;
  color: var(--card-accent);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.project-card h3 {
  margin: 0 0 20px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.project-card > div > p:last-child {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.card-footer {
  padding-top: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.card-footer strong {
  color: var(--card-accent);
}

.contact-section {
  display: grid;
  grid-template-columns: 1.25fr minmax(280px, 0.75fr);
  gap: 64px;
  align-items: end;
  padding: 104px 0;
}

.contact-copy > p:last-child {
  max-width: 580px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.copy-button {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  padding: 30px;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.copy-button:hover {
  background: var(--primary);
  box-shadow: 0 12px 28px rgb(15 154 134 / 28%);
  transform: translateY(-4px);
}

.copy-button span {
  color: #b7c1cc;
  font-size: 12px;
  font-weight: 800;
}

.copy-button strong {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px);
}

footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 30px max(var(--space-page), calc((100% - var(--content)) / 2));
  color: #9aa6b4;
  background: var(--ink);
  border-top: 1px solid #232c3b;
  font-size: 13px;
}

footer p {
  margin: 0;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  padding: 12px 18px;
  color: #fff;
  pointer-events: none;
  visibility: hidden;
  background: var(--ink);
  border: 1px solid #334052;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

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

.not-found-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
}

.not-found {
  width: min(calc(100% - 40px), 900px);
  padding: 64px 0;
}

.not-found h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(72px, 15vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.07em;
}

.not-found > p:not(.eyebrow) {
  max-width: 560px;
  margin: 36px 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-orbit {
    width: min(78vw, 340px);
    margin: 10px auto 0;
  }

  .manifesto {
    grid-template-columns: 48px 1fr;
    gap: 32px 20px;
    padding: 84px 0;
  }

  .about-copy {
    grid-column: 2;
  }

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

  .contact-section {
    gap: 44px;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 60px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  nav {
    gap: 1px;
  }

  nav a {
    padding: 7px 8px;
    font-size: 12px;
  }

  .hero {
    padding: 60px 0 76px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .hero-actions,
  .work-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    gap: 10px;
  }

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

  .section-index,
  .about-copy {
    grid-column: 1;
  }

  .work-section,
  .contact-section {
    padding: 84px 0;
  }

  .work-heading {
    gap: 22px;
  }

  .project-card {
    min-height: 390px;
  }

  .project-card:hover {
    box-shadow: var(--shadow);
    transform: none;
  }

  footer {
    gap: 8px;
    padding-block: 26px;
  }

  .toast {
    right: 20px;
    bottom: 20px;
    left: 20px;
    text-align: center;
  }
}

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

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