/* Möbius official site — layout, components, pages
   Tokens live in tokens.css. Do not bake titles into images. */

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

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

@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;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--title); text-decoration: none; }
a:hover { color: var(--cyan-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  color: var(--title);
  line-height: var(--lh-title);
  letter-spacing: var(--tracking-title);
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 200;
  background: var(--title);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
}
.skip-link:focus { top: 8px; color: #fff; }

.wrap {
  width: min(1180px, calc(100% - 2 * var(--page-x)));
  margin-inline: auto;
}

.wrap-narrow { width: min(820px, calc(100% - 2 * var(--page-x))); margin-inline: auto; }

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  overflow: visible;
}
/* Frosted bar lives on this inner layer only — backdrop-filter on .site-header
   would make the drawer's position:fixed contain to the 56–64px bar. */
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--nav-h);
  background: rgba(244, 247, 250, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
  z-index: 0;
}
.site-header > .nav {
  position: relative;
  z-index: 1;
}
/* Header is overlaid; pages without a full-bleed hero still need the offset. */
main { padding-top: var(--nav-h); }
main:has(.home-hero),
main:has(.page-hero) { padding-top: 0; }


.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: min(1320px, calc(100% - 2 * var(--page-x)));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--title);
  margin-right: 8px;
}
.brand:hover { color: var(--title); }
.brand-mark {
  width: 52px;
  height: 26px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.brand-name {
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  color: var(--title);
  white-space: nowrap;
}
html[lang="en"] .brand-name { letter-spacing: 0.04em; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  position: relative;
  border-radius: 8px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--title);
  position: absolute;
  left: 13px;
  border-radius: 1px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 8px 12px;
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-nav);
  color: var(--ink-soft);
  border-radius: 8px;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link,
.nav-item.is-current > .nav-link {
  color: var(--title);
  background: rgba(20, 57, 125, 0.05);
}

.nav-sub {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(18, 35, 58, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: 110;
}
.nav-sub a {
  display: block;
  padding: 9px 12px;
  font-size: var(--fs-sub);
  color: var(--ink-soft);
  border-radius: 8px;
  letter-spacing: 0.02em;
}
.nav-sub a:hover,
.nav-sub a.is-current {
  background: rgba(20, 57, 125, 0.06);
  color: var(--title);
}

/* Open on click/tap at every width (.is-open). Hover is an extra for mouse desktops only — iPad must not depend on it. */
.nav-item.is-open > .nav-sub,
.nav-item:focus-within > .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .nav-item:hover > .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.5);
}
.lang-switch button {
  padding: 4px 11px;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  color: var(--muted);
  min-width: 36px;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--title);
  color: #fff;
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button[aria-pressed="true"] + button,
.lang-switch button + button[aria-pressed="true"] { border-left-color: transparent; }

/* Tablet landscape / 12.9" portrait (~1024) keep a compact horizontal bar; portrait iPad (~768) and phones use a drawer. */
@media (min-width: 1024px) and (max-width: 1320px) {
  .nav-link { padding: 8px 8px; font-size: 0.8125rem; letter-spacing: 0.02em; }
  .brand-name { max-width: 7.5em; overflow: hidden; text-overflow: ellipsis; }
  html[lang="en"] .brand-name { display: none; }
  .nav-sub a { min-height: 44px; display: flex; align-items: center; }
}

