/* =========================================================
   Utotech — site styles
   Two-tone (navy / paper) + one accent (logo cyan→blue)
   ========================================================= */

:root {
  /* Brand — sampled from the logo */
  --navy: #1e2748;
  --cyan: #17aebf;
  --teal: #1a8dab;
  --blue: #205a8c;
  --teal-ink: #14728b;
  --grad: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 50%, var(--blue) 100%);

  /* Surfaces */
  --navy-950: #0f1428;
  --navy-900: #141a33;
  --navy-800: #1a2242;
  --paper: #f3f6f9;
  --white: #ffffff;

  /* Text */
  --ink: var(--navy);
  --ink-muted: #5b6478;
  --on-dark: #ffffff;
  --on-dark-muted: #9aa6c4;

  /* Lines */
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(30, 39, 72, 0.14);

  /* Type */
  --font-display: "Kanit", "IBM Plex Sans Thai", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* the hidden attribute always wins over component display rules */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the tilted marquee band is wider than the viewport; clip (not hidden) keeps position:sticky working */
main {
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--cyan);
  color: var(--navy);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.section--light :focus-visible {
  outline-color: var(--blue);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--cyan);
  color: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  color: var(--on-dark-muted);
}

.section--light .muted {
  color: var(--ink-muted);
}

.section--dark {
  background: var(--navy-950);
  color: var(--on-dark);
}

.section--light {
  background: var(--paper);
  color: var(--ink);
}

.label {
  display: inline-flex;
  font-weight: 400;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 1.25rem;
}

.label .mono {
  color: var(--cyan);
}

.section--light .label {
  color: var(--ink-muted);
}

.section--light .label .mono {
  color: var(--teal);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

:lang(th) .h2 {
  line-height: 1.25;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  --fg: currentColor;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

/* fill-from-left micro-interaction */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fill, var(--white));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translate(2px, -2px) rotate(0deg);
}

.btn--cyan {
  --bg: var(--cyan);
  --fg: var(--navy);
  --fill: var(--white);
}

.btn--navy {
  --bg: var(--navy);
  --fg: var(--white);
  --fill: var(--blue);
}

.btn--ghost {
  border: 1px solid var(--line-dark);
  --fill: var(--white);
}

.btn--ghost:hover {
  color: var(--navy);
}

.btn--sm {
  padding: 0.7em 1.15em;
  font-size: 0.875rem;
}

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  background: var(--navy-950);
  transition: transform 0.9s var(--ease) 0.1s, visibility 0s linear 1s;
  animation: loader-failsafe 0s linear 4s forwards;
}

@keyframes loader-failsafe {
  to {
    visibility: hidden;
    pointer-events: none;
  }
}

.is-loaded .loader {
  transform: translateY(-100%);
  visibility: hidden;
}

.no-loader .loader {
  display: none;
}

.loader__mark {
  width: 96px;
  /* sweep the ring in with a conic mask */
  -webkit-mask: conic-gradient(from 200deg, #000 var(--sweep, 0deg), transparent 0);
  mask: conic-gradient(from 200deg, #000 var(--sweep, 0deg), transparent 0);
  animation: sweep 1.1s var(--ease) forwards;
}

@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes sweep {
  to {
    --sweep: 360deg;
  }
}

.loader__count {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.loader__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  color: var(--on-dark);
  transition: transform 0.45s var(--ease), background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(15, 20, 40, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-dark);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand img {
  height: 30px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: clamp(14px, 2.2vw, 32px);
  font-size: 0.9375rem;
}

.nav__links a {
  position: relative;
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding-block: 6px;
  color: var(--on-dark-muted);
  transition: color 0.25s;
}

.nav__links a .mono {
  font-size: 0.6875rem;
  color: var(--cyan);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--on-dark);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}

.lang__btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--on-dark-muted);
  transition: background-color 0.25s, color 0.25s;
}

.lang__btn[aria-pressed="true"],
.lang__btn[aria-current="true"] {
  background: var(--cyan);
  color: var(--navy);
}

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  position: relative;
}

.nav__burger span:not(.sr-only) {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}

.nav__burger span:nth-child(2) {
  top: 18px;
}

.nav__burger span:nth-child(3) {
  top: 25px;
}

.nav__burger[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  background: var(--navy-950);
  padding: 24px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu[hidden] {
  display: none;
}

.menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 600;
  padding-block: 6px;
  border-bottom: 1px solid var(--line-dark);
}

/* =========================================================
   HERO + SCROLL ZOOM (ref: Spruce Rapid)
   Static by default (no JS / reduced motion);
   .is-live pins the stage and JS drives --fs / --bs / --ro.
   ========================================================= */
.zoom {
  position: relative;
  background: var(--navy-950);
}

.zoom.is-live {
  height: 260vh;
}

.zoom__stage {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* static fallback (no JS / reduced motion): hero first, photo block after it */
.zoom:not(.is-live) .zoom__front {
  order: -1;
}

.zoom:not(.is-live) .zoom__hint {
  display: none;
}

.zoom.is-live .zoom__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* back layer */
.zoom__back {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.zoom.is-live .zoom__back {
  position: absolute;
  inset: 0;
  transform: scale(var(--bs, 1.25));
  will-change: transform;
}

.zoom__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.zoom__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 20, 40, 0.35) 0%, rgba(15, 20, 40, 0.55) 45%, rgba(15, 20, 40, 0.94) 100%),
    linear-gradient(120deg, rgba(23, 174, 191, 0.25), transparent 50%);
}

.zoom__content {
  padding-bottom: clamp(28px, 6vh, 56px);
}

.zoom.is-live .zoom__content {
  opacity: var(--ro, 0);
  transform: translateY(calc((1 - var(--ro, 0)) * 48px));
}

.zoom__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.6vw, 5rem);
  line-height: 1.02;
  max-width: 16ch;
  text-wrap: balance;
}

