/* =========================================================
   SPARK TELECOM — space · fiber optic · telecom tower
   สีหลักจากโลโก้: น้ำเงินอวกาศ + น้ำเงินไฟฟ้า + ส้ม/ทอง
   ========================================================= */
:root {
  --bg: #030817;
  --bg-2: #061031;
  --navy: #0b1d4d;
  --panel: rgba(12, 28, 78, .42);
  --panel-solid: #0a1a46;
  --blue: #2563ff;
  --blue-2: #1e40af;
  --cyan: #45d3ff;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --orange: #ff8a1a;
  --gold: #ffb547;
  --text: #e9efff;
  --muted: #9db0dc;
  --dim: #6c7fae;
  --line: rgba(110, 150, 255, .16);
  --line-2: rgba(110, 150, 255, .28);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 8, 40, .9);
  --f-head: "Kanit", "IBM Plex Sans Thai", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Thai", "Kanit", system-ui, sans-serif;
  --f-tech: "Orbitron", "Kanit", system-ui, sans-serif;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* ดาวพื้นหลังทั้งเว็บ (เบาๆ) */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 140px 90px, rgba(170,200,255,.45), transparent 60%),
    radial-gradient(1.4px 1.4px at 230px 180px, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 90px 220px, rgba(255,200,150,.35), transparent 60%),
    radial-gradient(1px 1px at 300px 40px, rgba(200,220,255,.4), transparent 60%);
  background-size: 340px 260px;
  opacity: .55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.25; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--f-tech); letter-spacing: .06em; font-weight: 500; }
.muted { color: var(--muted); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .container { width: min(1200px, 100% - 64px); } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.grad {
  background: linear-gradient(92deg, var(--gold) 0%, var(--orange) 45%, #ff5f6d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-head); font-weight: 500; font-size: 17px; letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--orange {
  background: linear-gradient(135deg, #ffb547, #ff8a1a 55%, #ff6a1a);
  color: #1a0d00;
  box-shadow: 0 10px 30px -8px rgba(255, 138, 26, .65), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn--orange:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(255, 138, 26, .8), inset 0 1px 0 rgba(255,255,255,.45); }
.btn--ghost {
  background: rgba(37, 99, 255, .08);
  border-color: var(--line-2);
  color: var(--text);
  background: rgba(6, 16, 49, .72);
}
.btn--ghost:hover { border-color: var(--cyan); background: rgba(69, 211, 255, .1); transform: translateY(-2px); }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-tech); font-size: 12px; font-weight: 700; letter-spacing: .28em;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,138,26,.18), 0 0 14px 2px rgba(255,138,26,.8);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }

.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__head--row > div:first-child { max-width: 720px; }
.section__title { font-size: clamp(32px, 4.6vw, 52px); font-weight: 600; margin-bottom: 18px; }
.section__lead { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background .3s ease, border-color .3s ease, height .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(3, 8, 23, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__icon { width: 48px; height: auto; filter: drop-shadow(0 0 10px rgba(69, 211, 255, .45)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-tech); font-weight: 800; font-size: 22px; letter-spacing: .08em; }
.brand__a { color: var(--orange); text-shadow: 0 0 14px rgba(255,138,26,.7); }
.brand__sub { font-family: var(--f-tech); font-size: 9.5px; letter-spacing: .62em; color: var(--muted); margin-top: 5px; }
.nav__links { display: flex; align-items: center; gap: 30px; font-family: var(--f-head); font-weight: 500; font-size: 16px; }
.nav__links a:not(.btn) { position: relative; color: #cfdaf8; transition: color .2s; padding: 6px 0; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: #fff; }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10, 26, 70, .6); position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s, opacity .3s, top .3s; }
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger span:nth-child(3) { top: 29px; }
.nav.is-open .nav__burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 24px;
    background: rgba(3, 8, 23, .96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav__links a:not(.btn) { padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; --h: 52px; font-size: 17px; }
  .nav.is-open { background: rgba(3, 8, 23, .96); border-color: var(--line); }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  overflow: hidden;
  isolation: isolate;
  background: #071538;
}
/* รูป + canvas อยู่ในกล่องเดียวกัน ซูมช้าๆ ไปด้วยกัน แสงจึงตรงตำแหน่งในภาพเสมอ */
.hero__bg { position: absolute; inset: 0; z-index: -2; transform-origin: 78% 35%; animation: kenburns 26s ease-in-out infinite alternate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 8, 23, .82) 0%, rgba(3, 8, 23, .55) 30%, rgba(3, 8, 23, .12) 55%, rgba(3, 8, 23, 0) 70%),
    linear-gradient(180deg, rgba(3, 8, 23, .55) 0%, rgba(3, 8, 23, 0) 18%, rgba(3, 8, 23, 0) 78%, var(--bg) 100%);
}
.hero__inner { position: relative; }
.hero__copy { max-width: 700px; }
.hero__title .nw { display: block; }
@media (min-width: 600px) { .hero__title .nw { white-space: nowrap; } }
.hero__title {
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 26px;
  text-shadow: 0 6px 40px rgba(0, 10, 50, .8);
}
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: #c4d2f5; max-width: 560px; margin-bottom: 36px; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px 44px; margin: 0; }
.hero__stats div { position: relative; padding-left: 18px; }
.hero__stats div::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--orange), transparent); }
.hero__stats dt { font-family: var(--f-tech); font-weight: 800; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; color: #fff; text-shadow: 0 0 24px rgba(69, 211, 255, .5); }
.hero__stats dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.35); border-radius: 16px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 3px; background: var(--orange); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

