:root {
  --navy: #20215B;
  --navy-2: #2a2c78;
  --navy-deep: #14153d;
  --yellow: #FCF000;
  --white: #ffffff;
  --paper: #f2f2f6;
  --ink: #101133;
  --line: rgba(255, 255, 255, .08);
  --display: 'Anton', 'Prompt', sans-serif;
  --body: 'Prompt', system-ui, sans-serif;
  --r: 28px;
  --pad: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
section { scroll-margin-top: 90px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 999;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--yellow);
  pointer-events: none; mix-blend-mode: difference;
  transition: width .25s, height .25s, margin .25s;
}
.cursor.is-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7em 1.5em; border-radius: 999px;
  font-weight: 500; font-size: .95rem; white-space: nowrap;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--outline { border: 1.5px solid currentColor; }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--yellow { background: var(--yellow); color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 16px var(--pad) auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(32, 33, 91, .72); backdrop-filter: blur(14px);
  border: 1px solid var(--line);
}
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 8px; }
.nav__links a {
  padding: .35em 1em; border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  font-size: .85rem; transition: background .2s, color .2s;
}
.nav__links a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.lang {
  display: flex; border-radius: 999px; padding: 3px; background: rgba(255,255,255,.1);
  font-size: .8rem; font-weight: 600;
}
.lang span { padding: .3em .8em; border-radius: 999px; transition: background .2s, color .2s; }
html[lang="th"] .lang [data-l="th"], html[lang="en"] .lang [data-l="en"] { background: var(--yellow); color: var(--ink); }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: clamp(640px, 100svh, 1000px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 120px var(--pad) 80px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, var(--navy-2), var(--navy) 55%, var(--navy-deep));
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 45%, #000 40%, transparent);
}
.hero__title {
  position: relative; z-index: 2; text-align: center;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 16.5vw, 260px); line-height: .86; letter-spacing: .005em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.hash { font-style: normal; color: var(--yellow); display: inline-block; transform: rotate(-8deg) translateY(-.04em); margin-right: .04em; }
.hero__sub {
  position: relative; z-index: 2; margin-top: 28px;
  padding: .5em 1.4em; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  font-size: clamp(.8rem, 1.6vw, 1rem); text-align: center;
}

