@font-face {
  font-family: Inter;
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Thai Looped";
  src: url("fonts/noto-sans-thai-looped.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

:root {
  color-scheme: light;
  --page: #fcfdfb;
  --surface: #f1f6f4;
  --text: #172725;
  --muted: #485c57;
  --line: #d0ded9;
  --accent: #11696b;
  --accent-hover: #0b5759;
  --on-accent: #fff;
  --art-background: radial-gradient(ellipse at 73% -18%, #f4ffff, transparent 62%),
    linear-gradient(165deg, #bedfda 18%, #e8eee2);
  --art-grid: #416d6820;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0a1010;
  --surface: #101a19;
  --text: #f1f6f4;
  --muted: #b7c7c3;
  --line: #2a3b37;
  --accent: #6fe0ed;
  --accent-hover: #a6edf4;
  --on-accent: #071313;
  --art-background: radial-gradient(ellipse at 73% -18%, #94bfc0 0%, #246c70 18%, transparent 62%),
    radial-gradient(ellipse at 96% 65%, #32371d, transparent 60%),
    linear-gradient(120deg, #001315, #102e2b 62%, #151b11);
  --art-grid: #c9eef214;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 1.0625rem/1.7 Inter, "Noto Sans Thai Looped", system-ui, Tahoma, sans-serif;
}
h1, h2, h3, p, ol { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.7vw, 4.75rem); line-height: 1.1; letter-spacing: -.035em; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(1.8rem, 3.1vw, 2.65rem); line-height: 1.25; letter-spacing: -.025em; }
h3 { font-size: 1.25rem; line-height: 1.45; letter-spacing: -.01em; }
p { color: var(--muted); }
html:lang(th) body { line-height: 1.85; }
html:lang(th) :is(h1, h2, h3) { line-height: 1.4; letter-spacing: normal; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(88%, 70rem); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: .5rem; z-index: 1; padding: .5rem; background: var(--surface); }

/* Navigation and preferences */
header { border-bottom: 1px solid var(--line); }
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 4.75rem;
}
.logo {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.3;
}
nav, .nav-tools, .language:not([hidden]) { display: flex; align-items: center; }
nav { justify-content: center; gap: clamp(1rem, 2.5vw, 2rem); }
nav a, footer > a:last-child { font-size: .9375rem; }
nav a { padding-block: .5rem; }
nav a:hover, footer > a:last-child:hover { color: var(--accent); }
.nav-tools { gap: .6rem; }
.language button, .theme-toggle {
  min-width: 2.4rem;
  height: 2.5rem;
  padding: .25rem;
  border: 0;
  background: transparent;
  border-radius: .35rem;
  color: var(--muted);
}
.language button { font-size: .875rem; }
.language button[aria-pressed="true"] { color: var(--text); font-weight: 650; background: var(--surface); }
.theme-toggle:not([hidden]) { display: grid; place-items: center; color: var(--text); }
.language button:hover, .theme-toggle:hover { color: var(--accent); }
.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .sun, .theme-toggle[aria-pressed="true"] .moon { display: none; }
.theme-toggle[aria-pressed="true"] .sun { display: block; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(var(--art-grid) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(90deg, var(--art-grid) 1px, transparent 1px) 0 0 / 38px 38px,
    var(--art-background);
  mask-image: linear-gradient(90deg, transparent 36%, black 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 5%;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.hero-copy p { max-width: 42ch; margin-top: 1.25rem; font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 1.75rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 2.875rem;
  padding: .65rem 1.1rem;
  border-radius: .5rem;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1rem;
  font-weight: 550;
}
.button:hover { background: var(--accent-hover); }
.button svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.text-link { font-size: 1rem; text-decoration: underline; text-underline-offset: .3em; }
.text-link:hover { color: var(--accent); }
.art { width: min(100%, 35rem); min-width: 0; margin: 0; justify-self: center; }
.art img { display: block; width: 100%; height: auto; }
.art figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  color: var(--muted);
  font: .6875rem/1.6 Consolas, "Noto Sans Thai Looped", monospace;
  letter-spacing: .08em;
}
.art figcaption strong { color: var(--accent); }
.art figcaption strong::after {
  content: "";
  display: inline-block;
  width: 1.1rem;
  height: 1px;
  margin-inline-start: .55rem;
  vertical-align: middle;
  background: var(--muted);
}
.art figcaption:lang(th) { letter-spacing: normal; }

/* Sections */
.services, .split { padding-block: clamp(3.5rem, 6vw, 5rem); }
.intro { max-width: 64ch; margin-top: .7rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.5rem; }
article { padding-inline: clamp(1.25rem, 3vw, 2.5rem); }
article + article { border-inline-start: 1px solid var(--line); }
article:first-child { padding-inline-start: 0; }
article:last-child { padding-inline-end: 0; }
.icon {
  display: block;
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
article h3 { margin: .85rem 0 .45rem; }
.process, .contact { background: var(--surface); }
.split {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: start;
  gap: 8%;
}
.process ol { list-style: none; padding: 0; }
.process li { display: flex; gap: 1.25rem; padding-block: 1.25rem; }
.process li + li { border-top: 1px solid var(--line); }
.process li:first-child { padding-block-start: 0; }
.process li:last-child { padding-block-end: 0; }
.process li > span { color: var(--accent); font-variant-numeric: tabular-nums; }
.process h3 { margin-bottom: .25rem; }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}
details:first-child summary { padding-block-start: .25rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { padding: 0 1rem 1.25rem 0; }
.contact .wrap, footer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.contact .wrap { padding-block: clamp(3rem, 5vw, 4.5rem); }
.contact p { margin-top: .65rem; }
.contact .button { white-space: nowrap; }
footer { padding-block: 1.6rem; }
footer .logo { font-size: 1.15rem; }

@media (max-width: 52rem) {
  .nav { grid-template-columns: 1fr auto; gap: .25rem 1rem; padding-top: .75rem; }
  .nav nav { grid-column: 1 / -1; grid-row: 2; padding-bottom: .4rem; }
  .nav-tools { grid-column: 2; grid-row: 1; }
}
@media (max-width: 45rem) {
  .wrap { width: 90%; }
  .hero-grid, .cards, .split { grid-template-columns: 1fr; }
  .hero-grid { gap: 1.25rem; padding-block: 2.75rem 1.5rem; }
  .hero::before { mask-image: linear-gradient(0deg, black 25%, transparent 48%); }
  .art { width: min(100%, 27rem); }
  .cards { margin-top: 1.5rem; }
  .cards article { padding: 1.5rem 0; }
  article + article { border-inline-start: 0; border-top: 1px solid var(--line); }
  .cards article:last-child { padding-block-end: 0; }
  .split { gap: 1.5rem; }
  .contact .wrap { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 30rem) {
  .logo { font-size: 1.25rem; }
  .logo img { width: 1.75rem; height: auto; }
  nav { justify-content: space-between; gap: .4rem; }
  .nav-tools { gap: .1rem; }
  .language button, .theme-toggle { min-width: 2.1rem; }
  .actions { gap: 1rem; }
  .button { padding-inline: .85rem; }
  footer .logo { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
