:root {
  --bg: #0a0a0f;
  --bg-soft: #10111b;
  --bg-card: rgba(17, 19, 32, 0.78);
  --cyan: #00f0ff;
  --cyan-soft: rgba(0, 240, 255, 0.18);
  --purple: #8b5cf6;
  --purple-soft: rgba(139, 92, 246, 0.2);
  --text: #e0e0e0;
  --text-strong: #ffffff;
  --muted: #a7adbd;
  --line: rgba(224, 224, 224, 0.12);
  --shadow-cyan: 0 0 30px rgba(0, 240, 255, 0.24);
  --shadow-purple: 0 0 34px rgba(139, 92, 246, 0.24);
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --container: min(1120px, calc(100% - 40px));
  --radius: 8px;
  --header-height: 82px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 12%, rgba(0, 240, 255, 0.12), transparent 32%),
    radial-gradient(circle at 78% 0%, rgba(139, 92, 246, 0.14), transparent 34%),
    linear-gradient(180deg, #0a0a0f 0%, #0c0d14 50%, #0a0a0f 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.cursor-glow {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.16), rgba(139, 92, 246, 0.08) 42%, transparent 68%);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 240ms ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

img,
svg {
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text-strong);
  font-family: var(--font-heading);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 11vw, 8.4rem);
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.45), 0 0 54px rgba(139, 92, 246, 0.34);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

p {
  color: var(--muted);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--scroll-progress, 0%);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.62);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 15, 0.9);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: var(--container);
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-strong);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0, 240, 255, 0.34);
  box-shadow: var(--shadow-cyan);
  animation: logoPulse 4s ease-in-out infinite;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color var(--transition);
  cursor: pointer;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-strong);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-cta,
.mobile-cta,
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
}

.header-cta {
  padding: 0 18px;
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: var(--cyan);
}

.header-cta:hover {
  background: var(--cyan-soft);
  box-shadow: var(--shadow-cyan);
}

.language-switch {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.language-option {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.language-option:hover,
.language-option.is-active {
  background: rgba(0, 240, 255, 0.16);
  color: var(--text-strong);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.16);
}

.mobile-language-switch {
  width: fit-content;
  margin: 8px 0 4px;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  grid-column: 1;
  grid-row: 1;
  background: var(--text-strong);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100vh;
  padding: 110px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: rgba(10, 10, 15, 0.97);
  border-left: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.4);
  transform: translateX(110%);
  transition: transform 320ms ease;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-link {
  padding: 12px 0;
  color: var(--text-strong);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
}

.mobile-cta {
  margin-top: 16px;
  background: var(--cyan);
  color: #021114;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 78px) 0 96px;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 1px;
  height: 74px;
  background: linear-gradient(to bottom, transparent, var(--cyan), transparent);
  opacity: 0.7;
  animation: scanLine 2.8s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.logo-fragment {
  position: absolute;
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.12;
  filter: saturate(1.15) blur(0.2px) drop-shadow(0 0 18px rgba(0, 240, 255, 0.2));
  mix-blend-mode: screen;
  animation: fragmentDrift 13s ease-in-out infinite;
}

.fragment-one {
  left: 10%;
  top: 22%;
  width: 64px;
  height: 64px;
}

.fragment-two {
  right: 12%;
  top: 24%;
  width: 108px;
  height: 108px;
  animation-delay: -3s;
}

.fragment-three {
  left: 18%;
  bottom: 18%;
  width: 92px;
  height: 92px;
  animation-delay: -5.5s;
}

.fragment-four {
  right: 20%;
  bottom: 20%;
  width: 74px;
  height: 74px;
  animation-delay: -7.5s;
}

.fragment-five {
  left: 34%;
  top: 14%;
  width: 58px;
  height: 58px;
  animation-delay: -9s;
}

.fragment-six {
  right: 34%;
  bottom: 12%;
  width: 66px;
  height: 66px;
  animation-delay: -11s;
}

.orbit,
.core-pulse,
.code-chip {
  position: absolute;
  left: 50%;
  top: 50%;
}

.orbit {
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.orbit-one {
  width: min(72vw, 760px);
  height: min(72vw, 760px);
  animation: orbitSpin 24s linear infinite;
}

.orbit-one::before {
  top: 18%;
  right: 10%;
}

.orbit-two {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  border-color: rgba(139, 92, 246, 0.22);
  animation: orbitSpinReverse 18s linear infinite;
}

.orbit-two::before {
  left: 12%;
  bottom: 22%;
  background: var(--purple);
  box-shadow: 0 0 18px var(--purple);
}

.core-pulse {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2), rgba(139, 92, 246, 0.1) 48%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: corePulse 3.4s ease-in-out infinite;
}

.code-chip {
  --chip-x: 0px;
  --chip-y: 0px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(0, 240, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(10, 10, 15, 0.7);
  color: var(--text-strong);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
  transform: translate(var(--chip-x), var(--chip-y));
  animation: chipFloat 5.8s ease-in-out infinite;
}

.chip-one {
  --chip-x: -380px;
  --chip-y: -170px;
}

.chip-two {
  --chip-x: 235px;
  --chip-y: -130px;
  animation-delay: -1.8s;
}

.chip-three {
  --chip-x: 160px;
  --chip-y: 190px;
  animation-delay: -3.2s;
}

.hero-subtitle {
  margin-bottom: 18px;
  color: var(--text-strong);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 600;
}

.hero-description {
  max-width: 760px;
  margin: 0 auto 32px;
  font-size: clamp(1rem, 2vw, 1.17rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  min-width: 160px;
  padding: 12px 22px;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #62fbff);
  color: #041315;
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 0 38px rgba(0, 240, 255, 0.46);
}

.btn-secondary {
  border-color: rgba(139, 92, 246, 0.55);
  color: var(--text-strong);
  background: rgba(139, 92, 246, 0.1);
}

.btn-secondary:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-purple);
}

.split-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.about-copy {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(139, 92, 246, 0.08));
}

.competency-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.competency-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
}

