/* ============================================================
   CSOFT AI — Enterprise AI Brain Solutions
   Design language derived from CSOFT_20261029_A4 print piece:
   deep navy + brand cyan + signal yellow, translucent cubes,
   diagonal photo crops, bold statement typography.
   ============================================================ */

:root {
  --navy: #0e2a63;
  --navy-deep: #081b44;
  --blue: #1257b8;
  --blue-mid: #2e7bd6;
  --cyan: #31a8e0;
  --cyan-soft: #8fd4f4;
  --yellow: #ffc200;
  --yellow-soft: #ffd75e;
  --ink: #10224b;
  --muted: #52678c;
  --fog: #f2f7fd;
  --fog-deep: #e8f1fa;
  --line: #dce7f4;
  --white: #ffffff;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-soft: 0 18px 44px rgba(11, 36, 84, 0.10);
  --shadow-card: 0 10px 26px rgba(11, 36, 84, 0.07);
  --font: "Montserrat", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", "Hiragino Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  width: min(1160px, calc(100% - 3rem));
  margin-inline: auto;
}

/* ---------------- Typography utilities ---------------- */
h1, h2, h3 { letter-spacing: -0.015em; line-height: 1.18; font-weight: 900; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--yellow) 0 45%, var(--cyan) 45% 100%);
}

.section { padding: clamp(3.6rem, 6vw, 5.6rem) 0; position: relative; }

.section-title {
  font-size: clamp(1.65rem, 3.1vw, 2.5rem);
  color: var(--navy);
  max-width: 24em;
  margin-bottom: 0.9rem;
  text-wrap: balance;
}
.t-line { display: block; }

.section-desc {
  color: var(--muted);
  max-width: 44rem;
  margin-bottom: 2.4rem;
  font-size: 1.02rem;
}

.on-dark .kicker { color: var(--cyan-soft); }
.on-dark .section-title { color: #fff; }
.on-dark .section-desc { color: rgba(255, 255, 255, 0.74); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0.92rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.btn-yellow {
  background: var(--yellow);
  color: var(--navy-deep);
  box-shadow: 0 12px 26px rgba(255, 194, 0, 0.38);
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255, 194, 0, 0.45); }

.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 26px rgba(14, 42, 99, 0.28);
}
.btn-navy:hover { background: var(--blue); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(14, 42, 99, 0.28);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--blue); background: rgba(49, 168, 224, 0.07); }

.on-dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: var(--cyan-soft); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 231, 244, 0.7);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px rgba(11, 36, 84, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.72rem 0;
}

.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand img { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.brand-name .ai { color: var(--cyan); }
.brand-tag {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 0.22rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.9vw, 1.9rem);
  font-size: 0.92rem;
  font-weight: 700;
  color: #3c4e70;
}
.nav-links a { position: relative; padding: 0.4rem 0; transition: color 0.16s; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 3px;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--cyan));
  transition: width 0.22s ease;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 0.8rem; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--fog-deep);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 42, 99, 0.3);
}

.nav-cta { padding: 0.66rem 1.25rem; font-size: 0.88rem; }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.22s, opacity 0.22s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: clamp(2.6rem, 5.4vw, 4.8rem) 0 clamp(2.4rem, 5vw, 4.4rem);
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 88% -10%, rgba(49, 168, 224, 0.16), transparent 62%),
    radial-gradient(760px 420px at -12% 108%, rgba(255, 194, 0, 0.13), transparent 60%),
    var(--white);
}
.hero-cubes {
  position: absolute;
  width: clamp(240px, 26vw, 400px);
  top: -70px;
  right: -60px;
  opacity: 0.9;
  pointer-events: none;
  transform: rotate(8deg);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(1.8rem, 4vw, 3.6rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(49, 168, 224, 0.12);
  color: #0b6ea3;
  border: 1px solid rgba(49, 168, 224, 0.35);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 194, 0, 0.22);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.42rem);
  color: var(--navy);
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
body[data-lang="en"] .hero h1 { font-size: clamp(1.95rem, 3.35vw, 2.9rem); letter-spacing: -0.02em; }
.hero h1 .line-2 {
  display: block;
  margin-top: 0.28em;
  background: linear-gradient(96deg, var(--cyan) 8%, var(--blue) 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-pills { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.8rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  border-radius: 999px;
  padding: 0.46rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #3c4e70;
}
.pill svg { flex-shrink: 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Hero collage */
.hero-visual { position: relative; min-height: 420px; }
.photo-tile {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 26px 54px rgba(9, 30, 70, 0.24);
  background: var(--fog);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(14, 42, 99, 0.14), rgba(14, 42, 99, 0) 55%);
  pointer-events: none;
}
.tile-a {
  top: 0;
  right: 0;
  width: 86%;
  height: 62%;
  clip-path: polygon(9% 0, 100% 5%, 96% 100%, 0 92%);
  border-radius: 4px;
}
.tile-b {
  bottom: 2%;
  left: 0;
  width: 54%;
  height: 47%;
  clip-path: polygon(0 6%, 94% 0, 100% 94%, 6% 100%);
  background: linear-gradient(150deg, #f8fbff, #eef6fd);
  border: 1px solid var(--line);
}
.tile-b img { object-fit: contain; padding: 6px; transform: none; }

.hero-services {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(292px, 62%);
  background: linear-gradient(146deg, rgba(255, 255, 255, 0.92), rgba(240, 248, 255, 0.84));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 22px 48px rgba(9, 30, 70, 0.18);
}
.hero-services h2 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
  font-weight: 800;
}
.hero-services ul { list-style: none; display: grid; gap: 0.5rem; }
.hero-services li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--navy);
}
.hero-services li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  transform: rotate(45deg);
  flex-shrink: 0;
}
.hero-services li:nth-child(even)::before { background: var(--yellow); }

