/* ============================================
   Telcopro — Modern Telecom Website
   ============================================ */

:root {
  --bg: #07090f;
  --bg-2: #0c1019;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8ecf3;
  --text-dim: #a0a8b8;
  --muted: #6b7488;

  --accent: #00d4ff;
  --accent-2: #7c3aed;
  --accent-3: #22d3ee;
  --grad: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(124, 58, 237, 0.18));

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px rgba(0, 212, 255, 0.18);

  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-th: 'Sarabun', 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; }
*::selection { background: rgba(0, 212, 255, 0.35); color: #fff; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body[data-lang="th"] { font-family: var(--font-th); line-height: 1.7; }
body[data-lang="th"] .h2,
body[data-lang="th"] .hero__title,
body[data-lang="th"] h3,
body[data-lang="th"] .stat__num { font-family: var(--font-th); letter-spacing: -0.01em; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================
   Ambient background
   ============================================ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at top, rgba(0, 212, 255, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(124, 58, 237, 0.08), transparent 60%),
    var(--bg);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: drift 28s var(--ease) infinite alternate;
}
.orb-1 { width: 520px; height: 520px; background: #00d4ff; top: -180px; left: -120px; }
.orb-2 { width: 600px; height: 600px; background: #7c3aed; bottom: -200px; right: -200px; animation-delay: -8s; }
.orb-3 { width: 400px; height: 400px; background: #ec4899; top: 40%; right: 10%; animation-delay: -16s; opacity: 0.25; }

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, -60px) scale(1.2); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 120px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015), transparent); }

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
}
.section__head .lead { margin: 16px auto 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ============================================
   Typography
   ============================================ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.06);
}
body[data-lang="th"] .eyebrow { text-transform: none; letter-spacing: 0.04em; }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead { font-size: 18px; color: var(--text); margin: 0 0 16px; }
.muted { color: var(--text-dim); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradShift 8s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 32px;
  color: var(--text-dim);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid rgba(0, 212, 255, 0.4);
}
.checklist li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 12px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: all .3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.4);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--full { width: 100%; justify-content: center; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all .35s var(--ease);
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(7, 9, 15, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.logo__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--grad-soft);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.3);
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__text span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 999px;
  transition: all .25s var(--ease);
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links .nav__cta {
  margin-left: 8px;
  padding: 10px 18px;
  background: var(--grad);
  color: #fff !important;
  font-weight: 600;
}
.nav__links .nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.nav__tools { display: flex; align-items: center; gap: 12px; }

/* Language toggle */
.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.lang-toggle__opt {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: color .3s var(--ease);
  cursor: pointer;
}
.lang-toggle__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 38px;
  background: var(--grad);
  border-radius: 999px;
  transition: transform .35s var(--ease);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}
body[data-lang="en"] .lang-toggle__opt[data-lang="en"] { color: #fff; }
body[data-lang="th"] .lang-toggle__opt[data-lang="th"] { color: #fff; }
body[data-lang="th"] .lang-toggle__pill { transform: translateX(38px); }

.nav__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__menu span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s var(--ease);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
}
.hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}

.hero__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 0 36px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}
.stat { position: relative; }
.stat::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--border);
}
.stat:last-child::after { display: none; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.stat__suffix {
  display: inline-block;
  margin-left: 2px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  vertical-align: top;
}
.stat__label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* Hero visual */
.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 620px;
}
.hero__image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
  background: var(--bg-2);
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: transform 8s var(--ease);
}
.hero__image:hover img { transform: scale(1.05); }
.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 9, 15, 0.65)), linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent 40%);
  pointer-events: none;
}
.hero__image-glow {
  position: absolute;
  inset: -30px;
  background: var(--grad);
  border-radius: 32px;
  filter: blur(40px);
  opacity: 0.18;
  z-index: -1;
}

.hero__floating {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(12, 16, 25, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  animation: float 6s ease-in-out infinite;
}
.hero__floating--1 { top: 12%; left: -28px; animation-delay: 0s; }
.hero__floating--2 { bottom: 14%; right: -28px; animation-delay: -3s; }
.hero__floating-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee;
  animation: pulse 1.6s ease infinite;
}
.hero__floating svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.hero__floating-label {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.hero__floating-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================
   About
   ============================================ */
.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  border: 1px solid var(--border-strong);
}
.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.about__media:hover img { transform: scale(1.04); }
.about__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 9, 15, 0.7));
}
.about__media-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(12, 16, 25, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  z-index: 1;
}
.about__media-badge svg {
  width: 18px;
  height: 18px;
  color: #22d3ee;
}

/* ============================================
   Vision & Mission
   ============================================ */
.vm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.vm__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  transition: all .4s var(--ease);
  overflow: hidden;
}
.vm__card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: var(--shadow-glow);
}
.vm__media {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.vm__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.vm__card:hover .vm__media img { transform: scale(1.06); }
.vm__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 15, 0.2) 0%, var(--bg) 100%);
}
.vm__body {
  padding: 0 36px 36px;
  position: relative;
  margin-top: -32px;
  z-index: 1;
}
.vm__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border-radius: 14px;
  color: var(--accent);
  margin-bottom: 20px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.vm__icon svg { width: 28px; height: 28px; }
.vm__card h3 {
  font-size: 26px;
  margin: 0 0 12px;
}
.vm__card p { color: var(--text-dim); margin: 0; }

