:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #f8f7fa;
  --ink-accent: #38265d;
  --accent-wash: #f4f0f8;
  --city-card: #f8f7fa;
  --city-fade: #f8f7fa;
  --ink: #14131a;
  --muted: #57535e;
  --line: #e7e4e8;
  --red: #bc173d;
  --button: #bc173d;
  --button-hover: #a30f31;
  --gutter: clamp(22px, 7.25vw, 113px);
  --chapter: clamp(86px, 10vw, 156px);
  font: 500 16px/1.7 "Noto Sans Thai", Thonburi, Tahoma, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17151c;
  --surface: #201e26;
  --ink-accent: #dbc9f3;
  --accent-wash: #30273d;
  --city-card: #221e29;
  --city-fade: #221e29;
  --ink: #f8f6f9;
  --muted: #ccc5d1;
  --line: #3d3743;
  --red: #ff8199;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
html { scroll-behavior: smooth; scroll-padding-top: 50px; }
a { color: inherit; }
button, summary { font: inherit; cursor: pointer; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; width: 100%; height: auto; }
.shell { width: min(calc(100% - 2 * var(--gutter)), 1280px); margin-inline: auto; }
.icon {
  display: inline-block;
  font: 21px/1 "Material Symbols Outlined";
  font-feature-settings: "liga";
  width: 1em;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
  vertical-align: -.18em;
}
.skip-link { position: fixed; z-index: 5; top: 10px; inset-inline-start: 10px; transform: translateY(-150%); background: var(--bg); padding: 10px 16px; }
.skip-link:focus { transform: none; }
.header { position: relative; z-index: 2; background: var(--bg); }
.header-inner { min-height: 101px; display: flex; align-items: center; gap: clamp(15px, 2.7vw, 46px); }
.brand { width: clamp(78.4px, 7.49vw, 105px); flex: none; }
.brand-night, .menu-toggle { display: none !important; }
[data-theme="dark"] .brand-day { display: none; }
[data-theme="dark"] .brand-night { display: block !important; }
.menu { display: flex; align-items: center; justify-content: flex-end; flex: 1; gap: clamp(14px, 2.05vw, 31px); }
.menu a, .footer a { text-decoration: none; }
.menu a { white-space: nowrap; font-size: clamp(13px, 1.1vw, 16px); font-weight: 700; }
.menu a:hover, .footer a:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 13px; margin-inline-start: auto; }
.icon-button { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); padding: 0; }
.icon-button:hover { background: var(--surface); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 26px;
  min-height: 53px;
  border-radius: 999px;
  color: #fff;
  background: var(--button);
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.button:hover { background: var(--button-hover); transform: translateY(-2px); }
.header-cta { padding: 9px 19px; min-height: 44px; white-space: nowrap; font-size: 14px; }
.text-link { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .42em; font-weight: 800; }
.text-link:hover { color: var(--red); }
.text-link .icon { margin-inline-start: 4px; }
.hero { overflow: clip; }
.hero-layout {
  position: relative;
  min-height: clamp(590px, 57vw, 870px);
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: center;
  padding-block: clamp(56px, 6.5vw, 104px);
}
.hero-copy { position: relative; z-index: 1; animation: entrance .75s both; }
h1 { font-size: clamp(55px, 6.05vw, 95px); font-weight: 800; letter-spacing: -.053em; line-height: 1.11; }
h1 span { color: var(--red); }
.hero-copy p { font-size: clamp(19px, 2.05vw, 29px); margin-top: 26px; line-height: 1.55; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.standard {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 42px;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  font-size: clamp(11px, 1.02vw, 14px); color: var(--muted); line-height: 1.45;
}
.standard .icon { color: var(--red); font-size: 19px; }
.hero-art { position: relative; width: calc(100% + var(--gutter) + 12%); margin-inline-start: -9%; }
.hero-art img { aspect-ratio: 1280 / 853; object-fit: contain; }
.hero-signal {
  position: absolute;
  left: var(--signal-x, 8%);
  top: var(--signal-y, 83%);
  opacity: var(--signal-opacity, 0);
  pointer-events: none;
  width: clamp(4px, .45vw, 7px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px 2px #ff5675, 0 0 13px 5px #f2235e99;
}
[data-theme="dark"] .hero-art, [data-theme="dark"] .process-art { border-radius: 22px; overflow: hidden; }
.chapter { padding-block: var(--chapter); }
#services {
  position: relative;
  isolation: isolate;
  padding-top: clamp(64px, 6.7vw, 102px);
}
#services::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0 calc(-1 * var(--gutter)) auto auto;
  width: min(65%, 740px);
  aspect-ratio: 1.25;
  background: url("assets/decor/services-glass.jpg") center / cover no-repeat;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 92%),
              linear-gradient(to left, #000 30%, transparent 95%);
  mask-composite: intersect;
  opacity: .55;
  mix-blend-mode: multiply;
}
.eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--red); font-weight: 800; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h2 { font-size: clamp(34px, 4.2vw, 62px); line-height: 1.23; font-weight: 800; letter-spacing: -.036em; text-wrap: balance; }
h3 { font-size: clamp(21px, 2.15vw, 31px); line-height: 1.4; font-weight: 800; letter-spacing: -.022em; }
.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(43px, 6.1vw, 87px);
  row-gap: clamp(30px, 5vw, 64px);
}
.service-list article {
  min-width: 0;
  padding-inline: clamp(20px, 4vw, 63px);
}
.service-list article:nth-of-type(3n + 1) { padding-inline-start: 4px; }
.service-list article:nth-of-type(3n) { padding-inline-end: 0; }
.service-list article:not(:nth-of-type(3n + 1)) { border-inline-start: 1px solid var(--line); }
.service-icon { color: var(--red); font-size: 51px; margin-bottom: 16px; }
.service-list h3 a { text-decoration: none; }
.service-list h3 a:hover { color: var(--red); }
.service-list h3 .icon { font-size: 17px; margin-inline-start: 2px; color: var(--red); }
.service-list p { color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); margin-top: 9px; max-width: 31ch; }
.service-toggle {
  display: none;
  grid-column: 1 / -1;
  justify-self: center;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding-inline: 15px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  font-weight: 800;
}
.service-toggle:hover { border-color: var(--red); color: var(--red); }
.service-toggle .more-hide, .service-toggle[aria-expanded="true"] .more-show { display: none; }
.service-toggle[aria-expanded="true"] .more-hide { display: inline; }
.service-toggle[aria-expanded="true"] .disclosure-icon { rotate: 180deg; }
@media (min-width: 1101px) {
  .js .service-toggle { display: inline-flex; }
  .js .service-list:not(.is-expanded) .service-extra { display: none; }
  .js .service-list.is-expanded .service-extra { animation: entrance .48s ease-out var(--service-delay, 0s) both; }
  .service-extra:nth-of-type(5) { --service-delay: .07s; }
  .service-extra:nth-of-type(6) { --service-delay: .14s; }
  .service-extra:nth-of-type(7) { --service-delay: .21s; }
  .service-extra:nth-of-type(8) { --service-delay: .28s; }
}
@media (max-width: 1100px) {
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(15px, 4vw, 55px);
    row-gap: 0;
  }
  .service-list article:nth-of-type(n) {
    padding: clamp(18px, 3vw, 30px) 0;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
}
.process { padding-top: clamp(0px, 1vw, 16px); }
.process-layout { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(36px, 6vw, 91px); margin-top: 45px; }
.process-art img { aspect-ratio: 3 / 2; object-fit: contain; }
.process-list { padding-inline-start: 26px; }
.process-list details { position: relative; border-inline-start: 1px solid var(--line); padding: 8px 0 19px 26px; }
.process-list details::before { content: ""; position: absolute; top: 20px; inset-inline-start: -7px; width: 11px; height: 11px; border-radius: 100%; border: 1px solid var(--red); background: var(--bg); }
.process-list details[open]::before { background: var(--red); }
.process-list summary { font-size: clamp(19px, 2vw, 26px); font-weight: 800; }
.process-list summary:hover { color: var(--red); }
.process-list p, .faq-list p { color: var(--muted); padding-top: 6px; }
.tinted { background: var(--surface); }
.solution-layout, .contact-layout, .faq-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 110px); align-items: start; }
.solution-copy, .contact-layout p, .contact-layout address { color: var(--muted); font-size: 18px; }
.solution-copy ul { padding-inline-start: 23px; margin-block: 22px 25px; }
.solution-copy li + li { margin-top: 9px; }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(38px, 6vw, 78px); text-align: center; }
.numbers div + div { border-inline-start: 1px solid var(--line); }
.numbers dt { color: var(--red); font-size: clamp(40px, 6.3vw, 90px); letter-spacing: -.045em; line-height: 1.1; font-weight: 800; }
.numbers dd { color: var(--muted); margin-top: 8px; }
.customers { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; gap: clamp(18px, 3.6vw, 60px); margin-top: clamp(42px, 6.5vw, 92px); }
.customers img { height: 68px; object-fit: contain; }
[data-theme="dark"] .customers img { background: #fff; border-radius: 8px; padding: 6px; }
.faq-layout { border-top: 1px solid var(--line); grid-template-columns: .8fr 1.2fr; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { color: var(--ink); font-weight: 800; padding-block: 15px; min-height: 48px; }
.faq-list p { padding-inline-end: 30px; padding-bottom: 17px; }
.contact-layout { align-items: end; }
.contact-layout p { margin-top: 13px; }
.contact-layout address { font-style: normal; }
.contact-layout address strong { color: var(--ink); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 29px; color: var(--muted); font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 17px; }
@keyframes entrance {
  from { opacity: .45; transform: translateY(15px); }
  to { opacity: 1; transform: none; }
}
.reveal.is-visible { animation: entrance .65s both; }

@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; gap: 0 16px; padding-block: 9px; min-height: 76px; }
  .menu { flex: 1 0 100%; order: 3; justify-content: flex-start; flex-wrap: wrap; padding: 8px 0 15px; }
  .js .menu { display: none; }
  .js .menu-toggle { display: inline-grid !important; }
}
@media (max-width: 760px) {
  :root { --gutter: 23px; --chapter: 72px; }
  .header-actions { gap: 8px; }
  .header-cta { padding-inline: 12px; }
  .hero-layout { min-height: 0; display: block; padding-block: 52px 0; }
  .hero-copy p { margin-top: 16px; }
  h1 { font-size: clamp(43px, 10.6vw, 72px); }
  .hero-actions { gap: 18px; margin-top: 24px; }
  .hero-actions .button { padding-inline: 17px; min-height: 48px; }
  .standard { margin-top: 26px; }
  .desktop-break { display: none; }
  .hero-art { width: calc(100% + 2 * var(--gutter)); margin: 18px calc(-1 * var(--gutter)) 0; }
  #services { padding-top: 57px; }
  .process-layout, .solution-layout, .faq-layout, .contact-layout { grid-template-columns: 1fr; }
  .service-list { margin-top: 30px; }
  .service-icon { font-size: 32px; margin-bottom: 7px; }
  .service-list h3 { font-size: clamp(16px, 4.25vw, 22px); overflow-wrap: anywhere; }
  .service-list p { font-size: 14px; }
  #services::before { width: 73%; opacity: .4; }
  .process-layout { gap: 22px; margin-top: 22px; }
  .process-list { padding-inline-start: 8px; }
  .customers { grid-template-columns: repeat(3, 1fr); }
  .customers img { height: 52px; }
  .numbers dd { font-size: 13px; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover { transform: none; }
  .hero-signal { display: none; }
}

@media (max-width: 360px) {
  .brand { width: 62px; }
  .header-inner { column-gap: 8px; }
  .header-actions { gap: 6px; }
}

.service-label {
  display: flex; align-items: center; gap: 9px;
  color: var(--red); font-size: .88rem; font-weight: 800;
  min-height: 51px; margin-bottom: 16px;
}
.service-label::before { content: ""; width: 21px; height: 2px; background: currentColor; }
.smart-city-examples, .audience-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px); margin-top: clamp(34px, 5vw, 68px);
}
.audience-grid article { border-top: 1px solid var(--line); padding-top: 21px; }
.smart-city-examples h3, .audience-grid h4 { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.4; margin: 0 0 9px; }
.smart-city-examples p, .audience-grid p { color: var(--muted); }
.audiences { margin-top: clamp(54px, 8vw, 104px); }
.audience-grid { margin-top: clamp(22px, 3vw, 44px); }
.smart-city { padding-bottom: clamp(76px, 7.7vw, 112px); }
.smart-city + #why { padding-top: clamp(26px, 4vw, 60px); border-top: 1px solid var(--line); }