:lang(th) .zoom__title {
  line-height: 1.25;
}

/* front layer = hero with a hole where the logo's O is */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(24px, 5vh, 64px));
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-950);
}

.zoom.is-live .zoom__front {
  position: absolute;
  inset: 0;
  min-height: 0;
  /* the hole grows with the zoom; the gradient is drawn at screen resolution so its edge stays crisp */
  -webkit-mask: radial-gradient(circle calc(var(--hr, 0px) * var(--fs, 1)) at var(--hx, 50%) var(--hy, 50%), transparent calc(100% - 1px), #000 100%);
  mask: radial-gradient(circle calc(var(--hr, 0px) * var(--fs, 1)) at var(--hx, 50%) var(--hy, 50%), transparent calc(100% - 1px), #000 100%);
}

/* only the logo (a plain image) is scaled — cheap for the GPU — around the centre of its O */
.zoom.is-live .hero__visual {
  transform: scale(var(--fs, 1));
  transform-origin: var(--vx, 50%) var(--vy, 50%);
}

.zoom.is-live .hero__dots {
  transform: scale(calc(1 + (var(--fs, 1) - 1) * 0.2));
  transform-origin: var(--hx, 50%) var(--hy, 50%);
  opacity: calc(1 - var(--zf, 0));
}

.zoom.is-live [data-zoom-fade] {
  opacity: calc(1 - var(--zf, 0));
}

.zoom__hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--on-dark-muted);
  font-size: 0.6875rem;
}

.zoom__hint .mono {
  font-size: 0.6875rem;
}

.zoom__hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--cyan), transparent);
  transform-origin: top;
  animation: hint 1.8s var(--ease) infinite;
}

@keyframes hint {
  0% {
    transform: scaleY(0);
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* interactive dot matrix (ref: Overflow illustration interaction) */
.hero__dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* glow follows the pointer (--mx/--my set in JS) */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px circle at var(--mx, 70%) var(--my, 40%), rgba(23, 174, 191, 0.18), transparent 60%),
    radial-gradient(50% 60% at 90% 100%, rgba(32, 90, 140, 0.4), transparent 70%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 24px;
}

.eyebrow__clock {
  padding: 3px 8px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(23, 174, 191, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(23, 174, 191, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(23, 174, 191, 0);
  }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.6vw, 7.25rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.wd {
  display: inline-block;
  white-space: nowrap;
}

:lang(en) .hero__title .line {
  white-space: nowrap;
}

.hero__title .line--accent {
  color: var(--cyan);
}

:lang(th) .hero__title {
  font-size: clamp(2.6rem, 6.4vw, 6.5rem);
  line-height: 1.15;
  text-transform: none;
}

/* letter-by-letter rise (ref: Overflow micro-animation) */
.hero__title .ch {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 28ms + 150ms);
}

.is-loaded .hero__title .ch {
  transform: none;
}

.roller {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35em;
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.roller__prefix {
  color: var(--on-dark-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.roller {
  --roll-h: 1.3em;
}

:lang(th) .roller {
  --roll-h: 1.6em;
}

.roller__window {
  position: relative;
  display: inline-block;
  height: var(--roll-h);
  overflow: hidden;
  vertical-align: bottom;
}

.roller__list {
  display: flex;
  flex-direction: column;
  transition: transform 0.7s var(--ease);
}

.roller__list span {
  display: block;
  height: var(--roll-h);
  line-height: var(--roll-h);
  white-space: nowrap;
  color: var(--cyan);
}

.hero__lead {
  max-width: 34rem;
  margin-top: 20px;
  color: var(--on-dark-muted);
  font-size: 1.0625rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__visual {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.32em;
  transform: rotate(var(--spin, 0deg));
}

.hero__mark {
  width: 56%;
}

/* soft brand glow behind the mark (a gradient, not a filter, so zooming stays cheap) */
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(23, 174, 191, 0.22), transparent);
  opacity: calc(1 - var(--zf, 0));
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 6vh, 72px);
  border-top: 1px solid var(--line-dark);
}

.stat {
  padding: 20px 20px 4px 0;
  border-right: 1px solid var(--line-dark);
  padding-left: 20px;
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border-right: 0;
}

.stat dt {
  color: var(--on-dark-muted);
  font-size: 0.75rem;
}

.stat dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin-top: 6px;
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  overflow: hidden;
  display: flex;
  user-select: none;
}

.marquee__track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding-right: clamp(20px, 3vw, 44px);
  will-change: transform;
}

.band {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  color: var(--white);
  padding-block: 18px;
  transform: rotate(-1.2deg) scale(1.02);
  margin-block: -12px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(15, 20, 40, 0.35);
}

.band span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-transform: uppercase;
  white-space: nowrap;
}

.band i {
  width: 0.9em;
  height: 0.9em;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  background: url("../images/brand/utotech-mark-white-256.webp") center / contain no-repeat;
  flex-shrink: 0;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  padding-block: clamp(96px, 14vh, 160px) clamp(80px, 12vh, 140px);
}

.services__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.services__intro {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  display: grid;
  gap: 20px;
  justify-items: start;
}

.services__intro .label {
  margin-bottom: 0;
}

.svc-list {
  border-top: 1px solid var(--line-light);
}

.svc {
  border-bottom: 1px solid var(--line-light);
  position: relative;
}

.svc__head {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 16px;
  padding: 26px 16px;
  text-align: left;
  isolation: isolate;
  transition: color 0.35s var(--ease);
}

/* hover fill */
.svc__head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
}

.svc__head:hover,
.svc.is-open .svc__head {
  color: var(--white);
}

.svc__head:hover::before,
.svc.is-open .svc__head::before {
  transform: scaleY(1);
}

.svc__num {
  color: var(--teal);
  transition: color 0.3s;
}

