/* ==========================================================
   Oviwo Sneaker — style
   ========================================================== */
:root {
  --ink: #0b0b0c;
  --ink-2: #17171a;
  --paper: #e6e6e6;
  --white: #f7f7f5;
  --blue: #1d5cff;
  --blue-deep: #0b2fa8;
  --muted: #8a8a90;
  --line: rgba(255, 255, 255, .14);
  --line-dark: rgba(11, 11, 12, .14);

  /* English: Manrope throughout. Thai overrides --f-head/--f-body below.
     --f-display is the brand's Latin display type (logo, giant words, numbers)
     and stays Manrope in both languages. It replaces the condensed Anton, so
     display sizes below are smaller than before to keep the same width. */
  --f-display: "Manrope", system-ui, sans-serif;
  --f-head: var(--f-display);
  --f-body: "Manrope", system-ui, sans-serif;
  --f-thai: var(--f-body);

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
/* Thai: IBM Plex Sans Thai for headings, Google Sans for everything else. */
:root:lang(th) {
  --f-head: "IBM Plex Sans Thai", "Google Sans", sans-serif;
  --f-body: "Google Sans", "Manrope", system-ui, sans-serif;
}
h1, h2, h3 { font-family: var(--f-head); }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: .8;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(29, 92, 255, .25); }

