/* Hướng nghiệp Alpha — landing lớp 10–12. Fonts are self-hosted (no third-party font requests). */
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-vietnamese-700-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/be-vietnam-pro-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --navy: #142768;
  --navy-700: #0e1d52;
  --navy-50: #eef1fa;
  --gold: #f6b115;
  --gold-600: #d99600;
  --gold-100: #fde9b8;
  --cream: #fff4d8;
  --cream-50: #fffaec;
  --white: #ffffff;
  --ink: #1b2440;
  --ink-soft: #3d4766;
  --line: #e4ddc8;
  --line-cool: #dde2ef;
  --error: #b42318;
  --error-bg: #fef1f0;
  --success: #146c43;
  --focus: #1f5fd6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 39, 104, .06), 0 8px 24px rgba(20, 39, 104, .08);
  --shadow-lg: 0 2px 4px rgba(20, 39, 104, .06), 0 18px 40px rgba(20, 39, 104, .12);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-50);
  overflow-x: hidden;
}
body.has-sticky { padding-bottom: 84px; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; margin: 0; color: var(--navy); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus, section:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 880px; }
.center { text-align: center; }
.ic { width: 1.15em; height: 1.15em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.3; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(20, 39, 104, .22); }
.btn-primary:hover { background: var(--navy-700); }
.btn-accent { background: var(--gold); color: var(--navy); box-shadow: 0 6px 16px rgba(246, 177, 21, .3); }
.btn-accent:hover { background: #ffc23a; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy-50); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .7; cursor: progress; transform: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-light { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line-cool); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-text { font-weight: 800; letter-spacing: .06em; color: var(--navy); font-size: 17px; }
.main-nav { margin-left: auto; }
.nav-list { display: flex; gap: 6px; }
.nav-list a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.nav-list a:hover { background: var(--navy-50); color: var(--navy); }
.nav-toggle { display: none; }
.header-cta { flex: none; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-50) 100%); padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -160px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 177, 21, .22), rgba(246, 177, 21, 0) 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--navy); background: var(--gold); padding: 6px 14px; border-radius: 999px; }
.hero-subline { margin-top: 14px; font-weight: 600; color: var(--ink-soft); font-size: 16px; }
.hero h1 { margin-top: 10px; font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; letter-spacing: -.01em; }
.lead { margin-top: 18px; font-size: 18.5px; max-width: 62ch; }
.hero-solution { margin-top: 14px; color: var(--ink-soft); max-width: 62ch; }
.hero-points { margin-top: 20px; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.cta-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-note { margin-top: 14px; font-size: 15px; color: var(--ink-soft); max-width: 60ch; }

/* Hero journey map */
.hero-map { position: relative; background: linear-gradient(160deg, #1b3384 0%, var(--navy) 55%, var(--navy-700) 100%); border-radius: 28px; padding: 28px 26px 24px; box-shadow: var(--shadow-lg); color: #fff; overflow: hidden; isolation: isolate; }
.hero-map::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.2px); background-size: 18px 18px; z-index: -1; }
.flow-label { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.map-board { position: relative; }
.map-path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.map-path path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; opacity: .85; }
.map-list { position: relative; z-index: 1; display: grid; gap: 22px; padding: 6px 0; }
.map-stop { display: flex; gap: 14px; align-items: center; width: 86%; }
.map-stop-2 { margin-left: auto; flex-direction: row-reverse; text-align: right; }
.map-list { display: flex; flex-direction: column; }
.map-pin { position: relative; flex: none; width: 64px; height: 64px; border-radius: 20px; background: var(--gold); color: var(--navy); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); transform: rotate(-4deg); }
.map-stop-2 .map-pin { transform: rotate(4deg); background: #ffd56b; }
.map-stop-3 .map-pin { background: #fff; }
.map-pin .art { width: 36px; height: 36px; }
.map-num { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 800; font-size: 14px; display: grid; place-items: center; border: 2px solid var(--navy); }
.map-card { background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 16px; padding: 12px 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.flow-title { font-weight: 700; color: var(--navy); line-height: 1.35; }
.flow-text { font-size: 15px; color: var(--ink-soft); margin-top: 2px; line-height: 1.5; }
.journey-words { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.journey-words li { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.journey-words li + li::before { content: '→ '; color: var(--gold); }
.map-deco .float { position: absolute; color: rgba(255, 255, 255, .22); z-index: -1; }
.map-deco .art { width: 100%; height: 100%; }
.f1 { width: 54px; height: 54px; top: 18px; right: 22px; }
.f2 { width: 38px; height: 38px; top: 46%; left: 8px; }
.f3 { width: 46px; height: 46px; bottom: 70px; right: 14px; }
.f4 { width: 70px; height: 70px; bottom: -14px; left: 34%; }
.f5 { width: 30px; height: 30px; top: 30%; right: 40%; color: rgba(246, 177, 21, .5) !important; }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: bob 6s ease-in-out infinite; }
  .f2 { animation-delay: -1.5s; } .f3 { animation-delay: -3s; } .f4 { animation-delay: -4.5s; animation-duration: 8s; } .f5 { animation-duration: 4s; }
  .map-path path { animation: march 2.2s linear infinite; }
  .map-pin { transition: transform .25s; }
  .map-stop:hover .map-pin { transform: rotate(0) scale(1.06); }
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes march { to { stroke-dashoffset: -28; } }

/* Sections */
.section { padding: 80px 0; }
.section-white { background: var(--white); }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy .section-title, .section-navy h3 { color: #fff; }
.section-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; letter-spacing: -.005em; max-width: 30ch; }
.section-intro { margin-top: 14px; max-width: 70ch; color: var(--ink-soft); font-size: 18px; }

/* Needs */
.need-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.need-card { background: var(--cream-50); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: var(--radius); padding: 22px 24px; }
.need-quote { font-weight: 700; color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.bridge { margin-top: 28px; font-size: 18px; font-weight: 600; color: var(--navy); max-width: 70ch; }

/* Paths */
.path-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.path-card { display: flex; flex-direction: column; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.path-card:hover { box-shadow: var(--shadow-lg); }
.path-card.is-picked { outline: 3px solid var(--gold); outline-offset: 0; }
.path-head { background: var(--navy); color: #fff; padding: 22px 24px 20px; }
.path-grade { display: flex; align-items: center; gap: 10px; }
.path-grade-num { font-size: 26px; font-weight: 700; }
.path-stage { color: #fff; font-size: 19px; font-weight: 700; margin-top: 10px; min-height: 2.5em; }
.path-body { padding: 22px 24px 8px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.mini-label { font-size: 14px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.path-question { background: var(--cream-50); border-radius: var(--radius-sm); padding: 14px 16px; border: 1px dashed var(--gold-600); }
.path-question p:last-child { font-weight: 600; color: var(--navy); margin-top: 4px; font-style: italic; }
.path-items { display: grid; gap: 10px; font-size: 16px; }
.path-items li { display: flex; gap: 10px; align-items: flex-start; }
.path-items .ic { color: var(--gold-600); margin-top: 4px; }
.path-support { font-size: 15.5px; background: var(--navy-50); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink); }
.path-outcome { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.path-outcome p:last-child { margin-top: 4px; font-size: 16px; }
.path-foot { padding: 16px 24px 24px; }
.path-foot .btn { font-size: 16px; }
.path-footnote { margin-top: 28px; max-width: 72ch; color: var(--ink-soft); font-size: 16.5px; }

/* Outputs */
.output-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.output-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line-cool); background: var(--white); }
.output-num { flex: none; font-weight: 800; font-size: 22px; color: var(--navy); background: var(--gold-100); border-radius: 12px; width: 52px; height: 52px; display: grid; place-items: center; }
.output-item h3 { font-size: 18.5px; margin-bottom: 4px; }
.note-box { margin-top: 26px; padding: 16px 20px; background: var(--cream); border-radius: var(--radius-sm); border-left: 5px solid var(--navy); max-width: 78ch; }

/* Process */
.steps { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 22px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: #e3e8f7; font-size: 16px; }
.section-navy .center { margin-top: 36px; }

/* Case */
.case-card { margin-top: 28px; background: var(--white); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.case-badge { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .05em; color: var(--navy); background: var(--gold-100); border: 1px solid var(--gold-600); padding: 6px 12px; border-radius: 8px; }
.case-list { margin: 20px 0 0; display: grid; gap: 0; }
.case-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.case-row:last-child { border-bottom: 0; }
.case-row dt { font-weight: 700; color: var(--navy); }
.case-row dd { margin: 0; }
.case-closing { margin-top: 16px; font-weight: 600; color: var(--navy); background: var(--cream-50); border-radius: var(--radius-sm); padding: 14px 16px; }

/* Founder */
.founder { margin-top: 28px; display: flex; gap: 24px; align-items: flex-start; }
.founder-initials, .founder-photo { flex: none; width: 96px; height: 96px; border-radius: 50%; }
.founder-initials { background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 30px; letter-spacing: .02em; }
.founder-photo { object-fit: cover; }
.founder-name { font-size: 22px; font-weight: 700; color: var(--navy); }
.founder-role { color: var(--ink-soft); font-weight: 600; }
.founder-text { margin-top: 12px; max-width: 64ch; }
.motto { margin: 32px 0 0; padding: 24px 28px; background: var(--navy); color: #fff; border-radius: var(--radius); position: relative; }
.motto p { font-size: clamp(19px, 2.3vw, 24px); font-weight: 700; line-height: 1.45; }
.motto::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 6px; background: var(--gold); border-radius: 0 6px 6px 0; }

/* FAQ */
.faq-list { margin-top: 28px; display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 18px 20px; font-weight: 600; color: var(--navy); border-radius: var(--radius-sm); min-height: 48px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .ic-faq { transition: transform .2s; color: var(--navy); }
.faq-item[open] .ic-faq { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.faq-a { padding: 16px 20px 20px; max-width: 72ch; }

/* Form */
.section-form { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-50) 100%); }
.form-wrap { max-width: 760px; }
.form-card { background: var(--white); border-radius: 24px; padding: 36px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-intro { margin-top: 12px; color: var(--ink-soft); }
.form-required-hint { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.form-notice { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--navy-50); border: 1px dashed var(--navy); font-size: 15px; font-weight: 600; color: var(--navy); }
.form-notice-dev { background: var(--gold-100); border-color: var(--gold-600); }
.form-alert { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--error-bg); border: 1px solid var(--error); color: var(--error); font-weight: 600; }
#lead-form { margin-top: 24px; display: grid; gap: 22px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.field-label { font-weight: 700; color: var(--navy); padding: 0; font-size: 16.5px; }
.req { color: var(--error); }
.input { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 1.5px solid #b9c0d4; border-radius: 12px; padding: 12px 14px; min-height: 50px; transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: var(--navy); }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31, 95, 214, .25); }
.textarea { resize: vertical; min-height: 96px; }
.field-hint { font-size: 14.5px; color: var(--ink-soft); }
.field-count { font-size: 14px; color: var(--ink-soft); text-align: right; margin-top: -4px; }
.field-error { font-size: 15px; color: var(--error); font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.field-error::before { content: '!'; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--error); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; margin-top: 2px; }
.is-invalid .input, .input[aria-invalid='true'] { border-color: var(--error); background: var(--error-bg); }
.field.is-invalid .choice { border-color: var(--error); }
.field-sub { margin-top: -10px; padding-left: 14px; border-left: 3px solid var(--gold); }
.card-note { margin-top: -14px; font-size: 14.5px; background: var(--gold-100); border-radius: 10px; padding: 10px 12px; color: var(--ink); }

.choices { display: grid; gap: 10px; }
.choices-seg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choices-chip { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; border: 1.5px solid #b9c0d4; border-radius: 12px; padding: 12px 14px; min-height: 50px; background: var(--white); transition: border-color .15s, background-color .15s; }
.choice:hover { border-color: var(--navy); }
.choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--navy); }
.choice-seg { justify-content: center; text-align: center; padding: 10px 8px; }
.choice-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-seg .choice-label { font-weight: 700; }
.choice-chip { border-radius: 999px; padding: 8px 16px; min-height: 46px; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--navy-50); box-shadow: inset 0 0 0 1px var(--navy); }
.choice-seg:has(input:checked) { background: var(--navy); color: #fff; }
.choice-seg:has(input:checked) .choice-label::before { content: '✓ '; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-label { line-height: 1.4; }

.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 16px; }
.consent input { width: 22px; height: 22px; margin: 3px 0 0; flex: none; accent-color: var(--navy); }
.field-consent { background: var(--cream-50); border-radius: 12px; padding: 14px; border: 1px solid var(--line); }
.submit-note { margin-top: -10px; font-size: 14.5px; color: var(--ink-soft); text-align: center; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.success { text-align: center; padding: 12px 0; }
.success .section-title { margin: 14px auto 12px; }
.success p { max-width: 56ch; margin: 0 auto; }
.success-sub { margin-top: 12px !important; color: var(--ink-soft); }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; margin: 0 auto; }
.success-icon .ic { width: 32px; height: 32px; }

/* Footer */
.site-footer { background: var(--navy-700); color: #e8ecf8; padding: 48px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.footer-brand { font-weight: 800; letter-spacing: .08em; color: #fff; font-size: 18px; }
.footer-motto { margin-top: 8px; color: var(--gold); font-weight: 600; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { margin-top: 5px; color: var(--gold); }
.footer-contact a { color: #fff; }
.footer-links { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 18px; }

/* Sticky CTA (mobile) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line-cool); box-shadow: 0 -6px 18px rgba(20, 39, 104, .08); }

/* Dialog */

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .path-grid { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
  .path-stage { min-height: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-cool); background: #fff; cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; content: ''; }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .nav-list { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line-cool); padding: 8px 16px 16px; flex-direction: column; box-shadow: var(--shadow); }
  .nav-list.is-open { display: flex; }
  .nav-list a { padding: 14px 12px; font-size: 16px; }
  .main-nav { order: 3; margin-left: 0; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 36px 0 52px; }
  .lead { font-size: 17.5px; }
  .eyebrow { letter-spacing: .03em; padding: 6px 12px; border-radius: 12px; text-wrap: balance; }
  .need-grid, .output-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .form-card { padding: 24px 18px; border-radius: 20px; }
  .choices-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-card { padding: 22px 18px; }
  .case-row { grid-template-columns: 1fr; gap: 4px; }
  .founder { flex-direction: column; gap: 16px; }
  .brand-logo { height: 32px; }
  .header-cta { padding: 8px 14px; font-size: 14px; min-height: 42px; }
}
@media (max-width: 400px) {
  .brand-logo { height: 26px; }
  .header-inner { gap: 10px; }
  .header-cta { display: none; }
  .main-nav { margin-left: auto; }
}

/* ===================== Lively layer: icons, grade lanes, timeline, mission card, motion ===================== */
:root {
  --g10: #2f6fe4; --g10-soft: #e7efff;
  --g11: #0f8f78; --g11-soft: #ddf4ee;
  --g12: #d9543a; --g12-soft: #ffe8e1;
}
.art { width: 32px; height: 32px; display: block; }

/* Section texture */
.section-cream { background-color: var(--cream); background-image: radial-gradient(rgba(20, 39, 104, .06) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.section-title::after { content: ''; display: block; width: 64px; height: 6px; border-radius: 6px; background: var(--gold); margin-top: 14px; }
.success .section-title::after, #form-title::after { display: none; }

/* Needs */
.need-card { display: flex; gap: 16px; align-items: flex-start; border-left-width: 1px; border-top: 6px solid var(--gold); transition: transform .2s, box-shadow .2s; }
.need-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.need-pic { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--gold-100); color: var(--navy); }
.need-2 { border-top-color: var(--g10); } .need-2 .need-pic { background: var(--g10-soft); }
.need-3 { border-top-color: var(--g12); } .need-3 .need-pic { background: var(--g12-soft); }
.need-4 { border-top-color: var(--g11); } .need-4 .need-pic { background: var(--g11-soft); }
.bridge { display: flex; gap: 14px; align-items: center; background: var(--navy); color: #fff; padding: 18px 22px; border-radius: var(--radius); max-width: none; }
.bridge-pic { flex: none; width: 46px; height: 46px; color: var(--gold); }
.bridge-pic .art { width: 46px; height: 46px; }

/* Grade lanes: same structure and weight, a different hue each */
.path-card { --lane: var(--g10); --lane-soft: var(--g10-soft); transition: transform .25s, box-shadow .25s; }
.path-11 { --lane: var(--g11); --lane-soft: var(--g11-soft); }
.path-12 { --lane: var(--g12); --lane-soft: var(--g12-soft); }
.path-card:hover { transform: translateY(-4px); }
.path-head { position: relative; overflow: hidden; border-top: 8px solid var(--lane); padding-right: 92px; }
.path-head::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.path-pic { position: absolute; right: 20px; top: 18px; width: 62px; height: 62px; border-radius: 18px; background: var(--lane-soft); color: var(--lane); display: grid; place-items: center; transform: rotate(6deg); transition: transform .3s; z-index: 1; }
.path-pic .art { width: 36px; height: 36px; }
.path-card:hover .path-pic { transform: rotate(-4deg) scale(1.06); }
.path-question { border-color: var(--lane); background: var(--lane-soft); }
.path-items .ic { color: var(--lane); }
.path-card.is-picked { outline: 4px solid var(--gold); }

/* Outputs */
.output-item { transition: transform .2s, box-shadow .2s, border-color .2s; }
.output-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.output-num { position: relative; width: 64px; height: 64px; border-radius: 20px; color: var(--navy); }
.output-num .art { width: 36px; height: 36px; }
.output-num span { position: absolute; right: -8px; bottom: -8px; font-size: 13px; font-weight: 800; background: var(--navy); color: #fff; border-radius: 999px; padding: 1px 7px; }

/* Process timeline */
.steps { position: relative; }
.steps::before { content: ''; position: absolute; left: 6%; right: 6%; top: 50px; border-top: 3px dashed rgba(246, 177, 21, .7); }
.step { position: relative; background: rgba(255, 255, 255, .06); padding-top: 18px; transition: background-color .2s, transform .2s; }
.step:hover { background: rgba(255, 255, 255, .11); transform: translateY(-3px); }
.step-badge { position: relative; z-index: 1; width: 64px; height: 64px; margin-bottom: 14px; }
.step-pic { width: 64px; height: 64px; border-radius: 20px; background: var(--gold); color: var(--navy); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
.step-pic .art { width: 36px; height: 36px; }
.step-badge .step-num { position: absolute; top: -8px; right: -10px; width: 28px; height: 28px; margin: 0; font-size: 14px; background: #fff; color: var(--navy); border: 2px solid var(--navy); }

/* Mission card */
.mission { border-top: 8px solid var(--gold); }
.mission-steps { margin-top: 18px; display: grid; gap: 14px; }
.mission-step { display: flex; gap: 16px; align-items: flex-start; }
.mission-pic { flex: none; width: 58px; height: 58px; border-radius: 18px; background: var(--gold-100); color: var(--navy); display: grid; place-items: center; }
.mission-label { font-size: 17px; display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.mission-label:focus { outline: none; }
.mission-label:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.mission-idx { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; display: grid; place-items: center; flex: none; }
.mission-top { margin-top: 18px; display: grid; gap: 12px; }
.mission-kicker { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--navy); }
.mission-kicker .art { width: 24px; height: 24px; color: var(--g12); }
.mission-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.mission-dot { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid #b9c0d4; background: #fff; color: var(--ink); cursor: pointer; }
.mission-dot:hover { border-color: var(--navy); }
.mission-dot.is-done { background: var(--g11-soft); border-color: var(--g11); }
.mission-dot.is-done::before { content: '✓ '; color: var(--g11); font-weight: 800; }
.mission-dot.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.mission-bar { margin-top: 14px; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.mission-bar span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--gold), var(--g12)); border-radius: 8px; transition: width .35s ease; }
.mission.is-interactive .mission-steps { min-height: 150px; align-content: center; background: var(--cream-50); border: 1px dashed var(--gold-600); border-radius: var(--radius); padding: 22px; }
.mission.is-interactive .mission-step { font-size: 18px; }
.mission.is-interactive .mission-pic { width: 72px; height: 72px; border-radius: 22px; }
.mission.is-interactive .mission-pic .art { width: 42px; height: 42px; }
.mission-nav { margin-top: 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.mission-nav .btn[disabled] { opacity: .45; cursor: not-allowed; }
.mission-progress { font-weight: 700; color: var(--ink-soft); font-size: 15px; }
.mission.is-finished .case-closing { background: var(--gold-100); }
@media (prefers-reduced-motion: no-preference) {
  .mission.is-interactive .mission-step:not([hidden]) { animation: pop .35s ease; }
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Founder */
.founder-initials { background: linear-gradient(135deg, var(--navy), #2a4bb0); box-shadow: 0 0 0 6px var(--gold-100); }

/* Direct email */
.direct-email { margin-top: -6px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center; text-align: center; font-size: 15.5px; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 16px; }
.direct-email-addr { font-weight: 600; color: var(--navy); }

/* Scroll reveal (only added by JS when motion is allowed) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.need-grid > :nth-child(2), .path-grid > :nth-child(2), .output-grid > :nth-child(2), .steps > :nth-child(2) { transition-delay: .1s; }
.need-grid > :nth-child(3), .path-grid > :nth-child(3), .output-grid > :nth-child(3), .steps > :nth-child(3) { transition-delay: .2s; }
.need-grid > :nth-child(4), .output-grid > :nth-child(4), .steps > :nth-child(4) { transition-delay: .3s; }

@media (max-width: 1024px) {
  .steps::before { display: none; }
}
@media (max-width: 720px) {
  .hero-map { padding: 22px 16px 20px; border-radius: 22px; }
  .map-stop { width: 100%; }
  .map-stop-2 { flex-direction: row; text-align: left; }
  .map-pin { width: 54px; height: 54px; border-radius: 16px; }
  .map-pin .art { width: 30px; height: 30px; }
  .map-path { display: none; }
  .map-list { gap: 14px; }
  .map-list::before { content: ''; position: absolute; left: 26px; top: 20px; bottom: 20px; border-left: 3px dashed rgba(246, 177, 21, .8); }
  .need-pic { width: 48px; height: 48px; border-radius: 14px; }
  .need-pic .art { width: 28px; height: 28px; }
  .bridge { align-items: flex-start; padding: 16px; }
  .bridge-pic, .bridge-pic .art { width: 36px; height: 36px; }
  .path-head { padding-right: 84px; }
  .path-pic { width: 54px; height: 54px; right: 16px; }
  .steps::before { display: block; left: 47px; right: auto; top: 40px; bottom: 40px; border-top: 0; border-left: 3px dashed rgba(246, 177, 21, .7); }
  .step { display: flex; gap: 22px; padding: 16px; }
  .step-badge { flex: none; margin: 0; }
  .mission.is-interactive .mission-steps { padding: 16px; }
  .mission.is-interactive .mission-step { font-size: 16.5px; flex-direction: column; gap: 10px; }
  .mission-dots { display: none; }
  .mission-nav { flex-wrap: wrap; }
  .mission-nav .btn { flex: 1; }
  .mission-progress { order: -1; width: 100%; text-align: center; }
}

/* ===================== Free survey layout ===================== */
.hero h1 { text-wrap: balance; }
.h1-line { display: block; }
.h1-sub { font-size: .66em; font-weight: 600; color: var(--navy); margin-top: .3em; line-height: 1.3; }
.hero-free { margin-top: 18px; display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 2px solid var(--gold); border-radius: var(--radius); padding: 14px 16px; font-weight: 600; color: var(--navy); max-width: 62ch; box-shadow: var(--shadow); }
.hero-free-pic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-100); color: var(--navy); display: grid; place-items: center; }
.hero-free-pic .art { width: 28px; height: 28px; }
.cta-note { font-size: 16px; }
.flow-title { font-size: 17px; text-wrap: balance; }
.section-title, .doc-name, .path-stage, .need-quote, .step h3 { text-wrap: balance; }
.map-card { display: flex; align-items: center; min-height: 64px; }
.need-quote { font-size: 18px; line-height: 1.4; }
.path-items { font-size: 16.5px; }
.path-footnote, .section-intro { font-size: 17.5px; }
.note-box { font-size: 16.5px; }

/* Two outputs */
.doc-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.doc-card { background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.doc-visual { background: linear-gradient(160deg, #1b3384, var(--navy)); padding: 24px 24px 14px; position: relative; }
.doc-2 .doc-visual { background: linear-gradient(160deg, #0d7a66, #0a5c4d); }
.mock-label { margin-top: 12px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .92); text-align: center; letter-spacing: .02em; }
.doc-mock { display: flex; justify-content: center; gap: 14px; min-height: 176px; align-items: flex-end; }
.mock-page, .mock-sheet { background: #fff; border-radius: 10px; padding: 12px; display: grid; gap: 7px; align-content: start; box-shadow: 0 10px 22px rgba(0, 0, 0, .25); }
.mock-page { width: 132px; height: 176px; overflow: hidden; }
.mock-page:first-child { transform: rotate(-4deg) translateY(4px); }
.mock-page:last-child { transform: rotate(3deg); }
.mock-sheet { width: min(300px, 100%); min-height: 168px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.mock-chip { font-size: 11px; font-weight: 800; color: #fff; background: var(--g12); border-radius: 6px; padding: 1px 7px; letter-spacing: .04em; }
.mock-chip-gold { background: var(--gold); color: var(--navy); }
.mock-pageno { font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.mock-h { display: block; height: 9px; width: 60%; border-radius: 4px; background: var(--navy); }
.mock-h-gold { background: var(--gold); }
.mock-h-teal { background: var(--g11); }
.mock-bar { display: block; height: 6px; border-radius: 4px; background: #dfe3ee; }
.mock-bar.w1 { width: 100%; } .mock-bar.w2 { width: 86%; } .mock-bar.w3 { width: 70%; }
.mock-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-cols .mock-h { width: 100%; }
.mock-row { display: flex; gap: 8px; align-items: center; }
.mock-row .mock-bar { flex: 1; }
.mock-box { flex: none; width: 13px; height: 13px; border-radius: 4px; border: 2px solid #b9c0d4; }
.mock-box.is-done { background: var(--g11); border-color: var(--g11); }
.mock-progress { height: 8px; border-radius: 6px; background: #eef1f6; margin-top: 4px; overflow: hidden; }
.mock-progress span { display: block; width: 50%; height: 100%; background: var(--gold); }
.doc-body { padding: 22px 24px 26px; }
.doc-name { font-size: 21px; }
.doc-desc { margin-top: 8px; color: var(--ink-soft); }
.doc-body .mini-label { margin-top: 16px; }
.doc-items { margin-top: 8px; display: grid; gap: 10px; }
.doc-items li { display: flex; gap: 10px; align-items: flex-start; }
.doc-items .ic { color: var(--g11); margin-top: 4px; }
.doc-1 .doc-items .ic { color: var(--g10); }
.free-band { margin-top: 28px; display: flex; gap: 12px; align-items: center; justify-content: center; text-align: center; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 19px; padding: 16px 20px; border-radius: var(--radius); }
.free-band .ic { flex: none; width: 26px; height: 26px; background: var(--navy); color: var(--gold); border-radius: 50%; padding: 4px; }
#nhan-duoc .note-box { margin-top: 16px; background: #fff; }

/* New square logo (icon above wordmark) and founder portrait */
:root { --header-h: 80px; }
.brand-logo { height: 62px; width: auto; }
.footer-id { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 16px; padding: 10px 14px; }
.footer-logo img { display: block; height: 96px; width: auto; }
.founder { align-items: center; }
.founder-photo { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; object-position: center top; box-shadow: 0 0 0 6px var(--gold), 0 14px 30px rgba(20, 39, 104, .18); background: #fff; }

/* Oval icon badges for list items (replace plain checkmarks) */
.icon-list li { display: flex; gap: 12px; align-items: flex-start; }
.item-pic { --pill-bg: var(--gold-100); --pill-fg: #a86b00; flex: none; width: 46px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--pill-bg); color: var(--pill-fg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pill-fg) 22%, transparent); transform: rotate(-4deg); transition: transform .25s ease; }
.item-pic .art { width: 21px; height: 21px; }
.icon-list li:nth-child(2) .item-pic { --pill-bg: var(--g10-soft); --pill-fg: var(--g10); transform: rotate(3deg); }
.icon-list li:nth-child(3) .item-pic { --pill-bg: var(--g11-soft); --pill-fg: var(--g11); transform: rotate(-2deg); }
.icon-list li:nth-child(4) .item-pic { --pill-bg: var(--g12-soft); --pill-fg: var(--g12); transform: rotate(4deg); }
.icon-list li:hover .item-pic { transform: rotate(0) scale(1.1); }
.icon-list li > span:last-child { padding-top: 4px; }

/* Process note */
.process-note { margin: 26px auto 0; max-width: 70ch; text-align: center; color: #e3e8f7; font-size: 16.5px; }

/* Grade section on white now */
.paths .path-question { background: var(--lane-soft); }

/* Example */
.case-disclaimer { margin-top: 12px; font-size: 15px; color: var(--ink-soft); font-style: italic; }
.founder-text + .founder-text { margin-top: 10px; }

/* Final invitation */
.center-text { text-align: center; }
.invite-title { color: #fff; font-size: clamp(26px, 3.4vw, 38px); text-wrap: balance; max-width: none; }
.invite-title::after { display: none; }
.invite-sub { color: var(--gold); margin-top: .25em; }
.invite-text { margin: 18px auto 0; max-width: 62ch; color: #e3e8f7; font-size: 18px; }
.invite-box { margin: 28px auto 0; max-width: 640px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2); border-radius: 22px; padding: 24px; }
.invite-cta { font-size: 22px; font-weight: 800; color: #fff; }
.invite-choose { margin-top: 6px; color: #e3e8f7; }
.grade-buttons { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grade-btn { width: 100%; }
.invite-other { margin-top: 16px; font-size: 15.5px; color: #d5dcf0; }
.invite-note { margin-top: 20px; display: inline-flex; gap: 10px; align-items: center; color: var(--gold); font-weight: 700; }
.invite-note-pic { flex: none; width: 52px; height: 40px; border-radius: 999px; background: var(--gold); color: var(--navy); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.invite-note-pic .art { width: 26px; height: 26px; }
.invite-note { text-align: left; }

@media (max-width: 860px) {
  .doc-grid { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .brand-logo { height: 50px; }
  .founder { align-items: flex-start; }
  .founder-photo { width: 132px; height: 132px; }
  .footer-logo img { height: 84px; }
  .h1-sub { font-size: .7em; }
  .doc-visual { padding: 18px 14px 12px; }
  .mock-page { width: 112px; height: 150px; }
  .doc-mock { min-height: 150px; }
  .doc-body { padding: 18px 18px 22px; }
  .free-band { font-size: 17px; justify-content: flex-start; text-align: left; }
  .grade-buttons { grid-template-columns: 1fr; }
  .invite-box { padding: 18px 14px; }
}

/* ===================== Living icons ===================== */
/* 1. Draw-in: each line icon traces itself when it scrolls into view (class added by app.js). */
.icons-anim svg.art :is(path, rect, circle) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.icons-anim svg.art.is-drawn :is(path, rect, circle) { animation: icon-draw 1.1s cubic-bezier(.6, .1, .3, 1) forwards; }
.icons-anim svg.art.is-drawn :is(path, rect, circle):nth-child(2) { animation-delay: .12s; }
.icons-anim svg.art.is-drawn :is(path, rect, circle):nth-child(3) { animation-delay: .24s; }
.icons-anim svg.art.is-drawn :is(path, rect, circle):nth-child(n+4) { animation-delay: .36s; }
@keyframes icon-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* 2. Idle motion: every badge icon keeps moving gently; three personalities, staggered. */
  :is(.item-pic, .need-pic, .output-num, .step-pic, .mission-pic, .path-pic, .hero-free-pic, .bridge-pic, .map-pin) > svg.art {
    animation: icon-bob 3.8s ease-in-out infinite;
  }
  :is(li, article):nth-child(3n + 2) :is(.item-pic, .need-pic, .output-num, .step-pic, .mission-pic, .path-pic, .map-pin) > svg.art {
    animation: icon-sway 4.4s ease-in-out infinite;
    animation-delay: -1.1s;
  }
  :is(li, article):nth-child(3n) :is(.item-pic, .need-pic, .output-num, .step-pic, .mission-pic, .path-pic, .map-pin) > svg.art {
    animation: icon-pulse 3.2s ease-in-out infinite;
    animation-delay: -2.2s;
  }
  .bridge-pic > svg.art { animation: icon-spin-soft 9s linear infinite; }
  .hero-free-pic > svg.art { animation: icon-pulse 2.8s ease-in-out infinite; }

  /* 3. Hover / focus: a quick wiggle and pop. */
  :is(li, article, .need-card, .step, .output-item, .path-card, .doc-card, .map-stop):hover
    :is(.item-pic, .need-pic, .output-num, .step-pic, .mission-pic, .path-pic, .map-pin) > svg.art {
    animation: icon-wiggle .7s ease-in-out;
  }
  .item-pic, .need-pic, .output-num, .step-pic, .mission-pic { transition: transform .25s ease, box-shadow .25s ease; }
  :is(.need-card, .output-item, .step):hover :is(.need-pic, .output-num, .step-pic) { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 8px 16px rgba(20, 39, 104, .18); }

  /* Small UI icons join in too. */
  .free-band .ic { animation: icon-pulse 2.6s ease-in-out infinite; }
  .invite-note-pic { animation: icon-hop 2.8s ease-in-out infinite; }
  .invite-note-pic > svg.art { animation: icon-sway 4s ease-in-out infinite; }
  .invite-note:hover .invite-note-pic > svg.art { animation: icon-wiggle .7s ease-in-out; }
  .btn:hover .ic, .btn:focus-visible .ic { animation: icon-nudge .7s ease-in-out infinite; }
  .footer-contact li:hover .ic { animation: icon-wiggle .6s ease-in-out; }
  .faq-item summary:hover .ic-faq { transform: scale(1.2); }
  .faq-item[open] summary:hover .ic-faq { transform: rotate(45deg) scale(1.2); }
  .mission-dot.is-current { animation: icon-pulse 2.6s ease-in-out infinite; }
  .mock-progress span { animation: mock-fill 3.5s ease-in-out infinite alternate; }
  .mock-box.is-done { animation: icon-pulse 2.4s ease-in-out infinite; }
}
@keyframes icon-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes icon-sway { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes icon-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.13); } }
@keyframes icon-spin-soft { to { transform: rotate(360deg); } }
@keyframes icon-wiggle { 0%, 100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-14deg) scale(1.15); } 60% { transform: rotate(10deg) scale(1.15); } }
@keyframes icon-hop { 0%, 60%, 100% { transform: translateY(0) scale(1); } 20% { transform: translateY(-6px) scale(1.06); } 35% { transform: translateY(0) scale(1.08, .92); } 45% { transform: translateY(-2px) scale(1); } }
@keyframes icon-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes mock-fill { from { width: 25%; } to { width: 80%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