/* ---------------- Mission ---------------- */
.mission {
  background:
    radial-gradient(900px 380px at 92% 8%, rgba(49, 168, 224, 0.22), transparent 60%),
    linear-gradient(128deg, var(--navy-deep) 0%, var(--navy) 52%, #123a7e 100%);
  color: #fff;
  overflow: hidden;
}
.mission-cubes {
  position: absolute;
  width: 340px;
  left: -90px;
  bottom: -80px;
  opacity: 0.22;
  transform: rotate(-14deg);
  pointer-events: none;
}
.mission-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.4rem);
  align-items: center;
}
.mission .section-desc { color: rgba(255, 255, 255, 0.78); margin-bottom: 1.9rem; }
.mission-items { display: grid; gap: 1rem; }
.mission-item {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 1.05rem 1.2rem;
  transition: background 0.2s, transform 0.2s;
}
.mission-item:hover { background: rgba(255, 255, 255, 0.11); transform: translateX(4px); }
.mission-num {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--navy-deep);
  background: var(--yellow);
  border-radius: 9px;
  padding: 0.28rem 0.5rem;
  height: fit-content;
  margin-top: 0.15rem;
}
.mission-item h4 { font-size: 1.04rem; margin-bottom: 0.2rem; }
.mission-item p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); line-height: 1.62; }

.mission-visual {
  background: linear-gradient(160deg, #ffffff, #f4f9ff);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: 0 30px 60px rgba(4, 16, 42, 0.4);
}
.mission-visual img { width: 100%; height: auto; }

/* ---------------- Services ---------------- */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.service {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.55rem 1.4rem 1.65rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}
.service::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: rgba(49, 168, 224, 0.45); }
.service:hover::after { transform: scaleX(1); }
.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(49, 168, 224, 0.16), rgba(18, 87, 184, 0.1));
  color: var(--blue);
  margin-bottom: 1rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service .num {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  font-size: 0.82rem;
  font-weight: 900;
  color: #c3d3e8;
  letter-spacing: 0.08em;
}
.service h3 { font-size: 1.06rem; color: var(--navy); margin-bottom: 0.4rem; }
.service p { font-size: 0.9rem; color: var(--muted); line-height: 1.66; }

