@import 'tailwindcss';

:root {
  --paper: #faf7f0;
  --paper-deep: #eee6d8;
  --mist: #e9eff0;
  --mist-deep: #486472;
  --ink: #292e30;
  --body: #464c4f;
  --muted: #62696b;
  --line: #cccbc3;
  --night: #20282b;
  --serif: 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'Source Han Serif SC', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 0 clamp(24px, 4.5vw, 72px);
  border-bottom: 1px solid rgba(41, 46, 48, 0.12);
  background: rgba(250, 247, 240, 0.84);
  backdrop-filter: blur(20px) saturate(120%);
}

.wordmark {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.site-nav nav {
  display: flex;
  gap: clamp(22px, 3vw, 44px);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.site-nav nav a { transition: color 180ms ease; }
.site-nav nav a:hover { color: var(--mist-deep); }

.nav-arrow {
  display: grid;
  justify-self: end;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(41, 46, 48, 0.22);
  border-radius: 50%;
  transition: border-color 180ms ease, transform 180ms ease;
}

.nav-arrow:hover {
  border-color: var(--mist-deep);
  transform: translateY(2px);
}

.eyebrow {
  margin: 0;
  color: var(--mist-deep);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow.light { color: rgba(250, 247, 240, 0.6); }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding-top: 72px;
  background: var(--paper);
}

.hero-material {
  position: absolute;
  inset: 72px 0 0 auto;
  width: 49%;
  overflow: hidden;
  border-left: 1px solid rgba(41, 46, 48, 0.1);
}

.hero-material::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250, 247, 240, 0.14), transparent 28%);
}

.hero-material img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.82) contrast(0.95);
  animation: breathe 14s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  width: min(57%, 950px);
  padding: clamp(120px, 17vh, 190px) clamp(28px, 5.5vw, 92px) 120px;
  animation: rise-in 900ms cubic-bezier(.2,.7,.2,1) both;
}

.hero .eyebrow { margin-bottom: clamp(36px, 5vh, 62px); }

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(52px, 6.7vw, 112px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.1;
}

.hero h1 em { color: var(--mist-deep); font-style: normal; }

.hero-definition {
  max-width: 760px;
  margin: clamp(44px, 6vh, 72px) 0 0;
  color: var(--body);
  font-size: clamp(15px, 1.25vw, 19px);
  letter-spacing: 0.02em;
  line-height: 2;
}

.hero-index {
  position: absolute;
  right: calc(49% + 22px);
  bottom: 32px;
  z-index: 4;
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.scroll-cue {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(41, 46, 48, 0.7);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.thesis {
  position: relative;
  display: grid;
  min-height: 112svh;
  overflow: hidden;
  padding: 16vh clamp(28px, 8vw, 132px);
  background: var(--night);
  color: var(--paper);
}

.section-rail {
  position: absolute;
  top: 17vh;
  right: clamp(24px, 4.5vw, 72px);
  display: flex;
  gap: 16px;
  color: rgba(250, 247, 240, 0.42);
  font-size: 9px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.thesis-copy { align-self: center; }
.thesis-copy .eyebrow { margin-bottom: clamp(44px, 7vh, 88px); }

.thesis h2 {
  max-width: 1220px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7.1vw, 112px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.22;
}

.thesis h2 span { color: #9db0b8; }

.thesis-copy > p:last-child {
  max-width: 760px;
  margin: clamp(54px, 8vh, 96px) 0 0 auto;
  color: rgba(250, 247, 240, 0.62);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 2;
}

.thesis-note {
  position: absolute;
  left: clamp(28px, 8vw, 132px);
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(250, 247, 240, 0.45);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.thesis-note i { width: 72px; height: 1px; background: rgba(250, 247, 240, 0.25); }

.world {
  padding: clamp(110px, 16vh, 190px) clamp(24px, 6vw, 100px) 0;
  background: var(--paper);
}

.world-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 40px;
  max-width: 1420px;
  margin: 0 auto clamp(90px, 13vh, 150px);
}

.world-heading .eyebrow { grid-column: 1 / -1; }

.world-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 6.2vw, 96px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.18;
}

.world-heading > p:last-child {
  align-self: end;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 2;
}

.passages { max-width: 1420px; margin: 0 auto; border-top: 1px solid var(--line); }

.passage {
  display: grid;
  grid-template-columns: minmax(120px, 0.25fr) minmax(0, 1fr);
  min-height: 70vh;
  border-bottom: 1px solid var(--line);
}

.passage-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 28px 44px 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.passage-meta span:last-child { writing-mode: vertical-rl; }

.passage-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  padding: clamp(70px, 11vh, 130px) 0 clamp(70px, 11vh, 130px) clamp(34px, 7vw, 112px);
}

.passage h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 6.4vw, 104px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.14;
}

.passage p {
  max-width: 440px;
  margin: 0;
  color: var(--body);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 2;
}

.language {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  min-height: 108svh;
  background: var(--mist);
}

.language-image { min-height: 100%; overflow: hidden; }

.language-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  filter: saturate(0.72) contrast(0.94);
  transform: scaleX(-1);
}

.language-copy {
  align-self: center;
  padding: clamp(90px, 14vh, 160px) clamp(32px, 7vw, 116px);
}

.language-copy .eyebrow { margin-bottom: clamp(50px, 8vh, 90px); }