.menu-toggle, .menu-close {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 48px;
  height: 48px;
  place-items: center;
}
.menu-glyph { width: 29px; height: 24px; position: relative; display: block; }
.menu-glyph > span {
  position: absolute; inset-inline-end: 0;
  height: 2px; border-radius: 999px; background: currentColor;
  transition: width .24s ease, transform .25s ease;
}
.menu-glyph > span:nth-child(1) { top: 4px; width: 29px; }
.menu-glyph > span:nth-child(2) { top: 11px; width: 18px; background: var(--red); }
.menu-glyph > span:nth-child(3) { top: 18px; width: 24px; }
.menu-toggle:hover .menu-glyph > span, .menu-toggle:focus-visible .menu-glyph > span { width: 29px; }
.menu-dialog {
  position: fixed; inset: 0; margin: 0; border: 0; padding: 0;
  width: 100%; height: 100dvh; max-width: none; max-height: none;
  background: var(--bg); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-dialog[open] { display: grid; grid-template-rows: auto 1fr; animation: menu-arrive .26s ease-out; }
.menu-dialog::backdrop { background: var(--bg); }
.menu-active { overflow: hidden; }
.menu-dialog-top { min-height: 76px; display: flex; justify-content: space-between; align-items: center; padding-block: 10px; }
.menu-close { display: grid; }
.menu-close .menu-glyph > span:nth-child(1) { top: 11px; rotate: 45deg; }
.menu-close .menu-glyph > span:nth-child(2) { opacity: 0; }
.menu-close .menu-glyph > span:nth-child(3) { top: 11px; width: 29px; rotate: -45deg; }
.menu-dialog-content { align-self: center; text-align: center; padding-block: 28px max(60px, env(safe-area-inset-bottom)); }
.fullscreen-nav { display: grid; justify-items: center; gap: clamp(7px, 2vh, 21px); margin-bottom: clamp(25px, 5vh, 51px); }
.fullscreen-nav a { text-decoration: none; font-size: clamp(24px, 4.7vw, 44px); font-weight: 800; line-height: 1.25; padding: 6px 10px; }
.fullscreen-nav a:hover { color: var(--red); }
@keyframes menu-arrive { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .audience-grid { grid-template-columns: 1fr; }
  .service-label { min-height: auto; margin-bottom: 10px; }
}


.city-visual {
  position: relative;
  margin: clamp(28px, 4.2vw, 62px) auto 0;
  max-width: 930px;
  overflow: hidden;
  border-radius: clamp(12px, 2vw, 24px);
}
.city-visual img { aspect-ratio: 3 / 2; object-fit: contain; }
.city-signal {
  position: absolute; width: clamp(5px, 1vw, 14px); aspect-ratio: 1;
  border: 2px solid #d81949; border-radius: 50%; background: #ffe4ea;
  translate: -50% -50%; opacity: 0; pointer-events: none;
}
.city-signal-civic { top: 64%; left: 31%; }
.city-signal-street { top: 52.7%; left: 53.1%; }
.city-signal-water { top: 66.7%; left: 65.4%; }
.city-visual.is-visible .city-signal { animation: city-signal 1.5s ease-out .25s 2 both; }
.city-visual.is-visible .city-signal-street { animation-delay: .6s; }
.city-visual.is-visible .city-signal-water { animation-delay: .95s; }
@keyframes city-signal {
  0% { opacity: 0; scale: .45; }
  27% { opacity: 1; scale: 1; box-shadow: 0 0 0 2px #d819493f; }
  100% { opacity: 0; scale: 1.6; box-shadow: 0 0 0 18px transparent; }
}
.brand-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 6vw, 87px); margin-top: clamp(36px, 6vw, 86px); }
.brand-stories article { border-top: 1px solid var(--line); padding-top: 25px; }
.brand-stories h3 { font-size: clamp(32px, 4.2vw, 56px); }
.brand-stories p { margin: 9px 0 20px; max-width: 39ch; color: var(--muted); }
@media (max-width: 760px) {
  .brand-stories { grid-template-columns: 1fr; }
}


