:root {
  color-scheme: light;
  --ink: #011c3a;
  --muted: #5e6e7b;
  --paper: #ffffff;
  --band: #faf8f6;
  --sand: #e6e0d8;
  --line: #e5e7eb;
  --on-ink: #faf8f6;
  --on-ink-muted: #d5dee5;
  --red: #a4060b;
  --sans: 'Sarabun', system-ui, sans-serif;
  --display: 'Montserrat', 'Sarabun', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.75 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; }
.logo { width: 240px; }
.topbar nav { display: flex; gap: 28px; font-size: 15px; }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 104px);
}
h1 { font-size: clamp(34px, 4.7vw, 56px); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
h1 span { display: block; }
.lede { margin-top: 22px; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 34px; }

.mosaic {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
  aspect-ratio: 1 / 1.02;
}
.tile { min-width: 0; min-height: 0; overflow: hidden; background: var(--sand); }
.tile-sand { background: var(--sand); }
.tile-round { border-radius: 50%; aspect-ratio: 1; align-self: center; }
.tile-fact {
  grid-column: 1; grid-row: 1 / span 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px;
  border-radius: 999px 999px 0 0;
  background: var(--ink);
  color: var(--on-ink);
}
.tile-fact strong { font-size: clamp(22px, 2.5vw, 30px); font-weight: 600; line-height: 1.2; }
.tile-fact span { font-size: 13px; line-height: 1.4; color: var(--on-ink-muted); }
.mosaic > .tile-round:nth-child(2) { grid-column: 1; grid-row: 3; }
.tile-arrow {
  grid-column: 1; grid-row: 4;
  display: grid; place-items: center;
  border-radius: 0 40% 0 0;
  background: var(--red);
  color: #fff;
  transition: background .15s;
}
.tile-arrow:hover { background: #870509; }
.tile-photo { grid-column: 2; grid-row: 1 / -1; border-radius: 80px 80px 80px 0; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; mix-blend-mode: multiply; }
.tile-corner { grid-column: 3; grid-row: 1; border-radius: 0 60% 0 0; }
.tile-ink { grid-column: 3; grid-row: 2 / span 2; border-radius: 0 0 999px 999px; background: var(--ink); }
.tile-mark { grid-column: 3; grid-row: 4; display: grid; place-items: center; background: var(--band); box-shadow: inset 0 0 0 1px var(--line); }
.tile-mark svg { width: 56%; }

.button {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background .15s;
}
.button:hover { background: #12365c; }
.button-light { background: var(--on-ink); color: var(--ink); }
.button-light:hover { background: #fff; }
.quiet { font-weight: 500; text-underline-offset: 5px; white-space: nowrap; }

.eyebrow { font-size: 15px; font-weight: 600; line-height: 1.75; color: var(--red); margin-bottom: 12px; }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-bottom: clamp(64px, 8vw, 104px);
}
.about-block {
  padding: clamp(32px, 4.4vw, 56px);
  border-radius: 0 72px 0 0;
  background: var(--ink);
  color: var(--on-ink);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.5;
}
.person { font-size: 20px; margin-bottom: 8px; }
.person strong { font-weight: 600; }
.career { margin-top: 18px; }
.career li { display: grid; grid-template-columns: 64px minmax(0, 1fr); padding: 12px 0; border-top: 1px solid var(--line); font-weight: 500; }
.career b { color: var(--muted); font-weight: 400; }

/* Services */
.services { padding: clamp(56px, 7vw, 88px) 0; background: var(--band); }
.services-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; line-height: 1.35; }
.service-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 44px; }
.service-grid li { padding: 0 20px; border-left: 1px solid var(--line); }
.service-grid li:first-child { padding-left: 0; border-left: 0; }
.service-grid li:last-child { padding-right: 0; }
.icon { display: block; width: 40px; height: 40px; margin-bottom: 18px; fill: none; stroke: var(--red); stroke-width: 1.5; }
.service-grid h3 { font-size: 18px; font-weight: 600; line-height: 1.45; margin-bottom: 8px; }
.service-grid p { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* Workshop */
.section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 32px;
  padding: 48px 0;
}
h2 { font-size: 17px; font-weight: 500; line-height: 1.75; }
.workshop { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 32px; flex-wrap: wrap; }
.workshop h3 { font-size: 20px; font-weight: 500; line-height: 1.5; margin-bottom: 6px; }
.workshop p { color: var(--muted); }

/* Contact */
.contact { background: var(--ink); color: var(--on-ink); padding: clamp(56px, 8vw, 88px) 0; }
.contact-grid { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.contact h2 { font-size: clamp(27px, 3.8vw, 40px); line-height: 1.4; margin-bottom: 10px; }
.contact p { color: var(--on-ink-muted); }
.contact .button { margin-top: 26px; }
.phone { margin-top: 16px; font-size: 15px; }
.phone a { color: var(--on-ink); text-underline-offset: 4px; }
.qr { flex: none; width: 140px; border-radius: 4px; }

.footer { padding: 28px 0 36px; color: var(--muted); font-size: 14px; }

@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
  .service-grid li, .service-grid li:first-child, .service-grid li:last-child { padding: 0 20px 0 0; border-left: 0; }
}

@media (max-width: 760px) {
  .topbar { padding: 20px 0; }
  .logo { width: 180px; }
  .topbar nav a:not([href="#contact"]) { display: none; }
  h1 { font-size: clamp(28px, 9.6vw, 56px); }
  .hero, .about { grid-template-columns: 1fr; gap: 36px; }
  .tile-photo { border-radius: 56px 56px 56px 0; }
  .tile-fact { padding: 10px; }
  .tile-fact span { font-size: 11px; }
  .service-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { grid-template-columns: 1fr; gap: 12px; padding: 44px 0; }
  .qr { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .tile-arrow { transition: none; }
}