.svc__head:hover .svc__num,
.svc.is-open .svc__num {
  color: var(--cyan);
}

.svc__title strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}

.svc__title small {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  transition: color 0.3s;
}

.svc__head:hover small,
.svc.is-open small {
  color: var(--on-dark-muted);
}

.svc__price {
  font-size: 0.75rem;
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0.85;
}

.svc__icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.8;
}

.svc__icon::before,
.svc__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease);
}

.svc__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.svc.is-open .svc__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.svc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
  background: var(--navy);
  color: var(--on-dark-muted);
}

.svc__body>p {
  overflow: hidden;
  padding-inline: calc(56px + 32px) 72px;
}

.svc.is-open .svc__body {
  grid-template-rows: 1fr;
}

.svc.is-open .svc__body>p {
  padding-bottom: 26px;
}

/* =========================================================
   STORY (scroll text)
   ========================================================= */
.story {
  padding-block: clamp(96px, 14vh, 160px);
  position: relative;
  overflow: hidden;
}

.story__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4.2vw, 3.75rem);
  line-height: 1.15;
  max-width: 1100px;
  text-wrap: pretty;
}

:lang(th) .story__text {
  line-height: 1.4;
}

.story__text .w {
  opacity: 0.16;
  transition: opacity 0.25s linear, color 0.25s linear;
}

.story__text .w.is-on {
  opacity: 1;
}

.story__text .w.is-key {
  color: var(--cyan);
}

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(56px, 8vh, 96px);
  align-items: end;
}

.story__photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
}

/* image zooms out as it scrolls into view (ref: Spruce Rapid) */
.story__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zs, 1));
  transform-origin: 50% 40%;
}

.story__photo-frame::after {
  /* duotone tint toward the brand */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(23, 174, 191, 0.18), rgba(15, 20, 40, 0.45));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.story__photo figcaption {
  margin-top: 12px;
  color: var(--on-dark-muted);
  font-size: 0.75rem;
}

.story__cards {
  display: grid;
  gap: 16px;
}

.card-line {
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.card-line .label {
  margin-bottom: 10px;
}

.letters {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.letters span {
  flex: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--navy-950);
  background: var(--grad);
}

/* =========================================================
   PROCESS (pinned horizontal)
   ========================================================= */
.process {
  position: relative;
  /* height is set in JS when the pinned mode is active */
}

.process__sticky {
  padding-block: clamp(96px, 14vh, 140px) clamp(64px, 10vh, 120px);
}

.process.is-pinned .process__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  padding-block: calc(var(--nav-h) + 24px) 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.process__head {
  display: grid;
  gap: 8px;
}

.process__head .label {
  margin-bottom: 4px;
}

.process.is-pinned .process__head {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
}

.process.is-pinned .process__head > * {
  grid-column: 1 / -1;
}

.process.is-pinned .process__head .label {
  grid-column: 1;
  grid-row: 1;
}

.process.is-pinned .process__scrum {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  margin-top: 0;
}

.progress {
  height: 2px;
  background: var(--line-light);
  margin-top: 28px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.process__viewport {
  margin-top: 40px;
  padding-inline: var(--gutter);
  max-width: 1320px;
  margin-inline: auto;
  width: 100%;
}

.process.is-pinned .process__viewport {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
}

.process__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.process.is-pinned .process__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
}

.process.is-pinned .step {
  width: clamp(300px, 30vw, 420px);
  min-height: clamp(320px, 46vh, 440px);
}

.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.9;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: auto;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.2;
}

.step p {
  color: var(--ink-muted);
}

/* corner brackets */
.step::before,
.step::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--teal);
}

.step::before {
  top: 12px;
  right: 12px;
  border-left: 0;
  border-bottom: 0;
}

.step::after {
  bottom: 12px;
  left: 12px;
  border-right: 0;
  border-top: 0;
}

.step--photo {
  padding: 0;
  overflow: hidden;
  border: 0;
}

.step--photo::before,
.step--photo::after {
  display: none;
}

.step--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process.is-pinned .step--photo {
  width: clamp(360px, 40vw, 600px);
}

/* =========================================================
   WORK
   ========================================================= */
.work {
  position: relative;
  padding-block: clamp(96px, 14vh, 160px);
}

.work__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 6vh, 72px);
}

.work__head .h2 {
  max-width: 16ch;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

/* staggered second column (parallax adds to this) */
.work__grid>.proj.is-offset {
  margin-top: clamp(0px, 10vw, 140px);
}

.proj {
  display: block;
  cursor: none;
}

@media (hover: none),
(pointer: coarse) {
  .proj {
    cursor: pointer;
  }
}

.proj__tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  display: grid;
  place-items: center;
  transform: translateY(var(--py, 0px));
}

.proj__tile img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  transition: transform 0.8s var(--ease);
}

.proj:hover .proj__tile img {
  transform: scale(1.07);
}

.proj__tile::after {
  /* gradient frame on hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.proj:hover .proj__tile::after {
  opacity: 1;
}

.proj__idx {
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--ink-muted);
  font-size: 0.6875rem;
}

.proj__meta {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-top: 18px;
}

.proj__meta h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
}

.proj__meta p {
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  margin-top: 4px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
  max-width: 50%;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--on-dark-muted);
  white-space: nowrap;
}

.work__note {
  margin-top: clamp(48px, 8vh, 80px);
  color: var(--on-dark-muted);
  font-size: 0.75rem;
}

.cursor-label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  pointer-events: none;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translate(var(--cx, -200px), var(--cy, -200px)) translate(-50%, -50%) scale(var(--cs, 0));
  transition: transform 0.25s var(--ease);
}

/* =========================================================
   CLIENTS
   ========================================================= */
.clients {
  padding-block: clamp(80px, 12vh, 120px);
  display: grid;
  gap: 16px;
}

.marquee--logos .marquee__track {
  gap: 16px;
  padding-right: 16px;
}

.marquee--logos img {
  width: clamp(120px, 14vw, 180px);
  aspect-ratio: 1;
  object-fit: contain;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.35s, opacity 0.35s;
}

.marquee--logos img:hover {
  filter: none;
  opacity: 1;
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  padding-block: clamp(80px, 12vh, 140px);
  overflow: hidden;
  isolation: isolate;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(23, 174, 191, 0.35), transparent 70%),
    radial-gradient(40% 50% at 10% 20%, rgba(32, 90, 140, 0.4), transparent 70%);
}

