:root {
  --paper: #f7f6ef;
  --ink: #161713;
  --muted: #51534a;
  --line: #d5d5c9;
  --lime: #d8f448;
  --green: #556800;
  color-scheme: light;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, p, h1, h2, h3 { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid #4b6300; outline-offset: 5px; }
section[id] { scroll-margin-block-start: 1.5rem; }

.shell { width: min(1320px, 100% - clamp(32px, 9vw, 128px)); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 2;
  top: .5rem;
  left: 1rem;
  padding: .75rem 1rem;
  transform: translateY(-150%);
  background: var(--lime);
}
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, nav, .wordmark { display: flex; align-items: center; }
.header-inner { min-height: 77px; justify-content: space-between; gap: 1rem; }
.wordmark {
  flex: none;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.085em;
  text-decoration: none;
}
.wordmark-light { font-weight: 500; }
.mark { margin-right: .33em; font-size: 1.08em; color: var(--green); }
nav { gap: clamp(.85rem, 3vw, 2.65rem); }
nav a { font-weight: 700; font-size: .89rem; text-decoration: none; }
nav a:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-contact span { color: var(--green); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4.25rem);
  align-items: center;
  padding-block: clamp(2.4rem, 5.2vw, 5rem) clamp(3.5rem, 7.5vw, 7rem);
}
.hero-copy { padding-block: .3rem .75rem; }
.eyebrow {
  font-size: .73rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .15em;
}
h2, h3 { letter-spacing: -.055em; }
h1 { font-size: clamp(4.2rem, 9.25vw, 9.3rem); line-height: .83; letter-spacing: -.067em; margin-block: 0 1.5rem; }
.period { color: var(--green); }
.hero-description, .section-heading p, .contact-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  line-height: 1.53;
  max-width: 33ch;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 49px;
  padding: .73rem .97rem .73rem 1.1rem;
  font-size: .89rem;
  font-weight: 700;
  text-decoration: none;
}
.dark-button { background: var(--ink); color: white; }
.dark-button:hover { background: var(--green); }
.dark-button span { font-size: 1.2em; color: var(--lime); }
.hero .button { margin-top: 1.45rem; }
.hero-art {
  overflow: hidden;
  background: #666b66;
  aspect-ratio: 1.5;
}
.hero-art img { height: 100%; object-fit: cover; object-position: 39% 50%; }

.portfolio { padding-block-end: clamp(4.5rem, 9vw, 8.5rem); }
.section-heading {
  border-top: 1px solid var(--line);
  padding-top: clamp(1.8rem, 4vw, 3.4rem);
  margin-bottom: clamp(1.55rem, 3.2vw, 2.85rem);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}
