@import url("https://fonts.googleapis.com/css2?family=Itim&family=Nunito:wght@400;600;700;800;900&display=swap");

:root {
  --ink: #10131d;
  --ink-soft: #4f5564;
  --paper: #f7f5ef;
  --white: #ffffff;
  --line: rgba(16, 19, 29, .13);
  --lime: #8CC63F;
  --lime-fresh: #c9ff47;
  --coral: #ff6b57;
  --violet: #7658ff;
  --cyan: #58d8ff;
  --yellow: #ffd75e;
  --radius-sm: 16px;
  --radius: 28px;
  --radius-lg: 44px;
  --shadow: 0 22px 70px rgba(16, 19, 29, .12);
  --container: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", "Itim", "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.78;
  overflow-x: hidden;
  font-synthesis: none;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.container { width: var(--container); margin-inline: auto; }
.section { padding: 112px 0; }
.section--compact { padding: 72px 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: var(--white); }
.section--lime { background: var(--lime); }

.eyebrow {
  font-family: "Nunito", "Itim", "Segoe UI", Tahoma, sans-serif;
  margin: 0 0 18px;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.display-title, h1, h2, h3 { font-family: "Nunito", "Itim", "Segoe UI", Tahoma, sans-serif; font-weight: 700; line-height: 1.18; letter-spacing: -.018em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.2rem, 7vw, 6.8rem); margin-bottom: 24px; }
h2 { font-size: clamp(2.25rem, 4.4vw, 4.6rem); margin-bottom: 24px; }
h3 { font-size: 1.45rem; margin-bottom: 12px; }
.lead { font-size: clamp(1.18rem, 1.9vw, 1.48rem); line-height: 1.78; color: var(--ink-soft); max-width: 760px; }
.section--dark .lead { color: rgba(255,255,255,.68); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.site-header.is-scrolled { background: rgba(247,245,239,.88); backdrop-filter: blur(20px); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 13px; font-family: "Nunito", "Itim", "Segoe UI", Tahoma, sans-serif; font-weight: 900; letter-spacing: -.03em; font-size: 1.35rem; }
.brand-mark { width: 42px; height: 42px; display: inline-grid; place-items: center; flex: 0 0 auto; }
.brand-mark::before, .brand-mark::after { content: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 28px; font-family: "Nunito", "Itim", "Segoe UI", Tahoma, sans-serif; font-weight: 800; font-size: .94rem; }
.site-nav a { position: relative; padding: 9px 2px; }
.site-nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 2px; background: var(--ink); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--white); border-radius: 50%; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); transition: .2s; }

.button {
  font-family: "Nunito", "Itim", "Segoe UI", Tahoma, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 13px 30px rgba(16,19,29,.18); }
.button--lime { background: var(--lime); color: var(--ink); }
.button--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.button--ghost { background: transparent; color: var(--ink); }
.button--small { min-height: 44px; padding: 11px 18px; }
.site-nav .button--small { min-height: 48px; padding: 13px 24px; }
.button-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 850; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translate(3px, -3px); }
.back-link { display: inline-block; margin-bottom: 36px; color: var(--ink-soft); font-weight: 750; }

.hero { min-height: 820px; padding: 155px 0 85px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 48% 52% 62% 38%;
  background: var(--lime-fresh); filter: blur(1px); right: -130px; top: -160px; transform: rotate(20deg); opacity: .85;
}
.hero::after {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  border: 55px solid var(--coral); left: -125px; bottom: -110px; opacity: .9;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; }
.hero-copy h1 { max-width: 800px; }
.hero-copy h1 em { font-style: normal; position: relative; z-index: 0; white-space: nowrap; }
.hero-copy h1 em::after { content: ""; position: absolute; height: .22em; background: var(--yellow); left: -2%; right: -3%; bottom: .08em; z-index: -1; transform: rotate(-2deg); border-radius: 99px; }
.hero-copy .lead { max-width: 620px; }
.hero-visual { position: relative; min-height: 580px; }
.hero-photo { position: absolute; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); border: 7px solid var(--white); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo--main { inset: 45px 0 85px 65px; transform: rotate(2.5deg); }
.hero-photo--small { width: 42%; height: 190px; left: 0; bottom: 14px; transform: rotate(-6deg); }
.hero-sticker { position: absolute; right: -12px; top: 12px; width: 126px; height: 126px; border-radius: 50%; background: var(--coral); color: var(--white); display: grid; place-items: center; text-align: center; font-weight: 900; line-height: 1.05; transform: rotate(9deg); box-shadow: 0 18px 35px rgba(255,107,87,.3); }
.hero-sticker::before { content: "✦"; display: block; font-size: 1.5rem; }
.floating-pill { position: absolute; right: 15px; bottom: 48px; background: var(--cyan); padding: 12px 18px; border-radius: 999px; font-weight: 850; transform: rotate(-4deg); box-shadow: 0 12px 28px rgba(16,19,29,.12); }

