/* ============================================================
   306 Studio Design — The Quiet Gallery
   ขาว–ดำ–ทองเหลืองด้าน · Prompt น้ำหนักบาง · แบนคม ไม่มีเงา
   ============================================================ */

:root {
  --ink: #111;
  --charcoal: #0f0f0f;
  --body-gray: #3c3c3c;
  --muted: #6e6e6e;          /* ≥4.5:1 บนพื้นขาว */
  --line: #e5e5e5;
  --gold: #c9a24b;           /* ใช้บนพื้นเข้ม/เป็นเส้น */
  --gold-deep: #8f6f26;      /* ใช้เป็นสีตัวอักษรบนพื้นขาว (4.7:1) */
  --white: #fff;
  --font: 'Prompt', sans-serif;
  /* z-scale */
  --z-header: 100;
  --z-menu: 110;
  --z-skip: 120;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: var(--z-skip);
  background: var(--charcoal); color: #fff;
  padding: 12px 22px; font-size: .8rem; letter-spacing: .2em;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.kicker {
  font-size: .72rem;
  letter-spacing: .5em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.text-link {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: color .3s ease, border-color .3s ease, letter-spacing .3s ease;
}
.text-link:hover, .text-link:focus-visible { color: var(--gold-deep); border-color: var(--gold-deep); letter-spacing: .45em; }

/* ---------- reveal on scroll ----------
   เนื้อหามองเห็นได้เป็นค่าเริ่มต้นเสมอ (บอท/แท็บซ่อน/no-JS เห็นครบ)
   จะเริ่มซ่อนเพื่อเล่น reveal ก็ต่อเมื่อ JS เติม html.reveal เท่านั้น */
html.reveal .fade {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--d, 0s);
}
html.reveal .fade.visible { opacity: 1; transform: none; }
html.reveal .fade-line {
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--d, 0s);
}
html.reveal .fade-line.visible { clip-path: inset(0 0 0 0); }

/* ============================================================
   HEADER
   ============================================================ */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 48px;
  transition: background .4s ease, box-shadow .4s ease;
}
.logo-img { height: 44px; width: auto; }
.logo-dark { display: none; }

.hdr-menu { display: flex; gap: 42px; }
.hdr-menu a {
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .32em;
  color: #fff;
  position: relative;
  padding: 10px 2px;
  transition: color .3s ease;
}
.hdr-menu a::after {
  content: ""; position: absolute; left: 0; bottom: 4px;
  width: 0; height: 1px; background: currentColor;
  transition: width .35s ease;
}
.hdr-menu a:hover::after, .hdr-menu a:focus-visible::after { width: 100%; }
.hdr-menu a:hover { color: var(--gold); }

.hdr.solid { background: rgba(255,255,255,.96); box-shadow: 0 1px 0 var(--line); padding-top: 14px; padding-bottom: 14px; }
.hdr.solid .hdr-menu a { color: var(--ink); }
.hdr.solid .hdr-menu a:hover { color: var(--gold-deep); }
.hdr.solid .logo-light { display: none; }
.hdr.solid .logo-dark { display: block; }

.hdr-burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.hdr-burger span {
  display: block; width: 26px; height: 1.5px; margin: 7px auto;
  background: #fff; transition: transform .3s ease, background .3s ease;
}
.hdr.solid .hdr-burger span { background: var(--ink); }
.hdr-burger.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.hdr-burger.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ============================================================
   FULLSCREEN SLIDER
   ============================================================ */
.slider { position: relative; height: 100svh; overflow: hidden; background: #000; }
.slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s ease;
  pointer-events: none;
}
.slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, transparent 30%, transparent 62%, rgba(0,0,0,.5) 100%);
}
.slide-title {
  position: absolute; left: 48px; bottom: 54px; z-index: 2;
  color: #fff;
}
.slide-title span {
  display: block;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 300;
  letter-spacing: .3em;
  text-wrap: balance;
}
.slide-title small {
  display: block;
  margin-top: 8px;
  font-size: .68rem;
  font-weight: 300;
  letter-spacing: .4em;
  color: rgba(255,255,255,.85);
}
.slide-title::before {
  content: "";
  display: block;
  width: 54px; height: 1px;
  background: var(--gold);
  margin-bottom: 16px;
}