/* Chinese desktop nav: use the mid-bar space. English and the phone drawer stay as they are. */
@media (min-width: 1321px) {
  html:not([lang="en"]) .brand { margin-right: 16px; }
  html:not([lang="en"]) .nav-list {
    gap: 0;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  html:not([lang="en"]) .nav-link { padding: 8px 18px; }
}
@media (min-width: 1024px) and (max-width: 1320px) {
  html:not([lang="en"]) .nav-list {
    gap: 0;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  html:not([lang="en"]) .nav-link {
    padding: 8px 10px;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}
/* 联系我们 has no submenu; the last submenu is 专题研讨专区, which sits beside the language switch once items are spaced out. */
@media (min-width: 1024px) {
  html:not([lang="en"]) .nav-item:last-child > .nav-sub,
  html:not([lang="en"]) .nav-item:nth-last-child(2) > .nav-sub {
    right: 0;
    left: auto;
  }
}

@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .nav-tools { margin-left: 0; }
  .nav-list {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: rgba(244, 247, 250, 0.97);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--page-x) calc(48px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open .nav-list { display: flex; }
  .nav-link {
    padding: 14px 4px;
    font-size: 1.125rem;
    border-radius: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 8px 12px;
    min-width: 0;
  }
  .nav-item.is-open > .nav-sub { display: block; }
  .nav-sub a {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 1rem;
  }
  .nav-item > .nav-link.has-sub::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: auto;
    opacity: 0.5;
    flex: 0 0 auto;
  }
  .nav-item.is-open > .nav-link.has-sub::after {
    transform: rotate(225deg);
  }
}

/* iPad portrait (~768) and similar: roomier drawer typography */
@media (min-width: 700px) and (max-width: 1023px) {
  .nav-link { font-size: 1.25rem; min-height: 52px; }
  .nav-sub a { font-size: 1.0625rem; min-height: 48px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: var(--fs-sub);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  border: 1px solid transparent;
  text-align: center;
}
.btn:hover { color: #fff; }
.btn-primary {
  background: var(--title);
  color: #fff;
}
.btn-primary:hover { background: #0f2e66; color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.45);
  color: var(--title);
  border-color: rgba(20, 57, 125, 0.28);
}
.btn-ghost:hover {
  background: var(--title);
  color: #fff;
  border-color: var(--title);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Home hero ---------- */
.home-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100svh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  isolation: isolate;
  overflow: hidden;
}
/* 2560×1440 art: titles only in the upper half; ring lives in the lower field. */
.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg-ice);
  grid-column: 1;
  grid-row: 1 / -1;
}
.home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the ring in frame on short, wide viewports; composition now leaves a quiet zone above. */
  object-position: center 70%;
}
.home-hero-copy {
  position: relative;
  z-index: 1;
  grid-row: 1;
  grid-column: 1;
  align-self: start;
  width: 100%;
  min-height: 0;
  padding-top: calc(var(--nav-h) + clamp(80px, 13vh, 152px));
  padding-bottom: clamp(8px, 2vh, 20px);
  text-align: center;
  color: var(--title);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.home-hero-lower {
  position: relative;
  z-index: 2;
  grid-row: 2;
  grid-column: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: auto;
}
.home-hero h1 {
  font-size: var(--fs-hero);
  font-weight: var(--fw-semibold);
  max-width: 16em;
  margin-inline: auto;
  overflow-wrap: break-word;
  text-wrap: balance;
}
html[lang="en"] .home-hero h1 {
  max-width: 20em;
}
.home-hero .hero-sub {
  margin-top: 0.85rem;
  font-size: var(--fs-hero-sub);
  font-weight: var(--fw-regular);
  color: var(--title-soft);
  line-height: 1.45;
  max-width: 22em;
  margin-inline: auto;
  text-wrap: balance;
}
.home-hero .hero-note {
  margin-top: 0.7rem;
  font-size: var(--fs-hero-small);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  font-weight: var(--fw-regular);
  text-shadow: none;
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}
.home-hero .btn-row {
  margin-top: 1.15rem;
  justify-content: center;
}
.home-hero .hero-caption {
  margin: 0;
  flex: 0 0 auto;
  width: 100%;
  max-width: 42em;
  text-align: center;
  font-size: var(--fs-caption);
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255,255,255,0.85), 0 0 14px rgba(244,247,250,0.8);
  padding: clamp(8px, 2vh, 28px) var(--page-x) max(16px, env(safe-area-inset-bottom, 0px) + 12px);
}
html[lang="en"] .home-hero .hero-caption {
  letter-spacing: 0;
}

/* ---------- Page (inner) heroes ---------- */
.page-hero {
  position: relative;
  min-height: clamp(28rem, 78vh, 52rem);
  display: grid;
  grid-template-rows: auto minmax(46%, 1fr);
  isolation: isolate;
  overflow: hidden;
  background-color: var(--bg-ice);
}
.page-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg-ice);
  grid-column: 1;
  grid-row: 1 / -1;
}
.page-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 92%;
}
.page-hero--about  { --hero-accent: var(--accent-about); }
.page-hero--ideas  { --hero-accent: var(--accent-ideas); }
.page-hero--edition{ --hero-accent: var(--accent-edition); }
.page-hero--works  { --hero-accent: var(--accent-works); }
.page-hero--guide  { --hero-accent: var(--accent-guide); }
.page-hero--forum  { --hero-accent: var(--accent-forum); }
.page-hero--contact{ --hero-accent: var(--accent-contact); }
.page-hero-lower {
  position: relative;
  z-index: 0;
  grid-row: 2;
  grid-column: 1;
  pointer-events: none;
  min-height: 0;
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  grid-row: 1;
  grid-column: 1;
  align-self: start;
  width: auto;
  max-width: min(24em, 48%);
  margin-left: var(--page-x);
  margin-right: auto;
  padding: calc(var(--nav-h) + clamp(56px, 8vh, 96px)) 0 12px;
  color: var(--title);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  overflow-wrap: break-word;
}
/* Keep copy in the left/upper sky; long notes stay in the upper half. */
@media (max-width: 1023px) {
  .page-hero-copy { margin-left: var(--page-x); margin-right: auto; width: auto; max-width: min(22em, 52%); }
  .home-hero-bg img { object-position: center 70%; }
  .page-hero-photo img { object-position: center 92%; }
}
@media (max-width: 768px) {
  .home-hero-bg img { object-position: center 70%; }
  .page-hero-photo img { object-position: center 92%; }
  .page-hero-copy .hero-sub,
  .page-hero-copy .hero-note { font-size: var(--fs-sub); }
}

