/* Bebetter tokens (Webbebetter-MCP/app/globals.css) + the two soft tints
   from the BE BETTER token set for the fifth card colour. */
:root {
  --blue: #4360ff;
  --blue-deep: #263abe;
  --blue-soft: #eaeeff;
  --orange: #fc6129;
  --lime: #bdff5c;
  --paper: #f2f2f2;
  --grey-70: #b3b3b3;
  --grey-50: #808080;
  --grey-30: #4d4d4d;
  --dark: #1a1a1a;
  --black: #000;
  --white: #fff;
  --sans: "Public Sans", "Noto Sans Thai", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --thai: "Noto Sans Thai", var(--sans);
  --gutter: clamp(16px, 2vw, 24px);
  --ease: cubic-bezier(.22, .7, .24, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--paper);
  color: var(--black);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.heavy { font-weight: 900; letter-spacing: -0.045em; line-height: .92; }
.draw-wrap { position: relative; display: inline-block; white-space: nowrap; }
.draw-wrap > svg { position: absolute; pointer-events: none; overflow: visible; }
.draw-wrap .ellipse { left: -8%; top: -14%; width: 116%; height: 128%; }
.draw-wrap .under { left: 0; bottom: -.16em; width: 100%; height: .2em; }
.draw-wrap path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ── Stickers ─────────────────────────────────────────── */
.stk { position: absolute; pointer-events: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.12)); }
.stk svg { width: 100%; height: 100%; overflow: visible; }
.tstk {
  position: absolute; display: inline-block; padding: .3em .6em .36em;
  border-radius: .7em; font-weight: 900; letter-spacing: -.03em; line-height: 1;
  box-shadow: 0 0 0 5px var(--white), 0 10px 24px rgba(0,0,0,.18);
  white-space: nowrap; pointer-events: none;
}
.tstk.th { font-family: var(--thai); font-weight: 800; letter-spacing: 0; }

