:root {
  --ink: #20272d;
  --blue: #315fa3;
  --blue-deep: #244879;
  --coral: #f06d69;
  --yellow: #f7c75f;
  --mint: #cce8dc;
  --lilac: #cfc3ee;
  --cream: #fff8e9;
  --paper: #fffefa;
  --line: rgba(32, 39, 45, .2);
  --border: 2px solid var(--ink);
  --font-head: "Anuphan", sans-serif;
  --font-body: "Sarabun", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 17px; line-height: 1.65; letter-spacing: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 28px; min-height: 82px; padding: 10px max(24px, calc((100% - 1160px) / 2)); color: var(--ink); background: rgba(255,254,250,.96); border-bottom: 2px solid var(--ink); box-shadow: 0 4px 0 var(--yellow); backdrop-filter: blur(8px); }
.brand { display: block; width: 116px; height: 54px; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.desktop-nav { display: flex; justify-content: center; gap: 30px; font-size: .9rem; font-weight: 600; }
.desktop-nav a { padding: 7px 0; border-bottom: 2px solid transparent; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--blue-deep); border-color: var(--coral); outline: none; }
.header-login { padding: 9px 14px; color: #fff; background: var(--coral); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 3px 3px 0 var(--ink); font-family: var(--font-head); font-weight: 700; }
.header-login:hover, .header-login:focus-visible { color: var(--ink); background: var(--yellow); outline: 3px solid #fff; outline-offset: 2px; }
.menu-button, .mobile-nav { display: none; }

.hero { position: relative; min-height: min(760px, 90svh); padding: 150px 0 92px; overflow: hidden; background: var(--paper) url("assets/mindle-hero-v1.webp") center/cover no-repeat; border-bottom: 8px solid var(--blue); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,254,250,.98) 0%, rgba(255,254,250,.9) 32%, rgba(255,254,250,.28) 58%, rgba(255,254,250,.02) 100%); }
.hero-content { position: relative; z-index: 2; }
.eyebrow, .section-label, .program-category, .path-name { margin: 0 0 15px; font-family: var(--font-head); font-size: .76rem; font-weight: 700; line-height: 1.4; letter-spacing: .08em; }
.eyebrow { display: inline-block; padding: 7px 11px; color: #fff; background: var(--blue); border: var(--border); box-shadow: 4px 4px 0 var(--yellow); transform: rotate(-1deg); }
.hero h1 { max-width: 650px; margin: 20px 0 0; font-family: var(--font-head); font-size: 4.25rem; line-height: 1; letter-spacing: 0; }
.hero-thesis { max-width: 630px; margin: 22px 0 0; font-family: var(--font-head); font-size: 2.05rem; line-height: 1.35; }
.hero-thesis strong { padding: 0 5px; background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.hero-copy { max-width: 570px; margin: 20px 0 0; font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 20px; border: var(--border); border-radius: 6px; font-family: var(--font-head); font-weight: 700; line-height: 1.25; box-shadow: 5px 5px 0 var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.button:hover, .button:focus-visible { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); outline: none; }
.button-primary { color: #fff; background: var(--coral); }
.button-dark { color: #fff; background: var(--blue-deep); }
.button-light { background: var(--paper); }
.text-link { display: inline-flex; gap: 8px; align-items: center; padding: 5px 0 2px; color: var(--blue-deep); font-family: var(--font-head); font-weight: 700; border-bottom: 2px solid currentColor; }
.text-link:hover, .text-link:focus-visible { color: var(--coral); outline: none; }
.hero-caption { position: absolute; z-index: 2; right: 26px; bottom: 18px; margin: 0; padding: 5px 9px; color: #fff; background: rgba(32,39,45,.82); font-size: .72rem; }

.band-white, .band-mint, .band-yellow, .band-cream, .band-coral, .band-cobalt { padding: 88px 0; }
.band-white { background: var(--paper); }
.band-mint { background: var(--mint); }
.band-yellow { background: var(--yellow); }
.band-cream { background: var(--cream); }
.band-coral { background: var(--coral); }
.band-cobalt { color: #fff; background: var(--blue-deep); }
.belief-grid { display: grid; grid-template-columns: 150px minmax(0,1fr) 260px; gap: 52px; align-items: center; }
.section-label { color: var(--blue); }
.belief h2, .section-head h2, .pathfinder-intro h2, .final-cta h2 { margin: 0; font-family: var(--font-head); font-size: 2.55rem; line-height: 1.25; letter-spacing: 0; }
.belief-grid > div > p:last-child { max-width: 670px; margin: 18px 0 0; }
.belief-note { position: relative; display: grid; gap: 2px; padding: 25px 28px; background: var(--lilac); border: var(--border); box-shadow: 7px 7px 0 var(--yellow); font-family: var(--font-head); font-size: 1.28rem; transform: rotate(2deg); }
.belief-note::before { content: ""; position: absolute; top: -13px; left: 36%; width: 78px; height: 24px; background: rgba(255,255,255,.65); border: 1px solid rgba(32,39,45,.12); transform: rotate(-4deg); }
.belief-note strong { color: var(--blue-deep); font-size: 1.55rem; }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head > p:last-child { max-width: 600px; margin: 16px 0 0; }
.light-head .section-label { color: var(--yellow); }
.path-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.path-card { position: relative; min-height: 480px; padding: 26px 24px 24px; color: var(--ink); border: var(--border); border-radius: 6px; box-shadow: 6px 6px 0 rgba(0,0,0,.28); }
.path-work { background: #ffe3a0; transform: rotate(-.6deg); }
.path-life { background: #ffd7d6; transform: rotate(.45deg); }
.path-family { background: #d7eee4; transform: rotate(-.3deg); }
.path-world { background: #ddd5f3; transform: rotate(.55deg); }
.path-number { display: block; margin-bottom: 34px; font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.path-name { margin-bottom: 8px; color: var(--blue-deep); }
.path-card h3 { margin: 0; font-family: var(--font-head); font-size: 1.45rem; line-height: 1.35; }
.path-card > p:not(.path-name) { margin: 14px 0; font-size: .95rem; line-height: 1.6; }
.path-card ul { margin: 0 0 54px; padding-left: 19px; font-size: .88rem; }
.path-status { position: absolute; left: 24px; bottom: 22px; display: inline-block; padding: 5px 9px; color: var(--ink); background: rgba(255,255,255,.58); border: 1px solid var(--ink); font-size: .74rem; font-weight: 700; }
.path-status.active { color: #fff; background: var(--blue-deep); }

.approach .section-head { max-width: 720px; }
.approach-list { border-top: var(--border); }
.approach-list article { display: grid; grid-template-columns: 80px 300px minmax(0,1fr); gap: 28px; align-items: start; padding: 28px 0; border-bottom: var(--border); }
.approach-list span { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.approach-list h3 { margin: 0; font-family: var(--font-head); font-size: 1.35rem; }
.approach-list p { max-width: 560px; margin: 0; }

.programs-head { display: grid; grid-template-columns: minmax(0,1fr) 390px; gap: 50px; align-items: end; max-width: none; }
.programs-head > p { margin: 0; }
.program-grid { display: grid; grid-template-columns: 1.45fr .85fr; gap: 28px; }
.program-card { overflow: hidden; border: var(--border); border-radius: 6px; background: #fff; box-shadow: 7px 7px 0 var(--yellow); }
.featured-program { display: grid; grid-template-columns: minmax(280px,.9fr) 1.1fr; }
.program-image { min-height: 430px; background: #cbdceb; }
.program-image img { width: 100%; height: 100%; object-fit: cover; }
.program-copy { padding: 30px; }
.program-category { color: var(--blue); }
.program-copy h3 { margin: 0; font-family: var(--font-head); font-size: 2rem; line-height: 1.25; }
.program-copy > p:not(.program-category) { margin: 16px 0 22px; }
.program-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.program-meta span { padding: 5px 9px; background: var(--mint); border: 1px solid var(--ink); font-size: .76rem; font-weight: 700; }
.polyglot-program { box-shadow: 7px 7px 0 var(--lilac); }
.polyglot-cover { display: grid; place-items: center; min-height: 285px; padding: 22px; background: var(--lilac); }
.polyglot-cover img { width: 164px; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--yellow); transform: rotate(-2deg); }
.dark-link { color: var(--blue-deep); }

.final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.pathfinder-grid { display: grid; grid-template-columns: minmax(0,.78fr) minmax(520px,1.22fr); gap: 72px; align-items: start; }
.pathfinder-intro { position: sticky; top: 28px; }
.pathfinder-intro > p:not(.section-label) { max-width: 480px; margin: 20px 0; font-size: 1.08rem; }
.pathfinder-card { min-height: 560px; padding: 32px; background: var(--paper); border: var(--border); border-radius: 6px; box-shadow: 9px 9px 0 var(--blue-deep); }
.quiz-progress { display: grid; grid-template-columns: auto minmax(100px,1fr); gap: 16px; align-items: center; margin-bottom: 30px; color: var(--blue-deep); font-family: var(--font-head); font-size: .76rem; font-weight: 700; }
.quiz-progress-track { height: 7px; overflow: hidden; background: #e8e5dd; border: 1px solid var(--ink); }
.quiz-progress-track span { display: block; width: 33.333%; height: 100%; background: var(--coral); transition: width .2s ease; }
.quiz-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz-step legend { width: 100%; margin: 0 0 22px; font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; line-height: 1.35; }
.quiz-options { display: grid; gap: 11px; }
.quiz-options label { position: relative; display: block; cursor: pointer; }
.quiz-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.quiz-options label > span { display: block; min-height: 66px; padding: 13px 16px 13px 48px; background: #fff; border: 1.5px solid var(--ink); transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.quiz-options label > span::before { content: ""; position: absolute; top: 22px; left: 17px; width: 17px; height: 17px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.quiz-options label:hover > span { transform: translateX(3px); background: var(--cream); }
.quiz-options input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.quiz-options input:checked + span { background: var(--mint); box-shadow: 4px 4px 0 var(--blue-deep); transform: translate(-2px,-2px); }
.quiz-options input:checked + span::before { background: var(--coral); box-shadow: inset 0 0 0 3px #fff; }
.quiz-options strong, .quiz-options small { display: block; }
.quiz-options strong { font-family: var(--font-head); line-height: 1.35; }
.quiz-options small { margin-top: 3px; color: #535b61; font-size: .82rem; line-height: 1.45; }
.quiz-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 26px; }
.quiz-actions .quiz-next { width: auto; margin-left: auto; }
.quiz-back, .quiz-restart { padding: 8px 2px; color: var(--blue-deep); background: transparent; border: 0; border-bottom: 2px solid currentColor; font: 700 .88rem var(--font-head); cursor: pointer; }
.quiz-error { margin: 16px 0 0; color: #9a2525; font-size: .88rem; font-weight: 700; }
.quiz-result h3, .vote-success h3 { margin: 5px 0 12px; font-family: var(--font-head); font-size: 2rem; line-height: 1.25; }
.result-label { margin: 0; color: var(--blue); font: 700 .76rem var(--font-head); letter-spacing: .08em; }
.proposed-label { display: inline-block; margin: 8px 0 22px; padding: 5px 9px; background: var(--lilac); border: 1px solid var(--ink); font-size: .76rem; font-weight: 700; }
.email-label { display: block; margin-bottom: 7px; font-family: var(--font-head); font-size: .88rem; font-weight: 700; }
.email-label span { color: #656b70; font-weight: 500; }
#vote-email { width: 100%; min-height: 50px; padding: 10px 12px; background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; font: inherit; }
#vote-email:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.consent-row { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; margin: 12px 0 0; font-size: .78rem; line-height: 1.45; }
.consent-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue-deep); }
.vote-button { width: 100%; margin-top: 18px; }
.quiz-result .quiz-restart { margin-top: 20px; }
.honeypot { position: absolute !important; left: -10000px !important; }
.vote-success { padding: 52px 16px; text-align: center; }
.vote-success > span { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; color: #fff; background: var(--blue-deep); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 4px 4px 0 var(--yellow); font-size: 1.7rem; font-weight: 700; }
.vote-success p { max-width: 470px; margin: 0 auto 22px; }

.final-cta { border-top: 8px solid var(--ink); }
.final-cta h2 { color: #fff; font-size: 2.65rem; }
.final-grid > div p { max-width: 500px; margin: 0 0 24px; font-size: 1.1rem; }
.site-footer { padding: 46px 0 34px; color: #fff; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: start; }
.footer-grid img { width: 148px; padding: 7px; background: var(--cream); border: 1px solid rgba(255,255,255,.55); }
.footer-grid p { margin: 10px 0 0; }
.footer-grid nav { display: flex; gap: 26px; font-size: .86rem; }
.footer-grid nav a:hover, .footer-grid nav a:focus-visible { color: var(--yellow); outline: none; }
.copyright { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); font-size: .78rem; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 120px 1fr auto; }
  .desktop-nav { gap: 16px; font-size: .82rem; }
  .hero h1 { font-size: 3.55rem; }
  .path-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .path-card { min-height: 420px; }
  .belief-grid { grid-template-columns: 120px minmax(0,1fr); }
  .belief-note { grid-column: 2; width: 260px; }
  .featured-program { grid-template-columns: 1fr; }
  .program-image { min-height: 320px; max-height: 390px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 36px, 1160px); }
  .site-header { position: absolute; grid-template-columns: 1fr auto; min-height: 74px; padding: 8px 18px; background: rgba(255,254,250,.96); border-bottom: 2px solid var(--ink); box-shadow: 0 4px 0 var(--yellow); backdrop-filter: blur(8px); }
  .brand { width: 90px; height: 44px; }
  .desktop-nav, .header-login { display: none; }
  .menu-button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; color: #fff; background: var(--blue-deep); border: 2px solid var(--ink); border-radius: 4px; font-size: 1.45rem; font-weight: 700; line-height: 1; box-shadow: 4px 4px 0 var(--yellow); }
  .menu-button:hover, .menu-button:focus-visible { color: var(--ink); background: var(--yellow); box-shadow: 4px 4px 0 var(--blue-deep); outline: 3px solid #fff; outline-offset: 2px; }
  .mobile-nav { position: absolute; top: 64px; right: 18px; width: min(280px, calc(100vw - 36px)); padding: 10px; background: var(--paper); border: var(--border); box-shadow: 6px 6px 0 var(--yellow); }
  .mobile-nav:not([hidden]) { display: grid; }
  .mobile-nav a { padding: 11px 10px; font-family: var(--font-head); font-weight: 700; border-bottom: 1px solid var(--line); }
  .mobile-nav a:last-child { border-bottom: 0; }
  .hero { min-height: 740px; padding: 112px 0 62px; background-position: 57% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(255,254,250,.97) 0%, rgba(255,254,250,.91) 55%, rgba(255,254,250,.38) 100%); }
  .hero-content { text-align: center; }
  .eyebrow { font-size: .66rem; }
  .hero h1 { margin-top: 24px; font-size: 3rem; }
  .hero-thesis { font-size: 1.65rem; }
  .hero-copy { max-width: 520px; margin-inline: auto; }
  .hero-actions { flex-direction: column; gap: 17px; }
  .hero-caption { left: 18px; right: auto; font-size: .64rem; }
  .band-white, .band-mint, .band-yellow, .band-cream, .band-coral, .band-cobalt { padding: 66px 0; }
  .belief-grid, .programs-head, .pathfinder-grid, .final-grid { grid-template-columns: 1fr; gap: 30px; }
  .belief h2, .section-head h2, .pathfinder-intro h2, .final-cta h2 { font-size: 2rem; }
  .pathfinder-intro { position: static; }
  .pathfinder-card { min-height: 0; padding: 25px; }
  .belief-note { grid-column: auto; }
  .path-grid { grid-template-columns: 1fr; gap: 24px; }
  .path-card { min-height: 0; padding-bottom: 84px; transform: none; }
  .path-number { margin-bottom: 18px; }
  .approach-list article { grid-template-columns: 48px 1fr; gap: 12px; }
  .approach-list article p { grid-column: 2; }
  .program-grid { grid-template-columns: 1fr; }
  .program-copy { padding: 24px; }
  .program-copy h3 { font-size: 1.65rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid nav { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
  .copyright { grid-column: auto; }
}

@media (max-width: 390px) {
  .hero { min-height: 760px; }
  .hero h1 { font-size: 2.55rem; }
  .hero-thesis { font-size: 1.48rem; }
  .hero-copy { font-size: .95rem; }
  .button { width: 100%; }
  .belief h2, .section-head h2, .pathfinder-intro h2, .final-cta h2 { font-size: 1.78rem; }
  .pathfinder-card { padding: 20px 16px; box-shadow: 6px 6px 0 var(--blue-deep); }
  .quiz-step legend { font-size: 1.3rem; }
  .quiz-options label > span { padding-left: 44px; }
  .polyglot-cover { min-height: 260px; padding: 18px; }
  .polyglot-cover img { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
