:root {
  color-scheme: light;
  --ink: #0a1f33;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --route-blue: #4E679C;
  --route-blue-dim: rgba(0, 99, 175, 0.14);
  --deep-harbor: #00335c;
  --beacon: #e53743;
  --border: rgba(10, 31, 33, 0.12);
  --border-strong: rgba(10, 31, 33, 0.24);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

:lang(th),
[lang="th"] {
  font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, var(--font-body);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--route-blue);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 30;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--deep-harbor);
  color: var(--surface);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--route-blue-dim) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(1);
  animation: glow-breathe 10s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }
}

.ambient-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-line {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.route-line-a {
  stroke: var(--route-blue);
  stroke-width: 2;
  opacity: 0.22;
  stroke-dasharray: 4 14;
  animation: dash-flow 6s linear infinite;
}

.route-line-b {
  stroke: var(--deep-harbor);
  stroke-width: 1.5;
  opacity: 0.16;
  stroke-dasharray: 3 12;
  animation: dash-flow 8s linear infinite reverse;
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -180;
  }
}

.route-dot {
  fill: var(--beacon);
  opacity: 0.85;
}

.site-header {
  position: relative;
  z-index: 10;
  background: transparent;
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-primary {
  color: var(--deep-harbor);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-secondary {
  color: var(--route-blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid var(--route-blue);
  border-radius: 4px;
}

.brand-mark::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 2px;
  background: var(--route-blue);
  content: "";
}

.language-toggle {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  color: var(--route-blue);
  border-color: var(--route-blue);
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  padding: 32px 0 96px;
}

.hero-inner {
  max-width: 720px;
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--route-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: rise-in 700ms ease-out both;
}

h1 {
  max-width: 14ch;
  margin-bottom: 24px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  animation: rise-in 700ms ease-out 80ms both;
}

.lede {
  max-width: 52ch;
  margin-bottom: 36px;
  color: var(--ink);
  font-size: 19px;
  opacity: 0.74;
  animation: rise-in 700ms ease-out 160ms both;
}

.actions {
  animation: rise-in 700ms ease-out 240ms both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button-primary {
  background: var(--route-blue);
  color: var(--surface);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--deep-harbor);
  transform: translateY(-1px);
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  display: inline-flex;
  width: 28px;
  height: 44px;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  opacity: 0.6;
  transform: translateX(-50%);
  transition: opacity 160ms ease, border-color 160ms ease;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  opacity: 1;
  border-color: var(--route-blue);
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--route-blue);
  animation: cue-bounce 1.6s ease-in-out infinite;
}

@keyframes cue-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(10px);
    opacity: 0.4;
  }
}

.contact-section {
  position: relative;
  z-index: 1;
  padding: 96px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.contact-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
}

.contact-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.signal-route {
  fill: none;
  stroke: var(--route-blue);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.35;
}

.signal-ring {
  fill: none;
  stroke: var(--route-blue);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: signal-ping 3s ease-out infinite;
}

.signal-ring-2 {
  animation-delay: 1s;
}

.signal-ring-3 {
  animation-delay: 2s;
}

.signal-node {
  fill: var(--beacon);
}

@keyframes signal-ping {
  0% {
    r: 7;
    opacity: 0.6;
  }

  100% {
    r: 46;
    opacity: 0;
  }
}

.contact-visual-label {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--deep-harbor);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.contact-info h2 {
  margin-bottom: 24px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke: var(--route-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.contact-detail address,
.contact-detail a {
  color: var(--ink);
  font-size: 16px;
  font-style: normal;
  line-height: 1.6;
  text-decoration: none;
}

.contact-detail address {
  display: flex;
  flex-direction: column;
  opacity: 0.78;
}

.contact-detail a:hover,
.contact-detail a:focus-visible {
  color: var(--route-blue);
}

.button-secondary {
  border-color: var(--border-strong);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--route-blue);
  color: var(--route-blue);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  padding: 24px 0;
  text-align: center;
}

.footer-inner p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  opacity: 0.6;
}

@media (max-width: 680px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .hero {
    padding-bottom: 80px;
  }

  h1 {
    max-width: none;
  }

  .contact-section {
    padding: 64px 0;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-visual {
    max-width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .route-dot {
    display: none;
  }

  .signal-ring-2,
  .signal-ring-3 {
    display: none;
  }
}