.language h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 94px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.2;
}

.language h2 span { color: var(--mist-deep); }

.language-copy > p:last-child {
  max-width: 620px;
  margin: clamp(54px, 8vh, 92px) 0 0;
  color: var(--body);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 2;
}

.time {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 118svh;
  overflow: hidden;
  padding: 16vh clamp(28px, 8vw, 132px);
  background: var(--paper);
}

.time .eyebrow { margin-bottom: clamp(56px, 8vh, 96px); }

.time h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 7.7vw, 124px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.17;
}

.time h2 em { color: var(--mist-deep); font-style: normal; }

.time-body {
  align-self: flex-end;
  max-width: 680px;
  margin: clamp(64px, 9vh, 110px) 0 0;
  color: var(--body);
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 2;
}

.time-line {
  position: absolute;
  right: 7vw;
  top: 11vh;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
}

.time-line span { width: 5px; height: 5px; border-radius: 50%; background: var(--mist-deep); }
.time-line i { width: 34px; height: 1px; background: var(--line); }

.time-coda {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(90px, 14vh, 160px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.time-coda span {
  padding: 24px 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-align: center;
}

.time-coda span + span { border-left: 1px solid var(--line); }

.closing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 110svh;
  padding: 16vh clamp(28px, 8vw, 132px);
  background: var(--mist-deep);
  color: var(--paper);
}

.closing .eyebrow { margin-bottom: clamp(54px, 8vh, 92px); }

.closing h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 8vw, 128px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.16;
}

.closing h2 span { color: rgba(250, 247, 240, 0.58); }

.closing > p:last-child {
  align-self: flex-end;
  max-width: 520px;
  margin: clamp(64px, 9vh, 110px) 0 0;
  color: rgba(250, 247, 240, 0.7);
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 2;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 110px;
  padding: 26px clamp(24px, 4.5vw, 72px);
  border-top: 1px solid rgba(250, 247, 240, 0.16);
  background: var(--night);
  color: rgba(250, 247, 240, 0.62);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
}

footer p { margin: 0; }
.icp-link { justify-self: end; transition: color 180ms ease; }
.icp-link:hover { color: var(--paper); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
  from { transform: scale(1.01); }
  to { transform: scale(1.055); }
}

@media (max-width: 960px) {
  .world-heading, .passage-copy { grid-template-columns: 1fr; }
  .world-heading > p:last-child, .passage p { max-width: 620px; }
  .passage { min-height: auto; }
  .passage-copy { gap: 42px; padding-right: 12px; }
  .language { grid-template-columns: 0.72fr 1.28fr; }
}

@media (max-width: 720px) {
  .site-nav { min-height: 62px; padding: 0 20px; }
  .site-nav nav { display: none; }
  .hero { min-height: 100svh; padding-top: 62px; }

  .hero-material {
    inset: auto 0 0;
    width: 100%;
    height: 42%;
    border-top: 1px solid rgba(41, 46, 48, 0.1);
    border-left: 0;
  }

  .hero-material img { object-position: 52% 60%; }
  .hero-copy { align-self: start; width: 100%; padding: 68px 24px 46vh; }
  .hero .eyebrow { margin-bottom: 30px; }
  .hero h1 { font-size: clamp(43px, 12.4vw, 66px); line-height: 1.15; }
  .hero-definition { margin-top: 30px; font-size: 14px; line-height: 1.9; }
  .desktop-break, .hero-index { display: none; }
  .scroll-cue { right: 18px; bottom: 18px; color: rgba(41, 46, 48, 0.72); }

  .thesis { min-height: 100svh; padding: 120px 24px 100px; }
  .thesis h2 { font-size: clamp(42px, 11.8vw, 65px); line-height: 1.26; }
  .thesis-copy > p:last-child { margin-top: 54px; font-size: 14px; }
  .section-rail { top: 118px; right: 18px; }
  .thesis-note { left: 24px; bottom: 26px; }

  .world { padding: 110px 24px 0; }
  .world-heading { gap: 34px; margin-bottom: 72px; }
  .world-heading h2, .language h2 { font-size: clamp(40px, 11vw, 58px); }

  .world-heading > p:last-child, .passage p, .language-copy > p:last-child,
  .time-body, .closing > p:last-child { font-size: 14px; }

  .passage { grid-template-columns: 50px minmax(0, 1fr); }
  .passage-meta { padding: 28px 14px 28px 0; }
  .passage-copy { gap: 34px; padding: 74px 0 74px 24px; }
  .passage h3 { font-size: clamp(40px, 11vw, 58px); }

  .language { grid-template-columns: 1fr; min-height: auto; }
  .language-image { height: 52svh; }
  .language-copy { padding: 100px 24px 110px; }
  .language-copy .eyebrow { margin-bottom: 48px; }

  .time { min-height: 108svh; padding: 120px 24px 100px; }
  .time h2, .closing h2 { font-size: clamp(44px, 12vw, 66px); }
  .time-body, .closing > p:last-child { align-self: flex-start; margin-top: 56px; }
  .time-coda { margin-top: 90px; }
  .time-coda span { padding: 20px 4px; font-size: 9px; }

  .closing { min-height: 100svh; padding: 120px 24px 100px; }

  footer { grid-template-columns: 1fr; gap: 18px; padding: 36px 24px; }
  .icp-link { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