.marquee--outline span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 11rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
}

.marquee--outline span.fill {
  color: var(--cyan);
  -webkit-text-stroke: 0;
}

.marquee--outline i {
  width: clamp(3rem, 8vw, 7rem);
  height: clamp(3rem, 8vw, 7rem);
  background: url("../images/brand/utotech-mark-white-256.webp") center / contain no-repeat;
  flex-shrink: 0;
}

.cta__inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
  margin-top: clamp(40px, 6vh, 72px);
}

.magnet {
  margin-top: 24px;
  width: clamp(180px, 20vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform 0.4s var(--ease), background-color 0.3s;
}

.magnet:hover {
  background: var(--white);
}

.magnet__arrow {
  font-size: 1.6rem;
  transition: transform 0.35s var(--ease);
}

.magnet:hover .magnet__arrow {
  transform: translate(3px, -3px);
}

.cta__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--on-dark-muted);
}

.cta__contacts a:hover {
  color: var(--cyan);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  padding-top: clamp(64px, 10vh, 96px);
  border-top: 1px solid var(--line-dark);
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr;
  gap: 32px;
}

.footer__logo {
  width: 180px;
  margin-bottom: 14px;
}

.footer__list {
  display: grid;
  gap: 8px;
}

.footer__list a {
  color: var(--on-dark-muted);
  transition: color 0.2s;
}

.footer__list a:hover {
  color: var(--cyan);
}

.footer address {
  font-style: normal;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-block: 20px;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-size: 0.75rem;
}

.footer__bottom a:hover {
  color: var(--cyan);
}

.footer__giant {
  height: clamp(60px, 13vw, 200px);
  overflow: hidden;
  opacity: 0.08;
  padding-inline: var(--gutter);
}

.footer__giant img {
  width: 100%;
}




/* =========================================================
   EXTRA MICRO-INTERACTIONS (ref: Overflow)
   ========================================================= */
.scrollbar {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 70;
  pointer-events: none;
}

.scrollbar span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(var(--sp, 0));
  transform-origin: left;
}

/* cursor spotlight on cards */
[data-spot] {
  --sx: 50%;
  --sy: 50%;
}

.step[data-spot] {
  background:
    radial-gradient(280px circle at var(--sx) var(--sy), rgba(23, 174, 191, var(--so, 0)), transparent 70%),
    var(--white);
}

.card-line[data-spot] {
  background:
    radial-gradient(260px circle at var(--sx) var(--sy), rgba(23, 174, 191, calc(var(--so, 0) * 1.1)), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

[data-spot]:hover {
  --so: 0.12;
}

.step,
.card-line {
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.step:hover {
  border-color: rgba(26, 141, 171, 0.45);
}

.card-line:hover {
  border-color: rgba(23, 174, 191, 0.45);
}

.clients__lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  max-width: 28ch;
  margin-bottom: clamp(24px, 4vh, 40px);
  color: var(--ink);
}

[data-scramble] {
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   SHARED PAGE PARTS (about / projects / project)
   ========================================================= */
.nav__links a[aria-current="page"] {
  color: var(--on-dark);
}

.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.page-hero {
  position: relative;
  min-height: 92svh;
  padding: calc(var(--nav-h) + clamp(40px, 9vh, 120px)) 0 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.page-hero--short {
  min-height: 0;
  padding-bottom: 48px;
}

.page-hero__inner {
  transform: translateY(var(--hz-y, 0px)) scale(var(--hz-s, 1));
  transform-origin: 0% 60%;
  opacity: var(--hz-o, 1);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.4vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.page-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.page-title .line--accent {
  color: var(--cyan);
}

.page-title .ch {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 24ms + 120ms);
}

.is-loaded .page-title .ch {
  transform: none;
}

:lang(th) .page-title {
  line-height: 1.18;
  text-transform: none;
}

.page-title--project {
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  text-transform: none;
  line-height: 1.02;
}

.page-hero__lead {
  max-width: 40rem;
  margin-top: 28px;
  color: var(--on-dark-muted);
  font-size: 1.125rem;
}

.roller.roller--xl {
  --roll-h: 1.08em;
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.4vw, 7.5rem);
  text-transform: uppercase;
  line-height: 1;
}

:lang(th) .roller.roller--xl {
  --roll-h: 1.35em;
  text-transform: none;
}

.roller--xl .roller__list span {
  color: var(--cyan);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--on-dark-muted);
}

.scroll-hint .mono {
  font-size: 0.6875rem;
}

.statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.1vw, 2.75rem);
  line-height: 1.22;
  text-wrap: pretty;
}

:lang(th) .statement {
  line-height: 1.45;
}

.statement .w {
  opacity: 0.18;
  transition: opacity 0.25s linear;
}

.statement .w.is-on {
  opacity: 1;
}

.statement .w.is-key {
  color: var(--teal);
}

.section--dark .statement .w.is-key {
  color: var(--cyan);
}

.back-link {
  display: flex;
  width: max-content;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--on-dark-muted);
  font-size: 0.75rem;
  transition: color 0.2s, gap 0.3s var(--ease);
}

.back-link:hover {
  color: var(--cyan);
  gap: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s;
}

