/* =========================
   Variables and reset
========================= */

:root {
  --navy: #0d2340;
  --navy-deep: #07182d;
  --navy-mid: #17395e;
  --blue: #316bb8;
  --cyan: #65d1ff;
  --paper: #f5f7fa;
  --white: #ffffff;
  --text: #26384f;
  --muted: #6f7d90;
  --line: #dfe5ec;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* =========================
   Header
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  max-width: 1200px;
  height: 72px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.logo > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
  font-weight: 700;
}

.logo strong,
.logo small {
  display: block;
}

.logo small {
  color: #8591a0;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 700;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--blue);
}

.lang-btn {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  cursor: pointer;
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  font-size: 24px;
}

/* =========================
   Hero
========================= */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 820px;
  padding: 96px 24px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 40%, rgba(54, 113, 205, 0.32), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(0, 184, 255, 0.16), transparent 29%),
    linear-gradient(135deg, #0b1d36, #17385a 55%, #0f2d4c);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 82%, transparent);
}

.hero-layout {
  position: relative;
  z-index: 4;
  max-width: 1240px;
  min-height: 620px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 62px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 8;
}

.hero-eyebrow {
  color: #bed7f7;
}

.hero h1 {
  max-width: 840px;
  margin: 14px 0 22px;
  font-size: clamp(48px, 5.7vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 36px rgba(1, 10, 26, 0.22);
}

.hero-lead {
  max-width: 720px;
  font-size: 18px;
  color: #eef5ff;
}

.eyebrow,
.section-head > p,
.contact > div > p {
  margin: 0;
  color: #6f87a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-meta {
  display: flex;
  gap: 30px;
  margin: 28px 0;
  color: #cfdeef;
  font-size: 13px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 6px;
  color: var(--navy);
  background: var(--white);
  font-weight: 800;
  box-shadow: 0 14px 36px rgba(4, 16, 37, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(4, 16, 37, 0.28);
}

/* =========================
   Hero technology visual
========================= */

.tech-visual {
  position: relative;
  width: 560px;
  height: 560px;
  justify-self: end;
  animation: visual-float 7s ease-in-out infinite;
}

.tech-grid {
  position: absolute;
  inset: 68px;
  border-radius: 50%;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(111, 199, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 199, 255, 0.13) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle, #000 56%, transparent 76%);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-outer {
  width: 520px;
  height: 520px;
  border: 1px solid rgba(157, 213, 255, 0.24);
  border-top-color: rgba(111, 221, 255, 0.88);
  border-right-color: rgba(80, 133, 240, 0.65);
  animation: orbit-spin 22s linear infinite;
}

.orbit-inner {
  width: 360px;
  height: 360px;
  border: 1px dashed rgba(182, 224, 255, 0.32);
  border-left-color: rgba(105, 217, 255, 0.9);
  border-bottom-color: rgba(112, 147, 255, 0.75);
  animation: orbit-spin-reverse 15s linear infinite;
}

.orbit-node {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: #61d8ff;
  box-shadow:
    0 0 0 7px rgba(97, 216, 255, 0.08),
    0 0 28px rgba(97, 216, 255, 0.85);
}

.node-a {
  left: 38px;
  top: 104px;
}

.node-b {
  right: 18px;
  top: 238px;
}

.node-c {
  left: 175px;
  bottom: -6px;
}

.node-d {
  top: 6px;
  right: 86px;
  background: #9a8cff;
}

.node-e {
  left: -4px;
  bottom: 92px;
  background: #55f0c0;
}

.ai-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 226px;
  height: 226px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(193, 228, 255, 0.28);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 30px 90px rgba(1, 18, 46, 0.35),
    0 0 58px rgba(39, 178, 255, 0.14);
  backdrop-filter: blur(14px);
  animation: chip-float 4.5s ease-in-out infinite;
}

.ai-chip::before,
.ai-chip::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(105, 205, 255, 0.12);
  border-radius: 25px;
}

.ai-chip::after {
  inset: 30px;
  border-style: dashed;
}

.ai-chip span {
  color: var(--white);
  font-size: 88px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

.ai-chip small {
  margin-top: 13px;
  color: #91c9f0;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.scan-line {
  position: absolute;
  z-index: 7;
  width: 390px;
  height: 2px;
  left: 50%;
  top: 140px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(91, 218, 255, 0.95), transparent);
  box-shadow: 0 0 20px rgba(91, 218, 255, 0.8);
  animation: scan 4s ease-in-out infinite;
}

