:root {
  --ink-muted: rgb(110, 110, 110);
  --line-muted: rgb(150, 150, 150);
  --bg: rgb(215, 213, 212);
  --ink: rgb(0, 0, 0);
  --paper: rgb(246, 246, 246);
  --paper-dim: rgba(246, 246, 246, 0.35);
  --dark: rgb(24, 24, 24);
  --accent: rgb(236, 83, 38);
  --accent-hover: rgb(214, 70, 28);
  --font: Jost, Prompt, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html, body { margin: 0; padding: 0; background: var(--bg); }
body { font-family: var(--font); color: var(--ink); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink); }

.upper { text-transform: uppercase; }
.t16 { font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 100%; }

/* Scroll track: height is set in JS (100vh + 12 × scrollPerState) */
.track { position: relative; height: 1300vh; background: var(--bg); }
.viewport {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.stage {
  position: relative; flex: none; width: 1440px; height: 1024px;
  clip-path: inset(0 -3000px 0 -3000px);
  background: var(--bg);
  transform-origin: center center;
}

.layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.slide { transform: translateY(1024px); will-change: transform, opacity; }
.img { position: absolute; background: center / cover no-repeat; }
.fullbleed { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.detail-a { left: 401px; top: 335.25px; width: 313.5px; height: 313.5px; }
.detail-b { left: 724.5px; top: 335.25px; width: 313.5px; height: 313.5px; }
.control-img { left: 440px; top: 162px; width: 560px; height: 700px; }
.kit-img { left: 144px; top: 128px; width: 1152px; height: 768px; }

/* 00 hero */
.hero-img {
  position: absolute; left: 186px; top: 211px; width: 1068px; height: 601.069px;
  background: url('assets/hero.webp') center / cover no-repeat;
  will-change: transform, opacity;
}
#g0 { will-change: opacity; }
.hero-tagline { position: absolute; left: 0; top: 940px; width: 100%; text-align: center; }
.hero-center { position: absolute; left: 0; top: 505px; width: 100%; text-align: center; white-space: nowrap; color: var(--paper); }
.hero-right { position: absolute; left: 1271px; top: 505px; white-space: nowrap; }

/* 01–03 jacket */
.jacket {
  position: absolute; left: 463px; top: 48px; width: 515px; height: 929px;
  transform: translateY(976px); will-change: transform, opacity;
}
/* Frames are drawn onto the canvas; the <video> is only a decoder */
.jacket canvas {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: auto; height: 929px; pointer-events: none;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.jacket video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* 10 tagline */
.tagline {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 100%;
  text-align: center; font-weight: 300; font-size: 64px; line-height: 100%; text-transform: uppercase;
}
.scroll-hint {
  position: absolute; left: 0; bottom: 40px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.scroll-line { width: 1px; height: 48px; background: var(--ink); }

/* 07–09 specs */
.specs { background: var(--dark); will-change: transform; }
.spec-img { background: var(--dark) center / cover no-repeat; opacity: 0; transition: opacity .5s ease; }
.spec-labels {
  position: absolute; left: 60px; top: 420px; width: 396px;
  display: flex; flex-direction: column; gap: 46px; align-items: flex-end; text-align: right;
}
.spec-labels span {
  font-weight: 600; font-size: 20px; letter-spacing: .06em; line-height: 100%;
  color: var(--paper-dim); text-transform: uppercase; transition: color .35s ease;
}
.spec-labels span.active { color: var(--paper); }
.spec-text {
  position: absolute; left: 656px; top: 475px; width: 550px;
  font-weight: 300; font-size: 16px; line-height: 150%; color: var(--paper);
}

/* 11 pre-launch */
.prelaunch { background: #000; }
.prelaunch-bg { background: #000 url('assets/prelaunch.jpg') center / cover no-repeat; }
.spot { pointer-events: none; background: radial-gradient(circle 420px at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%); }
.prelaunch-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.prelaunch-title { font-weight: 400; font-size: 44px; line-height: 110%; color: var(--paper); }
.prelaunch-date { margin-top: 22px; color: var(--paper); }
.btn-primary {
  margin-top: 34px; display: flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 16px; box-sizing: border-box; background: var(--accent);
  font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 100%; color: var(--paper);
  border: 0; cursor: pointer; transition: background .2s ease;
}
.btn-primary:hover { background: var(--accent-hover); color: var(--paper); }

/* 12 footer */
.footer { background: var(--bg); will-change: transform; }
.footer, .footer a, .footer span, .footer input, .footer button { font-family: var(--font); font-size: 16px; }
.footer a, .footer span { font-weight: 400; }
.footer-logo { position: absolute; left: 60px; top: 120px; display: block; height: 96px; width: auto; }
.footer-cols { position: absolute; left: 60px; top: 380px; display: flex; gap: 120px; }
.col { display: flex; flex-direction: column; gap: 16px; }
.footer .col-title { font-weight: 600; text-transform: uppercase; }
.newsletter { position: absolute; left: 900px; top: 380px; width: 480px; display: flex; flex-direction: column; gap: 16px; margin: 0; }
.nl-row { display: flex; }
.nl-row input, .nl-row button { font-family: var(--font); font-size: 16px; }
.nl-row input:not([type="hidden"]) {
  flex: 1 1 auto; height: 48px; border: 1px solid var(--ink); border-right: none; border-radius: 0;
  background: transparent; padding: 0 16px; font-weight: 400; color: var(--ink); outline: none; box-sizing: border-box;
}
.nl-row input::placeholder { color: rgba(0,0,0,.55); }
.nl-row button {
  flex: none; height: 48px; padding: 0 24px; background: var(--ink); border: 1px solid var(--ink); border-radius: 0;
  font-weight: 400; color: var(--paper); text-transform: uppercase; cursor: pointer;
}
.footer .nl-note { font-weight: 300; }
.footer-bottom {
  position: absolute; left: 60px; bottom: 40px; width: 1320px; box-sizing: border-box;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--ink); padding-top: 24px;
}

/* persistent chrome */
.label-wrap { position: absolute; left: 60px; top: 505px; display: flex; flex-direction: column; gap: 12px; }
.section-label { height: 23px; font-weight: 600; font-size: 16px; white-space: nowrap; line-height: 100%; }
.right-a { position: absolute; left: 1165px; top: 505px; white-space: nowrap; opacity: 0; }
.right-b { position: absolute; right: 60px; top: 505px; white-space: nowrap; opacity: 0; }
.lorem {
  position: absolute; left: 432px; top: 915px; width: 576px; text-align: center;
  font-weight: 300; font-size: 16px; line-height: 100%; opacity: 0;
}

.hdr {
  z-index: 10; position: absolute; left: 60px; top: 30px; width: 1320px; height: 46px;
  display: flex; justify-content: space-between; align-items: center;
}
.hdr img { display: block; height: 34px; width: auto; transition: filter .35s ease; }
.hdr nav { display: flex; gap: 24px; align-items: center; }
.hdr button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font); font-weight: 400; font-size: 18px; line-height: 100%;
  color: var(--ink); text-transform: uppercase; white-space: nowrap; transition: color .35s ease;
}
.hdr-ig {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 400; font-size: 18px; line-height: 100%;
  color: var(--ink); white-space: nowrap; transition: color .35s ease, opacity .2s ease;
}
.hdr-ig:hover { color: var(--ink); opacity: .65; }
.hdr.white button, .hdr.white .hdr-ig { color: var(--paper); }
.hdr.white img { filter: invert(1) hue-rotate(180deg); }
.hdr-logo { display: block; }

/* EN / TH switch */
.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 18px; line-height: 100%; color: var(--ink);
  transition: color .35s ease;
}
.lang-switch a { color: inherit; opacity: .45; transition: opacity .2s ease; }
.lang-switch a:hover { color: inherit; opacity: .8; }
.lang-switch a[aria-current="page"] { opacity: 1; font-weight: 600; }
.lang-switch span { opacity: .45; }
.hdr.white .lang-switch { color: var(--paper); }

/* pricing modal (inside the stage, so it scales with the layout) */
.pricing-backdrop {
  position: absolute; inset: 0; z-index: 19; background: rgba(0, 0, 0, 0);
}
.pricing {
  position: absolute; z-index: 20; left: 110px; top: 178px; width: 1220px; height: 663px;
  box-sizing: border-box; background: var(--bg);
  display: flex; gap: 32px; padding: 63px 30px 63px 64px;
  opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease;
  overscroll-behavior: contain;
}
.pricing.open { opacity: 1; transform: none; }
.pricing[hidden], .pricing-backdrop[hidden] { display: none; }
.pricing-close {
  position: absolute; top: 22px; right: 22px; width: 32px; height: 32px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--accent); cursor: pointer;
}
.pricing-close:hover { color: var(--accent-hover); }
.pricing-media { position: relative; flex: none; width: 567px; height: 537px; overflow: hidden; background: #111; }
.pricing-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .4s ease;
}
.pricing-media img.on { opacity: 1; }
.pricing-body { flex: 1; min-width: 0; }
.pricing-title {
  margin: 0; max-width: 430px; font-family: var(--font); font-weight: 400; font-size: 40px;
  line-height: 128%; color: var(--ink);
}
.pricing-title span { color: var(--ink-muted); }
.pricing-options { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.set-option {
  display: grid; grid-template-columns: 1fr 213px; grid-template-rows: auto auto;
  column-gap: 24px; row-gap: 22px; align-items: start;
  width: 100%; min-height: 110px; box-sizing: border-box; padding: 24px 17px 22px 17px;
  background: transparent; border: 1px solid var(--line-muted); cursor: pointer;
  font-family: var(--font); text-align: left; color: var(--ink-muted);
  transition: border-color .2s ease, color .2s ease;
}
.set-option:hover { border-color: rgb(90, 90, 90); color: rgb(60, 60, 60); }
.set-option[aria-checked="true"] { border-color: var(--ink); color: var(--ink); }
.set-option:focus-visible, .pricing-close:focus-visible, .btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.set-name { grid-column: 1; grid-row: 1; font-size: 22px; line-height: 100%; }
.set-price { grid-column: 1; grid-row: 2; font-size: 14px; line-height: 100%; }
.set-desc { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 14px; line-height: 165%; }

/* notify-me form, revealed after a set is chosen */
.notify {
  margin: 28px 0 0; display: flex; flex-direction: column; gap: 12px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.notify.show { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease; }
.notify-label { font-size: 14px; line-height: 100%; color: var(--ink); text-transform: uppercase; letter-spacing: .02em; }
.notify .nl-row input:not([type="hidden"]) { height: 44px; }
.notify .nl-row button { height: 44px; transition: background .2s ease; }
.notify .nl-row button:hover { background: rgb(40, 40, 40); }
.notify .nl-row input[aria-invalid="true"] { border-color: var(--accent); }
.notify-msg { min-height: 14px; font-size: 14px; line-height: 100%; font-weight: 300; color: var(--ink); }
.notify-msg.error { color: var(--accent); font-weight: 400; }
.notify.done .nl-row, .notify.done .notify-label { display: none; }

/* spam honeypot for Netlify Forms */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   Phone / portrait layout
   JS adds html.m when the window is narrow or portrait. The stage then
   matches the real viewport (1 unit = 1 CSS px, no scaling) and each
   scene is restacked vertically. --pw is the content width.
   ========================================================= */
html.m { --pad: 20px; --pw: calc(100vw - 2 * var(--pad)); }
html.m .stage { width: 100vw; height: 100%; transform: none; }

/* header */
html.m .hdr { left: var(--pad); top: 16px; width: var(--pw); height: 36px; }
html.m .hdr img { height: 22px; }
html.m .hdr nav { gap: 16px; }
html.m .hdr button { font-size: 14px; }
/* Instagram: handle on desktop, icon only on phones */
.ig-icon { display: none; }
html.m .ig-icon { display: block; }
html.m .ig-handle { display: none; }

/* persistent copy: label + tag stacked under the header, copy at the bottom */
html.m .label-wrap { left: var(--pad); top: 72px; width: var(--pw); }
html.m .section-label { height: auto; font-size: 13px; white-space: normal; line-height: 130%; }
html.m .right-a, html.m .right-b, html.m .hero-right {
  left: var(--pad); right: auto; top: 94px; width: var(--pw);
  font-size: 13px; line-height: 130%; white-space: normal;
}
html.m .right-b span { color: inherit !important; }
html.m .lorem {
  left: var(--pad); top: auto; bottom: 28px; width: var(--pw);
  font-size: 15px; line-height: 140%;
}

/* 00 hero */
html.m .hero-img {
  left: var(--pad); width: var(--pw);
  height: calc(var(--pw) * 0.5628); top: calc(50% - var(--pw) * 0.2814);
}
html.m .hero-center { top: calc(50% - 7px); font-size: 14px; }
html.m .hero-tagline {
  left: var(--pad); top: auto; bottom: 32px; width: var(--pw);
  font-size: 14px; line-height: 140%;
}

/* 01–03 jacket video */
html.m .jacket { left: 0; width: 100%; top: 136px; height: calc(100% - 276px); }
html.m .jacket canvas { height: 100%; }

/* 04 details, 05 control, 06 kit */
html.m .detail-a, html.m .detail-b {
  width: calc((var(--pw) - 10px) / 2); height: calc((var(--pw) - 10px) / 2);
  top: calc(50% - (var(--pw) - 10px) / 4);
}
html.m .detail-a { left: var(--pad); }
html.m .detail-b { left: calc(var(--pad) + (var(--pw) + 10px) / 2); }
html.m .control-img {
  --cw: min(72vw, 420px);
  width: var(--cw); height: calc(var(--cw) * 1.25);
  left: calc(50% - var(--cw) / 2); top: calc(50% - var(--cw) * 0.625);
}
html.m .kit-img {
  left: var(--pad); width: var(--pw); height: calc(var(--pw) * 2 / 3);
  top: calc(50% - var(--pw) / 3);
}

/* 10 tagline */
html.m .tagline { left: var(--pad); width: var(--pw); font-size: 36px; line-height: 110%; }
html.m .scroll-hint { bottom: 32px; }
html.m .scroll-hint .t16 { font-size: 13px; }

/* 07–09 specs: labels + copy over a dark fade at the bottom */
html.m .specs::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.8));
  pointer-events: none;
}
html.m .spec-labels {
  z-index: 1; left: var(--pad); top: auto; bottom: 190px; width: var(--pw);
  flex-direction: row; flex-wrap: wrap; gap: 10px 18px; align-items: baseline; text-align: left;
}
html.m .spec-labels span { font-size: 14px; }
html.m .spec-text {
  z-index: 1; left: var(--pad); top: auto; bottom: 40px; width: var(--pw);
  min-height: 120px; font-size: 16px;
}

