/* Left-aligned, two unequal columns. Hero = statement + boxed form. Services = three cards.
   Close = navy band with the mark. Type: Taviraj + Bai Jamjuree (Thai+Latin). Aloïs asked for boxes,
   rounded corners and a light background texture (2026-11-03). */
:root {
  --navy: #0d1754;      /* sampled from the mark */
  --navy-press: #080f3a;
  --ink: #141a3d;
  --ink-soft: #4b5280;
  --rule: #d4d8ea;
  --paper: #f6f7fb;     /* page ground, cool tint; cards are white on it */
  --card: #ffffff;
  --mist: #eceef7;
  --on-navy: #ffffff;
  --on-navy-soft: #aeb6dc;
  --display: 'Taviraj', 'Times New Roman', serif;
  --body: 'Bai Jamjuree', 'Segoe UI', Tahoma, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --r-card: 16px;       /* outer radius; inner = outer - padding step */
  --r-field: 8px;
  --shadow: 0 1px 2px rgba(13, 23, 84, 0.05), 0 8px 24px rgba(13, 23, 84, 0.06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6;
  background-color: var(--paper);
  /* light texture: a fine dot grid in the page navy, plus a soft wash behind the hero */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(13, 23, 84, 0.09) 1px, transparent 1.5px),
    radial-gradient(60% 40% at 80% 0%, rgba(13, 23, 84, 0.06), transparent 70%);
  background-size: 22px 22px, 100% 900px;
  background-repeat: repeat, no-repeat; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition-property: text-decoration-color, color; transition-duration: 150ms; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--navy); color: var(--on-navy); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
.name { text-decoration: none; color: var(--ink); line-height: 1.25; }
.name b { font-weight: 600; font-size: 17px; letter-spacing: 0.01em; display: block; }
.name span { font-size: 15px; color: var(--ink-soft); }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink); padding: 11px 12px; border-radius: 8px; transition-property: background-color; transition-duration: 150ms; }
.nav a:hover { background: var(--mist); }
@media (max-width: 720px) { .nav { display: none; } }

/* hero: statement + boxed form */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; padding-block: 40px 88px; align-items: start; }
.mark { height: 168px; width: auto; }
.hero h1 { font-size: clamp(38px, 4.8vw, 56px); line-height: 1.12; margin-top: 40px; max-width: 13em; }
.hero .lede { font-size: 19px; color: var(--ink-soft); margin-top: 24px; max-width: 32em; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 24px 64px; } .mark { height: 128px; } .hero h1 { margin-top: 28px; } }

.contact { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 32px; }
.contact h2 { font-size: 30px; }
.contact > p { color: var(--ink-soft); margin-top: 8px; font-size: 17px; max-width: 30em; }
.field { display: grid; gap: 6px; margin-top: 20px; }
.field label { font-size: 15px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--card); width: 100%;
  border: 1px solid var(--rule); border-radius: var(--r-field); padding: 12px 14px; caret-color: var(--navy);
  transition-property: border-color, box-shadow; transition-duration: 150ms;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%230d1754' stroke-width='1.5'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field input::placeholder, .field textarea::placeholder { color: #8a90b3; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a9b0d0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13, 23, 84, 0.12); }
.field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.field .err { display: none; font-size: 15px; color: #a32d1c; }
.field.invalid .err { display: block; }
.field.invalid input { border-color: #a32d1c; }
.send { display: block; width: 100%; margin-top: 28px; min-height: 54px; padding: 12px 20px; font: inherit; font-size: 17px; font-weight: 600;
  color: var(--on-navy); background: var(--navy); border: 0; border-radius: var(--r-field); cursor: pointer;
  transition-property: background-color, transform; transition-duration: 150ms, 120ms; transition-timing-function: var(--ease); }
.send:hover { background: var(--navy-press); }
.send:active { transform: scale(0.96); }
.send:disabled { opacity: 0.5; cursor: default; }
.fail { margin-top: 14px; font-size: 15px; color: #a32d1c; }
.sent { display: none; margin-top: 24px; padding: 22px 24px; background: var(--mist); border-radius: var(--r-field); }
.sent h3 { font-size: 24px; }
.sent p { color: var(--ink-soft); margin-top: 6px; }
.contact.done form { display: none; }
.contact.done .sent { display: block; animation: rise 220ms var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* services: three cards */
.companies { padding-block: 0 96px; }
.companies h2 { font-size: 34px; margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.row { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--r-card); box-shadow: var(--shadow); padding: 28px; }
.row h3 { font-size: 28px; line-height: 1.15; min-height: 64px; display: flex; align-items: center; }
.row .lh { height: 34px; width: auto; }
.with-mark { gap: 12px; }
.wm { height: 64px; width: auto; color: var(--navy); flex: none; }
.wm polygon, .wm path, .wm rect, .wm text { fill: currentColor; }
.wm text { font-family: var(--display); font-size: 223.5px; }
.wordmark { font-family: var(--body); font-weight: 700; font-size: 24px; letter-spacing: 0.01em; }
.row p { color: var(--ink-soft); flex: 1; }
.row .go { display: inline-block; font-weight: 500; padding-block: 10px; margin-top: 4px; align-self: flex-start; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } .row h3 { min-height: 0; } }

/* close */
.close { background: var(--navy); color: var(--on-navy); }
.close .wrap { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: end; padding-block: 56px 48px; }
.close img { height: 150px; width: auto; filter: brightness(0) invert(1); }
.close p { color: var(--on-navy-soft); line-height: 1.7; }
.close p b { color: var(--on-navy); font-weight: 500; display: block; font-size: 19px; }
.close a { color: var(--on-navy); }
.close ::selection { background: var(--on-navy); color: var(--navy); }
.close :focus-visible { outline-color: var(--on-navy); }
@media (max-width: 600px) { .close .wrap { grid-template-columns: 1fr; gap: 28px; } .close img { height: 110px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .contact.done .sent { animation: none; } .send:active { transform: none; } }