.page-hero-copy h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-semibold);
  text-wrap: balance;
}
html[lang="en"] .page-hero-copy h1 { max-width: 18em; }
.page-hero-copy .hero-sub,
.page-hero-copy .hero-note {
  margin-top: 1.15rem;
  font-size: var(--fs-hero-sub);
  font-weight: var(--fw-regular);
  color: var(--title-soft);
  line-height: 1.55;
  text-shadow: none;
}
.page-hero-copy .hero-sub,
.page-hero-copy .hero-note { text-wrap: pretty; }
.page-hero-copy .hero-note { font-size: var(--fs-sub); color: var(--ink-soft); letter-spacing: 0.02em; }
.page-hero-copy .btn-row { margin-top: 1.75rem; text-shadow: none; }

/* ---------- Sections ---------- */
.section {
  padding: var(--space-7) 0;
}
.section-tight { padding: var(--space-6) 0; }
.section-ice { background: var(--bg-ice); }
.section-white { background: var(--bg-white); }

.kicker {
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: var(--space-2);
}
.section h2,
.h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-4);
}
.section h3,
.h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-2);
}
.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--ink);
  max-width: 38em;
}
.muted { color: var(--ink-soft); }
.caption { font-size: var(--fs-caption); color: var(--muted); letter-spacing: 0.02em; }

/* ---------- Quote / founder ---------- */
.quote-screen {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: var(--space-6) 0;
}
.quote-block {
  max-width: 42em;
  margin-inline: auto;
  text-align: center;
}
.quote-block blockquote {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.55;
  font-weight: var(--fw-regular);
  color: var(--title);
}
.quote-attr {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.quote-attr img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  box-shadow: 0 8px 24px rgba(18, 35, 58, 0.12);
}
.quote-attr cite {
  font-style: normal;
  font-size: var(--fs-sub);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: var(--space-3);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px 30px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(18, 35, 58, 0.06);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); }
.card-accent {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  margin-bottom: 18px;
  border-radius: 2px;
}