.competency-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.service-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(0, 240, 255, 0.72);
  box-shadow: var(--shadow-cyan);
  background: rgba(20, 24, 40, 0.88);
}

.service-card-link {
  display: block;
  color: inherit;
  cursor: pointer;
}

.card-link-label {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
}

.card-link-label::after {
  content: "→";
  margin-left: 8px;
  transition: transform var(--transition);
}

.service-card-link:hover .card-link-label::after {
  transform: translateX(4px);
}

.service-card svg {
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  fill: var(--cyan);
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.42));
  transition: transform var(--transition), fill var(--transition);
}

.service-card:hover svg {
  fill: var(--text-strong);
  transform: translateY(-3px) rotate(-4deg);
}

.strength-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.strength-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.strength-item span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan);
  font-family: var(--font-heading);
  font-weight: 700;
  border: 1px solid rgba(0, 240, 255, 0.38);
  background: var(--cyan-soft);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 0;
  padding: 42px 0 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 9%;
  right: 9%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0.62;
}

.timeline li {
  position: relative;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 17, 27, 0.84);
}

.timeline span {
  position: absolute;
  top: -42px;
  left: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--cyan);
  font-family: var(--font-heading);
  font-weight: 700;
  border: 1px solid var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.services.reveal.is-visible .service-card,
.why.reveal.is-visible .strength-item,
.workflow.reveal.is-visible .timeline li {
  animation: itemRise 650ms ease both;
}

.services.reveal.is-visible .service-card:nth-child(2),
.why.reveal.is-visible .strength-item:nth-child(2),
.workflow.reveal.is-visible .timeline li:nth-child(2) {
  animation-delay: 90ms;
}

.services.reveal.is-visible .service-card:nth-child(3),
.why.reveal.is-visible .strength-item:nth-child(3),
.workflow.reveal.is-visible .timeline li:nth-child(3) {
  animation-delay: 180ms;
}

.services.reveal.is-visible .service-card:nth-child(4),
.why.reveal.is-visible .strength-item:nth-child(4),
.workflow.reveal.is-visible .timeline li:nth-child(4) {
  animation-delay: 270ms;
}

.services.reveal.is-visible .service-card:nth-child(5),
.why.reveal.is-visible .strength-item:nth-child(5),
.workflow.reveal.is-visible .timeline li:nth-child(5) {
  animation-delay: 360ms;
}

.services.reveal.is-visible .service-card:nth-child(6) {
  animation-delay: 450ms;
}

.contact-note {
  max-width: 520px;
}

.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-detail {
  padding: 16px;
  border: 1px solid rgba(224, 224, 224, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.contact-detail span {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-detail a {
  display: inline-block;
  color: var(--text-strong);
  font-weight: 700;
  overflow-wrap: anywhere;
  transition: color var(--transition), text-shadow var(--transition);
}

.contact-detail a:hover {
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.36);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.social-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.social-links a:hover {
  border-color: var(--cyan);
  color: var(--text-strong);
  background: var(--cyan-soft);
}

.direct-contact-panel {
  padding: 28px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 19, 32, 0.92), rgba(12, 13, 20, 0.92));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.direct-contact-panel h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.direct-contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.site-footer p {
  margin: 0;
  color: #858b9d;
}

.subpage .site-header {
  background: rgba(10, 10, 15, 0.9);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.subpage-hero {
  padding: calc(var(--header-height) + 82px) 0 72px;
}

.subpage-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}

.subpage-hero h1 {
  max-width: 860px;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
}

.subpage-hero p {
  max-width: 720px;
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 26px;
  color: var(--cyan);
  font-weight: 700;
  transition: color var(--transition), text-shadow var(--transition);
}

.back-link::before {
  content: "←";
  margin-right: 10px;
}

.back-link:hover {
  color: var(--text-strong);
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.32);
}

.project-showcase {
  padding-top: 72px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 19, 32, 0.78);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.7);
  box-shadow: var(--shadow-cyan);
}

