@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("IBM_Plex_Sans_Thai/IBMPlexSansThai-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("IBM_Plex_Sans_Thai/IBMPlexSansThai-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("IBM_Plex_Sans_Thai/IBMPlexSansThai-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("IBM_Plex_Sans_Thai/IBMPlexSansThai-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep-orange: #e85d04;
  --orange-dark: #d35400;
  --orange-soft: #fff0e5;
  --orange-line: #ffb37d;
  --dark-blue: #0b1f3a;
  --blue-muted: #3d526f;
  --soft-blue: #eaf2ff;
  --cream-bg: #fff7ed;
  --light-gray: #f6f7fb;
  --white: #ffffff;
  --border: #dfe6ef;
  --shadow: 0 18px 45px rgba(11, 31, 58, 0.12);
  --radius: 8px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark-blue);
  background: var(--white);
  font-family: "IBM Plex Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(232, 93, 4, 0.4);
  outline-offset: 3px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 10px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(223, 230, 239, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.brand-name {
  font-size: 1.16rem;
  color: var(--dark-blue);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--blue-muted);
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 14px;
  bottom: 6px;
  left: 14px;
  height: 2px;
  content: "";
  background: var(--deep-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--orange-dark);
  background: var(--orange-soft);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.budget70-link {
  margin-left: 8px;
  color: #ffffff;
  background: #087b55;
  box-shadow: 0 8px 20px rgba(8, 123, 85, 0.18);
}

.nav-new-badge { margin-left: 4px; padding: 1px 5px; color: #065f46; background: #d8ff70; border-radius: 5px; font-size: 0.67rem; font-weight: 700; vertical-align: 1px; }

.nav-link.budget70-link::after {
  display: none;
}

.nav-link.budget70-link:hover,
.nav-link.budget70-link:focus-visible {
  color: #ffffff;
  background: #065f46;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--dark-blue);
  border-radius: 999px;
}

.section-band {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(68px, 10vw, 112px) 0 64px;
  background:
    linear-gradient(140deg, rgba(255, 247, 237, 0.96), rgba(234, 242, 255, 0.96)),
    radial-gradient(circle at 22% 18%, rgba(232, 93, 4, 0.16), transparent 26%),
    radial-gradient(circle at 80% 30%, rgba(11, 31, 58, 0.10), transparent 28%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 31, 58, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 58, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 78%);
}

.hero::after {
  width: 32vw;
  max-width: 430px;
  aspect-ratio: 1;
  right: -12vw;
  top: 80px;
  border: 1px solid rgba(232, 93, 4, 0.16);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange-dark);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(4rem, 11vw, 8.5rem);
  line-height: 0.95;
  font-weight: 700;
  color: var(--dark-blue);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.32rem;
  line-height: 1.25;
}

.hero-subtitle {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
}

.hero-copy {
  width: min(720px, 100%);
  margin-bottom: 30px;
  color: var(--blue-muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.budget-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: min(880px, 100%); text-align: left; }
.budget-shortcut { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 28px; gap: 15px; align-items: center; min-height: 148px; padding: 22px; overflow: hidden; color: white; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 18px; box-shadow: 0 16px 34px rgba(11, 31, 58, 0.16); transition: box-shadow 180ms ease, transform 180ms ease, filter 180ms ease; }
.budget-shortcut::after { position: absolute; right: -44px; bottom: -76px; width: 150px; height: 150px; content: ""; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; }
.budget-shortcut:hover, .budget-shortcut:focus-visible { color: white; box-shadow: 0 22px 44px rgba(11, 31, 58, 0.22); filter: saturate(1.08); transform: translateY(-4px); }
.culture-shortcut { background: #1769aa; }
.bangkok-shortcut { background: #087b55; }
.shortcut-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; color: currentColor; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 12px; }
.shortcut-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.shortcut-copy { position: relative; z-index: 1; display: grid; min-width: 0; }
.shortcut-copy small { color: rgba(255, 255, 255, 0.76); font-size: 0.76rem; font-weight: 600; }
.shortcut-copy strong { margin: 1px 0 4px; font-size: clamp(1.25rem, 2.4vw, 1.65rem); line-height: 1.15; }
.shortcut-copy > span { color: rgba(255, 255, 255, 0.86); font-size: 0.82rem; line-height: 1.4; }
.shortcut-arrow { position: relative; z-index: 1; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms ease; }
.budget-shortcut:hover .shortcut-arrow, .budget-shortcut:focus-visible .shortcut-arrow { transform: translateX(4px); }
.shortcut-new-badge { position: absolute; top: 12px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; color: #17472f; background: #d8ff70; border-radius: 6px; font-size: 0.7rem; font-weight: 700; }
.shortcut-new-badge svg { width: 12px; height: 12px; fill: currentColor; }

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.floating-card,
.map-panel {
  position: absolute;
  border: 1px solid rgba(223, 230, 239, 0.8);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 40px rgba(11, 31, 58, 0.10);
  backdrop-filter: blur(10px);
}

.floating-card {
  display: grid;
  gap: 0;
  width: 150px;
  padding: 14px 16px;
  border-radius: var(--radius);
}

.floating-card span,
.floating-card small {
  color: var(--blue-muted);
  font-size: 0.82rem;
}

.floating-card strong {
  color: var(--orange-dark);
  font-size: 1.75rem;
  line-height: 1.1;
}

.card-one {
  left: max(22px, 6vw);
  top: 28%;
}

.card-two {
  right: max(22px, 8vw);
  bottom: 18%;
}

.map-panel {
  right: 11%;
  top: 18%;
  width: 210px;
  height: 230px;
  border-radius: var(--radius);
  transform: rotate(-5deg);
}

.map-panel::before {
  position: absolute;
  inset: 34px 54px 56px 54px;
  content: "";
  border-radius: 42% 58% 48% 52%;
  background: linear-gradient(150deg, rgba(232, 93, 4, 0.22), rgba(234, 242, 255, 0.95));
  border: 1px solid rgba(232, 93, 4, 0.24);
}

.map-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--deep-orange);
  box-shadow: 0 0 0 8px rgba(232, 93, 4, 0.12);
}

.node-a {
  top: 58px;
  left: 92px;
}

.node-b {
  top: 108px;
  left: 122px;
}

.node-c {
  top: 148px;
  left: 86px;
}

.mini-bars {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: end;
  gap: 6px;
  width: 72px;
  height: 52px;
}

.mini-bars span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(to top, var(--deep-orange), var(--orange-line));
}

.section-heading {
  width: min(720px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--blue-muted);
}

.story {
  padding: clamp(58px, 8vw, 88px) 0;
}

.highlight-grid {
  display: grid;
  gap: 18px;
}

.highlight-card,
.story-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.highlight-card h3 {
  color: var(--dark-blue);
}

.highlight-card p,
.story-card p {
  color: var(--blue-muted);
}

.card-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--deep-orange);
  background: var(--orange-soft);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlights-band {
  padding: clamp(58px, 8vw, 94px) 0;
  background: var(--light-gray);
}

.highlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlight-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  min-height: 248px;
}

.highlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.percent-label {
  color: var(--orange-dark);
  font-weight: 700;
}

.big-number {
  margin-bottom: 0;
  color: var(--orange-dark) !important;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.18;
}

.progress-track {
  width: 100%;
  height: 9px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf4;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange-line));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-track.is-filled span {
  transform: scaleX(1);
}

.story-list {
  display: grid;
  gap: 22px;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding: clamp(22px, 4vw, 36px);
  overflow: hidden;
}

.story-card.reverse {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.story-card.reverse .story-copy {
  order: 2;
}

.story-visual {
  min-height: 240px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 240, 229, 0.9), rgba(234, 242, 255, 0.9)),
    var(--soft-blue);
  border: 1px solid rgba(223, 230, 239, 0.8);
  padding: 24px;
  transform: scale(0.98);
  transition: transform 700ms ease, box-shadow 700ms ease;
}

.story-card.is-active .story-visual {
  box-shadow: 0 18px 42px rgba(11, 31, 58, 0.12);
  transform: scale(1);
}

.visual-bars,
.visual-stack,
.visual-timeline {
  height: 100%;
}

.visual-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 18px;
}

.visual-bars span {
  width: 48px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(to top, var(--orange-dark), var(--orange-line));
}

.visual-donut {
  display: grid;
  width: min(210px, 100%);
  aspect-ratio: 1;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--deep-orange) 0 79%, #cfe0f8 79% 100%);
}

