/* ============================================
   ENHANCED HOME — new sections + fluid type
   ============================================ */

/* Fluid typography helpers */
:root {
  --container: 1240px;
}

/* ============================================
   HERO — decorative dots + scroll indicator + meta strip
   ============================================ */
.hero-home {
  position: relative;
  overflow: hidden;
}
.hero-home__decor {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.hero-home__dot {
  position: absolute; border-radius: 50%;
  background: var(--red);
  opacity: .6;
  animation: floatDot 12s ease-in-out infinite;
}
.hero-home__dot--1 {
  width: 220px; height: 220px;
  right: 8%; top: 14%;
  background: radial-gradient(circle, rgba(229,52,63,0.55), rgba(229,52,63,0));
  opacity: .35;
  filter: blur(8px);
}
.hero-home__dot--2 {
  width: 140px; height: 140px;
  right: 18%; bottom: 12%;
  background: radial-gradient(circle, rgba(255,193,7,0.45), rgba(255,193,7,0));
  opacity: .25;
  filter: blur(6px);
  animation-delay: -3s;
}
.hero-home__dot--3 {
  width: 320px; height: 320px;
  left: -8%; bottom: -10%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), rgba(255,255,255,0));
  filter: blur(20px);
  animation-delay: -6s;
}
@keyframes floatDot {
  0%, 100% { transform: translate(0,0); }
  33% { transform: translate(-18px, -14px); }
  66% { transform: translate(14px, 10px); }
}

.hero-home .container { position: relative; z-index: 2; }
.hero-home__inner { max-width: 760px; }
.hero-home h1 {
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  font-family: 'Prompt', 'IBM Plex Sans Thai', sans-serif;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.hero-home p {
  font-size: clamp(14px, 1.05vw, 16px);
}
.hero-home__meta {
  display: flex; align-items: center; gap: 22px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.25);
  max-width: 580px;
}
.hero-home__meta-item .num {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  font-family: 'Bricolage Grotesque','Prompt',sans-serif;
  letter-spacing: -0.01em;
}
.hero-home__meta-item .lbl {
  font-size: 12px;
  opacity: .8;
  margin-top: 2px;
}
.hero-home__meta-divider {
  width: 1px; height: 36px; background: rgba(255,255,255,0.22);
}