.project-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  transition: transform 360ms ease, filter 360ms ease;
}

.project-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.05);
}

.project-card span {
  display: block;
  padding: 16px;
  color: var(--text-strong);
  font-family: var(--font-heading);
  font-weight: 700;
}

.thesis-support {
  padding-top: 40px;
}

.thesis-support-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(139, 92, 246, 0.1));
}

.thesis-support-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.thesis-support-panel p {
  max-width: 650px;
  margin-bottom: 0;
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(3, 4, 8, 0.88);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox figure {
  width: min(94vw, 820px);
  max-height: 88vh;
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 240, 255, 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox figcaption {
  margin-top: 12px;
  color: var(--text-strong);
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-strong);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.background-shapes {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.shape,
.grid-glow {
  position: absolute;
  display: block;
}

.shape {
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: rgba(0, 240, 255, 0.04);
  animation: floatShape 16s ease-in-out infinite;
}

.shape-one {
  width: 140px;
  height: 140px;
  top: 18%;
  left: 7%;
}

.shape-two {
  width: 96px;
  height: 96px;
  top: 58%;
  right: 12%;
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.06);
  animation-delay: -4s;
}

.shape-three {
  width: 68px;
  height: 68px;
  bottom: 16%;
  left: 22%;
  transform: rotate(45deg);
  animation-delay: -7s;
}

.shape-four {
  width: 180px;
  height: 180px;
  top: 12%;
  right: 5%;
  border-radius: 50%;
  animation-delay: -10s;
}

.grid-glow {
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 72%, transparent);
  animation: gridShift 22s linear infinite;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(18px, -24px, 0) rotate(8deg);
  }
}

@keyframes gridShift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 72px 72px;
  }
}

@keyframes orbitSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbitSpinReverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes corePulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.92);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translate(var(--chip-x), var(--chip-y));
  }
  50% {
    transform: translate(var(--chip-x), calc(var(--chip-y) - 18px));
  }
}

@keyframes logoPulse {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.22);
  }
  50% {
    box-shadow: 0 0 32px rgba(0, 240, 255, 0.46);
  }
}

@keyframes fragmentDrift {
  0%,
  100% {
    opacity: 0.08;
    transform: translate3d(0, 0, 0) rotate(-4deg) scale(0.94);
  }
  45% {
    opacity: 0.18;
    transform: translate3d(22px, -28px, 0) rotate(8deg) scale(1.06);
  }
  70% {
    opacity: 0.12;
    transform: translate3d(-12px, 18px, 0) rotate(3deg) scale(0.98);
  }
}

@keyframes scanLine {
  0%,
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
  50% {
    opacity: 0.75;
    transform: translateY(12px);
  }
}

@keyframes itemRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .services-grid,
  .strength-list,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout,
  .contact-layout,
  .subpage-hero-grid {
    grid-template-columns: 1fr;
  }

  .thesis-support-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline {
    grid-template-columns: 1fr;
    padding-left: 30px;
    padding-top: 0;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 18px;
    width: 2px;
    height: auto;
    right: auto;
  }

  .timeline span {
    top: 22px;
    left: -30px;
  }

  .timeline li {
    padding-left: 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --container: min(100% - 28px, 1120px);
    --header-height: 74px;
  }

  .section {
    padding: 78px 0;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 46px);
  }

  .hero::after {
    height: 48px;
    bottom: 4%;
  }

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

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

  .code-chip {
    display: none;
  }

  .logo-fragment {
    width: 58px;
    height: 58px;
    opacity: 0.08;
  }

  .fragment-two {
    width: 78px;
    height: 78px;
  }

  .fragment-three {
    width: 68px;
    height: 68px;
  }

  .fragment-one,
  .fragment-five {
    display: none;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .services-grid,
  .strength-list,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .strength-item {
    grid-template-columns: 54px 1fr;
  }

  .about-copy,
  .direct-contact-panel {
    padding: 22px;
  }

  .social-links a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow,
  .hero::after,
  .orbit,
  .core-pulse,
  .logo-fragment,
  .shape,
  .grid-glow,
  .brand-logo,
  .services.reveal.is-visible .service-card,
  .why.reveal.is-visible .strength-item,
  .workflow.reveal.is-visible .timeline li {
    animation: none !important;
  }
}