.marquee { overflow: hidden; background: var(--ink); color: var(--white); padding: 16px 0; transform: rotate(-1deg); width: 102%; margin-left: -1%; }
.marquee-track { display: flex; width: max-content; gap: 32px; animation: marquee 24s linear infinite; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.marquee-track span::after { content: "✦"; margin-left: 32px; color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 54px; }
.section-heading > div { max-width: 800px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p { margin-bottom: 0; color: var(--ink-soft); max-width: 450px; }

.service-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 315px; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-7px) rotate(-.4deg); box-shadow: var(--shadow); }
.service-card:nth-child(1) { grid-column: span 7; background: var(--violet); color: #fff; }
.service-card:nth-child(2) { grid-column: span 5; background: var(--lime); }
.service-card:nth-child(3) { grid-column: span 4; background: var(--white); }
.service-card:nth-child(4) { grid-column: span 4; background: var(--cyan); }
.service-card:nth-child(5) { grid-column: span 4; background: var(--coral); color: #fff; }
.service-card__number { font-size: .86rem; font-weight: 900; letter-spacing: .16em; }
.service-card__icon { position: absolute; right: 22px; top: 20px; font-size: 4rem; line-height: 1; transform: rotate(8deg); opacity: .86; }
.service-card h3 { font-size: clamp(1.8rem, 2.9vw, 3rem); max-width: 500px; margin-bottom: 14px; }
.service-card p { max-width: 520px; margin: 0; opacity: .78; }

.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.project-card { grid-column: span 4; border-radius: var(--radius); background: var(--white); overflow: hidden; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.project-card--large { grid-column: span 8; }
.project-card__image { display: block; height: 260px; position: relative; overflow: hidden; background: #ddd; }
.project-card--large .project-card__image { height: 420px; }
.project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-card:hover img { transform: scale(1.055); }
.project-card__live i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e0261f; margin-right: 7px; box-shadow: 0 0 0 2px rgba(224,38,31,.25); animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.project-card__live { display: inline-flex; align-items: center; position: absolute; top: 16px; left: 16px; background: var(--lime); color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: .78rem; font-weight: 850; letter-spacing: .04em; }
.card-links { display: flex; gap: 18px; flex-wrap: wrap; }
.text-link--live { color: #2c7a1f; }
.live-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.live-note { font-size: .9rem; color: var(--ink-soft); }
.project-card__year { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); border-radius: 999px; padding: 7px 12px; font-size: .84rem; font-weight: 850; }
.project-card__body { padding: 27px 28px 30px; }
.project-card__body h3 { font-size: 1.6rem; }
.project-card__body p { color: var(--ink-soft); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tag { display: inline-flex; padding: 7px 11px; border: 1px solid currentColor; border-radius: 999px; font-size: .76rem; font-weight: 850; line-height: 1; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; }
.process-step { background: var(--ink); padding: 34px; min-height: 280px; }
.process-step strong { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: var(--ink); margin-bottom: 52px; }
.process-step h3 { font-size: 1.65rem; }
.process-step p { color: rgba(255,255,255,.6); }

.client-strip { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.client-strip span { min-height: 100px; display: grid; place-items: center; text-align: center; padding: 18px; font-weight: 900; color: var(--ink-soft); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.page-hero { padding: 190px 0 90px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; width: 260px; height: 260px; position: absolute; right: 8vw; bottom: -120px; background: var(--lime); border-radius: 50%; }
.page-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 50px; }
.page-hero h1 { font-size: clamp(3.4rem, 7vw, 7rem); margin-bottom: 0; }
.page-hero .lead { margin-bottom: 10px; }

.filter-bar { position: sticky; top: 86px; z-index: 20; background: rgba(247,245,239,.9); backdrop-filter: blur(16px); border-block: 1px solid var(--line); }
.filter-inner { min-height: 82px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 14px; }
.filter-button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 10px 15px; font-weight: 800; cursor: pointer; }
.filter-button.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.work-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 35px; }
/* หน้า Work: ช่องค้นหาอยู่ติดใต้แถบกรองอยู่แล้ว ไม่ต้องเว้นบนเยอะ */
.filter-bar + .section { padding-top: 40px; }
.search-box { flex: 0 1 390px; position: relative; }
.search-box input { width: 100%; height: 52px; padding: 0 18px 0 46px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; outline: none; }
.search-box::before { content: "⌕"; position: absolute; left: 18px; top: 50%; transform: translateY(-54%); font-size: 1.45rem; }
.project-count { color: var(--ink-soft); font-weight: 800; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 90px 30px; border: 1px dashed var(--line); border-radius: var(--radius); }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; min-height: 560px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.big-list { list-style: none; padding: 0; margin: 35px 0 0; border-top: 1px solid var(--line); }
.big-list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: baseline; font-weight: 800; }
.big-list span { color: var(--violet); font-size: .8rem; }

.service-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-detail { padding: 38px; min-height: 360px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.service-detail:nth-child(2) { background: var(--lime); }
.service-detail:nth-child(3) { background: var(--cyan); }
.service-detail:nth-child(4) { background: var(--violet); color: #fff; }
.service-detail:nth-child(5) { background: var(--coral); color: #fff; grid-column: 1 / -1; }
.service-detail h3 { font-size: clamp(2rem, 3vw, 3.2rem); max-width: 620px; }
.service-detail ul { margin: 25px 0 0; padding-left: 20px; }
.service-detail li { margin-bottom: 8px; }

.project-hero { padding: 150px 0 70px; min-height: 760px; display: flex; align-items: center; }
.project-hero__grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 60px; align-items: center; }
.project-hero__copy h1 { font-size: clamp(3.2rem, 6.5vw, 6rem); }
.project-hero__media { margin: 0; height: 590px; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.project-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.project-info-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.project-facts { border-top: 1px solid var(--line); }
.project-facts div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 20px; }
.project-facts span { color: var(--ink-soft); }
.project-story h2 { font-size: clamp(2.25rem, 4vw, 4rem); }
.feature-list { list-style: none; padding: 0; margin: 35px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.feature-list li { padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-weight: 800; }

.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 80px; align-items: start; }
.contact-card { padding: 36px; border-radius: var(--radius); background: var(--ink); color: var(--white); }
.contact-card a { display: block; font-size: 1.4rem; font-weight: 850; margin: 6px 0 18px; }
.contact-card a[href="javascript:void(0)"] { cursor: default; text-decoration: none; }
.contact-card p { color: rgba(255,255,255,.65); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: 14px; padding: 15px 16px; outline: none; transition: border .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(140,198,63,.18); }
.field textarea { min-height: 160px; resize: vertical; }
.map-card { min-height: 470px; border-radius: var(--radius-lg); background: var(--white); padding: 0; position: relative; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-card::before { content: none; }
.map-card iframe { display: block; width: 100%; height: 470px; border: 0; }

.cta-panel { min-height: 300px; display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.cta-panel h2 { margin-bottom: 0; }

.site-footer { background: var(--ink); color: var(--white); padding: 80px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr; gap: 40px; padding-bottom: 68px; }
.footer-brand p { color: rgba(255,255,255,.58); max-width: 390px; margin-top: 22px; }
.footer-column h4 { margin: 0 0 18px; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--lime); }
.footer-column a, .footer-column p { display: block; margin: 0 0 10px; color: rgba(255,255,255,.72); }
.footer-column a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.48); font-size: .9rem; }


.tag, .filter-button, .project-count, .text-link, .footer-column h4, .service-card__number, .project-card__year, .field label, .client-strip span {
  font-family: "Nunito", "Itim", "Segoe UI", Tahoma, sans-serif;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  :root { --container: min(100% - 32px, 760px); }
  .site-header .brand { position: relative; z-index: 103; }
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 101;
    background: var(--lime);
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 92px 24px 36px;
    overflow-y: auto;
    font-size: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-24px);
    transition: opacity .25s ease, visibility .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-nav .button {
    font-family: "Nunito", "Itim", "Segoe UI", Tahoma, sans-serif;
    font-size: 1rem;
    margin-top: 12px;
  }
  .nav-toggle { display: block; position: relative; z-index: 103; }
  .hero { min-height: auto; padding-top: 140px; }
  .hero-grid, .page-hero__inner, .split-grid, .project-hero__grid, .project-info-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 620px; }
  .hero-photo--main { left: 30px; }
  .page-hero { padding-top: 150px; }
  .service-card:nth-child(n) { grid-column: span 6; }
  .project-card, .project-card--large { grid-column: span 6; }
  .project-card--large .project-card__image { height: 300px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .client-strip { grid-template-columns: repeat(3, 1fr); }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-detail:nth-child(5) { grid-column: auto; }
  .project-hero__media { height: 520px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  :root { --container: calc(100% - 24px); --radius: 22px; --radius-lg: 30px; }
  .section { padding: 78px 0; }
  .header-inner { height: 72px; }
  .brand { font-size: 1.15rem; }
  .brand-mark { width: 32px; height: 32px; }
  h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  h2 { font-size: clamp(2.25rem, 11vw, 3.5rem); }
  .hero { padding-top: 112px; }
  .hero::before { width: 330px; height: 330px; }
  .hero-visual { min-height: 465px; margin-top: 20px; }
  .hero-photo--main { inset: 34px 5px 62px 22px; border-width: 5px; }
  .hero-photo--small { height: 130px; width: 44%; }
  .hero-sticker { width: 96px; height: 96px; font-size: .78rem; right: 0; }
  .floating-pill { font-size: .75rem; right: 4px; bottom: 30px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 35px; }
  .service-card:nth-child(n), .project-card, .project-card--large { grid-column: 1 / -1; }
  .service-card { min-height: 280px; padding: 26px; }
  .project-card__image, .project-card--large .project-card__image { height: 260px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 240px; }
  .process-step strong { margin-bottom: 35px; }
  .client-strip { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 130px 0 65px; }
  .filter-bar { top: 72px; }
  .work-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { flex-basis: auto; }
  .split-media { min-height: 400px; }
  .service-detail { min-height: 320px; padding: 28px; }
  .map-card, .map-card iframe { min-height: 390px; height: 390px; }
  .project-hero { padding: 115px 0 45px; }
  .project-hero__media { height: 400px; }
  .project-info-grid { gap: 60px; }
  .project-facts div { grid-template-columns: 90px 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .cta-panel { padding-block: 30px; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- Project gallery + lightbox ---------------- */
.gallery-title { margin: 6px 0 22px; }
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-item {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 4 / 3; display: block;
  box-shadow: 0 10px 30px rgba(16, 19, 29, .10);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(16, 19, 29, .18); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(16, 19, 29, .92); padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: min(1200px, 92vw); max-height: 86vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; cursor: pointer; color: var(--ink);
  background: rgba(255, 255, 255, .92); border-radius: 999px;
  display: grid; place-items: center; line-height: 1;
}
.lightbox__close { top: 20px; right: 22px; width: 44px; height: 44px; font-size: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 32px; padding-bottom: 5px; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--lime); }
.lightbox__count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .8); font-size: 14px; letter-spacing: .08em;
}
@media (max-width: 720px) {
  .project-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .lightbox { padding: 14px; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 26px; }
  .lightbox__nav--prev { left: 8px; } .lightbox__nav--next { right: 8px; }
}

/* ---------------- Client logo marquee ---------------- */
.client-marquee {
  --client-count: 30;
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  /* ขอบซ้าย-ขวาค่อย ๆ จางหายไป */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.client-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: clientScroll linear infinite;
  animation-duration: calc(var(--client-count) * 2.6s);
}
.client-marquee:hover .client-track { animation-play-state: paused; }
@keyframes clientScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* ครึ่งหนึ่ง = ชุดแรกจบพอดี วนต่อแบบเนียน */
}
.client-tile {
  flex: 0 0 auto;
  width: 116px; height: 116px;
  border-radius: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(16, 19, 29, .06);
  display: grid; place-items: center;
  padding: 16px;
  overflow: hidden;
}
.client-tile img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain; display: block;
  filter: grayscale(1); opacity: .72;
  transition: filter .25s ease, opacity .25s ease;
}
.client-tile:hover img { filter: none; opacity: 1; }
/* ถ้ามีรูปโลโก้แล้ว ซ่อนชื่อทิ้ง — ถ้ารูปโหลดไม่ได้ JS จะใส่คลาส is-text กลับมา */
.client-tile img + span { display: none; }
.client-tile.is-text span, .client-tile:not(:has(img)) span { display: block; }
.client-tile span {
  font-weight: 700; font-size: 14px; line-height: 1.25;
  text-align: center; color: var(--ink-soft);
  word-break: break-word;
}
@media (max-width: 720px) {
  .client-tile { width: 92px; height: 92px; border-radius: 20px; padding: 12px; }
  .client-tile span { font-size: 12px; }
  .client-track { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .client-track { animation: none; }
  .client-marquee { overflow-x: auto; }
}

/* ---------------- ปุ่มลิงก์ไปเว็บเดโมภายนอกบนแถบเมนู ---------------- */
.site-nav .nav-demo {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
  color: var(--ink); white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.site-nav .nav-demo span { font-size: 11px; opacity: .55; }
.site-nav .nav-demo:hover {
  background: var(--lime); border-color: var(--lime); transform: translateY(-1px);
}
.site-nav .nav-demo:hover span { opacity: .8; }
@media (max-width: 1180px) {
  .site-nav .nav-demo { padding: 6px 11px; font-size: 13px; }
}

/* ======================= หน้า Showreel (โทนมืด) ======================= */
body.reel-page { background: #07080d; color: #fff; }
body.reel-page .site-header { color: #fff; }
body.reel-page .site-header.is-scrolled { background: rgba(7,8,13,.82); box-shadow: 0 1px 0 rgba(255,255,255,.1); }
body.reel-page .site-nav a:not(.button)::after { background: var(--lime-fresh); }
body.reel-page .site-nav .nav-demo { border-color: rgba(255,255,255,.22); color: #fff; }
body.reel-page .site-nav .nav-demo:hover { color: var(--ink); }
body.reel-page .nav-toggle { background: rgba(255,255,255,.12); box-shadow: none; }
body.reel-page .nav-toggle span, body.reel-page .nav-toggle::before, body.reel-page .nav-toggle::after { background: #fff; }
@media (max-width: 1160px) { body.reel-page .site-nav { background: #0b0d14; } }

.reel-hero { position: relative; padding: 180px 0 46px; overflow: hidden; }
.reel-hero__glow {
  position: absolute; inset: -30% -10% auto -10%; height: 620px; pointer-events: none;
  background:
    radial-gradient(48% 60% at 22% 42%, rgba(140,198,63,.30), transparent 68%),
    radial-gradient(42% 58% at 78% 30%, rgba(118,88,255,.30), transparent 70%),
    radial-gradient(38% 50% at 52% 82%, rgba(88,216,255,.18), transparent 72%);
  filter: blur(6px);
}
.reel-hero__inner { position: relative; z-index: 1; max-width: 860px; }
.reel-hero .eyebrow { color: var(--lime-fresh); }
.reel-hero h1 { font-size: clamp(3rem, 6.4vw, 6rem); line-height: 1.02; margin: 6px 0 22px; }
.reel-hero h1 em {
  font-style: normal;
  background: linear-gradient(94deg, var(--lime-fresh), var(--cyan) 58%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.reel-hero .lead { color: rgba(255,255,255,.72); max-width: 700px; }

.reel-main { padding: 10px 0 100px; }

.reel-stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #000; aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.reel-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }

.reel-meta { padding: 34px 0 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.reel-meta__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.reel-meta__head h2 { font-size: clamp(1.7rem, 3.1vw, 2.6rem); margin: 0; line-height: 1.16; }
.reel-meta__th { margin: 4px 0 0; color: rgba(255,255,255,.55); font-weight: 700; }
.reel-meta__tag { margin: 14px 0 0; color: var(--lime-fresh); font-weight: 800; font-size: 1.05rem; }
.reel-meta__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; margin-top: 18px; }
.reel-meta__summary { margin: 0; color: rgba(255,255,255,.76); }
.reel-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.reel-points li { position: relative; padding-left: 26px; color: rgba(255,255,255,.8); line-height: 1.6; }
.reel-points li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border-radius: 3px; background: var(--lime);
}
.reel-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 8px; }
.reel-chip {
  display: inline-flex; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 800;
  color: rgba(255,255,255,.78);
}

.reel-list__head { margin: 46px 0 18px; font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.reel-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reel-card {
  display: block; text-align: left; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,.04); border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.reel-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.reel-card.is-active { border-color: var(--lime); background: rgba(140,198,63,.12); }
.reel-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.reel-card__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .22s ease; }
.reel-card:hover .reel-card__thumb img, .reel-card.is-active .reel-card__thumb img { opacity: 1; }
.reel-card__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(7,8,13,.62); color: #fff; font-size: 17px; padding-left: 3px;
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3);
  transition: background .22s ease, transform .22s ease;
}
.reel-card:hover .reel-card__play { background: var(--lime); color: var(--ink); transform: translate(-50%,-50%) scale(1.08); }
.reel-card.is-active .reel-card__play { background: var(--lime); color: var(--ink); }
.reel-card__len {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 8px;
  background: rgba(7,8,13,.78); font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.reel-card__body { display: block; padding: 16px 18px 18px; }
.reel-card__year { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--lime-fresh); }
.reel-card__body strong { display: block; margin: 5px 0 4px; font-size: 1.05rem; line-height: 1.3; }
.reel-card__tag { display: block; font-size: 13.5px; color: rgba(255,255,255,.55); line-height: 1.45; }

body.reel-page .section--dark { background: #0d1017; }
body.reel-page .site-footer { background: #07080d; color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.1); }
body.reel-page .site-footer h4, body.reel-page .site-footer .brand { color: #fff; }

@media (max-width: 900px) {
  .reel-hero { padding-top: 150px; }
  .reel-meta__grid { grid-template-columns: 1fr; gap: 20px; }
  .reel-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .reel-list { grid-template-columns: 1fr; }
  .reel-stage { border-radius: 18px; }
}

/* ============ แถบเมนูด้านบน — จัดสัดส่วนใหม่ (หลังเพิ่ม Showreel) ============ */
/* แถบบนใช้ความกว้างมากกว่าเนื้อหา เพื่อให้เมนูยาวอยู่ในบรรทัดเดียว */
.site-header .container { width: min(1320px, calc(100vw - 40px)); }
.header-inner { gap: clamp(16px, 2vw, 34px); }

.brand { white-space: nowrap; flex: 0 0 auto; }
.button { white-space: nowrap; }

.site-nav { gap: clamp(15px, 1.5vw, 24px); font-size: .92rem; white-space: nowrap; }
/* กลุ่มลิงก์ภายนอก + ปุ่ม CTA เกาะกลุ่มกันด้านขวา มีเส้นคั่นบางๆ */
.site-nav .nav-demo { padding: 7px 13px; font-size: 13.5px; }
.site-nav a:not(.nav-demo):not(.button) + .nav-demo { margin-left: 6px; position: relative; }
.site-nav a:not(.nav-demo):not(.button) + .nav-demo::before {
  content: ""; position: absolute; left: -13px;
  top: 50%; transform: translateY(-50%); width: 1px; height: 22px; background: var(--line);
}
.site-nav .button--small { min-height: 46px; padding: 12px 20px; gap: 9px; }

/* จอกลาง — บีบให้พอดีบรรทัดเดียว */
@media (max-width: 1320px) {
  .site-nav { gap: 15px; font-size: .87rem; }
  .site-nav .nav-demo { padding: 6px 11px; font-size: 12.5px; }
  .site-nav .button--small { min-height: 44px; padding: 11px 16px; font-size: .87rem; }
  .brand { font-size: 1.22rem; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; }
}

/* จอเล็กลง — เก็บเมนูเป็นปุ่มแฮมเบอร์เกอร์เร็วขึ้น (เดิม 980px) */
@media (max-width: 1160px) {
  .site-header .brand { position: relative; z-index: 103; }
  .site-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
    z-index: 101; background: var(--lime);
    flex-direction: column; justify-content: center; gap: 18px;
    padding: 92px 24px 36px; overflow-y: auto;
    font-size: clamp(1.4rem, 4.4vw, 2rem); white-space: normal; text-align: center;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-24px);
    transition: opacity .25s ease, visibility .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .site-nav .nav-demo { font-size: 1.05rem; padding: 10px 20px; border-color: rgba(16,19,29,.25); }
  .site-nav a:not(.nav-demo):not(.button) + .nav-demo { margin-left: 0; margin-top: 10px; }
  .site-nav a:not(.nav-demo):not(.button) + .nav-demo::before { content: none; }
  .site-nav .button--small { font-size: 1rem; min-height: 52px; padding: 14px 26px; margin-top: 8px; }
  .nav-toggle { display: block; position: relative; z-index: 103; }
}
body.reel-page .site-nav a:not(.nav-demo):not(.button) + .nav-demo::before { background: rgba(255,255,255,.22); }

/* ============ รูปคู่ในหน้าแรก — สัดส่วน 4:3 ขนาดใกล้เคียงกัน + สไลด์วนรูป ============ */
.hero-visual { min-height: 0; aspect-ratio: 5 / 4; }
.hero-photo {
  position: absolute; inset: auto; width: auto; height: auto;
  aspect-ratio: 4 / 3; border-radius: 30px; overflow: hidden;
  border: 8px solid var(--white); box-shadow: var(--shadow);
  background: #e8e6df;
}
.hero-photo--main { width: 70%; top: 0; right: 0; bottom: auto; left: auto; transform: rotate(2.4deg); z-index: 2; }
.hero-photo--small { width: 61%; left: 0; bottom: 0; top: auto; right: auto; transform: rotate(-5deg); z-index: 3; }
/* ภาพซ้อนกัน 2 ชั้น สลับกันเฟดตอนเปลี่ยนรูป */
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 1; transition: opacity .85s ease;
}
.hero-photo img.is-hidden { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hero-photo img { transition: none; } }

@media (max-width: 1160px) {
  .hero-visual { aspect-ratio: 4 / 3; min-height: 0; max-width: 680px; margin-inline: auto; margin-top: 18px; }
  .hero-photo--main { width: 64%; }
  .hero-photo--small { width: 56%; }
}
@media (max-width: 620px) {
  .hero-visual { aspect-ratio: 5 / 4; min-height: 0; margin-top: 16px; }
  .hero-photo { border-width: 5px; border-radius: 22px; }
  .hero-photo--main { width: 74%; }
  .hero-photo--small { width: 62%; }
}

/* ===== รูปคู่หน้าแรก v2 — ใหญ่ขึ้น ล้นไปซ้ายหลังตัวหนังสือ + โยกกรอบตอนเปลี่ยนรูป ===== */
/* ลำดับชั้น: รูป(ล่างสุด) → ตัวหนังสือ → สติกเกอร์วงกลม/ป้ายฟ้า(บนสุด) */
.hero-copy { position: relative; z-index: 3; }
.hero-visual {
  position: relative; z-index: 1;
  width: 124%; margin-left: -24%;
  aspect-ratio: 5 / 4; min-height: 0;
  pointer-events: none;                 /* ไม่ให้บังการคลิกปุ่มที่อยู่ใต้รูป */
}
.hero-photo { --rot: 0deg; transform: rotate(var(--rot)); }
.hero-photo--main  { --rot: 2.4deg; width: 70%; top: 0; right: 0; z-index: 1; }
.hero-photo--small { --rot: -5deg;  width: 61%; left: 0; bottom: 0; z-index: 2; }

/* โยกกรอบก่อน แล้วค่อยสลับรูประหว่างจังหวะโยก */
@keyframes heroWobble {
  0%   { transform: rotate(var(--rot)) scale(1); }
  22%  { transform: rotate(calc(var(--rot) + 3.4deg)) scale(1.022); }
  48%  { transform: rotate(calc(var(--rot) - 2.8deg)) scale(1.028); }
  72%  { transform: rotate(calc(var(--rot) + 1.4deg)) scale(1.012); }
  88%  { transform: rotate(calc(var(--rot) - .6deg)) scale(1.004); }
  100% { transform: rotate(var(--rot)) scale(1); }
}
.hero-photo.is-swapping { animation: heroWobble 1.15s cubic-bezier(.34,.12,.2,1); }
.hero-photo.is-swapping { box-shadow: 0 30px 80px rgba(16,19,29,.2); }
@media (prefers-reduced-motion: reduce) { .hero-photo.is-swapping { animation: none; } }

/* สติกเกอร์กลม + ป้ายฟ้า วางทับรูป */
.hero-sticker { z-index: 6; right: 1%; top: -16px; pointer-events: auto; }
.floating-pill { z-index: 6; right: auto; left: 44%; bottom: 7%; pointer-events: auto; }

@media (max-width: 1160px) {
  .hero-visual { width: 100%; margin-left: 0; aspect-ratio: 4 / 3; max-width: 680px; margin-inline: auto; margin-top: 18px; }
  .hero-photo--main { width: 64%; }
  .hero-photo--small { width: 56%; }
  .hero-sticker { right: 2%; top: -10px; }
  .floating-pill { left: 46%; bottom: 8%; }
}
@media (max-width: 620px) {
  .hero-visual { aspect-ratio: 5 / 4; }
  .hero-photo--main { width: 74%; }
  .hero-photo--small { width: 62%; }
  .floating-pill { left: 38%; bottom: 6%; }
}

/* ===== รูปคู่หน้าแรก v3 — ถอดออกจากคอลัมน์กริด กำหนดขนาดเป็น px ตรงๆ =====
   เดิมกว้างเป็น % ของคอลัมน์ขวา แต่หัวข้อ nowrap กินพื้นที่จนคอลัมน์เหลือ ~270px
   รูปเลยเล็กผิดคาด — v3 วางลอย (absolute) ชิดขวาของกริดแทน                   */
.hero-grid { grid-template-columns: 1fr; }
.hero-copy { max-width: 880px; }
.hero-visual {
  position: absolute; top: 50%; right: -58px;
  transform: translateY(-50%);
  width: min(680px, 46vw); margin: 0;
  aspect-ratio: 6 / 5; min-height: 0;
  z-index: 1; pointer-events: none;
}
.hero-photo--main  { width: 72%; top: 0; right: 0; left: auto; bottom: auto; }
.hero-photo--small { width: 63%; left: 0; bottom: 0; right: auto; top: auto; }
.hero-sticker { right: 1.5%; top: -14px; }
.floating-pill { left: 40%; bottom: 8%; right: auto; }

@media (max-width: 1160px) {
  .hero-visual {
    position: relative;                  /* ต้องเป็น relative ไม่งั้นรูป absolute หลุดไปเกาะ .hero-grid */
    top: auto; right: auto; transform: none;
    width: 100%; max-width: 620px; margin: 20px auto 0;
    aspect-ratio: 4 / 3;
  }
  .hero-copy { max-width: none; }
  .hero-photo--main { width: 66%; }
  .hero-photo--small { width: 58%; }
  .hero-sticker { right: 2%; top: -10px; }
  .floating-pill { left: 44%; bottom: 8%; }
}
@media (max-width: 620px) {
  .hero-visual { aspect-ratio: 5 / 4; margin-top: 14px; }
  .hero-photo--main { width: 74%; }
  .hero-photo--small { width: 63%; }
  .floating-pill { left: 36%; bottom: 6%; font-size: .75rem; }
}

/* กรอบรูปหน้าแรกใช้ translateY(-50%) จัดกึ่งกลาง จึงเลิกใช้คลาส .reveal
   (ซึ่ง set transform ทับ) แล้วเฟดเข้าด้วย opacity อย่างเดียวแทน */
@keyframes heroVisualIn { from { opacity: 0; } to { opacity: 1; } }
.hero-visual { animation: heroVisualIn .8s ease both .12s; }
@media (prefers-reduced-motion: reduce) { .hero-visual { animation: none; } }

/* ===== เรืองแสงสีพื้นรอบตัวหนังสือหน้าแรก =====
   รูปอยู่หลังข้อความ ถ้ารูปมืดตัวอักษรสีดำจะจมหาย จึงใส่ออร่าสีพื้นฟุ้งๆ รอบตัวอักษร */
.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .lead {
  text-shadow:
    0 0 10px rgba(247, 245, 239, .98),
    0 0 22px rgba(247, 245, 239, .95),
    0 0 42px rgba(247, 245, 239, .88),
    0 0 72px rgba(247, 245, 239, .72);
}
/* แถบไฮไลต์เหลืองใต้คำว่า feel. ก็ให้มีขอบฟุ้งด้วย จะได้ไม่ดูลอยทับรูปแข็งๆ */
.hero-copy h1 em::after { box-shadow: 0 0 26px 10px rgba(247, 245, 239, .55); }

/* สติกเกอร์กลม IDEA TO REALITY — ดันข้อความขึ้น ไม่ให้บรรทัดล่างชนขอบวงกลม */
.hero-sticker { align-content: center; padding: 0 12px 16px; font-size: .95rem; line-height: 1.12; }
.hero-sticker::before { font-size: 1.15rem; line-height: 1; margin-bottom: 2px; }
@media (max-width: 620px) {
  .hero-sticker { font-size: .74rem; padding: 0 8px 12px; }
  .hero-sticker::before { font-size: .95rem; }
}

/* ==================================================================
   RESPONSIVE PASS — มือถือแนวตั้ง
   ย่อสเกลตัวอักษร/ระยะห่างทั้งระบบ และกันไม่ให้อะไรล้นจอหาย
   ================================================================== */
@media (max-width: 720px) {
  body { font-size: 16px; line-height: 1.72; }
  :root { --container: calc(100% - 28px); --radius: 20px; --radius-lg: 26px; --radius-sm: 14px; }

  /* ---- สเกลตัวอักษร ---- */
  h1 { font-size: clamp(1.55rem, 8.6vw, 2.9rem); margin-bottom: 16px; }
  h2 { font-size: clamp(1.5rem, 6.6vw, 2.2rem); margin-bottom: 16px; }
  h3 { font-size: 1.18rem; margin-bottom: 10px; }
  .lead { font-size: 1.02rem; line-height: 1.7; }
  .eyebrow { font-size: .7rem; letter-spacing: .13em; margin-bottom: 12px; }

  /* ---- ระยะห่างของแต่ละบล็อก ---- */
  .section { padding: 60px 0; }
  .section--compact { padding: 44px 0; }
  .section-heading { margin-bottom: 26px; gap: 14px; }
  .button { min-height: 46px; padding: 11px 18px; gap: 9px; font-size: .95rem; }
  .button--small { min-height: 42px; padding: 10px 15px; }
  .button-group { gap: 10px; margin-top: 24px; }

  /* ---- Hero หน้าแรก ---- */
  .hero { padding: 100px 0 52px; min-height: 0; }
  .hero::before { width: 210px; height: 210px; }
  .hero::after { width: 150px; height: 150px; }
  .hero-copy h1 em { white-space: nowrap; }       /* ขนาดฟอนต์ข้างบนคำนวณให้พอดีจอ 360px แล้ว */
  .hero-visual { margin-top: 12px; max-width: 460px; }
  .hero-photo { border-width: 5px; border-radius: 18px; }
  .hero-sticker { width: 86px; height: 86px; font-size: .66rem; right: 1%; top: -8px; padding: 0 7px 11px; }
  .hero-sticker::before { font-size: .9rem; }
  .floating-pill { font-size: .72rem; padding: 8px 13px; left: 32%; bottom: 5%; }

  /* ---- แถบวิ่ง ---- */
  .marquee { padding: 11px 0; }
  .marquee-track { gap: 20px; font-size: .78rem; }
  .marquee-track span::after { margin-left: 20px; }

  /* ---- การ์ดต่างๆ ---- */
  .service-card { min-height: 0; padding: 22px; }
  .service-card h3 { font-size: 1.35rem; }
  .service-card__icon { font-size: 2.4rem; right: 16px; top: 14px; }
  .service-detail { padding: 24px; min-height: 0; }
  .service-detail h3 { font-size: 1.4rem; }
  .service-detail ul { margin-top: 16px; }
  .project-grid { gap: 14px; }
  .project-card__image, .project-card--large .project-card__image { height: 210px; }
  .project-card__body { padding: 18px 18px 22px; }
  .project-card__body h3 { font-size: 1.22rem; }
  .project-card__body p { font-size: .95rem; }
  .process-step { padding: 24px; min-height: 0; }
  .process-step h3 { font-size: 1.25rem; }
  .process-step strong { width: 40px; height: 40px; margin-bottom: 24px; }
  .client-strip span { min-height: 74px; padding: 12px; font-size: .82rem; }

  /* ---- หน้า Work / ตัวกรอง ---- */
  .page-hero { padding: 104px 0 42px; }
  .page-hero::after { width: 150px; height: 150px; bottom: -80px; }
  .page-hero__inner { gap: 20px; }
  .page-hero h1 { font-size: clamp(1.55rem, 8.6vw, 2.9rem); }
  .project-hero__copy h1 { font-size: clamp(1.8rem, 8vw, 2.7rem); }
  .project-story h2 { font-size: clamp(1.5rem, 6.6vw, 2.2rem); }
  .service-card h3, .service-detail h3 { font-size: 1.32rem; }
  .reel-meta__head h2 { font-size: 1.32rem; }
  .filter-inner { min-height: 0; gap: 7px; padding-block: 10px; }
  .filter-button { padding: 7px 12px; font-size: .8rem; }
  .work-toolbar { margin-bottom: 22px; gap: 12px; }
  .search-box input { height: 46px; padding-left: 40px; }

  /* ---- หน้ารายละเอียดงาน ---- */
  .project-hero { padding: 100px 0 32px; min-height: 0; }
  .project-hero__grid { gap: 26px; }
  .project-hero__media { height: 250px; border-radius: 22px; transform: rotate(.8deg); }
  .project-info-grid { gap: 34px; }
  .project-facts div { grid-template-columns: 1fr; gap: 4px; padding: 15px 0; }
  .project-gallery { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
  .back-link { margin-bottom: 20px; }

  /* ---- About / Contact ---- */
  .split-grid { gap: 28px; }
  .split-media { min-height: 0; aspect-ratio: 4 / 3; transform: none; }
  .contact-grid { gap: 28px; }
  .contact-card { padding: 24px; }
  .contact-card a { font-size: 1.08rem; margin: 4px 0 14px; }
  .contact-card h3 { font-size: 1.05rem; line-height: 1.55; }
  .map-card, .map-card iframe { min-height: 300px; height: 300px; }
  .cta-panel { padding: 26px; gap: 18px; }

  /* ---- เมนูแบบเต็มจอ ---- */
  .site-nav { gap: 10px; padding: 78px 20px 28px; font-size: clamp(1.1rem, 5.6vw, 1.5rem); }
  .site-nav .nav-demo { font-size: .92rem; padding: 8px 16px; }
  .site-nav .button--small { font-size: .95rem; min-height: 46px; padding: 12px 22px; margin-top: 6px; }

  /* ---- ฟุตเตอร์ ---- */
  .footer-grid { gap: 26px; padding-bottom: 40px; }
  .footer-column a, .footer-column p { margin-bottom: 7px; font-size: .95rem; }
  .footer-bottom { font-size: .8rem; gap: 8px; }
  .site-footer { padding: 52px 0 24px; }

  /* ---- หน้า Showreel ---- */
  .reel-hero { padding: 100px 0 22px; }
  .reel-hero h1 { font-size: clamp(2rem, 9vw, 3rem); margin-bottom: 14px; }
  .reel-main { padding-bottom: 60px; }
  .reel-meta { padding-top: 22px; }
  .reel-meta__head h2 { font-size: 1.32rem; }
  .reel-meta__tag { font-size: .95rem; }
  .reel-points li { font-size: .95rem; padding-left: 22px; }
  .reel-list__head { margin: 30px 0 14px; font-size: .88rem; }
  .reel-list { gap: 14px; }
  .reel-chips { margin: 18px 0 4px; }

  /* ---- กันข้อความยาวดันจอ ---- */
  .footer-column a, .contact-card a, .reel-meta__summary, .project-card__body p { overflow-wrap: anywhere; }
}

/* จอแคบมาก (≤ 400px) — ลดอีกขั้น */
@media (max-width: 400px) {
  :root { --container: calc(100% - 22px); }
  body { font-size: 15.5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-sticker { width: 74px; height: 74px; font-size: .58rem; padding: 0 6px 9px; }
  .hero-sticker::before { font-size: .78rem; }
  .floating-pill { font-size: .66rem; padding: 7px 11px; left: 28%; }
  .project-gallery { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .filter-button { padding: 6px 10px; font-size: .76rem; }
}

/* จอเตี้ย (มือถือแนวนอน) — เมนูเต็มจอต้องเลื่อนได้และไม่อัด */
@media (max-height: 640px) and (max-width: 1160px) {
  .site-nav { justify-content: flex-start; gap: 8px; padding-top: 74px; font-size: 1.15rem; }
}

/* กันคำยาว (โดยเฉพาะภาษาไทยที่ไม่มีเว้นวรรค) ดันความกว้างจนจอเลื่อนข้าง */
@media (max-width: 720px) {
  h1, h2, h3, p, li, .lead, .eyebrow { overflow-wrap: break-word; }
  .hero-copy h1 em { overflow-wrap: normal; }   /* บรรทัดนี้ตั้งใจให้อยู่บรรทัดเดียว */
}

/* กรอบรูปหน้าแรกบนมือถือ — ย่อตามความกว้างจอ ไม่ให้กินพื้นที่เกินจำเป็น */
@media (max-width: 720px) {
  .hero-visual {
    position: relative; top: auto; right: auto; transform: none;
    width: 100%; max-width: 440px; margin: 16px auto 0;
    aspect-ratio: 5 / 4;
  }
  .hero-photo--main  { width: 72%; top: 0; right: 0; left: auto; bottom: auto; }
  .hero-photo--small { width: 63%; left: 0; bottom: 0; right: auto; top: auto; }
}
@media (max-width: 400px) {
  .hero-visual { max-width: 360px; margin-top: 12px; }
}

/* กรอบรูปในหน้า About — เดิม min-height 560px แต่รูปสูงตามธรรมชาติ เลยเหลือพื้นที่ขาวใต้รูป */
.split-media { min-height: 0; aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .split-media { aspect-ratio: 4 / 3; min-height: 0; } }

/* ===== ลิงก์ Work → Showreel ===== */
.project-card__reel {
  position: absolute; bottom: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(7, 8, 13, .82); color: #fff;
  border-radius: 999px; padding: 6px 13px;
  font-size: .76rem; font-weight: 850; letter-spacing: .02em;
  backdrop-filter: blur(6px);
}
.text-link--reel { color: var(--violet); }
.live-actions--reel { margin-top: 22px; }
.live-actions--reel + .live-actions { margin-top: 14px; }
.button--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.button--dark:hover { background: #000; }
@media (max-width: 720px) {
  .project-card__reel { bottom: 12px; left: 12px; padding: 5px 10px; font-size: .7rem; }
}