.hero-home__scroll {
  position: absolute; right: 36px; bottom: 28px;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: rgba(255,255,255,0.85);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  writing-mode: vertical-rl;
  transition: color .2s ease, transform .3s ease;
}
.hero-home__scroll:hover { color: #fff; transform: translateY(4px); }
.hero-home__scroll-line {
  position: relative;
  display: block; width: 1px; height: 56px;
  background: rgba(255,255,255,0.4);
  overflow: hidden;
}
.hero-home__scroll-line::after {
  content: '';
  position: absolute; left: 0; right: 0; top: -56px;
  height: 28px;
  background: #fff;
  animation: scrollDown 2.2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { top: -28px; }
  100% { top: 56px; }
}

/* ============================================
   TICKER STRIP
   ============================================ */
.ticker {
  background: #1a1a1a;
  color: #fff;
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ticker__track {
  display: flex; gap: 0;
  width: max-content;
  animation: tickerScroll 32s linear infinite;
}
.ticker__group {
  display: flex; align-items: center; gap: 0;
  flex-shrink: 0;
}
.ticker__item {
  font-family: 'Bricolage Grotesque','Prompt',sans-serif;
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0 28px;
  color: #fff;
  white-space: nowrap;
}
.ticker__item:nth-child(2n) {
  color: var(--red);
  font-size: clamp(14px, 1.6vw, 22px);
  font-weight: 400;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   WHY US — 4-up features
   ============================================ */
.why { }
.why__head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.why__title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800; line-height: 1.15;
  margin: 16px 0 14px;
}
.why__sub { color: #555; font-size: 15.5px; line-height: 1.7; }

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-card {
  position: relative;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 32px 26px 30px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease, background .35s ease;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red);
  transform: scaleY(0); transform-origin: top center;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.07);
  border-color: transparent;
}
.why-card:hover::before { transform: scaleY(1); }
.why-card__ico {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--red-soft); color: var(--red);
  display: grid; place-items: center;
  margin-bottom: 22px;
  transition: background .35s ease, color .35s ease, transform .35s ease;
}
.why-card:hover .why-card__ico {
  background: var(--red); color: #fff;
  transform: rotate(-6deg) scale(1.05);
}
.why-card__num {
  position: absolute; top: 24px; right: 26px;
  font-family: 'Bricolage Grotesque','Prompt',sans-serif;
  font-size: 14px; font-weight: 700; color: #ccc;
  letter-spacing: 0.05em;
}
.why-card__title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.why-card__desc { font-size: 14px; color: #555; line-height: 1.65; }

/* ============================================
   VIDEO BLOCK — slight refinements
   ============================================ */
.video-block__copy h2 {
  font-size: clamp(22px, 2.6vw, 38px);
}
.video-block__copy .accent {
  margin-top: 14px;
}
.video-block__player::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

/* ============================================
   TECHNIQUES SHOWCASE
   ============================================ */
.tech-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.tech-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  margin: 16px 0 12px;
}
.tech-head p { color: #555; font-size: 15px; line-height: 1.7; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tech-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.tech-card__img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #1a1a1a;
}
.tech-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.tech-card:hover .tech-card__img img { transform: scale(1.08); }
.tech-card__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.5) 100%);
}
.tech-card__tag {
  position: absolute; left: 18px; top: 18px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 12px; border-radius: 999px;
}
.tech-card__body { padding: 22px 22px 26px; }
.tech-card__body h3 {
  font-size: 22px; font-weight: 700;
}
.tech-card__sub {
  color: var(--red); font-size: 13px;
  font-weight: 500; margin: 4px 0 12px;
}
.tech-card__body p {
  font-size: 13.5px; color: #555;
  line-height: 1.6;
}

/* ============================================
   STATS BAND
   ============================================ */
