:root {
  --ink: #101417;
  --paper: #f3f5f4;
  --muted: #667078;
  --line: #cfd5d6;
  --accent: #00a67d;
  --max: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: white; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { height: 72px; max-width: var(--max); margin: auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-weight: 850; font-size: 1.35rem; text-decoration: none; letter-spacing: -.06em; }
.wordmark span { color: var(--accent); }
nav { display: flex; align-items: center; gap: 30px; }
nav a { text-decoration: none; font-size: .9rem; }
.nav-contact { border: 1px solid var(--ink); padding: 10px 16px; }
.hero { max-width: var(--max); min-height: calc(100dvh - 72px); margin: auto; padding: 56px 32px 72px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; }
.kicker { margin: 0 0 22px; color: var(--accent); font-size: .76rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; max-width: 760px; font-size: clamp(3.7rem, 7.2vw, 7.2rem); line-height: .94; letter-spacing: -.075em; }
h1 span { color: var(--accent); }
.hero-intro { max-width: 630px; margin: 30px 0 0; color: var(--muted); font-size: 1.1rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; text-decoration: none; font-weight: 700; white-space: nowrap; transition: transform .2s ease, background .2s ease; }
.button:active { transform: translateY(1px); }
.primary { background: var(--ink); color: white; }
.primary:hover { background: var(--accent); }
.secondary { border: 1px solid var(--line); }
.secondary:hover { border-color: var(--ink); }
.hero-field { position: relative; aspect-ratio: 1; max-width: 520px; justify-self: end; width: 100%; border: 1px solid var(--line); border-radius: 50%; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; inset: 15%; }
.orbit-b { inset: 31%; background: var(--ink); }
.core-mark { position: absolute; inset: 40%; display: grid; place-items: center; color: white; font-weight: 800; font-size: clamp(1.5rem, 3vw, 3rem); letter-spacing: -.07em; }
.field-note { position: absolute; margin: 0; padding: 6px 10px; background: var(--paper); font-size: .76rem; font-weight: 700; }
.note-a { left: 4%; top: 46%; }.note-b { right: 6%; top: 20%; }.note-c { right: 0; bottom: 28%; }.note-d { left: 17%; bottom: 10%; }
.metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics article { padding: 38px 32px; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metrics strong { display: block; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.06em; }
.metrics span { color: var(--muted); font-size: .88rem; }
.section { max-width: var(--max); margin: auto; padding: 140px 32px; }
.section-heading { max-width: 760px; margin-bottom: 80px; }
h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.7rem); letter-spacing: -.065em; line-height: .98; }
.section-heading > p:last-child, .system-copy > p:last-child { max-width: 620px; margin-top: 26px; color: var(--muted); line-height: 1.8; }
.project { min-height: 640px; display: grid; grid-template-columns: 1.08fr .92fr; margin-bottom: 112px; background: white; }
.project-reverse { grid-template-columns: .92fr 1.08fr; }
.project-reverse .project-media { order: 2; }
.project-media { min-height: 620px; overflow: hidden; background: #e9edef; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.media-dark img { object-fit: contain; padding: 48px; background: #111619; }
.project-copy { padding: clamp(38px, 6vw, 86px); display: flex; flex-direction: column; justify-content: center; }
.project-type { color: var(--accent); text-transform: uppercase; letter-spacing: .11em; font-weight: 700; font-size: .72rem; }
.project h3 { margin: 18px 0 24px; font-size: clamp(2.4rem, 4vw, 4.7rem); line-height: .98; letter-spacing: -.06em; }
.project-lead { color: var(--muted); line-height: 1.75; }
dl { margin: 28px 0; border-top: 1px solid var(--line); }
dl div { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
dt { font-size: .8rem; color: var(--muted); } dd { margin: 0; line-height: 1.55; }
.text-link { width: fit-content; color: var(--accent); font-weight: 700; text-underline-offset: 5px; }
.source-links { display: flex; gap: 22px; flex-wrap: wrap; }
.project-compact { grid-template-columns: .8fr 1.2fr; min-height: 520px; }
.project-visual-code { padding: 50px; display: flex; flex-direction: column; justify-content: space-between; background: var(--accent); color: var(--ink); font-size: clamp(2.2rem, 4vw, 4.8rem); font-weight: 900; letter-spacing: -.07em; overflow: hidden; }
.project-visual-code span:nth-child(2) { transform: translateX(16%); }.project-visual-code span:nth-child(3) { transform: translateX(-8%); }
.operating-system { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; border-top: 1px solid var(--line); }
.system-copy { position: sticky; top: 70px; align-self: start; }
.system-list { list-style: none; margin: 0; padding: 0; }
.system-list li { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.system-list li > span { color: var(--accent); font-weight: 800; }.system-list strong { font-size: 1.45rem; }
.system-list p { color: var(--muted); line-height: 1.65; }
.experience { border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: 190px 1fr; gap: 36px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--accent); font-weight: 700; }.timeline h3 { margin: 0 0 8px; font-size: 1.35rem; }.timeline p { margin: 0 0 12px; font-weight: 700; }.timeline span { color: var(--muted); }
.contact { background: var(--ink); color: white; padding: 130px max(32px, calc((100vw - var(--max)) / 2 + 32px)); }
.contact h2 { max-width: 900px; }.contact > p:not(.kicker) { margin: 28px 0; color: #aeb7b8; }
.primary.light { background: white; color: var(--ink); }.primary.light:hover { background: var(--accent); }
footer { padding: 28px 32px; display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

@media (max-width: 900px) {
  .site-header { padding: 0 20px; } nav { gap: 18px; } nav a:not(.nav-contact) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 70px 20px 90px; }
  h1 { font-size: clamp(3.2rem, 15vw, 6rem); }
  .hero-field { max-width: 430px; justify-self: center; }
  .metrics { grid-template-columns: repeat(2, 1fr); }.metrics article:nth-child(2) { border-right: 0; }.metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 96px 20px; }.section-heading { margin-bottom: 52px; }
  .project, .project-reverse, .project-compact { grid-template-columns: 1fr; margin-bottom: 54px; min-height: auto; }
  .project-reverse .project-media { order: 0; }.project-media { min-height: 460px; }.project-copy { padding: 38px 26px 48px; }
  .project-visual-code { min-height: 340px; }
  .operating-system { grid-template-columns: 1fr; gap: 36px; }.system-copy { position: static; }
  .timeline article { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 520px) {
  .hero-actions, .source-links { flex-direction: column; align-items: stretch; }.button { width: 100%; }
  .hero-field { margin-top: 10px; }.metrics article { padding: 28px 20px; }.metrics strong { font-size: 2.2rem; }
  .project-media { min-height: 340px; }.media-dark img { padding: 28px; }
  .system-list li { grid-template-columns: 46px 1fr; }.contact { padding-top: 90px; padding-bottom: 90px; }
  footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
