@font-face {
  font-family: "Noto Sans SC";
  src: url("/assets/fonts/NotoSansSC-CIE.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #00338d;
  --cyan: #0097dc;
  --teal: #0097a9;
  --purple: #8f2b8b;
  --red: #e70033;
  --green: #63a70a;
  --deep: #001f57;
  --ink: #111827;
  --paper: #f5f6f3;
  --mist: #eaf5fa;
  --line: rgba(17, 24, 39, .2);
  --white: #fff;
  --ease: cubic-bezier(.22, .65, .28, 1);
  --radius: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
::selection { background: var(--cyan); color: #fff; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  transform: translateY(-140%); background: white; color: var(--blue);
  padding: 10px 16px; border-radius: 999px; font-weight: 750;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: 84px; padding: 0 4vw;
  display: grid; grid-template-columns: minmax(240px, 1fr) auto minmax(220px, 1fr);
  align-items: center; gap: 24px;
  background: color-mix(in srgb, var(--deep) 96%, transparent);
  color: white; border-bottom: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(16px);
}
.brand { width: 285px; }
.brand img { width: 100%; height: 58px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.main-nav a, .header-actions a { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.main-nav a { position: relative; padding: 30px 0 27px; }
.main-nav a::after { content: ""; position: absolute; inset: auto 0 21px; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--cyan); transition: transform .25s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.language-link { border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 9px 13px; }
.apply-pill { background: var(--cyan); border-radius: 999px; padding: 10px 16px; }
.menu-button { display: none; border: 0; color: white; background: transparent; font-weight: 800; }

.hero {
  position: relative; min-height: calc(100svh - 84px); overflow: hidden;
  padding: 64px 4vw 42px; display: grid; align-content: space-between;
  background: var(--blue); color: white;
}
.hero::after {
  content: ""; position: absolute; width: min(68vw, 980px); aspect-ratio: 500 / 299;
  right: -5vw; bottom: -4vw; background: url("/assets/brand/cie-mark-source.png") center / contain no-repeat;
  filter: invert(1); opacity: .17; pointer-events: none;
}
.hero-top, .hero-bottom { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 26px; font-size: 11px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.hero h1, .page-hero h1 {
  margin: 0; max-width: 1100px;
  font-family: "Museo Sans", "Noto Sans SC", sans-serif;
  font-weight: 700; letter-spacing: -.075em; line-height: .88;
}
.hero h1 { font-size: clamp(74px, 12.2vw, 184px); }
.hero h1 span { display: block; color: var(--cyan); }
.hero-bottom { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 32px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.52); }
.hero-intro { margin: 0; max-width: 660px; font-size: clamp(21px, 2.35vw, 34px); line-height: 1.28; font-weight: 500; }
.hero-actions { justify-self: end; display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; padding: 12px 20px; border: 1px solid currentColor; border-radius: 999px; font-size: 13px; font-weight: 750; transition: transform .2s var(--ease), background .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { border-color: var(--cyan); background: var(--cyan); color: white; }
.button.light { background: white; border-color: white; color: var(--blue); }
.button.dark { background: var(--ink); border-color: var(--ink); color: white; }

.ticker { display: flex; gap: 40px; overflow: hidden; padding: 17px 4vw; background: var(--cyan); color: white; font-family: "Museo Sans", "Noto Sans SC", sans-serif; font-size: clamp(18px, 2.3vw, 34px); font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.ticker span { flex: 0 0 auto; }

.section { padding: 104px 4vw; }
.section.white { background: white; }
.section.deep { background: var(--deep); color: white; }
.section.blue { background: var(--blue); color: white; }
.section-head { display: grid; grid-template-columns: 2fr 7fr 3fr; gap: 24px; margin-bottom: 70px; }
.section-code { margin: 5px 0 0; font-size: 11px; font-weight: 750; letter-spacing: .16em; color: var(--cyan); text-transform: uppercase; }
.section-head h2 { margin: 0; font-size: clamp(48px, 7vw, 108px); line-height: .94; letter-spacing: -.065em; }
.section-head p:last-child { margin: 0; align-self: end; font-size: 17px; color: #66717d; }
.deep .section-head p:last-child, .blue .section-head p:last-child { color: rgba(255,255,255,.72); }

.path-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.path-card { min-height: 505px; padding: 26px; display: flex; flex-direction: column; border-right: 1px solid rgba(17,24,39,.25); border-bottom: 1px solid rgba(17,24,39,.25); transition: transform .28s var(--ease), box-shadow .28s; }
.path-card:hover { transform: translateY(-8px); box-shadow: 0 22px 40px rgba(17,24,39,.14); }
.path-card.explore { background: var(--cyan); color: white; }
.path-card.build { background: var(--purple); color: white; }
.path-card.launch { background: var(--red); color: white; }
.path-card.grow { background: var(--green); color: white; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.path-card h3 { margin: auto 0 20px; font-size: clamp(42px, 4.6vw, 70px); line-height: .85; letter-spacing: -.06em; }
.path-card h3 small { display: block; margin-top: 16px; font-size: 20px; letter-spacing: 0; }
.path-card p { min-height: 78px; margin: 0 0 30px; }
.card-link { align-self: flex-start; border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: 12px; font-weight: 750; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-card { min-height: 310px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; display: flex; flex-direction: column; background: white; }
.value-card .number { font-family: "Museo Sans", sans-serif; color: var(--cyan); font-weight: 700; }
.value-card h3 { margin: auto 0 18px; font-size: clamp(28px, 3vw, 46px); line-height: 1; letter-spacing: -.05em; }
.value-card p { margin: 0; color: #626d78; }

.stage-finder { display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; }
.stage-finder h2 { margin: 0 0 28px; font-size: clamp(48px, 6vw, 92px); line-height: .93; letter-spacing: -.06em; }
.stage-tabs { display: grid; gap: 10px; }
.stage-tab { width: 100%; border: 1px solid rgba(255,255,255,.34); border-radius: 18px; background: transparent; color: white; text-align: left; padding: 17px 20px; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; }
.stage-tab[aria-selected="true"] { background: var(--cyan); border-color: var(--cyan); }
.stage-panel { min-height: 455px; padding: 34px; border-radius: var(--radius); background: white; color: var(--ink); }
.stage-panel[hidden] { display: none; }
.stage-panel .stage-no { color: var(--cyan); font-family: "Museo Sans", sans-serif; font-weight: 700; }
.stage-panel h3 { margin: 90px 0 24px; font-size: clamp(42px, 5vw, 72px); line-height: .9; letter-spacing: -.06em; }
.stage-panel ul { margin: 28px 0 38px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.stage-panel li { padding: 12px 0; border-bottom: 1px solid var(--line); }

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.support-item { min-height: 260px; padding: 30px; background: white; }
.support-item h3 { margin: 58px 0 18px; font-size: 28px; letter-spacing: -.04em; }
.support-item p { margin: 0; color: #64707a; }

.manifesto { min-height: 700px; padding: 80px 4vw; display: grid; grid-template-columns: 2fr 10fr; gap: 24px; background: var(--blue); color: white; }
.manifesto blockquote { margin: auto 0; font-size: clamp(48px, 7.4vw, 112px); line-height: .96; letter-spacing: -.065em; font-weight: 700; }
.manifesto blockquote span { color: var(--cyan); }

.cta-band { padding: 82px 4vw 58px; background: var(--red); color: white; }
.cta-band h2 { margin: 0 0 90px; font-size: clamp(65px, 10vw, 150px); line-height: .85; letter-spacing: -.075em; }
.cta-row { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.65); display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.cta-row p { margin: 0; max-width: 620px; font-size: 20px; }

.page-hero { position: relative; overflow: hidden; min-height: 540px; padding: 76px 4vw 52px; background: var(--blue); color: white; display: flex; flex-direction: column; justify-content: space-between; }
.page-hero::after { content: ""; position: absolute; width: 55vw; max-width: 750px; aspect-ratio: 500/299; right: -2vw; bottom: -5vw; background: url("/assets/brand/cie-mark-source.png") center/contain no-repeat; filter: invert(1); opacity: .14; }
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; font-size: clamp(62px, 9vw, 134px); }
.page-hero p:last-child { margin: 50px 0 0; max-width: 660px; font-size: 20px; }

.content-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 6vw; }
.content-grid .aside { position: sticky; top: 120px; align-self: start; }
.content-grid .aside p { color: #66717d; }
.prose h2 { margin: 0 0 28px; font-size: clamp(40px, 5vw, 74px); line-height: 1; letter-spacing: -.055em; }
.prose h3 { margin: 58px 0 16px; font-size: 28px; letter-spacing: -.035em; }
.prose p { max-width: 760px; font-size: 18px; color: #5d6873; }
.rule-list { margin: 34px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.rule-list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 60px 1fr; gap: 14px; }
.rule-list strong { color: var(--cyan); }

.detail-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.detail-step { min-height: 260px; padding: 25px; border-radius: 20px; background: white; border: 1px solid var(--line); }
.detail-step strong { color: var(--cyan); }
.detail-step h3 { margin: 80px 0 14px; font-size: 25px; }

.directory-controls { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 35px; }
.filter-chip { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: white; cursor: pointer; }
.filter-chip.active { background: var(--blue); color: white; border-color: var(--blue); }
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.directory-card { min-height: 330px; padding: 26px; border-radius: 24px; color: white; display: flex; flex-direction: column; }
.directory-card:nth-child(6n+1) { background: var(--blue); }
.directory-card:nth-child(6n+2) { background: var(--purple); }
.directory-card:nth-child(6n+3) { background: var(--teal); }
.directory-card:nth-child(6n+4) { background: var(--red); }
.directory-card:nth-child(6n+5) { background: var(--green); }
.directory-card:nth-child(6n+6) { background: var(--deep); }
.directory-card h3 { margin: auto 0 16px; font-size: 32px; line-height: 1; }
.directory-card p { margin: 0; }

.event-list { border-top: 1px solid var(--ink); }
.event-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 30px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: center; }
.event-date { font-family: "Museo Sans", sans-serif; font-size: 24px; font-weight: 700; color: var(--blue); }
.event-item h3 { margin: 0 0 8px; font-size: 28px; }
.event-item p { margin: 0; color: #68727d; }

.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.resource-card { min-height: 270px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: white; }
.resource-card .tag { color: var(--cyan); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.resource-card h3 { margin: 75px 0 18px; font-size: 32px; line-height: 1.04; }
.resource-card p { color: #68727d; }

.form-card { max-width: 850px; margin: 0 auto; padding: 40px; border-radius: 28px; background: white; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #aab2ba; border-radius: 12px; padding: 13px 15px; background: white; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { margin: 20px 0 0; color: #68727d; font-size: 13px; }

.site-footer { padding: 58px 4vw 28px; background: #0a0d12; color: white; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { width: 300px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 360px; color: rgba(255,255,255,.65); }
.footer-col h2 { margin: 0 0 20px; font-size: 11px; color: var(--cyan); letter-spacing: .14em; text-transform: uppercase; }
.footer-col a { display: block; margin: 10px 0; color: rgba(255,255,255,.75); font-size: 14px; }
.footer-bottom { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.25); display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: rgba(255,255,255,.55); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; position: absolute; top: 84px; left: 0; right: 0; padding: 25px 4vw; background: var(--deep); flex-direction: column; align-items: flex-start; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 8px 0; font-size: 16px; }
  .main-nav a::after { inset: auto 0 0; }
  .menu-button { display: inline-block; }
  .section-head { grid-template-columns: 2fr 7fr; }
  .section-head p:last-child { grid-column: 2; }
  .path-grid { grid-template-columns: repeat(2,1fr); }
  .value-grid, .support-grid, .directory-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-header { height: 72px; padding: 0 20px; gap: 10px; }
  .brand { width: 205px; }
  .brand img { height: 47px; }
  .main-nav { top: 72px; padding-inline: 20px; }
  .apply-pill { display: none; }
  .hero { min-height: calc(100svh - 72px); padding: 50px 20px 28px; }
  .hero h1 { font-size: clamp(68px, 22vw, 112px); }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-actions { justify-self: start; }
  .section { padding: 72px 20px; }
  .section-head { grid-template-columns: 1fr; margin-bottom: 46px; }
  .section-head p:last-child { grid-column: 1; }
  .path-grid, .value-grid, .support-grid, .stage-finder, .directory-grid, .resource-grid, .content-grid, .detail-steps, .form-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 410px; }
  .stage-panel { min-height: 380px; }
  .stage-panel h3 { margin-top: 50px; }
  .manifesto { min-height: 620px; padding: 64px 20px; grid-template-columns: 1fr; }
  .cta-band { padding: 65px 20px 40px; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .page-hero { min-height: 460px; padding: 62px 20px 42px; }
  .content-grid .aside { position: static; }
  .event-item { grid-template-columns: 1fr; gap: 10px; }
  .form-card { padding: 24px; }
  .field.full { grid-column: 1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
