/* IBM Plex Sans Thai Looped, self-hosted (Fontsource 5.3.0), 400/500/600, Thai + Latin.
   License: fonts/OFL-IBMPlexSansThaiLooped.txt
   One family for the whole page: looped Thai reads like official forms (trust),
   Plex's engineered Latin suits the annotated screenshots. */
@font-face { font-family: "Plex Looped"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-thai-looped-thai-400-normal.woff2") format("woff2"); unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family: "Plex Looped"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-thai-looped-latin-400-normal.woff2") format("woff2"); 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: "Plex Looped"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-thai-looped-thai-500-normal.woff2") format("woff2"); unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family: "Plex Looped"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-thai-looped-latin-500-normal.woff2") format("woff2"); 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: "Plex Looped"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-thai-looped-thai-600-normal.woff2") format("woff2"); unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family: "Plex Looped"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-thai-looped-latin-600-normal.woff2") format("woff2"); 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; }

:root {
  --paper: #F6F8FA;
  --surface: #FFFFFF;
  --ink: #1A1F2E;
  --muted: #5D6475;
  --rule: #DCE1E8;
  --accent: #24306B;      /* mo hom indigo: the single accent */
  --on-accent: #FFFFFF;
  --wash: #EEF0F8;
  --band: #24306B;
  --band-text: #FFFFFF;
  --band-muted: #C5CBE6;
  --marker: #FFE36A;      /* used once: the hero's merged step */
  --marker-ink: #1A1F2E;
  --sans: "Plex Looped", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
  --header-h: 100px;
  color-scheme: light dark;
}

/* Dark: derived, every text pair WCAG AA or better. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121620;
    --surface: #1A1F2B;
    --ink: #E7E9F0;
    --muted: #A4AABA;
    --rule: #2E3443;
    --accent: #A9B5F5;
    --on-accent: #141A33;
    --wash: #1E2438;
    --band: #1C2350;
    --band-text: #F2F3FA;
    --band-muted: #B7BEE0;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Type scale: 14 / 17 / 20 / 26 / 34 / 48 */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
}
h1, h2, h3 { font-weight: 600; margin: 0 0 .6em; }
h1 { font-size: clamp(2.125rem, 7vw, 3rem); line-height: 1.3; letter-spacing: -.01em; }
h2 { font-size: clamp(1.625rem, 4.5vw, 2.125rem); line-height: 1.4; }
h3 { font-size: 1.25rem; line-height: 1.5; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.nw { white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; column-gap: 32px; }
.logo { font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; padding: 12px 0; margin-right: auto; }
.nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0 0 10px; white-space: nowrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.lang { order: 2; font-size: .9375rem; color: var(--muted); }
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--ink); text-decoration: underline; }
.lang [aria-current] { color: var(--ink); font-weight: 600; }
.lang .sep { margin: 0 .35em; color: var(--rule); }
@media (min-width: 900px) {
  :root { --header-h: 64px; }
  .site-header .wrap { flex-wrap: nowrap; }
  .logo { padding: 18px 0; }
  .nav { order: 2; width: auto; }
  .nav ul { padding: 0; gap: 28px; }
  .lang { order: 3; }
}