.visual-donut::before {
  position: absolute;
  content: "";
}

.visual-donut span {
  display: grid;
  width: 58%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: var(--dark-blue);
  background: var(--white);
  font-size: 2rem;
  font-weight: 700;
}

.visual-stack {
  display: grid;
  align-content: center;
  gap: 12px;
}

.visual-stack span {
  height: 34px;
  border-radius: 999px;
}

.visual-stack span:nth-child(1) {
  background: var(--deep-orange);
}

.visual-stack span:nth-child(2) {
  background: var(--orange-line);
}

.visual-stack span:nth-child(3) {
  background: #8eb6ef;
}

.visual-stack span:nth-child(4) {
  background: #a8b4c5;
}

.visual-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 14px;
}

.visual-timeline::before {
  position: absolute;
  right: 10%;
  left: 10%;
  height: 3px;
  content: "";
  background: rgba(11, 31, 58, 0.18);
}

.visual-timeline span {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border: 7px solid var(--white);
  border-radius: 50%;
  background: var(--deep-orange);
  box-shadow: 0 10px 22px rgba(11, 31, 58, 0.14);
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--orange-dark);
  font-weight: 700;
}

.text-link::after {
  width: 18px;
  height: 2px;
  margin-left: 8px;
  content: "";
  background: currentColor;
  transition: width 160ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  width: 28px;
}

.site-footer {
  border-top: 5px solid var(--deep-orange);
  color: #f8fbff;
  background: var(--dark-blue);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.55fr);
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
  padding: 40px 0 32px;
}

.footer-identity {
  min-width: 0;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.footer-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 10px;
}

.footer-logo-link:focus-visible {
  outline: 3px solid var(--orange-line);
  outline-offset: 4px;
}

.footer-logo {
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-logo-budget {
  width: clamp(96px, 9vw, 124px);
}

.footer-logo-flashthink {
  width: clamp(76px, 7vw, 96px);
}

.footer-logo-divider {
  width: 1px;
  height: 52px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.28);
}

.footer-content {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  text-align: right;
}

.site-footer p {
  margin: 0;
}

.footer-disclaimer {
  color: #f8fbff;
  font-size: 0.98rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.footer-phrase {
  display: inline-block;
}

.footer-contact,
.footer-copyright {
  color: #cdd9e8;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-copyright {
  margin-top: 16px;
}

.footer-contact {
  margin-top: 14px;
}

.site-footer a:not(.footer-logo-link) {
  color: var(--orange-line);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1020px) {
  .highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-panel,
  .card-two {
    opacity: 0.5;
  }

  .story-card,
  .story-card.reverse {
    grid-template-columns: 1fr;
  }

  .story-card.reverse .story-copy {
    order: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 66px;
  }

  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: var(--header-height);
    padding: 8px 14px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .menu-button {
    display: inline-grid;
  }

  .primary-nav {
    position: absolute;
    right: 14px;
    left: 14px;
    top: calc(100% + 8px);
    display: none;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: grid;
  }

  .nav-link {
    min-height: 46px;
  }

  .nav-link.budget70-link {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 42px;
  }

  .hero-copy {
    margin-bottom: 24px;
  }

  .budget-shortcuts { grid-template-columns: 1fr; }
  .budget-shortcut { min-height: 132px; padding: 18px; }

  .floating-card,
  .map-panel {
    display: none;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .highlight-card {
    min-height: auto;
  }

  .story-visual {
    min-height: 210px;
  }

  .visual-bars span {
    width: 34px;
  }

  .footer-inner {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 28px;
  }

  .footer-content {
    max-width: none;
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 3.55rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 1.16rem;
  }

  .big-number {
    font-size: 1.45rem;
  }

  .story-card,
  .highlight-card {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
