/* ═══════════════════════════════════════════════════════
   BANRAK INTERIOR — บ้านรักษ์ อินทีเรีย
   โครงดีไซน์อ้างอิงจังหวะ mirxes.com · โทนแบรนด์ทอง/ครีม/เทา/ดำ
   ═══════════════════════════════════════════════════════ */

:root {
  /* palette */
  --bg: #F5F3EF;            /* off-white อุ่นอ่อน ๆ ตามโทนแบรนด์ */
  --surface: #FFFFFF;
  --greige: #EBE6DD;        /* การ์ดโทนครีมเทา */
  --ink: #1C1A16;           /* ตัวหนังสือหลัก เกือบดำอุ่น */
  --muted: #5C564B;         /* รอง ยังผ่าน 4.5:1 บนพื้นอ่อน */
  --gold: #B08A3E;          /* ทองหลักจากโลโก้ */
  --gold-deep: #8A6A2B;     /* ทองเข้ม ใช้กับตัวหนังสือเล็กบนพื้นอ่อน */
  --gold-hi: #E7C564;       /* ทองอ่อนปลายเกรเดียนต์โลโก้ */
  --dark: #14110C;          /* ส่วนมืด: promo + footer */
  --dark-2: #1E1A13;
  --cream-on-dark: #F1ECE1;
  --line: #DDD7CB;

  /* shape & type */
  --r-card: clamp(20px, 3.5vw, 44px);
  --r-md: 20px;
  --pill: 999px;
  --font: "Anuphan", "Helvetica Neue", sans-serif;
  --w-max: 1280px;
  --pad: clamp(20px, 4vw, 56px);

  /* z-scale */
  --z-nav: 50;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.015em; text-wrap: balance; line-height: 1.25; }
p { text-wrap: pretty; }
strong { font-weight: 500; }

/* ── buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  border-radius: var(--pill);
  font-size: 16px; font-weight: 500;
  text-decoration: none;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold {
  background: linear-gradient(120deg, var(--gold-hi), var(--gold) 78%);
  color: #221A08;
  box-shadow: 0 8px 26px rgba(176, 138, 62, 0.35);
}
.btn--gold:hover { box-shadow: 0 14px 34px rgba(176, 138, 62, 0.45); }
.btn--ghost {
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,.08);
}
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #322E26; }
.btn--lg { padding: 17px 38px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ── nav ─────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background-color .35s, box-shadow .35s;
}
.nav.is-solid {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(28,26,22,.07), 0 10px 30px rgba(28,26,22,.06);
}
.nav__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 84px;
  display: flex; align-items: center; gap: 28px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__mark { height: 44px; width: auto; }
.nav__name {
  font-size: 17px; font-weight: 600; letter-spacing: .06em; line-height: 1.15;
  color: #fff; display: flex; flex-direction: column; transition: color .35s;
}
.nav__name em { font-style: normal; font-weight: 300; display: inline; }
.nav__name small { font-size: 11.5px; font-weight: 400; letter-spacing: .02em; opacity: .85; }
.nav.is-solid .nav__name { color: var(--ink); }
.nav__cta { flex: none; margin-left: auto; }

/* ── burger (แสดงทุกขนาดจอ) ── */
.nav__burger {
  display: grid; place-items: center;
  align-content: center; gap: 5px;
  width: 52px; height: 52px;
  background: none; border: none; cursor: pointer;
  border-radius: 50%;
  transition: background-color .3s;
}
.nav__burger:hover { background: rgba(255,255,255,.14); }
.nav.is-solid .nav__burger:hover, .nav--light .nav__burger:hover { background: rgba(28,26,22,.07); }
.nav__burger span {
  display: block; width: 24px; height: 2px;
  background: #fff;
  transition: transform .45s var(--ease-out), opacity .3s, background-color .35s;
}
.nav.is-solid .nav__burger span, .nav--light .nav__burger span { background: var(--ink); }
body.menu-open .nav__burger span { background: var(--ink); }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── side drawer (เมนูสไลด์แบบ bareo) ── */
.drawer-backdrop {
  position: fixed; inset: 0;
  z-index: 60;
  background: rgba(16,13,8,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .5s;
}
body.menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; inset: 0 auto 0 0;
  z-index: 61;
  width: min(430px, 88vw);
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 28px clamp(28px, 5vw, 52px) 36px;
  transform: translateX(-102%);
  transition: transform .6s var(--ease-out);
  box-shadow: 30px 0 80px rgba(16,13,8,.25);
  overflow-y: auto;
}
body.menu-open .drawer { transform: translateX(0); }
.drawer__head {
  margin-bottom: clamp(28px, 6vh, 56px);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer__mark { height: 52px; }
.drawer__close {
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none; cursor: pointer;
  font-size: 17px; color: var(--muted);
  transition: background-color .3s, color .3s, transform .45s var(--ease-out);
}
.drawer__close:hover { background: var(--ink); color: var(--gold-hi); transform: rotate(90deg); }
.drawer__links { display: grid; }
.drawer__links a {
  display: flex; align-items: baseline; gap: 14px;
  padding: clamp(13px, 2.2vh, 19px) 0;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(19px, 2.4vh, 23px);
  font-weight: 300;
  border-bottom: 1px solid var(--line);
  transition: color .3s, padding-left .45s var(--ease-out);
}
.drawer__links a small {
  font-size: 11px; letter-spacing: .22em;
  color: var(--muted); opacity: .7;
  font-weight: 500;
}
.drawer__links a:hover { color: var(--gold-deep); padding-left: 10px; }
.drawer__links a.is-active { color: var(--gold-deep); font-weight: 500; }
.drawer__links a.is-active small { color: var(--gold-deep); }
.drawer__foot { margin-top: auto; padding-top: 36px; }
.drawer__phone {
  display: block;
  font-size: 22px; font-weight: 400;
  color: var(--ink); text-decoration: none;
  margin-bottom: 6px;
  transition: color .3s;
}
.drawer__phone:hover { color: var(--gold-deep); }
.drawer__foot p { font-size: 13.5px; color: var(--muted); }

/* ── hero ────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  isolation: isolate;
}
.hero__bg, .hero__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 70% at 50% 46%, rgba(16,13,8,.34) 0%, rgba(16,13,8,.16) 62%, rgba(16,13,8,0) 100%),
    linear-gradient(180deg, rgba(16,13,8,.52) 0%, rgba(16,13,8,.38) 42%, rgba(16,13,8,.62) 100%);
}
.hero__content {
  text-align: center;
  color: #fff;
  padding: 140px var(--pad) 120px;
  max-width: 980px;
  text-shadow: 0 1px 24px rgba(10, 8, 4, .45);
}
.hero__kicker {
  font-size: clamp(12.5px, 1.4vw, 15px);
  letter-spacing: .34em;
  text-indent: .34em; /* ชดเชย tracking ให้กึ่งกลางจริง */
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-hi);
  margin-bottom: 14px;
}
.hero__tagline {
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 300;
  color: rgba(255,255,255,.92);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  font-weight: 250;
  letter-spacing: -0.01em;
  line-height: 1.28;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero__sub {
  margin: 26px auto 38px;
  max-width: 620px;
  font-size: clamp(15.5px, 1.8vw, 18px);
  font-weight: 300;
  color: rgba(255,255,255,.94);
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 999px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; translate: -50% 0;
  width: 3px; height: 8px; border-radius: 3px;
  background: var(--gold-hi);
  animation: drip 2.2s var(--ease-out) infinite;
}
@keyframes drip {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ── stacked cards (จังหวะการ์ดมนซ้อนแบบ mirxes) ── */
.stack { position: relative; margin-top: calc(-1 * var(--r-card)); }
.card {
  position: relative;
  border-radius: var(--r-card) var(--r-card) 0 0;
  background: var(--surface);
  box-shadow: 0 -18px 60px rgba(28,26,22,.10);
  display: grid; align-items: center;
}
.card--material { margin-top: calc(-1 * var(--r-card)); z-index: 1; }
.card--material { background: var(--greige); box-shadow: 0 -18px 60px rgba(28,26,22,.13); }
.card--story { padding-bottom: var(--r-card); }
.card__grid {
  max-width: var(--w-max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(64px, 9vh, 110px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
}
.card__grid--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.card h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-bottom: 26px;
}
.card__text p { color: var(--muted); margin-bottom: 18px; max-width: 60ch; }
.card__text p strong { color: var(--ink); }
.card__media img { border-radius: var(--r-md); object-fit: cover; }
.card__media--story img { width: 100%; aspect-ratio: 4 / 3.1; box-shadow: 0 30px 70px rgba(28,26,22,.18); }
.card__media--triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: end;
}
.card__media--triple img { width: 100%; aspect-ratio: 3 / 4.4; }
.card__media--triple img:nth-child(2) { translate: 0 -26px; }

.stats {
  display: flex;
  gap: clamp(24px, 3.5vw, 52px);
  margin-top: 38px;
  flex-wrap: wrap;
}
.stats dt {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--gold-deep);
  line-height: 1.1;
}
.stats dd { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.material__list { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.material__list li {
  padding-left: 30px; position: relative; color: var(--muted); font-size: 15.5px;
}
.material__list li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 16px; height: 2px; background: var(--gold);
}
.material__list strong { color: var(--ink); }

/* ── works carousel ──────────────────── */
.works { padding: clamp(84px, 12vh, 150px) 0 0; background: var(--bg); position: relative; }
.works__head {
  max-width: var(--w-max);
  margin: 0 auto 40px;
  padding: 0 var(--pad);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.works__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 12px; }
.works__head p { color: var(--muted); max-width: 52ch; }
.works__nav { display: flex; gap: 10px; flex: none; }
.works__arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .3s, color .3s, transform .3s var(--ease-out);
}
.works__arrow svg { width: 20px; height: 20px; }
.works__arrow:hover { background: var(--ink); color: var(--gold-hi); transform: translateY(-2px); }
.works__track {
  display: flex; gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px var(--pad) 26px;
  scrollbar-width: none;
  cursor: grab;
}
.works__track::-webkit-scrollbar { display: none; }
.works__track figure {
  flex: 0 0 clamp(260px, 30vw, 420px);
  scroll-snap-align: start;
}
/* ลูกเล่นชี้ภาพสไตล์ bareo: ภาพซูมเข้าช้า ๆ ในกรอบมน */
.imgzoom {
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  box-shadow: 0 16px 44px rgba(28,26,22,.13);
  position: relative;
  isolation: isolate;
}
.imgzoom::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16,13,8,.38) 100%);
  opacity: 0;
  transition: opacity .9s var(--ease-out);
  pointer-events: none;
}
.imgzoom img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
figure:hover .imgzoom img, a:hover .imgzoom img { transform: scale(1.18); }
figure:hover .imgzoom::after, a:hover .imgzoom::after { opacity: 1; }