.fork-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  padding: 32px 28px;
  border-radius: 18px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  color: var(--title);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.fork-card:hover {
  color: var(--title);
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--title) 28%, white);
  box-shadow: 0 16px 36px rgba(20, 57, 125, 0.08);
}
.fork-card strong {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  display: block;
}
.fork-card span {
  margin-top: 24px;
  font-size: var(--fs-sub);
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Award cards */
.grid-5:has(.award-card) {
  gap: var(--space-2);
}
.award-card {
  display: flex;
  flex-direction: column;
  padding: 24px 20px 26px;
}
.award-card .card-index {
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  color: var(--violet);
  font-weight: var(--fw-medium);
  margin-bottom: 12px;
}
.award-card h3 {
  font-size: clamp(1.0625rem, 1.25vw, 1.15rem);
  line-height: 1.38;
  letter-spacing: 0;
  margin-bottom: 12px;
  text-wrap: balance;
}
html[lang="en"] .award-card h3 {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.3;
  min-height: 2.6em;
}
.award-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  text-wrap: pretty;
}
@media (max-width: 1180px) and (min-width: 1024px) {
  .grid-5:has(.award-card) {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* News */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
  color: var(--title);
  line-height: 1.5;
}
.news-list li:last-child { border-bottom: 1px solid var(--line); }

/* Intro paragraph block */
.intro-block { position: relative; }
.intro-block .lead { font-size: 1.25rem; }
.intro-block .text-link {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: var(--fs-sub);
  letter-spacing: 0.04em;
  font-weight: var(--fw-medium);
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: var(--space-3);
  padding: 0 0 var(--space-4);
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(8.5rem + 6px);
  top: 12px;
  bottom: -4px;
  width: 1px;
  background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline .t-year {
  text-align: right;
  font-weight: var(--fw-semibold);
  color: var(--title);
  letter-spacing: 0.02em;
  padding-top: 2px;
  position: relative;
}
.timeline .t-year::after {
  content: "";
  position: absolute;
  right: -1.15rem;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(44, 175, 203, 0.16);
}
.timeline .t-body { color: var(--ink); padding-left: 12px; }
@media (max-width: 640px) {
  .timeline li { grid-template-columns: 1fr; padding-left: 20px; gap: 6px; }
  .timeline li::before { left: 3px; top: 12px; }
  .timeline .t-year { text-align: left; }
  .timeline .t-year::after { left: -19px; right: auto; }
  .timeline .t-body { padding-left: 0; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sub);
}
table.data th,
table.data td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th {
  font-weight: var(--fw-medium);
  color: var(--muted);
  font-size: var(--fs-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
table.data td { color: var(--ink); }
table.data tr:hover td { background: rgba(20, 57, 125, 0.025); }

/* ---------- Expert cards ---------- */
.expert-card h3 { font-size: 1.25rem; }
.expert-card .org { font-size: var(--fs-caption); color: var(--ink-soft); margin: 6px 0 10px; }
.expert-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--violet);
  border: 1px solid color-mix(in srgb, var(--violet) 35%, white);
  border-radius: 999px;
  padding: 2px 10px;
}

/* ---------- Forms (static) ---------- */
.form {
  display: grid;
  gap: 16px;
  max-width: 640px;
}
.form.form-wide { max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-caption); color: var(--ink-soft); letter-spacing: 0.04em; }
.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  background: var(--bg-white);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: color-mix(in srgb, var(--cyan) 70%, var(--title));
  box-shadow: 0 0 0 3px rgba(44, 175, 203, 0.18);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note {
  margin-top: 8px;
  font-size: var(--fs-caption);
  color: var(--muted);
}
.form-status {
  display: none;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--cyan) 10%, white);
  color: var(--title);
  font-size: var(--fs-sub);
}
.form-status.is-shown { display: block; }

