/* =========================================================
   ASD Interfreight — "route zones" design language
   One continuous blue gradient: port → ocean → customs → road → warehouse
   ========================================================= */
:root {
  --ink: #04142c;
  --white: #fff;
  --text: rgba(255, 255, 255, .86);
  --muted: rgba(255, 255, 255, .62);
  --hair: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .09);
  --glass-2: rgba(255, 255, 255, .14);
  --accent: #5cc8ff;          /* the single bright accent */
  --accent-ink: #04203f;
  --royal: #0a3a9a;

  --serif: "Newsreader", "Noto Serif Thai", Georgia, serif;
  --sans: "IBM Plex Sans Thai", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --brand: "Montserrat", "IBM Plex Sans Thai", sans-serif;

  --ease: cubic-bezier(.22, .8, .24, 1);   /* slow & buoyant */
  --gutter: clamp(16px, 5vw, 64px);
  --nav-h: 38px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: #04142c;
  color: var(--text);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- shared type ---------- */
.eyebrow {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow em { font-style: normal; color: var(--muted); }
.h2 {
  font: 500 clamp(40px, 6.8vw, 88px)/1.08 var(--sans);   /* was: 400 clamp(42px, 7.4vw, 96px)/1.02 var(--serif) */
  letter-spacing: -.025em;
  color: var(--white);
  margin: 0 0 28px;
  font-optical-sizing: auto;
}
.h2 i { font-style: normal; color: #bfe6ff; }   /* was: italic (serif) */
.lead { max-width: 34em; font-size: clamp(15px, 1.6vw, 17px); margin: 0 0 28px; }
.lead strong { color: var(--white); font-weight: 600; }
.meta { font: 400 11px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 18px 0 0; }

/* ---------- buttons ---------- */
.btn {
  --pad: 14px 26px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad);
  border-radius: 28px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .6s var(--ease), background .4s, border-color .4s, opacity .4s, box-shadow .6s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(92, 200, 255, .5); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 10px 34px -8px rgba(92, 200, 255, .65); }
.btn--soft { background: rgba(255, 255, 255, .88); color: var(--royal); }
.btn--soft:hover { background: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .32); color: var(--white); --pad: 11px 22px; font-weight: 500; }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); }
.btn--pill { background: var(--glass-2); border-color: rgba(255, 255, 255, .28); color: var(--white); --pad: 11px 20px; }
.btn--pill svg { fill: currentColor; stroke: none; }
.btn--pill:hover { border-color: rgba(255, 255, 255, .6); }
.btn--lg { --pad: 18px 34px; font-size: 17px; }