@media (max-width: 720px) {
  .eyebrow { font-size: 10.5px; letter-spacing: .2em; }
  .hero__img { object-position: 82% 50%; }
  .hero__shade {
    background: linear-gradient(180deg, rgba(3, 8, 23, .78) 0%, rgba(3, 8, 23, .62) 45%, rgba(3, 8, 23, .25) 70%, var(--bg) 100%);
  }
  .hero { align-items: flex-start; padding-top: calc(var(--nav-h) + 36px); padding-bottom: 110px; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero__stats div { padding-left: 12px; }
  .hero__stats dd { font-size: 12.5px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__scroll { display: none; }
}

/* ---------- TICKER ---------- */
.ticker {
  position: relative;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(37,99,255,.12), rgba(255,138,26,.08), rgba(37,99,255,.12));
  overflow: hidden;
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
.ticker__track span { font-family: var(--f-tech); font-weight: 700; font-size: 15px; letter-spacing: .2em; color: #b9c8ef; white-space: nowrap; }
.ticker__track i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- ABOUT ---------- */
.about { overflow-x: clip; }
.about::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 15% 40%, rgba(37, 99, 255, .18), transparent 70%);
}
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__copy p:not(.eyebrow) { color: #c3d0f2; }
.about__visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.about__badge {
  width: 72%; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 80px rgba(37, 99, 255, .55), 0 0 160px rgba(37, 99, 255, .25);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px); } }
.orbit { position: absolute; inset: 0; }
.orbit__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(120, 170, 255, .25); animation: spin 30s linear infinite; }
.orbit__ring.r2 { inset: 7%; border-style: solid; border-color: rgba(120, 170, 255, .12); animation-duration: 22s; animation-direction: reverse; }
.orbit__ring.r3 { inset: -6%; border-color: rgba(255, 138, 26, .14); animation-duration: 48s; }
.orbit__ring i { position: absolute; top: 50%; left: -6px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px 4px rgba(69, 211, 255, .8); }
.orbit__ring.r2 i { left: auto; right: -5px; width: 9px; height: 9px; background: var(--orange); box-shadow: 0 0 14px 4px rgba(255, 138, 26, .8); }
.orbit__ring.r3 i { top: 0; left: 50%; width: 7px; height: 7px; background: #fff; box-shadow: 0 0 12px 3px rgba(255,255,255,.7); }
@keyframes spin { to { transform: rotate(360deg); } }

.values { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.values li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); display: flex; flex-direction: column; gap: 2px; }
.values b { font-family: var(--f-head); font-weight: 600; font-size: 17px; color: #fff; display: flex; align-items: center; gap: 8px; }
.values b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.values span { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.facts {
  margin-top: clamp(56px, 7vw, 90px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 32, 90, .55), rgba(6, 16, 49, .55));
  overflow: hidden;
}
.fact { padding: 26px 26px; display: flex; flex-direction: column; gap: 8px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact__k { font-size: 13px; color: var(--dim); letter-spacing: .02em; }
.fact__v { font-family: var(--f-head); font-weight: 500; font-size: 19px; color: #fff; line-height: 1.4; }
.fact__v small { display: block; font-family: var(--f-body); font-size: 13.5px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.fact__v.mono { font-family: var(--f-head); font-weight: 600; font-size: 20px; letter-spacing: .08em; color: var(--gold); }

@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 380px; order: -1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact { padding: 20px; }
}

/* ---------- SERVICES ---------- */
.services { background: linear-gradient(180deg, transparent, rgba(6, 16, 49, .7) 30%, rgba(6, 16, 49, .7) 70%, transparent); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  position: relative; padding: 32px 28px 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 36, 98, .55), rgba(8, 20, 60, .55));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.svc::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(69, 211, 255, .14), transparent 45%);
}
.svc::after {
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--orange), transparent);
  opacity: .0; transition: opacity .35s;
}
.svc:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.svc:hover::before, .svc:hover::after { opacity: 1; }
.svc__icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 255, .35), rgba(37, 99, 255, .08));
  border: 1px solid rgba(110, 160, 255, .35);
  margin-bottom: 22px;
  box-shadow: 0 0 30px -6px rgba(37, 99, 255, .6);
}
.svc__icon svg { width: 32px; height: 32px; fill: none; stroke: #dfe9ff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.svc__icon svg .fill { fill: var(--orange); stroke: none; }
.svc h3 { font-size: 21px; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin: 0; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } .svc { padding: 26px 22px; } }