/* ---------- Placeholder / slot ---------- */
.slot {
  border: 1px dashed color-mix(in srgb, var(--title) 22%, white);
  background: color-mix(in srgb, var(--bg-ice) 70%, white);
  border-radius: 14px;
  padding: 24px 26px;
}
.slot-label {
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.slot p + p { margin-top: 4px; }
.slot-list { list-style: none; margin: 0; padding: 0; }
.slot-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.slot-list li:last-child { border-bottom: 0; }

/* ---------- Status chips ---------- */
.chip {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}
.chip-open { color: var(--title); border-color: color-mix(in srgb, var(--cyan) 50%, white); background: color-mix(in srgb, var(--cyan) 10%, white); }
.chip-done { color: var(--violet-deep); }

/* ---------- Prose ---------- */
.prose { max-width: 42em; }
.prose p + p { margin-top: 1.1em; }
.prose ul, .prose ol { margin: 1em 0 0; padding-left: 1.2em; }
.prose li + li { margin-top: 0.45em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 720px) { .split-2 { grid-template-columns: 1fr; } }

.axis-card {
  padding: 32px 28px;
  border-radius: 16px;
  background: var(--bg-white);
  border: 1px solid var(--line);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 18px 4px;
  font-weight: var(--fw-medium);
  color: var(--title);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: var(--fw-regular);
  font-size: 1.25rem;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 4px 20px; color: var(--ink-soft); max-width: 46em; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #101e33 0%, #0b1627 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(56px, 7vw, 84px) 0 var(--space-4);
  margin-top: var(--space-6);
}
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--dur) var(--ease);
}
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(108px, 0.72fr) minmax(108px, 0.72fr) minmax(290px, 1.65fr);
  gap: var(--space-4) clamp(24px, 3.2vw, 48px);
  align-items: start;
}
.footer-brand .wordmark {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.48);
  font-weight: var(--fw-medium);
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.8125rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.56);
  max-width: 28em;
  text-wrap: pretty;
}
.footer-brand p:first-of-type {
  font-size: 1rem;
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.footer-brand p.mt-3 {
  margin-top: 14px;
}
.footer-col h4 {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}
.footer-col li + li { margin-top: 10px; }
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
}
.footer-col a:hover { color: #fff; }
.footer-col:last-child li:nth-child(3) {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.48);
}
.footer-bottom > div {
  display: inline-flex;
  align-items: center;
}
.footer-bottom .caption {
  color: rgba(255, 255, 255, 0.48);
}
.site-footer .lang-switch {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
}
.site-footer .lang-switch button { color: rgba(255, 255, 255, 0.6); }
.site-footer .lang-switch button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.site-footer .lang-switch button + button { border-left-color: rgba(255, 255, 255, 0.16); }

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 36px 32px;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: none;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-3 { margin-bottom: var(--space-3); }
.center { text-align: center; }
.center .lead, .center h2 { margin-inline: auto; }
hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-5) 0;
}

.stack-lg > * + * { margin-top: var(--space-5); }
.room-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
  background: var(--bg-white);
}
.room-panel header { margin-bottom: 12px; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 800px) { .process-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process-steps { grid-template-columns: 1fr; } }
.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg);
  min-height: 92px;
}
.step strong { display: block; font-size: var(--fs-caption); color: var(--violet); letter-spacing: 0.08em; margin-bottom: 6px; }
.step span { font-size: var(--fs-sub); color: var(--ink-soft); }

.work-frame {
  border: 1px dashed color-mix(in srgb, var(--title) 22%, white);
  border-radius: 16px;
  padding: 24px;
  background: var(--bg-white);
}
.work-frame h3 { margin-bottom: 8px; }
.work-frame + .work-frame { margin-top: 16px; }



/* ---------- Reading measure: do not stretch body copy on large screens ---------- */
.lead, .prose, .intro-block .lead, .news-list, .faq .faq-a, .quote-block {
  max-width: 40rem;
}
.intro-block { max-width: 42rem; }

/* Short landscape (iPad landscape ~1024×768, many convertibles): shrink type, keep titles fully on screen */
@media (max-height: 960px) and (min-width: 768px) {
  .home-hero { height: 100vh; height: 100svh; height: 100dvh; max-height: 100vh; max-height: 100svh; max-height: 100dvh; }
  .home-hero-copy { padding-top: calc(var(--nav-h) + clamp(64px, 10vh, 120px)); padding-bottom: 4px; }
  .home-hero h1 { font-size: clamp(1.85rem, 5.2vh, 3rem); }
  html[lang="en"] .home-hero h1 { font-size: clamp(1.85rem, 5.2vh, 2.5rem); }
  .home-hero .hero-sub { font-size: clamp(1.05rem, 2.4vh, 1.375rem); margin-top: 0.45rem; }
  .home-hero .hero-note { margin-top: 0.4rem; font-size: 0.9375rem; }
  .home-hero .btn-row { margin-top: 0.7rem; }
  .home-hero .btn { min-height: 42px; padding: 8px 18px; font-size: 0.9375rem; }
  .home-hero .hero-caption { padding-top: 8px; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px) + 8px); }
  .home-hero-bg img { object-position: center 70%; }
  .page-hero-photo img { object-position: center 92%; }
  .page-hero { min-height: clamp(28rem, 86vh, 46rem); }
  .page-hero-copy { padding-top: calc(var(--nav-h) + clamp(40px, 7vh, 72px)); padding-bottom: 8px; max-width: min(26em, 50%); }
  .page-hero-copy h1 { font-size: clamp(1.5rem, 3.6vh, 2.15rem); }
  .page-hero-copy .hero-note { font-size: 0.9375rem; line-height: 1.5; }
  .quote-screen { min-height: 0; padding: var(--space-6) 0; }
}