.floating-label {
  position: absolute;
  z-index: 8;
  padding: 7px 11px;
  border: 1px solid rgba(164, 217, 255, 0.22);
  border-radius: 6px;
  color: #a9dafa;
  background: rgba(6, 31, 64, 0.7);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  box-shadow: 0 10px 30px rgba(0, 10, 30, 0.22);
  backdrop-filter: blur(10px);
}

.label-a {
  left: 44px;
  top: 178px;
  animation: label-float 5s ease-in-out infinite;
}

.label-b {
  right: 18px;
  top: 148px;
  animation: label-float 5.8s ease-in-out infinite reverse;
}

.label-c {
  right: 52px;
  bottom: 94px;
  animation: label-float 4.8s ease-in-out infinite;
}

/* Particles */

.hero-particle {
  position: absolute;
  z-index: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7fdcff;
  box-shadow: 0 0 18px rgba(127, 220, 255, 0.9);
  opacity: 0.65;
}

.particle-a {
  left: 53%;
  top: 23%;
  animation: particle-drift 8s ease-in-out infinite;
}

.particle-b {
  right: 9%;
  top: 21%;
  animation: particle-drift 10s ease-in-out infinite reverse;
}

.particle-c {
  right: 44%;
  bottom: 22%;
  animation: particle-drift 7s ease-in-out infinite;
}

/* =========================
   Capability marquee
========================= */

.capability-marquee {
  position: relative;
  z-index: 12;
  width: 100%;
  overflow: hidden;
  padding: 19px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
}

.capability-marquee::before,
.capability-marquee::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 110px;
  pointer-events: none;
}

.capability-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #132f50, transparent);
}

.capability-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, #132f50, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
}

.marquee-group span {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 0 17px;
  border: 1px solid rgba(181, 225, 255, 0.17);
  border-radius: 999px;
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.045em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* =========================
   Animations
========================= */

@keyframes orbit-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbit-spin-reverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes chip-float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-12px);
  }
}

@keyframes visual-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes scan {
  0% {
    top: 135px;
    opacity: 0;
  }

  16% {
    opacity: 1;
  }

  82% {
    opacity: 1;
  }

  100% {
    top: 416px;
    opacity: 0;
  }
}

@keyframes label-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes particle-drift {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.25;
  }

  50% {
    transform: translate(22px, -28px);
    opacity: 0.85;
  }
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================
   General sections
========================= */

.section {
  max-width: 1200px;
  margin: auto;
  padding: 95px 24px;
}

.soft {
  max-width: none;
  background: var(--paper);
}

.soft > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 8px 0;
  color: var(--navy);
  font-size: 42px;
}

.section-head span {
  color: var(--muted);
}

/* =========================
   About
========================= */

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 70px;
  align-items: center;
}

.about-visual {
  position: relative;
  isolation: isolate;
  height: 380px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 26% 22%, rgba(87, 157, 255, 0.34), transparent 35%),
    radial-gradient(circle at 78% 76%, rgba(28, 205, 255, 0.15), transparent 32%),
    linear-gradient(145deg, #0a1d37, #102e52 58%, #0b2544);
  box-shadow: 0 26px 70px rgba(12, 36, 68, 0.14);
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(135deg, #000, transparent 78%);
}

.about-visual::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -92px;
  top: -95px;
  border: 1px solid rgba(112, 203, 255, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 46px rgba(112, 203, 255, 0.035),
    0 0 0 95px rgba(112, 203, 255, 0.025);
}

.about-matrix {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  height: 56px;
  opacity: 0.48;
  background:
    linear-gradient(90deg,
      transparent 0 6%,
      rgba(101, 209, 255, 0.18) 6% 7%,
      transparent 7% 14%,
      rgba(101, 209, 255, 0.35) 14% 15%,
      transparent 15% 25%,
      rgba(101, 209, 255, 0.14) 25% 26%,
      transparent 26% 40%,
      rgba(101, 209, 255, 0.45) 40% 41%,
      transparent 41% 52%,
      rgba(101, 209, 255, 0.17) 52% 53%,
      transparent 53% 69%,
      rgba(101, 209, 255, 0.34) 69% 70%,
      transparent 70% 84%,
      rgba(101, 209, 255, 0.2) 84% 85%,
      transparent 85%);
  border-top: 1px solid rgba(255,255,255,.09);
}

.about-core {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(190, 225, 255, 0.22);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  box-shadow:
    inset 0 1px rgba(255,255,255,.13),
    0 24px 65px rgba(1, 16, 39, 0.3),
    0 0 42px rgba(65, 167, 255, 0.08);
  backdrop-filter: blur(12px);
  animation: about-core-float 5s ease-in-out infinite;
}

.about-core::before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px dashed rgba(106, 205, 255, 0.16);
  border-radius: 21px;
}

