/* Public work: a short overview, with the detail one deliberate click away. */
.selected-work { padding-block: 88px 68px; }
.work-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.work-section-head .eyebrow { margin-bottom: 12px; }
.work-section-head h2, .work-page-intro h1 { font: 600 clamp(2.4rem, 4.5vw, 4.4rem)/1.12 var(--display); letter-spacing: -.055em; margin: 0; }
.work-section-head p:not(.eyebrow) { color: var(--muted); margin: 16px 0 0; font-size: 1rem; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font-size: .875rem; font-weight: 600; border-bottom: 1px solid var(--ink); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-card { display: block; min-width: 0; }
.work-cover { aspect-ratio: 4/3; border: 1px solid var(--line); background: #e6e6eb; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.work-cover img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.work-card:hover .work-cover img { transform: scale(1.025); }
.work-category { display: block; font-size: .75rem; color: var(--muted); margin: 20px 0 7px; line-height: 1.6; }
.work-card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.25rem; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 12px; }
.work-card p { color: var(--muted); font-size: 1rem; line-height: 1.65; margin: 0; }
.work-card .work-action { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-size: .875rem; min-height: 44px; font-weight: 600; }
.work-action:after { content: '↗'; }
.projects.wrap { padding-top: 52px; padding-bottom: 64px; gap: 24px; }
.projects .section-head { margin-bottom: 4px; }
.projects .section-head h2 { font-size: clamp(2rem, 3.1vw, 3rem); }
.projects .section-head h2 br { display: none; }
.projects .section-head h2 .subtle:before { content: ' '; }
.projects .eyebrow { margin-bottom: 16px; }
.project { border-radius: 8px; box-shadow: none; }
.project-info { padding: 28px; }
.project h3 { font-size: 1.9rem; margin-block: 20px 14px; }
.project-info>.features { display: none; }
.project-info>.data-note { margin-top: 12px; }
.project-link { margin-top: 22px; padding-top: 16px; min-height: 50px; font-size: .9375rem; }
.tool-preview { border-top: 1px solid var(--line); }
.tool-preview>summary { padding: 16px 28px; font-size: .875rem; font-weight: 600; cursor: pointer; }
.tool-preview .project-art { min-height: 340px; border-bottom: 0; }
.tool-preview:not([open]) .project-art { display: none; }
.about { padding-block: 64px; gap: 48px; }
.about-label img { width: 64px; height: 64px; margin-top: 24px; transform: none; box-shadow: none; }
.about h2 { font-size: clamp(2rem, 3.1vw, 3rem); }
.about-copy>p { margin-top: 18px; }
.services { margin-top: 22px; }
.profile-download { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 22px; }
.profile-download small { color: var(--muted); font-size: .75rem; }
.contact { padding-top: 44px; }
.header .nav { gap: 22px; }
.header .nav-count { display: none; }
.work-page .header { position: relative; min-height: 90px; }
.work-page .nav [aria-current=page] { text-decoration: underline; text-underline-offset: 6px; }
.work-page-intro { padding-top: 58px; padding-bottom: 40px; }
.work-page-intro .text-link { margin-bottom: 30px; }
.work-page-intro h1 { margin-bottom: 20px; }
.work-page-intro>p { color: var(--muted); font-size: 1rem; max-width: 550px; }
.work-directory { padding-bottom: 60px; }
.work-case { border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.work-case:last-child { border-bottom: 1px solid var(--line); }
.work-case>summary { display: grid; grid-template-columns: 38px 1fr 32px; gap: 20px; align-items: center; padding: 26px 0; cursor: pointer; list-style: none; }
.work-case>summary::-webkit-details-marker { display: none; }
.case-number { align-self: start; padding-top: 3px; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.case-title { font-size: clamp(1.15rem, 2.5vw, 1.7rem); font-weight: 600; line-height: 1.4; letter-spacing: -.03em; }
.case-category { display: block; font-size: .875rem; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-top: 5px; }
.case-toggle { width: 28px; height: 28px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 400; }
.case-toggle:before { content: '+'; }
.work-case[open] .case-toggle:before { content: '−'; }
.case-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; padding: 4px 58px 40px; }
.case-detail h2 { font-size: .875rem; margin: 0 0 10px; font-weight: 700; }
.case-detail p, .case-detail li { font-size: 1rem; line-height: 1.8; color: var(--muted); }
.case-detail p { margin: 0 0 24px; }
.case-detail ul { padding-left: 20px; margin: 0 0 24px; }
.case-detail .work-cover { margin-bottom: 24px; max-width: 520px; }
.case-metric { margin: 0 0 24px; padding: 20px 22px; border-left: 2px solid var(--ink); background: var(--surface); }
.case-metric strong { font-size: clamp(1.7rem, 3vw, 2.5rem); display: block; line-height: 1.2; letter-spacing: -.04em; }
.case-metric>span { display: block; font-size: .9375rem; margin-top: 8px; }
.case-metric p { font-size: .8125rem; line-height: 1.65; margin: 12px 0 0; }
.case-links { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.case-links a { font-size: .875rem; line-height: 1.7; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 8px; }
.work-context { color: var(--muted); font-size: .8125rem; line-height: 1.8; max-width: 860px; margin-top: 32px; }
.work-page .profile-download { margin-top: 28px; }
.work-page .footer-word { display: none; }
html:lang(my) .work-section-head h2, html:lang(my) .work-page-intro h1 { font-family: 'Noto Sans Myanmar', sans-serif; line-height: 1.7; letter-spacing: 0; font-size: clamp(1.5rem, 3vw, 2.8rem); }
@media (max-width: 900px) {
  .work-grid { gap: 20px; }
  .case-detail { padding-inline: 0; gap: 28px; }
  .header .nav { gap: 0 20px; }
  .scroll-ready .header .nav { flex-wrap: wrap; gap: 0 20px; }
}
@media (max-width: 760px) {
  .selected-work { padding-block: 54px 38px; }
  .work-section-head { display: block; margin-bottom: 24px; }
  .work-section-head>.text-link { margin-top: 20px; }
  .work-grid { grid-template-columns: 1fr; gap: 36px; }
  .work-cover { aspect-ratio: 16/10; }
  .work-category { margin-top: 16px; }
  .work-card h3 { font-size: 1.4rem; }
  .work-card .work-action { margin-top: 8px; }
  .projects.wrap { padding-block: 32px 44px; }
  .projects .section-head h2 { font-size: 2rem; }
  .projects .section-head h2 br { display: block; }
  .project-info { padding: 24px; }
  .tool-preview>summary { padding-inline: 24px; }
  .about { padding-block: 44px; gap: 24px; }
  .about-label img { display: none; }
  .about-label .eyebrow { margin: 0; }
  .about h2 { font-size: 2rem; }
  .work-page .header { flex-wrap: wrap; }
  .work-page .brand { font: 800 1rem/1.1 'Manrope', sans-serif; gap: 8px; }
  .work-page .brand img { width: 32px; height: 32px; }
  .work-page .brand-small { display: none; }
  .work-page .language-control { width: 142px; }
  .work-page-intro { padding-top: 32px; padding-bottom: 28px; }
  .work-case>summary { grid-template-columns: 24px 1fr 24px; gap: 12px; padding-block: 22px; }
  .case-detail { grid-template-columns: 1fr; gap: 0; padding-bottom: 26px; }
  .case-detail .work-cover { aspect-ratio: 4/3; }
  .case-category { font-size: .8125rem; }
}
@media (max-width: 360px) {
  .work-page .header { gap: 8px; }
  .work-page .language-control { width: 126px; }
  .scroll-ready .header .nav { gap: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { .work-cover img { transition: none; } }

/* Thai needs space for vowel marks and natural word wrapping. */
html:lang(th) { --body: 'Noto Sans Thai', Tahoma, sans-serif; --display: 'Noto Sans Thai', Tahoma, sans-serif; }
html:lang(th) body { line-height: 1.8; }
html:lang(th) .language-control select { font-family: var(--body); }
html:lang(th) .hero h1, html:lang(th) .accent-word,
html:lang(th) .story-panel h1, html:lang(th) .story-panel h2, html:lang(th) .story-italic,
html:lang(th) .section-head h2, html:lang(th) .about h2, html:lang(th) .contact h2,
html:lang(th) .projects h2 .subtle, html:lang(th) .about h2 .subtle, html:lang(th) .contact h2>span:last-child,
html:lang(th) .work-section-head h2, html:lang(th) .work-page-intro h1 {
  font-family: var(--display); font-style: normal; line-height: 1.45; letter-spacing: 0;
}
html:lang(th) .hero h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
html:lang(th) .story-panel h1, html:lang(th) .story-panel h2 { font-size: clamp(2rem, 3.6vw, 3.7rem); }
html:lang(th) .hero-object .orbit-word, html:lang(th) .carta-type, html:lang(th) .rotation-word {
  font-family: var(--display); font-style: normal; letter-spacing: 0; line-height: 1.5;
}
html:lang(th) .hero-object .orbit-word { font-size: clamp(.875rem, 1.5vw, 1.5rem); }
html:lang(th) .carta-type, html:lang(th) .rotation-word { font-size: clamp(2rem, 3.5vw, 3.5rem); }
html:lang(th) .eyebrow, html:lang(th) .story-start, html:lang(th) .hero-meta,
html:lang(th) .hero-foot, html:lang(th) .art-top, html:lang(th) .art-caption,
html:lang(th) .orbit-top, html:lang(th) .orbit-bottom, html:lang(th) .footer-bottom,
html:lang(th) .case-title, html:lang(th) .work-card h3 { letter-spacing: 0; }
html:lang(th) .case-title, html:lang(th) .work-card h3 { line-height: 1.55; }
html:lang(th) .story-panel>p:not(.eyebrow) { line-height: 1.8; }
@media (max-width: 760px) {
  html:lang(th) .hero h1 { font-size: clamp(2.4rem, 8.5vw, 4rem); }
  html:lang(th) .hero-object .orbit-word { font-size: clamp(.875rem, 3vw, 1.5rem); }
  html:lang(th) .carta-type, html:lang(th) .rotation-word { font-size: clamp(1.7rem, 6.8vw, 3rem); }
}
@media (max-width: 600px) {
  html:lang(th) .story-panel h1, html:lang(th) .story-panel h2 { font-size: clamp(1.5rem, 5.7vw, 1.9rem); }
  html:lang(th) .story-panel .eyebrow { line-height: 1.7; }
}
@media (max-height: 560px) and (min-width: 601px) {
  html:lang(th) .story-panel h1, html:lang(th) .story-panel h2 { font-size: 1.8rem; }
}