.toast.is-on {
  transform: translate(-50%, 0);
  opacity: 1;
}

.empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  color: var(--on-dark-muted);
}

.empty a {
  color: var(--cyan);
}

/* =========================================================
   ABOUT
   ========================================================= */
/* photo grows from a card to full screen (ref: Spruce Rapid) */
.expand {
  position: relative;
  background: var(--navy-950);
}

.expand.is-live {
  height: 230vh;
}

.expand__stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.expand.is-live .expand__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}

.expand__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.expand.is-live .expand__frame {
  clip-path: inset(calc((1 - var(--e, 0)) * 18%) calc((1 - var(--e, 0)) * 24%) round calc((1 - var(--e, 0)) * 28px));
}

.expand__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expand.is-live .expand__frame img {
  transform: scale(calc(1.3 - var(--e, 0) * 0.3));
}

.expand__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 40, 0.2), rgba(15, 20, 40, 0.88));
  opacity: 1;
}

.expand.is-live .expand__frame::after {
  opacity: calc(0.25 + var(--e, 0) * 0.75);
}

.expand__caption {
  position: relative;
  padding-bottom: clamp(32px, 8vh, 80px);
}

.expand.is-live .expand__caption {
  opacity: var(--ec, 0);
  transform: translateY(calc((1 - var(--ec, 0)) * 40px));
}

.expand__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  line-height: 1.02;
  max-width: 14ch;
}

:lang(th) .expand__title {
  line-height: 1.25;
}

.expand__text {
  max-width: 36rem;
  margin-top: 16px;
  color: var(--on-dark-muted);
  font-size: 1.0625rem;
}

.intro {
  padding-block: clamp(96px, 14vh, 160px);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.facts {
  display: grid;
  border-top: 1px solid var(--line-light);
}

.fact {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
}

.fact dt {
  color: var(--teal-ink);
  font-size: 0.6875rem;
  margin-bottom: 6px;
}

.fact dd {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
}

.fact small {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.mv {
  padding-block: clamp(96px, 14vh, 160px);
}

.mv__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mv__card {
  --sx: 50%;
  --sy: 50%;
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-dark);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background:
    radial-gradient(320px circle at var(--sx) var(--sy), rgba(23, 174, 191, var(--so, 0)), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  transition: border-color 0.3s;
}

.mv__card:hover {
  --so: 0.12;
  border-color: rgba(23, 174, 191, 0.45);
}

.mv__letter {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 0.85;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
}

.mv__card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  margin-bottom: 12px;
}

.mv__card p {
  color: var(--on-dark-muted);
  font-size: 1.0625rem;
}

.brand {
  padding-block: clamp(96px, 14vh, 160px);
}

.brand__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}

.brand__visual {
  position: relative;
  padding: 8%;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 55%, rgba(23, 174, 191, 0.14), transparent 60%),
    var(--white);
  border: 1px solid var(--line-light);
}

.brand__visual img {
  width: 100%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

.brand__tag {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: 0 0 0 6px rgba(23, 174, 191, 0.18);
}

.brand__tag--t {
  top: 10%;
  left: 8%;
}

.brand__tag--o {
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--cyan);
  color: var(--navy);
}

.brand__tag--u {
  bottom: 6%;
  right: 12%;
}

.brand__text {
  margin-top: 16px;
  font-size: 1.0625rem;
  max-width: 36rem;
}

.brand__rows {
  display: grid;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line-light);
}

.brand__row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
}

.brand__row .mono {
  color: var(--teal);
  font-size: 0.6875rem;
  margin-bottom: 6px;
}

.brand__row p:not(.mono) {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
}

.brand__word {
  width: min(260px, 70%);
  margin-top: 14px;
}

.brand__palette-label {
  margin-top: 32px;
  color: var(--ink-muted);
  font-size: 0.6875rem;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.swatch {
  display: grid;
  align-content: end;
  gap: 2px;
  min-height: 110px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--c);
  color: var(--white);
  text-align: left;
  font-weight: 600;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.swatch .mono {
  font-size: 0.6875rem;
  opacity: 0.85;
}

.swatch:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(30, 39, 72, 0.25);
}

.swatch[data-copy="#17AEBF"] {
  color: var(--navy);
}

.caps {
  padding-block: clamp(96px, 14vh, 160px);
}

.caps .h2 {
  margin-bottom: clamp(32px, 5vh, 56px);
}

.caps__table {
  border-top: 1px solid var(--line-dark);
}

.caps__head,
.caps__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 0.6fr);
  gap: 24px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--line-dark);
}

.caps__head {
  color: var(--on-dark-muted);
  font-size: 0.6875rem;
}

.caps__head span:last-child,
.caps__price {
  text-align: right;
}

.caps__row {
  --sx: 50%;
  --sy: 50%;
  padding-block: 28px;
  background: radial-gradient(360px circle at var(--sx) var(--sy), rgba(23, 174, 191, var(--so, 0)), transparent 70%);
  transition: background-color 0.3s;
}

.caps__row:hover {
  --so: 0.1;
}

.caps__cap strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
}

.caps__cap small {
  display: block;
  margin-top: 6px;
  color: var(--on-dark-muted);
}

.caps__num {
  display: block;
  color: var(--cyan);
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.caps__desc {
  color: var(--on-dark-muted);
}

.caps__price span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(23, 174, 191, 0.12);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

.caps__note {
  margin-top: 20px;
  color: var(--on-dark-muted);
  font-size: 0.75rem;
}

/* ---------- contact + form ---------- */
.contact {
  position: relative;
  padding-block: clamp(96px, 14vh, 160px);
  overflow: hidden;
  isolation: isolate;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(45% 55% at 0% 100%, rgba(23, 174, 191, 0.18), transparent 70%);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
}

:lang(th) .contact__title {
  line-height: 1.2;
}

.contact__lead {
  margin-top: 16px;
  max-width: 36rem;
}

.form {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  position: relative;
}

.field__input {
  width: 100%;
  padding: 26px 16px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--on-dark);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}