.about-core strong {
  color: var(--white);
  font-size: 60px;
  line-height: 1;
  letter-spacing: 0.03em;
}

.about-core-label,
.about-core small {
  position: relative;
  z-index: 2;
  color: #a8d8f7;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.about-core-label {
  margin-bottom: 14px;
}

.about-core small {
  margin-top: 14px;
  color: #8da9c4;
  font-size: 7px;
}

.about-orbit {
  position: absolute;
  left: 50%;
  top: 47%;
  border-radius: 50%;
}

.orbit-one {
  width: 278px;
  height: 278px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(119, 203, 255, 0.17);
  border-top-color: rgba(101, 209, 255, 0.58);
  animation: about-orbit 18s linear infinite;
}

.orbit-two {
  width: 230px;
  height: 130px;
  transform: translate(-50%, -50%) rotate(-24deg);
  border: 1px dashed rgba(161, 203, 255, 0.2);
  animation: about-orbit-elliptic 13s linear infinite reverse;
}

.about-orbit span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(101, 209, 255, 0.86);
}

.orbit-one span {
  left: 31px;
  top: 48px;
}

.orbit-two span {
  right: 16px;
  top: 53px;
  background: #8f9cff;
}

.about-signal {
  position: absolute;
  padding: 5px 8px;
  border: 1px solid rgba(154, 215, 255, 0.15);
  color: #8fc7eb;
  background: rgba(5, 28, 58, 0.55);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.signal-one {
  left: 26px;
  top: 28px;
}

.signal-two {
  right: 24px;
  bottom: 24px;
}

.signal-three {
  right: 28px;
  top: 112px;
}

.about-copy-tech {
  position: relative;
  min-height: 380px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: center;
}

.about-copy-content {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: 17px;
}

.about-copy-content p:first-child {
  margin-top: 0;
}

.about-copy-content p {
  max-width: 700px;
}

.about-tech-map {
  position: relative;
  min-height: 290px;
  align-self: stretch;
  opacity: 0.82;
}

.about-tech-map::before {
  content: "SYSTEM MAP";
  position: absolute;
  right: 8px;
  top: 5px;
  color: #9aabc0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.about-tech-map svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.map-tag {
  position: absolute;
  padding: 5px 8px;
  border: 1px solid rgba(49, 107, 184, 0.16);
  border-radius: 4px;
  color: #6480a4;
  background: rgba(245, 248, 252, 0.76);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  backdrop-filter: blur(6px);
}

.tag-research {
  left: 10px;
  top: 28px;
}

.tag-system {
  left: 42%;
  top: 47%;
}

.tag-deploy {
  right: 4px;
  bottom: 18px;
}

.numbers {
  display: flex;
  gap: 54px;
  margin-top: 35px;
}

.numbers strong {
  display: block;
  color: var(--navy);
  font-size: 36px;
}

.numbers span {
  font-size: 13px;
}

@keyframes about-core-float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-8px);
  }
}

@keyframes about-orbit {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes about-orbit-elliptic {
  from {
    transform: translate(-50%, -50%) rotate(-24deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(336deg);
  }
}

/* =========================
   Services
========================= */

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.research-grid article {
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--white);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.research-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(19, 47, 84, 0.08);
}

.research-grid article > span {
  color: var(--blue);
  font-weight: 800;
}

.research-grid h3 {
  color: var(--navy);
  font-size: 22px;
}

.research-grid p {
  color: var(--muted);
}

/* =========================
   Faculty
========================= */

.faculty-list {
  display: grid;
  gap: 36px;
}

.faculty-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 38px;
  align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.faculty-item img {
  width: 180px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  border-radius: 5px;
  background: #eef2f5;
}

.faculty-item h3 {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
}

.role {
  color: var(--blue);
  font-weight: 700;
}

.faculty-item p {
  color: var(--muted);
}

.faculty-item a,
.member a,
.projects-grid a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

/* =========================
   Team
========================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.member {
  padding: 28px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.member:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(19, 47, 84, 0.08);
}

.member img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #eef2f5;
}

.member h3 {
  margin: 4px 0;
  color: var(--navy);
  font-size: 20px;
}

.member p {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.member small {
  display: block;
  min-height: 44px;
  margin: 12px 0;
  color: var(--muted);
}

/* =========================
   Projects
========================= */

.projects-section {
  position: relative;
  overflow: hidden;
}

.projects-section::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -260px;
  top: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 132, 224, 0.11), transparent 68%);
  pointer-events: none;
}

