@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f4f3ee;
  --ink: #0d1219;
  --muted: #5b6470;
  --line: rgba(13, 18, 25, .15);
  --blue: #234be8;
  --blue-deep: #1a39b8;
  --blue-bright: #2b55f5;
  --gutter: clamp(24px, 5.3vw, 88px);
  --header-h: 92px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55vw 55vw at 88% -12%, rgba(35, 75, 232, .08), transparent 62%),
    radial-gradient(46vw 46vw at -12% 42%, rgba(35, 75, 232, .05), transparent 60%);
}
::selection { background: var(--blue); color: #fff; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; border-radius: 2px; }
.wrap { max-width: 1640px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; top: 12px; left: 16px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 14px 18px; border-radius: 4px;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .45s ease, box-shadow .45s ease;
}
.header.is-scrolled {
  background: rgba(244, 243, 238, .8);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: min-height .45s var(--ease);
}
.header.is-scrolled .header-inner { min-height: 66px; }
.wordmark { font-size: clamp(24px, 2vw, 30px); font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.wordmark sup { font-size: .55em; position: relative; top: -.12em; margin-left: 1px; }
.wordmark span { font-weight: 400; letter-spacing: -.03em; }
.header nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); font-size: 14px; }
.header nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; letter-spacing: .02em; }
.header nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1.5px;
  background: var(--blue);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.header nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.language { border-left: 1px solid var(--line); padding-left: clamp(16px, 2vw, 30px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(30px, 5vh, 70px));
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  column-gap: 6%;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px; letter-spacing: .18em; font-weight: 600; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--blue); }
.hero .eyebrow { animation: fade-up .8s var(--ease) .1s both; }
.hero h1 {
  font-weight: 600;
  font-size: clamp(46px, 6.4vw, 104px);
  line-height: 1.08; letter-spacing: -.045em;
  margin: 28px 0 30px;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .line > span { display: block; transform: translateY(112%); animation: line-rise 1.05s var(--ease) .2s forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .34s; }
@keyframes line-rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.intro {
  max-width: 460px;
  font-size: 17px; line-height: 2; color: var(--muted);
  margin: 0 0 36px;
  animation: fade-up .9s var(--ease) .5s both;
}
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 20px;
  min-height: 56px; padding: 0 30px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: .02em;
  transition: color .4s var(--ease), border-color .4s var(--ease);
  animation: fade-up .9s var(--ease) .65s both;
}
.cta::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--ink); border-radius: inherit;
  transform: translateY(102%);
  transition: transform .5s var(--ease);
}
.cta:hover { color: var(--paper); }
.cta:hover::before { transform: none; }
.cta-arrow { display: inline-block; transition: transform .5s var(--ease); }
.cta:hover .cta-arrow { transform: translateY(4px); }

/* ---------- Identity card ---------- */
.identity-frame { animation: identity-in 1.15s var(--ease) .55s both, identity-float 7s ease-in-out 2s infinite; }
@keyframes identity-in { from { opacity: 0; transform: translateY(64px); } to { opacity: 1; transform: none; } }
@keyframes identity-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.identity {
  position: relative;
  aspect-ratio: 1 / 1.02;
  background: linear-gradient(155deg, var(--blue-bright), var(--blue-deep) 72%);
  color: #fff;
  overflow: hidden;
  padding: clamp(20px, 2vw, 30px);
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 8px;
  transform: rotate(3deg);
  box-shadow:
    14px 18px 0 rgba(13, 18, 25, .07),
    0 50px 90px -32px rgba(35, 75, 232, .5);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.identity:hover {
  transform: rotate(0deg) scale(1.015);
  box-shadow:
    8px 10px 0 rgba(13, 18, 25, .05),
    0 60px 100px -30px rgba(35, 75, 232, .55);
}
.identity::before { content: ""; position: absolute; inset: 64px 28px; border: 1px solid rgba(255, 255, 255, .22); pointer-events: none; }
.identity::after {
  content: ""; position: absolute;
  width: 170%; aspect-ratio: 1; left: -35%; top: -35%;
  border: 1px dashed rgba(255, 255, 255, .18); border-radius: 50%;
  animation: spin 46s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(1turn); } }
