/* ACTIVE X / Earth Journey
   All selectors are scoped to ax-journey. Safe to merge with the latest site.
   Change --ax-width to keep the hero aligned with the site's content width. */
.ax-journey {
  --ax-width: var(--site-width, 1280px);
  --ax-gutter: var(--gutter, 56px);
  --ax-navy: #05111b;
  --ax-ivory: #f3f0e9;
  --ax-blue: #b3d9f1;
  --ax-copy-top: clamp(64px, 10svh, 112px);
  --ax-controls-bottom: 28px;
  position: relative;
  background: var(--ax-navy);
  color: var(--ax-ivory);
}
.ax-journey *, .ax-journey *::before, .ax-journey *::after { box-sizing: border-box; }
.ax-journey.is-enhanced { height: 440vh; height: 440svh; }
.ax-journey__sticky { position: relative; height: auto; }
.is-enhanced .ax-journey__sticky { position: sticky; top: min(0px, calc(100svh - var(--ax-canvas-height, 100svh))); height: max(100svh, var(--ax-canvas-height, 100svh)); }
.ax-journey__frame { height: 100%; min-height: var(--ax-canvas-height, min(850px, 100svh)); max-width: var(--ax-width); margin-inline: auto; position: relative; isolation: isolate; overflow: hidden; background: var(--ax-navy); display: flex; flex-direction: column; gap: 24px; padding: var(--ax-copy-top) var(--ax-gutter) var(--ax-controls-bottom); }
.ax-journey__art { position: absolute; inset: 0; z-index: -4; overflow: hidden; }
.ax-journey__plate { position: absolute; inset: -1px; opacity: 0; transform-origin: 65% 50%; }
.ax-journey__plate:first-child { opacity: 1; }
.ax-journey__plate img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 65% 50%; }
.ax-journey.is-in-view .ax-journey__plate { will-change: transform, opacity; }
.ax-journey__shade { position: absolute; inset: 0; pointer-events: none; z-index: -2; background: linear-gradient(90deg, #05111bd9 0%, #05111b87 31%, #05111b20 59%, transparent 77%), linear-gradient(0deg, #05111b 0%, #05111b80 7%, transparent 28%, transparent 90%, #05111b30 100%); }
.ax-journey__hands { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; pointer-events: none; z-index: -1; opacity: .88; transform-origin: 50% 100%; }
.ax-journey__copy { position: relative; z-index: 2; flex: 0 0 auto; }
.ax-journey__chapter { display: none; max-width: 700px; min-height: var(--ax-chapter-height, 0px); }
.ax-journey__chapter.is-current { display: block; }
.ax-journey__chapter .eyebrow { color: var(--ax-blue); font-size: 16px; letter-spacing: .07em; line-height: 1.55; margin: 0 0 22px; }
.ax-journey h1, .ax-journey h2 { color: var(--ax-ivory); margin: 0; font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: clamp(60px, 6.05vw, 76px); line-height: 1.08; letter-spacing: -.035em; overflow-wrap: break-word; }
.ax-journey h1 span, .ax-journey h1 em { display: block; }
.ax-journey h1 em { font-family: Georgia, 'Times New Roman', serif; font-size: .96em; font-weight: 400; letter-spacing: -.06em; }
.ax-journey h2 { white-space: pre-line; }
.ax-journey__description { color: #c2d0da; font: 17px/1.75 var(--sans, Arial, sans-serif); max-width: 430px; margin: 22px 0 0; }
.ax-journey__explore { margin-top: 24px; min-height: 48px; font-size: 16px; }
.ax-journey__controls { position: relative; z-index: 3; margin-top: auto; flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.ax-journey__navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.ax-journey__scroll { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; letter-spacing: .025em; color: #cfdfeb; }
.ax-journey__scroll > span:first-child { font: 26px/1 Georgia, serif; }
.ax-journey__motion { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 10px 15px; border: 1px solid #aec9db55; border-radius: 30px; background: #06141c99; backdrop-filter: blur(8px); color: #d3e3ee; font: 16px/1.3 var(--sans, Arial, sans-serif); cursor: pointer; white-space: nowrap; }
.is-enhanced .ax-journey__motion { display: inline-flex; }
.ax-journey__motion:hover { border-color: #bcdeedaa; }
.ax-journey__track { position: absolute; bottom: 0; left: var(--ax-gutter); right: var(--ax-gutter); height: 1px; background: #adcddd27; }
.ax-journey__track > span { display: block; width: 100%; height: 1px; background: #bbdef6; transform: scaleX(0); transform-origin: 0 50%; }
.ax-journey a:focus-visible, .ax-journey button:focus-visible { outline: 2px solid #b7e6ff; outline-offset: 5px; }
html[lang='th'] .ax-journey h2 { font-family: var(--sans, Tahoma, sans-serif); font-size: clamp(46px, 5.1vw, 64px); line-height: 1.28; letter-spacing: -.025em; }
html[lang='th'] .ax-journey .eyebrow { font-size: 16px; letter-spacing: .015em; }
@media (min-width: 1281px) {
  .ax-journey__frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; box-shadow: inset 45px 0 50px -35px #05111b, inset -45px 0 50px -35px #05111b; }
}
@media (max-width: 1099px) {
  .ax-journey { --ax-gutter: var(--gutter, 38px); }
  .ax-journey h1, .ax-journey h2 { font-size: clamp(58px, 6.4vw, 70px); }
  .ax-journey__description { font-size: 16px; max-width: 400px; }
  .ax-journey__navigation { gap: 14px; }
}
@media (max-width: 849px) {
  .ax-journey { --ax-copy-top: 56px; }
  .ax-journey h1, .ax-journey h2 { font-size: 58px; }
  .ax-journey__description { max-width: 390px; }
  .ax-journey__shade { background: linear-gradient(90deg, #05111bea, #05111b85 40%, #05111b20 70%, transparent), linear-gradient(0deg, #05111b, transparent 25%); }
  .ax-journey__navigation { gap: 12px; }
}
@media (max-width: 599px) {
  .ax-journey { --ax-gutter: var(--gutter, 22px); --ax-copy-top: 36px; --ax-controls-bottom: 18px; }
  .ax-journey.is-enhanced { height: 420vh; height: 420svh; }
  .ax-journey__art { inset: 28% -37% 0 -63%; }
  .ax-journey__plate { transform-origin: 65% 50%; }
  .ax-journey__plate img { object-position: 65% 50%; }
  .ax-journey__hands { inset: auto 0 38px; width: 100%; height: auto; object-fit: contain; opacity: .78; }
  .ax-journey__shade { background: linear-gradient(#05111b 0%, #05111bf2 28%, #05111bad 45%, #05111b18 64%, transparent 78%, #05111be6 100%); }
  .ax-journey__frame { gap: 18px; }
  .ax-journey__chapter .eyebrow { font-size: 16px; letter-spacing: .02em; line-height: 1.5; margin-bottom: 16px; }
  .ax-journey h1, .ax-journey h2 { font-size: clamp(42px, 11.4vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
  .ax-journey h1 em { font-size: .9em; white-space: normal; }
  .ax-journey__description { font-size: 16px; line-height: 1.65; margin-top: 18px; max-width: 400px; }
  .ax-journey__explore { margin-top: 20px; font-size: 16px; min-height: 48px; padding: 11px 19px; gap: 18px; }
  .ax-journey__controls { gap: 8px; }
  .ax-journey__navigation { gap: 0; }
  .ax-journey__motion { padding: 10px 12px; gap: 8px; }
  html[lang='th'] .ax-journey h2 { font-size: clamp(38px, 10vw, 46px); line-height: 1.3; }
  html[lang='th'] .ax-journey .eyebrow { font-size: 16px; letter-spacing: 0; }
}
@media (max-height: 720px) and (min-width: 600px) {
  .ax-journey { --ax-copy-top: 36px; --ax-controls-bottom: 18px; }
  .ax-journey__chapter .eyebrow { margin-bottom: 18px; }
  .ax-journey h1, .ax-journey h2 { font-size: 58px; }
  .ax-journey__description { margin-top: 18px; font-size: 16px; max-width: 490px; }
  .ax-journey__explore { margin-top: 20px; }
}
@media (max-height: 530px) and (orientation: landscape) {
  .ax-journey { --ax-copy-top: 16px; --ax-controls-bottom: 12px; }
  .ax-journey__frame { gap: 12px; }
  .ax-journey__chapter { max-width: 100%; }
  .ax-journey__chapter .eyebrow { margin-bottom: 10px; font-size: 16px; line-height: 1.4; }
  .ax-journey h1, .ax-journey h2 { font-size: 42px; }
  .ax-journey__description { font-size: 16px; max-width: 680px; line-height: 1.55; margin-top: 12px; }
  .ax-journey__explore { margin-top: 12px; min-height: 44px; font-size: 16px; padding: 9px 18px; }
  .ax-journey__controls { gap: 8px; }
  html[lang='th'] .ax-journey h2 { font-size: 36px; }
}
@media (max-height: 690px) and (max-width: 599px) {
  .ax-journey { --ax-copy-top: 24px; }
  .ax-journey__chapter .eyebrow { margin-bottom: 12px; }
  .ax-journey h1, .ax-journey h2 { font-size: 42px; }
  .ax-journey__description { font-size: 16px; line-height: 1.65; margin-top: 16px; }
  .ax-journey__explore { margin-top: 16px; }
}
@media (max-width: 359px) {
  .ax-journey h1, .ax-journey h2 { font-size: 42px; }
  .ax-journey__controls { justify-content: flex-start; }
  .ax-journey__motion { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ax-journey.is-enhanced { height: auto; }
  .ax-journey__sticky, .is-enhanced .ax-journey__sticky { position: relative; top: auto; height: auto; }
  .ax-journey__plate, .ax-journey__hands { transform: none !important; transition: none !important; animation: none !important; }
  .ax-journey__motion { display: none !important; }
}
