@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400&family=Instrument+Serif:ital@0;1&family=Syne:wght@600;700;800&display=swap");

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

:root {
  --paper: #f5f2eb;
  --cream: #faf8f3;
  --mist: #ede9e0;
  --rule: #ddd8cd;
  --soft: #7d7468;
  --ink: #0a0a0a;
  --ember: #e84c1e;
  --ember-dim: #fce9e4;
  --jade: #1a7a5e;
  --sky: #1a5fa8;
  --gold: #c9860a;
  --paper-strong: #fffdf8;
  --shadow: 0 18px 60px rgba(10, 10, 10, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  width: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.ticker {
  display: inline-flex;
  gap: 28px;
  padding: 9px 0;
  animation: ticker 45s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 242, 235, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px);
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease);
}

nav.scrolled {
  background: rgba(250, 248, 243, 0.94);
  border-bottom-color: var(--rule);
}

.nav-inner {
  max-width: 1280px;
  height: 60px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  font-size: 1.24rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.72; }
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
}

.nav-links a,
.pill-btn {
  border: 0;
  border-radius: 22px;
  padding: 9px 13px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-links a:hover,
.pill-btn:hover {
  background: var(--mist);
}

.nav-links a[href="/bangkok"] {
  position: relative;
  overflow: visible;
}

.nav-links a[href="/bangkok"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  width: 34px;
  height: 25px;
  background:
    linear-gradient(135deg, transparent 30%, var(--ember) 31% 44%, transparent 45%),
    linear-gradient(45deg, transparent 30%, var(--gold) 31% 44%, transparent 45%),
    linear-gradient(to top, var(--ink) 0 45%, transparent 46%);
  clip-path: polygon(8% 100%, 92% 100%, 82% 42%, 64% 42%, 50% 0, 36% 42%, 18% 42%);
  transform: translate(-50%, -6px) scale(0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-links a[href="/bangkok"]:hover::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.research-btn,
.primary-btn,
.dark-btn {
  border: 0;
  border-radius: 24px;
  padding: 11px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}

.research-btn:hover,
.primary-btn:hover,
.dark-btn:hover {
  background: var(--ember);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--cream);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
  padding: 84px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer a,
.mobile-drawer button {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  margin: 44px auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  padding-top: 28px;
}

.lead-card {
  min-height: 480px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
}

.photo {
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(232, 76, 30, 0.38), rgba(26, 122, 94, 0.22)),
    radial-gradient(circle at 78% 24%, rgba(201, 134, 10, 0.26), transparent 32%),
    #171717;
  color: rgba(245, 242, 235, 0.32);
  font-family: "DM Mono", monospace;
  display: grid;
  place-items: center;
}

.story-photo {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.story-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.24s var(--ease);
}

.a-card:hover .story-photo img,
.lead-card:hover .story-photo img {
  transform: scale(1.03);
}

.lead-photo {
  min-height: 260px;
}

.lead-body {
  padding: 28px;
}

.lead-card h1,
.page-hero h1,
.article-title,
.feature h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}

.lead-card h1 {
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.95;
  max-width: 850px;
}

.deck {
  color: rgba(245, 242, 235, 0.78);
  font-size: 1.04rem;
  line-height: 1.55;
  max-width: 720px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  color: var(--soft);
  margin-top: 20px;
}

.lead-card .meta-row {
  color: rgba(245, 242, 235, 0.64);
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-card,
.a-card,
.plan-card,
.stat,
.form-panel,
.dashboard-panel,
.team-card,
.value-card {
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--cream);
}

.side-card {
  padding: 19px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.side-card:hover,
.a-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.side-card h3,
.a-card h3 {
  margin: 12px 0;
  font-family: "Instrument Serif", serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.05;
}

.cat-pill,
.lead-tag,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.cat-th,
.lead-tag {
  background: var(--ember);
}

.cat-sea {
  background: var(--jade);
}

.cat-biz {
  background: var(--sky);
}

.cat-pol {
  background: var(--gold);
}

.badge {
  background: var(--ink);
}

.ad-slot {
  min-height: 92px;
  border: 1px dashed var(--soft);
  background: var(--mist);
  color: var(--soft);
  font-family: "DM Mono", monospace;
  display: grid;
  place-items: center;
  border-radius: 12px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  color: var(--ember);
  text-transform: uppercase;
}

.section-head h2,
.premium h2,
.newsletter h3 {
  margin: 6px 0 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.a-card {
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.a-card .photo {
  min-height: 178px;
}

.a-card-body {
  padding: 18px;
}

.a-card p {
  color: var(--soft);
  line-height: 1.48;
}

.feature-strip {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  background: var(--ink);
  color: var(--paper);
  padding: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-strip::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -90px;
  right: -70px;
  background: radial-gradient(circle, rgba(232, 76, 30, 0.34), transparent 70%);
}

.feature {
  position: relative;
  z-index: 1;
}

.feature .num {
  color: var(--ember);
  font-family: "DM Mono", monospace;
}

.feature h2 {
  margin: 12px 0;
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
}

.premium,
.newsletter,
.page-hero {
  border-radius: 40px;
  padding: 40px;
}

.premium {
  background: var(--cream);
  border-top: 3px solid var(--ember);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.plan-card {
  padding: 24px;
}

.plan-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.price {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.plan-card ul {
  padding-left: 18px;
  color: var(--soft);
  line-height: 1.7;
}

.plan-card.featured ul {
  color: rgba(245, 242, 235, 0.72);
}

.newsletter {
  background: linear-gradient(135deg, #101010, #24201a);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 28px;
  align-items: center;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form input,
.inline-form button {
  min-height: 48px;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 12px 14px;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

footer {
  border-top: 1px solid var(--rule);
  padding: 38px 24px 22px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid h4 {
  font-family: "Syne", sans-serif;
  margin: 0 0 12px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: var(--soft);
  line-height: 1.75;
}

.foot-bottom {
  max-width: 1280px;
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: "DM Mono", monospace;
  color: var(--soft);
  font-size: 0.78rem;
}

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

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

.page-hero {
  margin-top: 28px;
  background: var(--ink);
  color: var(--paper);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: 0.92;
  max-width: 880px;
}

.page-hero p {
  max-width: 720px;
  color: rgba(245, 242, 235, 0.72);
  line-height: 1.6;
}

.article-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 58px;
}

.article-header {
  max-width: 780px;
  margin: 0 auto 26px;
}

.article-title {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
  margin: 16px 0;
}

.article-body {
  font-family: "Instrument Serif", serif;
  font-size: 1.25rem;
  line-height: 1.8;
}

.article-body p:first-child::first-letter {
  float: left;
  font-family: "Syne", sans-serif;
  font-size: 4.5rem;
  line-height: 0.82;
  padding-right: 8px;
  color: var(--ember);
}

.article-body h2 {
  border-top: 2px solid var(--ember);
  padding-top: 32px;
  margin-top: 42px;
  font-size: 2.2rem;
}

.article-sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 18px;
}

.locked-box,
.research-summary,
.result-box {
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--cream);
  padding: 18px;
}

.krung-summary {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ember);
  border-radius: 16px;
  background: var(--cream);
  padding: 20px;
  margin: 24px 0;
}

.krung-summary ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.krung-summary li {
  margin: 8px 0;
  line-height: 1.5;
}

.form-panel,
.dashboard-panel {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stack {
  display: grid;
  gap: 14px;
}

.auth-layout,
.subscribe-layout {
  max-width: 760px;
  margin: 40px auto;
  padding: 0 24px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tabs button,
.toggle-card {
  border: 1px solid var(--rule);
  background: var(--cream);
  border-radius: 16px;
  padding: 14px;
}

.tabs button.active,
.toggle-card.selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.dashboard-grid {
  max-width: 1280px;
  margin: 34px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 18px;
  align-items: start;
}

.article-list {
  display: grid;
  gap: 10px;
}

.archive-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.archive-sidebar {
  position: sticky;
  top: 84px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--cream);
  padding: 18px;
}

.archive-filters {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.archive-filter {
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.archive-filter span {
  color: var(--soft);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
}

.archive-filter.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.archive-filter.active span {
  color: rgba(245, 242, 235, 0.68);
}

.archive-heading,
.archive-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.archive-heading h2,
.archive-group-head h3 {
  margin: 4px 0 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.archive-group {
  margin-bottom: 34px;
}

.archive-group-head h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.archive-group-head span {
  color: var(--soft);
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.archive-card {
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--cream);
  overflow: hidden;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 210px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.archive-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.archive-card .photo {
  min-height: 100%;
}

.archive-card-body {
  padding: 18px;
}

.archive-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.archive-card-tags span {
  border-radius: 999px;
  background: var(--mist);
  color: var(--soft);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  padding: 5px 8px;
  text-transform: uppercase;
}

.archive-card h3 {
  margin: 12px 0 8px;
  font-family: "Instrument Serif", serif;
  font-size: 1.55rem;
  line-height: 1.02;
}

.archive-card p {
  color: var(--soft);
  line-height: 1.45;
}

.bangkok-page {
  --bkk-ink: #101114;
  --bkk-paper: #fbfbf8;
  --bkk-lime: #c7ff4a;
  --bkk-coral: #ff5f3d;
  --bkk-cyan: #29d5ff;
  --bkk-pink: #ff4fa3;
  --bkk-blue: #1f6bff;
  background: #f7f8f2;
}

.bkk-hero {
  min-height: calc(100vh - 60px);
  padding: clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(24px, 5vw, 74px);
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--bkk-paper);
  background:
    linear-gradient(120deg, rgba(16, 17, 20, 0.86), rgba(16, 17, 20, 0.34)),
    url("https://images.unsplash.com/photo-1508009603885-50cf7c579365?auto=format&fit=crop&w=1800&q=86") center/cover;
  animation: bkkPageOpen 0.9s var(--ease) both;
}

.bkk-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -24% 28%;
  height: 42%;
  background: linear-gradient(90deg, transparent, rgba(199, 255, 74, 0.22), rgba(41, 213, 255, 0.2), transparent);
  transform: rotate(-5deg);
  animation: bkkGlowSweep 8s ease-in-out infinite;
}

.bkk-hero-copy,
.bkk-phone {
  position: relative;
  z-index: 1;
}

.bkk-hero-copy {
  animation: bkkHeroTextIn 0.9s var(--ease) 0.12s both;
}

.bkk-kicker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 11px;
  font-family: "DM Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.bkk-hero h1,
.bkk-section h2,
.bkk-news-card h3 {
  font-family: "Syne", sans-serif;
  letter-spacing: 0;
}

.bkk-hero h1 {
  max-width: 880px;
  margin: 18px 0;
  font-size: clamp(3.5rem, 9vw, 9.8rem);
  line-height: 0.82;
}

.bkk-hero p,
.bkk-section p {
  max-width: 660px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.bkk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.bkk-primary,
.bkk-secondary {
  border-radius: 999px;
  padding: 13px 18px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
}

.bkk-primary {
  background: var(--bkk-lime);
  color: var(--bkk-ink);
}

.bkk-secondary {
  border: 1px solid rgba(251, 251, 248, 0.5);
  color: var(--bkk-paper);
}

.bkk-phone {
  min-height: 560px;
  border: 1px solid rgba(251, 251, 248, 0.34);
  border-radius: 42px;
  background: rgba(251, 251, 248, 0.13);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
  padding: 24px;
  overflow: hidden;
  transform: rotate(2deg);
  animation: bkkFloat 5s ease-in-out infinite;
}

.bkk-phone-top {
  width: 92px;
  height: 26px;
  border-radius: 999px;
  margin: 0 auto 30px;
  background: rgba(16, 17, 20, 0.72);
}

.bkk-orbit-map {
  position: relative;
  height: 350px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(41, 213, 255, 0.2), rgba(255, 95, 61, 0.18)),
    rgba(16, 17, 20, 0.48);
}

.bkk-line,
.bkk-dot {
  position: absolute;
  display: block;
}

.bkk-line {
  height: 8px;
  border-radius: 999px;
  transform-origin: left center;
  animation: bkkTrainPulse 2.8s ease-in-out infinite;
}

.bkk-line.l1 {
  width: 78%;
  top: 28%;
  left: 10%;
  background: var(--bkk-lime);
  transform: rotate(18deg);
}

.bkk-line.l2 {
  width: 72%;
  top: 58%;
  left: 17%;
  background: var(--bkk-cyan);
  transform: rotate(-24deg);
  animation-delay: 0.4s;
}

.bkk-line.l3 {
  width: 64%;
  top: 76%;
  left: 18%;
  background: var(--bkk-coral);
  transform: rotate(4deg);
  animation-delay: 0.8s;
}

.bkk-dot {
  width: 18px;
  height: 18px;
  border: 4px solid var(--bkk-paper);
  border-radius: 50%;
  background: var(--bkk-pink);
  animation: dotPulse 2.2s ease-in-out infinite;
}

.bkk-dot.d1 { top: 24%; left: 22%; }
.bkk-dot.d2 { top: 52%; right: 20%; animation-delay: 0.35s; }
.bkk-dot.d3 { bottom: 17%; left: 44%; animation-delay: 0.7s; }

.bkk-phone-card {
  margin-top: 16px;
  border-radius: 24px;
  background: var(--bkk-paper);
  color: var(--bkk-ink);
  padding: 18px;
  display: grid;
  gap: 6px;
}

.bkk-stat-strip {
  max-width: 1180px;
  margin: -48px auto 70px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bkk-stat-strip article,
.bkk-metro-line,
.bkk-weather-card,
.bkk-news-card {
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(16, 17, 20, 0.08);
  backdrop-filter: blur(16px);
}

.bkk-stat-strip article {
  padding: 22px;
}

.bkk-stat-strip span,
.bkk-mini-note,
.bkk-weather-card span,
.bkk-news-card span {
  color: rgba(16, 17, 20, 0.58);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.bkk-stat-strip strong {
  display: block;
  margin: 8px 0;
  font-family: "Syne", sans-serif;
  font-size: 2rem;
}

.bkk-stat-strip p,
.bkk-weather-card p,
.bkk-news-card p {
  color: rgba(16, 17, 20, 0.66);
  line-height: 1.55;
}

.bkk-section {
  max-width: 1180px;
  margin: 70px auto;
  padding: 0 24px;
}

.bkk-stage {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(8px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease), filter 0.72s var(--ease);
}

.bkk-stage.in-view,
.bkk-hero.bkk-stage {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.bkk-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: start;
}

.bkk-section h2 {
  margin: 14px 0;
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  line-height: 0.9;
}

.bkk-transport-flow {
  border-radius: 42px;
  padding: clamp(24px, 5vw, 46px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(223, 247, 255, 0.74)),
    radial-gradient(circle at 16% 20%, rgba(199, 255, 74, 0.2), transparent 26%);
  box-shadow: inset 0 0 0 1px rgba(16, 17, 20, 0.08);
}

.bkk-flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.bkk-flow-track::before {
  content: "";
  position: absolute;
  top: 47px;
  left: 9%;
  right: 9%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bkk-blue), var(--bkk-cyan), var(--bkk-lime), var(--bkk-coral));
  transform-origin: left center;
  animation: bkkDrawLine 1.3s var(--ease) both;
}

.bkk-flow-stop {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  padding: 18px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(16, 17, 20, 0.08);
  backdrop-filter: blur(16px);
  animation: bkkCardIn 0.7s var(--ease) both;
  animation-delay: var(--flow-delay);
}

.bkk-flow-icon {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--bkk-ink), #293241);
  box-shadow: 0 16px 34px rgba(16, 17, 20, 0.18);
}

.bkk-flow-icon img {
  width: 38px;
  height: 38px;
}

.bkk-flow-stop span,
.bkk-affiliate-card span,
.bkk-landmark-list span {
  color: rgba(16, 17, 20, 0.58);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.bkk-flow-stop strong {
  display: block;
  margin: 8px 0;
  font-family: "Syne", sans-serif;
}

.bkk-rail-map-wrap {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 320px;
  gap: 14px;
  align-items: stretch;
}

.bkk-rail-map {
  min-height: 540px;
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 52%, rgba(41, 213, 255, 0.22), transparent 24%),
    radial-gradient(circle at 32% 35%, rgba(199, 255, 74, 0.18), transparent 21%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(226, 241, 255, 0.62));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58), 0 28px 90px rgba(16, 17, 20, 0.1);
  backdrop-filter: blur(18px);
}

.bkk-map-glass {
  position: absolute;
  inset: 24px;
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(16, 17, 20, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 46% 52%, rgba(255, 255, 255, 0.52), transparent 28%),
    rgba(255, 255, 255, 0.35);
  background-size: 34px 34px, 34px 34px, auto, auto;
  border: 1px solid rgba(16, 17, 20, 0.1);
}

.bkk-map-glass::before {
  content: "";
  position: absolute;
  inset: 9% 7% 8%;
  border-radius: 42% 58% 48% 52% / 40% 35% 65% 60%;
  border: 1px solid rgba(16, 17, 20, 0.12);
}

.bkk-map-glass .zone {
  position: absolute;
  border: 1px solid rgba(16, 17, 20, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  padding: 6px 8px;
  color: rgba(16, 17, 20, 0.56);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.bkk-map-glass .north { top: 9%; left: 21%; }
.bkk-map-glass .west { top: 55%; left: 7%; }
.bkk-map-glass .core { top: 41%; left: 42%; color: var(--bkk-ink); }
.bkk-map-glass .east { top: 36%; right: 8%; }
.bkk-map-glass .airport { bottom: 20%; right: 7%; }

.bkk-rail-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bkk-river,
.bkk-ring-road,
.bkk-inner-road {
  fill: none;
  pointer-events: none;
}

.bkk-river {
  stroke: url(#riverGlow);
  stroke-width: 4;
  stroke-linecap: round;
}

.bkk-ring-road,
.bkk-inner-road {
  stroke: rgba(16, 17, 20, 0.14);
  stroke-width: 0.45;
  stroke-dasharray: 2.4 2.4;
}

.bkk-rail-path {
  cursor: pointer;
}

.bkk-rail-path .line {
  fill: none;
  stroke: var(--line);
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  filter: url(#railGlow);
  animation: bkkRailDraw 1.5s var(--ease) forwards;
  animation-delay: var(--dash-delay);
  transition: stroke-width 0.2s var(--ease), opacity 0.2s var(--ease);
}

.bkk-rail-path .hit {
  stroke: transparent;
  stroke-width: 12;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  filter: none;
  animation: none;
  pointer-events: stroke;
}

.bkk-rail-path .runner {
  fill: var(--line);
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 0.7;
  filter: drop-shadow(0 0 5px var(--line));
  pointer-events: none;
}

.bkk-station circle {
  fill: var(--line);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 0.8;
  transform-origin: center;
}

.bkk-station text {
  fill: rgba(16, 17, 20, 0.66);
  font-family: "DM Mono", monospace;
  font-size: 2.45px;
  paint-order: stroke;
  pointer-events: none;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-linejoin: round;
  stroke-width: 0.65px;
}

.bkk-station:not(.start):not(.end) text {
  opacity: 0;
  transition: opacity 0.18s var(--ease);
}

.bkk-rail-path.active .line,
.bkk-rail-path:hover .line {
  stroke-width: 3.1;
}

.bkk-rail-path.active .bkk-station text,
.bkk-rail-path:hover .bkk-station text {
  opacity: 1;
}

.bkk-rail-path.active .bkk-station circle,
.bkk-rail-path:hover .bkk-station circle {
  animation: bkkNodePulse 1.1s ease-in-out infinite;
}

.bkk-map-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  padding: 18px;
  box-shadow: 0 20px 60px rgba(16, 17, 20, 0.12);
  backdrop-filter: blur(18px);
  pointer-events: none;
  z-index: 2;
}

.bkk-map-info span {
  color: rgba(16, 17, 20, 0.56);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.bkk-map-info strong {
  display: block;
  margin: 8px 0;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
}

.bkk-map-info p {
  margin: 0;
  color: rgba(16, 17, 20, 0.65);
}

.bkk-map-info small {
  display: block;
  margin-top: 9px;
  color: rgba(16, 17, 20, 0.52);
  line-height: 1.45;
}

.bkk-metro-board {
  display: grid;
  gap: 10px;
}

.bkk-metro-line {
  padding: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.bkk-metro-line.active,
.bkk-metro-line:hover {
  transform: translateX(-4px);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.bkk-metro-line-top,
.bkk-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.bkk-section-head.compact {
  align-items: center;
}

.bkk-metro-line-top strong {
  display: block;
  font-family: "Syne", sans-serif;
}

.bkk-metro-line-top span {
  display: block;
  color: rgba(16, 17, 20, 0.58);
}

.bkk-metro-line-top em {
  color: var(--line);
  font-family: "DM Mono", monospace;
  font-style: normal;
}

.bkk-progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(16, 17, 20, 0.08);
  overflow: hidden;
  margin: 14px 0;
}

.bkk-progress span {
  display: block;
  height: 100%;
  width: var(--progress);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--line), var(--bkk-lime));
  animation: bkkLoad 1.2s var(--ease) both;
}

.bkk-metro-line a,
.bkk-news-lab a {
  color: var(--bkk-blue);
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
}

.bkk-weather {
  border-radius: 42px;
  background: linear-gradient(135deg, #dff7ff, #fff7df 52%, #ffe4ec);
  padding: clamp(24px, 5vw, 46px);
}

.bkk-weather-grid,
.bkk-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.bkk-weather-card {
  padding: 24px;
  transform: translateY(16px);
  animation: bkkCardIn 0.7s var(--ease) both;
  animation-delay: var(--delay);
  position: relative;
  overflow: hidden;
}

.bkk-weather-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -48% -20%;
  height: 110px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72), transparent 68%);
}

.bkk-weather-icon {
  position: relative;
  width: 74px;
  height: 74px;
  margin-bottom: 12px;
}

.weather-sun,
.weather-moon,
.weather-cloud {
  position: absolute;
  display: block;
}

.weather-sun {
  inset: 12px;
  border-radius: 50%;
  background: #ffd84d;
  box-shadow: 0 0 34px rgba(255, 216, 77, 0.72);
  animation: bkkWeatherSpin 8s linear infinite;
}

.weather-ray {
  position: absolute;
  width: 62px;
  height: 62px;
  inset: 6px;
  border: 2px dashed rgba(255, 216, 77, 0.55);
  border-radius: 50%;
  animation: bkkWeatherSpin 11s linear infinite reverse;
}

.weather-ray.r2 {
  inset: 0;
  width: 74px;
  height: 74px;
  animation-duration: 15s;
}

.weather-cloud {
  left: 7px;
  top: 24px;
  width: 58px;
  height: 28px;
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  animation: bkkCloudBob 2.4s ease-in-out infinite;
}

.weather-cloud::before,
.weather-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.weather-cloud::before {
  width: 28px;
  height: 28px;
  left: 10px;
  top: -14px;
}

.weather-cloud::after {
  width: 22px;
  height: 22px;
  right: 10px;
  top: -9px;
}

.weather-rain {
  position: absolute;
  left: 24px;
  top: 54px;
  width: 22px;
  height: 18px;
  background: repeating-linear-gradient(90deg, #29d5ff 0 3px, transparent 3px 9px);
  transform: skewX(-14deg);
  animation: bkkRainDrop 0.72s linear infinite;
}

.weather-bolt {
  position: absolute;
  right: 10px;
  top: 44px;
  width: 16px;
  height: 26px;
  background: #facc15;
  clip-path: polygon(48% 0, 100% 0, 62% 42%, 100% 42%, 22% 100%, 45% 52%, 8% 52%);
  animation: bkkBolt 1.4s steps(2, end) infinite;
}

.weather-moon {
  inset: 11px 14px 12px 8px;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: inset -15px 0 0 #111827, 0 0 24px rgba(248, 250, 252, 0.5);
  animation: bkkMoonFloat 3s ease-in-out infinite;
}

.weather-star {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f8fafc;
  animation: bkkStar 1.8s ease-in-out infinite;
}

.weather-star.s1 { right: 10px; top: 16px; }
.weather-star.s2 { right: 24px; bottom: 15px; animation-delay: 0.4s; }

.bkk-weather-card strong {
  display: block;
  margin: 10px 0;
  font-family: "Syne", sans-serif;
  font-size: 2rem;
}

.bkk-news-card {
  padding: 22px;
  min-height: 230px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.bkk-news-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 30px 80px rgba(16, 17, 20, 0.14);
}

.bkk-news-card h3 {
  font-size: 1.55rem;
  line-height: 1;
}

.bkk-landmarks {
  border-radius: 42px;
  padding: clamp(24px, 5vw, 46px);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 79, 163, 0.16), transparent 28%),
    linear-gradient(135deg, #fffdf6, #eef7ff);
}

.bkk-landmark-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  margin-top: 24px;
}

.bkk-landmark-preview {
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  position: sticky;
  top: 84px;
  background: var(--bkk-ink);
  color: var(--bkk-paper);
  box-shadow: 0 30px 90px rgba(16, 17, 20, 0.18);
}

.bkk-landmark-preview figure {
  margin: 0;
  height: 330px;
  overflow: hidden;
}

.bkk-landmark-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: bkkImageBloom 0.55s var(--ease) both;
}

.bkk-landmark-preview div {
  padding: 24px;
}

.bkk-landmark-preview h3 {
  margin: 8px 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 0.9;
}

.bkk-landmark-preview p {
  color: rgba(251, 251, 248, 0.72);
}

.bkk-landmark-preview a {
  color: var(--bkk-lime);
  font-family: "DM Mono", monospace;
}

.bkk-landmark-list {
  display: grid;
  gap: 10px;
}

.bkk-landmark-list button {
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  padding: 18px;
  text-align: left;
  display: grid;
  gap: 6px;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.bkk-landmark-list button:hover,
.bkk-landmark-list button.active {
  transform: translateX(6px);
  background: var(--bkk-ink);
  color: var(--bkk-paper);
  box-shadow: 0 22px 60px rgba(16, 17, 20, 0.14);
}

.bkk-landmark-list strong {
  font-family: "Syne", sans-serif;
  font-size: 1.28rem;
}

.bkk-landmark-list em {
  color: rgba(16, 17, 20, 0.58);
  font-style: normal;
}

.bkk-landmark-list button:hover span,
.bkk-landmark-list button.active span,
.bkk-landmark-list button:hover em,
.bkk-landmark-list button.active em {
  color: rgba(251, 251, 248, 0.62);
}

.bkk-tdac {
  border-radius: 44px;
  color: var(--bkk-paper);
  background:
    radial-gradient(circle at 80% 20%, rgba(199, 255, 74, 0.22), transparent 30%),
    linear-gradient(135deg, #111318, #0d3140 56%, #141c13);
  padding: clamp(26px, 5vw, 48px);
}

.bkk-checklist {
  display: grid;
  gap: 12px;
}

.bkk-checklist div {
  border: 1px solid rgba(251, 251, 248, 0.18);
  border-radius: 22px;
  background: rgba(251, 251, 248, 0.1);
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.bkk-checklist span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bkk-lime);
  color: var(--bkk-ink);
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
}

.bkk-affiliates {
  border-radius: 42px;
  padding: clamp(24px, 5vw, 46px);
  color: var(--bkk-paper);
  background:
    radial-gradient(circle at 18% 20%, rgba(41, 213, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #101114, #182235 58%, #261919);
}

.bkk-affiliate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.bkk-affiliate-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(251, 251, 248, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  backdrop-filter: blur(16px);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease);
}

.bkk-affiliate-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -46px;
  bottom: -46px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.36;
  transition: transform 0.24s var(--ease);
}

.bkk-affiliate-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
}

.bkk-affiliate-card:hover::after {
  transform: scale(1.35);
}

.bkk-affiliate-card span {
  color: rgba(251, 251, 248, 0.6);
}

.bkk-affiliate-card strong {
  display: block;
  margin: 12px 0;
  font-family: "Syne", sans-serif;
  font-size: 1.7rem;
}

.bkk-affiliate-card p {
  color: rgba(251, 251, 248, 0.68);
}

.bkk-affiliate-card em {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: var(--bkk-lime);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-style: normal;
  text-transform: uppercase;
}

@keyframes bkkFloat {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-14px); }
}

@keyframes bkkPageOpen {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bkkHeroTextIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bkkGlowSweep {
  0%, 100% { transform: translateX(-8%) rotate(-5deg); opacity: 0.6; }
  50% { transform: translateX(8%) rotate(-5deg); opacity: 1; }
}

@keyframes bkkTrainPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 255, 255, 0); }
  50% { box-shadow: 0 0 26px rgba(255, 255, 255, 0.58); }
}

@keyframes bkkLoad {
  from { width: 0; }
  to { width: var(--progress); }
}

@keyframes bkkDrawLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes bkkDrawVerticalLine {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes bkkCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bkkWeatherSpin {
  to { transform: rotate(360deg); }
}

@keyframes bkkCloudBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes bkkRainDrop {
  from { background-position: 0 -12px; opacity: 0.45; }
  to { background-position: 0 12px; opacity: 1; }
}

@keyframes bkkBolt {
  0%, 68%, 100% { opacity: 0.28; }
  70%, 84% { opacity: 1; }
}

@keyframes bkkMoonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes bkkStar {
  0%, 100% { opacity: 0.35; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes bkkImageBloom {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bkkRailDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes bkkNodePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.7); }
}

.article-row {
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.status {
  color: var(--soft);
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
}

.research-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease);
  display: grid;
  place-items: center;
  padding: 20px;
}

.research-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.research-panel {
  width: min(860px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 28px;
  background: var(--paper);
  padding: 28px;
  transform: translateY(32px);
  transition: transform 0.24s var(--ease);
}

.research-overlay.open .research-panel {
  transform: translateY(0);
}

.close-btn {
  float: right;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mist);
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.suggestions button {
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--cream);
  padding: 8px 10px;
}

.loading {
  display: none;
  color: var(--soft);
  font-family: "DM Mono", monospace;
}

.loading.active {
  display: block;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--rule);
  border-top-color: var(--ember);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -3px;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.research-results {
  display: none;
  border-top: 1px solid var(--rule);
  margin-top: 18px;
  padding-top: 18px;
}

.research-results.active {
  display: block;
}

.research-results h3 {
  font-family: "Instrument Serif", serif;
  font-size: 2rem;
  line-height: 1;
}

.research-results li {
  margin: 10px 0;
  padding-left: 10px;
  border-left: 3px solid var(--ember);
}

/* Respectful temporary mourning treatment. */
body {
  background: #171512;
  color: #eee7da;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: 8px;
  background: linear-gradient(#050505, #1c1a17);
  pointer-events: none;
}

nav,
nav.scrolled {
  background: rgba(20, 18, 15, 0.9);
  border-bottom-color: rgba(238, 231, 218, 0.12);
}

.topbar,
.lead-card,
.feature-strip,
.page-hero,
.newsletter,
.plan-card.featured,
.research-btn,
.primary-btn,
.dark-btn {
  background: #0b0a09;
  color: #eee7da;
}

.nav-links a,
.pill-btn,
.mobile-drawer a,
.mobile-drawer button {
  color: #eee7da;
}

.nav-links a:hover,
.pill-btn:hover,
.burger,
.close-btn,
.suggestions button {
  background: rgba(238, 231, 218, 0.1);
}

.mobile-drawer,
.premium,
.side-card,
.a-card,
.plan-card,
.stat,
.form-panel,
.dashboard-panel,
.team-card,
.value-card,
.locked-box,
.research-summary,
.result-box,
.krung-summary,
.archive-sidebar,
.archive-card,
.tabs button,
.toggle-card,
.research-panel {
  background: #211f1b;
  border-color: rgba(238, 231, 218, 0.14);
  color: #eee7da;
}

.premium {
  border-top-color: #82776a;
}

.photo,
.story-photo img,
.bkk-landmark-preview img {
  filter: grayscale(0.52) brightness(0.72);
}

.deck,
.a-card p,
.archive-card p,
.page-hero p,
.footer-grid a,
.footer-grid p,
.status,
.plan-card ul,
.article-body,
.article-sidebar,
.krung-summary li,
.bkk-section p {
  color: rgba(238, 231, 218, 0.68);
}

.section-head,
footer,
.foot-bottom,
.archive-heading,
.archive-group-head,
.article-row {
  border-color: rgba(238, 231, 218, 0.14);
}

.eyebrow,
.feature .num,
.cat-pill,
.lead-tag,
.badge {
  color: #eee7da;
}

.cat-th,
.lead-tag,
.cat-sea,
.cat-biz,
.cat-pol,
.badge {
  background: #6c6256;
}

input,
textarea,
select {
  background: #191713;
  border-color: rgba(238, 231, 218, 0.16);
  color: #eee7da;
}

input::placeholder,
textarea::placeholder {
  color: rgba(238, 231, 218, 0.42);
}

.ad-slot {
  background: #1f1d19;
  border-color: rgba(238, 231, 218, 0.22);
  color: rgba(238, 231, 218, 0.5);
}

.bangkok-page {
  background: #171512;
}

.bkk-hero {
  background:
    linear-gradient(120deg, rgba(7, 7, 6, 0.9), rgba(16, 15, 13, 0.68)),
    url("https://images.unsplash.com/photo-1508009603885-50cf7c579365?auto=format&fit=crop&w=1800&q=86") center/cover;
}

.bkk-stat-strip article,
.bkk-metro-line,
.bkk-weather-card,
.bkk-news-card,
.bkk-flow-stop,
.bkk-landmark-list button {
  background: rgba(33, 31, 27, 0.84);
  border-color: rgba(238, 231, 218, 0.12);
  color: #eee7da;
}

.bkk-weather,
.bkk-landmarks,
.bkk-transport-flow,
.bkk-rail-map,
.bkk-map-glass {
  background:
    linear-gradient(135deg, rgba(35, 32, 27, 0.88), rgba(18, 17, 15, 0.92));
}

.bkk-affiliates,
.bkk-tdac {
  background:
    radial-gradient(circle at 80% 20%, rgba(238, 231, 218, 0.08), transparent 30%),
    linear-gradient(135deg, #0b0a09, #171512 58%, #211f1b);
}

.bkk-map-info,
.bkk-phone-card {
  background: rgba(18, 17, 15, 0.76);
  border-color: rgba(238, 231, 218, 0.16);
  color: #eee7da;
}

.bkk-map-info p,
.bkk-map-info small,
.bkk-stat-strip p,
.bkk-weather-card p,
.bkk-news-card p,
.bkk-affiliate-card p,
.bkk-landmark-preview p {
  color: rgba(238, 231, 218, 0.66);
}

.bkk-kicker,
.bkk-map-glass .zone,
.bkk-flow-stop span,
.bkk-affiliate-card span,
.bkk-landmark-list span,
.bkk-stat-strip span,
.bkk-mini-note,
.bkk-weather-card span,
.bkk-news-card span {
  color: rgba(238, 231, 218, 0.58);
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: block;
    margin-left: auto;
  }

  .hero-grid,
  .article-shell,
  .dashboard-grid,
  .archive-layout,
  .bkk-hero,
  .bkk-split,
  .bkk-rail-map-wrap,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .article-sidebar,
  .archive-sidebar {
    position: static;
  }

  .archive-grid,
  .bkk-stat-strip,
  .bkk-flow-track,
  .bkk-weather-grid,
  .bkk-news-grid,
  .bkk-landmark-grid,
  .bkk-affiliate-grid,
  .grid3,
  .plan-grid,
  .feature-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .bkk-hero {
    min-height: auto;
  }

  .bkk-phone {
    min-height: 420px;
    transform: none;
  }

  .bkk-flow-track::before {
    top: 38px;
    left: 39px;
    right: auto;
    bottom: 38px;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--bkk-blue), var(--bkk-cyan), var(--bkk-lime), var(--bkk-coral));
    transform-origin: top center;
    animation-name: bkkDrawVerticalLine;
  }

  .bkk-flow-stop {
    text-align: left;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
  }

  .bkk-flow-icon {
    grid-row: span 3;
    margin: 0;
  }

  .bkk-landmark-preview {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .bkk-rail-map {
    min-height: 460px;
  }

  .bkk-metro-line.active,
  .bkk-metro-line:hover {
    transform: translateY(-2px);
  }

  .bkk-stat-strip {
    margin-top: -24px;
  }
}

@media (max-width: 560px) {
  .container,
  .nav-inner,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .premium,
  .newsletter,
  .page-hero,
  .feature-strip {
    border-radius: 24px;
    padding: 24px;
  }

  .inline-form,
  .form-grid,
  .foot-bottom {
    flex-direction: column;
    display: grid;
    grid-template-columns: 1fr;
  }

  .archive-card {
    grid-template-columns: 1fr;
  }

  .archive-card .photo {
    min-height: 190px;
  }

  .bkk-hero {
    padding: 24px 16px 34px;
  }

  .bkk-hero h1 {
    font-size: clamp(3rem, 18vw, 5.4rem);
  }

  .bkk-section,
  .bkk-stat-strip {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bkk-weather,
  .bkk-tdac,
  .bkk-transport-flow,
  .bkk-landmarks,
  .bkk-affiliates {
    border-radius: 28px;
  }

  .bkk-metro-line-top,
  .bkk-section-head {
    align-items: start;
    flex-direction: column;
  }

  .bkk-flow-stop {
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 14px;
  }

  .bkk-flow-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .bkk-flow-icon img {
    width: 32px;
    height: 32px;
  }

  .bkk-landmark-preview figure {
    height: 230px;
  }

  .bkk-affiliate-card {
    min-height: 220px;
  }
}
