:root {
  color-scheme: light;
  --teal: #123f43;
  --teal-2: #1b5559;
  --paper: #f4f1e9;
  --paper-2: #ebe6dc;
  --ink: #15292b;
  --muted: #4d6365;
  --faint: #6d7f80;
  --line: rgba(18, 63, 67, 0.14);
  --coral: #c56a45;
  --peach: #f4c8a8;
  --white: #fffdf8;
  --max: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --teal: #0d2c2f;
    --teal-2: #164246;
    --paper: #101c1e;
    --paper-2: #152427;
    --ink: #e8f0ee;
    --muted: #b7c6c4;
    --faint: #8ea09e;
    --line: rgba(232, 240, 238, 0.12);
    --coral: #e08b66;
    --peach: #f2c5a7;
    --white: #f6f2ea;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
a:hover { color: var(--coral); }
a:focus-visible, .skip:focus {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
::selection { color: var(--white); background: var(--coral); }

.wrap {
  width: min(calc(100% - 2.4rem), var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  z-index: 40;
  padding: 0.45rem 0.75rem;
  background: var(--peach);
  color: var(--teal);
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--teal) 92%, transparent);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.bar {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.brand:hover { color: var(--peach); }
.brand small {
  color: color-mix(in srgb, var(--white) 62%, transparent);
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mark {
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--teal), inset 0 0 0 3.5px var(--peach);
}

.site-header nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}
.site-header nav a { text-decoration: none; color: color-mix(in srgb, var(--white) 78%, transparent); }
.site-header nav a:hover { color: var(--peach); }

.hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(244, 200, 168, 0.18), transparent 28rem),
    var(--teal);
  color: var(--white);
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker.light, .section-h.light p { color: var(--peach); }
.kicker span {
  width: 1.6rem;
  height: 1px;
  background: var(--peach);
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 500;
}

h1 {
  margin: 0.9rem 0 0;
  font-size: clamp(3rem, 8vw, 5.4rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}
h1 span {
  display: block;
  margin-top: 0.4rem;
  color: var(--peach);
  font-size: 0.28em;
  letter-spacing: 0.08em;
}

.role { margin: 1rem 0 0; color: color-mix(in srgb, var(--white) 72%, transparent); }
.thesis {
  margin: 1.6rem 0 0;
  max-width: 14ch;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
}
.lede { margin: 1rem 0 0; max-width: 42rem; color: color-mix(in srgb, var(--white) 78%, transparent); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--white) 18%, transparent);
}
.facts dt {
  color: var(--peach);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.facts dd { margin: 0.3rem 0 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.7rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 200ms ease, filter 200ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { color: var(--teal); background: var(--peach); }
.btn-solid:hover { color: var(--teal); filter: brightness(1.05); }
.btn-ghost { color: var(--white); border-color: color-mix(in srgb, var(--white) 35%, transparent); }
.btn-ghost:hover { color: var(--peach); border-color: var(--peach); }
.btn-quiet { color: var(--teal); border-color: var(--line); background: transparent; }
.btn-quiet:hover { color: var(--coral); }

.iris {
  --mx: 0px;
  --my: 0px;
  position: relative;
  min-height: 22rem;
}
.glow {
  position: absolute;
  inset: 18%;
  background: radial-gradient(circle, color-mix(in srgb, var(--peach) 28%, transparent), transparent 68%);
  filter: blur(12px);
  animation: breathe 5.5s ease-in-out infinite;
}
.ring, .pupil {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid color-mix(in srgb, var(--peach) 55%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.r1 { width: 18rem; height: 18rem; animation: spin 42s linear infinite; }
.r2 { width: 12.2rem; height: 12.2rem; animation: spin 26s linear infinite reverse; }
.r3 { width: 7.2rem; height: 7.2rem; animation: spin 16s linear infinite; }
.pupil {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--peach);
  border: 0;
  box-shadow: 0 0 2.5rem color-mix(in srgb, var(--peach) 45%, transparent);
  transform: translate(calc(-50% + var(--mx)), calc(-50% + var(--my)));
  transition: transform 80ms linear;
  animation: pulse 2.8s ease-in-out infinite;
}
.trace {
  position: absolute;
  left: 50%;
  width: 38%;
  height: 1px;
  background: linear-gradient(90deg, var(--peach), transparent);
  transform-origin: left center;
  animation: scan 3.6s ease-in-out infinite;
}
.t1 { top: 28%; transform: rotate(-18deg); }
.t2 { top: 63%; transform: rotate(24deg); animation-delay: 1.2s; }
.chain {
  position: absolute;
  right: 0;
  bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--peach);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}
.chain i {
  width: 1.1rem;
  height: 1px;
  background: currentColor;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -1.6rem;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 2;
}
.principles li {
  padding: 1.15rem 1.2rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(18, 63, 67, 0.08);
  color: var(--muted);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}
.principles li:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--coral) 35%, var(--line));
  box-shadow: 0 24px 48px rgba(18, 63, 67, 0.14);
}
.principles strong {
  display: block;
  color: var(--coral);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
.principles span {
  display: block;
  margin: 0.35rem 0 0.25rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1.05rem;
}

.band { padding: 4.2rem 0; }
.band.alt { background: var(--paper-2); }
.band.ink {
  background: var(--teal-2);
  color: var(--white);
}

.section-h { margin-bottom: 1.6rem; max-width: 40rem; }
.section-h p, .en, .path, .work-top .en {
  margin: 0;
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-h h2 { margin: 0.4rem 0 0; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; }
.section-lead {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  letter-spacing: 0;
  text-transform: none;
}
.section-h.light h2 { color: var(--white); }
.section-h.light .section-lead { color: color-mix(in srgb, var(--white) 74%, transparent); }

.work {
  padding: 1.6rem 1.6rem 1.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(18, 63, 67, 0.08);
  transition: transform 320ms ease, box-shadow 320ms ease;
}
.work:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(18, 63, 67, 0.14);
}
.work-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--teal-2);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill i {
  width: 0.55rem;
  height: 0.55rem;
  background: #2f9e73;
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, #2f9e73 18%, transparent);
  animation: blink 1.8s ease-in-out infinite;
}
.work h3 { margin: 0.7rem 0 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.work .lead, .work .bound { color: var(--muted); }
.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.3rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.notes span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--coral);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.research, .agenda, .methods, .timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}
.research {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.research li, .agenda li {
  padding: 1.3rem 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}
.research li:hover, .agenda li:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 44px rgba(18, 63, 67, 0.14);
}
.research .featured {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.research .no {
  color: var(--coral);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
.research h3, .agenda h3, .timeline h3, .methods strong { margin: 0.35rem 0 0; }
.research p, .agenda p, .timeline p { margin: 0.4rem 0 0; color: var(--muted); }
.research .featured p, .research .featured .en, .research .featured .path { color: color-mix(in srgb, var(--white) 78%, transparent); }
.research .featured .en, .research .featured .no { color: var(--peach); }
.research .en, .agenda .en { margin-top: 0.2rem; }
.path { margin-top: 0.85rem !important; }

.agenda {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.agenda li {
  background: color-mix(in srgb, var(--teal) 70%, black);
  border-color: color-mix(in srgb, var(--white) 12%, transparent);
}
.agenda .en { color: var(--peach); }
.agenda h3 { color: var(--white); }
.agenda p { color: color-mix(in srgb, var(--white) 74%, transparent); }

.methods li {
  display: grid;
  grid-template-columns: 12rem 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}
.methods li:last-child { border-bottom: 1px solid var(--line); }
.methods span { color: var(--muted); }
.methods em {
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.methods em.on {
  color: var(--teal);
  background: color-mix(in srgb, var(--peach) 45%, white);
  border-color: transparent;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
}
.timeline li + li { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.note { color: var(--faint); }

.contact {
  padding: 4.6rem 0;
  background: var(--teal);
  color: var(--white);
}
.contact h2 {
  max-width: 12ch;
  margin: 0.7rem 0 0;
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.contact p { max-width: 38rem; color: color-mix(in srgb, var(--white) 78%, transparent); }

.site-footer {
  background: color-mix(in srgb, var(--teal) 94%, black);
  color: color-mix(in srgb, var(--white) 62%, transparent);
  font-size: 0.88rem;
}
.site-footer .bar { min-height: 3.6rem; }
.site-footer p { margin: 0; }

.error {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 5rem 0;
  background: var(--teal);
  color: var(--white);
}
.error h1 { margin: 0.45rem 0 0; font-size: clamp(2.2rem, 6vw, 3.8rem); }
.error p { max-width: 36ch; color: color-mix(in srgb, var(--white) 74%, transparent); }
.error .btn { margin-top: 0.4rem; }

@media (max-width: 900px) {
  .hero-grid, .research, .agenda, .notes, .principles, .split, .methods li {
    grid-template-columns: 1fr;
  }
  .iris { min-height: 16rem; }
  .r1 { width: 14rem; height: 14rem; }
  .brand small { display: none; }
}

@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .site-header nav { gap: 0.75rem; }
  .hero { padding: 3rem 0 3.2rem; }
  .work { padding: 1.15rem; }
}

.hero-copy > * {
  animation: rise 900ms cubic-bezier(.16,1,.3,1) both;
}
.hero-copy > :nth-child(1) { animation-delay: 40ms; }
.hero-copy > :nth-child(2) { animation-delay: 120ms; }
.hero-copy > :nth-child(3) { animation-delay: 200ms; }
.hero-copy > :nth-child(4) { animation-delay: 280ms; }
.hero-copy > :nth-child(5) { animation-delay: 360ms; }
.hero-copy > :nth-child(6) { animation-delay: 440ms; }
.hero-copy > :nth-child(7) { animation-delay: 520ms; }
.iris { animation: fade 1.1s ease both 180ms; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.16,1,.3,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.principles .reveal:nth-child(2) { transition-delay: 80ms; }
.principles .reveal:nth-child(3) { transition-delay: 160ms; }
.research .reveal:nth-child(2) { transition-delay: 70ms; }
.research .reveal:nth-child(3) { transition-delay: 140ms; }
.research .reveal:nth-child(4) { transition-delay: 210ms; }
.agenda .reveal:nth-child(2) { transition-delay: 90ms; }
.agenda .reveal:nth-child(3) { transition-delay: 180ms; }

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.methods li {
  transition: background-color 240ms ease, padding-left 240ms ease;
}
.methods li:hover { background: color-mix(in srgb, var(--peach) 16%, transparent); }

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes pulse {
  50% { box-shadow: 0 0 2.1rem color-mix(in srgb, var(--peach) 70%, transparent); transform: translate(calc(-50% + var(--mx)), calc(-50% + var(--my))) scale(1.08); }
}
@keyframes breathe {
  50% { opacity: .55; transform: scale(1.08); }
}
@keyframes scan {
  0%, 100% { opacity: .25; }
  50% { opacity: 1; }
}
@keyframes blink {
  50% { opacity: .35; box-shadow: 0 0 0 6px color-mix(in srgb, #2f9e73 8%, transparent); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