/* ---------------- Brain ---------------- */
.brain { background: linear-gradient(180deg, var(--fog) 0%, #eef5fc 100%); }
.brain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.brain-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
}
.brain-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.brain-art {
  background:
    radial-gradient(420px 200px at 30% 20%, rgba(49, 168, 224, 0.1), transparent 65%),
    #fbfdff;
  padding: 1rem 1.4rem 0.2rem;
  border-bottom: 1px solid var(--fog-deep);
}
.brain-art img { width: 100%; height: 210px; object-fit: contain; }
.brain-body { padding: 1.35rem 1.5rem 1.5rem; }
.brain-body h3 {
  font-size: 1.24rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}
.brain-body h3::before {
  content: "";
  width: 10px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  flex-shrink: 0;
}
.brain-card.market .brain-body h3::before { background: linear-gradient(180deg, var(--yellow), #f0a800); }
.brain-body p { color: var(--muted); font-size: 0.94rem; margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  background: var(--fog);
  border: 1px solid var(--line);
  color: #37507c;
  border-radius: 999px;
  padding: 0.34rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.brain-core {
  margin-top: 1.2rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(112deg, #ffd75e 0%, #ffc200 52%, #ffb703 100%);
  border-radius: var(--radius-lg);
  padding: 1.6rem clamp(1.4rem, 3vw, 2.6rem);
  box-shadow: 0 22px 48px rgba(255, 170, 0, 0.28);
}
.brain-core::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(24deg);
}
.brain-core img { width: 100%; max-width: 400px; height: auto; margin-inline: auto; }
.brain-core h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--navy-deep);
  margin-bottom: 0.45rem;
  position: relative;
  z-index: 1;
}
.brain-core p { color: rgba(8, 27, 68, 0.78); font-weight: 600; max-width: 34rem; position: relative; z-index: 1; }

/* ---------------- 12 Modules ---------------- */
.modules { background: #fff; }
.modules-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.modules-meta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.modules-stat {
  min-width: 7.4rem;
  background: linear-gradient(160deg, #fbfdff, #eef6fe);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}
.modules-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(96deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.modules-stat span { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.modules .section-desc { max-width: 56rem; margin-top: 0.8rem; }
.module-group { margin-top: 2rem; }
.module-group + .module-group { margin-top: 2.4rem; }
.module-group-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.module-group-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}
.module-group-badge.left { background: linear-gradient(135deg, #31a8e0, #1257b8); }
.module-group-badge.center { background: linear-gradient(135deg, #1257b8, #0e2a63); }
.module-group-badge.right { background: linear-gradient(135deg, #ffc200, #f0a800); color: #4a3200; }
.module-group-head h3 { font-size: 1.12rem; color: var(--navy); }
.module-group-count {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  background: var(--fog);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.module-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: linear-gradient(160deg, #fbfdff, #f2f8fe);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: rgba(49, 168, 224, 0.45); }
.module-icon { width: 62px; height: 62px; flex-shrink: 0; }
.module-icon img { width: 100%; height: 100%; }
.module-body { min-width: 0; }
.module-num { display: block; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 0.1rem; }
.module-body h4 { font-size: 1rem; color: var(--navy); margin-bottom: 0.25rem; }
.module-body p { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.modules-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding: 1.2rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(120deg, var(--navy-deep), var(--blue));
  color: #fff;
}
.modules-cta p { font-weight: 800; font-size: 1rem; }
.modules-cta .btn-yellow { flex-shrink: 0; }

/* ---------------- Video ---------------- */
.video-section {
  background:
    radial-gradient(720px 340px at 0% 0%, rgba(49, 168, 224, 0.12), transparent 60%),
    radial-gradient(640px 340px at 100% 100%, rgba(255, 194, 0, 0.14), transparent 60%),
    #fff;
}
.video-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.6rem, 3.4vw, 3rem);
  align-items: center;
}
.video-points { display: grid; gap: 0.5rem; margin: 1.1rem 0 1.5rem; padding: 0; list-style: none; }
.video-points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #33496f;
}
.video-points li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.42em;
  width: 0.62rem;
  height: 0.34rem;
  border-left: 2.4px solid var(--cyan);
  border-bottom: 2.4px solid var(--cyan);
  transform: rotate(-45deg);
}
.video-shell { display: grid; gap: 0.7rem; min-width: 0; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(520px 260px at 20% 10%, rgba(49, 168, 224, 0.35), transparent 60%),
    linear-gradient(140deg, var(--navy-deep), #13397c);
  border: 1px solid rgba(18, 87, 184, 0.18);
  box-shadow: 0 24px 52px rgba(11, 36, 84, 0.22);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.video-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.video-note { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.video-sound {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(18, 87, 184, 0.25);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.video-sound:hover { border-color: var(--cyan); color: var(--blue); background: rgba(49, 168, 224, 0.08); }
.video-sound[aria-pressed="true"] { border-color: rgba(18, 87, 184, 0.5); background: rgba(18, 87, 184, 0.08); }

/* ---------------- Gallery ---------------- */
.gallery { background: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.shot {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1.75 / 1;
  background: var(--fog);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.shot:hover img { transform: scale(1.05); }
.shot figcaption,
.shot .caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 2.4rem 1.1rem 0.95rem;
  background: linear-gradient(180deg, transparent, rgba(6, 19, 46, 0.78));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: left;
}
.shot .caption::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--yellow);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.shot:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* ---------------- Industries ---------------- */
.industries {
  background:
    radial-gradient(760px 380px at 8% 0%, rgba(49, 168, 224, 0.16), transparent 60%),
    linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, #13397c);
  color: #fff;
  overflow: hidden;
}
.industries-cubes {
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 360px;
  opacity: 0.16;
  transform: rotate(20deg);
  pointer-events: none;
}
.industry-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.industry {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  padding: 1.15rem 1.25rem;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.industry:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 194, 0, 0.55);
  transform: translateY(-3px);
}
.industry svg { flex-shrink: 0; color: var(--cyan-soft); }
.industry:nth-child(even) svg { color: var(--yellow); }

/* ---------------- About / stats ---------------- */
.about { background: #fff; }
.about-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.about .section-desc { margin-bottom: 2.2rem; }
.awards-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.awards-strip .shot { aspect-ratio: 3 / 2; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.stat {
  position: relative;
  background: linear-gradient(160deg, #fbfdff, #f1f7fd);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.7rem 1.5rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 4px;
  border-radius: 0 0 4px 0;
  background: var(--yellow);
}
.stat:nth-child(2)::before { background: var(--cyan); }
.stat:nth-child(3)::before { background: var(--blue); }
.stat .num {
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(96deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.35rem;
}
.stat .label { color: var(--muted); font-weight: 700; font-size: 0.94rem; }
.hkict-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--navy);
  border-radius: 12px;
  padding: 0.55rem 0.95rem;
}
.hkict-chip img { height: 34px; width: auto; }
.hkict-chip span { font-size: 0.76rem; font-weight: 700; color: rgba(255, 255, 255, 0.8); letter-spacing: 0.04em; }

/* ---------------- FAQ ---------------- */
.faq {
  background:
    radial-gradient(680px 320px at 100% 0%, rgba(49, 168, 224, 0.07), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--fog) 100%);
}
.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 920px;
  margin-top: 1.8rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 1.15rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 800;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--blue);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 8px; }
.faq-item p {
  padding: 0 0 1.05rem;
  max-width: 58rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.faq-item[open] { border-color: rgba(49, 168, 224, 0.5); box-shadow: var(--shadow-card); }

/* ---------------- Contact ---------------- */
.contact {
  background:
    radial-gradient(760px 360px at 100% 0%, rgba(255, 194, 0, 0.16), transparent 55%),
    radial-gradient(680px 360px at 0% 100%, rgba(49, 168, 224, 0.14), transparent 55%),
    var(--fog);
}
.contact-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.6rem, 3.4vw, 3rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.4vw, 2.8rem);
  box-shadow: var(--shadow-soft);
}
.person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1.7rem;
}
.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(140deg, var(--cyan), var(--blue) 70%);
  box-shadow: 0 10px 22px rgba(18, 87, 184, 0.3);
  flex-shrink: 0;
}
.person-name { font-weight: 900; font-size: 1.16rem; color: var(--navy); line-height: 1.3; }
.person-role { color: var(--muted); font-size: 0.9rem; font-weight: 700; }

.contact-links { display: grid; gap: 0.7rem; margin-bottom: 1.7rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: #33496f;
  font-size: 0.98rem;
}
.contact-link svg { color: var(--cyan); flex-shrink: 0; }
.contact-link.is-address { align-items: flex-start; }
.contact-link.is-address svg { margin-top: 3px; }
.contact-link.is-address span { white-space: pre-line; }
.contact-link a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.contact-side { display: grid; gap: 1rem; align-content: start; }
.contact-form {
  background: linear-gradient(160deg, #fbfdff, #f0f7fe);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
  display: grid;
  gap: 0.9rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field { display: grid; gap: 0.35rem; }
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231257b8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 9.5rem; }
.field input::placeholder,
.field textarea::placeholder { color: #8a9ab8; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(49, 168, 224, 0.15);
}
.field-hint {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--muted);
  padding-left: 0.15rem;
}

/* Booking */
.booking {
  border: 1px solid rgba(18, 87, 184, 0.22);
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(255, 194, 0, 0.18), transparent 60%),
    linear-gradient(150deg, rgba(49, 168, 224, 0.12), rgba(255, 255, 255, 0.6));
  border-radius: 16px;
  padding: 1rem 1.05rem 1.15rem;
  display: grid;
  gap: 0.85rem;
}
.booking-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.booking-title {
  display: block;
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
}
.booking-note {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--muted);
}
.booking-badge {
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  white-space: nowrap;
}
.booking-field { gap: 0.3rem; }
.booking-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.booking-info {
  border: 1px dashed rgba(18, 87, 184, 0.32);
  border-radius: 16px;
  padding: 1rem 1.15rem 1.15rem;
  background: rgba(18, 87, 184, 0.04);
}
.booking-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.55rem;
}
.booking-info ul { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.booking-info li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.55;
  color: rgba(51, 73, 111, 0.92);
}
.booking-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: 0.65; cursor: wait; transform: none; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }
.award-box {
  border: 1px dashed rgba(18, 87, 184, 0.35);
  border-radius: 18px;
  padding: 1.15rem 1.3rem;
  background: rgba(18, 87, 184, 0.045);
}
.award-box .hkict-chip { margin-bottom: 0.7rem; }
.award-box p { font-size: 0.86rem; color: var(--muted); line-height: 1.6; white-space: pre-line; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.6rem 0 1.4rem;
  font-size: 0.9rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.footer-brand img { height: 46px; width: auto; }
.footer-tag { max-width: 26rem; font-size: 0.88rem; color: rgba(255, 255, 255, 0.62); line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.88rem; font-weight: 700; }
.footer-nav a:hover { color: var(--yellow); }
.footer-contact { display: grid; gap: 0.7rem; font-size: 0.86rem; }
.footer-contact div { display: grid; gap: 0.1rem; }
.footer-contact span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}
.footer-contact a { color: rgba(255, 255, 255, 0.82); font-weight: 700; }
.footer-contact a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.72); font-weight: 700; }
.footer-bottom a:hover { color: var(--yellow); }

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 16, 40, 0.93);
  padding: 3.5rem 1rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1240px, 92vw);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-caption {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}
.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------------- Video modal ---------------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(5, 16, 40, 0.92);
}
.video-modal.open { display: flex; }
.vm-frame {
  width: min(1080px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.vm-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.vm-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.vm-close:hover { background: rgba(255, 255, 255, 0.22); }

/* Watch-video buttons on the brain cards */
.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.05rem;
  border: 1px solid rgba(18, 87, 184, 0.28);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.watch-btn:hover { border-color: var(--cyan); color: var(--blue); background: rgba(49, 168, 224, 0.08); transform: translateY(-1px); }
.watch-play {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  flex-shrink: 0;
}
.brain-core .watch-btn { background: var(--navy-deep); color: #fff; border-color: transparent; }
.brain-core .watch-btn:hover { background: var(--navy); color: #fff; }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .shot img, .service, .brain-card, .stat { transition: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .nav-links { gap: 1rem; font-size: 0.86rem; }
  .brand-tag { display: none; }
}

@media (max-width: 940px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(11, 36, 84, 0.12);
    padding: 0.6rem 1.5rem 1.2rem;
    transform: translateY(-140%);
    transition: transform 0.28s ease;
    z-index: 80;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--fog); font-size: 0.98rem; }
  .hamburger { display: inline-flex; }
  .nav-cta { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; margin-top: 0.6rem; }
  .hero-cubes { width: 240px; top: -40px; right: -70px; }

  .mission-grid { grid-template-columns: 1fr; }
  .mission-visual { max-width: 560px; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .brain-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .brain-core { grid-template-columns: 1fr; text-align: center; }
  .brain-core img { max-width: 320px; }
  .brain-core p { margin-inline: auto; }

  .module-grid { grid-template-columns: 1fr 1fr; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .shot { aspect-ratio: 1.6 / 1; }

  .industry-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 1.4rem 1.5rem; }
  .awards-strip { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-side { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 2.2rem); }
  .hero { padding-top: 2.2rem; }
  .hero-visual { min-height: 320px; }
  .tile-a { width: 92%; height: 58%; }
  .tile-b { display: none; }
  .hero-services { width: 78%; right: 0; padding: 0.95rem 1rem; }
  .hero-services li { font-size: 0.85rem; }
  .services-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .modules-meta { width: 100%; }
  .modules-stat { flex: 1; }
  .modules-cta { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-template-columns: 1fr; }
  .shot, .shot:nth-child(1), .shot:nth-child(4) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .industry-grid { grid-template-columns: 1fr; }
  .awards-strip { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-side { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .lang-switch { font-size: 0.76rem; }
}
