@font-face {
  font-family: Anuphan;
  src: url('assets/fonts/anuphan-latin.woff2') format('woff2');
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Anuphan;
  src: url('assets/fonts/anuphan-thai.woff2') format('woff2');
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

:root {
  color-scheme: light;
  font-family: Anuphan, system-ui, sans-serif;
  font-synthesis: none;
  --paper: #f5f7f9;
  --white: #fff;
  --ink: #11171d;
  --muted: #47525d;
  --green: #315c39;
  --accent: #cfff57;
  --wash: #e9eef1;
  --line: #d9dfe4;
  --dark: #0c1014;
  --project: #eef5e9;
  --gutter: clamp(1.25rem, 5.2vw, 6.25rem);
  --header: 4.5rem;
  --ease-out: cubic-bezier(.2, .72, .24, 1);
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + .85rem);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, ul { margin: 0; }
button, select, textarea { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { color: var(--ink); background: var(--accent); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
main:focus, section:focus, article:focus { outline: none; }
[data-reveal]:focus-within, [data-reveal]:focus-within > * { opacity: 1 !important; transform: none !important; }

.shell {
  width: min(calc(100% - var(--gutter) * 2), 92rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: 1rem;
  translate: 0 -200%;
  padding: .65rem 1rem;
  background: var(--ink);
  color: var(--white);
}

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

.site-header {
  --bar-bg: #f5f7f9f2;
  --bar-ink: var(--ink);
  --bar-muted: var(--muted);
  --bar-line: var(--line);
  --bar-active: var(--wash);
  z-index: 5;
  position: sticky;
  top: 0;
  color: var(--bar-ink);
  background: var(--bar-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bar-line);
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}

.site-header[data-hero] {
  --bar-bg: #0c1014f5;
  --bar-ink: #f7fafc;
  --bar-muted: #dfe5e9;
  --bar-line: #ffffff36;
  --bar-active: #ffffff1e;
}

.site-header[data-hero] :focus-visible, .hero :focus-visible { outline-color: var(--accent); }
.site-header[data-hero] .header-logo { filter: invert(1) hue-rotate(180deg); }
.site-header[data-hero] .reading-progress { background: var(--accent); }

.reading-progress {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.header-inner {
  min-height: var(--header);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(.8rem, 2.1vw, 2.7rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  width: fit-content;
  text-decoration: none;
}

.brand img { flex: none; height: auto; }
.header-logo { width: clamp(8rem, 10.7vw, 9.75rem); }
.footer-logo { width: clamp(5.6rem, 8vw, 7.25rem); }

.primary-nav, .header-actions, .language {
  display: flex;
  align-items: center;
}

.primary-nav { gap: clamp(.8rem, 1.9vw, 2.65rem); }
.header-actions { gap: clamp(.65rem, 1.9vw, 2rem); justify-self: end; }

.primary-nav a, .footer-inner nav a, .top-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-weight: 550;
  font-size: .98rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.primary-nav a { color: var(--bar-muted); }

.primary-nav a:hover, .primary-nav a[aria-current], .footer-inner nav a:hover, .top-link:hover {
  color: var(--bar-ink, var(--ink));
  text-decoration: underline;
  text-underline-offset: .27em;
}

.primary-nav .mobile-project, .menu-toggle { display: none; }

.language {
  gap: 2px;
  flex: none;
  border: 1px solid var(--bar-line);
  border-radius: 100px;
  padding-inline: 2px;
}

.language a {
  display: grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  border-radius: 100px;
  color: var(--bar-muted);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1;
  transition: color 180ms ease, background-color 180ms ease;
}

.language a[aria-current] { background: var(--bar-active); color: var(--bar-ink); }
.language a:hover { background: var(--accent); color: var(--ink); }

.header-project, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  width: fit-content;
  min-height: 3.35rem;
  padding: .63rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, translate 200ms var(--ease-out);
  cursor: pointer;
}

.header-project {
  min-height: 2.8rem;
  padding-inline: 1rem;
  gap: .75rem;
  border-color: var(--bar-line);
  white-space: nowrap;
}

.header-project:hover, .header-project[aria-current] { background: var(--bar-active); border-color: var(--bar-ink); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: var(--accent); border-color: var(--ink); color: var(--ink); }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: var(--accent); }
.button-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--white); }
.button:active { translate: 0 1px; }
.button:disabled { cursor: default; opacity: .63; }

.arrow {
  position: relative;
  display: inline-block;
  flex: none;
  width: .79rem;
  height: .79rem;
}

.arrow::before, .arrow::after {
  content: '';
  position: absolute;
  border-color: currentColor;
}

.arrow::before { inset: 1px 1px auto auto; width: .52rem; height: .52rem; border-style: solid; border-width: 1.35px 1.35px 0 0; }
.arrow::after { inset: .36rem auto auto -.03rem; width: .86rem; border-top: 1.35px solid; rotate: -45deg; }

.back-to-top {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 4;
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff54;
  border-radius: 50%;
  background: #173525;
  color: var(--white);
  box-shadow: 0 4px 15px #0002;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  translate: 0 .55rem;
  transition: opacity 240ms var(--ease-out), translate 240ms var(--ease-out), visibility 240ms, background-color 180ms ease, color 180ms ease;
}

.back-to-top[data-visible], .back-to-top:focus-visible { opacity: 1; visibility: visible; translate: 0 0; }
.back-to-top:hover { background: var(--accent); color: var(--ink); }
.top-arrow { position: relative; display: block; width: 1rem; height: 1rem; }
.top-arrow::before, .top-arrow::after { content: ''; position: absolute; }
.top-arrow::before { inset: .05rem auto auto .225rem; width: .55rem; height: .55rem; border: solid; border-width: 1.6px 0 0 1.6px; rotate: 45deg; }
.top-arrow::after { inset: .045rem auto 0 calc(50% - .8px); border-left: 1.6px solid; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--dark);
  color: var(--white);
}

.hero-visual, .hero-shot {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-shot img {
  position: absolute;
  inset: -5%;
  width: 110%;
  max-width: none;
  height: 110%;
  object-fit: cover;
  object-position: 58% 48%;
  filter: saturate(.72);
}

.hero-shot-detail { opacity: 0; }
.hero-shot-detail img { object-position: 64% 52%; }

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, #070b10f2 0%, #080c11c9 36%, #090e148f 62%, #0a0f165e 100%),
    linear-gradient(0deg, #070b10fb, #070b1000 56%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(42rem, calc(100svh - var(--header)));
  padding-block: clamp(5rem, 8vh, 7rem) clamp(5rem, 10vh, 8rem);
}

.hero-copy { width: min(100%, 55rem); }

.kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}

.kicker::before {
  content: '';
  flex: none;
  width: .52rem;
  height: .52rem;
  border-radius: 50%;
  background: var(--green);
}

.hero .kicker { color: #e4ebf0; }
.hero .kicker::before { background: var(--accent); }

.hero-title {
  margin: .23em 0 .14em -.04em;
  color: #f8fafb;
  font-size: clamp(6rem, 10.45vw, 11rem);
  font-weight: 700;
  line-height: .87;
  letter-spacing: -.057em;
}

:lang(th) .hero-title {
  font-size: clamp(4.75rem, 8.8vw, 9.35rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.048em;
}

.hero-line {
  display: block;
  overflow: clip;
  margin-block: -.12em -.11em;
  padding: .13em .13em .12em .045em;
}

.hero-line-text { display: block; }
.hero-line:last-child .hero-line-text { color: var(--accent); }

.hero-description {
  max-width: 32rem;
  margin-block: 1.5rem 1.65rem;
  color: #e0e7ed;
  font-size: clamp(1.12rem, 1.6vw, 1.38rem);
  line-height: 1.53;
}

.hero-art {
  position: absolute;
  z-index: 1;
  top: calc(var(--art-top) - var(--art-size) * .5);
  width: var(--art-size);
  aspect-ratio: 1;
  pointer-events: none;
}

.hero-art-main { --art-top: 41.5%; --art-size: clamp(23rem, 44vw, 46rem); right: clamp(.5rem, 4.3vw, 5rem); }
.hero-art-watermark { --art-top: 66%; --art-size: clamp(41rem, 79vw, 83rem); right: -24vw; opacity: .18; }
.hero-art-echo { --art-top: 20%; --art-size: clamp(7rem, 16vw, 17rem); right: 37vw; opacity: .28; }

.hero-melon {
  width: 100%;
  height: 100%;
}

.hero-art-main .hero-melon {
  opacity: .88;
  filter: drop-shadow(0 0 1.15rem #b9ef553d);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: .7rem;
  left: 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 3.45rem;
  height: 4.5rem;
  color: #fff;
}

.cue-track {
  position: relative;
  width: 1px;
  height: 2.85rem;
  overflow: hidden;
  background: #edf4ff83;
  transition: background-color 200ms ease;
}

.scroll-cue:hover .cue-track { background: var(--accent); }

.cue-signal {
  position: absolute;
  inset: 0 0 auto;
  height: 1rem;
  background: var(--accent);
}

.origin {
  position: relative;
  overflow: clip;
  isolation: isolate;
  padding-block: clamp(5rem, 9vw, 9rem);
  background: var(--white);
}

.section-watermark {
  position: absolute;
  z-index: -1;
  height: auto;
  filter: saturate(.65) brightness(.49);
  pointer-events: none;
}

.origin-mark { top: clamp(1.6rem, 4vw, 4rem); right: -4rem; width: min(45vw, 35rem); opacity: .09; }
.solutions-mark { top: 2.8rem; right: 3vw; width: clamp(12rem, 29vw, 29rem); opacity: .115; }
.applications-mark { top: 1.6rem; left: -5rem; width: min(29vw, 25.5rem); opacity: .125; filter: none; }
.project-mark { top: 2rem; right: -1.9rem; width: clamp(12rem, 31vw, 29rem); opacity: .11; }

.origin-inner {
  display: grid;
  grid-template-columns: minmax(7.5rem, .22fr) minmax(0, 1fr);
  align-items: baseline;
  column-gap: clamp(1.7rem, 4vw, 5rem);
  row-gap: 1.8rem;
}

.origin-title {
  color: var(--ink);
  font-size: clamp(3.5rem, 8.35vw, 8.65rem);
  font-weight: 700;
  letter-spacing: -.052em;
  line-height: .95;
}

.origin-title span, .origin-title mark { display: inline-block; }
.origin-plus { color: var(--green); font-weight: 530; }

.origin-highlight {
  --highlight-sweep: 1;
  position: relative;
  isolation: isolate;
  padding: .07em .08em .08em .065em;
  background: none;
  color: var(--ink);
}

.origin-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleX(var(--highlight-sweep, 1));
  transform-origin: left;
}

.origin-story {
  grid-column: 2;
  max-width: 47rem;
  color: var(--muted);
  font-size: clamp(1.17rem, 1.78vw, 1.48rem);
  line-height: 1.61;
}

.origin-story p + p { margin-top: .9em; }

.values {
  margin-top: clamp(3.2rem, 7.2vw, 6.75rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.5rem, 3.5vw, 2.8rem);
}

.values-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.4rem 2rem;
  margin-bottom: 1.65rem;
}

.values-header h3 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 660; line-height: 1.12; letter-spacing: -.038em; }
.values-header p { max-width: 28rem; color: var(--muted); font-size: 1.05rem; line-height: 1.53; }

.values-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  border-block: 1px solid var(--line);
}