.works__track .imgzoom { aspect-ratio: 3 / 3.6; }
.works__track img { width: 100%; aspect-ratio: 3 / 3.6; object-fit: cover; }
.works__track figcaption {
  margin-top: 14px;
  font-size: 14.5px; color: var(--muted);
}
.works__more {
  max-width: var(--w-max);
  margin: 18px auto 0;
  padding: 0 var(--pad) 20px;
  color: var(--muted); font-size: 15px;
}
.works__more a { color: var(--gold-deep); font-weight: 500; text-decoration-color: rgba(176,138,62,.4); text-underline-offset: 3px; }
.works__more a:hover { color: var(--gold); }

/* ── services ────────────────────────── */
.services { padding: clamp(84px, 12vh, 150px) 0; background: var(--bg); }
.services__inner { max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad); }
.services h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 34px; }
.services__pills { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(40px, 6vh, 64px); }
.services__pills span {
  padding: 11px 24px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: 15px; color: var(--ink);
}
.services__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 5vh, 56px);
}
.services__cols h3 {
  font-size: 21px; font-weight: 500; margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.services__cols h3::before {
  content: ""; width: 22px; height: 2px; background: var(--gold); flex: none;
}
.services__cols p { color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.services__cols strong { color: var(--gold-deep); font-weight: 600; }

/* ── promo (dark drenched band) ──────── */
.promo {
  background:
    radial-gradient(120% 160% at 85% 0%, rgba(176,138,62,.22) 0%, transparent 55%),
    linear-gradient(160deg, var(--dark-2), var(--dark));
  color: var(--cream-on-dark);
  text-align: center;
  padding: clamp(90px, 14vh, 170px) var(--pad);
}
.promo__eyebrow {
  font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-hi); font-weight: 500; margin-bottom: 20px;
}
.promo h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  font-weight: 250;
  color: #FDFBF6;
}
.promo h2 span { color: var(--gold-hi); font-weight: 400; }
.promo__sub {
  margin: 22px auto 40px; max-width: 56ch;
  color: rgba(241,236,225,.82); font-weight: 300;
}

