:root {
  --ink: #0f2740;
  --muted: #4a6680;
  --bg: #e8f1f8;
  --bg-soft: #d9e8f4;
  --white: #f4f9fc;
  --line: rgba(15, 39, 64, 0.14);
  --accent: #2b6cb0;
  --accent-deep: #1e4e8c;
  --accent-bar: #7db4e8;
  --on-accent: #f4f9fc;
  --font: 'Anuphan', sans-serif;
  --heading: 'Kanit', 'Anuphan', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 980px;
  --demo-h: 48px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  font-synthesis: none;
  background:
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(125, 180, 232, 0.35), transparent 55%),
    radial-gradient(ellipse 40% 30% at 0% 40%, rgba(43, 108, 176, 0.08), transparent 50%),
    linear-gradient(180deg, #edf4fa, var(--bg));
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; font-size: 16px; }
ul, ol { list-style: none; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.demo-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; padding: 0.55rem 1.25rem;
  background: #0a1a2c; color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--accent-bar); font-weight: 500;
}
.demo-bar__actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.demo-bar a {
  padding: 0.35rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius); font-size: 0.78rem; font-weight: 500;
}
.demo-bar a.is-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.site-header {
  position: sticky; top: var(--demo-h); z-index: 50;
  background: rgba(232, 241, 248, 0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); position: relative;
}
.brand {
  font-family: var(--heading); font-weight: 700; font-size: 1.25rem;
  display: inline-flex; align-items: baseline; gap: 0.45rem;
}
.brand small {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-deep); font-weight: 500;
}
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  padding: 0.45rem 0.8rem; cursor: pointer; border-radius: var(--radius); color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 1.15rem; }
.nav a { font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.nav-cta {
  background: var(--accent); color: var(--on-accent) !important;
  padding: 0.55rem 1.05rem; border-radius: var(--radius); font-weight: 700;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.4rem; font-weight: 700; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: transparent; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero {
  position: relative; min-height: min(90dvh, 820px);
  display: flex; align-items: flex-end; color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: ken 22s var(--ease) both;
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(8, 24, 42, 0.92) 0%, rgba(8, 24, 42, 0.55) 50%, rgba(8, 24, 42, 0.3) 100%);
}
.hero__ring {
  position: absolute; z-index: 1; right: 8%; top: 18%;
  width: min(42vw, 320px); aspect-ratio: 1;
  border: 2px dashed rgba(125, 180, 232, 0.45); border-radius: 50%;
  animation: spinSlow 28s linear infinite; pointer-events: none;
}
.hero__ring::after {
  content: ''; position: absolute; inset: 18%;
  border: 1px solid rgba(125, 180, 232, 0.3); border-radius: 50%;
}
.hero__inner {
  position: relative; z-index: 2; padding: 5rem 0 3.5rem; max-width: 36rem;
  margin-left: max(calc((100% - var(--max)) / 2), 1.25rem);
  width: min(100% - 2.5rem, 36rem);
  animation: rise 0.9s var(--ease) both;
}
.hero__brand {
  font-family: var(--heading); font-size: 1.2rem; font-weight: 700;
  margin-bottom: 1rem; display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap;
}
.hero__brand span {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-bar);
}
.hero h1 {
  font-family: var(--heading); font-size: clamp(2.15rem, 5vw, 3.35rem);
  line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 0.9rem;
}
.hero h1 em {
  display: block; font-style: normal; color: var(--accent-bar);
  font-size: 0.72em; margin-top: 0.25rem;
}
.hero__lead { color: rgba(255, 255, 255, 0.88); margin-bottom: 1.5rem; }