.float-card {
  position: absolute; z-index: 3; width: clamp(120px, 14vw, 210px);
  padding: 12px 12px 14px; border-radius: 26px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  text-align: center; transition: box-shadow .3s;
}
.fc-img { display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; margin-bottom: 8px; background: var(--navy-deep); }
.fc-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s; }
.fc-img img.out { opacity: 0; transform: scale(1.12); }
.fc-img img.pixel { image-rendering: pixelated; object-fit: contain; }
.float-card b { display: block; font-weight: 600; font-size: .95rem; text-transform: lowercase; }
.float-card small { display: block; font-size: .75rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-card:hover { box-shadow: 0 0 0 3px var(--yellow), 0 20px 50px rgba(0,0,0,.35); }
.fc1 { left: 6%; bottom: 12%; rotate: -8deg; }
.fc2 { right: 7%; top: 20%; rotate: 7deg; }
.fc3 { right: 16%; bottom: 8%; rotate: -4deg; width: clamp(100px, 11vw, 170px); }

.scribble { position: absolute; z-index: 4; fill: none; stroke: var(--yellow); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.s1 { width: clamp(140px, 18vw, 280px); right: 18%; top: 14%; transform: rotate(18deg); }
.s2 { width: clamp(120px, 15vw, 220px); left: 15%; bottom: 26%; }

.sticker {
  position: absolute; z-index: 5; right: 4%; bottom: 30%;
  width: clamp(110px, 12vw, 170px); aspect-ratio: 1; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  display: grid; place-items: center;
}
.sticker svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.sticker text { font-family: var(--body); font-weight: 700; font-size: 17px; letter-spacing: 2px; fill: var(--ink); }
.sticker img { width: 52%; filter: brightness(0) saturate(100%) invert(9%) sepia(37%) saturate(3000%) hue-rotate(228deg); }
.sticker:hover svg { animation-duration: 4s; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .fc1 { left: 4%; bottom: 6%; }
  .fc2 { right: 4%; top: 14%; }
  .fc3, .s1 { display: none; }
  .s2 { left: 38%; bottom: 10%; }
  .sticker { right: 6%; bottom: 7%; }
  .hero__sub { margin-top: 20px; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--yellow); color: var(--ink); overflow: hidden; border-block: 3px solid var(--ink); rotate: -1.5deg; margin: -14px -10px 0; position: relative; z-index: 6; }
.marquee__track { display: flex; width: max-content; animation: slide 28s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(22px, 3vw, 40px); padding: .25em 0; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- section titles ---------- */
.sec-title {
  font-family: var(--display); font-weight: 400; line-height: 1;
  font-size: clamp(44px, 7vw, 104px);
  position: relative; display: inline-block; padding-bottom: .14em;
}
.sec-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 1.4em; height: .1em; background: var(--yellow); border-radius: 4px; }
.sec-title.dark { color: var(--ink); }
.sec-title .big { color: var(--yellow); }

/* ---------- services panel ---------- */
.panel {
  background: var(--white); color: var(--ink);
  border-radius: var(--r) var(--r) 0 0; margin-top: 60px;
  padding: clamp(40px, 6vw, 90px) var(--pad);
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: clamp(40px, 6vw, 80px); }
.stats div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; border-top: 2px solid var(--ink); padding-top: 12px; }
.stats b { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 88px); line-height: 1; color: var(--navy); }
.stats span { flex-basis: 100%; font-weight: 500; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.svc {
  position: relative; background: var(--paper); border-radius: 24px;
  padding: 28px 24px 26px; min-height: 260px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background .3s, color .3s, transform .3s;
}
.svc h3 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 2.6vw, 42px); line-height: 1; }
.svc p { font-size: .92rem; flex: 1; }
.svc__no { font-weight: 700; font-size: .8rem; opacity: .5; }
.svc:hover { background: var(--navy); color: var(--white); transform: translateY(-6px) rotate(-1deg); }
.chip { align-self: flex-start; padding: .45em 1.1em; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 600; font-size: .85rem; }
.chip--blue { background: var(--navy); color: var(--white); }
.svc:hover .chip--blue { background: var(--yellow); color: var(--ink); }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:last-child { grid-column: span 2; }
}