/* ---------- WORKS ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10, 26, 70, .5);
  font-family: var(--f-head); font-weight: 500; font-size: 15px; color: #c9d6f7;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--cyan); color: #fff; }
.chip.is-active { background: linear-gradient(135deg, #2563ff, #1e40af); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -8px rgba(37, 99, 255, .9); }

.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.work {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  text-align: left; padding: 0;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, opacity .35s ease;
}
.work:hover { transform: translateY(-6px); border-color: rgba(255, 138, 26, .5); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255,138,26,.15); }
.work.is-hidden { display: none; }
.work__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #050d26; }
.work__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s ease; }
.work:hover .work__media img { transform: scale(1.06); }
.work__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 23, 0) 40%, rgba(3, 8, 23, .55) 70%, rgba(10, 26, 70, 1) 100%);
}
.work__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--f-tech); font-weight: 700; font-size: 11px; letter-spacing: .18em;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(3, 8, 23, .72); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .14);
}
.work__year {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--f-tech); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  padding: 6px 10px; border-radius: 8px; color: #1a0d00;
  background: var(--gold);
}
.work__body { position: relative; padding: 0 20px 22px; margin-top: -54px; z-index: 2; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.work__body h3 { font-size: 18.5px; line-height: 1.35; color: #fff; }
.work__site { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.work__more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-family: var(--f-head); font-size: 14.5px; font-weight: 500; }
.work__more svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .25s; }
.work:hover .work__more svg { transform: translateX(4px); }
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .work-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px)  {
  .work__body { padding: 0 14px 16px; }
  .work__body h3 { font-size: 16px; }
  .work__site { font-size: 12.5px; }
  .work__tag, .work__year { top: 10px; font-size: 10px; padding: 5px 8px; }
  .work__tag { left: 10px; } .work__year { right: 10px; }
}

.filmstrip {
  margin-top: clamp(60px, 7vw, 90px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.filmstrip__track { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.filmstrip:hover .filmstrip__track { animation-play-state: paused; }
.filmstrip__track img { height: 230px; width: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); filter: saturate(.9) brightness(.9); transition: filter .3s; }
.filmstrip__track img:hover { filter: none; }
@media (max-width: 600px) { .filmstrip__track img { height: 170px; } }

/* ---------- PROCESS ---------- */
.process { overflow: hidden; }
.steps {
  list-style: none; margin: 0; padding: 0;
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
/* เส้นใยแก้วนำแสงเชื่อมทุกขั้น + แสงวิ่ง */
.steps::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 31px; height: 2px;
  background: linear-gradient(90deg, rgba(69, 211, 255, .1), rgba(69, 211, 255, .5), rgba(255, 138, 26, .5), rgba(255, 138, 26, .1));
}
.steps::after {
  content: ""; position: absolute; top: 28px; left: 4%; width: 120px; height: 8px; border-radius: 8px;
  background: radial-gradient(closest-side, #fff, var(--cyan) 40%, transparent);
  filter: blur(1px);
  animation: pulse-run 4.5s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes pulse-run { 0% { transform: translateX(-60px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(min(1100px, 88vw)); opacity: 0; } }
.step { position: relative; padding-top: 86px; }
.step__n {
  position: absolute; top: 0; left: 0;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-tech); font-weight: 800; font-size: 18px;
  background: radial-gradient(circle at 35% 30%, #2f6bff, #0b1d4d 75%);
  border: 1px solid rgba(120, 170, 255, .5);
  box-shadow: 0 0 0 6px rgba(3, 8, 23, 1), 0 0 30px rgba(37, 99, 255, .6);
}
.step:last-child .step__n { background: radial-gradient(circle at 35% 30%, #ffb547, #ff6a1a 70%); color: #1a0d00; border-color: rgba(255, 200, 120, .7); box-shadow: 0 0 0 6px rgba(3, 8, 23, 1), 0 0 30px rgba(255, 138, 26, .7); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 31px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(180deg, rgba(69, 211, 255, .5), rgba(255, 138, 26, .5)); }
  .steps::after { display: none; }
  .step { padding: 0 0 34px 92px; min-height: 64px; }
  .step:last-child { padding-bottom: 0; }
}

/* ---------- CTA BANNER (ภาพใยแก้ว + โลก) ---------- */
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(480px, 46vw, 660px);
  display: flex; align-items: center;
  background: #050c2a;
}
.banner__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 85% 50%; transform: scale(1.05); transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.banner.is-in .banner__img { transform: scale(1); }
.banner__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 8, 23, .9) 0%, rgba(3, 8, 23, .6) 35%, rgba(3, 8, 23, 0) 60%),
    linear-gradient(180deg, var(--bg) 0%, rgba(3, 8, 23, 0) 14%, rgba(3, 8, 23, 0) 86%, var(--bg) 100%);
}
.banner__inner { padding-block: 80px; }
.banner__copy { max-width: 560px; }
.banner h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 700; line-height: 1.2; margin-bottom: 18px; }
.banner p:not(.eyebrow) { color: #cfdaf8; font-size: 18px; margin-bottom: 30px; }
.banner__btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 720px) {
  .banner { min-height: 640px; align-items: flex-end; }
  .banner__img { object-position: 80% 30%; }
  .banner__shade { background: linear-gradient(180deg, var(--bg) 0%, rgba(3, 8, 23, .05) 12%, rgba(3, 8, 23, .35) 32%, rgba(3, 8, 23, .88) 50%, var(--bg) 100%); }
  .banner__inner { padding-block: 40px 48px; }
  .banner__btns .btn { flex: 1 1 100%; }
}