.process-list summary, .faq-list summary {
  display: flex; justify-content: space-between; align-items: center;
  gap: 11px; list-style: none;
}
summary::-webkit-details-marker { display: none; }
.disclosure-icon { color: var(--red); font-size: 21px; transition: rotate .2s ease; }
details[open] > summary .disclosure-icon { rotate: 180deg; }
.smart-city .solution-copy .text-link { display: inline-flex; align-items: center; margin-top: 16px; }
.address-icon {
  display: grid; place-items: center; width: 42px; height: 42px;
  font-size: 24px; border-radius: 12px; color: var(--ink-accent);
  background: var(--accent-wash); margin-bottom: 14px;
}
.contact-icon { color: var(--ink-accent); }
#brands h2 { max-width: 24ch; }
@media (max-width: 760px) {
  .solution-copy, .contact-layout p, .contact-layout address { font-size: 17px; }
  .smart-city .solution-layout { gap: 18px; }

  .contact-layout address { border-top: 1px solid var(--line); padding-top: 22px; }
}


.smart-city-examples { gap: clamp(14px, 2.1vw, 30px); }
.city-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(250px, 26vw, 345px);
  padding: clamp(19px, 2.5vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--city-card);
}
.city-card::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 20% 0 0;
  background: var(--card-image) right bottom / cover no-repeat;
  mask-image: linear-gradient(150deg, transparent 21%, #000 90%);
  mix-blend-mode: multiply;
  opacity: .73;
}
.city-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, var(--city-fade) 15%, transparent 77%);
}
.city-card--civic { --card-image: url("assets/decor/civic.jpg"); }
.city-card--water { --card-image: url("assets/decor/water.jpg"); }
.city-card--planning { --card-image: url("assets/decor/planning.jpg"); }
.city-card p { max-width: 36ch; }
[data-theme="dark"] #services::before { mix-blend-mode: screen; opacity: .09; }
[data-theme="dark"] .city-card::before { mix-blend-mode: lighten; opacity: .21; }
@media (max-width: 860px) {
  .smart-city-examples { grid-template-columns: 1fr; gap: 15px; }
  .city-card { min-height: 230px; }
  .city-card::before { inset: 7% 0 0 28%; }
}