/* ── gallery marquee ─────────────────── */
.gallery {
  padding: clamp(70px, 9vh, 110px) 0;
  background: var(--bg);
  display: grid; gap: 20px;
  overflow: hidden;
}
.marquee { overflow: hidden; }
.marquee__row {
  display: flex; gap: 20px;
  width: max-content;
  animation: slide 52s linear infinite;
}
.marquee[data-dir="right"] .marquee__row { animation-direction: reverse; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__row img {
  height: clamp(170px, 24vh, 250px);
  width: auto;
  border-radius: 16px;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── footer ──────────────────────────── */
.footer {
  background: linear-gradient(180deg, var(--dark) 0%, #0D0B07 100%);
  color: var(--cream-on-dark);
  border-radius: var(--r-card) var(--r-card) 0 0;
}
.footer__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: clamp(70px, 10vh, 110px) var(--pad) 50px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(36px, 5vw, 72px);
}
.footer__mark { height: 74px; margin-bottom: 20px; }
.footer__name { font-size: 20px; font-weight: 600; letter-spacing: .08em; }
.footer__slogan { color: var(--gold-hi); margin: 10px 0 18px; font-weight: 300; }
.footer__hours { color: rgba(241,236,225,.72); font-size: 15px; }
.footer h3 {
  font-size: 15px; font-weight: 600; letter-spacing: .1em;
  color: rgba(241,236,225,.6);
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: grid; gap: 12px; }
.footer ul a {
  color: var(--cream-on-dark);
  text-decoration: none;
  font-size: 16.5px;
  transition: color .3s;
}
.footer ul a:hover { color: var(--gold-hi); }
.footer__contact ul a[href^="tel"] { font-size: 22px; font-weight: 300; }
.footer__base {
  border-top: 1px solid rgba(241,236,225,.14);
  padding: 22px var(--pad);
  text-align: center;
  font-size: 13.5px;
  color: rgba(241,236,225,.55);
}

/* ── subpages ────────────────────────── */
.nav--light { position: sticky; }
.nav--light .nav__name { color: var(--ink); }

.page-hero {
  background:
    radial-gradient(120% 170% at 85% -20%, rgba(176,138,62,.25) 0%, transparent 55%),
    linear-gradient(160deg, var(--dark-2), var(--dark));
  color: #FDFBF6;
  text-align: center;
  padding: clamp(150px, 20vh, 210px) var(--pad) clamp(64px, 9vh, 100px);
}
.page-hero__kicker {
  font-size: 13px; letter-spacing: .34em; text-indent: .34em;
  text-transform: uppercase; font-weight: 500;
  color: var(--gold-hi); margin-bottom: 16px;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 250; }
.page-hero__sub {
  margin: 18px auto 0; max-width: 60ch;
  color: rgba(241,236,225,.8); font-weight: 300;
}

.page-section { padding: clamp(70px, 10vh, 120px) 0; background: var(--bg); }
.page-section--greige { background: var(--greige); }
.page-section__inner { max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad); }
.page-section h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }

.link-more {
  color: var(--gold-deep); font-weight: 500;
  text-decoration-color: rgba(176,138,62,.4);
  text-underline-offset: 4px;
  transition: color .3s;
}
.link-more:hover { color: var(--gold); }
.card__more { margin-top: 26px; }
.services__more { margin-top: 44px; }