.h2 {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 104px);
  line-height: .95;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -.035em;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease);
  will-change: transform;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn--blue { --bg: var(--blue); color: #fff; }
.btn--blue::after { background: var(--white); }
.btn--blue:hover { color: var(--ink); }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn--ghost::after { background: #fff; }
.btn--ghost:hover { color: var(--ink); }
.btn--ink { --bg: var(--ink); color: #fff; }
.btn--ink::after { background: var(--blue); }
.btn--full { width: 100%; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  color: var(--white);
}
.preloader__panel { position: absolute; inset: 0; background: var(--ink); }
.preloader__inner { position: relative; text-align: center; width: min(360px, 80vw); }
.preloader__logo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(56px, 10vw, 100px);
  line-height: 1;
  letter-spacing: -.04em;
}
.preloader__bar { height: 2px; background: rgba(255, 255, 255, .12); margin: 22px 0 12px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.preloader__count { font-family: var(--f-body); font-size: 13px; letter-spacing: .16em; opacity: .7; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 999;
  display: grid;
  place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s;
}
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--blue); mix-blend-mode: normal; }
.cursor__label { font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
  transition: transform .55s var(--ease);
}
/* Past the hero the bar condenses into a floating pill with its own ground, so
   it stays legible over the white shop and paper sections (the difference blend
   turned it into a faint grey there). */
.nav.is-compact {
  top: 12px; left: 12px; right: 12px; max-width: 1100px; margin-inline: auto;
  padding: 8px 8px 8px 22px;
  mix-blend-mode: normal;
  background: rgba(11, 11, 12, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25), inset 0 0 0 1px var(--line);
}
/* Reading down: out of the way. Any scroll up brings it back (main.js). */
.nav.is-compact.is-hidden { transform: translateY(calc(-100% - 24px)); }
@media (max-width: 767px) {
  /* Phones: the pill docks at the bottom, in thumb reach; the top stays clear. */
  .nav.is-compact { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); padding-left: 18px; }
  .nav.is-compact.is-hidden { transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom))); }
  /* The toast sits just above the docked pill instead of under it. */
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .nav.is-compact.is-hidden { transform: none; opacity: 0; visibility: hidden; }
}
.nav__logo { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.nav__logo sup { font-family: var(--f-body); font-size: 10px; margin-left: 2px; }
.nav__links { display: flex; gap: 6px; font-family: var(--f-body); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 8px 14px; border-radius: 999px; transition: background .3s; }
.nav__links a::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
  transform: scale(0);
  transition: transform .4s var(--ease);
}
.nav__links a:hover::before, .nav__links a.is-active::before { transform: scale(1); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 2px; font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.lang button { padding: 8px 10px; border-radius: 999px; opacity: .6; box-shadow: inset 0 0 0 1.5px transparent; transition: opacity .3s, box-shadow .3s; }
.lang button:hover { opacity: 1; }
.lang button[aria-pressed="true"] { opacity: 1; box-shadow: inset 0 0 0 1.5px currentColor; }
.nav a:focus-visible, .nav button:focus-visible, .btn:focus-visible, .thumb:focus-visible,
.swatch:focus-visible, .size:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.nav__cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px currentColor;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
}
.nav__burger { display: none; width: 40px; height: 40px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 23px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  gap: 4px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.mobile-menu a { font-family: var(--f-head); font-weight: 800; font-size: clamp(40px, 12vw, 80px); line-height: 1.1; letter-spacing: -.03em; text-transform: uppercase; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 380px) {
  .nav__right { gap: 4px; }
  .lang button { padding: 8px 7px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 460px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__video { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, .55) 0%, rgba(11, 11, 12, 0) 30%),
    linear-gradient(0deg, rgba(11, 11, 12, .85) 0%, rgba(11, 11, 12, .2) 50%, rgba(11, 11, 12, 0) 70%);
}
.hero__content { position: relative; width: 100%; padding: 0 var(--gutter) clamp(40px, 7vh, 80px); }
.hero__title {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: min(clamp(56px, 13vw, 210px), 22vh);
  line-height: .9;
  margin: 0 0 clamp(20px, 4vh, 40px);
  text-transform: uppercase;
  letter-spacing: -.045em;
}
.hero__title .line { display: block; overflow: hidden; padding-top: .04em; }
.hero__title .line--indent { padding-left: 12vw; color: transparent; -webkit-text-stroke: 2px #fff; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero__sub { margin: 0; font-size: clamp(15px, 1.3vw, 18px); font-weight: 400; max-width: 460px; opacity: .92; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__side {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .6;
  white-space: nowrap;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .6;
}
.hero__scroll i { width: 1px; height: 34px; background: linear-gradient(#fff, transparent); animation: scrollLine 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 860px) {
  .hero__side { display: none; }
  .hero__title .line--indent { -webkit-text-stroke-width: 1.5px; }
  .hero__scroll { display: none; }
}

/* ---------- Launch ---------- */
.launch { position: relative; background: var(--ink); }
.launch__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.launch__img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(18% 22% 18% 22% round 28px);
  will-change: clip-path;
}
/* Both frames replicate object-fit: cover (object-position 60% 50%) so the cut-out sits exactly on the photo */
.launch__frame {
  --ar: 1.7921;
  --fw: max(100vw, calc(100vh * var(--ar)));
  position: absolute;
  width: var(--fw);
  aspect-ratio: 2000 / 1116;
  left: calc((100vw - var(--fw)) * .6);
  top: calc((100vh - var(--fw) / var(--ar)) * .5);
  transform: scale(1.35);
  will-change: transform;
}
@supports (height: 100svh) {
  .launch__frame { --fw: max(100vw, calc(100svh * var(--ar))); top: calc((100svh - var(--fw) / var(--ar)) * .5); }
}
.launch__frame--bg { z-index: 1; }
.launch__frame--bg img { width: 100%; height: 100%; }
.launch__frame--fg { z-index: 3; pointer-events: none; }
.launch__person { position: absolute; left: 33.45%; top: 4.211%; width: 35.9%; height: 88.082%; max-width: none; }
.launch__words {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.launch__word {
  position: absolute;
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .86;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.launch__word.w1, .launch__word.w2 { top: clamp(84px, 13vh, 130px); font-size: clamp(40px, 7.5vw, 128px); }
.launch__word.w1 { left: var(--gutter); }
.launch__word.w2 { right: var(--gutter); }
.launch__word.w3 {
  left: 50%;
  top: 56%;
  font-size: 23vw;
  line-height: .8;
  text-shadow: 0 30px 80px rgba(11, 30, 90, .25);
}
@media (max-width: 640px) {
  .launch__word.w3 { top: 33%; font-size: 25vw; }
}
.launch__caption {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: clamp(24px, 6vh, 56px);
  margin: 0;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
}

/* ---------- Product 360 ---------- */
.product { position: relative; background: var(--paper); color: var(--ink); }
.product__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.product__bgtext {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(120px, 22vw, 360px);
  letter-spacing: -.04em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(11, 11, 12, .1);
  will-change: transform;
  pointer-events: none;
}
.product__head { position: absolute; top: clamp(84px, 13vh, 130px); left: var(--gutter); z-index: 3; }
.product__head .h2 { font-size: clamp(34px, 5vw, 80px); }
.product__canvas-wrap { position: absolute; inset: 6vh 18vw 6vh; display: grid; place-items: center; z-index: 2; }
.product__canvas {
  width: 100%;
  height: 100%;
  /* feather the photo edges into the section background */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.callout {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 4;
  width: min(240px, 20vw);
  padding-left: 18px;
  border-left: 2px solid var(--blue);
  opacity: 0;
  visibility: hidden;
}
.callout--right { left: auto; right: calc(100% - var(--x)); padding-left: 0; padding-right: 18px; border-left: 0; border-right: 2px solid var(--blue); text-align: right; }
.callout b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(16px, 1.5vw, 22px); letter-spacing: -.02em; text-transform: uppercase; line-height: 1.15; margin-bottom: 4px; }
.callout span { display: block; font-size: 14px; line-height: 1.5; color: #45454b; }
.product__meter {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(20px, 5vh, 44px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
}
.product__meter span:first-child { min-width: 36px; text-align: right; }
.product__meter-bar { width: min(260px, 40vw); height: 2px; background: var(--line-dark); }
.product__meter-bar i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
@media (max-width: 860px) {
  .product__canvas-wrap { inset: 22vh 0 18vh; }
  .callout { width: 44vw; padding-left: 12px; }
  .callout--right { padding-left: 0; padding-right: 12px; }
  .callout span { font-size: 12px; }
  .c1 { --x: 4% !important; --y: 64% !important; }
  .c2 { --x: 96% !important; --y: 64% !important; }
  .c3 { --x: 4% !important; --y: 78% !important; }
  .c4 { --x: 96% !important; --y: 78% !important; }
}

/* ---------- Buy ---------- */
.buy {
  position: relative;
  background: var(--white);
  color: var(--ink);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(80px, 12vh, 140px) var(--gutter);
}
.buy__gallery { position: relative; align-self: start; }
.buy__main { aspect-ratio: 16 / 10; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.buy__main img { width: 100%; height: 100%; object-fit: cover; }
.buy__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.thumb { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .3s, opacity .3s; opacity: .6; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--ink); opacity: 0; transition: opacity .3s; }
.thumb:hover { opacity: 1; }
.thumb.is-active { opacity: 1; }
.thumb.is-active::after { opacity: 1; }

.buy__info { padding-top: 8px; }
.buy__info .eyebrow { color: var(--blue); opacity: 1; }
.buy__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 4vw, 60px); line-height: 1; letter-spacing: -.035em; text-transform: uppercase; margin: 0 0 14px; }
.buy__name em { font-style: normal; color: var(--blue); display: inline-block; }
.buy__rating { font-size: 14px; color: #55555b; margin-bottom: 20px; }
.stars { color: var(--ink); letter-spacing: 2px; }
.buy__price { font-family: var(--f-body); font-size: 32px; font-weight: 700; margin-bottom: 18px; }
.buy__price s { font-size: 18px; font-weight: 400; color: var(--muted); margin-left: 10px; }
.buy__desc { color: #45454b; margin: 0 0 28px; max-width: 520px; }
.buy__block { margin-bottom: 24px; }
.buy__label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.buy__label .js-color-name { font-weight: 400; color: #55555b; margin-left: 8px; margin-right: auto; }
.buy__label a { font-weight: 400; text-decoration: underline; text-underline-offset: 3px; color: #55555b; }
.swatches { display: flex; gap: 10px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 0 0 3px var(--white), 0 0 0 4px transparent; transition: box-shadow .3s; }
.swatch.is-active { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 0 0 3px var(--white), 0 0 0 5px var(--ink); }
.swatch:disabled { opacity: .45; cursor: not-allowed; }
.sizes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.size { height: 48px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-dark); font-family: var(--f-body); font-weight: 600; font-size: 14px; transition: background .25s, color .25s, box-shadow .25s; }
.size:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.size.is-active { background: var(--ink); color: #fff; }
.size:disabled { color: #b5b5b9; text-decoration: line-through; cursor: not-allowed; }
.sizes.is-error .size:not(:disabled) { box-shadow: inset 0 0 0 1.5px #e5484d; }
.specs { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.specs li { padding: 18px 0 0; }
.specs b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -.03em; }
.specs span { font-size: 13px; color: #55555b; }
@media (max-width: 960px) {
  .buy { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .sizes { grid-template-columns: repeat(4, 1fr); }
  .buy__thumbs { gap: 8px; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--blue); color: #fff; overflow: hidden; padding: 22px 0; transform: rotate(-2deg) scale(1.04); margin: -12px 0; position: relative; z-index: 3; }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 36px; padding-right: 36px; }
.marquee span { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 4.2vw, 56px); letter-spacing: -.03em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 24px; }

/* ---------- Service ---------- */
.service { position: relative; padding: clamp(120px, 18vh, 200px) var(--gutter) clamp(80px, 12vh, 140px); background: var(--ink); }
.service__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(48px, 8vh, 90px); }
.service__head .eyebrow { grid-column: 1 / -1; }
.service__lead { max-width: 320px; margin: 0; color: #b4b4ba; font-weight: 400; }
.service__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative;
  padding: 28px 26px 32px;
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background .5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: translateY(101%);
  transition: transform .6s var(--ease);
  z-index: 0;
}
.card:hover::before { transform: translateY(0); }
.card > * { position: relative; z-index: 1; }
.card__icon { width: 52px; height: 52px; margin: auto 0 26px; color: var(--blue); transition: color .4s, transform .6s var(--ease); }
.card:hover .card__icon { color: #fff; transform: translateY(-6px) rotate(-6deg); }
.card h3 { font-size: 21px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 14px; color: #a9a9af; transition: color .4s; }
.card:hover p { color: rgba(255, 255, 255, .85); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(60px, 10vh, 110px); border-top: 1px solid var(--line); }
.stat { padding: 28px 0 0; }
.stat b { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 7vw, 104px); letter-spacing: -.045em; line-height: 1; }
.stat > span { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 38px); color: var(--blue); margin-left: 4px; }
:root:lang(th) .stat > span { font-family: var(--f-body); }
.stat p { margin: 6px 0 0; color: #a9a9af; font-size: 14px; }
@media (max-width: 1100px) { .service__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .service__grid { grid-template-columns: 1fr; }
  .service__head { grid-template-columns: 1fr; }
  .card { min-height: 260px; }
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Band ---------- */
.band { position: relative; height: 90vh; overflow: hidden; display: grid; place-items: center; text-align: center; }
.band__img { position: absolute; inset: -20% 0; will-change: transform; }
.band__img img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(11, 11, 12, .45); }
.band__text { position: relative; z-index: 2; margin: 0; padding: 0 var(--gutter); font-weight: 800; font-size: clamp(40px, 7vw, 110px); line-height: 1.1; letter-spacing: -.035em; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  padding: clamp(100px, 16vh, 180px) var(--gutter);
  background: var(--white);
  color: var(--ink);
}
.contact .eyebrow { color: var(--blue); opacity: 1; }
.contact__lead { color: #45454b; max-width: 420px; margin: 24px 0 36px; }
.contact__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.contact__list li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.contact__list li > span:first-child { font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #6b6b71; padding-top: 3px; }
.contact__list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.contact__list a:hover { background-size: 100% 1px; }
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-dark); font-family: var(--f-body); font-size: 12px; font-weight: 700; transition: background .3s, color .3s; }
.socials a:hover { background: var(--ink); color: #fff; }

.form { display: flex; flex-direction: column; gap: 14px; align-self: center; background: var(--paper); padding: clamp(24px, 3vw, 40px); border-radius: 24px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 26px 18px 10px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid transparent;
  border-radius: 12px;
  outline: none;
  resize: vertical;
  transition: border-color .3s;
  appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 17px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); }
.field label { position: absolute; left: 19px; top: 18px; font-size: 15px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field label.is-static { transform: translateY(-10px) scale(.78); color: var(--blue); }
.field.is-error input, .field.is-error textarea { border-color: #e5484d; }
.form__note { margin: 0; min-height: 1.6em; font-size: 14px; color: var(--blue-deep); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact__list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); padding: clamp(60px, 10vh, 120px) var(--gutter) 28px; overflow: hidden; }
.footer__big { display: flex; justify-content: space-between; font-family: var(--f-display); font-weight: 800; font-size: 22vw; letter-spacing: -.04em; line-height: .86; color: var(--white); overflow: hidden; }
.footer__big span { display: inline-block; }
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: #9a9aa0; }
.footer__row a:hover { color: #fff; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}

/* ---------- Thai ---------- */
/* Thai stacks vowels and tone marks above and below the line: taller lines,
   no tight negative tracking, and no wide-tracked uppercase labels. */
:root:lang(th) :is(.h2, .hero__title, .band__text, .mobile-menu a, .card h3) { letter-spacing: 0; }
:root:lang(th) :is(.h2, .band__text, .mobile-menu a) { line-height: 1.2; }
:root:lang(th) .hero__title .line { padding-top: .08em; }
:root:lang(th) :is(.eyebrow, .contact__list li > span:first-child) { letter-spacing: .04em; }

@media (prefers-reduced-motion: reduce) {
  .hero__scroll i { animation: none; }
}