.stats-band {
  background: var(--ink);
  color: #fff;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before, .stats-band::after {
  content: ''; position: absolute;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229,52,63,0.18), rgba(229,52,63,0));
  filter: blur(20px);
}
.stats-band::before { top: -120px; left: -80px; }
.stats-band::after { bottom: -160px; right: -80px; opacity: .6; }
.stats-band .container { position: relative; z-index: 2; }
.stats-band__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stats-band__item {
  text-align: center;
  padding: 14px 12px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.stats-band__item:first-child { border-left: none; }
.stats-band__num {
  font-family: 'Bricolage Grotesque','Prompt',sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 0%, #b8b8b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats-band__lbl {
  margin-top: 12px;
  font-size: 13px;
  color: #c4c4c4;
  letter-spacing: 0.02em;
}

/* ============================================
   HOME NEWS — featured + list
   ============================================ */
.home-news {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
}
.home-news__featured { display: flex; flex-direction: column; }
.home-news__featured-img {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 14px; overflow: hidden;
  background: #ddd;
}
.home-news__featured-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.home-news__featured:hover .home-news__featured-img img { transform: scale(1.04); }
.home-news__featured-tag {
  position: absolute; left: 16px; top: 16px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
  letter-spacing: 0.1em;
}
.home-news__featured-body { padding-top: 22px; }

/* ============================================
   HIGHLIGHT — badge on image
   ============================================ */
.highlight__img { position: relative; }
.highlight__img-badge {
  position: absolute; right: 16px; bottom: 16px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-size: 11px; font-weight: 700;
  padding: 8px 14px; border-radius: 999px;
  letter-spacing: 0.1em;
}
.highlight__num {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}
.highlight__title {
  font-size: clamp(26px, 3vw, 40px);
}

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial {
  background: #f7f5f2;
  padding: clamp(56px, 8vw, 96px) 0;
}
.testimonial__inner {
  max-width: 920px; margin: 0 auto;
  text-align: center;
  position: relative;
}
.testimonial__quote-mark {
  font-family: Georgia, serif;
  font-size: 200px;
  line-height: 0.6;
  color: var(--red);
  height: 60px;
  user-select: none;
}
.testimonial__text {
  font-family: 'Bricolage Grotesque','Prompt',sans-serif;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.45;
  color: #1a1a1a;
  margin: 24px 0 36px;
  letter-spacing: -0.01em;
}
.testimonial__person {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
}
.testimonial__avatar {
  width: 56px; height: 56px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name { font-weight: 700; font-size: 16px; text-align: left; }
.testimonial__role { font-size: 13px; color: #777; text-align: left; }

/* ============================================
   CTA STRIP — animated bg
   ============================================ */
.cta-strip { position: relative; overflow: hidden; }
.cta-strip__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 300px at 10% 0%, rgba(255,255,255,0.10), rgba(255,255,255,0)),
    radial-gradient(600px 300px at 90% 100%, rgba(255,255,255,0.08), rgba(255,255,255,0));
  pointer-events: none;
}
.cta-strip h2 { font-size: clamp(22px, 3vw, 42px); }

/* ============================================
   GLOBAL FLUID TYPE — section/title scaling
   ============================================ */
.adm-head h2 { font-size: clamp(36px, 5vw, 64px); }
.adm-step__num { font-size: clamp(120px, 16vw, 200px); }
.page-intro h1 { font-size: clamp(32px, 5vw, 56px); }
.curr-hero h1 { font-size: clamp(34px, 5vw, 60px); }

/* ============================================
   EXHIBITIONS BENTO — clean, aligned, balanced
   ============================================ */
.exh-bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 280px 240px;
  gap: 18px;
}
.exh-bento__card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1a1a;
  display: block;
  text-decoration: none;
  color: #fff;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.exh-bento__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.16);
}
.exh-bento__card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.exh-bento__card:hover img { transform: scale(1.06); }
.exh-bento__card--main {
  grid-row: 1 / 3;
  grid-column: 1;
}
.exh-bento__card--wide {
  grid-row: 1;
  grid-column: 2;
}
.exh-bento__card--sq {
  grid-row: 2;
  grid-column: auto;
}
.exh-bento__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.78) 100%);
}
.exh-bento__body {
  position: absolute; inset: auto 0 0 0;
  padding: 28px;
}
.exh-bento__card--sq .exh-bento__body { padding: 20px; }
.exh-bento__tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 16px;
}
.exh-bento__title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.exh-bento__title--sm { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.exh-bento__card--sq .exh-bento__title { font-size: 16px; margin: 0; }
.exh-bento__desc {
  font-size: 13px;
  line-height: 1.55;
  opacity: .9;
  max-width: 360px;
  margin: 0;
}
.exh-bento__cta {
  display: inline-flex;
  align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  transition: gap .25s ease;
}
.exh-bento__card:hover .exh-bento__cta { gap: 12px; }

@media (max-width: 1180px) {
  .exh-bento {
    grid-template-rows: 240px 200px;
  }
  .exh-bento__title { font-size: 22px; }
}
@media (max-width: 820px) {
  .exh-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 200px 200px;
  }
  .exh-bento__card--main { grid-row: 1; grid-column: 1 / 3; }
  .exh-bento__card--wide { grid-row: 2; grid-column: 1 / 3; }
  .exh-bento__card--sq:nth-of-type(3) { grid-row: 3; grid-column: 1; }
  .exh-bento__card--sq:nth-of-type(4) { grid-row: 3; grid-column: 2; }
}
@media (max-width: 540px) {
  .exh-bento {
    grid-template-columns: 1fr;
    grid-template-rows: 260px 200px 180px 180px;
  }
  .exh-bento__card--main, .exh-bento__card--wide { grid-column: 1; }
  .exh-bento__card--sq:nth-of-type(3) { grid-row: 3; grid-column: 1; }
  .exh-bento__card--sq:nth-of-type(4) { grid-row: 4; grid-column: 1; }
  .exh-bento__body { padding: 22px; }
  .exh-bento__title { font-size: 20px; }
}
@media (max-width: 1180px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stats-band__item:nth-child(3) { border-left: none; }

  .home-news { grid-template-columns: 1fr; gap: 38px; }

  .hero-home__meta { gap: 16px; }
}