h2 { font-size: clamp(3rem, 6.7vw, 6.4rem); line-height: .94; }
.section-heading p { max-width: 36ch; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.1rem, 2vw, 2rem);
  row-gap: clamp(2.4rem, 5vw, 4.5rem);
}
.brand-card { display: flex; flex-direction: column; }
.brand-photo { aspect-ratio: 1.55; overflow: hidden; }
.brand-photo img { width: 100%; height: 100%; object-fit: contain; }
.muu-photo { background-color: #e6e5e0; }
.holiv-photo { background-color: #241f1c; }
.topup-photo { background-color: #17221d; }
.studio-photo { background-color: #dededa; }
.muutelu-photo { background-color: #f6f0e7; }
.brand-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 78px; }
.brand-logo { width: clamp(96px, 11vw, 128px); height: auto; aspect-ratio: 128 / 90; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .logo-in-view .brand-logo { animation-timing-function: cubic-bezier(.2,.7,.3,1); }
  .logo-in-view .muu-logo { animation-name: muu-rise; animation-duration: 480ms; }
  .logo-in-view .holiv-logo { animation-name: holiv-float; animation-duration: 560ms; }
  .logo-in-view .topup-logo { animation-name: topup-dash; animation-duration: 320ms; }
  .logo-in-view .studio-logo { animation-name: studio-hop; animation-duration: 500ms; }
  .logo-in-view .muutelu-logo { animation-name: muu-rise; animation-duration: 480ms; }
}
@keyframes muu-rise {
  from { opacity: .1; transform: translateY(15px); }
  to { opacity: 1; transform: none; }
}
@keyframes holiv-float {
  from { opacity: .1; transform: translateY(-10px); }
  70% { opacity: 1; transform: translateY(2px); }
  to { transform: none; }
}
@keyframes topup-dash {
  from { opacity: .15; transform: translateX(-16px); }
  68% { opacity: 1; transform: translateX(3px); }
  to { transform: none; }
}
@keyframes studio-hop {
  from { opacity: .1; transform: translate(-9px, 7px); }
  45% { opacity: 1; transform: translate(-3px,-8px); }
  76% { transform: translateY(2px); }
  to { transform: none; }
}
.social-link { font-size: .82rem; padding-block: .4rem; text-underline-offset: .2em; }
.brand-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  padding-block: 1.15rem .9rem;
  border-bottom: 1px solid var(--line);
}
.brand-body .eyebrow { color: var(--muted); }
h3 { font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.01; margin-block: .4rem .55rem; }
.brand-description {
  max-width: 52ch;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  margin-top: auto;
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}
.text-link span { color: var(--green); }
.text-link:hover { text-decoration: underline; text-underline-offset: .25em; }

.company { background: var(--ink); color: var(--paper); }
.company-inner, .contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(1rem, 5vw, 5rem);
  align-items: end;
  padding-block: clamp(3.4rem, 7vw, 6.75rem);
}
.company .eyebrow, .contact .eyebrow { margin-bottom: 1.2rem; }
.company .eyebrow { color: var(--lime); }
.company-copy { max-width: 38ch; color: #e0e0d6; font-size: clamp(1rem, 1.55vw, 1.25rem); line-height: 1.55; }
.thai-name { margin-top: 1.2rem; color: #cdcec2; font-size: .92rem; }
.contact-copy .button { margin-top: 1rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .8rem;
  color: var(--muted);
}
.footer-inner p span { margin-left: .8rem; }
.footer-inner a { display: inline-flex; gap: .4em; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }

@media (max-width: 700px) {
  .header-inner { min-height: 61px; }
  .hero, .company-inner, .contact { grid-template-columns: 1fr; }
  .hero { gap: 1.6rem; }
  .hero h1 { font-size: clamp(4.85rem, 17vw, 7.5rem); }
  .hero-art { aspect-ratio: 1.24; }
  .section-heading { align-items: start; flex-direction: column; gap: .85rem; }
  .company-inner, .contact { gap: 1.25rem; }
}
@media (max-width: 510px) {
  .brand-grid { grid-template-columns: 1fr; }
  .wordmark { font-size: 1.27rem; }
  nav { gap: clamp(.55rem, 2.6vw, .85rem); }
  nav a { display: inline-flex; align-items: center; gap: .2em; min-height: 44px; font-size: .79rem; }
  .footer-inner p span { display: block; margin: .3em 0 0; }
}
@media (max-width: 360px) {
  .header-inner { column-gap: .55rem; }
  .wordmark { font-size: 1.1rem; }
  nav { gap: .55rem; }
  nav a { font-size: .75rem; }
}

.showcase { min-width: 0; margin: 0; border: 1px solid var(--ink); background: var(--ink); }
.showcase .hero-art { position: relative; aspect-ratio: 1.85; }
.showcase .hero-art img { display: block; width: 100%; height: 100%; }
.hero-art[data-brand="muu"] { background: #e6e5e0; }
.hero-art[data-brand="holiv"] { background: #241f1c; }
.hero-art:is([data-brand="muu"], [data-brand="holiv"]) img { object-fit: contain; }
.feature-link {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem .7rem;
  padding: .85rem 1rem; align-items: center; text-decoration: none;
  color: var(--paper); background: var(--ink);
}
.feature-category { grid-column: 1; color: var(--lime); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.feature-name { grid-column: 1; font-size: clamp(1.15rem, 2.4vw, 1.85rem); font-weight: 650; letter-spacing: -.045em; }
.feature-action { grid-column: 2; grid-row: 1 / 3; font-size: .82rem; font-weight: 700; }
.feature-link:hover .feature-action { text-decoration: underline; text-underline-offset: .25em; }
.brand-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; }
.brand-picker :is(a,button) {
  background: var(--paper); color: var(--ink); border: 0; padding: .7rem .25rem;
  min-height: 46px; text-align: center; font: 700 clamp(.69rem, 1vw, .88rem)/1.2 Arial, sans-serif;
  cursor: pointer; text-decoration: none; display: grid; place-content: center;
}
.brand-picker [aria-pressed="true"] { background: var(--lime); box-shadow: inset 0 -3px var(--ink); }
.brand-picker :is(a,button):hover { background: #e4ecbb; }
.showcase :focus-visible { position: relative; z-index: 1; outline: 3px solid #6979ff; outline-offset: -4px; }
.feature-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy h1 { animation: title-enter .5s cubic-bezier(.2,.7,.2,1) both; }
  .brand-picker :is(a,button), .dark-button { transition: background-color .15s ease-out; }
  .button span, .text-link span { display: inline-block; transition: transform .18s ease-out; }
  .button:is(:hover,:focus-visible) span, .text-link:is(:hover,:focus-visible) span { transform: translateX(3px); }
  .brand-card:target .brand-body { animation: profile-highlight 1.2s ease-out; }
}
@keyframes title-enter { from { transform: translateY(.12em); opacity: .7; } to { transform: none; opacity: 1; } }
@keyframes profile-highlight { from { box-shadow: inset 0 -3px var(--green); } to { box-shadow: inset 0 0 transparent; } }

[hidden] { display: none !important; }
.poster-trigger {
  font: 700 .9rem Arial, sans-serif; min-height: 49px; margin: .55rem 0 0 .45rem;
  border: 1px solid var(--ink); background: var(--lime); color: var(--ink);
  padding: .75rem 1.05rem; cursor: pointer;
}
.poster-trigger:hover { background: #e6fb82; }
#poster-studio {
  padding: 0; border: 0; width: min(870px, calc(100% - 24px));
  max-height: calc(100dvh - 24px); overflow: auto; background: var(--paper); color: var(--ink);
}
#poster-studio::backdrop { background: rgb(10 14 13 / .78); }
body:has(#poster-studio[open]) { overflow: hidden; }
.editor-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--paper);
  position: sticky; top: 0; z-index: 1;
}
.editor-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.close-editor { border: 0; background: transparent; font-size: 1.8rem; width: 44px; height: 44px; cursor: pointer; }
.editor-grid { display: grid; grid-template-columns: 1.15fr 1fr; }
.print-table {
  background-color: #d4d4c8;
  background-image: radial-gradient(#a1a396 1px, transparent 1px);
  background-size: 9px 9px; padding: clamp(16px, 3.5vw, 40px);
  display: grid; align-items: center; justify-items: center;
}
.print-table canvas {
  width: min(100%, 376px); height: auto; aspect-ratio: 4 / 5; background: #eff0e8;
  box-shadow: 2px 8px 22px #37392d42; cursor: grab; touch-action: none;
}
.print-table canvas:active { cursor: grabbing; }
.editor-controls { display: grid; align-content: center; gap: .9rem; padding: clamp(16px, 2.5vw, 28px); }
.editor-controls > label, .editor-controls legend { font-weight: 700; font-size: .88rem; }
.editor-controls > label { display: grid; gap: .35rem; }
.editor-controls select, .editor-controls input[name="caption"] {
  font: inherit; color: var(--ink); width: 100%; min-height: 40px; border: 1px solid #acaea2;
  background: #fff; padding: .5rem .7rem; border-radius: 0;
}
.editor-controls fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: .35rem; flex-wrap: wrap; }
.editor-controls legend { margin-bottom: .4rem; }
.editor-controls fieldset label { display: inline-flex; gap: .25rem; align-items: center; min-height: 36px; padding: .25rem .48rem; border: 1px solid var(--line); font-size: .84rem; cursor: pointer; }
.editor-controls fieldset label:has(:checked) { border-color: var(--ink); }
.editor-controls input { accent-color: #475a00; }
.editor-controls input[type="range"] { width: 100%; }
#pan-help, .export-status { font-size: .78rem; color: var(--muted); line-height: 1.4; }
.download-poster { cursor: pointer; border: 0; }
.download-poster:disabled { opacity: .58; }
@media (max-width: 600px) {
  .editor-grid { grid-template-columns: 1fr; }
  .print-table { padding: 14px; }
  .print-table canvas { width: min(60vw, 225px); }
  .poster-trigger { margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  #poster-studio[open] { animation: editor-enter .22s ease-out; }
  @keyframes editor-enter { from { transform: translateY(12px); opacity: .75; } to { transform: none; opacity: 1; } }
}

.chapter-stage { display: none; }
.portfolio-surface {
  --chapter-paper: #eee8d9;
  --green: #384600;
  background-color: var(--chapter-paper);
}
/* Keep the chapter surfaces in the same warm paper and olive palette. */
.portfolio-surface:has(#holiv.is-reading) { --chapter-paper: #e9ebdf; }
.portfolio-surface:has(#mello-topup.is-reading) { --chapter-paper: #e2e7d8; }
.portfolio-surface:has(#mello-studio.is-reading) { --chapter-paper: #eee7dd; }
.portfolio-surface:has(#muutelu.is-reading) { --chapter-paper: #f1eadf; }
.chapter-index {
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0;
  background-color: var(--chapter-paper); border-block: 1px solid var(--ink);
}
.has-chapters .chapter-index { position: sticky; top: 0; z-index: 3; }
.chapter-index a {
  min-height: 48px; display: grid; place-items: center; padding: .45rem .12rem;
  font-size: clamp(.7rem,1.25vw,.95rem); text-align: center; text-decoration: none;
}
.chapter-index a[aria-current] { background: var(--ink); color: white; box-shadow: inset 0 -3px var(--lime); }
.chapter-index a:focus-visible { outline-offset: -4px; }
.chapter-layout { position: relative; }
.chapter-layout .brand-card { scroll-margin-top: 60px; }
.chapter-layout .brand-grid { padding-top: 1rem; }
@media (max-width: 899px), (max-height: 539px) {
  .has-chapters .brand-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .has-chapters .brand-card { padding-bottom: clamp(2rem,5vw,3.5rem); }
  .brand-photo { max-height: 66svh; }
  .brand-photo.muu-photo { aspect-ratio: 4 / 5; }
  .brand-photo:is(.holiv-photo, .studio-photo) { aspect-ratio: 1; }
  .brand-photo.topup-photo { aspect-ratio: 3 / 2; }
  .brand-photo.muutelu-photo { aspect-ratio: 128 / 90; }
  .has-chapters .brand-body { border-bottom-width: 2px; }
  .has-chapters .is-reading .brand-body { border-color: var(--green); }
}
@media (min-width: 900px) and (min-height: 540px) {
  .has-chapters .chapter-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem,5vw,6rem); }
  .has-chapters .chapter-stage {
    --stage-height: min(54svh, 540px);
    position: sticky; top: 72px; align-self: start; margin-top: 16px;
    display: grid; place-content: center stretch; justify-items: center; gap: .65rem;
    height: var(--stage-height);
  }
  .chapter-screen {
    --art-ratio: 1;
    width: min(100%, (var(--stage-height) - 56px) * var(--art-ratio));
    aspect-ratio: var(--art-ratio); border-radius: 14px;
    background: center / contain no-repeat;
  }
  .chapter-screen[data-brand="muu"] { --art-ratio: .8; }
  .chapter-screen[data-brand="mello-topup"] { --art-ratio: 1.5; }
  .chapter-screen[data-brand="muutelu"] { --art-ratio: calc(128 / 90); background-color: #f6f0e7; }
  .has-chapters .brand-grid { display:block; padding-top:0; }
  .has-chapters .brand-card { position:relative; justify-content:center; min-height:min(54svh, 540px); border-bottom:1px solid var(--line); }
  .has-chapters .brand-body { flex:none; border:0; }
  .has-chapters .brand-photo { position:absolute; width:1px; height:1px; clip-path:inset(50%); }
  .has-chapters .brand-body .eyebrow { color:var(--green); }
}
@media (prefers-reduced-motion:no-preference) {
  .portfolio-surface, .chapter-index { transition: background-color 420ms ease-out; }
  .chapter-index a { transition: background-color .18s ease, color .18s ease; }
}
/* Shared masthead for the company profile, businesses, and news. */
.site-header { background: #faf9f4; color: var(--ink); border-bottom: 1px solid #d9ddd1; }
.header-inner { min-height: 62px; }
.wordmark { letter-spacing: -.045em; }
.site-header .nav-contact span { color: var(--green); }
.language-menu { position: relative; z-index: 5; font-size: .88rem; }
.language-menu summary {
  list-style: none; display: flex; align-items: center; gap: .45rem;
  min-height: 36px; padding-inline: .7rem; border: 1px solid #b9c1af; border-radius: 6px; cursor: pointer;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-options {
  position: absolute; inset: calc(100% + .35rem) 0 auto auto; min-width: 8rem;
  padding: .25rem; border: 1px solid #b9c1af; border-radius: 6px; background: #faf9f4;
}
.language-options a { display: block; padding: .65rem .75rem; border-radius: 5px; }
.language-options a:is(:hover, [aria-current]) { background: #e7ebdd; }
@media (max-width: 540px) {
  .site-header .header-inner { padding-block: .65rem; flex-wrap: wrap; gap: .45rem; }
  .site-header nav { gap: clamp(.5rem, 2vw, .9rem); flex-wrap: wrap; }
}
.news-page { max-width: 850px; min-height: 65vh; padding-block: clamp(3rem, 9vw, 8rem); }
.news-page h1 { font-size: clamp(2.7rem, 7vw, 5rem); line-height: 1.04; margin-block: .75rem 1.25rem; }
.news-page h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); margin-block: .5rem; }
.news-page p { max-width: 65ch; line-height: 1.65; margin-block: .85rem; }
.news-list { list-style: none; padding: 0; margin-block: 2rem; }
.news-list li { border-top: 1px solid var(--line); padding-block: 1.4rem; }
.news-page time { color: var(--muted); font-size: .9rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--green); text-underline-offset: .16em; }
.profile-link { display: block; width: fit-content; margin-top: .6rem; font-size: .94rem; font-weight: 650; text-underline-offset: .2em; }
.brand-directory-page { max-width: 1160px; }
.brand-directory-page, .brand-detail {
  font-family: system-ui, "Leelawadee UI", Tahoma, sans-serif;
}
.brand-directory-page:lang(th), .brand-detail:lang(th) {
  font-family: "Leelawadee UI", Thonburi, "Noto Sans Thai", system-ui, sans-serif;
}
.brand-directory-page h1 {
  font-size: clamp(2.4rem, 4.5vw, 4rem); font-weight: 650;
  line-height: 1.1; letter-spacing: -.035em;
}
.brand-directory-list { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 1rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.brand-directory-list li { grid-column: span 2; }
.brand-directory-list li:nth-child(-n+2) { grid-column: span 3; }
.brand-directory-list a { display: block; height: 100%; border: 1px solid #d5dacb; border-radius: 14px; overflow: hidden; text-decoration: none; background: #faf9f3; }
.brand-directory-list a div { padding: 1rem 1.15rem 1.25rem; }
.brand-directory-list img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #eae5d9; }
.brand-directory-list li:nth-child(-n+2) img { object-fit: cover; }
.brand-directory-list li:nth-child(2) img { background: #241f1c; object-position: center 43%; }
.brand-directory-list li:nth-child(3) img { background: #17221d; }
.brand-directory-list a:hover { border-color: var(--green); }
.brand-directory-list a h2 {
  font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 650;
  line-height: 1.2; letter-spacing: -.025em; margin: 0;
}
.brand-directory-list a:is(:hover, :focus-visible) h2 { text-decoration: underline; text-underline-offset: .15em; }
.brand-directory-list p { color: var(--muted); margin: .55rem 0 0; text-wrap: pretty; }
.brand-detail { max-width: 1180px; padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 9vw, 7rem); }
.brand-detail article { --profile-surface: #eeebe0; }
.brand-detail [data-brand="muu"] { --profile-surface: #ebe6d9; --lead-position: center 67%; }
.brand-detail [data-brand="holiv"] { --profile-surface: #ebe7e0; --lead-position: center 44%; }
.brand-detail [data-brand="mello-topup"] { --profile-surface: #e7ecde; }
.brand-detail [data-brand="mello-studio"] { --profile-surface: #e7e9e1; --lead-position: 45% center; }
.brand-detail [data-brand="muutelu"] { --profile-surface: #f0e7db; --lead-position: 76% center; }
.brand-detail-heading {
  display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  align-items: center; gap: clamp(1.25rem, 5vw, 4.5rem); padding: clamp(1.25rem, 3.7vw, 3.5rem);
  margin-top: 1.25rem; background: #17211a; color: #f8f8f1;
}
.brand-lead-image { aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--lead-position, center); border: 1px solid #78846e; padding: 4px; }
.brand-detail-logo {
  display: block; width: clamp(6rem, 9vw, 8rem); height: auto; aspect-ratio: 512 / 360;
  object-fit: contain; margin-bottom: .85rem; padding: .4rem .65rem;
  background: #f5f3ea; border-radius: 5px;
}
/* The low, wide Muutelu wordmark needs more of the badge width. */
[data-brand="muutelu"] .brand-detail-logo { padding: 0; }
.brand-detail-heading h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.75rem); font-weight: 650;
  line-height: 1.08; letter-spacing: -.035em; margin: 0; text-wrap: balance;
}
.brand-detail-heading p {
  font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.6;
  color: #d6dece; margin: .85rem 0 0; max-width: 43ch; text-wrap: pretty;
}
.brand-quick-links { display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; border-bottom: 1px solid var(--line); padding: .55rem 0; color: var(--green); font-weight: 650; }
.brand-quick-links a { display: inline-flex; align-items: center; min-height: 44px; }
.brand-detail-section { margin-block-start: clamp(2.5rem, 6vw, 5rem); }
.brand-detail-section h2 { font-size: clamp(1.6rem, 2.65vw, 2.25rem); font-weight: 650; line-height: 1.18; letter-spacing: -.025em; margin: 0 0 .85rem; text-wrap: balance; }
.brand-detail-section h3 { font-size: clamp(1.125rem, 1.5vw, 1.3rem); font-weight: 600; line-height: 1.36; letter-spacing: -.01em; margin: 0; }
.brand-detail-section p { font-size: clamp(1rem, 1.15vw, 1.08rem); line-height: 1.65; color: var(--muted); margin: .5rem 0 0; max-width: 62ch; text-wrap: pretty; }
.brand-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 1rem 2rem; align-items: baseline; }
.brand-about :is(h2,p) { margin: 0; }
.brand-about p { font-size: clamp(1.08rem, 1.7vw, 1.28rem); }
.brand-offerings { list-style: none; margin: 1.15rem 0 0; padding: 0; }
#products .brand-offerings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem clamp(1.25rem, 3vw, 2.8rem); }
.brand-offerings li { border-top: 1px solid var(--line); padding-top: 1rem; }
#faq { max-width: 75ch; }
#faq .brand-offerings li { padding-block: 1.1rem; }
.brand-detail-links { display: flex; flex-wrap: wrap; gap: .65rem 1rem; list-style: none; padding: 0; }
.brand-detail a { text-underline-offset: .2em; }
.brand-detail #products li { border-top: 2px solid #798361; }
.brand-detail #brand-contact { background: #17211a; color: #f8f8f1; padding: clamp(1.25rem, 4vw, 3rem); }
.brand-detail #brand-contact ul { margin-bottom: 0; }
.brand-detail #brand-contact a { display: inline-flex; align-items: center; min-height: 44px; color: #e5ecd6; }
.brand-detail:lang(th) :is(.brand-detail-heading p, .brand-detail-section p) { line-height: 1.75; }
.brand-gallery-and-guide:has(.brand-gallery-grid > :only-child) {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.25rem, 5vw, 4.5rem); align-items: center;
}
.brand-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.brand-gallery-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.brand-gallery-grid:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.brand-gallery-grid img { aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: var(--profile-surface); }
[data-brand="mello-topup"] .brand-gallery-grid img { aspect-ratio: 16 / 9; background: #1b261d; }
[data-brand="mello-topup"] .brand-gallery-grid .gallery-mark img { object-fit: scale-down; padding: 1.4rem; background: #f0ece1; }
[data-brand="mello-topup"] .brand-gallery-grid figure { display: flex; flex-direction: column; align-items: flex-start; }
[data-brand="mello-topup"] .brand-gallery-grid figcaption { padding-bottom: .65rem; }
[data-brand="mello-topup"] .brand-gallery-grid .gallery-open { margin-top: auto; }
[data-brand="mello-topup"] .brand-gallery-grid figcaption strong {
  display: block; margin: .25rem 0; color: var(--ink); font-size: 1.12rem;
}
[data-brand="mello-studio"] .brand-gallery-grid img { aspect-ratio: 4 / 5; object-fit: cover; }
[data-brand="muutelu"] .brand-gallery-grid img { aspect-ratio: 4 / 3; }
.brand-gallery-grid figcaption { margin-top: .55rem; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.gallery-open, #gallery-viewer button {
  border: 1px solid currentColor; border-radius: 22px; padding: .35rem .8rem;
  min-height: 44px; min-width: 44px; touch-action: manipulation;
  color: inherit; background: transparent; font: inherit; font-size: .84rem; cursor: pointer;
}
.gallery-open { margin-top: .5rem; }
.gallery-open:hover { background: #e4e9d9; }
#gallery-viewer {
  overscroll-behavior: contain;
  width: min(720px,100% - 1.5rem); max-height: 94dvh; margin: auto; padding: 1rem;
  border: 1px solid #57614e; border-radius: 16px; background: #1c231b; color: #fafbf6; overflow: auto;
}
#gallery-viewer::backdrop { background: rgb(11 15 11 / .86); }
#gallery-viewer header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
#gallery-viewer h2 { margin: 0; font-size: 1.35rem; }
#gallery-viewer :focus-visible { outline-color: #e4f3a2; }
#gallery-viewer button:hover { background: #343d32; }
.gallery-viewer-photo { display: grid; place-items: center; margin-top: .9rem; overflow: hidden; border-radius: 8px; background: #101410; }
.gallery-viewer-photo img { object-fit: contain; height: min(58dvh,540px); }
.gallery-viewer-photo.gallery-mark { background: #f0ece1; }
.gallery-viewer-photo.gallery-mark img { object-fit: scale-down; height: min(42dvh,240px); padding: 1.5rem; }
.gallery-viewer-controls { display: flex; justify-content: center; align-items: center; gap: .8rem; }
.gallery-viewer-position { font-size: .85rem; }
.news-deck { font-size: 1.2rem; }
@media (max-width: 700px) {
  .brand-quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .8rem; }
  .brand-lead-image { aspect-ratio: 3 / 2; }
  .brand-directory-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .brand-directory-list li, .brand-directory-list li:nth-child(-n+2) { grid-column: auto; }
  .brand-detail-heading, .brand-about, #products .brand-offerings,
  .brand-gallery-and-guide:has(.brand-gallery-grid > :only-child),
  .brand-gallery-grid, .brand-gallery-grid:has(> :nth-child(3)) { grid-template-columns: minmax(0, 1fr); }
  .brand-about, .brand-gallery-and-guide:has(.brand-gallery-grid > :only-child) { gap: .55rem; }
}
@media (max-width: 540px) { .brand-directory-list { grid-template-columns: 1fr; } }
html[lang="th"] :is(h1,h2,h3) { letter-spacing: normal; line-height: 1.22; }
:is(.brand-directory-page, .brand-detail):lang(th) :is(h1,h2,h3) { letter-spacing: normal; line-height: 1.35; }
.brand-directory-page:lang(th) p { line-height: 1.75; }
.hero.shell {
  --gutter: max(4.5vw, (100vw - 1320px)/2);
  position: relative; isolation: isolate; width: 100%; margin: 0;
  min-height: clamp(540px, 76svh, 820px); padding: clamp(30px, 5vw, 74px) var(--gutter) 32px;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: auto auto;
  align-items: center; align-content: center; gap: 1rem clamp(1.5rem, 4vw, 4rem);
  background: #17211a; color: #f8f8f1;
}
.hero .showcase { display: contents; }
.hero .hero-art {
  position: relative; grid-area: 1 / 2; width: 100%; height: auto;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px;
}
.hero .hero-art img { object-position: 41% center; }
.hero .hero-art img[data-slide] { object-fit: cover; }
.hero .hero-art img[data-slide]:not(:first-child) { position: absolute; inset: 0; pointer-events: none; }
.hero .hero-art img:is([data-slide="muu"], [data-slide="holiv"]) {
  object-fit: contain; object-position: center;
}
.hero .hero-art img[data-slide="muu"] { background: #e6e5e0; }
.hero .hero-art img[data-slide="holiv"] { background: #241f1c; }
.hero .hero-art img[data-slide="mello-topup"] { object-position: 47% center; }
.hero .hero-art img[data-slide][hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-track.scroll-story { background: #17211a; }
  .hero-track.scroll-story::after { content: ""; display: block; height: clamp(680px, 133svh, 1400px); }
  .hero-track:not(.story-inactive) .hero.shell { position: sticky; top: 0; min-height: calc(100svh - 62px); }
  .hero-track.scroll-story + .portfolio-surface::before {
    content: ""; display: block; height: clamp(80px, 16svh, 150px);
    background: linear-gradient(#17211a, #353c2d 30%, #a9ad96 68%, transparent);
  }
  .hero-track.scroll-story + .portfolio-surface .portfolio { padding-top: clamp(1rem, 4vw, 3rem); }
}
.hero-copy { grid-area: 1 / 1; padding: 1.5rem 0; }
.hero h1 { font-size: clamp(2.65rem, 4.25vw, 4.8rem); line-height: 1; letter-spacing: -.04em; margin: 0 0 1rem; text-wrap: balance; }
.hero .hero-description { color: #e1e4da; max-width: 41ch; font-size: clamp(1rem, 1.4vw, 1.25rem); }
.hero-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-actions .button, .hero-company-link {
  margin: 0; min-height: 45px; padding: .7rem 1rem; border-radius: 6px;
  font-family: inherit; font-size: .88rem; font-weight: 650;
}
.hero-actions .button { color: #11160d; background: #e4f3a2; }
.hero-actions .button span { color: inherit; }
.hero-company-link { display: inline-flex; align-items: center; border: 1px solid #899180; color: #f2f4e9; text-decoration: none; }
.hero-actions .button:hover { background: #eff9c5; }
.hero-company-link:hover { background: #2e352a; }
.hero .feature-link {
  grid-row: 2; grid-column: 2; justify-self: stretch; align-self: center;
  display: grid; gap: .25rem 1rem; padding: .55rem 0; border: 0; border-top: 1px solid #5e6b5c;
  color: white; background: transparent; border-radius: 0;
}
.hero .feature-name { font-weight: 550; font-size: 1.17rem; }
.hero .feature-category { font-size: .72rem; color: #e4f3a2; }
.hero .feature-action { font-size: .76rem; }
.hero .brand-picker {
  position: relative;
  grid-column: 1; grid-row: 2; align-self: center; width: 100%; max-width: 520px;
  padding: 4px; background: #222c24; border: 1px solid #536250; border-radius: 8px; gap: 0;
}
.fade-cue {
  position: absolute; inset: calc(100% + 6px) 16px auto; height: 2px;
  border-radius: 2px; overflow: hidden; pointer-events: none; background: #41483d;
}
.fade-cue > span {
  display: block; height: 100%; background: var(--cue-color, #c9d7aa);
  transform: scaleX(0); transform-origin: left;
}
.fade-cue[data-next="muu"] { --cue-color: #d4ac59; }
.fade-cue[data-next="holiv"] { --cue-color: #c3a4ff; }
.fade-cue[data-next="mello-topup"] { --cue-color: #27bba2; }
@media (max-width: 700px) {
  .fade-cue { height: 1px; }
}
.hero .brand-picker :is(a,button) {
  font-family: inherit; font-size: clamp(.69rem,.95vw,.86rem); font-weight: 550;
  background: transparent; color: #e8eee1; border-radius: 5px; min-height: 40px;
}
.hero .brand-picker [aria-pressed="true"] { background: #e9efdf; color: #151a11; box-shadow: none; }
.hero .brand-picker :is(a,button):hover { background: #424b3c; color: white; }
.portfolio { padding-top: clamp(3.5rem, 8vw, 8rem); }
.section-heading { border: 0; padding-top: 0; gap: 1.5rem 4rem; }
.section-heading h2 { font-size: clamp(2.65rem,5.9vw,5.3rem); letter-spacing: -.04em; }
.section-heading p { max-width: 34ch; }
.section-heading .poster-trigger {
  margin: .7rem 0 0; border: 1px solid #a6af9d; border-radius: 6px; padding-inline: .85rem;
  color: var(--ink); background: transparent;
}
.section-heading .poster-trigger:hover { background: #e3e7da; }
.chapter-index { border-block-color: rgb(22 23 19 / .19); }
.chapter-index a { min-height: 52px; margin: 4px 0; border-radius: 32px; }
.chapter-index a[aria-current] { box-shadow: none; }
.chapter-index a:hover { text-decoration: underline; text-underline-offset: .2em; }
.chapter-layout .brand-card { scroll-margin-top: 72px; }
.brand-photo { border-radius: 20px; }
.brand-description { font-size: clamp(1rem, 1.55vw, 1.35rem); line-height: 1.47; max-width: 39ch; }
.brand-body .text-link, .contact-copy .button {
  padding-inline: 1rem; border-radius: 24px; background: #22291f; color: white;
}
.brand-body .text-link span { color: #e3f29f; }
.brand-body .social-link { margin-top: .25rem; }
.company { background: #1c231b; }
.company-inner { align-items: center; }
.company-copy { font-size: clamp(1.1rem, 2vw, 1.65rem); line-height: 1.4; }
.home-news { padding-block: clamp(2.4rem,6vw,6rem); }
.home-news-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .7rem 1rem; margin-bottom: 1.25rem; }
.home-news-heading h2 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.04em; }
.home-news-heading a, .company-record-link { text-underline-offset: .22em; }
.home-news-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1.25rem, 3.5vw, 3rem); list-style: none; padding: 0; margin: 0; }
.home-news-list a { height: 100%; display: block; border-bottom: 1px solid #cbd1c4; overflow: hidden; text-decoration: none; }
.home-news-list a:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.home-news-list img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; background: #e6e5e0; border-radius: 8px; }
.home-news-list a div { padding: clamp(.9rem,2.2vw,1.55rem) 0; }
.home-news-list h3 { font-size: clamp(1.3rem,2.6vw,2rem); }
.home-news-list p { margin: .65rem 0 0; color: var(--muted); max-width: 52ch; line-height: 1.5; }
.company-record { display: grid; gap: .52rem; margin: 1.25rem 0 .75rem; font-size: .92rem; }
.company-record div { display: flex; flex-wrap: wrap; gap: .35rem .75rem; }
.company-record dt { color: #bfcbb8; }
.company-record dd { margin: 0; }
.company-record-link { font-size: .9rem; }
@media (max-width: 620px) { .home-news-list { grid-template-columns: 1fr; } }
.company-fields { margin: 1.4rem 0 0; font-size: .95rem; }
.company-fields > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .75rem 0; border-top: 1px solid #57614e; }
.company-fields dt { color: #c0cbb7; }
.company-fields dd { margin: 0; }
.company-fields a { text-underline-offset: .2em; }
.company-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.1rem; font-size: .95rem; }
.company-links a, .map-link, .directory-grid a { text-underline-offset: .2em; }
.company-address { display: grid; gap: .3rem; margin-top: 1.25rem; max-width: 43ch; font-style: normal; line-height: 1.5; }
.contact { align-items: start; }
.contact-copy .company-address { border-top: 1px solid var(--line); padding-top: 1rem; }
.company-address a, .contact-copy a.map-link { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; }
.contact-copy .map-link { margin-left: 0; }
.contact-copy .button { display: flex; width: fit-content; margin-top: .35rem; }
.map-link { display: inline-block; margin: .75rem 0 0 .75rem; }
.office-contact { margin-block-start: 1.5rem; padding-block-start: 1rem; border-block-start: 1px solid currentColor; }
.office-contact .company-address { margin: 0 0 .75rem; }
.office-map { margin-block-start: 1rem; }
.office-map summary { width: fit-content; min-height: 44px; padding-block: .7rem; cursor: pointer; font-weight: 600; }
.office-map iframe { display: block; width: 100%; height: clamp(15rem, 35vw, 23rem); border: 0; }
.business-directory { border-top: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 4.5rem); }
.business-directory h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1.2rem; }
.partnerships { padding-block: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.partnerships h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1.35rem; }
.partner-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.75rem), 1fr));
  gap: .65rem; padding: 0; margin: 0; list-style: none;
}
.partner-grid a {
  min-height: 74px; display: grid; place-items: center; height: 100%;
  border: 1px solid #dcded2; border-radius: 8px; background: #fff;
}
.partner-grid a:hover { border-color: #74806b; }
.partner-grid img { width: min(100%, 160px); height: auto; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.directory-grid article { padding-top: 1rem; border-top: 1px solid var(--line); }
.directory-grid h3 { font-size: 1.35rem; }
.directory-grid p { margin-top: .65rem; color: var(--muted); line-height: 1.5; }
.directory-grid ul { list-style: none; padding: 0; margin: .55rem 0 0; }
.directory-grid a { display: inline-block; padding-block: .35rem; }
@media (max-width: 740px) {
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .directory-grid { grid-template-columns: 1fr; }
  .map-link { margin-left: 0; display: block; }
}
@media (min-width: 900px) and (min-height: 540px) {
  .has-chapters .chapter-layout { grid-template-columns: 1.16fr .84fr; }
  .has-chapters .brand-title h3 { font-size: clamp(2.75rem,4.6vw,4.6rem); }
}
@media (max-width: 700px) {
  .hero.shell {
    min-height: auto; padding: 0 0 1.5rem; grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto auto; align-content: start; gap: 0;
  }
  .hero .hero-art { grid-area: 1/1; width: 100%; height: auto; aspect-ratio: 1.68; border-radius: 0; }
  .hero .feature-link { grid-area: 1/1; z-index: 1; justify-self: start; margin: 0 0 .75rem 4.5vw; padding: .55rem .7rem; background: #17211a; }
  .hero-copy { grid-area: 2/1; padding: 1.35rem 4.5vw 1.25rem; }
  .hero h1 { font-size: clamp(2.4rem, 8.8vw, 4.2rem); margin: 0 0 .8rem; line-height: 1.03; }
  .hero .hero-description { max-width: 40ch; }
  .hero-actions { margin-top: 1rem; }
  .hero .brand-picker { grid-area: 3/1; margin-inline: 4.5vw; width: 91%; max-width: none; }
  .hero .brand-picker :is(a,button) { min-height: 40px; font-size: .75rem; }
  .scroll-story .hero .hero-art img[data-slide] { object-position: 50% center; }
  .scroll-story .hero .hero-art img[data-slide="mello-topup"] { object-fit: contain; background: #17221d; }
  .brand-photo { border-radius: 14px; }
  .chapter-index a { font-size: .75rem; min-height: 44px; }
  .portfolio { padding-top: 3rem; }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .hero-track:not(.story-inactive) .hero.shell { grid-template-rows: clamp(180px, 80vw, 355px) auto auto auto; min-height: calc(100svh - 100px); }
  .hero-track:not(.story-inactive) .hero .hero-art { height: 100%; aspect-ratio: auto; }
  .hero-track:not(.story-inactive) .hero .feature-link {
    grid-area: 2/1; width: 91%; margin: .65rem auto 0; background: #1c231b;
    border: 1px solid #536250; grid-template-columns: 1fr auto;
  }
  .hero-track:not(.story-inactive) .hero-copy { grid-area: 3/1; padding-top: 1.1rem; }
  .hero-track:not(.story-inactive) .hero .brand-picker { grid-area: 4/1; }
}

.brand-photo { position: relative; }
.inspect-art, .art-tools button {
  font-family: inherit; font-size: .85rem; line-height: 1.2; font-weight: 650;
  color: #fcfcf7; background: #171d18; border: 1px solid #71786d;
  border-radius: 22px; padding: .65rem .95rem; min-height: 44px; cursor: pointer;
}
.inspect-art { position: absolute; right: .8rem; top: .8rem; }
.inspect-art:hover, .art-tools button:hover { background: #343d32; }
@media (min-width: 900px) and (min-height: 540px) {
  .has-chapters .brand-photo .inspect-art { display: none; }
  .chapter-stage > .inspect-art { position: static; }
}
#art-viewer {
  border: 0; padding: 0; margin: auto; width: min(100% - 24px, 920px);
  max-height: 94dvh; overflow: auto; border-radius: 18px; background: #182019; color: #fafbf6;
}
#art-viewer::backdrop { background: rgb(7 11 8 / .85); }
body:has(#art-viewer[open]) { overflow: hidden; }
.art-tools { display:flex; align-items:center; justify-content:space-between; padding:.8rem 1rem; gap: .6rem; }
.art-tools h2 { font-size: clamp(1.35rem,3vw,2rem); letter-spacing:-.045em; margin-right:auto; }
.art-viewport { height: min(64dvh, 630px); width: 100%; background: #101410; overflow: auto; overscroll-behavior: contain; }
.art-viewport img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.art-viewport.magnified { cursor: grab; }
.art-viewport.magnified img { width: 200%; height: 200%; max-width: none; }
.art-description { padding: .85rem 1rem; font-size: .92rem; line-height:1.45; color: #e0e6dc; }