/* ── Header ───────────────────────────────────────────── */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 34px calc(var(--gutter) + 18px) 20px; color: var(--black);
  --mark: var(--blue); --pill-bg: var(--black); --pill-fg: var(--paper);
  transition: color .4s var(--ease); pointer-events: none; will-change: transform;
}
.hdr > * { pointer-events: auto; }
/* past the hero the bar gets a frosted backing so it never sits on top of copy */
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(242, 242, 242, .8); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06); transition: opacity .4s var(--ease), background .4s var(--ease);
}
.hdr.is-solid::before { opacity: 1; }
.hdr.on-dark::before { background: rgba(0, 0, 0, .62); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.hdr { transition: color .4s var(--ease), padding .4s var(--ease); }
.hdr.is-solid { padding-top: 16px; padding-bottom: 16px; }
.hdr.on-dark { color: var(--paper); --mark: var(--paper); --pill-bg: var(--paper); --pill-fg: var(--black); --line-ink: var(--paper); }

.hdr-left { justify-self: start; display: flex; align-items: center; gap: 26px; }
.hdr-news { position: relative; font-weight: 800; font-size: 19px; letter-spacing: -.03em; padding: 4px 0; }
.hdr-news::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.hdr-news:hover::after, .hdr-news[aria-current="page"]::after { transform: scaleX(1); }
.hdr-work { position: relative; display: inline-flex; align-items: center; height: 46px; padding: 0 2px 2px 14px; font-weight: 900; font-size: 25px; letter-spacing: -.045em; }
.hdr-work svg { position: absolute; left: -4px; top: 50%; width: 50px; height: 50px; margin-top: -25px; z-index: -1; transition: transform .7s var(--ease); }
.hdr-work:hover svg { transform: rotate(60deg) scale(1.15); }

.hdr-logo { display: flex; align-items: center; gap: 12px; }
.hdr-logo .mark { width: 40px; height: 40px; overflow: visible; }
.hdr-logo .mark path { fill: none; stroke: var(--mark); stroke-width: 58; stroke-linejoin: round; transition: stroke .4s var(--ease); }
.hdr-logo .mark circle { fill: var(--orange); }
.hdr-logo .word { display: flex; font-family: "Montserrat", var(--sans); font-weight: 800; font-size: 17px; letter-spacing: .09em; line-height: 1; white-space: nowrap; overflow: hidden; padding: 2px 0; }
.hdr-logo .word span { display: inline-block; }

.hdr-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; padding: 3px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px currentColor; }
.lang-switch button { height: 36px; min-width: 40px; padding: 0 10px; border-radius: 99px; font-weight: 800; font-size: 13px; letter-spacing: .04em; opacity: .55; transition: background .3s var(--ease), color .3s var(--ease), opacity .3s; }
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { background: var(--pill-bg); color: var(--pill-fg); opacity: 1; }
.hdr-talk {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 8px;
  border-radius: 99px; background: var(--pill-bg); color: var(--pill-fg); font-weight: 700; font-size: 16px; letter-spacing: -.01em;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.hdr-talk svg { width: 30px; height: 30px; color: #06c755; --line-ink: #fff; transition: transform .5s var(--ease); }
.hdr-talk:hover { background: var(--lime); color: var(--black); }
.hdr-talk:hover svg { transform: rotate(-14deg) scale(1.12); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { height: 100svh; min-height: 560px; padding: 12px; }
.hero-media {
  position: relative; height: 100%; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 18%, rgba(189,255,92,.28), transparent 60%),
    radial-gradient(55% 60% at 12% 85%, rgba(252,97,41,.38), transparent 62%),
    linear-gradient(150deg, #4c69ff 0%, var(--blue) 40%, var(--blue-deep) 100%);
  will-change: transform;
}
.hero-media::after { /* film grain */
  content: ""; position: absolute; inset: -50%; opacity: .14; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-6%,-2%)} 80%{transform:translate(5%,4%)} }
.obj { position: absolute; width: var(--s); will-change: transform; }
.obj img { width: 100%; filter: drop-shadow(0 30px 40px rgba(10,15,60,.35)); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,20,70,.55), transparent 55%); }
.hero-title {
  position: absolute; left: 50%; bottom: clamp(48px, 9vh, 96px); transform: translateX(-50%);
  width: min(92%, 1180px); margin: 0; text-align: center; color: var(--paper);
  font-size: clamp(44px, 7.4vw, 118px);
}
.hero-title .ln { display: block; }
.hero-title .serif { font-size: 1.06em; }
.hero-title .smiley { width: .9em; height: .9em; left: 16%; top: -.42em; }
.hero-title .spark { width: .62em; height: .62em; right: -.5em; top: -.3em; }
.hero-title .spark svg { fill: #e6c9ff; }
.cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: rgba(242,242,242,.7); letter-spacing: .04em; }