.field__input:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.field__input:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(23, 174, 191, 0.06);
  box-shadow: 0 0 0 4px rgba(23, 174, 191, 0.15);
}

.field__label {
  position: absolute;
  left: 17px;
  top: 18px;
  color: var(--on-dark-muted);
  font-size: 1rem;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.25s var(--ease), color 0.25s;
}

.field__input:focus+.field__label,
.field__input:not(:placeholder-shown)+.field__label {
  transform: translateY(-10px) scale(0.75);
  color: var(--cyan);
}

.field.has-error .field__input {
  border-color: #ff8a8a;
}

.field__error {
  min-height: 0;
  margin-top: 6px;
  color: #ff9e9e;
  font-size: 0.8125rem;
}

.field__error:empty {
  display: none;
}

.interest {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest legend {
  width: 100%;
  margin-bottom: 10px;
  color: var(--on-dark-muted);
  font-size: 0.6875rem;
}

.pill {
  position: relative;
  cursor: pointer;
}

.pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.pill span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.pill:hover span {
  border-color: rgba(23, 174, 191, 0.6);
  color: var(--on-dark);
}

.pill input:checked+span {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy);
  transform: scale(1.04);
}

.pill input:focus-visible+span {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 6px;
}

.form__privacy {
  color: var(--on-dark-muted);
  font-size: 0.6875rem;
  max-width: 28rem;
}

.form__submit {
  min-width: 190px;
  justify-content: center;
}

.form__submit:disabled {
  cursor: progress;
}

.form__error {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 138, 138, 0.4);
  background: rgba(255, 138, 138, 0.08);
  color: #ffd1d1;
}

.form__error a {
  color: var(--cyan);
  text-decoration: underline;
}

.form-success {
  margin-top: 40px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(23, 174, 191, 0.45);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(23, 174, 191, 0.07);
  display: grid;
  gap: 12px;
  justify-items: start;
}

.form-success h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  outline: none;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-success__icon circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw 0.7s var(--ease) forwards;
}

.form-success__icon path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.5s var(--ease) 0.5s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- rocket send button ---------- */
.rocket {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin: -6px -6px -6px 0;
  transition: transform 0.4s var(--ease);
}

.rocket svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(45deg);
}

.rocket__body {
  fill: #ffffff;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linejoin: round;
}

.rocket__window {
  fill: var(--cyan);
  stroke: var(--navy);
  stroke-width: 3;
}

.rocket__fin {
  fill: var(--blue);
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linejoin: round;
}

.rocket__nozzle {
  fill: var(--navy);
}

.rocket__flame {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  transform: scaleY(0);
  opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.form__submit:hover .rocket {
  transform: translate(3px, -3px);
}

.form__submit:hover .rocket__flame {
  opacity: 1;
  transform: scaleY(0.6);
}

.form.is-sending .rocket {
  animation: rumble 0.1s linear infinite;
}

.form.is-sending .rocket__flame {
  opacity: 1;
  animation: flicker 0.09s ease-in-out infinite alternate;
}

.form.is-launched .form__submit .rocket {
  visibility: hidden;
}

.form.is-misfire .rocket {
  animation: misfire 0.75s var(--ease);
}

@keyframes rumble {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-1px, 1px);
  }

  50% {
    transform: translate(1px, 0);
  }

  75% {
    transform: translate(0, -1px);
  }
}

@keyframes flicker {
  from {
    transform: scaleY(0.75);
  }

  to {
    transform: scaleY(1.25);
  }
}

@keyframes flicker-big {
  from {
    transform: scaleY(1.4);
  }

  to {
    transform: scaleY(2.1);
  }
}

@keyframes misfire {
  0% {
    transform: none;
  }

  20% {
    transform: translate(6px, -9px) rotate(12deg);
  }

  45% {
    transform: translate(-3px, 5px) rotate(-16deg);
  }

  70% {
    transform: translate(2px, -1px) rotate(6deg);
  }

  100% {
    transform: none;
  }
}

/* flying copy + particle layer + shockwave (created by js/contact.js) */
.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 95;
}

.fx-rocket {
  position: fixed;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  z-index: 96;
  pointer-events: none;
  will-change: transform;
}

.fx-rocket svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(23, 174, 191, 0.55));
}

.fx-rocket .rocket__flame {
  opacity: 1;
  animation: flicker-big 0.07s ease-in-out infinite alternate;
}