.value { padding: 1.2rem clamp(.65rem, 1.7vw, 1.65rem) 1.65rem; }
.value:first-child { padding-left: 0; }
.value:last-child { padding-right: 0; }
.value + .value { border-left: 1px solid var(--line); }

.value-initial {
  display: block;
  margin-block: 0 .55rem;
  color: var(--green);
  font-size: clamp(3.6rem, 6vw, 5.6rem);
  font-weight: 650;
  letter-spacing: -.075em;
  line-height: 1;
}

.value h4 { font-weight: 670; font-size: clamp(.95rem, 1.35vw, 1.25rem); line-height: 1.25; }
.value p { margin-top: .52rem; color: var(--muted); font-size: .99rem; line-height: 1.48; }

.solutions {
  --solution-line: #cbdcc5;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #f1f7ee;
  border-top: 1px solid var(--solution-line);
  padding-block: clamp(4.7rem, 9vw, 8.4rem);
}

.section-title {
  margin: .21em 0 0 -.035em;
  font-size: clamp(3.75rem, 7.5vw, 8.15rem);
  font-weight: 700;
  letter-spacing: -.054em;
  line-height: .97;
}

:lang(th) .section-title { letter-spacing: -.04em; line-height: 1.08; }
.section-title span { display: block; }

.applications-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.05rem 2rem;
  margin-bottom: clamp(2.3rem, 5vw, 4.65rem);
}