.identity-top, .identity-bottom {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: .15em;
}
.identity-symbol {
  position: relative; align-self: center;
  font-size: clamp(150px, 24vw, 380px);
  font-weight: 600; line-height: .82; letter-spacing: -.06em;
  margin-left: -.1em; white-space: nowrap;
}
.identity-symbol span { font-size: .36em; vertical-align: top; display: inline-block; letter-spacing: -.09em; line-height: 1.1; margin-left: .35em; }
.cross { font-size: 27px; font-weight: 300; line-height: 1; }
.hero-baseline {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line);
  margin-top: clamp(44px, 7vh, 88px); padding-bottom: 22px;
  font-size: 11.5px; letter-spacing: .14em; color: var(--muted);
  animation: fade-up .9s var(--ease) .85s both;
}
.scroll-hint i { display: inline-block; font-style: normal; animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding-block: 18px; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 26px; padding-right: 26px;
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  white-space: nowrap; color: var(--muted);
}
.marquee-item i { font-style: normal; font-size: 11px; color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(84px, 10vw, 148px); }
.section-label {
  display: flex; align-items: baseline; gap: 18px;
  font-size: 12.5px; letter-spacing: .16em; font-weight: 600; text-transform: uppercase;
  color: var(--muted); margin: 0 0 clamp(30px, 4vw, 52px);
}
.section-label > span { color: var(--blue); }
h2 { font-size: clamp(34px, 3.6vw, 58px); line-height: 1.22; letter-spacing: -.035em; font-weight: 600; margin: 0; }
h2 span { display: block; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.prose { max-width: 560px; }
.prose p { font-size: 17.5px; line-height: 2; color: var(--muted); margin: 0 0 26px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Principles ---------- */
.approach { padding-top: clamp(30px, 4vw, 40px); }
.approach h2 { margin-bottom: clamp(34px, 4vw, 54px); }
.principles { border-top: 1px solid var(--line); }
.principle {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: .8fr 1.5fr 1.6fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding: clamp(28px, 3vw, 42px) 18px;
  margin-inline: -18px;
  border-bottom: 1px solid var(--line);
}
.principle::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(155deg, var(--blue-bright), var(--blue-deep));
  transform: scaleY(0); transform-origin: top;
  transition: transform .5s var(--ease);
}
.principle:hover::before { transform: none; }
.principle-index {
  display: flex; align-items: center; gap: 26px;
  font-size: 12px; letter-spacing: .12em; padding-top: 8px;
  color: var(--muted);
  transition: color .4s ease;
}
.principle-index > span:first-child { font-size: 15px; font-weight: 600; color: var(--blue); transition: color .4s ease; }
h3 { font-size: clamp(20px, 1.7vw, 25px); line-height: 1.5; font-weight: 600; letter-spacing: -.02em; margin: 0; transition: color .4s ease, transform .5s var(--ease); }
.principle p { font-size: 16px; line-height: 1.85; color: var(--muted); margin: 0; transition: color .4s ease; }
.principle:hover h3 { color: #fff; transform: translateX(8px); }
.principle:hover p { color: rgba(255, 255, 255, .82); }
.principle:hover .principle-index { color: rgba(255, 255, 255, .7); }
.principle:hover .principle-index > span:first-child { color: #fff; }

/* ---------- Closing ---------- */
.closing {
  position: relative;
  background: linear-gradient(160deg, var(--blue-bright), var(--blue-deep) 78%);
  color: #fff;
  overflow: clip;
}
.closing-inner {
  position: relative;
  min-height: clamp(340px, 52vh, 500px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(64px, 8vw, 110px);
}
.closing .eyebrow { color: #c9d6ff; margin-bottom: 32px; }
.closing .eyebrow::before { background: #c9d6ff; }
.closing h2 { position: relative; z-index: 1; font-size: clamp(40px, 4.8vw, 78px); letter-spacing: -.04em; }
.closing-mark {
  position: absolute;
  right: var(--gutter); bottom: -.1em;
  font-size: clamp(200px, 22vw, 340px);
  line-height: 1; font-weight: 700; letter-spacing: -.1em;
  color: rgba(255, 255, 255, .09);
  user-select: none; pointer-events: none;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .closing-mark {
      animation: mark-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes mark-drift { from { transform: translateY(22%); } to { transform: translateY(-12%); } }
  }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-block: clamp(60px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.contact .section-label { margin: 0; }
.contact p { margin: 0 0 24px; color: var(--muted); font-size: 16.5px; line-height: 1.8; }
.email {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 12px;
  font-size: clamp(19px, 1.9vw, 27px);
  font-weight: 500; letter-spacing: -.02em; line-height: 1.5;
  overflow-wrap: anywhere;
}
.email::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1.5px; background: var(--blue);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.email:hover { color: var(--blue); }
.email:hover::after { transform: scaleX(1); transform-origin: left; }
.email span { display: inline-block; transition: transform .5s var(--ease); }
.email:hover span { transform: translate(7px, -7px); }

/* ---------- Footer ---------- */
.footer { padding-block: 54px; display: flex; justify-content: space-between; align-items: end; gap: 35px; }
.footer .wordmark { font-size: 25px; }
.footer p { font-size: 13px; color: var(--muted); line-height: 1.75; margin: 14px 0 0; }
.footer-end { text-align: right; }
.footer-end a { font-size: 14px; display: inline-flex; min-height: 44px; align-items: center; }
.legal { max-width: 650px; }

/* ---------- Scroll reveal (JS-gated) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js [data-reveal].is-inview { opacity: 1; transform: none; }
.js .prose p:nth-child(2) { transition-delay: .12s; }
.js .principle:nth-child(2) { transition-delay: .08s; }
.js .principle:nth-child(3) { transition-delay: .16s; }

/* ---------- English tuning ---------- */
html[lang=en] .hero h1 { font-size: clamp(42px, 5.7vw, 92px); letter-spacing: -.05em; }
html[lang=en] .eyebrow { font-size: 11.5px; }

/* ---------- Large screens ---------- */
@media (min-width: 1000px) {
  .hero { min-height: 100svh; }
}
@media (min-width: 1600px) {
  .identity { max-height: 660px; }
  .hero h1 { font-size: 104px; }
  html[lang=en] .hero h1 { font-size: 92px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  :root { --header-h: 78px; }
  .hero { column-gap: 5%; }
  .hero h1 { font-size: clamp(40px, 5.6vw, 64px); }
  .intro { font-size: 16px; }
  .identity::before { inset: 54px 20px; }
  .identity-top, .identity-bottom { font-size: 10.5px; }
  .principle { grid-template-columns: .7fr 1.3fr 1.5fr; gap: 24px; }
  .principle-index { gap: 16px; }
  html[lang=en] .hero h1 { font-size: clamp(40px, 5.8vw, 68px); }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  :root { --header-h: 70px; }
  .wordmark { font-size: 23px; }
  .header nav { gap: 16px; font-size: 13px; }
  .header nav > a[href="#approach"] { display: none; }
  .language { padding-left: 14px; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(42px, 11vw, 64px); margin: 24px 0 24px; }
  .intro { margin-bottom: 28px; line-height: 1.9; }
  .identity-frame { margin-top: 54px; justify-self: center; width: calc(100% - 18px); max-width: 460px; }
  .identity { aspect-ratio: 1.13; }
  .identity-symbol { font-size: clamp(180px, 60vw, 320px); }
  .hero-baseline { margin-top: 46px; padding-bottom: 18px; font-size: 10.5px; }
  .hero-baseline > span:first-child { display: none; }
  .marquee { padding-block: 14px; }
  .marquee-item { font-size: 11.5px; }
  .section { padding-block: 62px; }
  .section-label { margin-bottom: 26px; font-size: 11.5px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  h2 { font-size: 33px; }
  .prose p { font-size: 16px; line-height: 1.9; }
  .approach { padding-top: 8px; }
  .approach h2 { margin-bottom: 28px; }
  .principle { grid-template-columns: 1fr; gap: 14px; padding-block: 26px; margin-inline: -12px; padding-inline: 12px; }
  .principle-index { padding: 0; gap: 18px; }
  h3 { font-size: 21px; }
  .principle p { max-width: 540px; }
  .closing-inner { min-height: 320px; padding-block: 52px; }
  .closing h2 { font-size: clamp(32px, 9vw, 42px); }
  .closing-mark { font-size: 160px; }
  .contact { grid-template-columns: 1fr; gap: 16px; }
  .contact p { margin-bottom: 14px; }
  .footer { padding-block: 38px; align-items: start; gap: 24px; }
  .footer p { font-size: 12px; }
  .footer-end { flex-shrink: 0; }
  .footer-end a { font-size: 12px; }
  .footer .wordmark { font-size: 22px; }
  html[lang=en] .hero h1 { font-size: clamp(40px, 11.5vw, 62px); }
  html[lang=en] .eyebrow { font-size: 10.5px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero h1 .line > span { transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