.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  background: none; border: 0;
  color: rgba(255,255,255,.85);
  font-size: 1.5rem; cursor: pointer;
  padding: 18px;
  min-width: 44px; min-height: 44px;
  transition: color .3s ease, transform .3s ease;
}
.slide-arrow:hover { color: #fff; }
.slide-arrow.prev { left: 22px; }
.slide-arrow.next { right: 22px; }
.slide-arrow.prev:hover { transform: translateY(-50%) translateX(-4px); }
.slide-arrow.next:hover { transform: translateY(-50%) translateX(4px); }

.slide-ui {
  position: absolute; right: 48px; bottom: 44px; z-index: 3;
  display: flex; align-items: center; gap: 4px;
}
.slide-dots { display: flex; }
.slide-dots button {
  position: relative;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
}
.slide-dots button::after {
  content: "";
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 2px;
  background: rgba(255,255,255,.45);
  transition: background .3s ease, width .3s ease;
}
.slide-dots button.on::after { background: var(--gold); width: 34px; }
.slide-pause {
  position: relative;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  transition: color .3s ease;
}
.slide-pause:hover { color: #fff; }

.slide-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 3;
  width: 1px; height: 46px;
  background: rgba(255,255,255,.28);
  overflow: hidden;
}
.slide-scroll span {
  position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%;
  background: #fff;
  animation: drop 2s ease-in-out infinite;
}
@keyframes drop { 0% { top: -40%; } 100% { top: 110%; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 130px 48px; }
.about-inner {
  max-width: 1280px; margin-inline: auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: center;
}
.about-text {
  font-size: .98rem;
  color: var(--body-gray);
  margin-bottom: 40px;
  max-width: 46ch;
  text-wrap: pretty;
}
.about-photo img { width: 100%; height: 560px; object-fit: cover; }

/* ============================================================
   PROJECTS GRID
   ============================================================ */
.works { padding: 0 48px 40px; }
.works-grid {
  max-width: 1280px; margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.work { position: relative; overflow: hidden; display: block; aspect-ratio: 3 / 2; background: var(--line); }
.work img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s ease;
}
.work:hover img, .work:focus-visible img { transform: scale(1.06); }
.work-veil {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, .45);
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .5s ease;
}
.work:hover .work-veil, .work:focus-visible .work-veil { opacity: 1; }
.work-veil span {
  color: #fff;
  font-size: .92rem;
  font-weight: 300;
  letter-spacing: .38em;
  text-align: center;
  padding: 0 20px;
  transform: translateY(10px);
  transition: transform .5s ease;
}
.work-veil small {
  display: block;
  margin-top: 6px;
  font-size: .64rem;
  letter-spacing: .3em;
  color: rgba(255,255,255,.85);
}
.work:hover .work-veil span, .work:focus-visible .work-veil span { transform: none; }
.works-more { text-align: center; padding: 60px 0 30px; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc { padding: 110px 48px; text-align: center; border-top: 1px solid var(--line); }
.svc .kicker { margin-bottom: 34px; }
.svc-list {
  display: flex; flex-wrap: wrap; justify-content: center;
  max-width: 1100px; margin-inline: auto;
}
.svc-list li {
  font-size: .82rem;
  font-weight: 300;
  letter-spacing: .35em;
  padding: 6px 34px;
  border-right: 1px solid var(--line);
  transition: color .3s ease;
}
.svc-list li:last-child { border-right: 0; }
.svc-list li:hover { color: var(--gold-deep); }

/* ============================================================
   UPDATES — บทความ / วิดีโอ (เติมจาก Firestore)
   ============================================================ */
.updates { padding: 20px 48px 120px; display: none; }
.updates.has-posts { display: block; }
.updates-inner { max-width: 1280px; margin-inline: auto; }
.updates .kicker { text-align: center; }
.updates-grid {
  display: grid;
  /* auto-fill: การ์ดคงขนาดพอดี ไม่ยืดเต็มแถวตอนมีโพสต์น้อยชิ้น */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  max-width: 1280px;
  align-items: start;
}
.post { max-width: 320px; }
.post {
  display: block;
  border: 1px solid var(--line);
  transition: border-color .3s ease;
}
.post:hover { border-color: var(--ink); }
.post-thumb { aspect-ratio: 1 / 1; overflow: hidden; background: var(--line); position: relative; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.post:hover .post-thumb img { transform: scale(1.05); }
.post-thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 2rem;
  background: rgba(10,10,10,.25);
}
.post-body { padding: 20px 22px 24px; }
.post-platform {
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 8px;
}
.post-title { font-size: .95rem; font-weight: 400; line-height: 1.5; color: var(--ink); }

/* ============================================================
   PRESS QUOTE
   ============================================================ */
.press {
  background: var(--charcoal);
  color: #fff;
  padding: 150px 48px;
}
.press-inner { max-width: 860px; margin-inline: auto; text-align: center; }
.press h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 200;
  letter-spacing: .3em;
  line-height: 1.4;
  margin-bottom: 40px;
  text-wrap: balance;
}
.press h2::after {
  content: "";
  display: block;
  width: 56px; height: 1px;
  background: var(--gold);
  margin: 34px auto 0;
}
.press p {
  color: #b5b5b5;
  font-size: .98rem;
  max-width: 56ch;
  margin: 0 auto 44px;
  text-wrap: pretty;
}
.press .text-link { color: #fff; border-color: #fff; }
.press .text-link:hover, .press .text-link:focus-visible { color: var(--gold); border-color: var(--gold); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 140px 48px; text-align: center; }
.contact-tel {
  display: block;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 200;
  letter-spacing: .18em;
  margin-bottom: 10px;
  transition: color .3s ease;
}
.contact-tel:hover { color: var(--gold-deep); }
.contact-mail {
  display: inline-block;
  font-size: .95rem;
  letter-spacing: .2em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  margin-bottom: 26px;
  transition: color .3s ease, border-color .3s ease;
}
.contact-mail:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.contact-addr { font-size: .8rem; color: var(--muted); letter-spacing: .08em; }
.contact-social { display: flex; justify-content: center; gap: 26px; margin-top: 34px; }
.contact-social a { display: grid; place-items: center; width: 44px; height: 44px; }
.contact-social svg { width: 20px; height: 20px; fill: var(--ink); transition: fill .3s ease, transform .3s ease; }
.contact-social a:hover svg { fill: var(--gold-deep); transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.ftr {
  border-top: 1px solid var(--line);
  padding: 30px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ftr p { font-size: .72rem; letter-spacing: .12em; color: var(--muted); }
.ftr-social { display: flex; gap: 10px; }
.ftr-social a { display: grid; place-items: center; width: 44px; height: 44px; }
.ftr-social svg {
  width: 18px; height: 18px;
  fill: var(--ink);
  transition: fill .3s ease, transform .3s ease;
}
.ftr-social a:hover svg { fill: var(--gold-deep); transform: translateY(-2px); }

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.page-head { padding: 170px 48px 40px; text-align: center; }
.page-head h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 200;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-wrap: balance;
}
.page-head h1::after {
  content: "";
  display: block;
  width: 54px; height: 1px;
  background: var(--gold);
  margin: 26px auto 0;
}
.page-head p { color: var(--muted); font-size: .85rem; letter-spacing: .12em; margin-top: 22px; }

.filter {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  padding: 26px 48px 46px;
}
.filter button {
  font-family: var(--font);
  font-size: .72rem; font-weight: 300;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted);
  background: none; border: 0; cursor: pointer;
  padding: 12px 20px;
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.filter button:hover { color: var(--ink); }
.filter button[aria-pressed="true"] { color: var(--ink); border-color: var(--gold-deep); }

.plist { padding: 0 48px 110px; }
.plist-grid {
  max-width: 1280px; margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 26px 26px;
}
.pcard { display: block; }
.pcard-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.pcard:hover .pcard-img img, .pcard:focus-visible .pcard-img img { transform: scale(1.06); }
.pcard-name {
  margin-top: 16px;
  font-size: .9rem; font-weight: 400;
  letter-spacing: .28em; text-transform: uppercase;
}
.pcard-meta {
  font-size: .68rem; letter-spacing: .18em;
  color: var(--muted); text-transform: uppercase;
  margin-top: 4px;
}
.pcard.is-hidden { display: none; }

/* ============================================================
   PROCESS — ขั้นตอนการทำงาน (ลำดับจริง 5 ขั้น)
   ============================================================ */
.process { padding: 120px 48px; border-top: 1px solid var(--line); }
.process-inner { max-width: 1280px; margin-inline: auto; }
.process .kicker { text-align: center; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 44px 34px;
  margin-top: 30px;
}
.step-num {
  font-size: 2rem; font-weight: 200;
  color: var(--gold-deep);
  line-height: 1;
}
.step-num::after {
  content: ""; display: block;
  width: 30px; height: 1px;
  background: var(--line);
  margin: 18px 0 16px;
}
.step h3 {
  font-size: .88rem; font-weight: 500;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.step p { font-size: .84rem; color: var(--muted); line-height: 1.75; text-wrap: pretty; }

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
.detail-head { padding: 160px 48px 10px; max-width: 1280px; margin-inline: auto; }
.back-link {
  display: inline-block;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted);
  padding: 10px 0;
  margin-bottom: 28px;
  transition: color .3s ease;
}
.back-link:hover { color: var(--gold-deep); }
.detail-head h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 200;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-wrap: balance;
}
.detail-meta {
  margin-top: 14px;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.scope-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.scope-list li {
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 8px 16px;
  color: var(--muted);
}
.detail-desc {
  margin-top: 30px;
  max-width: 62ch;
  font-size: .95rem;
  color: var(--body-gray);
  text-wrap: pretty;
}
.gallery { padding: 50px 48px 90px; }
.gallery-cols { max-width: 1280px; margin-inline: auto; columns: 2; column-gap: 26px; }
.gallery-cols figure { break-inside: avoid; margin: 0 0 26px; }
.gallery-cols img { width: 100%; background: var(--line); }
.gallery-note {
  max-width: 1280px; margin: 0 auto 34px;
  font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--muted);
}
.detail-nav {
  border-top: 1px solid var(--line);
  padding: 34px 48px;
}
.detail-nav-inner {
  max-width: 1280px; margin-inline: auto;
  display: flex; justify-content: space-between; gap: 20px;
}
.cta-strip {
  background: var(--charcoal);
  color: #fff;
  text-align: center;
  padding: 100px 48px;
}
.cta-strip .kicker { color: #b5b5b5; }
.cta-strip-tel {
  display: inline-block;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 200;
  letter-spacing: .18em;
  transition: color .3s ease;
}
.cta-strip-tel:hover { color: var(--gold); }
.cta-strip p { color: #b5b5b5; font-size: .9rem; max-width: 48ch; margin: 0 auto 30px; text-wrap: pretty; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.svcp { padding: 30px 48px 60px; }
.svcp-list { max-width: 1280px; margin-inline: auto; }
.svcp-item {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) 1.1fr;
  gap: 40px 70px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.svcp-item:first-child { border-top: 0; }
.svcp-num {
  font-size: .72rem; letter-spacing: .35em;
  color: var(--gold-deep);
  display: block; margin-bottom: 14px;
}
.svcp-item h2 {
  font-size: 1.15rem; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
  margin-bottom: 16px;
  text-wrap: balance;
}
.svcp-item .desc { font-size: .92rem; color: var(--body-gray); max-width: 48ch; text-wrap: pretty; }
.svcp-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: start; }
.svcp-related a { display: block; }
.svcp-related .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.svcp-related img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.svcp-related a:hover img { transform: scale(1.05); }
.svcp-related span {
  display: block; margin-top: 8px;
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   UPDATES PAGE — รวมบทความ & วิดีโอ
   ============================================================ */
.upd-list { padding: 10px 48px 110px; }
.upd-grid {
  max-width: 1280px; margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  align-items: start;
}
.upd-grid .post { max-width: 320px; }
.upd-empty {
  max-width: 560px; margin: 30px auto 0;
  text-align: center; color: var(--muted);
  border: 1px dashed var(--line);
  padding: 70px 30px;
  font-size: .92rem;
}
.upd-loading { text-align: center; color: var(--muted); padding: 60px 0; font-size: .85rem; letter-spacing: .2em; }

/* ---------- article detail ---------- */
.article { max-width: 760px; margin-inline: auto; padding: 160px 24px 90px; }
.article .back-link { margin-bottom: 20px; }
.article h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.5;
  text-wrap: balance;
}
.article-meta {
  margin-top: 14px;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.article-cover { margin: 34px 0; }
.article-cover img { width: 100%; background: var(--line); }
.article-body { font-size: 1rem; color: var(--body-gray); line-height: 2; }
.article-body p { margin-bottom: 1.4em; max-width: 68ch; text-wrap: pretty; }
.article-body h2, .article-body h3 {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.6;
  margin: 1.8em 0 .6em;
  text-wrap: balance;
}
.article-body h2 { font-size: 1.25rem; }
.article-body h3 { font-size: 1.05rem; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.6em; }
.article-body li { margin-bottom: .4em; }
.article-body ul { list-style: disc; }
.article-body blockquote {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin: 1.6em 0;
  color: var(--muted);
}
.article-body img {
  max-width: 100%; height: auto;
  display: block;
  margin: 1.8em auto;
  background: var(--line);
}
.article-body a { color: var(--gold-deep); text-decoration: underline; }
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }
.article-cta { margin-top: 40px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hdr { padding: 18px 24px; }
  .hdr.solid { padding-top: 12px; padding-bottom: 12px; }
  .logo-img { height: 36px; }

  .hdr-burger { display: block; }
  .hdr-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: var(--z-menu);
    width: min(320px, 82vw);
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 0 44px;
    transform: translateX(100%);
    transition: transform .45s ease;
    visibility: hidden;
  }
  .hdr-menu.open { transform: none; visibility: visible; }
  .hdr-menu a, .hdr.solid .hdr-menu a { color: #fff; font-size: .85rem; }
  .hdr-burger { position: relative; z-index: var(--z-menu); }

  .slide-title { left: 24px; bottom: 84px; max-width: calc(100vw - 48px); }
  .slide-ui { right: 12px; bottom: 66px; }
  .slide-arrow { display: none; }

  .about { padding: 90px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .about-photo img { height: 340px; }

  .works { padding: 0 24px 30px; }
  .works-grid { grid-template-columns: 1fr; gap: 18px; }
  .work-veil { opacity: 1; background: linear-gradient(180deg, transparent 55%, rgba(10,10,10,.72) 100%); display: block; }
  .work-veil span {
    position: absolute; left: 18px; bottom: 14px;
    font-size: .78rem; padding: 0; transform: none;
    text-align: left;
  }

  .svc { padding: 80px 24px; }
  .svc-list li { border-right: 0; padding: 6px 16px; }

  .updates { padding: 10px 24px 90px; }
  .press { padding: 100px 24px; }
  .contact { padding: 100px 24px; }
  .ftr { justify-content: center; text-align: center; }

  .page-head { padding: 140px 24px 30px; }
  .filter { padding: 20px 12px 36px; }
  .plist { padding: 0 24px 90px; }
  .plist-grid { grid-template-columns: 1fr; gap: 20px; }

  .process { padding: 80px 24px; }
  .detail-head { padding: 130px 24px 10px; }
  .gallery { padding: 34px 24px 70px; }
  .gallery-cols { columns: 1; }
  .detail-nav { padding: 26px 24px; }
  .cta-strip { padding: 80px 24px; }
  .svcp { padding: 10px 24px 40px; }
  .svcp-item { grid-template-columns: 1fr; gap: 26px; padding: 48px 0; }
  .svcp-related { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ============================================================
   REDUCED MOTION — ทุกอนิเมชันมีทางปิด
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.reveal .fade, html.reveal .fade-line {
    opacity: 1; transform: none; clip-path: none;
    transition: none;
  }
  .slide { transition: opacity .4s ease; transform: none; }
  .slide.is-active { transform: none; }
  .slide-scroll span { animation: none; top: 30%; }
  .work img, .pcard-img img, .post-thumb img { transition: none; }
  .work:hover img, .pcard:hover .pcard-img img { transform: none; }
  .text-link { transition: color .2s ease, border-color .2s ease; }
  .text-link:hover { letter-spacing: .35em; }
}
