/* Vela Duo: Taupe and Ink. Raleway everywhere, no cursive, no oversized poster lettering. */
:root {
  --taupe: #cdbcae;
  --ink: #2b211c;
  --band: #e8dccf;
  --muted: #4d392d;      /* readable on taupe and band (about 7:1) */
  --rule: rgba(43, 33, 28, 0.22);
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--taupe);
  color: var(--ink);
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--band); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Top bar */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 1240px; margin: 0 auto; padding: 14px 32px;
}
.brand img { height: 58px; width: auto; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.top nav a {
  font-weight: 600; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent;
}
.top nav a:hover { border-bottom-color: var(--ink); }

/* Shared type */
h1, h2, h3 { font-weight: 600; text-transform: uppercase; margin: 0; line-height: 1.2; }
h2 {
  font-size: 13px; letter-spacing: 0.32em; margin-bottom: 40px; display: flex; align-items: center; gap: 18px;
}
h2::after { content: ''; height: 1px; width: 64px; background: var(--ink); opacity: 0.6; }
.eyebrow { font-weight: 600; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 88px 32px; }
.band { background: var(--band); }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-block; padding: 14px 28px; background: var(--ink); color: var(--band);
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--ink); transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--band); }

/* Hero */
.hero {
  max-width: 1240px; margin: 0 auto; padding: 24px 32px 80px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.9rem); letter-spacing: 0.05em; line-height: 1.18; overflow-wrap: break-word; }
.hero .lede { font-weight: 300; font-size: 1.2rem; line-height: 1.7; margin-top: 26px; max-width: 34ch; }
.hero-photo img {
  width: 100%; height: min(74vh, 700px); min-height: 420px; object-fit: cover; object-position: 50% 30%;
  border-radius: 3px; box-shadow: 0 24px 60px -28px rgba(43, 33, 28, 0.55);
}

/* About */
.about-top { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.about .intro { font-weight: 300; font-size: 1.08rem; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 3px; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.person h3 { font-size: 1rem; letter-spacing: 0.14em; }
.person .role { font-weight: 600; font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin: 8px 0 20px; }
.person p { font-weight: 300; font-size: 0.98rem; }

.person-link { margin-top: 1.2em; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; }
.person-link a { text-underline-offset: 4px; }

/* Projects */
.project-list { border-bottom: 1px solid var(--rule); }
.project { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 34px 0; border-top: 1px solid var(--rule); }
.project h3 { font-size: 0.98rem; letter-spacing: 0.12em; line-height: 1.45; }
.project .meta { font-weight: 600; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 10px 0 0; }
.project p { font-weight: 300; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 20px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }

/* Listen */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; }
.video { margin: 0; }
.frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 3px; overflow: hidden; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { font-size: 13px; letter-spacing: 0.04em; margin-top: 12px; color: var(--muted); }

/* Album */
.album-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.album-text p { font-weight: 300; font-size: 1.05rem; }
.album-text h2 { margin-bottom: 26px; }
.pill {
  display: inline-block; border: 1px solid var(--ink); padding: 7px 18px; margin-bottom: 26px !important;
  font-weight: 600 !important; font-size: 11.5px !important; letter-spacing: 0.22em; text-transform: uppercase;
}
.album-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; border-radius: 3px; }

/* Contact */
.contact .wrap { text-align: center; max-width: 760px; }
.contact h2 { justify-content: center; }
.contact p { font-weight: 300; font-size: 1.08rem; }
.contact .btn { margin-top: 8px; font-size: 13px; letter-spacing: 0.12em; text-transform: none; padding: 16px 32px; }

.contact .social { margin-top: 18px; font-weight: 300; font-size: 0.98rem; }
.contact .social a { font-weight: 500; }

.foot { text-align: center; padding: 34px 20px 44px; font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Tablet */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-bottom: 56px; }
  .hero-photo img { height: 520px; }
  .about-top, .album-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo img, .album-photo img { aspect-ratio: 3 / 2; object-position: 50% 30%; }
  .project { grid-template-columns: 1fr; gap: 14px; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { flex-direction: column; align-items: flex-start; padding: 12px 20px; gap: 6px; }
  .brand img { height: 46px; }
  .top nav { gap: 2px 16px; }
  .top nav a { font-size: 10.5px; letter-spacing: 0.12em; }
  .hero { padding: 8px 20px 44px; }
  .hero-photo img { height: 400px; min-height: 0; }
  .wrap { padding: 56px 20px; }
  .people { grid-template-columns: 1fr; gap: 44px; }
  h2 { margin-bottom: 28px; }
  .btn { padding: 13px 22px; }
}

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

/* Thai: use a Thai font, no letter-spacing (it breaks Thai letters), calmer headline size, no forced capitals. */
html[lang="th"] body { font-family: 'Noto Sans Thai', 'Raleway', system-ui, sans-serif; line-height: 1.9; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3, html[lang="th"] .eyebrow, html[lang="th"] .top nav a,
html[lang="th"] .btn, html[lang="th"] .pill, html[lang="th"] .person .role, html[lang="th"] .project .meta, html[lang="th"] .foot {
  font-family: 'Noto Sans Thai', 'Raleway', system-ui, sans-serif; letter-spacing: 0; text-transform: none;
}
html[lang="th"] h1 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.45; }
html[lang="th"] h2 { font-size: 1.15rem; }
html[lang="th"] .eyebrow { font-size: 14px; }
html[lang="th"] .top nav a { font-size: 14px; }
html[lang="th"] .hero .lede { max-width: 38ch; }

/* Language toggle (only present in the preview bundle) */
.lang-link {
  font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-decoration: none; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 999px; padding: 6px 14px; white-space: nowrap;
}
.lang-link:hover { background: var(--ink); color: var(--band); }
html[lang="th"] .lang-link { letter-spacing: 0.08em; }
@media (max-width: 640px) { .top { position: relative; } .lang-link { position: absolute; top: 14px; right: 20px; } }