/* works grid + lightbox */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}
.works-grid__item img {
  width: 100%; aspect-ratio: 3 / 3.4; object-fit: cover;
}
.works-grid__item .imgzoom { aspect-ratio: 3 / 3.4; box-shadow: 0 14px 38px rgba(28,26,22,.12); }

/* ไอคอนแว่นขยายกลางภาพ (เฉพาะรูปที่กดขยายได้) */
.imgzoom--icon::before {
  content: "";
  position: absolute; z-index: 1;
  top: 50%; left: 50%;
  width: 58px; height: 58px;
  translate: -50% -30%;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.85);
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.8" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.5-4.5"/><path d="M11 8v6M8 11h6"/></svg>') center / 24px no-repeat,
    rgba(16,13,8,.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .7s var(--ease-out), translate .7s var(--ease-out);
  pointer-events: none;
}
.imgzoom--icon:hover::before { opacity: 1; translate: -50% -50%; }
.works-grid__item figcaption { margin-top: 12px; font-size: 14.5px; color: var(--muted); }

.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(16,13,8,.88);
  display: grid; place-items: center;
  padding: 4vmin;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
}
.lightbox__close {
  position: absolute; top: 18px; right: 22px;
  width: 52px; height: 52px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff; font-size: 26px; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,.24); }

/* steps (ลำดับขั้นตอนจริง) */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(24px, 3.5vw, 44px);
  counter-reset: step;
}
.steps li { position: relative; }
.steps__num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  font-size: 19px; font-weight: 500;
  margin-bottom: 16px;
}
.steps h3 { font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3.5vw, 44px);
}
.contact-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 14px 40px rgba(28,26,22,.08);
}
.contact-card h3 {
  font-size: 15px; font-weight: 600; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 18px;
}
.contact-card__big {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 300; color: var(--ink);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .3s;
}
.contact-card__big:hover { color: var(--gold-deep); }
.contact-card__note { color: var(--muted); font-size: 15px; margin-top: 16px; }
.contact-card__list { list-style: none; display: grid; gap: 14px; }
.contact-card__list a {
  color: var(--ink); text-decoration: none; font-size: 16.5px;
  transition: color .3s;
}
.contact-card__list a:hover { color: var(--gold-deep); }

/* CTA band ท้าย subpage */
.cta-band {
  background: var(--greige);
  text-align: center;
  padding: clamp(70px, 10vh, 110px) var(--pad);
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 30px; }

/* ── reveal motion ───────────────────── */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__row { animation: none; flex-wrap: wrap; width: auto; }
  .hero__scroll span { animation: none; }
  .btn, .works__arrow, .works__track img { transition: none; }
  .imgzoom img, .imgzoom::after, .imgzoom--icon::before { transition: none; }
  figure:hover .imgzoom img, a:hover .imgzoom img { transform: none; }
  .drawer, .drawer-backdrop, .nav__burger span, .drawer__close { transition: none; }
}

/* ── responsive ──────────────────────── */
@media (max-width: 1024px) {
  .card__grid { grid-template-columns: 1fr; gap: 40px; }
  .card { min-height: auto; position: relative; }
  .card__media--story img { aspect-ratio: 16 / 10; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .nav__inner { height: 68px; gap: 14px; }
  .nav__mark { height: 36px; }
  .nav__name { font-size: 14px; }
  .nav__name small { font-size: 10px; }
  .nav__cta { display: none; }

  .hero h1 { font-size: clamp(1.75rem, 7.6vw, 2.4rem); }
  .hero h1 br { display: none; }
  .hero__actions .btn { width: min(320px, 82vw); justify-content: center; }
  .stats { gap: 20px; }
  .stats > div { flex: 1 1 30%; }
  .card__media--triple { gap: 10px; }
  .card__media--triple img:nth-child(2) { translate: 0 -14px; }
  .works__head { flex-direction: column; align-items: flex-start; }
  .works__track figure { flex-basis: min(78vw, 340px); }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
}