/* ============================================
   MOBILE (≤ 980px)
   ============================================ */
@media (max-width: 980px) {
  .hero-home__scroll { display: none; }
  .hero-home__meta {
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 22px;
    margin-top: 32px;
  }
  .hero-home__meta-divider { display: none; }
  .hero-home__meta-item .num { font-size: 22px; }
  .hero-home__meta-item .lbl { font-size: 11px; }

  .home-news { grid-template-columns: 1fr; gap: 28px; }
  .home-news__featured-body h3 { font-size: 19px !important; }

  .testimonial__quote-mark { font-size: 140px; height: 42px; }
  .testimonial__text { font-size: 20px; }

  .why-card { padding: 26px 22px; }

  .stats-band__num { font-size: 40px; }
  .stats-band__lbl { font-size: 12px; }
}

/* ============================================
   PHONE (≤ 620px)
   ============================================ */
@media (max-width: 620px) {
  .why__grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .stats-band__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .stats-band__item { padding: 8px 4px; }
  .stats-band__item:nth-child(odd) { border-left: none; }

  .hero-home__meta {
    gap: 14px 20px;
    margin-top: 28px;
  }
  .hero-home__meta-item .num { font-size: 19px; }
  .hero-home__meta-item .lbl { font-size: 10.5px; }

  .ticker { padding: 16px 0; }
  .ticker__item { padding: 0 18px; }

  .why__head { margin-bottom: 32px; }
  .why-card__ico { width: 48px; height: 48px; margin-bottom: 16px; }
  .why-card__title { font-size: 17px; }

  .tech-head { margin-bottom: 32px; }
  .tech-card__body { padding: 18px 18px 22px; }
  .tech-card__body h3 { font-size: 20px; }

  .stats-band { padding: 42px 0; }

  .testimonial__quote-mark { font-size: 100px; height: 30px; }
  .testimonial__text { font-size: 17px; line-height: 1.5; }
  .testimonial__person { flex-direction: column; gap: 10px; }
  .testimonial__name, .testimonial__role { text-align: center; }

  .home-news__featured-img { aspect-ratio: 16/11; }
  .home-news__featured-body { padding-top: 18px; }
  .home-news__featured-body h3 { font-size: 17px !important; }

  .highlight__img-badge { font-size: 10px; padding: 6px 10px; }

  .cta-strip h2 { font-size: 22px; line-height: 1.35; }
}

/* ============================================
   SMALL PHONE (≤ 400px)
   ============================================ */
@media (max-width: 400px) {
  .hero-home__meta-item .num { font-size: 17px; }
  .testimonial__text { font-size: 16px; }
  .stats-band__num { font-size: 34px; }
}

/* ============================================
   LANDSCAPE PHONE — short hero
   ============================================ */
@media (max-height: 540px) and (orientation: landscape) {
  .hero-home { min-height: 100vh; padding: 60px 0; }
  .hero-home h1 { font-size: 36px; }
  .hero-home p { font-size: 13px; }
  .hero-home__meta { margin-top: 18px; padding-top: 14px; }
}

/* ============================================
   WORK DETAIL — responsive collapse
   ============================================ */
@media (max-width: 880px) {
  .wd-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .wd-grid > div:last-child { position: static !important; top: auto !important; }
  .work-detail h1 { font-size: 28px !important; }
}