.projects-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.project-card {
  overflow: hidden;
  border: 1px solid rgba(35, 76, 130, 0.14);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(16, 45, 82, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(55, 113, 192, 0.32);
  box-shadow: 0 28px 68px rgba(19, 55, 101, 0.14);
}

.project-preview {
  display: block;
  color: inherit;
  background: #eef4fb;
}

.browser-bar {
  height: 48px;
  padding: 0 17px;
  display: grid;
  grid-template-columns: 76px 1fr 28px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(31, 70, 120, 0.1);
  background: rgba(248, 251, 255, 0.96);
}

.browser-dots {
  display: flex;
  gap: 7px;
}

.browser-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6aa9e8;
}

.browser-dots i:nth-child(2) { background: #91bde8; }
.browser-dots i:nth-child(3) { background: #b5cee7; }
.browser-dots.muted i { background: #b3bfce; }

.browser-address {
  min-width: 0;
  padding: 7px 15px;
  overflow: hidden;
  border: 1px solid rgba(42, 86, 140, 0.1);
  border-radius: 8px;
  color: #60748e;
  background: #fff;
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-action {
  color: #6c84a1;
  font-size: 18px;
  text-align: right;
}

.project-screen {
  position: relative;
  height: 305px;
  overflow: hidden;
  background: linear-gradient(145deg, #e7f0fb, #f7faff);
}

.project-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.55s cubic-bezier(.2,.7,.2,1), filter 0.35s ease;
}

.project-card-live:hover .project-screen img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.02);
}

.preview-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 31, 61, 0.02), rgba(8, 31, 61, 0.67));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.preview-overlay span {
  padding: 11px 17px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: rgba(7, 34, 70, 0.54);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  transform: translateY(10px);
  transition: transform .28s ease;
}

.project-card-live:hover .preview-overlay { opacity: 1; }
.project-card-live:hover .preview-overlay span { transform: translateY(0); }

.project-content {
  padding: 27px 28px 30px;
}

.project-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.project-heading h3 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 29px;
  line-height: 1.15;
}

.project-index {
  color: rgba(31, 70, 120, 0.16);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.project-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-live { color: #23815d; }
.status-live i {
  background: #36b77f;
  box-shadow: 0 0 0 5px rgba(54, 183, 127, .12);
  animation: projectPulse 2.3s ease-in-out infinite;
}

.status-development { color: #9a6a20; }
.status-development i {
  background: #d9a34b;
  box-shadow: 0 0 0 5px rgba(217, 163, 75, .13);
}

.project-content > p {
  min-height: 52px;
  margin: 18px 0;
  color: var(--muted);
  line-height: 1.75;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 23px;
}

.project-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(48, 99, 165, 0.12);
  border-radius: 999px;
  color: #48627f;
  background: #f5f8fc;
  font-size: 11px;
  font-weight: 750;
}

.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-size: 13px;
  font-weight: 850;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.project-link:hover {
  transform: translateY(-2px);
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(34, 93, 166, .2);
}

.project-link-disabled {
  color: #728096;
  background: #edf1f6;
  cursor: default;
}

.project-link-disabled:hover {
  transform: none;
  background: #edf1f6;
  box-shadow: none;
}

.coming-preview {
  cursor: default;
}

.coming-screen {
  position: relative;
  height: 305px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(75, 139, 225, .27), transparent 35%),
    linear-gradient(145deg, #112a4b, #07182e 72%);
}

.coming-grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(122,177,239,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,177,239,.18) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.coming-orbit {
  position: absolute;
  border: 1px solid rgba(115, 186, 255, .36);
  border-radius: 50%;
}

.coming-orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  left: 50%;
  top: -5px;
  border-radius: 50%;
  background: #78ccff;
  box-shadow: 0 0 16px rgba(120,204,255,.9);
}

.orbit-a {
  width: 210px;
  height: 210px;
  animation: projectOrbit 12s linear infinite;
}

.orbit-b {
  width: 272px;
  height: 160px;
  border-style: dashed;
  opacity: .65;
  animation: projectOrbitReverse 16s linear infinite;
}

.coming-core {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 112px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(140, 204, 255, .52);
  border-radius: 22px;
  color: #fff;
  background: rgba(13, 46, 82, .76);
  box-shadow: inset 0 0 30px rgba(92, 164, 239, .2), 0 0 44px rgba(76, 153, 235, .24);
  text-align: center;
  backdrop-filter: blur(8px);
}

.coming-core strong {
  font-size: 38px;
  line-height: 1;
}

.coming-core small {
  margin-top: 6px;
  color: #88c8ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .24em;
}

.coming-badge {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 8px 12px;
  border: 1px solid rgba(138, 199, 255, .22);
  border-radius: 999px;
  color: #a8d7ff;
  background: rgba(5, 22, 42, .62);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  white-space: nowrap;
}

@keyframes projectPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(54,183,127,.12); }
  50% { box-shadow: 0 0 0 8px rgba(54,183,127,.03); }
}