@keyframes ken { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section--accent { background: #0f2740; color: #fff; }
.section__head { margin-bottom: 2rem; max-width: 40rem; }
.section__head h2 {
  font-family: var(--heading); font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.section__head p { color: var(--muted); }
.eyebrow {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.5rem;
}
.eyebrow.light { color: var(--accent-bar); }

/* DESK CIRCUIT — stations around a loop */
.circuit {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 1rem 0 2rem;
}
.circuit__path {
  position: absolute;
  inset: 8% 10%;
  color: var(--accent);
  opacity: 0.45;
  pointer-events: none;
  animation: pathPulse 6s ease-in-out infinite;
}
.circuit__hub {
  position: relative; z-index: 2;
  width: min(100%, 220px); text-align: center;
  background: var(--white); border: 2px solid var(--accent);
  border-radius: 50%; aspect-ratio: 1;
  display: grid; place-content: center; gap: 0.35rem;
  padding: 1.5rem; box-shadow: 0 0 0 10px rgba(43, 108, 176, 0.08);
}
.circuit__hub-label {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-deep);
}
.circuit__hub strong { font-family: var(--heading); font-size: 1.2rem; }
.circuit__hub p { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }

.station {
  position: absolute; z-index: 3;
  width: min(42%, 210px);
  background: var(--white); border: 1px solid var(--line);
  padding: 0.75rem; border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(15, 39, 64, 0.08);
  transition: transform 0.25s var(--ease), border-color 0.2s;
}
.station:hover { transform: scale(1.03); border-color: var(--accent); }
.station__num {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em;
  color: var(--accent-deep); display: block; margin-bottom: 0.25rem;
}
.station h3 { font-family: var(--heading); font-size: 1.05rem; margin-bottom: 0.2rem; }
.station p { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.55rem; line-height: 1.35; }
.station img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 2px;
}

.station--1 { top: 0; left: 50%; transform: translateX(-50%); }
.station--2 { top: 22%; right: 0; }
.station--3 { bottom: 6%; right: 12%; }
.station--4 { bottom: 6%; left: 12%; }
.station--5 { top: 22%; left: 0; }

@keyframes pathPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.6; }
}

.lanes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 2px solid var(--ink);
}
.lane {
  display: grid;
  grid-template-columns: 9rem 1.1fr 1.4fr auto;
  gap: 1rem; align-items: center;
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s, padding-left 0.25s var(--ease);
}
.lane:hover { background: rgba(255, 255, 255, 0.55); padding-left: 0.5rem; }
.lane__tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-deep);
}
.lane strong { font-family: var(--heading); font-size: 1.1rem; }
.lane p { color: var(--muted); font-size: 0.92rem; }
.lane em {
  font-style: normal; font-family: var(--heading); font-weight: 700;
  color: var(--accent-deep); white-space: nowrap;
}

.studio {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}
.studio__wide { grid-row: span 2; }
.studio figure {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  position: relative;
}
.studio img {
  width: 100%; height: 100%; object-fit: cover; min-height: 180px;
  transition: transform 0.55s var(--ease);
}
.studio__wide img { min-height: 100%; aspect-ratio: 4/5; }
.studio figure:hover img { transform: scale(1.04); }
.studio figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.65rem 0.85rem; font-size: 0.85rem;
  background: linear-gradient(transparent, rgba(8, 24, 42, 0.85));
  color: #fff;
}


.book { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; }
.book h2 {
  font-family: var(--heading); font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff; margin: 0.4rem 0 0.7rem;
}
.form {
  background: var(--white); color: var(--ink); padding: 1.6rem;
  border-radius: var(--radius); display: grid; gap: 0.9rem;
}
.field { display: grid; gap: 0.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  padding: 0.75rem 0.9rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: #eef5fb;
}

.site-footer { background: #0a1a2c; color: rgba(255, 255, 255, 0.75); padding: 1.75rem 0; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-footer .brand { color: #fff; }

.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

.voice-path {
  list-style: none;
  margin: 0 auto;
  max-width: 42rem;
  width: 100%;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}
#voices .section__head,
#voices header.section__head {
  max-width: 42rem;
  width: 100%;
  margin-inline: auto;
}

.voice-path::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 1px;
  background: var(--line);
}
.voice-path__step {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.85rem 1.25rem;
  align-items: start;
  padding: 1.15rem 0;
  position: relative;
}
.voice-path__mark {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 0.2rem;
  background: var(--bg, transparent);
  position: relative;
  z-index: 1;
}
.voice-path__step p {
  font-family: var(--heading);
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0 0 0.55rem;
}
.voice-path__step cite {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .voice-path::before { left: 0.7rem; }
  .voice-path__step { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.65rem 1rem; }

  .circuit { min-height: 0; display: flex; flex-direction: column; gap: 0.85rem; }
  .circuit__path, .circuit__hub { display: none; }
  .station {
    position: static; width: 100%;
    display: grid; grid-template-columns: 1fr 120px; gap: 0.75rem; align-items: center;
  }
  .station img { aspect-ratio: 1; }
  .station--1, .station--2, .station--3, .station--4, .station--5 { transform: none; }
  .lane { grid-template-columns: 1fr; gap: 0.3rem; }
  .studio { grid-template-columns: 1fr; }
  .studio__wide { grid-row: auto; }
  .studio__wide img { aspect-ratio: 16/10; min-height: 0; }
  .book { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__ring { opacity: 0.35; width: 180px; top: 12%; right: -20px; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img, .hero__inner, .hero__ring, .circuit__path { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
