/* =========================================================
   Watcharit Kerdchuen — "Evening Recital" design
   Colors and fonts are set once here, at the top.
   ========================================================= */
:root {
  --bg: #121417;          /* page background (charcoal) */
  --surface: #1a1d21;     /* cards and bands */
  --surface-2: #22262b;
  --line: #2e3238;
  --text: #eee9e1;        /* main text (warm white) */
  --muted: #b9b2a7;       /* softer text */
  --accent: #cba77a;      /* champagne gold */
  --accent-strong: #ddbf96;
  --serif: "Playfair Display", "Trirong", Georgia, serif;
  --sans: "Source Sans 3", "Sarabun", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* keep the footer at the bottom of the screen on short pages */
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
/* Thai pages: English words use the English fonts, Thai letters use Trirong and Sarabun (set in --serif and --sans above) */
/* Thai pages: wide letter spacing breaks Thai letters apart, so Thai labels use only a little */
.eyebrow:lang(th), .hero .title-lines:lang(th), .hero-where:lang(th), .contact-where:lang(th), .services-where:lang(th), .or-direct:lang(th) { letter-spacing: .04em !important; }
.page-label:lang(th) { letter-spacing: .04em; padding-left: .04em; }
.hero .title-lines:lang(th)::before { margin-right: .04em !important; }
/* Thai has no spaces between words, and the browser may split borrowed words (like ออดิชัน) in the middle.
   So in short Thai texts, lines break only at the spaces we typed (see site.js). */
.th-phrase { white-space: nowrap !important; text-wrap-mode: nowrap !important; display: inline !important; margin: 0 !important; }   /* made by site.js on Thai pages: a Thai phrase stays on one line */
.hero-where:lang(th), .contact-where:lang(th), .services-where:lang(th) { font-size: .95rem !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
em, i { font-style: italic; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.eyebrow { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; font-weight: 600; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.page-label { font-size: clamp(1.4rem, 3.4vw, 2.3rem); letter-spacing: .22em; margin-bottom: 1.4rem; padding-left: .22em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.5em;
  border: 1px solid var(--accent); color: var(--accent); text-decoration: none;
  font-size: 1rem; font-weight: 600; border-radius: var(--radius); background: transparent;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: rgba(203,167,122,.12); color: var(--accent-strong); }
.btn.primary { background: var(--accent); color: var(--bg); }
.btn.primary:hover { background: var(--accent-strong); color: var(--bg); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.btn.is-soon { border-color: var(--line); color: var(--muted); cursor: default; background: transparent; }   /* a download with no file yet */
.btn.is-soon .soon { font-weight: 400; font-size: .85em; }

/* ---------- Header / menu ---------- */
.site-header { position: relative; z-index: 20; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; font-family: "Playfair Display", var(--serif); font-size: 1.3rem; line-height: 1.1; color: var(--text); text-decoration: none; white-space: nowrap; }
/* the small line is spaced out so it is exactly as wide as the name above it */
.brand-sub { font-family: "Source Sans 3", system-ui, sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .335em; margin-right: -.335em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
.brand:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #d6cfc4; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; }
.nav .nav-contact { color: var(--bg); background: var(--accent); padding: .45em 1em; border-radius: var(--radius); font-weight: 600; }
.nav .nav-contact:hover, .nav .nav-contact[aria-current="page"] { color: var(--bg); background: var(--accent-strong); text-decoration: none; }
.lang { border: 1px solid var(--accent); border-radius: 999px; padding: .2em .8em; font-size: .85rem !important; color: var(--accent) !important; white-space: nowrap; }
.lang b { font-weight: 700; }
.lang span { opacity: .65; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); font: inherit; font-size: .95rem; padding: .4em .9em; border-radius: var(--radius); cursor: pointer; }

/* The links that fit stay in the header. When the window is too narrow for all of them, site.js moves some
   (from the end of the menu, Home last) under the "More" button. On phones Contact and EN · ไทย can move there too. */
.site-header .bar > * { flex-shrink: 0; }
.nav a.is-hidden { display: none; }
@media (max-width: 699px) {
  .site-header .bar { gap: 12px; }
  .nav { gap: 16px; }
  .nav .nav-contact { padding: .35em .75em; font-size: .9rem; }
}
/* Phones: the name is a little smaller, so Contact still fits next to it (the small line keeps the same width as the name) */
@media (max-width: 480px) {
  .site-header .brand { font-size: 1.07rem; }
  .site-header .brand-sub { font-size: .59rem; }
  .nav { gap: 12px; }
}
@media (max-width: 340px) {   /* the smallest phones */
  .site-header .brand { font-size: .98rem; }
  .site-header .brand-sub { font-size: .54rem; }
  .site-header .bar { gap: 6px; }
  .nav { gap: 8px; }
}
.nav-more { position: relative; display: none; }
.nav.has-more .nav-more { display: block; }
.nav-more-btn { display: inline-flex; align-items: center; background: none; border: 0; padding: 0; font: inherit; font-size: .95rem; color: #d6cfc4; cursor: pointer; white-space: nowrap; }
.nav-more-btn:hover, .nav-more-btn[aria-expanded="true"] { color: var(--accent); }
.nav-more-box { display: none; position: absolute; top: calc(100% + 20px); left: 50%; transform: translateX(-50%); width: max-content;
  flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.45); padding: 4px 20px; z-index: 30; }
@media (max-width: 699px) { .nav-more-box { left: auto; right: -12px; transform: none; } }   /* phones: keep the box on the screen */
.nav-more-box.open { display: flex; }
.nav-more-box a { display: none; padding: 14px 0; font-size: 1.1rem; text-align: center; border-bottom: 1px solid var(--line); }
.nav-more-box a.in-more { display: block; }
.nav-more-box a.last-shown { border-bottom: 0; }
.nav-more-box .lang.in-more { align-self: center; margin: 0 0 16px; padding: .35em 1em; font-size: .9rem !important; border-bottom: 1px solid var(--accent); }
.nav-more-box .nav-contact.in-more { margin: 14px 0 14px; padding: 10px 20px; border-bottom: 0; font-size: 1rem; }
.more-icon { display: none; font-size: 1.6rem; line-height: 1; padding: 0 2px; }
@media (max-width: 699px) {   /* phones: ☰ instead of "More ▾" */
  .more-word { display: none; }
  .more-icon { display: inline-block; }
  .nav-more { order: 2; }   /* ☰ at the right end; EN · ไทย is inside its box */
}

/* ---------- Home hero: photo on top, name centered below ---------- */
.hero { text-align: center; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.hero-pic { position: relative; max-width: 1240px; margin-inline: auto; height: min(68vh, 700px); min-height: 340px; overflow: hidden; background: #2a2d31; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; }
.hero-pic::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,20,23,0) 78%, var(--bg) 100%); }
/* wide screens: the photo's left and right edges fade softly into the page */
@media (min-width: 1241px) {
  .hero-pic::after { background:
    linear-gradient(180deg, rgba(18,20,23,0) 78%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(18,20,23,.8) 2%, rgba(18,20,23,.5) 4.5%, rgba(18,20,23,.22) 7.5%, rgba(18,20,23,.06) 10%, rgba(18,20,23,0) 12%,
                           rgba(18,20,23,0) 93%, rgba(18,20,23,.06) 94.3%, rgba(18,20,23,.22) 95.8%, rgba(18,20,23,.5) 97.4%, rgba(18,20,23,.8) 98.8%, var(--bg) 100%); }
}
.hero-text { position: relative; z-index: 1; margin-top: 28px; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5.6rem); line-height: 1.05; margin: .3em 0 0; }
.hero .rule { display: block; width: 64px; height: 1px; background: var(--accent); margin: 30px auto 26px; }
.hero .tagline { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: #d6cfc4; max-width: 32em; margin: 0 auto; text-wrap: balance; }
.hero .btns { justify-content: center; }
.hero .hero-ask { font-family: "Playfair Display", var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.4; color: var(--text); max-width: 30em; margin: 2rem auto 0; text-wrap: balance; }
.hero .hero-ask + .btns { margin-top: 1.4rem; }
.hero .hero-ask-scores { margin-top: 1.4rem; }   /* same space as above the button */
.hero .hero-where { margin: 2rem 0 0; font-size: .82rem; letter-spacing: .2em; }
.hero .hero-where .dot { margin: 0 .5em; }
@media (max-width: 600px) { .hero .hero-where span { display: block; } .hero .hero-where .dot { display: none; } .hero .hero-where span + span + span { margin-top: .5em; } }
/* "COLLABORATIVE PIANIST" under the name, with a short gold line on each side */
.hero .title-lines { display: flex; align-items: center; justify-content: center; gap: 24px; font-size: clamp(1rem, 2.1vw, 1.5rem); letter-spacing: .22em; white-space: nowrap; margin: 20px 0 28px; }
.hero .title-lines::before, .hero .title-lines::after { content: ""; flex: 0 1 96px; min-width: 16px; height: 1px; background: var(--accent); opacity: .7; }
.hero .title-lines::before { margin-right: .22em; }   /* evens out the space after the last letter */
@media (max-width: 480px) {   /* phones */
  .hero .title-lines { font-size: 1rem; letter-spacing: .16em; gap: 12px; }
  .hero .title-lines::before { margin-right: .16em; }
}
@media (max-width: 360px) {   /* very small phones: a little smaller so it stays on one line */
  .hero .title-lines { font-size: .88rem; letter-spacing: .14em; gap: 10px; }
  .hero .title-lines::before { margin-right: .14em; }
}

@media (max-width: 900px) {
  .hero { padding-bottom: 40px; }
  .hero-pic { height: 62vh; max-height: 560px; }
}

/* ---------- Inner page header ---------- */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head p.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; margin: 0; }
/* Centered page header, like the Contact page (big gold label + white sentence) */
.page-head.center { text-align: center; padding: 72px 0 0; border-bottom: 0; }
.page-head.center p.lead { color: var(--text); margin: 0 auto; }
/* Under the page title: 38px to the content (the title's own 22px + 16px), the same as under the homepage titles */
.page-head.center + .section { padding-top: 16px; }
.page-head.center + .section.wide-gap { padding-top: 34px; }   /* Gallery, Videos and Piano Reductions: 56px under the title */
.section.page-top { padding-top: 72px; }   /* Contact page: its title is inside the section */
@media (max-width: 900px) {
  .page-head.center, .section.page-top { padding-top: 52px; }
  .page-head.center + .section { padding-top: 10px; }
  .page-head.center + .section.wide-gap { padding-top: 24px; }
}
.banner { height: clamp(220px, 38vw, 420px); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
/* Space between sections, on every page: 48px at the end of a section, then the line, then 32px (phones 40 / 28) */
.section { padding: 32px 0 48px;   /* more space at the end of each section */ }
.section + .section { border-top: 1px solid var(--line); }
.section.band { background: var(--surface); border-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.wide-text { grid-template-columns: 1.3fr 1fr; }
/* About page: photo on top, the text in one column centered under it. */
.about-bio .portrait { width: min(420px, 100%); margin: 0 auto 3rem; }
.about-bio .prose { max-width: 48em; margin-inline: auto; }
.about-bio .prose p { text-indent: 2em; }
@media (max-width: 699px) {   /* phones: About text left-aligned, no first-line indent */
  .about-bio .prose > p { text-align: left; text-indent: 0; }
}
.prose { max-width: 42em; }
.prose p { color: #ddd6cb; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }

@media (max-width: 900px) {
  .section { padding: 28px 0 40px; }
  .split, .split.wide-text { grid-template-columns: 1fr; gap: 36px; }
}

/* Photo + text feature band (home) */
.feature { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); }
.feature img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.feature .c { padding: 64px max(24px, calc((100vw - var(--wrap)) / 2)) 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.feature .c p { color: var(--muted); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature img { min-height: 0; height: 280px; }
  .feature .c { padding: 44px 24px; }
}

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card .c { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); font-size: 1rem; }
.card .more { margin-top: auto; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }

.text-cards .card { border-top: 2px solid var(--accent); }
.text-cards .card .c { padding: 30px 28px; }

/* ---------- Projects ---------- */
.project { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.project:last-child { border-bottom: 0; }
.project:nth-child(even) .project-img { order: 2; }
.project-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.project .years { color: var(--accent); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.project-noimg { grid-template-columns: 1fr; max-width: 46em; }
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
  .project:nth-child(even) .project-img { order: 0; }
}

.steps { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { background: var(--surface-2); border-top: 2px solid var(--accent); padding: 20px; border-radius: 0 0 var(--radius) var(--radius); counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.steps b { display: block; font-size: 1.1rem; }
.steps span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Recordings ---------- */
.recordings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
.rec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rec-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.rec-media img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.rec-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rec-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: var(--text); }
.rec-play span { width: 74px; height: 74px; border-radius: 50%; background: rgba(18,20,23,.7); border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s; }
.rec-play span::before { content: ""; border-left: 20px solid var(--accent); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 6px; }
.rec-play:hover span { transform: scale(1.06); background: rgba(18,20,23,.85); }
.rec-soon { position: absolute; left: 16px; bottom: 16px; background: rgba(18,20,23,.85); color: var(--muted); font-size: .85rem; padding: .35em .8em; border-radius: 999px; border: 1px solid var(--line); }
.rec .c { padding: 24px 26px 28px; }
.rec .date { color: var(--accent); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.rec h3 { margin: .3em 0 .4em; font-size: 1.35rem; }
.rec .program { color: #ddd6cb; margin-bottom: .6em; }
.rec .partners { color: var(--muted); font-size: .98rem; margin: 0; }
.rec .watch { margin-top: 1rem; }
@media (max-width: 900px) { .recordings { grid-template-columns: 1fr; } }

/* ---------- Piano Reductions and Transpositions pages (reductions.html, transpositions.html) ---------- */
.scores-intro { max-width: 56em; margin: 0 auto; text-align: center; font-size: 1.2rem; color: #ddd6cb; text-wrap: balance; }   /* same soft white as the other text */
.scores-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; margin: 56px 0; padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scores-points h3 { font-size: 1.45rem; color: var(--accent); margin-bottom: .7em; }
.scores-points p { color: #ddd6cb; margin: 0 auto; max-width: 17em; text-wrap: balance; }
@media (max-width: 900px) { .scores-points { grid-template-columns: 1fr; gap: 36px; margin: 46px 0; padding: 40px 0; } }
.scores { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }   /* a row with fewer cards (for example 2) is centered */
.scores > * { flex: 0 0 100%; }
.scores > .score { flex-basis: calc((100% - 64px) / 3); }   /* 3 cards in a row */
.score { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.score-cover { aspect-ratio: 3 / 4; background: #f4f1ea; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.score-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.score-blank { font-family: var(--serif); font-size: 1.3rem; color: #2a2a2a; text-align: center; padding: 0 1.5em; }
.score .c { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.score h3 { font-size: 1.3rem; margin: 0 0 .3em; }
.score .scoring { color: var(--accent); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: .7em; }
.score .key { color: var(--muted); font-size: .95rem; margin: -.4em 0 .7em; }
.score .details { color: #ddd6cb; font-size: .98rem; margin-bottom: .8em; }
.score-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 1em; }
.score-buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.score-buy .price { font-family: var(--serif); font-size: 1.35rem; }
.score-soon { color: var(--muted); font-size: .9rem; }
.scores-empty, .scores-custom { text-align: center; color: var(--muted); }
.scores-empty { font-size: 1.15rem; margin: 0; }
.scores-intro + .scores { margin-top: 40px; }
.scores-intro + .scores:empty { margin-top: 28px; }
.scores-custom { margin: 3rem 0 0; }
.scores-custom p { margin: 0 0 18px; font-size: 1.15rem; color: var(--text); }
/* Pages that end with "Need a ...? / Get in touch": the sentence's line adds about 8px of its own space above it,
   so the space under the button is 8px more, to look the same */
.section:has(> .wrap > .scores-custom:last-child) { padding-bottom: 56px; }
@media (max-width: 900px) { .section:has(> .wrap > .scores-custom:last-child) { padding-bottom: 48px; } }
/* Services page: 6 boxes (3 in a row), then "How to book" in 3 numbered steps */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 30px; }
.service h2 { font-size: 1.35rem; color: var(--accent); margin: 0 0 .6em; }
.service p { margin: 0; color: #ddd6cb; }
.services-head { text-align: center; margin: 56px 0 0; }   /* 56px between the parts of the page, 38px under a title */
.book-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin: 38px 0 0; padding: 0; text-align: center; }
.book-steps li { counter-increment: step; }
.book-steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; margin: 0 auto 16px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-family: var(--serif); font-size: 1.2rem; }
.book-steps h3 { font-size: 1.2rem; margin: 0 0 .4em; }
.book-steps p { margin: 0 auto; max-width: 17em; color: #ddd6cb; text-wrap: balance; }
.book-note { text-align: center; margin: 32px auto 0; color: #ddd6cb; text-wrap: balance; }   /* the fee sentence under the Get in touch button */
.book-note span { white-space: nowrap; }   /* on phones the line breaks after "type of work," */
.services ~ .scores-custom { margin-top: 40px; text-align: center; }   /* button 40px under the steps */
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 46px; }
  .services-head { margin-top: 46px; }
  .book-steps { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .services ~ .scores-custom { margin-top: 32px; }
}
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .service { padding: 22px 22px 24px; } }
@media (max-width: 900px) { .scores { gap: 24px; } .scores > .score { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 560px) { .scores > .score { flex-basis: 100%; } }
/* Homepage Scores section: small cards that link to the score pages */
.score-mini { color: var(--text); text-decoration: none; transition: border-color .2s; }
.score-mini:hover, .score-mini:focus-visible { border-color: var(--accent); }
.score-mini:hover h3, .score-mini:focus-visible h3 { color: var(--accent); }
.score-mini .c { padding: 18px 22px 20px; }
.score-mini .score-type { color: var(--muted); font-size: .9rem; margin: 0 0 .35em; }
.score-mini .scoring { margin-bottom: 0; }

/* Links from the score cards to each score's own page */
.score h3 a { color: inherit; text-decoration: none; }
.score h3 a:hover, .score h3 a:focus-visible { color: var(--accent); }
a.score-cover { text-decoration: none; }

/* One score's own page (score.html) */
.score-page { padding-top: 56px; }
.score-back { margin: 0 0 32px; font-size: .95rem; }
.score-back a { color: var(--muted); text-decoration: none; }
.score-back a:hover, .score-back a:focus-visible { color: var(--accent); }
.score-detail { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: start; }
.score-detail .score-cover { border: 1px solid var(--line); border-radius: var(--radius); }
.score-info h1 { font-family: var(--serif); font-size: 2.4rem; line-height: 1.15; margin: 0 0 .35em; }
.score-info .scoring { color: var(--accent); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin: 0 0 1em; }
.score-info .key { color: var(--muted); margin: -.5em 0 1em; }
.score-info .details { color: #ddd6cb; font-size: 1.05rem; margin: 0 0 1.6em; }
.score-info .score-buy { margin: 0; justify-content: flex-start; gap: 24px; padding-top: 20px; }
.score-info .score-buy .price { font-size: 1.6rem; }
.score-info .score-links { margin: 20px 0 0; }
.score-page .scores-points { margin-bottom: 0; }
.score-page .scores-custom { margin-top: 56px; }
.score-missing { text-align: center; padding: 40px 0; }
.score-missing .more + .dot { margin: 0 .6em; }
@media (max-width: 900px) {
  .score-page { padding-top: 40px; }
  .score-back { margin-bottom: 24px; }
  .score-detail { grid-template-columns: 1fr; gap: 32px; }
  .score-detail .score-cover { max-width: 420px; width: 100%; margin: 0 auto; }
  .score-info h1 { font-size: 1.9rem; }
  .score-page .scores-custom { margin-top: 46px; }
}
[data-scores-more] .dot { margin: 0 .8em; color: var(--muted); }
[data-scores-more] .more::after { content: none; }   /* no arrow on these two links */
[data-scores-more] .more { white-space: nowrap; }
@media (max-width: 560px) {   /* phones: one link per line, no dot */
  [data-scores-more] .more { display: block; }
  [data-scores-more] .more + .dot + .more { margin-top: .6em; }
  [data-scores-more] .dot { display: none; }
}
/* Page buttons under the videos: ← Previous   1 2 3   Next → */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 56px; }
.pager a { text-decoration: none; }
.pager-step { color: var(--accent); font-weight: 600; letter-spacing: .04em; }
.pager a.pager-step:hover { text-decoration: underline; }
.pager-step:last-child { justify-self: end; }
.pager-nums { display: flex; gap: 10px; }
.pager-num { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-weight: 600; transition: border-color .2s, color .2s; }
.pager-num:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pager-num[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
@media (max-width: 600px) {
  .pager { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .pager-nums { grid-column: 1 / -1; grid-row: 1; justify-content: center; flex-wrap: wrap; gap: 6px; }
  .pager-num { min-width: 38px; height: 40px; }
}

/* ---------- Gallery ---------- */
.gallery { display: flex; gap: 16px; align-items: flex-start; }
.g-col { flex: 1 1 0; min-width: 0; }
.g-item { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: #000; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; break-inside: avoid; }
.g-item img { display: block; width: 100%; height: auto; transition: transform .4s, opacity .3s; opacity: .92; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.03); opacity: 1; }
.g-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) { .gallery { gap: 10px; } .g-item { margin-bottom: 10px; } }
/* Homepage: a few photos in an even grid */
.gallery-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-preview .g-item { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.gallery-preview .g-item img { height: 100%; object-fit: cover; }
@media (max-width: 900px) { .gallery-preview { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery-preview { gap: 10px; } }

/* Homepage: section title on top (38px above the content, 32px on phones); the "See more" link 32px under the section */
.home-head { text-align: center; margin-bottom: 38px; }
@media (max-width: 900px) { .home-head { margin-bottom: 32px; } }
.home-head h2 { margin: 0; }
.home-more { margin: 32px 0 0; text-align: center; }   /* "See more" links: 32px under the photos, videos and scores */
.home-about-text .home-more { text-align: left; margin-top: 20px; }   /* Read more sits under the About text */
/* Homepage: less space after a "See more" link at the end of a section (32px, 28px on phones) */
.section:has(> .wrap > .home-more:last-child) { padding-bottom: 32px; }
@media (max-width: 900px) { .section:has(> .wrap > .home-more:last-child) { padding-bottom: 28px; } }
.home-intro { color: #ddd6cb; font-size: 1.15rem; max-width: 48em; margin: 0; }
/* Homepage About: photo on the left, text on the right (on phones the photo goes on top).
   On wide screens the photo is cut to the same height as the text next to it. */
.home-about { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: stretch; }
.home-about-text { align-self: center; }
.home-about-pic { position: relative; }
.home-about-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%;   /* keep the head in the picture */ border-radius: var(--radius); }
@media (max-width: 900px) {
  .home-about { grid-template-columns: 1fr; gap: 24px; }
  .home-about-pic img { position: static; height: auto; max-width: 400px; }
  .home-about-text .home-more { text-align: center; }   /* Read more in the center on phones */
}
/* Homepage: contact line at the end */
.home-contact { text-align: center; }
.home-contact h2 { margin-bottom: 28px; }.home-contact .btns { justify-content: center; margin-top: 0; }

.g-view { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8,9,11,.96); color: var(--text); }
.g-view::backdrop { background: rgba(8,9,11,.96); }
.g-view[open] { display: flex; align-items: center; justify-content: center; }
.g-view img { max-width: calc(100vw - 140px); max-height: calc(100dvh - 110px); width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.g-view button { position: absolute; background: rgba(18,20,23,.6); color: var(--text); border: 1px solid var(--line);
  border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.g-view button:hover { border-color: var(--accent); color: var(--accent); }
.g-close { top: 16px; right: 16px; }
.g-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.g-next { right: 16px; top: 50%; transform: translateY(-50%); }
.g-count { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; text-align: center; color: var(--muted); font-size: .9rem; letter-spacing: .1em; }
@media (max-width: 700px) {
  .g-view img { max-width: 100vw; max-height: calc(100dvh - 150px); }
  .g-prev, .g-next { top: auto; bottom: 8px; transform: none; }
  .g-count { bottom: 22px; }
}

/* ---------- Concerts ---------- */
.concert-list { list-style: none; padding: 0; margin: 0; }
.concert { display: grid; grid-template-columns: 170px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.concert:first-child { border-top: 1px solid var(--line); }
.concert .when { font-family: var(--serif); font-size: 1.15rem; color: var(--accent); line-height: 1.3; }
.concert h3 { font-size: 1.25rem; margin-bottom: .35em; }
.concert .where { color: var(--muted); margin: 0 0 .2em; }
.concert .who { margin: 0; color: #ddd6cb; }
.concert .link { margin-top: .6em; display: inline-block; }
@media (max-width: 700px) { .concert { grid-template-columns: 1fr; gap: 6px; } }
.upcoming .concert { background: var(--surface); border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); margin-bottom: 16px; }

/* ---------- About ---------- */
.portrait img { width: 100%; border-radius: var(--radius); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 2.5rem 0 0; }
.facts div { border-top: 1px solid var(--accent); padding-top: 14px; }
.facts b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--accent); line-height: 1.1; }
.facts span { color: var(--muted); font-size: .95rem; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }
/* About page: For presenters (short bio to copy, CV and photo to download) */
.presenters { max-width: 48em; margin-inline: auto; }
.presenters-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.presenters-label { margin: 0 0 .6em; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.presenters-bio p { margin: 0; color: #ddd6cb; }
.presenters-box .btns { margin-top: 1.4rem; }
.presenters-files { justify-content: center; margin-top: 24px; }
@media (max-width: 600px) { .presenters-box { padding: 22px 20px; } }
.rep h3 { margin-top: 1.6em; }
.rep ul { padding-left: 1.1em; margin: 0; }
.rep li { margin-bottom: .45em; color: #ddd6cb; }
.rep li::marker { color: var(--accent); }
.rep-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
@media (max-width: 900px) { .rep-cols { grid-template-columns: 1fr; } }
.placeholder { border: 1px dashed var(--accent); background: rgba(203,167,122,.08); padding: 20px 24px; border-radius: var(--radius); color: var(--accent-strong); }

/* ---------- Contact ---------- */
.contact-band { text-align: center; }
.contact-band p { color: var(--muted); max-width: 36em; margin-inline: auto; }
.contact-band .contact-intro { font-size: 1.2rem; color: var(--text); margin-top: 38px; }   /* 38px under the title, like the other pages */
.contact-intro span { display: block; text-wrap: balance; }
.contact-intro .intro-scores, .contact-intro .intro-invite { margin-top: .8em; }
.contact-band .contact-where { max-width: none; margin: 1.4rem auto 0; font-size: .82rem; letter-spacing: .2em; color: var(--accent); }
.contact-where .dot { margin: 0 .5em; }
.services-where { text-align: center; margin: 1.4rem 0 0; font-size: .82rem; letter-spacing: .2em; color: var(--accent); }   /* Services page, under the first sentence */
@media (max-width: 600px) { .contact-where span { display: block; } .contact-where .dot { display: none; } .contact-where span + span + span { margin-top: .5em; } }
.email-big { font-family: var(--serif); font-size: clamp(1rem, 4.6vw, 2.2rem); word-break: break-word; text-decoration: none; color: var(--text); transition: color .2s; }
.email-big:hover, .email-big:focus-visible { color: var(--accent); }
.contact-band .line-id { margin: .6rem auto 0; font-size: clamp(1rem, 2.4vw, 1.25rem); color: var(--muted); }
.line-id a { color: var(--text); text-decoration: none; transition: color .2s; }
.line-id a:hover, .line-id a:focus-visible { color: var(--accent); }
.contact-band .contact-line { margin: .3rem auto 0; font-size: clamp(1rem, 2.4vw, 1.3rem); word-break: break-word; }
/* Contact form */
.contact-form { max-width: 40rem; margin: 56px auto 0; text-align: left; color-scheme: dark; }
.contact-form label { display: block; margin-bottom: 18px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.contact-form .opt { font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 12px 14px;
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input::placeholder { color: #7d776e; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(203,167,122,.22); }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .contact-form .field-row { grid-template-columns: 1fr; } }
.contact-form .hp { display: none; }
.contact-form .form-actions { text-align: center; margin-top: 40px; }   /* the same 40px above and below the Send button */
.contact-form .btn[disabled] { opacity: .6; cursor: wait; }
.contact-form .form-note { text-align: center; margin: 14px auto 0; font-size: .92rem; color: var(--muted); }   /* small line under the Send button */
.contact-form .form-status { text-align: center; margin: 1rem auto 0; color: var(--accent); }
.contact-form .form-status:empty { margin: 0; }   /* takes no space until there is a message */
.contact-form .form-status.error { color: #e6a3a3; }
.form-thanks { max-width: 40rem; margin: 2.6rem auto 0; padding: 32px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form-thanks h2 { font-size: 1.6rem; margin-bottom: .3em; }
.form-thanks p { margin: 0 auto; }
.contact-band .or-direct { margin: 40px auto .6rem; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
/* Contact page on phones: 44px above the form, 32px above and below the Send button */
@media (max-width: 900px) {
  .contact-band .contact-intro { margin-top: 32px; }
  .contact-form { margin-top: 44px; }
  .contact-form .form-actions, .contact-band .or-direct { margin-top: 32px; }
}

/* ---------- Blog ---------- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-list a { text-decoration: none; }
.post-list h3 { color: var(--text); margin-bottom: .3em; }
.post-list a:hover h3 { color: var(--accent); }
.post-list .date { color: var(--accent); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.post-list p { color: var(--muted); margin: 0; }
.post { max-width: 40em; }
.post p, .post li { color: #ddd6cb; }
.empty { color: var(--muted); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: #0d0f11; border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: .95rem; color: var(--muted); }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .brand { font-size: 1.4rem; margin-bottom: .4rem; }
.site-footer .brand-sub { display: none; }   /* Thai footer: the line under the name already says what he does */
/* English footer: just the menu links and the copyright line, side by side */
.site-footer.simple { padding: 36px 0; }
.site-footer.simple .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-footer.simple .copy { margin: 0; padding: 0; border: 0; }
@media (max-width: 900px) {   /* footer links and © line in the center on phones */
  .site-footer.simple .wrap, .site-footer.simple .cols { justify-content: center; }
  .site-footer.simple nav { justify-content: center; }
  .site-footer.simple .copy { width: 100%; text-align: center; }
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }
.site-footer .copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