/* Sections */
section { padding: 72px 0; scroll-margin-top: var(--header-h); }
@media (min-width: 900px) { section { padding: 104px 0; } }
.alt { background: var(--surface); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.lead { color: var(--muted); max-width: 40em; }

/* Lists that stand in for "A · B · C": spacing, no dots */
.inline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1em 1.4em; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 10px 24px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; text-decoration: none;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.link { font-weight: 500; min-height: 48px; display: inline-flex; align-items: center; }

/* Image slots: fixed aspect, neutral until the file exists */
.ph { position: relative; overflow: hidden; background: var(--wash); margin: 0; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.r-16x10 { aspect-ratio: 16 / 10; }
.r-phone { aspect-ratio: 9 / 19.5; }
.r-1x1 { aspect-ratio: 1 / 1; }
.frame-desktop { border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px rgb(26 31 46 / .08), 0 18px 40px -18px rgb(10 14 40 / .45); }
.frame-desktop::before { content: ""; display: block; height: 20px; background: var(--surface); border-bottom: 1px solid var(--rule); }
.frame-phone { border: 7px solid #2A3040; border-radius: 30px; overflow: hidden; background: #2A3040; box-shadow: 0 18px 40px -18px rgb(10 14 40 / .5); }
.frame-phone .ph { border-radius: 23px; }
.monogram { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; font-size: 4.5rem; line-height: 1; color: var(--muted); }

/* Hero: text + the workflow, redrawn */
.hero { padding: 48px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 88px 0 112px; } .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.hero .sub { color: var(--muted); font-weight: 500; margin-bottom: 1em; }
.hero .body { font-size: 1.25rem; line-height: 1.7; max-width: 26em; }
.hero .trust { color: var(--muted); font-size: .9375rem; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 34em; }

.redraw { margin: 0; }
.redraw svg { display: block; width: 100%; height: auto; }
.redraw .wide { display: none; }
@media (min-width: 900px) { .redraw .wide { display: block; } .redraw .tall { display: none; } }
.redraw .tall { max-width: 420px; margin: 0 auto; }
.redraw text { font-family: var(--sans); }
.fl-ghost { fill: var(--paper); stroke: var(--rule); stroke-width: 1.5; }
.fl-chip { fill: var(--surface); stroke: var(--rule); stroke-width: 1.5; }
.fl-chip-t { fill: var(--ink); font-weight: 500; }
.fl-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.fl-start { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.fl-end { fill: var(--accent); }
.fl-target { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.fl-mark { fill: var(--marker); }
.fl-target-t { fill: var(--marker-ink); font-weight: 600; }

/* Problems: 2x2, fix written in the accent */
.problems { display: grid; gap: 0 56px; }
@media (min-width: 720px) { .problems { grid-template-columns: 1fr 1fr; } }
.problem { border-top: 1px solid var(--rule); padding: 22px 0 34px; }
.problem p { color: var(--muted); margin-bottom: .5em; }
.problem .fix { color: var(--accent); font-weight: 600; margin: 0; }

/* Services: ruled rows like a form */
.flow > span + span::before {
  content: ""; display: inline-block; width: 18px; height: 1px; background: currentColor;
  vertical-align: middle; margin: 0 .55em; opacity: .7;
}
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.rows li { display: grid; gap: 4px 48px; padding: 22px 0; border-top: 1px solid var(--rule); }
.rows h3 { margin: 0; }
.rows p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .rows li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: baseline; } }
.note { margin: 32px 0 0; padding: 16px 20px; background: var(--wash); border-radius: 8px; max-width: 44em; }

/* Work: the one indigo band; on desktop the phone breaks out of its top edge */
.band { background: var(--band); color: var(--band-text); }
.band h2, .band h3 { color: var(--band-text); }
.band p { color: var(--band-muted); }
.band a { color: var(--band-text); }
.work-row { display: grid; gap: 32px; align-items: center; }
.work-row + .work-row { margin-top: 56px; padding-top: 56px; border-top: 1px solid rgb(255 255 255 / .16); }
.work-text h2 { margin-bottom: 1.2em; }
.work-phone .work-media { order: 2; display: flex; justify-content: center; }
.work-phone .frame-phone { width: min(150px, 40%); }
@media (min-width: 860px) {
  #services { padding-bottom: 232px; }
  .band { padding-top: 96px; }
  .work-row { grid-template-columns: 2fr 3fr; gap: 72px; }
  .work-phone .work-media { order: 0; align-self: start; margin-top: -216px; }
  .work-phone .frame-phone { width: 248px; }
}
.shot-stack { position: relative; padding: 9% 0 64px 7%; }
.shot-stack .back { position: absolute; top: 0; left: 0; width: 78%; }
.shot-stack .front-wrap { position: relative; z-index: 1; }
/* Callout: indigo line + pin with a 2px white halo, readable over the screenshot and the band */
.callout {
  /* pinned to the left edge of the first search result */
  position: absolute; left: 4.4%; top: calc(20px + .81 * (100% - 20px)); bottom: -52px;
  width: 2px; margin: 0; background: #24306B; box-shadow: 0 0 0 2px #FFFFFF;
}
.callout::before {
  content: ""; position: absolute; left: -5px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: #24306B; box-shadow: 0 0 0 2px #FFFFFF;
}
.callout span { position: absolute; bottom: -6px; left: 12px; white-space: nowrap; font-size: .875rem; color: var(--band-text); }

/* Process: one continuous line, five stations */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--accent); }
.steps li { counter-increment: step; position: relative; padding: 0 0 28px 52px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 2px solid var(--accent);
  color: var(--accent); font-weight: 600; font-size: .9375rem; line-height: 1;
}
.steps h3 { margin: 0 0 .2em; font-size: 1.125rem; line-height: 1.6; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 960px) {
  .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 28px; }
  .steps::before { left: 16px; right: 16px; top: 15px; bottom: auto; width: auto; height: 2px; }
  .steps li { padding: 52px 0 0; }
}
.cols { display: grid; gap: 40px 56px; margin-top: 72px; }
@media (min-width: 860px) { .cols { grid-template-columns: 1fr 1fr; } }
.col { border-top: 2px solid var(--ink); padding-top: 20px; }
.col ol, .col ul { margin: 0 0 1em; padding-left: 1.25em; }
.col li { margin-bottom: .6em; padding-bottom: .6em; border-bottom: 1px solid var(--rule); }
.col .excl { color: var(--muted); font-size: .9375rem; margin: 0; }
.after { margin: 48px 0 0; color: var(--muted); max-width: 44em; }

/* About */
.about { display: grid; gap: 32px; align-items: center; }
@media (min-width: 800px) { .about { grid-template-columns: 360px 1fr; gap: 64px; } }
.photo { width: 100%; border-radius: 8px; }
.about-text { max-width: 40em; }

/* Contact */
.contact { max-width: 44rem; }
.hint { color: var(--muted); font-size: .9375rem; margin-top: 28px; }
.bubble {
  position: relative; margin: 8px 0 0 10px; padding: 18px 22px;
  background: var(--wash); border-radius: 18px 18px 18px 4px;
  white-space: pre-line; line-height: 2;
}
.bubble::before {
  content: ""; position: absolute; left: -9px; bottom: 0; width: 14px; height: 14px;
  background: var(--wash); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.blank {
  display: inline-block; vertical-align: middle; line-height: 1.4; margin: 0 .1em; padding: 0 .35em;
  border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule);
  color: transparent; letter-spacing: .02em;
}
.skip { margin: 14px 0 0; font-size: .875rem; }
.skip a { color: var(--muted); }

/* Footer */
footer { padding: 36px 0 44px; background: var(--surface); border-top: 1px solid var(--rule); color: var(--muted); font-size: .9375rem; }
footer p { margin: 0; line-height: 1.9; }

/* 404 */
.notfound { padding: 96px 0 120px; min-height: 60vh; }
