/* Readable Thai copy at normal browser zoom, without enlarging the hero headline. */
:root {
  --text-body: clamp(1.0625rem, .95rem + .15vw, 1.1875rem);
  --text-ui: 1rem;
  --text-meta: .875rem;
  --text-label: .75rem;
  --subtle: #595b52;
}
body { font-size: var(--text-body); }
.site-header { height: 100px; }
.mobile-nav:not([hidden]) { top: 100px; }
.brand img { width: 52px; height: 50px; }
.brand-type { font-size: 31px; }
html { scroll-padding-top: 114px; }
.desktop-nav { gap: 26px; margin-right: 38px; }
.desktop-nav a, .header-contact { font-size: var(--text-ui); color: #42453d; min-height: 44px; }
.desktop-nav a { display: inline-flex; align-items: center; }
.mobile-nav a { font-size: 1.125rem; min-height: 48px; }
.menu-toggle { min-width: 44px; min-height: 44px; }
.brand-type small { font-size: 9px; letter-spacing: 1px; }
.eyebrow, .hero .eyebrow, .edit-heading .eyebrow, .detail-banner .eyebrow,
.dossier-header .eyebrow, .portfolio-empty .eyebrow { font-size: var(--text-label); line-height: 1.6; letter-spacing: 1.5px; }
.section-no { font-size: var(--text-label); }
.hero-description { font-size: clamp(1.0625rem, .95rem + .25vw, 1.25rem); color: #50544a; line-height: 1.85; }
.button, .button-dark, .button-gold, .text-link, .hero-discover,
.edit-story > .text-link, .edit-image-open, .service-content .service-inquiry,
.survey-note .text-link { font-size: var(--text-ui); line-height: 1.65; }
.hero-discover { color: #65563f; }
.hero-plan-copy strong { font-size: 1.0625rem; line-height: 1.65; font-weight: 500; }
.hero-plan-copy small { font-size: .6875rem; color: #665638; letter-spacing: 1px; }
#hero-plan-caption { font-size: var(--text-meta); color: #625944; }
.hero-plan-preview { padding: 16px; }
.hero-visual-label { font-size: var(--text-label); letter-spacing: 1.3px; background: #20271dc4; }
.hero-project small { font-size: var(--text-label); letter-spacing: 1.5px; }
.hero-project strong { font-size: clamp(1.25rem, 1rem + .5vw, 1.625rem); line-height: 1.5; }
.hero-project em { font-size: var(--text-meta); color: #f3efe6; }
#hero-slide-count { font-size: var(--text-meta); }
.hero-project { gap: 16px; }
.hero-slider-controls { bottom: 162px; }
.hero-shade { background: linear-gradient(0deg, #10170ef0, #10170e59 37%, transparent 68%); }
.discipline-strip { font-size: .75rem; letter-spacing: 1.8px; flex-wrap: wrap; white-space: normal; gap: 20px; }
.strip-end { font-size: .6875rem; color: #665f52; }

.about-copy > p, .section-description, .services-intro > p:not(.eyebrow),
.service-content, .survey-note p, .process-grid p,
.contact-copy > p:not(.eyebrow), .edit-heading > p:last-child,
#edit-description, .portfolio-empty > p:not(.eyebrow) { font-size: var(--text-body); line-height: 1.9; }
.about-copy .intro { font-size: clamp(1.25rem, 1rem + .5vw, 1.5rem); line-height: 1.8; }
.about-copy > p { max-width: 58ch; }
.studio-detail figcaption, .edit-image-caption { font-size: .8125rem; line-height: 1.7; letter-spacing: .25px; flex-wrap: wrap; }
.studio-detail figcaption { color: #625d50; }
.edit-image-caption { color: #ddd6c6; }
.edit-options small { font-size: var(--text-label); letter-spacing: .7px; }
.edit-options button > span:first-child { font-size: var(--text-meta); }
.edit-narrative { min-height: 0; margin-bottom: 20px; }
.edit-tags, .edit-footer, .edit-footer > span:first-child { font-size: var(--text-meta); line-height: 1.8; letter-spacing: .4px; color: #d2c1a1; }
#edit-count { font-size: var(--text-meta); }
.collection-personal p, .collection-caption, .collection-caption .project-count,
.project-meta > span, .project-subtitle, .project-contents-preview span,
.project-completion { font-size: var(--text-meta); line-height: 1.8; color: #5a5345; }
.collection-tab { font-size: 1.0625rem; gap: 10px; }
.collection-tab > span, #saved-count { font-size: var(--text-label); }
.filter, #saved-filter, #clear-edit { font-size: var(--text-ui); line-height: 1.6; }
.filter { color: #565247; }
.project-toolbar .filters { gap: 6px; }
.project-search input, .project-search input::placeholder { font-size: 1rem; }
.project-index, .project-type-badge { font-size: var(--text-label); }
.project-contents-preview { row-gap: 6px; }
.project-meta > span { white-space: normal; }
.project-meta h3 { line-height: 1.55; }
.service summary small, .survey-note > small { font-size: var(--text-label); letter-spacing: 1px; color: #65563f; }
.service-number { font-size: var(--text-meta); }
.service-tags span { font-size: var(--text-meta); color: #655b49; }
.service-content { color: #55594f; }
.process-grid h3 { font-size: 1.25rem; line-height: 1.6; }
.image-caption { font-size: var(--text-meta); background: #1d211acc; padding: 5px 10px; border-radius: 5px; }
.contact-links small { font-size: var(--text-label); color: #d0c7b5; }
.contact-links a > span { font-size: 1.25rem; overflow-wrap: anywhere; }
.form-intro, .project-form label, .project-form input,
.project-form textarea, .project-form select, .project-form #brief-preview { font-size: 1rem; line-height: 1.8; }
.form-note, .form-status, #email-fallback, #brief-preview-hint, .service-guidance,
.inquiry-projects > p, .inquiry-projects li, .inquiry-projects small { font-size: var(--text-meta); line-height: 1.85; }
.brief-actions .copy-brief, .brief-line-link { font-size: var(--text-ui); }
.form-intro, .form-note, .service-guidance, #brief-preview-hint { color: #5c5344; }
.project-form input, .project-form select { min-height: 48px; }
.footer-top p { font-size: 1rem; line-height: 1.8; color: #d0c7b5; }
.footer-bottom, .footer-bottom span:last-child { font-size: .8125rem; line-height: 1.8; color: #c5beae; letter-spacing: .3px; }
.footer-brand span { font-size: var(--text-label); }

.gallery-group { font-size: 1rem; gap: 8px; }
.gallery-group > span { font-size: .8125rem; }
.gallery-figure figcaption { font-size: var(--text-meta); line-height: 1.75; color: #61523c; }
.gallery-figure #gallery-count { font-size: .8125rem; }
.gallery-thumb { flex-basis: 120px; width: 120px; }
.gallery-thumb > img { height: 70px; }
.gallery-thumb > span { font-size: .8125rem; line-height: 1.6; }
.gallery-tools #gallery-expand, .gallery-tools a { font-size: .9375rem; }
.dossier-info #dialog-description { font-size: 1rem; line-height: 1.9; color: #56503f; }
.dossier-status, .dossier-contents h3, .dossier-contents dl,
.dossier-contents dl > div, .dossier-contents dd, .dossier-info .dialog-note,
.dialog-action-status, #share-link-fallback { font-size: var(--text-meta); line-height: 1.8; }
.dossier-info .dialog-note { color: #625642; }
.dossier-actions button, .dossier-info .text-link, #share-link-value { font-size: .9375rem; }
.dossier-actions { grid-template-columns: 1fr; }
.viewer-project, .viewer-feedback, .viewer-hint, #viewer-original,
.image-viewer #viewer-fit { font-size: var(--text-meta); line-height: 1.7; }
.viewer-header h2 { font-size: 1.125rem; }
.viewer-zoom output, .viewer-paging span { font-size: .9375rem; }
.saved-tray-label, .saved-tray button, .saved-tray a, .portfolio-feedback { font-size: var(--text-meta); }

@media (min-width: 601px) and (max-width: 1100px) {
  .hero { min-height: 740px; }
  .hero-content { padding-bottom: 205px; }
  .hero-plan-preview { bottom: 40px; }
  .hero-plan-copy strong { font-size: 1rem; }
  .hero-plan-arrow { display: none; }
  .hero-actions { gap: 10px 18px; }
}
@media (max-width: 600px) {
  :root { --text-body: 1rem; --text-ui: .9375rem; }
  .site-header { height: 82px; padding-inline: 16px; gap: 10px; }
  .brand-type { font-size: 29px; }
  .brand-type small { font-size: 9px; letter-spacing: .45px; }
  .brand img { width: 38px; height: 42px; }
  .mobile-nav:not([hidden]) { top: 82px; }
  html { scroll-padding-top: 96px; }
  .header-contact { font-size: .875rem; margin-right: 0; gap: 7px; }
  .header-contact > span { display: none; }
  .menu-toggle { flex-shrink: 0; align-items: center; }
  .hero .eyebrow { font-size: .6875rem; letter-spacing: 1.1px; }
  .hero-description { font-size: 1rem; line-height: 1.8; margin-bottom: 18px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .hero-actions .button-dark { font-size: .9375rem; padding: 10px 14px; gap: 16px; }
  .hero-discover { font-size: .875rem; gap: 8px; }
  .hero-content { padding-bottom: 22px; }
  .hero-plan-preview { padding: 14px; }
  .hero-plan-copy strong { font-size: 1rem; }
  .hero-plan-copy small { font-size: .6875rem; letter-spacing: .5px; }
  #hero-plan-caption { font-size: .8125rem; }
  .hero-plan-arrow { display: none; }
  .hero-project strong { font-size: 1.1875rem; }
  .hero-project small { font-size: .6875rem; letter-spacing: 1px; }
  .hero-project em { font-size: .8125rem; }
  .hero-slider-controls { bottom: 158px; }
  .hero-dots { width: auto; }
  .hero-dot { width: 22px; }
  .hero-slider-controls { gap: 7px; }
  .discipline-strip { font-size: .6875rem; gap: 12px; letter-spacing: .6px; justify-content: center; }
  .edit-image-caption > span:last-child { max-width: none; text-align: left; }
  .edit-heading .eyebrow { font-size: .75rem; }
  .collection-tabs { gap: 16px; justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; }
  .collection-tab { font-size: 1rem; flex-shrink: 0; white-space: nowrap; gap: 6px; }
  .collection-personal { flex-wrap: wrap; align-items: center; }
  .collection-personal p { max-width: none; font-size: var(--text-meta); }
  #saved-filter { font-size: .9375rem; }
  .collection-caption { flex-wrap: wrap; gap: 8px; }
  .collection-caption .project-count { font-size: var(--text-meta); }
  .contact-links { grid-template-columns: 1fr; }
  .contact-links a:last-child { max-width: none; }
  .project-contents-preview span { padding-inline: 8px; }
  .project-form { padding-inline: 20px; }
  .dossier-header .eyebrow { font-size: .6875rem; letter-spacing: .3px; }
  .gallery-groups { justify-content: flex-start; }
  .gallery-group { padding-inline: 10px; font-size: .9375rem; }
  .gallery-thumb { flex-basis: 110px; width: 110px; }
  .gallery-thumb > img { height: 62px; }
  .dossier-actions { grid-template-columns: 1fr 1fr; }
  .viewer-header h2 { font-size: 1rem; }
  .saved-tray { display: grid; grid-template-columns: 1fr auto 44px; gap: 7px; padding: 10px; width: calc(100% - 24px); }
  .saved-tray #consult-saved { grid-column: 1 / -1; grid-row: 2; max-width: none; justify-content: center; }
  .saved-tray #hide-saved-tray { grid-column: 3; grid-row: 1; }
  .saved-tray-label { margin-left: 4px; }
  .saved-tray #view-saved { justify-content: center; }
  body.has-saved { padding-bottom: 140px; }
  .portfolio-feedback { bottom: 150px; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 12px; gap: 6px; }
  .brand { gap: 7px; }
  .brand-type { font-size: 27px; }
  .brand-type small { font-size: 8px; letter-spacing: .3px; }
  .brand img { width: 36px; height: 40px; }
  .header-contact { font-size: .8125rem; }
  .hero-slider-controls { bottom: 168px; }
  .hero-dots { gap: 4px; }
  .hero-dot { width: 18px; }
  .hero-project { gap: 10px; }
  .hero-project strong { font-size: 1.125rem; }
  .dossier-actions { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .header-contact { display: none; }
  .menu-toggle { margin-left: auto; }
}

/* A photographic opening; the studio statement now lives with the company story. */
.hero { display: block; padding: 24px 32px 0; min-height: 0; height: auto; max-height: none; }
.hero #hero-heading.visually-hidden { margin: -1px; font-size: 1px; }
.hero-visual { width: 100%; margin: 0; min-height: 440px; height: min(68svh, 820px); }
.hero-image { object-position: center 25%; }
.hero-project { left: 36px; right: auto; width: min(62%, 720px); bottom: 32px; border-top: 0; padding: 0; }
.hero-project strong { font-size: clamp(1.375rem, 1rem + 1vw, 2rem); }
.hero-project small { margin-bottom: 8px; }
.hero-slider-controls { left: auto; right: 36px; bottom: 34px; width: auto; flex-direction: column; align-items: flex-end; gap: 4px; }
.hero-paging { margin-left: 0; }
.hero-dots { gap: 7px; }
.hero-dot { width: 30px; }
.hero-image-edge { font-size: 11px; }
.hero-launchbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 4px 24px; }
.hero-launchbar .hero-actions { display: flex; flex-wrap: wrap; width: auto; gap: 16px 26px; }
.hero-launchbar .hero-plan-preview { position: static; margin: 0; width: 400px; max-width: 48%; padding: 10px 14px; gap: 14px; background: transparent; }
.hero-launchbar #hero-plan-image { width: 66px; height: 58px; }
.hero-launchbar .hero-plan-copy strong { font-size: 1rem; margin-top: 2px; }
.hero-launchbar #hero-plan-caption { margin-top: 1px; }
.studio-intro { margin: 24px 0 0; font-size: var(--text-body); color: #55594f; line-height: 1.9; }
.about h2 { font-size: clamp(2rem, 3.3vw, 3.25rem); }
.studio-wordmark { margin-top: 50px; }
@media (max-width: 800px) {
  .hero { padding: 18px 20px 0; }
  .hero-visual { height: 560px; min-height: 0; }
  .hero-project { left: 24px; bottom: 24px; width: calc(100% - 48px); right: 24px; }
  .hero-slider-controls { left: 24px; right: 24px; bottom: 155px; width: auto; flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-launchbar { align-items: stretch; }
  .hero-launchbar .hero-actions { gap: 8px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .hero-launchbar .hero-plan-preview { max-width: 52%; width: 360px; }
  .hero-launchbar .hero-plan-copy small { font-size: .625rem; }
}

/* Direct contact actions and verified company information. */
.desktop-nav { gap: 26px; margin-left: auto; margin-right: 0; }
.company-info { margin-top: 72px; padding-top: 42px; border-top: 1px solid #676755; display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; }
.company-info .eyebrow { margin-bottom: 16px; color: #d3c9b6; }
.company-info h3 { font-size: clamp(1.125rem, 1rem + .3vw, 1.375rem); line-height: 1.7; margin: 0 0 8px; max-width: 36ch; color: #faf7ef; }
.company-english { font-size: 14px; color: #cec9ba; margin: 0 0 24px; }
.company-info dl { margin: 0; }
.company-info dt, .company-address > p { font-size: 14px; color: #c9c5b6; line-height: 1.8; }
.company-info dd { font-size: 18px; margin: 5px 0 0; letter-spacing: 1px; color: #faf7ef; }
.company-info h4 { margin: 0 0 12px; font-weight: 500; font-size: 18px; color: #faf7ef; }
.company-info address { font-style: normal; font-size: 17px; line-height: 1.9; color: #f2eee4; }
.company-address > p { margin: 8px 0 18px; }
.company-map { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 15px; color: #f2eee4; border-bottom: 1px solid #9d927a; }
.company-map > span[aria-hidden] { display: grid; place-items: center; border: 1px solid #9d927a; border-radius: 50%; width: 28px; height: 28px; }
@media (max-width: 800px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .mobile-nav:not([hidden]) { display: flex; position: absolute; top: 100px; left: 0; width: 100%; padding: 18px 30px 25px; flex-direction: column; background: var(--paper); box-shadow: 0 20px 30px #151e1522; max-height: calc(100svh - 100px); overflow-y: auto; }
  .mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}
.menu-toggle { width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 8px; background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; flex: 0 0 2px; width: 24px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform .18s, opacity .18s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 801px) {
  .desktop-nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none; }
}
@media (max-width: 800px) {
  .company-info { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; padding-top: 32px; }
}
@media (max-width: 600px) {
  .site-header { height: 82px; display: flex; padding: 0 20px; }
  .menu-toggle { margin-left: auto; }
  .mobile-nav:not([hidden]) { top: 82px; max-height: calc(100svh - 82px); }
  html { scroll-padding-top: 96px; }
  .company-info { margin-top: 40px; }
  .company-info address { font-size: 16px; }
  .company-info h3 { max-width: 26ch; font-size: 18px; }
}
@media (max-width: 600px) {
  .hero { padding: 12px 12px 0; }
  .hero-visual { height: min(64svh, 520px); min-height: 390px; }
  .hero-project { left: 20px; right: 20px; width: auto; bottom: 22px; gap: 14px; }
  .hero-project strong { font-size: 1.25rem; line-height: 1.5; }
  .hero-project small { font-size: .6875rem; }
  .hero-project em { font-size: .8125rem; }
  .hero-slider-controls { left: 20px; right: 20px; bottom: 158px; gap: 6px; }
  .hero-dots { gap: 4px; }
  .hero-dot { width: 22px; }
  .hero-image-edge { font-size: 9px; }
  .hero-launchbar { flex-direction: column; gap: 14px; padding: 16px 8px 20px; }
  .hero-launchbar .hero-actions { flex-direction: row; gap: 8px 16px; justify-content: space-between; align-items: center; }
  .hero-launchbar .hero-plan-preview { width: 100%; max-width: none; padding: 10px 12px; }
  .hero-launchbar .hero-plan-copy small { font-size: .6875rem; }
  .hero-launchbar .hero-plan-arrow { display: grid; }
  .hero-launchbar #hero-plan-image { width: 58px; height: 54px; }
  .studio-intro { margin-top: 18px; }
}
@media (max-width: 360px) {
  .hero-slider-controls { left: 16px; right: 16px; flex-wrap: nowrap; }
  .hero-dots { gap: 3px; }
  .hero-dot { width: 16px; }
  .hero-project { left: 16px; right: 16px; }
  .hero-project strong { font-size: 1.125rem; }
  .hero-launchbar .hero-actions { justify-content: flex-start; }
  .hero-launchbar .hero-plan-arrow { display: none; }
}
/* A quiet corner contact control, opened only on request. */
.contact-float { position: fixed; right: max(26px, env(safe-area-inset-right)); bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 40; }
.contact-float-toggle { display: grid; place-items: center; width: 58px; height: 58px; padding: 0; background: #fff; color: #252622; border: 1px solid #e5e2dc; border-radius: 50%; box-shadow: 0 6px 22px #1c241f24; transition: box-shadow .2s, background .2s; }
.contact-float-toggle:hover { box-shadow: 0 8px 26px #1c241f35; background: #f5f1e9; }
.contact-float-close { display: none; font: 300 32px/1 var(--sans); }
.contact-float-toggle[aria-expanded="true"] .contact-float-icon { display: none; }
.contact-float-toggle[aria-expanded="true"] .contact-float-close { display: block; }
.contact-float-panel { position: absolute; right: 0; bottom: 72px; width: 312px; max-width: calc(100vw - 48px); max-height: calc(100svh - 110px); overflow-y: auto; padding: 22px; background: #fffdfa; color: #252622; border: 1px solid #e4dfd4; border-radius: 18px; box-shadow: 0 10px 42px #15201829; }
.contact-float-panel:not([hidden]) { animation: contact-reveal .18s ease-out; }
#contact-float-title { font-size: 18px; font-weight: 600; line-height: 1.5; margin: 0 0 4px; }
.contact-float-hint { font-size: 14px; color: #63665d; line-height: 1.7; margin: 0 0 16px; }
.contact-channel { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px 0; border-top: 1px solid #e6e2d9; font-size: 16px; line-height: 1.6; }
.contact-channel:hover { color: #78643e; }
.contact-channel small { display: block; font-family: var(--sans); font-size: 13px; line-height: 1.6; color: #5e645b; overflow-wrap: anywhere; }
.channel-icon { flex: 0 0 26px; width: 26px; text-align: center; }
.contact-channel-line .channel-icon { color: #06793a; font: 700 10px/1 var(--sans); }
.channel-mail { font-size: 23px; font-family: var(--sans); }
.channel-arrow { margin-left: auto; font-size: 18px; }
.contact-float-inquiry { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; min-height: 44px; padding: 8px 12px; font-size: 14px; background: #f0ece3; border-radius: 8px; }
body.modal-open .contact-float { visibility: hidden; pointer-events: none; }
body.has-saved .contact-float { bottom: calc(112px + env(safe-area-inset-bottom)); }
body.has-saved .contact-float-panel { max-height: calc(100svh - 210px); }
@keyframes contact-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .contact-float { right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .contact-float-toggle { width: 54px; height: 54px; }
  .contact-float-panel { bottom: 66px; padding: 20px; }
  body.has-saved .contact-float { bottom: calc(146px + env(safe-area-inset-bottom)); }
  body.has-saved .contact-float-panel { max-height: calc(100svh - 230px); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-float-panel:not([hidden]) { animation: none; }
  .contact-float-toggle { transition: none; }
}