/* ============================================
   Services
   ============================================ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  transition: all .4s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service:hover {
  transform: translateY(-6px);
  background: var(--surface-2);
  border-color: rgba(0, 212, 255, 0.3);
}
.service__media {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.service:hover .service__media img { transform: scale(1.08); }
.service__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7, 9, 15, 0.95));
}
.service__num {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding: 6px 12px;
  background: rgba(12, 16, 25, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 999px;
}
.service__body {
  padding: 0 28px 32px;
  position: relative;
  margin-top: -32px;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 20px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform .4s var(--ease);
}
.service:hover .service__icon { transform: rotate(-6deg) scale(1.05); }
.service__icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 20px; margin: 0 0 12px; line-height: 1.3; }
.service p { color: var(--text-dim); font-size: 15px; margin: 0; }

.service--cta {
  background: var(--grad);
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 36px 32px;
}
.service--cta:hover { background: var(--grad); transform: translateY(-6px); }
.service--cta h3 { font-size: 24px; margin-bottom: 12px; color: #fff; }
.service--cta p { color: rgba(255, 255, 255, 0.9); margin-bottom: 24px; }
.service--cta .btn {
  background: #fff;
  color: var(--bg);
}
.service--cta .btn:hover {
  background: var(--bg);
  color: #fff;
}

/* ============================================
   Projects
   ============================================ */
.projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.projects .project:nth-child(1) { grid-column: span 2; }
.projects .project:nth-child(6) { grid-column: span 2; }

.project {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  transition: all .4s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.project__media {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.projects .project:nth-child(1) .project__media,
.projects .project:nth-child(6) .project__media { height: 240px; }
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.project:hover .project__media img { transform: scale(1.06); }
.project__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 9, 15, 0.7));
}
.project__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  background: rgba(12, 16, 25, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 999px;
}
body[data-lang="th"] .project__tag { text-transform: none; letter-spacing: 0.04em; }
.project__body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project h3 { font-size: 22px; margin: 0 0 10px; line-height: 1.25; }
.project p { color: var(--text-dim); font-size: 15px; margin: 0; flex: 1; }

/* ============================================
   Team
   ============================================ */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 24px;
  justify-content: center;
}
.member {
  text-align: center;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  transition: all .4s var(--ease);
}
.member:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--shadow-glow);
}
.member__avatar {
  width: 130px;
  height: 130px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.member__avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0.4;
  filter: blur(20px);
  z-index: -1;
}
.member__avatar--photo {
  padding: 4px;
  background: var(--grad);
}
.member__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: var(--bg-2);
}
.member h3 {
  font-size: 24px;
  margin: 0 0 4px;
}
.member__nick {
  color: var(--accent);
  font-weight: 500;
  font-size: 18px;
}
.member__role {
  font-size: 14px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
}
body[data-lang="th"] .member__role { text-transform: none; letter-spacing: 0.04em; }
.member__bio {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: var(--grad);
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  pointer-events: none;
}
.contact > * { position: relative; z-index: 1; }

.contact__list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 20px;
}
.contact__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad-soft);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.3);
}
.contact__icon svg { width: 20px; height: 20px; }
.contact__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}
body[data-lang="th"] .contact__label { text-transform: none; letter-spacing: 0.04em; }
.contact__list a, .contact__list li > div > span:not(.contact__label) {
  color: var(--text);
  font-weight: 500;
}
.contact__list a:hover { color: var(--accent); }

/* Form */
.contact__form {
  display: grid;
  gap: 18px;
  align-content: start;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.field input, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  outline: none;
  transition: all .25s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }

.contact__success {
  display: none;
  margin-top: 12px;
  padding: 14px 18px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 12px;
  color: #67e8f9;
  font-size: 14px;
}
.contact__success.show { display: block; animation: fadeUp .4s var(--ease); }

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  margin-top: 40px;
  background: rgba(0, 0, 0, 0.3);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}
.footer__brand p {
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 300px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols h4 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 16px;
}
.footer__cols a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  padding: 4px 0;
}
.footer__cols a:hover { color: var(--accent); }
.footer__base {
  max-width: var(--container);
  margin: 60px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================
   Reveal animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Image fallback for broken/loading states */
img {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .section { padding: 90px 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__visual { max-height: 480px; aspect-ratio: 16/12; max-width: 600px; margin: 0 auto; width: 100%; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .about__media { aspect-ratio: 16 / 10; max-width: 600px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .projects .project:nth-child(1),
  .projects .project:nth-child(6) { grid-column: span 2; }
  .vm { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__menu { display: flex; }
  .nav.open .nav__links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: rgba(7, 9, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 8px;
  }
  .nav.open .nav__links a { padding: 12px 16px; }
  .nav.open .nav__menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__menu span:nth-child(2) { opacity: 0; }
  .nav.open .nav__menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .hero__stats { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .stat::after { display: none; }
  .stat { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; padding-bottom: 0; }
  .hero__floating { display: none; }
  .hero__visual { aspect-ratio: 4/5; max-height: 480px; }

  .services, .projects { grid-template-columns: 1fr; }
  .projects .project:nth-child(1),
  .projects .project:nth-child(6) { grid-column: span 1; }
  .footer__cols { grid-template-columns: 1fr 1fr; }

  .section { padding: 70px 0; }
  .section__head { margin-bottom: 48px; }
  .vm__body, .service__body { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 480px) {
  .footer__cols { grid-template-columns: 1fr; }
  .nav__inner { gap: 8px; }
  .lang-toggle__opt { padding: 6px 10px; }
  .lang-toggle__pill { width: 32px; }
  body[data-lang="th"] .lang-toggle__pill { transform: translateX(32px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