/* ---------- work ---------- */
.work { background: var(--navy); padding: clamp(60px, 8vw, 120px) var(--pad); border-radius: var(--r) var(--r) 0 0; margin-top: -28px; position: relative; }
.work__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.work__head p { opacity: .75; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  padding: .45em 1.1em; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35);
  font-size: .88rem; font-weight: 500; transition: all .2s;
}
.filters button:hover { border-color: var(--yellow); color: var(--yellow); }
.filters button[aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.filters button sup { font-size: .7em; opacity: .7; margin-left: 2px; }

.grid { columns: 4 240px; column-gap: 16px; }
.tile {
  break-inside: avoid; margin-bottom: 16px; border-radius: 20px; overflow: hidden;
  position: relative; display: block; width: 100%; background: var(--navy-deep);
  transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .25s;
}
.tile img { width: 100%; height: auto; transition: transform .5s; }
.tile:hover { box-shadow: 0 0 0 3px var(--yellow); }
.tile:hover img { transform: scale(1.04); }
.tile .tag {
  position: absolute; left: 10px; bottom: 10px; padding: .25em .8em; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-size: .72rem; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: all .25s;
}
.tile:hover .tag { opacity: 1; transform: none; }
.tile.pixel img { image-rendering: pixelated; }
.lb-cap { position: absolute; top: 26px; left: 50%; translate: -50% 0; max-width: 60vw; text-align: center; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { display: flex; margin: 24px auto 0; }
.more[hidden] { display: none; }

/* ---------- about ---------- */
.about { background: var(--navy-deep); padding: clamp(60px, 8vw, 120px) var(--pad); }
.about__top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 40px; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 32px; }
.about__title { font-family: var(--display); font-weight: 400; font-size: clamp(80px, 15vw, 220px); line-height: .85; color: var(--yellow); }
.about__lead { flex: 1 1 320px; font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 400; line-height: 1.45; padding-bottom: .4em; }
.about__body { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 64px); margin-top: 40px; }
.about__intro p { opacity: .85; }
.about__photos { position: relative; margin: 0 8% 48px 0; }
.about__photos img { border-radius: 22px; object-fit: cover; }
.ph1 { width: 100%; aspect-ratio: 4 / 5; box-shadow: 0 0 0 3px var(--yellow); }
.ph2, .ph3 {
  position: absolute; width: 36%; aspect-ratio: 2 / 3;
  border: 6px solid rgba(255,255,255,.9); box-shadow: 0 18px 40px rgba(0,0,0,.4);
  transition: transform .3s;
}
.ph2 { right: -14%; top: 4%; rotate: 7deg; }
.ph3 { right: -10%; bottom: -28px; rotate: -6deg; }
.ph2:hover, .ph3:hover { transform: scale(1.06); z-index: 2; }
.ph-tag {
  position: absolute; left: -8px; bottom: 20px; rotate: -4deg;
  padding: .35em 1em; border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: .9rem;
}
.sig { margin-top: 18px; font-weight: 600; opacity: 1 !important; }
.sig span { color: var(--yellow); font-weight: 400; }
.dl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.label { color: var(--yellow); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; display: block; }
.timeline { list-style: none; position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 44px; bottom: 10px; width: 2px; background: rgba(255,255,255,.25); }
.timeline li { position: relative; margin-bottom: 22px; }
.timeline li::before { content: ''; position: absolute; left: -26px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); }
.timeline b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; display: block; }
.timeline span { opacity: .8; font-size: .92rem; }
.skills h4 { font-weight: 600; font-size: .95rem; letter-spacing: .04em; margin-bottom: 4px; }
.skills p { opacity: .8; font-size: .9rem; margin-bottom: 18px; }
.soft { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; font-size: .9rem; margin-bottom: 18px; }
.soft dt { font-weight: 600; }
.soft dd { opacity: .8; }
@media (max-width: 1000px) { .about__body { grid-template-columns: 1fr 1fr; } .about__intro { grid-column: span 2; } }
@media (max-width: 640px) { .about__body { grid-template-columns: 1fr; } .about__intro { grid-column: auto; } }

/* ---------- contact ---------- */
.contact {
  position: relative; overflow: hidden; text-align: center;
  background: var(--yellow); color: var(--ink);
  padding: clamp(70px, 10vw, 150px) var(--pad);
}
.contact__kicker { font-weight: 500; font-size: 1.1rem; }
.contact__title { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 12vw, 190px); line-height: .9; margin: 12px 0 40px; }
.contact__title span { display: block; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; position: relative; z-index: 2; }
.pill {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: .7em 1.5em; border-radius: 22px; background: var(--navy); color: var(--white);
  font-weight: 600; transition: transform .2s, background .2s;
}
.pill small { font-weight: 400; font-size: .72rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }
.pill:hover { transform: translateY(-4px) rotate(-2deg); background: var(--ink); }
.s3 { stroke: var(--navy); width: 180px; left: 8%; top: 18%; }
@media (max-width: 640px) { .s3 { display: none; } }

.foot { background: var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 24px var(--pad); font-size: .85rem; opacity: .9; }
.foot img { height: 30px; width: auto; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 11, 40, .94);
  display: grid; place-items: center; padding: 60px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 120px); border-radius: 12px; object-fit: contain; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 1.3rem; font-weight: 700; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 18px; font-size: .85rem; opacity: .7; }
@media (max-width: 640px) { .lightbox { padding: 70px 12px; } .lb-prev, .lb-next { top: auto; bottom: 10px; translate: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