@media (max-height: 740px) {
  .home-hero h1 { font-size: clamp(1.6rem, 4vh, 2.35rem); }
  .home-hero .hero-sub { margin-top: 0.3rem; font-size: clamp(0.9rem, 2vh, 1.15rem); }
  .home-hero .hero-note { margin-top: 0.2rem; }
  .home-hero .btn-row { margin-top: 0.3rem; }
  .home-hero .btn { min-height: 34px; padding: 6px 14px; font-size: 0.8125rem; }
}
@media (max-height: 740px) and (min-width: 768px) {
  .home-hero-copy { padding-top: calc(var(--nav-h) + clamp(48px, 8vh, 80px)); padding-bottom: 2px; }
}

/* Phone and small tablet: keep hero copy in the upper field, caption visible, note not flush to the edges. */
@media (max-width: 768px) {
  .home-hero-copy.wrap {
    width: min(1180px, calc(100% - 56px));
  }
  .home-hero-copy { padding-top: calc(var(--nav-h) + 8px); padding-bottom: 4px; }
  .home-hero h1 { font-size: clamp(1.45rem, 3.6vh, 2.05rem); }
  .home-hero .hero-sub { margin-top: 0.3rem; }
  .home-hero .hero-note {
    letter-spacing: 0.01em;
    line-height: 1.5;
    max-width: 22em;
    padding-inline: 4px;
    margin-top: 0.25rem;
  }
  .home-hero .btn-row {
    margin-top: 0.4rem;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
  }
  .home-hero .btn-row .btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    min-height: 36px;
    padding: 7px 8px;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .page-hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    grid-template-rows: auto minmax(38%, 1fr);
  }
  .page-hero-copy {
    max-width: 100%;
    margin-right: var(--page-x);
    padding-top: calc(var(--nav-h) + clamp(24px, 5vh, 40px));
    padding-bottom: 8px;
  }
  .page-hero-copy .hero-note { font-size: 0.9375rem; line-height: 1.5; }
  .home-hero .hero-caption {
    font-size: 0.75rem;
    line-height: 1.5;
    padding-top: 8px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px) + 8px);
  }
  html[lang="en"] .home-hero h1 {
    font-size: clamp(1.3rem, 5.6vw, 1.8rem);
    line-height: 1.2;
    letter-spacing: 0;
    max-width: 16.5em;
    overflow-wrap: break-word;
  }
  html[lang="en"] .home-hero .hero-sub {
    font-size: clamp(0.9rem, 2.6vw, 1.05rem);
    margin-top: 0.5rem;
  }
  html[lang="en"] .home-hero .hero-note {
    font-size: 0.75rem;
    margin-top: 0.4rem;
    letter-spacing: 0;
  }
  html[lang="en"] .home-hero .btn-row {
    margin-top: 0.4rem;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  html[lang="en"] .home-hero .btn-row .btn,
  html[lang="en"] .home-hero .btn {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    max-width: 100%;
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

/* Phone width ~390 */
@media (max-width: 430px) {
  .home-hero h1, .page-hero-copy h1 { overflow-wrap: break-word; }
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .home-hero .btn-row .btn { flex: 1 1 auto; width: auto; }
  html[lang="en"] .home-hero h1 { font-size: 1.3rem; }
  html[lang="en"] .home-hero .btn-row .btn {
    flex: 0 1 auto;
    white-space: nowrap;
  }
}

/* Safe areas */
@supports (padding: max(0px, env(safe-area-inset-top))) {
  .site-header { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .site-footer { padding-bottom: max(var(--space-4), env(safe-area-inset-bottom)); }
}

/* Grid comfort at 768 */
@media (max-width: 768px) {
  .grid-5, .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .split-2 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1023px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
