/* Pacific Leap: a navigation chart, not a pitch deck.
   One accent: the red course line, the route plotted across the chart. */
:root {
  --paper: #f4f7f6;
  --ink: #13263b;
  --depth: #50677e;
  --grid: #c9d8df;
  --shoal: #e5eef1;
  --course: #c8201b;
  --course-deep: #a3170f;

  --serif: "Iowan Old Style", "Sitka Text", Charter, "Bitstream Charter", "Palatino Linotype", Palatino, Georgia, serif;
  /* Sitka ships in optical sizes on Windows; each heading level gets the cut drawn for its size. */
  --display: "Iowan Old Style", "Sitka Banner", Charter, "Bitstream Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --heading: "Iowan Old Style", "Sitka Display", Charter, "Bitstream Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --subhead: "Iowan Old Style", "Sitka Heading", Charter, "Bitstream Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --label: "Iowan Old Style", "Sitka Subheading", Charter, "Bitstream Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}

/* Language switch: every string exists twice; show one. */
html[data-lang="en"] [data-l="zh"],
html[data-lang="zh"] [data-l="en"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.62 var(--serif);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
:lang(zh-CN) { font-family: var(--zh); }
html[data-lang="zh"] body { font-size: 1.0625rem; line-height: 1.9; }

a { color: inherit; }
p { margin: 0 0 1rem; max-width: 66ch; text-wrap: pretty; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

:focus-visible { outline: 2px solid var(--course); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--ink); color: #fff; padding: .5rem .8rem; text-decoration: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); text-wrap: balance; }
h1 [lang="zh-CN"], h2 [lang="zh-CN"], h3 [lang="zh-CN"] { font-family: var(--zh); letter-spacing: .03em; }
h2 { font-family: var(--heading); font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -.012em; margin: 0 0 1.25rem; max-width: 24ch; }
h3 { font-family: var(--label); font-size: 1.3rem; line-height: 1.25; margin: 0 0 .5rem; }
html[data-lang="zh"] h2 { line-height: 1.35; letter-spacing: 0; }
html[data-lang="zh"] h3 { line-height: 1.4; }

/* Masthead: the mark, then the two names stacked */
.masthead { display: flex; align-items: center; gap: 2rem; padding-block: 1.25rem; }
.lockup { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.mark, .mark-note img, .footer-lockup img { display: block; flex: none; }
.lockup-text { display: flex; flex-direction: column; line-height: 1.1; }
.lockup-en { font-family: var(--label); font-size: 1.35rem; font-weight: 600; letter-spacing: -.005em; }
.lockup-zh { font-family: var(--zh); font-size: .74rem; letter-spacing: .34em; color: var(--depth); margin-top: .28rem; }
.nav { margin-left: auto; display: flex; gap: 1.75rem; }
.nav a { text-decoration: none; color: var(--depth); font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.lang { display: flex; gap: .15rem; }
.lang button {
  font: inherit; font-size: .9rem; background: none; border: 0; cursor: pointer;
  white-space: nowrap;
  padding: .35rem .55rem; color: var(--depth); border-bottom: 2px solid transparent;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--course); }

main > section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }

/* Hero: on wide screens the course arches over the headline like a bridge */
main > section.hero { padding-top: .5rem; padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
h1 { font-size: clamp(2.9rem, 7.2vw, 5.75rem); line-height: 1.02; letter-spacing: -.022em; margin: 0; max-width: 13ch; }
html[data-lang="zh"] h1 { font-size: clamp(2.6rem, 6.6vw, 5.25rem); line-height: 1.18; letter-spacing: .04em; max-width: none; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; max-width: 40rem; margin: 1.6rem 0 2.1rem; }
html[data-lang="zh"] .lede { line-height: 1.85; max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.button {
  display: inline-block; background: var(--course); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1rem; padding: .85em 1.4em; border-radius: 2px;
}
.button:hover { background: var(--course-deep); }
.textlink { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; color: var(--ink); }
.textlink:hover { color: var(--course); }
.status { margin-top: 1.6rem; font-size: .95rem; color: var(--depth); }

.hero-stage { position: relative; aspect-ratio: 1400 / 860; }
/* Percent padding and width resolve against the stage width, so the copy tracks the chart as it scales. */
.hero-copy { position: relative; width: max(56%, 34rem); max-width: 100%; margin-inline: auto; padding-top: 19.5%; text-align: center; }
.hero-copy h1 { font-size: clamp(2.6rem, 5.2vw, 4.25rem); line-height: 1.04; max-width: 8em; margin-inline: auto; }
html[data-lang="zh"] .hero-copy h1 { font-size: clamp(2.4rem, 4.9vw, 4rem); line-height: 1.25; max-width: none; }
.hero-copy .lede { font-size: clamp(1.1rem, 1.45vw, 1.28rem); margin: 1.35rem auto 1.9rem; text-wrap: balance; }
.hero-copy .actions { justify-content: center; }
.hero-copy .status { margin: 1.4rem auto 0; text-wrap: balance; }

/* A second, inert view of the same authored hero, revealed only inside the lens. */
.language-lens {
  --ink: #ffffff;
  --depth: #c1cdd6;
  --grid: #273440;
  --course: #f0483f;
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: #080e14;
  color: var(--ink);
  pointer-events: none;
  user-select: none;
  visibility: hidden;
  clip-path: circle(clamp(55px, 7vw, 102.5px) at var(--lens-x, 50%) var(--lens-y, 50%));
}
.language-lens.is-visible { visibility: visible; }
html[data-lang="en"] .language-lens [data-l="en"],
html[data-lang="zh"] .language-lens [data-l="zh"] { display: none !important; }
html[data-lang="en"] .language-lens [data-l="zh"],
html[data-lang="zh"] .language-lens [data-l="en"] { display: revert !important; }
.language-lens[lang="zh-CN"] .hero-copy h1 {
  font-family: var(--zh);
  font-size: clamp(2.4rem, 4.9vw, 4rem);
  line-height: 1.12;
  letter-spacing: .03em;
  max-width: none;
}
.language-lens[lang="zh-CN"] h1 .nobr { display: block; }
.language-lens[lang="zh-CN"] .hero-copy .lede { line-height: 1.8; }
.language-lens[lang="en"] { font-family: var(--serif); line-height: 1.62; }
.language-lens[lang="en"] .hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  max-width: 8em;
}
.language-lens[lang="en"] .hero-copy .lede { line-height: 1.55; max-width: 40rem; }
.language-lens stop { stop-color: #080e14; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .language-lens { display: none; }
}

/* The chart: graticule, date line and one great-circle course. No coastlines or borders, by design. */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart-wide {
  position: absolute; left: 0; top: 0;
  -webkit-mask-image: linear-gradient(#000 68%, transparent 97%);
  mask-image: linear-gradient(#000 68%, transparent 97%);
}
.chart-compact { display: none; }
.grid line { stroke: var(--grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.equator { stroke: var(--grid); stroke-width: 2; vector-effect: non-scaling-stroke; }
.dateline { stroke: var(--depth); stroke-width: 1.2; stroke-dasharray: 5 8; opacity: .75; }
.marks text { font: 19px/1 var(--serif); fill: var(--depth); font-variant-numeric: tabular-nums lining-nums; }
.marks text[data-l="zh"], .place[data-l="zh"] { font-family: var(--zh); }
.place { font: 600 21px/1 var(--serif); fill: var(--ink); }
.course {
  fill: none; stroke: var(--course); stroke-width: 3.4; stroke-linejoin: round; stroke-linecap: butt;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.4s cubic-bezier(.45, .05, .25, 1) .35s forwards;
}
.ends .ring { fill: var(--paper); stroke: var(--course); stroke-width: 2.5; }
.ends .dot { fill: var(--course); }
.ends .end { opacity: 0; animation: appear .45s ease-out 2.65s forwards; }
.chart-compact .course { stroke-width: 6; }
.chart-compact .ends .ring { stroke-width: 4.5; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .course { animation: none; stroke-dashoffset: 0; }
  .ends .end { animation: none; opacity: 1; }
}

/* Why now: the gates as waypoints on a route (a true sequence, so it gets a line and marks).
   main.js marks today and fills the stretch already travelled; without it the route stays neutral. */
.gates-wrap { --node: 16px; --track-y: calc(2.25rem + var(--node) / 2); position: relative; margin: 3rem 0 2.5rem; padding-top: 2.25rem; }
.gates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(2rem, 4.5vw, 3.75rem); }
.gate { position: relative; padding-top: calc(var(--node) + 1.1rem); }
.gate time { display: block; color: var(--depth); font-variant-numeric: tabular-nums lining-nums; margin-bottom: .4rem; }
.gate h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.gate p { margin: 0; }
.node {
  position: absolute; left: 0; top: 0; z-index: 1; width: var(--node); height: var(--node);
  border-radius: 50%; background: var(--paper); border: 2px solid var(--depth);
}
.gate.is-past .node { background: var(--course); border-color: var(--course); box-shadow: inset 0 0 0 3px var(--paper); }
.track, .track-past { position: absolute; left: calc(var(--node) / 2); top: calc(var(--track-y) - 1px); height: 2px; }
.track { right: 0; background: repeating-linear-gradient(90deg, var(--grid) 0 8px, transparent 8px 14px); }
.track-past { width: var(--past, 0px); background: var(--course); display: none; }
.today { position: absolute; left: var(--today, 0px); top: calc(var(--track-y) - 26px); width: 2px; height: 35px; margin-left: -1px; background: var(--ink); display: none; }
.today-label { position: absolute; left: 8px; top: -4px; font-size: .88rem; line-height: 1.3; white-space: nowrap; color: var(--ink); }
.gates-wrap.is-live .track-past, .gates-wrap.is-live .today { display: block; }
.coda { font-size: 1.2rem; }

/* What we believe: the one long-form statement, set larger */
.belief { font-family: var(--subhead); font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.4; max-width: 42ch; margin: .5rem 0 1.5rem; }
html[data-lang="zh"] .belief { font-family: var(--zh); font-size: clamp(1.3rem, 2.1vw, 1.7rem); line-height: 1.75; max-width: 30em; }
.nobr { white-space: nowrap; }

/* Two practices with the independence wall between them */
.practices { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); gap: 0 clamp(2rem, 5vw, 4.5rem); margin-top: 2.5rem; }
.wall { background: var(--ink); }
.practice h3 { font-family: var(--subhead); font-size: clamp(1.5rem, 2.2vw, 1.85rem); margin-bottom: .2rem; }
.for { color: var(--depth); margin-bottom: 1.1rem; }
.state { margin: 1.4rem 0 0; font-size: .92rem; color: var(--depth); display: flex; align-items: center; gap: .55rem; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--depth); flex: none; }
.wall-note { margin-top: 2.4rem; color: var(--depth); font-size: .98rem; }

/* How we're built */
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 4.5rem; margin: 2.5rem 0 0; }
.terms dt { font-weight: 600; font-size: 1.2rem; }
.terms dd { margin: .35rem 0 0; max-width: 40ch; }

/* Commitments: a charter, ruled like one */
main > section.commitments { background: var(--shoal); }
.never { list-style: none; padding: 0; margin: 2.2rem 0 0; max-width: 54rem; }
.never li { position: relative; padding: 1rem 0 1rem 2.4rem; border-top: 1px solid var(--grid); }
.never li:last-child { border-bottom: 1px solid var(--grid); }
.never li::before { content: "\00D7"; position: absolute; left: .25rem; top: 1.02rem; color: var(--course); font-size: 1.45rem; line-height: 1; }

/* How we make money: three revenue lines, each with a drawn symbol, then the moat */
.engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3.5rem; margin: 2.4rem 0 2rem; }
.engine { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.engine .icon { display: block; width: 36px; height: 36px; margin-bottom: .85rem; overflow: visible; }
.i-ink { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i-course { fill: none; stroke: var(--course); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-course-fill { fill: var(--course); }
.i-badge { fill: var(--paper); stroke: var(--course); stroke-width: 1.6; }
.moat { font-size: 1.2rem; max-width: 60ch; }

/* What happens next */
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4.5rem; margin: 2.2rem 0 1.5rem; }
.plain { margin: .25rem 0 0; padding-left: 1.15rem; }
.plain li { margin-bottom: .45rem; }
.plain li::marker { color: var(--depth); }

/* The name */
main > section.name { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.name-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem 3.5rem; align-items: center; }
.name-mark { font-family: var(--zh); font-weight: 300; font-size: clamp(3rem, 7.5vw, 6rem); letter-spacing: .1em; line-height: 1; margin: 0; max-width: none; }
.name-grid p:not(.name-mark) { margin: 0; font-size: 1.15rem; }
.name-grid p.mark-note { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; font-size: 1rem; color: var(--depth); }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem 5rem; align-items: start; }
.contact-lead { font-size: 1.25rem; }
.fine { font-size: .92rem; color: var(--depth); margin-top: 1.6rem; max-width: 62ch; }
.form { display: grid; gap: 1.1rem; background: #fff; border: 1px solid var(--grid); border-radius: 3px; padding: clamp(1.25rem, 3vw, 2rem); }
.field label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--depth); }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #9fb3c0; border-radius: 2px; padding: .65rem .75rem;
}
.form textarea { resize: vertical; min-height: 6.5rem; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--course); outline-offset: 1px; border-color: var(--course); }
.legend { font-size: .84rem; line-height: 1.55; color: var(--depth); margin: .25rem 0 0; }
html[data-lang="zh"] .legend { line-height: 1.75; }
.submit-row { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; }
.submit-row .button { border: 0; cursor: pointer; font-family: inherit; }
.submit-row .button:disabled { opacity: .6; cursor: progress; }
.form-status { margin: 0; font-size: .95rem; }
.bot { display: none; }