/* ---------- CONTACT ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.contact__cards { display: flex; flex-direction: column; gap: 16px; }
.ccard {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
}
.ccard__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #ff9d2e, #ff6a1a); box-shadow: 0 8px 24px -6px rgba(255, 138, 26, .7); }
.ccard__icon svg { width: 26px; height: 26px; fill: #1a0d00; }
.ccard:nth-child(3) .ccard__icon svg { fill: none; stroke: #1a0d00; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ccard h3 { font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: 6px; font-family: var(--f-body); }
.ccard p { margin: 0; color: #e3ebff; }
.ccard__big { display: block; font-family: var(--f-head); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: .03em; color: #fff; line-height: 1.5; transition: color .2s; }
.ccard__big:hover { color: var(--gold); }
.ccard__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.ccard__links a { color: var(--cyan); font-size: 15px; border-bottom: 1px dashed rgba(69, 211, 255, .4); }
.ccard__links a:hover { color: #fff; border-color: #fff; }
.ccard__tax { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-family: var(--f-head) !important; font-weight: 600; font-size: 22px; letter-spacing: .08em; color: var(--gold) !important; }
.copy { font-family: var(--f-body); font-size: 13px; letter-spacing: 0; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(37, 99, 255, .12); color: #cfe0ff; }
.copy:hover { border-color: var(--cyan); }
.copy.is-done { border-color: #34d399; color: #6ee7b7; }
.map {
  position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  background: #0a1a46;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(185deg) saturate(.75) brightness(.95) contrast(.95); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .map { min-height: 340px; } }
@media (max-width: 480px) { .ccard { padding: 20px 18px; gap: 14px; } .ccard__icon { width: 46px; height: 46px; } }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(6, 16, 49, .4), #020611); padding: 56px 0 26px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer__brand { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer__brand img { width: 130px; height: auto; opacity: .95; }
.footer__brand div { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; color: var(--muted); }
.footer__brand b { font-family: var(--f-head); font-weight: 600; font-size: 18px; color: #fff; }
.footer__brand a:hover { color: var(--gold); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; font-family: var(--f-head); color: #c9d6f7; }
.footer__nav a:hover { color: var(--orange); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; font-size: 13px; color: var(--dim); }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(1, 4, 14, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .25s ease; }
.modal__panel {
  position: relative;
  width: min(1320px, 100%);
  height: min(820px, calc(100vh - 48px)); height: min(820px, calc(100dvh - 48px));
  display: grid; grid-template-columns: 1fr 360px;
  border-radius: 22px; overflow: hidden;
  background: #061031; border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9);
  animation: pop .3s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(3, 8, 23, .8); display: grid; place-items: center; }
.modal__close svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.modal__close:hover { border-color: var(--orange); }
.viewer { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #020716; }
.viewer__stage { position: relative; flex: 1; min-height: 0; background: #020716; touch-action: pan-y; }
.viewer__stage img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s ease; }
.viewer__stage img.is-loading { opacity: .25; }
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(3, 8, 23, .7); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.viewer__nav:hover { background: var(--orange); border-color: var(--orange); }
.viewer__nav:hover svg { stroke: #1a0d00; }
.viewer__nav svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.viewer__nav.prev { left: 12px; } .viewer__nav.next { right: 12px; }
.viewer__count { position: absolute; left: 14px; bottom: 12px; font-family: var(--f-tech); font-size: 12px; letter-spacing: .14em; padding: 5px 10px; border-radius: 8px; background: rgba(3, 8, 23, .75); }
.viewer__thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; scrollbar-width: thin; border-top: 1px solid var(--line); }
.viewer__thumbs button { flex: none; width: 112px; aspect-ratio: 16 / 9; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #0a1a46; opacity: .55; transition: opacity .2s, border-color .2s; }
.viewer__thumbs button:hover { opacity: .9; }
.viewer__thumbs button.is-active { opacity: 1; border-color: var(--orange); }
.viewer__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.minfo { padding: 30px 28px; overflow-y: auto; border-left: 1px solid var(--line); }
.minfo__client { font-family: var(--f-tech); font-size: 11.5px; font-weight: 700; letter-spacing: .18em; color: var(--cyan); margin-bottom: 10px; text-transform: uppercase; padding-right: 44px; }
.minfo h3 { font-size: 24px; margin-bottom: 8px; padding-right: 30px; }
.minfo__sub { color: var(--muted); font-size: 15px; line-height: 1.6; }
.minfo__meta { margin: 18px 0; display: grid; gap: 10px; }
.minfo__meta div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.55; }
.minfo__meta dt { color: var(--dim); }
.minfo__meta dd { margin: 0; color: #e3ebff; }
.minfo__hl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 24px; }
.minfo__hl div { padding: 12px 10px; border-radius: 12px; background: rgba(37, 99, 255, .12); border: 1px solid var(--line); text-align: center; }
.minfo__hl b { display: block; font-family: var(--f-tech); font-weight: 800; font-size: 20px; color: var(--gold); line-height: 1.3; word-break: break-word; }
.minfo__hl b.sm { font-size: 16px; }
.minfo__hl span { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.minfo h4 { font-size: 16px; margin-bottom: 12px; color: #fff; }
.minfo__scope { list-style: none; padding: 0; margin: 0; counter-reset: sc; display: grid; gap: 12px; }
.minfo__scope li { counter-increment: sc; position: relative; padding-left: 40px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.minfo__scope li::before { content: "0" counter(sc); position: absolute; left: 0; top: 1px; font-family: var(--f-tech); font-weight: 800; font-size: 13px; color: var(--orange); }
.minfo__scope b { display: block; color: #fff; font-family: var(--f-head); font-weight: 500; font-size: 15.5px; }
@media (max-width: 1000px) {
  .modal { padding: 0; }
  .modal__panel { display: block; height: 100%; border-radius: 0; overflow-y: auto; border: 0; }
  .viewer { min-height: auto; }
  .viewer__stage { flex: none; aspect-ratio: 16 / 9; margin-top: 64px; }
  .modal__close { position: fixed; }
  .minfo { border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .viewer__nav { width: 40px; height: 40px; }
  .viewer__thumbs button { width: 88px; }
  .modal__close { top: 10px; right: 10px; }
}
body.is-locked { overflow: hidden; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

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