/* 11 pre-launch */
html.m .prelaunch-content { padding: 0 var(--pad); }
html.m .prelaunch-title { font-size: 32px; }
html.m .prelaunch-date { margin-top: 16px; font-size: 15px; line-height: 140%; }
html.m .btn-primary { margin-top: 28px; height: 48px; padding: 0 24px; }

/* 12 footer */
html.m .footer, html.m .footer a, html.m .footer span, html.m .footer input, html.m .footer button { font-size: 15px; }
html.m .footer {
  display: flex; flex-direction: column; box-sizing: border-box;
  padding: 72px var(--pad) 20px; overflow-y: auto; overscroll-behavior: contain;
}
html.m .footer-logo, html.m .footer-cols, html.m .newsletter, html.m .footer-bottom {
  position: static; width: auto; flex: none;
}
html.m .footer-logo { align-self: flex-start; height: 40px; margin-bottom: 32px; }
html.m .footer-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-bottom: 32px;
}
html.m .footer-cols .col:nth-child(3) { grid-column: 1 / -1; }
html.m .col { gap: 10px; }
html.m .newsletter { gap: 12px; margin-bottom: 28px; }
html.m .nl-row input:not([type="hidden"]), html.m .nl-row button { height: 46px; font-size: 16px; }
html.m .nl-row input:not([type="hidden"]) { min-width: 0; }
html.m .nl-row button { padding: 0 18px; }
html.m .footer-bottom { margin-top: auto; padding-top: 14px; gap: 12px; }
html.m .footer-bottom span { font-size: 12px; }