.solutions-header { margin-bottom: clamp(1.8rem, 3.7vw, 3.3rem); }
.solutions-header::before { content: ''; display: block; width: 3.2rem; height: .3rem; margin-bottom: .95rem; background: var(--accent); }
.solutions-header .section-title, .applications-header .section-title { margin-top: 0; }
.solutions-header p, .applications-header p { max-width: 25rem; font-size: clamp(1.08rem, 1.5vw, 1.26rem); line-height: 1.5; color: var(--muted); }
.solutions-header .section-title { color: #173a27; }
.solutions-header p { max-width: 40rem; margin-top: .85rem; }

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

.service {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(1.75rem, 5.4vw, 5.7rem);
  align-items: center;
  min-width: 0;
  padding-block: clamp(1.25rem, 2.8vw, 2.7rem);
  border-bottom: 1px solid var(--solution-line);
}

.service-frame, .application-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #27323a;
}

.service-frame { aspect-ratio: 1.72; }
.photo-depth { position: absolute; inset: -10% 0; }

.service-photo, .application-photo {
  position: absolute;
  inset: -5% -4%;
  width: 108%;
  height: 110%;
  max-width: none;
  object-fit: cover;
  filter: saturate(.85);
}

.service[data-service="commerce"] img { object-position: 44% 46%; }
.service[data-service="systems"] img { object-position: 52% 48%; }
.service-copy { min-width: 0; }