/* =========================================================
   NAV — slim, one line, playful chrome on the right
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 22px;
  padding: 0 clamp(12px, 2vw, 22px);
  background: rgba(6, 26, 66, .55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  transition: background .5s;
}
.nav.is-scrolled { background: rgba(4, 20, 44, .78); }
.nav__brand { display: flex; align-items: center; gap: 8px; font: 700 13px/1 var(--brand); letter-spacing: .04em; text-transform: uppercase; color: #fff; text-decoration: none; white-space: nowrap; }
.nav__brand img { width: 22px; height: 22px; border-radius: 50%; }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--text); opacity: .85; transition: opacity .3s; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; color: #fff; }
/* language switch — sliding pill */
.lang { position: relative; flex: none; display: flex; padding: 2px; border: 1px solid var(--hair); border-radius: 20px; background: rgba(255, 255, 255, .06); }
.lang::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); border-radius: 18px; background: var(--accent); transition: transform .5s var(--ease); }
.lang[data-active="en"]::before { transform: translateX(100%); }
.lang button { position: relative; z-index: 1; min-width: 34px; padding: 5px 8px; background: none; border: 0; border-radius: 18px; font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--text); cursor: pointer; transition: color .4s; }
.lang button[aria-pressed="true"] { color: var(--accent-ink); }
.lang button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.nav__burger { display: none; margin-left: auto; width: 34px; height: 30px; background: none; border: 0; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 7px; right: 7px; height: 1.5px; background: #fff; transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger span:first-child { top: 11px; }
.nav__burger span:last-child { top: 18px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 14.5px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 14.5px; transform: rotate(-45deg); }

/* =========================================================
   HERO — company profile cover
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(20px, 4vh, 48px));
  display: flex; flex-direction: column;
  background:
    radial-gradient(60% 50% at 50% 26%, rgba(110, 190, 255, .45), transparent 70%),
    radial-gradient(120% 80% at 50% 0%, #1559d4 0%, #0b3a9e 45%, #072a78 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero__map { position: absolute; left: 50%; top: 4%; width: min(1500px, 128vw); transform: translateX(-50%); z-index: -1; opacity: 0; animation: fadeIn 2.4s var(--ease) .2s forwards; }
.hero__map > img { width: 100%; opacity: .55; }
.hero__routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route { fill: none; stroke: #bfe6ff; stroke-width: 1; stroke-opacity: .7; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3s var(--ease) forwards; }
.route:nth-of-type(2) { animation-delay: .3s } .route:nth-of-type(3) { animation-delay: .5s } .route:nth-of-type(4) { animation-delay: .7s }
.route:nth-of-type(5) { animation-delay: .9s } .route:nth-of-type(6) { animation-delay: 1.1s } .route:nth-of-type(7) { animation-delay: 1.3s } .route:nth-of-type(8) { animation-delay: 1.5s }
.ports circle { fill: #e6f6ff; animation: twinkle 3s ease-in-out infinite alternate; }
.ports circle:nth-child(odd) { animation-delay: 1.2s; }
.packets circle { fill: #fff; filter: drop-shadow(0 0 3px #9fd8ff); }
.hub { fill: #fff; }
.hub-glow { transform-origin: 779px 184px; animation: pulse 2.6s ease-in-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes twinkle { to { opacity: .35; } }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .4; } }
@keyframes fadeIn { to { opacity: 1; } }

.hero__inner { position: relative; text-align: center; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; }
.hero__logo {
  /* explicit width = height: iOS Safari stretches aspect-ratio boxes in a flex column */
  --logo: clamp(104px, min(15vw, 19vh), 200px);
  width: var(--logo); height: var(--logo); flex: none;
  border-radius: 50%;
  padding: 6px;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .18), 0 0 60px 10px rgba(120, 200, 255, .55);
  animation: logoGlow 4s ease-in-out infinite alternate;
  margin-bottom: clamp(14px, 2.4vh, 28px);
}
.hero__logo img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@keyframes logoGlow { to { box-shadow: 0 0 0 10px rgba(255, 255, 255, .1), 0 0 90px 22px rgba(120, 200, 255, .7); } }
.hero__title {
  margin: 0;
  font: 800 clamp(34px, 6.6vw, 86px)/1.02 var(--brand);
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 30, 90, .45);
}
.hero__title small { display: block; font-size: .5em; letter-spacing: .08em; background: linear-gradient(180deg, #fff, #9fd8ff); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: .15em; }
.hero__rule { width: min(560px, 80%); height: 2px; margin: 18px 0 12px; background: linear-gradient(90deg, transparent, #9fd8ff 30%, #fff 50%, #9fd8ff 70%, transparent); position: relative; }
.hero__rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 120px; height: 14px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(180, 230, 255, .9), transparent); animation: sweep 5s ease-in-out infinite; }
@keyframes sweep { 0%, 100% { left: 20%; } 50% { left: 80%; } }
.hero__tag { margin: 0; font: 500 clamp(11px, 1.35vw, 16px)/1.4 var(--brand); letter-spacing: .32em; text-transform: uppercase; color: #e3f3ff; }
.hero__lead { max-width: 36em; margin: clamp(14px, 2.2vh, 22px) 0 clamp(16px, 2.6vh, 26px); color: rgba(255, 255, 255, .9); font-size: clamp(15px, 1.6vw, 17px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero .meta { color: rgba(220, 240, 255, .7); }

/* staged entrance */
[data-hero] { opacity: 0; transform: translateY(18px); animation: rise 1.4s var(--ease) forwards; }
[data-hero="1"] { transform: scale(.85); animation-delay: .1s; }
[data-hero="2"] { animation-delay: .35s } [data-hero="3"] { animation-delay: .5s } [data-hero="4"] { animation-delay: .7s }
[data-hero="5"] { animation-delay: .85s } [data-hero="6"] { animation-delay: 1s } [data-hero="7"] { animation-delay: 1.15s }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__scene { position: relative; margin-top: auto; padding-top: clamp(10px, 2vh, 30px); }
.hero__scene img {
  width: 100%; height: clamp(150px, min(24vw, 30vh), 340px); object-fit: cover; object-position: 50% 60%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 28%);
  transform-origin: 50% 100%;
  animation: sceneIn 2s var(--ease) .6s both;
}
@keyframes sceneIn { from { opacity: 0; transform: scale(1.06); } }
/* tall portrait screens (iPad, phones upright): don't stretch the cover to full height —
   it left a big empty blue gap between the buttons and the port scene */
@media (orientation: portrait) {
  .hero { min-height: 0; }
  .hero__scene { margin-top: clamp(20px, 4vw, 48px); }
  .hero__scene img { height: clamp(180px, 40vw, 460px); }
  .scroll-hint { display: none; }   /* sat on top of the ship photo, unreadable */
}
/* photo cover variant: full-bleed port photo behind the text instead of the dotted map + bottom strip.
   Remove the "hero--photo" class in index.html to go back to the map version. */
.hero--photo {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(6, 30, 90, .82) 0%, rgba(9, 48, 140, .62) 40%, rgba(9, 48, 140, .45) 70%, rgba(7, 42, 120, .7) 100%),
    url(../assets/img/hero-bg.jpg) 50% 100% / cover no-repeat,
    #0b3a9e;
}
.hero--photo .hero__map, .hero--photo .hero__scene img { display: none; }
.hero--photo .hero__inner { margin: auto 0; padding-bottom: clamp(20px, 4vh, 40px); }
.hero--photo .hero__scene { margin-top: 0; padding-top: 0; height: clamp(40px, 6vw, 90px); }
.hero--photo .hero__tag, .hero--photo .hero__lead, .hero--photo .meta { text-shadow: 0 1px 12px rgba(0, 20, 60, .7); }
@media (orientation: portrait) {
  .hero--photo { min-height: 100svh; background-position: 0 0, 72% 100%, 0 0; }
}
.hero__curve { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 90px); }
.hero__curve path:first-child { fill: #1560c0; }
.hero__curve-line { fill: none; stroke: #9fd8ff; stroke-width: 3; opacity: .8; }
.scroll-hint { position: absolute; left: var(--gutter); bottom: clamp(56px, 8vw, 110px); z-index: 2; display: flex; align-items: center; gap: 12px; font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #fff; text-decoration: none; text-shadow: 0 1px 8px rgba(0, 20, 60, .8); }
.scroll-hint i { width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 5px; width: 2px; height: 6px; margin-left: -1px; background: currentColor; border-radius: 2px; animation: wheel 2.4s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* =========================================================
   OCEAN — the continuous gradient (depth = darkness)
   ========================================================= */
.ocean {
  position: relative;
  background: linear-gradient(180deg,
    #1560c0 0%, #1a6bcb 6%, #1764c2 14%, #145aaf 24%, #114c9a 34%,
    #0d3f84 44%, #0a326c 54%, #082a5c 64%, #072350 74%, #061c41 86%, #04142c 100%);
  overflow: hidden;
}

.zone { position: relative; padding: clamp(80px, 11vw, 150px) 0 clamp(40px, 5vw, 70px); }
#about { padding-top: clamp(60px, 8vw, 110px); }
.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: 1240px; }

.pillars { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--hair); max-width: 760px; }
.pillars li { flex: 1 1 25%; min-width: 140px; padding: 18px 0; font: 500 12px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; }
.pillars li + li { padding-left: 20px; border-left: 1px solid var(--hair); }
.pillars b { color: #fff; font-weight: 500; }

.bullets { list-style: none; padding: 0; margin: 0 0 40px; max-width: 34em; display: grid; gap: 16px; }
.bullets li { position: relative; padding-left: 26px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1.5px; background: var(--accent); }
.bullets b { color: #fff; font-weight: 600; }

/* glass field-note */
.note {
  margin: 0; max-width: 470px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.note figcaption { font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.note p { margin: 0; font: 400 16px/1.7 var(--sans); color: var(--text); }

/* illustrations sit directly on the gradient */
.scene {
  width: 100%; height: clamp(240px, 34vw, 520px); object-fit: cover; object-position: 50% 100%; margin-top: clamp(30px, 5vw, 60px);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.scene--strip {
  height: clamp(110px, 15vw, 220px); margin: 40px 0 60px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}
.scene--dim { opacity: .95; }
.scene--photo {
  height: clamp(280px, 42vw, 640px);
  object-position: 50% 62%;
  /* soft top edge too, so the photo melts into the section instead of a hard line */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 72%, transparent);
}
.scene--sea { object-position: 60% 52%; }
.scene--truck { object-position: 55% 58%; margin-bottom: clamp(30px, 5vw, 60px); }

/* customs demo */
.clearance { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 44px; }
.clearance li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 22px; border: 1px solid var(--hair); font-size: 14px; color: var(--muted); transition: all .6s var(--ease); }
.clearance li span { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; transition: all .5s var(--ease); }
.clearance li.is-done { color: #fff; border-color: rgba(92, 200, 255, .6); background: rgba(92, 200, 255, .12); }
.clearance li.is-done span { background: var(--accent); border-color: var(--accent); }
.clearance li.is-done span::after { content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px; border: solid var(--accent-ink); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.clearance__stamp { font: 700 15px/1 var(--mono) !important; letter-spacing: .2em; color: #6ee7a8 !important; border: 2px solid #6ee7a8 !important; border-radius: 8px !important; opacity: 0; transform: scale(1.8) rotate(-12deg); }
.clearance__stamp.is-done { opacity: 1; transform: scale(1) rotate(-6deg); background: rgba(110, 231, 168, .1) !important; }

/* 3+1 dot grid */
.dots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 40px; max-width: 980px; }
.dots li { position: relative; padding-left: 22px; font-size: 15px; }
.dots li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent); }
.dots li:last-child { grid-column: 2 / span 2; }
.dots b { display: block; color: #fff; font-weight: 600; }

/* window frame (screenshot moment) */
.window {
  background: #f4f7fb; color: #0b2347;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 40px 80px -30px rgba(0, 10, 40, .6);
  margin-bottom: 34px;
}
.window__bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; background: #e6edf6; border-bottom: 1px solid #d3deeb; }
.lights { display: flex; gap: 7px; flex: none; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.window__title { font: 600 13px/1 var(--sans); color: #34507a; }
.window__tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.window__tabs button { background: none; border: 0; padding: 7px 14px; border-radius: 8px; font-size: 13px; color: #4a6283; cursor: pointer; white-space: nowrap; transition: background .4s, color .4s; }
.window__tabs button[aria-selected="true"] { background: #fff; color: #0b3a9a; font-weight: 600; box-shadow: 0 1px 2px rgba(10, 40, 90, .12); }
.window__body { position: relative; padding: 14px; aspect-ratio: 16 / 7.4; }
.shots { position: absolute; inset: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease), visibility 0s .8s; }
.shots--3 { grid-template-columns: 1.3fr 1fr 1fr; }
.shots.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.shots img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; cursor: zoom-in; transition: transform 1.2s var(--ease), filter .6s; }
.shots img:hover { transform: scale(1.02); filter: brightness(1.05); }
.window__status { display: flex; gap: 22px; padding: 8px 16px; background: #e6edf6; border-top: 1px solid #d3deeb; font: 500 11px/1.4 var(--mono); color: #4a6283; letter-spacing: .04em; }
.window__status span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.window__status span:last-child { margin-left: auto; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #28c840; animation: twinkle 1.6s ease-in-out infinite alternate; }

.zone--deep { padding-bottom: 0; }
.zone--deep .wrap { min-height: 28vh; }

/* trust cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 46px; }
.card { padding: 26px 24px 24px; border-radius: 16px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .6s, background .6s, transform .8s var(--ease); }
.card:hover { border-color: rgba(255, 255, 255, .34); background: var(--glass-2); transform: translateY(-3px); }
.card svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.card h3 { margin: 0 0 8px; font: 600 17px/1.35 var(--sans); color: #fff; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* honest checklist */
.tilde { list-style: none; padding: 0; margin: 20px 0 0; max-width: 820px; }
.tilde li { position: relative; padding: 20px 0 20px 34px; border-top: 1px solid var(--hair); }
.tilde li:last-child { border-bottom: 1px solid var(--hair); }
.tilde li::before { content: "~"; position: absolute; left: 4px; top: 16px; font: 400 24px/1 var(--serif); color: var(--accent); }
.tilde b { color: #fff; font-weight: 600; margin-right: 6px; }
.zone a:not(.btn) { color: #bfe6ff; text-decoration: underline; text-decoration-color: rgba(191, 230, 255, .45); text-underline-offset: 4px; transition: text-decoration-color .3s; }
.zone a:not(.btn):hover { text-decoration-color: #bfe6ff; }

/* steps */
.steps { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.steps__art { width: 100%; max-width: 520px; justify-self: center; aspect-ratio: 4 / 5; }
.numbered { list-style: none; counter-reset: s; padding: 0; margin: 10px 0 0; display: grid; gap: 24px; }
.numbered li { counter-increment: s; position: relative; padding-left: 60px; min-height: 40px; }
.numbered li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font: 500 17px/1 var(--sans); }   /* was: 500 18px/1 var(--serif) */
.numbered b { display: block; color: #fff; font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 40px; }
.faq__item { border-radius: 22px; background: rgba(2, 14, 36, .35); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .5s, background .5s; }
.faq__item.is-open { border-color: rgba(255, 255, 255, .24); background: rgba(2, 14, 36, .5); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; background: none; border: 0; text-align: left; font: 500 clamp(16px, 1.8vw, 19px)/1.4 var(--sans); color: #fff; cursor: pointer; }
.faq__q i { flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg) translate(-3px, -3px); transition: transform .7s var(--ease); }
.faq__item.is-open .faq__q i { transform: rotate(-135deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 28px 24px; max-width: 46em; color: var(--muted); }

/* contact — address, phones, emails in one ordered list */
.contact { list-style: none; padding: 0; margin: 44px 0 0; max-width: 900px; border-top: 1px solid var(--hair); }
.contact li { display: grid; grid-template-columns: 46px minmax(110px, 180px) 1fr; gap: 6px 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--hair); }
.contact svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: #fff; stroke: var(--royal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact h3 { margin: 13px 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.contact__v { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 9px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; color: #fff; overflow-wrap: anywhere; }
.zone .contact__v a { color: #fff; text-decoration: none; transition: color .3s; }
.zone .contact__v a:hover { color: var(--accent); }

/* footer */
.footer { position: relative; padding: 30px var(--gutter) 34px; text-align: center; }
.back-top { display: inline-block; margin-bottom: 30px; font: 500 11px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .3s; }
.back-top:hover { color: #fff; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--muted); text-align: left; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 30px; background: rgba(2, 10, 26, .9); backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-height: 88vh; border-radius: 10px; transform: scale(.96); transition: transform .6s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: none; font-size: 26px; line-height: 1; cursor: pointer; }

/* scroll reveal — slow and buoyant */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Thai typography — tracking breaks Thai vowel/tone marks; give small labels room */
/* English: the whole page in Montserrat (Thai keeps IBM Plex Sans Thai) */
html:lang(en) {
  --sans: "Montserrat", system-ui, sans-serif;
  --serif: "Montserrat", system-ui, sans-serif;
  --mono: "Montserrat", system-ui, sans-serif;
}
html:lang(en) .h2 { font-weight: 700; letter-spacing: -.02em; }
html:lang(th) .eyebrow { font-family: var(--sans); font-size: 13px; letter-spacing: .02em; }
html:lang(th) .meta, html:lang(th) .pillars li, html:lang(th) .note figcaption { font-family: var(--sans); letter-spacing: .02em; }
html:lang(th) .meta { font-size: 13px; }
html:lang(th) .pillars li { font-size: 15px; }
html:lang(th) .note figcaption { font-size: 13px; }
html:lang(th) .hero__tag { font-family: var(--sans); font-weight: 600; letter-spacing: .06em; font-size: clamp(14px, 1.6vw, 19px); }
html:lang(th) .clearance__stamp { font-family: var(--sans) !important; letter-spacing: .02em; }
html:lang(th) .window__status { font-family: var(--sans); letter-spacing: 0; }
html:lang(th) .back-top, html:lang(th) .scroll-hint span { font-family: var(--sans); font-size: 13px; letter-spacing: .02em; }
html:lang(th) .h2 i { font-style: normal; }
html:lang(th) .contact h3 { font-family: var(--sans); font-size: 14px; letter-spacing: .02em; }
html:lang(th) .h2 { letter-spacing: 0; line-height: 1.32; font-size: clamp(36px, 6vw, 84px); padding-top: .08em; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(4, 20, 44, .96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--hair);
    transform: translateY(-110%); opacity: 0; visibility: hidden;
    transition: transform .6s var(--ease), opacity .4s, visibility 0s .6s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 16px; }
  .nav__burger { display: block; margin-left: 0; }
  .lang { margin-left: auto; }
  .dots { grid-template-columns: 1fr 1fr; }
  .dots li:last-child { grid-column: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .window__body { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; }
  .steps__art { max-width: 400px; }
}
@media (max-width: 600px) {
  :root { --nav-h: 48px; }
  .nav { gap: 10px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .scroll-hint { display: none; }
  .dots, .cards { grid-template-columns: 1fr; }
  .pillars li { flex-basis: 50%; }
  .pillars li:nth-child(3) { padding-left: 0; border-left: 0; }
  .window__body { aspect-ratio: auto; padding: 10px; }
  .shots { position: static; display: none; grid-template-columns: 1fr; gap: 10px; transform: none; }
  .shots.is-active { display: grid; }
  .shots img { aspect-ratio: 4 / 3; height: auto; }
  .hide-sm { display: none; }
  .faq__q { padding: 20px 22px; }
  .contact li { grid-template-columns: 40px 1fr; gap: 4px 16px; }
  .contact svg { width: 40px; height: 40px; padding: 10px; grid-row: span 2; }
  .contact h3 { margin-top: 8px; }
  .contact__v { grid-column: 2; padding-top: 0; }
  .faq__a p { padding: 0 22px 20px; }
  .footer__row { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-hero] { opacity: 1; transform: none; }
}