/* pricing modal becomes a scrollable sheet */
html.m .pricing {
  left: 10px; top: 10px; width: calc(100vw - 20px); height: calc(100% - 20px);
  flex-direction: column; gap: 20px; padding: 16px 16px 24px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
html.m .pricing-close {
  z-index: 2; top: 22px; right: 22px; width: 36px; height: 36px; background: var(--bg);
}
html.m .pricing-media { width: 100%; height: auto; aspect-ratio: 3 / 2; }
html.m .pricing-title { font-size: 26px; max-width: none; }
html.m .pricing-options { margin-top: 18px; gap: 12px; }
html.m .set-option {
  grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  row-gap: 10px; column-gap: 12px; min-height: 0; padding: 16px;
}
html.m .set-name { font-size: 19px; }
html.m .set-price { grid-column: 2; grid-row: 1; align-self: center; font-size: 14px; }
html.m .set-desc { grid-column: 1 / -1; grid-row: 2; font-size: 14px; line-height: 150%; }
html.m .notify { margin-top: 20px; }
html.m .notify .nl-row input:not([type="hidden"]), html.m .notify .nl-row button { height: 46px; }

/* headings keep the design's look */
h1.hero-tagline, h2.tagline, h2.prelaunch-title { margin: 0; }
h1.hero-tagline { font-weight: 400; }
h2.tagline { font-weight: 300; }
h2.prelaunch-title { font-weight: 400; }

/* text for search engines and screen readers only */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Thai page ----------
   Thai script needs taller lines for vowel and tone marks, and no letter-spacing. */
html[lang="th"] .hero-tagline,
html[lang="th"] .hero-right, html[lang="th"] .right-a, html[lang="th"] .right-b,
html[lang="th"] .section-label, html[lang="th"] .lorem,
html[lang="th"] .notify-label, html[lang="th"] .notify-msg, html[lang="th"] .set-price { line-height: 150%; }
html[lang="th"] .section-label { height: auto; }
html[lang="th"] .tagline, html[lang="th"] .prelaunch-title, html[lang="th"] .pricing-title { line-height: 140%; }
html[lang="th"] .spec-labels span { letter-spacing: 0; line-height: 150%; }
html[lang="th"] .spec-text, html[lang="th"] .set-desc { line-height: 170%; }
html[lang="th"] .hdr button { font-size: 17px; }
html[lang="th"] .notify-label { letter-spacing: 0; }

/* phones: tighter header so EN/TH fits */
html.m .hdr nav { gap: 12px; }
html.m .lang-switch { font-size: 14px; gap: 4px; }
html.m[lang="th"] .hdr button { font-size: 14px; }
html.m .hdr { gap: 12px; }
@media (max-width: 390px) {
  html.m .ig-icon { width: 18px; height: 18px; }
  html.m .hdr img { height: 18px; }
  html.m .hdr nav { gap: 10px; }
  html.m .hdr button, html.m[lang="th"] .hdr button, html.m .lang-switch { font-size: 13px; }
}