.service h3 {
  font-size: clamp(1.55rem, 2.65vw, 2.58rem);
  font-weight: 700;
  letter-spacing: -.039em;
  line-height: 1.2;
}

.service p { margin-top: .64rem; color: var(--muted); max-width: 39rem; font-size: 1.09rem; line-height: 1.56; }

.service-link, .application-link {
  display: inline-flex;
  align-items: center;
  gap: .56rem;
  min-height: 2.75rem;
  margin-top: .45rem;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 640;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
  transition: color 190ms ease;
}

.service-link { color: #284e36; }
.service-link:hover { color: #11311d; }
.service-link .arrow, .application-link .arrow { scale: .83; }

.applications {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--dark);
  color: #f7fafc;
  padding-block: clamp(4.75rem, 9vw, 8.4rem);
}

.applications-header p { color: #c6d0d9; }
.applications :focus-visible { outline-color: var(--accent); }

.applications-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr);
  gap: 1.12rem;
}

.application {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: clamp(20.5rem, 27vw, 29rem);
  overflow: hidden;
  background: #19232c;
}

.application:first-child { grid-row: span 2; }
.application-frame { position: absolute; z-index: -1; inset: 0; }
.application-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #070c12fa 0%, #0b1118c7 31%, #0b11182a 75%, #0b111829);
}

.application-copy { padding: clamp(1.4rem, 3.2vw, 3.45rem); width: 100%; }
.application h3 { font-size: clamp(1.75rem, 3vw, 3rem); font-weight: 660; letter-spacing: -.039em; line-height: 1.13; }
.application:first-child h3 { font-size: clamp(2.25rem, 4.2vw, 4.3rem); }
.application p { max-width: 29rem; margin-top: .65rem; color: #e6edf3; font-size: 1.06rem; line-height: 1.53; }
.application-link { color: var(--accent); margin-top: .65rem; }
.application-link:hover { color: var(--white); }

.project {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--project);
  padding-block: clamp(5rem, 9vw, 9rem);
}