.fx-shock {
  position: fixed;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 24px rgba(23, 174, 191, 0.6);
  pointer-events: none;
  z-index: 94;
  animation: shock 0.85s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes shock {
  from {
    transform: scale(0.4);
    opacity: 1;
  }

  to {
    transform: scale(7);
    opacity: 0;
  }
}

.form {
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.form.is-leaving {
  opacity: 0;
  transform: translateY(14px);
}

.form-success {
  position: relative;
  overflow: hidden;
  animation: success-in 0.8s var(--ease) both;
}

/* a few twinkling stars behind the success message */
.form-success::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, #ffffff, transparent),
    radial-gradient(1.2px 1.2px at 78% 18%, #ffffff, transparent),
    radial-gradient(1.8px 1.8px at 88% 64%, var(--cyan), transparent),
    radial-gradient(1.2px 1.2px at 56% 82%, #ffffff, transparent),
    radial-gradient(1.4px 1.4px at 34% 58%, var(--cyan), transparent),
    radial-gradient(1px 1px at 66% 40%, #ffffff, transparent);
  animation: twinkle 2.2s ease-in-out infinite alternate;
}

.form-success>* {
  position: relative;
}

.form-success__label {
  color: var(--cyan);
  font-size: 0.6875rem;
}

@keyframes success-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}

@keyframes twinkle {
  from {
    opacity: 0.35;
  }

  to {
    opacity: 1;
  }
}

.form__error-detail {
  display: block;
  margin-top: 8px;
  font-size: 0.6875rem;
  color: #ffb3b3;
  overflow-wrap: anywhere;
}

.contact__info {
  display: grid;
  gap: 14px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.info {
  --sx: 50%;
  --sy: 50%;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    radial-gradient(260px circle at var(--sx) var(--sy), rgba(23, 174, 191, var(--so, 0)), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  transition: border-color 0.3s;
}

.info:hover {
  --so: 0.12;
  border-color: rgba(23, 174, 191, 0.45);
}

.info__label {
  color: var(--cyan);
  font-size: 0.6875rem;
  margin-bottom: 6px;
}

.info__label:not(:first-child) {
  margin-top: 16px;
}

.info__big {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

a.info__big:hover {
  color: var(--cyan);
}

.info address {
  font-style: normal;
  color: var(--on-dark-muted);
}

/* =========================================================
   PROJECTS
   ========================================================= */
.stats.stats--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
}

.work--all {
  padding-top: clamp(72px, 10vh, 120px);
}

.filters-bar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(36px, 6vh, 64px);
  padding: 10px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(15, 20, 40, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  width: max-content;
  max-width: 100%;
}

.filters-bar__label {
  padding-left: 8px;
  color: var(--on-dark-muted);
  font-size: 0.6875rem;
}

.filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}

.filter:hover {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.06);
}

.filter[aria-pressed="true"] {
  background: var(--cyan);
  color: var(--navy);
}

.filter__n {
  font-size: 0.6875rem;
  opacity: 0.7;
}

.work__grid {
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.work__grid.is-leaving {
  opacity: 0;
  transform: translateY(16px);
}

/* =========================================================
   PROJECT DETAIL
   ========================================================= */
.page-hero--project {
  min-height: 0;
  padding-bottom: clamp(56px, 8vh, 96px);
}

.proj-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.chips--start {
  justify-content: flex-start;
  max-width: none;
  margin-top: 20px;
}

.proj-hero__cover {
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) + 6px);
  background: var(--white);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.proj-hero__cover img {
  width: 64%;
  height: 64%;
  object-fit: contain;
}

.showcase {
  padding-bottom: clamp(64px, 10vh, 120px);
}

.showcase__frame {
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line-dark);
  background: var(--white);
  max-height: 80vh;
  display: grid;
  place-items: center;
}

.showcase__frame img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  transform: scale(var(--zs, 1));
}

.overview {
  padding-block: clamp(80px, 12vh, 140px) 0;
}

.overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr);
  gap: clamp(24px, 5vw, 80px);
}

.overview__more {
  margin-top: 20px;
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

.features {
  padding-block: clamp(80px, 12vh, 140px);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(32px, 6vh, 64px);
  border-bottom: 1px solid var(--line-light);
}

.feature--flip .feature__img {
  order: 2;
}

.feature__img {
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line-light);
  background: var(--white);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
}

.feature__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--zs, 1));
}

.feature__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.9;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.feature h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.feature p {
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

.next-project {
  display: block;
  position: relative;
  padding-block: clamp(72px, 12vh, 140px);
  border-top: 1px solid var(--line-dark);
  overflow: hidden;
  isolation: isolate;
}

.next-project::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}

.next-project:hover::before {
  transform: scaleY(1);
}

.next-project__inner {
  display: grid;
  gap: 8px;
}

.next-project__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  line-height: 1;
  transition: transform 0.6s var(--ease);
}

.next-project:hover .next-project__name {
  transform: translateX(16px);
}

.next-project__sub {
  color: var(--on-dark-muted);
  transition: color 0.3s;
}

.next-project:hover .next-project__sub,
.next-project:hover .label {
  color: var(--white);
}

.story__more {
  justify-self: start;
}

/* =========================================================
   PAGES — RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {

  .intro__grid,
  .mv__grid,
  .brand__grid,
  .contact__grid,
  .proj-hero,
  .overview__grid,
  .feature {
    grid-template-columns: 1fr;
  }

  .feature--flip .feature__img {
    order: 0;
  }

  .caps__head {
    display: none;
  }

  .caps__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .caps__price {
    text-align: left;
  }

  .contact__info {
    position: static;
  }

  .swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats.stats--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats--3 .stat:nth-child(2) {
    border-right: 1px solid var(--line-dark);
  }

  .stats--3 .stat:nth-child(3) {
    padding-left: 20px;
    border-top: 0;
  }

  .filters-bar {
    width: 100%;
    border-radius: 18px;
  }
}

@media (max-width: 640px) {
  .form__row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 86svh;
  }

  .scroll-hint {
    display: none;
  }

  .filters-bar__label {
    display: none;
  }

  .roller.roller--xl {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .stats--3 .stat {
    padding-left: 12px;
    padding-right: 12px;
  }

  .stats--3 .stat:first-child {
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-title .ch {
    transform: none;
  }

  .statement .w {
    opacity: 1;
  }

  .brand__visual img {
    animation: none;
  }
}

/* =========================================================
   COMPANY PROFILE SECTIONS (data/company.json)
   ========================================================= */
/* ---------- timeline: a line that draws itself as you scroll ---------- */
.timeline {
  position: relative;
  padding-block: clamp(96px, 14vh, 160px);
  overflow: hidden;
}

.timeline__lead {
  margin-top: 12px;
  max-width: 36rem;
}

.timeline__list {
  --draw: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 7vh, 80px);
  padding-top: 72px;
}

.js .timeline__list {
  --draw: 0;
}

.timeline__list::before,
.timeline__list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  height: 2px;
  background: var(--line-dark);
}