/* ── Say (horizontal pinned sentence) ─────────────────── */
.say { position: relative; height: 100svh; overflow: hidden; }
.say-track {
  position: absolute; left: 0; top: 50%; transform: translateY(-62%);
  white-space: nowrap; font-size: clamp(96px, 13.5vw, 220px); padding-left: 100vw;
}
.say-track .word { display: inline-block; position: relative; }
.say-track .char { display: inline-block; will-change: transform; }
.say-track .stk, .say-track .loop { pointer-events: none; }
.say-track .loop { position: absolute; width: 2.4em; height: 1.1em; top: -.92em; overflow: visible; }
.say-track .loop path { fill: none; stroke: var(--black); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.say-copy {
  position: absolute; left: 50%; bottom: clamp(56px, 16vh, 170px); transform: translateX(-50%);
  width: min(90%, 480px); text-align: center; font-size: 19px; line-height: 1.5; margin: 0;
}

/* ── Agency ───────────────────────────────────────────── */
.agency { position: relative; overflow-x: clip; padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(80px, 12vh, 140px); text-align: center; }
.agency h2 { margin: 0 auto; font-size: clamp(44px, 7vw, 108px); max-width: 1100px; }
.agency h2 .serif { display: inline-block; font-size: 1.04em; margin-top: .06em; }
.agency .heart { width: .9em; height: .9em; right: -.55em; top: -.38em; }
.polaroids { position: relative; height: clamp(360px, 46vw, 560px); max-width: 1200px; margin: clamp(48px, 9vh, 100px) auto 0; }
.polaroids .blob { position: absolute; left: -2%; top: -6%; width: 44%; color: #8fa1ff; }
.polaroid {
  position: absolute; top: var(--t); left: var(--l); width: var(--w); aspect-ratio: 4 / 5;
  border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.18); background: var(--white);
  transform: rotate(var(--r));
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.polaroid.contain img { object-fit: contain; background: #eff0f6; padding: 10%; }
.chip { position: absolute; z-index: 3; padding: 3px 8px 5px; border-radius: 6px; font-size: clamp(12px, 1.2vw, 17px); font-weight: 500; white-space: nowrap; }
.agency .copy { max-width: 560px; margin: clamp(56px, 10vh, 110px) auto 0; font-size: 19px; line-height: 1.5; }

/* ── Work (dark, fan carousel) ────────────────────────── */
.work { position: relative; background: var(--black); color: var(--paper); padding: clamp(110px, 18vh, 180px) 0 40px; overflow: hidden; }
.work .scribble { position: absolute; left: 14%; top: 26%; width: 110px; color: var(--paper); }
.work .scribble path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.work .blob { position: absolute; right: 13%; top: 30%; width: 260px; color: #e2ffb8; transform: rotate(140deg); }
.fan { position: relative; height: clamp(420px, 56vw, 600px); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.fan.dragging { cursor: grabbing; }
.card {
  position: absolute; left: 50%; top: 0; width: clamp(220px, 26vw, 380px); aspect-ratio: 9 / 13;
  margin-left: calc(clamp(220px, 26vw, 380px) / -2); border-radius: 18px; overflow: hidden;
  border: 6px solid var(--paper); background: var(--dark); transform-origin: 50% 120%; will-change: transform;
}
.card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card .tile { position: absolute; inset: 0; display: grid; place-items: center; }
.card .tile img { width: 72%; height: auto; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(0,0,0,.35)); }
.card .tile b { position: absolute; left: 18px; bottom: 16px; font-size: 13px; font-weight: 600; opacity: .7; letter-spacing: .04em; text-transform: uppercase; }
.card .badge { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 9px; background: var(--paper); color: var(--black); font-size: 14px; font-weight: 600; border: 2px solid var(--black); }
.card .badge svg { width: 14px; height: 14px; }
.work-meta { position: relative; z-index: 5; text-align: center; margin-top: -18px; }
.work-meta .tag { display: inline-block; background: var(--orange); color: var(--black); font-size: 18px; padding: 2px 10px 4px; border-radius: 8px; }
.work-meta h3 { margin: 26px 0 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.work-meta .view { display: inline-block; margin-top: 22px; font-weight: 600; font-size: 18px; }
.fan-nav { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.fan-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(242,242,242,.35); color: var(--paper); font-size: 18px; transition: background .3s, color .3s; }
.fan-nav button:hover { background: var(--paper); color: var(--black); }

/* ── Team ─────────────────────────────────────────────── */
.team { position: relative; background: var(--black); color: var(--paper); padding: clamp(120px, 20vh, 220px) var(--gutter) 60px; }
.team h2 { margin: 0 auto; max-width: 1080px; text-align: center; font-size: clamp(40px, 5.6vw, 84px); line-height: 1.02; }
.team h2 .serif { font-size: 1.1em; }
.field { position: relative; height: clamp(980px, 100vw, 1400px); max-width: 1320px; margin: clamp(60px, 10vh, 120px) auto 0; }
.mate { position: absolute; top: var(--t); left: var(--l); width: var(--w); }
.mate .ph { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--dark); }
.mate .ph img { width: 100%; height: 100%; object-fit: cover; }
.mate .name { display: inline-block; margin-top: 12px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.mate .role { display: block; font-size: 14px; color: var(--grey-70); margin-top: 2px; }
.field .blob { position: absolute; }
.field .doodle { position: absolute; color: var(--paper); }
.field .doodle path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ── Services ─────────────────────────────────────────── */
.need { position: relative; padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(120px, 20vh, 220px); overflow: hidden; }
.need h2 { margin: 0; text-align: center; font-size: clamp(44px, 6.4vw, 96px); }
.need h2 .serif { font-size: 1.08em; }
.deck { display: flex; justify-content: center; max-width: 1340px; margin: clamp(70px, 12vh, 130px) auto 0; }
.svc { position: relative; flex: 0 1 300px; margin: 0 -18px; }
.svc .sheet {
  position: relative; min-height: 470px; padding: 92px 30px 34px; border-radius: 14px;
  transform: rotate(var(--r)) translateY(var(--y, 0)); transition: transform .6s var(--ease);
  box-shadow: 0 -6px 30px rgba(0,0,0,.08);
}
.svc:hover .sheet { transform: rotate(0deg) translateY(-26px); }
.svc:hover { z-index: 10; }
.svc h3 { margin: 0; font-size: 32px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.svc hr { border: 0; height: 3px; background: currentColor; margin: 26px 0 22px; border-radius: 3px; transform: rotate(1.5deg); }
.svc ul { list-style: none; margin: 0; padding: 0; }
.svc li { position: relative; padding-left: 22px; margin: 7px 0; font-size: 17px; line-height: 1.3; }
.svc li::before { content: "✦"; position: absolute; left: 0; top: 1px; font-size: 13px; }
.svc .price { margin-top: 20px; font-size: 14px; font-weight: 600; opacity: .75; }
.svc .stk { width: 120px; height: 120px; left: 50%; top: -62px; margin-left: -60px; }
.svc .tstk { left: 50%; top: -34px; transform: translateX(-50%) rotate(-6deg); font-size: 26px; }

/* ── Toolkit (vertical marquee) ───────────────────────── */
.tools { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; max-width: 1320px; margin: 0 auto; padding: 40px var(--gutter) 120px; }
.tools-head { position: relative; padding-left: clamp(0px, 4vw, 70px); }
.tools-head .blob { position: absolute; left: -6%; top: -36%; width: 82%; color: #8fa1ff; z-index: -1; }
.tools-head h2 { margin: 0; font-size: clamp(42px, 4.8vw, 74px); }
.tools-head .serif { font-size: 1.1em; }
.tools-head .arrow { display: block; width: 300px; max-width: 70%; margin: 40px 0 0 22%; }
.tools-head .arrow path { fill: none; stroke: var(--black); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tools-head .snap { width: 90px; height: 90px; left: 22%; top: 112%; }
.cols { display: flex; justify-content: flex-end; gap: 16px; height: 720px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); }
.col { width: clamp(150px, 15vw, 214px); }
.col-track { display: flex; flex-direction: column; gap: 16px; will-change: transform; }
.tool {
  position: relative; aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; align-content: center; gap: 14px;
  background: var(--white); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 10px 26px rgba(0,0,0,.05);
  transition: background .45s var(--ease), transform .45s var(--ease);
}
.tool:hover { background: color-mix(in srgb, var(--brand) 12%, var(--white)); transform: rotate(-2deg) scale(1.03); }
.tool svg { width: 30%; aspect-ratio: 1; height: auto; } /* same square box for every mark, so tall and wide logos read the same size */
.tool span { font-weight: 700; font-size: clamp(14px, 1.2vw, 17px); letter-spacing: -.01em; color: var(--grey-30); }

/* ── FAQ ──────────────────────────────────────────────── */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 90px); max-width: 1320px; margin: 0 auto; padding: clamp(90px, 14vh, 160px) var(--gutter) clamp(110px, 16vh, 180px); }
.faq-head { position: sticky; top: 120px; align-self: start; }
.faq-head .blob { position: absolute; left: -12%; top: -30%; width: 74%; color: var(--lime); z-index: -1; }
.faq-head h2 { margin: 0; font-size: clamp(44px, 5.4vw, 84px); }
.faq-head h2 .serif { font-size: 1.08em; }
.faq-head p { max-width: 380px; margin: 28px 0 0; font-size: 18px; line-height: 1.5; color: var(--grey-30); }
.faq-head .ask {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; height: 52px; padding: 0 22px 0 10px;
  border-radius: 99px; background: var(--black); color: var(--paper); font-weight: 700; font-size: 17px;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.faq-head .ask svg { width: 34px; height: 34px; color: #06c755; --line-ink: #fff; transition: transform .5s var(--ease); }
.faq-head .ask:hover { background: var(--lime); color: var(--black); }
.faq-head .ask:hover svg { transform: rotate(-14deg) scale(1.1); }
.faq-head .tstk { left: 62%; top: -46px; font-size: 26px; background: var(--orange); color: var(--black); transform: rotate(8deg); }

.qa-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--black); }
.qa { position: relative; border-bottom: 2px solid var(--black); }
.qa-card { position: relative; border-radius: 16px; transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease); }
.qa.open { border-bottom-color: transparent; }
.qa.open .qa-card { background: var(--tint); color: var(--ink, var(--black)); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.qa-q {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; width: 100%;
  padding: 26px 18px; text-align: left; font-size: clamp(21px, 1.9vw, 28px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
}
.qa-q .n { font-size: 14px; font-weight: 600; letter-spacing: 0; padding: 3px 8px 5px; border-radius: 7px; background: var(--black); color: var(--paper); transition: background .4s, color .4s; }
.qa.open .qa-q .n { background: var(--ink, var(--black)); color: var(--tint); }
.qa-q .t { transition: transform .5s var(--ease); }
.qa-q:hover .t { transform: translateX(8px); }
.qa-q .pm { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid currentColor; flex: none; transition: transform .5s var(--ease), background .3s; }
.qa-q .pm::before, .qa-q .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.5px; margin: -1.25px 0 0 -8px; border-radius: 2px; background: currentColor; }
.qa-q .pm::after { transform: rotate(90deg); }
.qa-q:hover .pm { transform: rotate(90deg); }
.qa.open .qa-q .pm { transform: rotate(135deg); }
.qa-q:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 12px; }
.qa-a { height: 0; overflow: hidden; }
.qa-a > div { padding: 0 76px 30px 70px; font-size: 18px; line-height: 1.55; }
.qa-a ol { margin: 10px 0 0; padding-left: 20px; }
.qa-a li { margin: 4px 0; }
.qa .stk { width: 60px; height: 60px; left: -24px; top: -22px; z-index: 2; }

/* ── Footer ───────────────────────────────────────────── */
.foot { padding: 0 12px 12px; }
.panel { position: relative; overflow: hidden; border-radius: 22px; background: var(--blue); color: var(--paper); padding: clamp(56px, 10vh, 86px) clamp(20px, 2.4vw, 40px) 0; min-height: 680px; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; z-index: 2; }
.pill { display: inline-block; background: var(--paper); color: var(--black); font-size: 17px; padding: 4px 10px 6px; border-radius: 9px; }
.fgrid .big { display: block; margin-top: 24px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.fgrid .ul { display: inline-block; margin-top: 30px; font-weight: 600; font-size: 19px; }
.fgrid small { display: block; margin-top: 18px; font-size: 14px; opacity: .9; }
.giant {
  position: absolute; left: 50%; bottom: -.2em; transform: translateX(-50%); z-index: 1; margin: 0;
  font-size: clamp(80px, 24vw, 380px); font-weight: 900; letter-spacing: -.07em; line-height: 1; color: var(--paper); white-space: nowrap;
}
.giant .char { display: inline-block; }
.dstk { position: absolute; z-index: 3; cursor: grab; touch-action: none; }
.dstk:active { cursor: grabbing; }
.dstk svg { width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dstk.tstk { pointer-events: auto; }
.copyr { position: absolute; z-index: 4; right: 16px; bottom: 16px; background: var(--black); color: var(--paper); font-size: 14px; padding: 4px 9px 6px; border-radius: 8px; }

/* ── Cursor ───────────────────────────────────────────── */
.cursor { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; padding: 6px 12px 8px; border-radius: 99px; background: var(--lime); color: var(--black); font-weight: 800; font-size: 14px; transform: translate(-50%, -50%) scale(0); opacity: 0; }
@media (hover: none) { .cursor { display: none; } }

/* ── Phone ────────────────────────────────────────────── */
@media (max-width: 809px) {
  .hdr { padding: 24px 20px 14px; }
  .hdr-logo { gap: 8px; }
  .hdr-logo .mark { width: 32px; height: 32px; }
  .hdr-logo .word { font-size: 13px; letter-spacing: .07em; }
  .hdr-work { font-size: 21px; }
  .hdr-left { gap: 14px; }
  /* three equal columns are too narrow for work + news; let the ends size themselves */
  .hdr { grid-template-columns: auto 1fr auto; column-gap: 10px; }
  .hdr-logo { justify-self: center; }
  .hdr-news { font-size: 16px; }
  .hdr-work svg { width: 42px; height: 42px; margin-top: -21px; }
  .hdr-talk { width: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  /* phone: no orphaned words in big headings */
  /* text-wrap-style only: the `text-wrap` shorthand also resets nowrap,
     which broke the one-line sideways sentence into a vertical column */
  .heavy { text-wrap-style: balance; }
  .hero-title { bottom: 76px; width: calc(100% - 32px); font-size: 10.4vw; line-height: .98; }
  .hero-title .ln { text-wrap-style: balance; }
  .hero-title .spark { right: -.15em; }
  .hero-title .smiley { width: .75em; height: .75em; left: 2%; top: -.95em; } /* above the first line, not on it */
  .say-track { font-size: 23vw; }
  .say-copy { font-size: 16px; bottom: 9vh; }
  .agency h2, .team h2 { font-size: 10vw; }
  /* underlined phrases may wrap on a phone instead of running off the edge */
  .agency .draw-wrap, .team .draw-wrap, .need .draw-wrap, .tools .draw-wrap, .faq .draw-wrap { white-space: normal; }
  .faq-head .tstk { left: auto; right: 4px; top: -40px; font-size: 20px; }
  /* polaroids: a tidy tilted 2x2 grid instead of the free-floating desktop layout */
  .polaroids { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; height: auto; padding: 10px 6px; }
  .polaroids .blob { width: 80%; left: 10%; top: 8%; }
  .polaroid { position: relative; top: auto; left: auto; width: auto; }
  .chip { font-size: 12px; }
  .polaroid .chip { left: 8% !important; right: auto; top: auto !important; bottom: -12px !important; }
  .work { padding-bottom: 64px; }
  .work .scribble, .work .blob { display: none; }
  .team { padding-top: 96px; }
  /* team: a two-column grid; the desktop parallax scatter overlaps at this width */
  .field { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 16px; height: auto; margin-top: 56px; }
  .mate { position: relative; top: auto; left: auto; width: auto !important; }
  .field .doodle { display: none; }
  .field .blob { width: 60% !important; z-index: 0; }
  .field .mate { z-index: 1; } /* blobs sit behind the cards, not over the names */
  .field .blob:nth-of-type(2) { display: none; } /* lands under the name labels in the grid */
  .field .mate .tstk { left: auto !important; right: -4px; top: -14px !important; } /* stay inside the screen edge */
  .field .tstk { font-size: 18px !important; box-shadow: 0 0 0 3px var(--white), 0 8px 18px rgba(0,0,0,.18); }
  .field .mate .stk { width: 64px !important; height: 64px !important; left: auto !important; right: -8px; top: -20px !important; }
  .mate .name { font-size: 18px; }
  .deck { flex-direction: column; align-items: center; }
  .svc { flex: none; width: min(100%, 360px); margin: 72px 0 0; } /* room for the next card's sticker */
  .svc:first-child { margin-top: 0; }
  .svc .sheet { min-height: 0; padding-top: 80px; }
  .tools { grid-template-columns: 1fr; }
  .tools-head .snap, .tools-head .arrow { display: none; }
  .cols { justify-content: center; height: 520px; }
  .panel { min-height: 0; padding-bottom: 360px; }
  /* keep the sticker pile in the band under the contact details */
  .dstk:not(.tstk) { width: 78px !important; height: 78px !important; }
  .dstk.tstk { font-size: 24px !important; }
  .dstk:nth-of-type(1) { left: 4% !important; bottom: 120px !important; }
  .dstk:nth-of-type(2) { left: 30% !important; bottom: 210px !important; }
  .dstk:nth-of-type(3) { left: 46% !important; bottom: 110px !important; }
  .dstk:nth-of-type(4) { left: 56% !important; bottom: 250px !important; }
  .dstk:nth-of-type(5) { left: 74% !important; bottom: 170px !important; }
  .dstk:nth-of-type(6) { left: 6% !important; bottom: 270px !important; }
  .fgrid { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq-head { position: relative; top: 0; }
  .qa-q { gap: 12px; padding: 22px 8px; }
  .qa-q .pm { width: 38px; height: 38px; }
  .qa-a > div { padding: 0 16px 24px 16px; font-size: 17px; }
  .qa .stk { width: 48px; height: 48px; left: -6px; top: -20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media::after { animation: none; }
}

/* ── Thai ────────────────────────────────────────────── */
:lang(th) .heavy { letter-spacing: -.01em; line-height: 1.14; }
:lang(th) .serif { font-family: "Noto Serif Thai", var(--serif); font-style: normal; font-weight: 600; letter-spacing: 0; }
:lang(th) .hero-title { font-size: clamp(40px, 6.4vw, 104px); }
:lang(th) .say-track { line-height: 1.3; }
:lang(th) .tstk, :lang(th) .svc h3, :lang(th) .qa-q, :lang(th) .hdr-work, :lang(th) .hdr-news { letter-spacing: 0; }
:lang(th) body { line-height: 1.6; }
:lang(th) .lang-switch button, .lang-switch button[lang="en"] { font-family: var(--sans); }
@media (max-width: 480px) {
  .hdr { padding-left: 14px; padding-right: 14px; column-gap: 6px; }
  .hdr-left { gap: 10px; }
  .hdr-work, .hdr-news { white-space: nowrap; } /* "ผลงาน" was breaking onto two lines at 360px */
  .hdr-work { font-size: 19px; padding-left: 12px; }
  .hdr-work svg { width: 38px; height: 38px; margin-top: -19px; }
  .hdr-news { font-size: 15px; }
  .hdr-talk { width: 40px; height: 40px; }
  .faq-head .blob { top: -8%; }
  /* work + news + logo + language + LINE do not fit at phone width: keep the B mark, drop the lettering */
  .hdr-logo .word { display: none; }
  .hdr-right { gap: 8px; }
  .lang-switch button { min-width: 34px; height: 32px; padding: 0 7px; }
}
:lang(th) em { font-style: normal; font-weight: 700; } /* no true Thai italics: synthetic slant looks broken */
.fgrid .mail { font-size: clamp(20px, 1.9vw, 28px); overflow-wrap: anywhere; } /* long address: keep it inside its column */

/* ── Phones: drop the effects that repaint on every frame ── */
@media (max-width: 809px), (pointer: coarse) {
  .hero-media::after { animation: none; display: none; }       /* full-card blended grain */
  .obj img { filter: none; }                                    /* drop-shadow on moving images */
  .stk { filter: none; }
  .card .tile img { filter: none; }
  .hdr::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(242, 242, 242, .96); }
  .hdr.on-dark::before { background: rgba(0, 0, 0, .9); }
  .hero-title { will-change: transform, opacity; }
}

/* posters in the polaroid frames: keep the logo at the top in view */
.polaroid img[src*="poster"], .polaroid img[src*="-card."] { object-position: 50% 12%; }

/* Team on tablets: the scatter needs at least 1024px, so a staggered grid here. */
@media (min-width: 810px) and (max-width: 1023px) {
  .field { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; height: auto; max-width: 960px; padding-bottom: 80px; }
  .mate { position: relative; top: auto; left: auto; width: auto !important; }
  .field .mate:nth-of-type(3n + 2) { transform: translateY(70px); }
  .field .doodle { display: none; }
  .field .blob { z-index: 0; }
  .field .blob:nth-of-type(1) { left: 60% !important; top: -4% !important; width: 32% !important; }
  .field .blob:nth-of-type(2) { left: -6% !important; top: 46% !important; width: 26% !important; }
  .field .mate { z-index: 1; }
  .field .mate .tstk { left: auto !important; right: -10px; top: -18px !important; font-size: 22px !important; }
  .field .mate .stk { width: 80px !important; height: 80px !important; left: auto !important; right: -14px; top: -24px !important; }
}

/* Service cards: five overlapping in a row only fit from 1400px; below that, wrap */
@media (min-width: 810px) and (max-width: 1399px) {
  .deck { flex-wrap: wrap; gap: 64px 0; }
  .svc { flex: 0 0 300px; }
}