@keyframes projectOrbit { to { transform: rotate(360deg); } }
@keyframes projectOrbitReverse { to { transform: rotate(-360deg); } }

/* =========================
   Contact and footer
========================= */

.contact {
  padding: 70px max(24px, calc((100% - 1152px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 10%, rgba(75, 143, 245, 0.25), transparent 38%),
    var(--navy);
}

.contact h2 {
  margin: 5px 0;
  font-size: 40px;
}

.contact span {
  color: #bcc8d7;
}

.contact > a {
  padding: 13px 20px;
  border-radius: 5px;
  color: var(--navy);
  background: var(--white);
  font-weight: 800;
}

footer {
  padding: 35px max(24px, calc((100% - 1152px) / 2));
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 35px;
  color: #c4cfdd;
  background: var(--navy-deep);
}

footer strong,
footer small {
  display: block;
}

footer small {
  font-size: 11px;
}

footer nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

footer p {
  font-size: 12px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1050px) {
  .hero-layout {
    grid-template-columns: 1fr 0.7fr;
    gap: 20px;
  }

  .tech-visual {
    width: 470px;
    height: 470px;
    transform: scale(0.86);
    transform-origin: right center;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .nav.open {
    display: flex;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    padding-bottom: 55px;
  }

  .tech-visual {
    justify-self: center;
    transform: scale(0.9);
    transform-origin: center;
  }

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

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

  .faculty-item {
    grid-template-columns: 160px 1fr;
  }

  .faculty-item img {
    width: 150px;
    height: 190px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding-top: 70px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-meta {
    display: block;
  }

  .hero-meta span {
    display: block;
    margin-bottom: 5px;
  }

  .tech-visual {
    width: 380px;
    height: 380px;
    transform: scale(0.83);
    margin: -20px 0;
  }

  .orbit-outer {
    width: 420px;
    height: 420px;
  }

  .orbit-inner {
    width: 290px;
    height: 290px;
  }

  .ai-chip {
    width: 190px;
    height: 190px;
  }

  .ai-chip span {
    font-size: 72px;
  }

  .scan-line {
    width: 300px;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .numbers {
    gap: 24px;
  }

  .faculty-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .faculty-item img {
    margin: auto;
  }

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

  .contact {
    display: block;
  }

  .contact > a {
    display: inline-block;
    margin-top: 24px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer nav {
    flex-wrap: wrap;
  }
}


@media (max-width: 1050px) {
  .about-grid {
    grid-template-columns: 340px 1fr;
    gap: 45px;
  }

  .about-copy-tech {
    grid-template-columns: 1fr;
  }

  .about-tech-map {
    position: absolute;
    inset: 0 0 0 40%;
    z-index: 0;
    opacity: 0.32;
    pointer-events: none;
  }

  .about-copy-content {
    max-width: 680px;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    width: min(430px, 100%);
    margin: auto;
  }

  .about-copy-tech {
    min-height: auto;
  }

  .about-tech-map {
    display: none;
  }
}

@media (max-width: 600px) {
  .about-visual {
    height: 340px;
  }

  .about-core {
    width: 160px;
    height: 160px;
  }

  .about-core strong {
    font-size: 52px;
  }

  .orbit-one {
    width: 250px;
    height: 250px;
  }

  .numbers {
    gap: 24px;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Projects V2 responsive overrides */
@media (max-width: 900px) {
  .projects-showcase { grid-template-columns: 1fr; }
  .project-screen,
  .coming-screen { height: 330px; }
}

@media (max-width: 600px) {
  .projects-showcase { gap: 22px; }
  .browser-bar { grid-template-columns: 60px 1fr 20px; padding: 0 12px; }
  .project-screen,
  .coming-screen { height: 230px; }
  .project-content { padding: 22px 20px 24px; }
  .project-heading h3 { font-size: 25px; }
  .project-index { font-size: 30px; }
  .project-content > p { min-height: 0; }
}

/* Projects V3 — fixed local NTPU AI product preview */
.project-card-live .project-screen {
  background: #fff;
}

.project-card-live .project-screen img {
  object-fit: cover;
  object-position: top center;
  transform-origin: center top;
}

.project-card-live:hover {
  box-shadow: 0 24px 64px rgba(23, 83, 153, 0.18);
}

.project-card-live:hover .project-screen img {
  transform: scale(1.04);
}