.timeline__list::after {
  background: var(--grad);
  box-shadow: 0 0 18px rgba(23, 174, 191, 0.55);
  transform: scaleX(var(--draw));
  transform-origin: left;
}

.tl {
  position: relative;
  padding-top: 30px;
}

.tl__year {
  position: absolute;
  top: -72px;
  left: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.2vw, 3.75rem);
  line-height: 1;
  color: var(--cyan);
  transition: color 0.6s var(--ease), -webkit-text-stroke-color 0.6s var(--ease);
}

.js .tl:not(.is-lit) .tl__year {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.35);
}

.tl__dot {
  position: absolute;
  top: -7px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 6px rgba(23, 174, 191, 0.18);
  transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s;
}

.js .tl:not(.is-lit) .tl__dot {
  background: var(--navy-950);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.tl--now.is-lit .tl__dot,
.tl--now .tl__dot {
  animation: pulse 2.2s infinite;
}

.tl__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
}

.tl__now {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 0.625rem;
  vertical-align: middle;
}

.tl__text {
  margin-top: 8px;
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

/* ---------- tech stack ---------- */
.stack {
  padding-block: clamp(96px, 14vh, 160px);
}

.stack__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 5vh, 56px);
}

.stack__group {
  padding: 24px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
}

.stack__group:nth-child(3) {
  grid-column: 1 / -1;
}

.stack__name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--teal-ink);
  font-size: 0.75rem;
  font-weight: 500;
}

.stack__name span {
  color: var(--ink-muted);
}

.stack__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack__chips li {
  padding: 8px 14px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}

.stack__chips li:hover {
  transform: translateY(-3px);
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.js .stack__group .stack__chips li {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
}

.js .stack__group.is-in .stack__chips li {
  animation: chip-in 0.5s var(--ease) both;
  animation-delay: calc(var(--k, 0) * 28ms + 120ms);
}

@keyframes chip-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.stack__note {
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

/* ---------- more capabilities (projects page) ---------- */
.more {
  padding-block: clamp(96px, 14vh, 160px);
}

.more__lead {
  margin-top: 12px;
  max-width: 40rem;
}

.more__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 5vh, 56px);
}

.more-card {
  --sx: 50%;
  --sy: 50%;
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-light);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(320px circle at var(--sx) var(--sy), rgba(23, 174, 191, var(--so, 0)), transparent 70%),
    var(--white);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.more-card:hover {
  --so: 0.12;
  border-color: rgba(26, 141, 171, 0.45);
  transform: translateY(-4px);
}

.more-card__num {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--teal-ink);
  font-size: 0.75rem;
}

.more-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: 16px;
  padding-right: 32px;
}

.more-card__list {
  display: grid;
  gap: 10px;
}

.more-card__list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-muted);
}

.more-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 10px;
  height: 2px;
  background: var(--grad);
}

.more-card__list a {
  color: var(--teal-ink);
  font-weight: 600;
  white-space: nowrap;
}

.more-card__list a:hover {
  color: var(--navy);
}

/* ---------- small additions ---------- */
.brand__aim {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--cyan);
  max-width: 36rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
}

.info__map {
  display: inline-flex;
  gap: 6px;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 0.75rem;
}

.info__map:hover {
  color: var(--white);
}

.process__scrum {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .timeline__list {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 0;
    padding-left: 34px;
  }

  .timeline__list::before,
  .timeline__list::after {
    top: 0;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline__list::after {
    transform: scaleY(var(--draw));
    transform-origin: top;
  }

  .tl {
    padding-top: 0;
  }

  .tl__year {
    position: static;
    display: block;
    font-size: 2.2rem;
    margin-bottom: 6px;
  }

  .tl__dot {
    top: 10px;
    left: -34px;
  }

  .stack__grid,
  .more__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .timeline__list {
    --draw: 1;
  }

  .js .stack__group .stack__chips li {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   REVEAL
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: inline-block;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
    width: min(52vw, 240px);
    margin-inline: auto;
  }

  .zoom.is-live {
    height: 220vh;
  }

  .hero {
    justify-content: flex-start;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(3) {
    padding-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line-dark);
  }

  .services__inner,
  .story__grid {
    grid-template-columns: 1fr;
  }

  .services__intro {
    position: static;
  }

  .svc__head {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    padding: 20px 8px;
  }

  .svc__price {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .svc__icon {
    grid-column: 3;
    grid-row: 1;
    width: 36px;
    height: 36px;
  }

  .svc__body>p {
    padding-inline: 52px 16px;
  }

  .work__head {
    flex-direction: column;
    align-items: start;
  }

  .work__grid {
    grid-template-columns: 1fr;
  }

  .work__grid>.proj.is-offset {
    margin-top: 0;
  }

  .chips {
    max-width: 45%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .nav__cta {
    display: none;
  }

  .hero__lead {
    font-size: 0.975rem;
  }

  .hero__visual {
    width: min(36vw, 160px);
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  .roller {
    margin-top: 18px;
    flex-wrap: nowrap;
    font-size: 1.15rem;
  }

  .hero__ctas {
    margin-top: 22px;
  }

  .zoom__hint {
    display: none;
  }

  .eyebrow__clock {
    display: none;
  }

  .nav__brand img {
    height: 24px;
  }

  .process__track {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 0;
  }

  .step__num {
    margin-bottom: 12px;
  }

  .proj__meta {
    flex-direction: column;
  }

  .chips {
    justify-content: start;
    max-width: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
  }

}

@media (max-width: 360px) {
  .roller {
    flex-wrap: wrap;
  }
}

/* short phones: drop the intro paragraph so the pinned hero still fits */
@media (max-width: 640px) and (max-height: 760px) {
  .hero__lead {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .story__text .w {
    opacity: 1;
  }

  .hero__title .ch {
    transform: none;
  }
}