.project-inner {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  gap: clamp(2rem, 7.5vw, 8rem);
  align-items: center;
}

.project-description { max-width: 29rem; margin-top: 1.5rem; font-size: 1.18rem; color: var(--muted); line-height: 1.55; }
.project-highlight { background: var(--accent); color: inherit; padding-inline: .035em; box-decoration-break: clone; }
.project .button-dark { background: #173525; }
.project .button-dark:hover { background: var(--accent); }

.brief { display: grid; gap: 1.25rem; min-width: 0; }
.brief-field { display: grid; gap: .44rem; }
.brief label { font-size: 1.04rem; font-weight: 650; }
.select-wrap { position: relative; }

.select-wrap::after {
  content: '';
  position: absolute;
  width: .53rem;
  height: .53rem;
  right: 1.2rem;
  top: calc(50% - .4rem);
  rotate: 45deg;
  border: solid var(--ink);
  border-width: 0 1px 1px 0;
  pointer-events: none;
}

.brief select, .brief textarea {
  border: 1px solid #889c85;
  border-radius: .25rem;
  background: var(--white);
  color: var(--ink);
  padding: .78rem .9rem;
  width: 100%;
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.44;
}

.brief select { min-height: 3.15rem; appearance: none; padding-right: 2.25rem; }
.brief textarea { min-height: 8.5rem; resize: vertical; }
.brief select:invalid, .brief textarea::placeholder { color: var(--muted); }
.brief select:focus-visible, .brief textarea:focus-visible { outline-offset: 2px; }
.brief-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.brief-feedback { min-height: 1.45em; margin-top: -.6rem; color: #2c5125; font-size: .98rem; line-height: 1.45; }

.site-footer { background: var(--paper); }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: clamp(1.2rem, 4vw, 4rem);
  min-height: 6.4rem;
  align-items: center;
  padding-block: 1.3rem;
}

.footer-inner nav { display: flex; gap: clamp(.8rem, 2.5vw, 2.6rem); flex-wrap: wrap; }
.footer-inner small { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.top-link { gap: .6rem; }
.top-link .arrow { scale: .85; }

@media (max-width: 990px) {
  .hero-art-main { --art-top: 36%; --art-size: min(45vw, 29rem); right: 1.7vw; }
  .hero-art-echo { --art-top: 17%; }
  .header-project .arrow { display: none; }
  .origin-inner { grid-template-columns: minmax(6rem, .19fr) minmax(0, 1fr); }
  .project-inner { gap: 2.5rem; }
}

@media (max-width: 760px) {
  :root { --gutter: clamp(1.12rem, 5.4vw, 2.3rem); --header: 4.1rem; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; }
  .header-logo { width: clamp(6.6rem, 30vw, 8rem); }
  .header-actions { gap: .5rem; }
  .header-project { display: none; }
  .primary-nav { grid-row: 2; grid-column: 1/-1; gap: clamp(.8rem, 4vw, 1.75rem); flex-wrap: wrap; }
  .primary-nav .mobile-project { display: inline-flex; }
  .js .primary-nav {
    position: absolute;
    inset: calc(100% + 1px) 0 auto;
    display: none;
    padding: .32rem var(--gutter) .7rem;
    background: var(--bar-bg);
    border-bottom: 1px solid var(--bar-line);
    box-shadow: 0 .8rem 1.2rem #18221819;
  }
  .js .primary-nav[data-open] { display: grid; gap: 0; }
  .js .primary-nav a + a { border-top: 1px solid var(--bar-line); }
  .js .menu-toggle {
    width: 2.75rem;
    min-height: 2.75rem;
    display: grid;
    place-items: center;
    flex: none;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--bar-ink);
    cursor: pointer;
  }
  .menu-toggle:hover { background: var(--bar-active); }
  .menu-toggle span { width: 1.14rem; height: 1rem; display: grid; place-items: center; }
  .menu-toggle span::before, .menu-toggle span::after {
    content: '';
    grid-area: 1 / 1;
    width: 1.14rem;
    height: 1.5px;
    background: currentColor;
    transition: transform 190ms var(--ease-out);
  }
  .menu-toggle span::before { transform: translateY(-.19rem); }
  .menu-toggle span::after { transform: translateY(.19rem); }
  .menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

  .hero-inner { min-height: max(41rem, calc(100svh - var(--header))); padding-block: 7.5rem 5.9rem; }
  .hero-visual::after {
    background: linear-gradient(0deg, #070b10f9, #070b10c9 47%, #0a0f1652 84%),
      linear-gradient(90deg, #080d1382, #080d1314);
  }
  .hero-art { top: var(--art-top); }
  .hero-art-main { --art-top: 8%; --art-size: min(70vw, 25rem); right: -6vw; }
  .hero-art-watermark { --art-top: 26%; --art-size: min(143vw, 40rem); right: -47vw; opacity: .14; }
  .hero-art-echo { --art-top: 8%; --art-size: clamp(5.6rem, 26vw, 12rem); right: auto; left: 4vw; opacity: .27; }
  .hero-title { font-size: clamp(4.5rem, 14.8vw, 7.95rem); }
  :lang(th) .hero-title { font-size: clamp(2.9rem, 14.7vw, 6rem); letter-spacing: -.04em; }
  .hero-description { max-width: 24rem; margin-block: .94rem 1.19rem; font-size: 1.075rem; }
  .button { gap: .86rem; min-height: 3.18rem; padding-inline: 1.18rem; }
  .scroll-cue { bottom: .48rem; }

  .origin { padding-block: 4.65rem; }
  .origin-mark { width: min(69vw, 29rem); top: 1.65rem; right: -3.65rem; }
  .solutions-mark { width: min(53vw, 17rem); top: 1.25rem; right: -.75rem; }
  .applications-mark { width: min(52vw, 17rem); top: 1.25rem; left: -3rem; }
  .project-mark { width: min(55vw, 18rem); top: 1.45rem; right: -2.3rem; }
  .origin-inner { grid-template-columns: minmax(0, 1fr); row-gap: 1.18rem; }
  .origin-title { font-size: clamp(3rem, 10.8vw, 6rem); }
  .origin-story { grid-column: auto; font-size: 1.14rem; }
  .values-header { display: block; }
  .values-header p { margin-top: .55rem; }
  .values-list { grid-template-columns: 1fr; }
  .value, .value:first-child, .value:last-child {
    display: grid;
    grid-template-columns: 3.6rem minmax(0, 1fr);
    align-items: baseline;
    gap: .8rem;
    padding: .9rem 0;
  }
  .value + .value { border-left: 0; border-top: 1px solid var(--line); }
  .value h4 { font-size: 1.15rem; }
  .value p { margin-top: .25rem; }
  .value-initial { margin: 0; }

  .solutions, .applications, .project { padding-block: 4.6rem; }
  .section-title, :lang(th) .section-title { font-size: clamp(2.9rem, 9.7vw, 5.7rem); }
  .solutions-header, .applications-header { margin-bottom: 1.75rem; }
  .applications-header { display: grid; }
  .service { grid-template-columns: minmax(0, 1fr); gap: 1.05rem; padding-block: 1.35rem 1.55rem; }
  .service-frame { aspect-ratio: 1.54; }
  .service h3 { font-size: clamp(1.65rem, 5.6vw, 2.2rem); }
  .service p { font-size: 1.03rem; margin-top: .46rem; }

  .applications-grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .application:first-child { grid-row: auto; }
  .application, .application:first-child { min-height: clamp(22rem, 79vw, 31rem); }
  .application:first-child h3 { font-size: clamp(1.95rem, 7vw, 3.2rem); }
  .application p { font-size: 1rem; }

  .project-inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .project-description { font-size: 1.1rem; margin-top: 1rem; }
  .brief { gap: 1rem; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; }
  .footer-inner nav { grid-column: 1/-1; grid-row: 2; }
  .top-link { justify-self: end; }
}

@media (max-width: 370px) {
  .hero-copy .kicker { font-size: .93rem; }
  .brief-actions .button { font-size: .96rem; padding-inline: .88rem; }
  .language a { min-width: 2.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