/* Footer */
.footer { border-top: 1px solid var(--grid); padding-block: 3rem 4.5rem; font-size: .9rem; color: var(--depth); }
.footer-lockup { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.4rem; }
.fl-en { font-family: var(--label); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.fl-zh { font-size: .8rem; letter-spacing: .3em; }
.footer h2.sources-title { font-family: var(--serif); font-size: 1rem; line-height: 1.4; margin: 2rem 0 .5rem; max-width: none; }
.footer h2.sources-title [lang="zh-CN"] { font-family: var(--zh); letter-spacing: 0; }
.sources { margin: 0; padding-left: 1.1rem; }
.sources li { margin-bottom: .3rem; }
.copyright { margin-top: 2rem; }

@media (max-width: 900px) {
  .engines { grid-template-columns: minmax(0, 1fr); }
  /* Narrow screens: the compact chart sits above the headline instead of arching over it. */
  .hero-stage { aspect-ratio: auto; }
  .chart-wide { display: none; }
  .chart-compact { display: block; margin: .75rem 0 1.75rem; }
  .hero-copy { width: auto; padding-top: 0; text-align: left; }
  .hero-copy h1 { font-size: clamp(2.6rem, 8.5vw, 3.8rem); margin-inline: 0; }
  html[data-lang="zh"] .hero-copy h1 { font-size: clamp(2.3rem, 7.6vw, 3.5rem); }
  .hero-copy .lede, .hero-copy .status { margin-inline: 0; text-wrap: pretty; }
  .hero-copy .actions { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 760px) {
  /* The route turns vertical; today sits in the gap between the last gate passed and the next. */
  .gates-wrap { padding-top: 0; padding-left: 2.25rem; }
  .gates { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
  .gate { padding-top: 0; }
  .node { left: -2.25rem; top: .3rem; }
  .track, .track-past { left: calc(var(--node) / 2 - 1px); top: calc(.3rem + var(--node) / 2); width: 2px; }
  .track { right: auto; bottom: 0; height: auto; background: repeating-linear-gradient(180deg, var(--grid) 0 8px, transparent 8px 14px); }
  .track-past { height: var(--past, 0px); }
  .today { left: 0; top: var(--today, 0px); width: var(--node); height: 2px; margin: -1px 0 0; }
  .today-label { left: 2.25rem; top: 50%; transform: translateY(-50%); }
  .practices { grid-template-columns: minmax(0, 1fr); }
  .wall { height: 1px; width: 100%; margin: 2.2rem 0; }
  .terms, .columns { grid-template-columns: minmax(0, 1fr); }
  .name-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .chart-compact .course { stroke-width: 7; }
}
@media (max-width: 380px) {
  .masthead { gap: .5rem; }
  .lockup { gap: .5rem; }
  .lockup-en { font-size: 1.15rem; white-space: nowrap; }
  .lang { flex-shrink: 0; }
}
