﻿:root {
  color: #f4f1e8;
  background: #050608;
  font-family:
    Barlow, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: geometricPrecision;
  --shell: min(1700px, calc(100vw - 72px));
  --line: rgba(255, 255, 255, 0.13);
  --soft: rgba(255, 255, 255, 0.68);
  --muted: rgba(255, 255, 255, 0.46);
  --panel: rgba(255, 255, 255, 0.065);
  --accent: #b8f0ff;
  --acid: #d8ff61;
  --rose: #ff7a90;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1180px;
  overflow-x: auto;
  background:
    radial-gradient(circle at 18% 18%, rgba(184, 240, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #050608 0%, #0a0d0f 46%, #050608 100%);
}

body.modalOpen {
  overflow: hidden;
}

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

.reveal {
  --reveal-delay: 0ms;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(42px) scale(0.985);
  transition:
    opacity 820ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
    filter 820ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay);
  will-change: opacity, filter, transform;
}

.reveal.isVisible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.revealDelay1 {
  --reveal-delay: 120ms;
}

img,
video {
  display: block;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
}

.heroVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.12) brightness(0.5);
  z-index: -3;
}

.heroOverlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.58), rgba(5, 6, 8, 0.18) 46%, rgba(5, 6, 8, 0.84));
}

.heroFadeTop,
.heroFadeBottom {
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  height: 220px;
  pointer-events: none;
}

.heroFadeTop {
  top: 0;
  background: linear-gradient(to bottom, #050608, transparent);
}

.heroFadeBottom {
  bottom: 0;
  background: linear-gradient(to top, #050608, transparent);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 85%);
}

.nav {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 999;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(760px, calc(100vw - 72px));
  height: 58px;
  padding: 0 8px 0 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045) 42%, rgba(255, 255, 255, 0.12)),
    rgba(9, 12, 15, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -22px 44px rgba(255, 255, 255, 0.035),
    0 18px 60px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
  backdrop-filter: blur(26px) saturate(1.55) contrast(1.06);
  -webkit-backdrop-filter: blur(26px) saturate(1.55) contrast(1.06);
}

.nav::before {
  position: absolute;
  inset: 1px;
  z-index: 0;
  content: "";
  border-radius: inherit;
  background:
    radial-gradient(circle at 9% 0%, rgba(255, 255, 255, 0.42), transparent 24%),
    radial-gradient(circle at 78% 115%, rgba(184, 240, 255, 0.22), transparent 32%),
    linear-gradient(100deg, rgba(255, 255, 255, 0.1), transparent 36%, rgba(255, 255, 255, 0.12) 78%, transparent);
  opacity: 0.78;
  pointer-events: none;
}

.nav::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  border-radius: inherit;
  background-image:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.16) 42%, transparent 58%),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 180% 100%, 100% 9px;
  background-position: 28% 0, 0 0;
  opacity: 0.38;
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.navLinks {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
  font-size: 14px;
}

.navLinks a {
  border-radius: 999px;
  padding: 8px 12px;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.navLinks a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.contactButton,
.primaryAction,
.ghostAction,
.finalLinks a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.contactButton {
  position: relative;
  z-index: 1;
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 26px rgba(0, 0, 0, 0.18);
}

.contactButton:hover,
.primaryAction:hover,
.ghostAction:hover,
.finalLinks a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.heroContent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 150px 0 42px;
  text-align: center;
}

.heroKicker,
.sectionLabel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--accent);
  font-size: 13px;
}

.hero h1 {
  max-width: 1180px;
  margin: 28px 0 0;
  font-family: "Segoe UI", Inter, sans-serif;
  font-size: clamp(94px, 10vw, 184px);
  font-style: normal;
  font-weight: 300;
  line-height: 0.86;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  max-width: 980px;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: Barlow, Inter, "Microsoft YaHei", sans-serif;
  font-size: clamp(54px, 4.7vw, 88px);
  font-style: italic;
  line-height: 0.88;
  font-weight: 400;
  text-transform: none;
}

.hero p {
  max-width: 720px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 18px;
  font-weight: 300;
}

.heroActions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
}

.primaryAction {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.01);
  color: #fff;
}

.solidAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
  color: #070809;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.94);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.solidAction:hover {
  transform: translateY(-2px);
  background: #fff;
}

.liquidGlassStrong {
  position: relative;
  overflow: hidden;
  border: none;
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  box-shadow:
    4px 4px 4px rgba(0, 0, 0, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}

.liquidGlassStrong::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.2) 80%,
    rgba(255, 255, 255, 0.5) 100%
  );
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.heroMiniFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
}

.heroMiniFooter p {
  max-width: none;
  margin: 0;
  color: inherit;
  font-size: 12px;
}

.heroMiniFooter div {
  display: flex;
  align-items: center;
  gap: 28px;
}

.heroMiniFooter a {
  color: inherit;
  font-size: 12px;
  font-weight: 300;
  transition: color 180ms ease;
}

.heroMiniFooter a:hover {
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: 128px 0;
}

.aboutGrid {
  display: grid;
  grid-template-columns: minmax(420px, 0.76fr) minmax(0, 1.24fr);
  gap: 72px;
  align-items: stretch;
  margin-top: 30px;
}

.portraitPanel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101317;
}

.portraitPanel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.78) contrast(1.08);
}

.portraitGlass {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  padding: 22px;
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(22px);
}

.portraitGlass span {
  color: var(--muted);
  font-size: 13px;
}

.portraitGlass strong {
  font-size: 26px;
  font-weight: 560;
}

.aboutCopy h2,
.sectionHeader h2,
.contactInner h2 {
  margin: 0;
  font-size: 56px;
  line-height: 1.08;
  font-weight: 620;
}

.profileName {
  margin-bottom: 24px;
  color: #397ce3;
  font-size: clamp(54px, 5.4vw, 96px);
  font-weight: 500;
  line-height: 0.92;
}

.aboutCopy p,
.sectionHeader p,
.strengthCard p,
.projectInfo p,
.contactInner p {
  color: var(--soft);
  font-size: 17px;
}

.aboutCopy p {
  max-width: 880px;
  margin: 28px 0 0;
}

.contactList {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.contactList a,
.contactList span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 15px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.statsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 58px;
}

.statCard,
.strengthCard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.statCard {
  padding: 28px 24px;
}

.statCard strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.statCard span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.sectionHeader {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 80px;
}

.sectionHeader h2 {
  margin-top: 16px;
}

.sectionHeader p {
  max-width: 560px;
  margin: 0;
}

.projectUniverse {
  position: relative;
  min-height: auto;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(77, 247, 255, 0.08), transparent 34rem),
    radial-gradient(ellipse at 20% 42%, rgba(255, 179, 77, 0.07), transparent 32rem),
    #010101;
}

.projectUniverse::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(ellipse at 50% 38%, transparent 0, rgba(0, 0, 0, 0.1) 42%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 18%, transparent 76%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.worksPreviewGrid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 28%, #000 0, transparent 78%);
}

.universeIntro {
  position: relative;
  z-index: 2;
  text-align: center;
}

.universeIntro .sectionLabel {
  margin: 0 auto;
}

.universeIntro h2 {
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.94);
  font-family: "Segoe UI", Inter, sans-serif;
  font-size: clamp(64px, 7vw, 116px);
  font-weight: 300;
  line-height: 0.96;
  text-shadow:
    0 0 22px rgba(255, 255, 255, 0.08),
    0 0 48px rgba(77, 247, 255, 0.08);
}

.universeIntro p {
  max-width: 650px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
}

.featuredProject {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 38px;
  align-items: stretch;
  margin-top: 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 28px;
}

.featuredProjectImage {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: #090909;
  cursor: zoom-in;
}

.featuredProjectImage img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08) brightness(0.74);
  transform: scale(1.015);
  transition:
    filter 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featuredProjectImage:hover img {
  filter: saturate(1) contrast(1.12) brightness(0.9);
  transform: scale(1.045);
}

.featuredProjectCopy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.035);
}

.featuredProjectCopy span {
  color: var(--acid);
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.featuredProjectCopy h3 {
  margin: 22px 0 0;
  font-size: 46px;
  line-height: 1.02;
  font-weight: 520;
}

.featuredProjectCopy p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.featuredProjectCopy button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.referenceGrid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 42px;
}

.referenceProject {
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 18px;
}

.referenceCard {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.38 / 1;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  padding: 0;
  color: inherit;
  background: #090909;
  cursor: zoom-in;
}

.referenceCard::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% 48%, transparent 0, rgba(0, 0, 0, 0.05) 44%, rgba(0, 0, 0, 0.52) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 45%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.referenceCard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.08) brightness(0.76);
  transform: scale(1.018);
  transition:
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.referenceCard:hover img {
  filter: saturate(0.98) contrast(1.13) brightness(0.9);
  transform: scale(1.055);
}

.referenceCaption {
  display: flex;
  min-height: 58px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 2px;
}

.referenceCaption strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 560;
  line-height: 1.25;
}

.referenceCaption span {
  max-width: 52%;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.aigcSection {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 82% 8%, rgba(219, 255, 77, 0.06), transparent 30rem),
    radial-gradient(ellipse at 20% 42%, rgba(77, 247, 255, 0.055), transparent 34rem),
    #010101;
}

.aigcGrid {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  margin-top: 54px;
}

.workflowPanel {
  display: grid;
  gap: 1px;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.workflowStep {
  display: grid;
  align-content: end;
  gap: 18px;
  min-height: 170px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(77, 247, 255, 0.08), transparent 44%),
    rgba(5, 6, 8, 0.86);
}

.workflowStep span {
  color: var(--accent);
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.workflowStep strong {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 540;
}

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

.aigcCase {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  background: #090909;
  cursor: zoom-in;
}

.aigcCase img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08) brightness(0.74);
  transform: scale(1.02);
  transition:
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aigcCase:hover img {
  filter: saturate(1) contrast(1.12) brightness(0.9);
  transform: scale(1.055);
}

.aigcCase::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.82));
  pointer-events: none;
}

.aigcCase div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.aigcCase span {
  color: var(--acid);
  font-size: 12px;
}

.aigcCase strong {
  font-size: 24px;
  line-height: 1.15;
}

.projectModal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 42px;
  animation: modalRootIn 260ms ease both;
}

.projectModal[hidden] {
  display: none;
}

.modalBackdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: modalBackdropIn 260ms ease both;
}

.modalPanel {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: min(1500px, calc(100vw - 96px));
  max-height: calc(100vh - 84px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(8, 10, 12, 0.72);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.52);
  transform-origin: center;
  animation: modalPanelIn 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modalPanel img {
  width: 100%;
  max-height: calc(100vh - 178px);
  object-fit: contain;
  background: #050608;
  animation: modalImageIn 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modalClose {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.38);
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.modalCaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 24px;
  animation: modalCaptionIn 520ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.modalCaption span {
  color: var(--acid);
  font-size: 13px;
}

.modalCaption strong {
  font-size: 22px;
  font-weight: 560;
}

.projectModal.isClosing {
  animation: modalRootOut 260ms ease both;
}

.projectModal.isClosing .modalBackdrop {
  animation: modalBackdropOut 260ms ease both;
}

.projectModal.isClosing .modalPanel {
  animation: modalPanelOut 260ms ease both;
}

@keyframes modalRootIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalRootOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes modalBackdropIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}

@keyframes modalBackdropOut {
  from {
    opacity: 1;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  to {
    opacity: 0;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
  }
}

@keyframes modalPanelIn {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(24px) scale(0.92);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes modalPanelOut {
  from {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(16px) scale(0.96);
  }
}

@keyframes modalImageIn {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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


.strengthGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px;
}

.strengthCard {
  min-height: 300px;
  padding: 28px;
}

.iconWrap {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(184, 240, 255, 0.26);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(184, 240, 255, 0.08);
}

.iconWrap svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strengthCard h3 {
  margin: 52px 0 0;
  font-size: 26px;
}

.strengthCard p {
  margin: 18px 0 0;
}

.contactFinal {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.2), rgba(5, 6, 8, 0.92)),
    linear-gradient(120deg, rgba(184, 240, 255, 0.1), rgba(255, 122, 144, 0.05) 42%, rgba(216, 255, 97, 0.08));
}

.contactInner {
  padding: 120px 0;
}

.contactInner h2 {
  max-width: 1200px;
  margin-top: 22px;
  font-size: 80px;
}

.finalLinks {
  display: flex;
  gap: 16px;
  margin-top: 56px;
}

.finalLinks a {
  min-height: 58px;
  padding: 0 24px;
  font-size: 17px;
}

.contactInner p {
  margin-top: 80px;
}

@media (max-width: 1280px) {
  :root {
    --shell: min(1700px, calc(100vw - 48px));
  }

  body {
    min-width: 1024px;
  }

  .aboutGrid,
  .sectionHeader {
    gap: 46px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .featuredProjectImage img,
  .referenceCard img,
  .aigcCase img,
  .contactButton,
  .primaryAction,
  .ghostAction,
  .finalLinks a,
  .solidAction {
    transition: none;
  }
}

/* Hubfolio-inspired light editorial restyle */
:root {
  color: #111111;
  background: #f4f4ef;
  --line: rgba(17, 17, 17, 0.12);
  --soft: rgba(17, 17, 17, 0.66);
  --muted: rgba(17, 17, 17, 0.42);
  --panel: rgba(17, 17, 17, 0.045);
  --accent: #397ce3;
  --acid: #397ce3;
  --rose: #111111;
}

body {
  color: #111111;
  background:
    radial-gradient(circle at 42% 10%, rgba(57, 124, 227, 0.24), transparent 18rem),
    linear-gradient(180deg, #f7f7f1 0%, #eeeeea 48%, #f7f7f1 100%);
}

.hero {
  color: #111111;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(57, 124, 227, 0.26), transparent 20rem),
    #f7f7f1;
}

.heroVideo {
  opacity: 0.1;
  filter: grayscale(1) contrast(1.25) brightness(1.28);
  mix-blend-mode: multiply;
}

.heroOverlay {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(57, 124, 227, 0.16), transparent 28rem),
    linear-gradient(180deg, rgba(247, 247, 241, 0.86), rgba(247, 247, 241, 0.38) 48%, rgba(247, 247, 241, 0.94));
}

.heroFadeTop,
.heroFadeBottom {
  display: none;
}

.hero::before {
  position: absolute;
  right: -8vw;
  bottom: 16vh;
  left: -6vw;
  z-index: -1;
  height: 220px;
  content: "";
  border-radius: 50%;
  border-top: 18px solid rgba(57, 124, 227, 0.82);
  filter: blur(2px);
  transform: rotate(-7deg);
  pointer-events: none;
}

.hero::after {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at 50% 48%, #000 0, transparent 74%);
}

.nav {
  border-color: rgba(17, 17, 17, 0.1);
  background: rgba(248, 248, 242, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 18px 48px rgba(17, 17, 17, 0.12);
}

.nav::before {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.86), transparent 24%),
    radial-gradient(circle at 76% 120%, rgba(57, 124, 227, 0.24), transparent 34%);
}

.navLinks {
  border-color: rgba(17, 17, 17, 0.08);
  color: rgba(17, 17, 17, 0.62);
  background: rgba(17, 17, 17, 0.035);
}

.navLinks a:hover {
  color: #111111;
  background: rgba(57, 124, 227, 0.92);
}

.contactButton {
  border-color: transparent;
  color: #111111;
  background: #397ce3;
  box-shadow: 0 10px 28px rgba(57, 124, 227, 0.28);
}

.brand span {
  color: rgba(17, 17, 17, 0.48);
}

.heroKicker,
.sectionLabel {
  color: #111111;
}

.hero h1 {
  font-family: Barlow, Inter, "Microsoft YaHei", sans-serif;
  font-size: clamp(120px, 14vw, 250px);
  font-weight: 400;
  line-height: 0.78;
  text-transform: lowercase;
}

.hero h1 span {
  color: #111111;
  font-family: Barlow, Inter, sans-serif;
  font-size: clamp(30px, 3.2vw, 54px);
  font-style: normal;
  font-weight: 300;
  line-height: 1.02;
}

.hero p {
  color: rgba(17, 17, 17, 0.64);
}

.primaryAction,
.liquidGlassStrong {
  color: #111111;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 26px rgba(17, 17, 17, 0.08);
}

.solidAction {
  color: #111111;
  background: #397ce3;
}

.heroMiniFooter {
  border-top-color: rgba(17, 17, 17, 0.12);
  color: rgba(17, 17, 17, 0.48);
}

.heroMiniFooter a:hover {
  color: #111111;
}

.section {
  background: #f7f7f1;
}

.about,
.strengths {
  color: #111111;
}

.portraitPanel,
.statCard,
.strengthCard {
  border-color: rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 20px 60px rgba(17, 17, 17, 0.06);
}

.portraitPanel {
  border-radius: 22px;
}

.portraitGlass {
  border-color: rgba(17, 17, 17, 0.12);
  color: #111111;
  background: rgba(247, 247, 241, 0.72);
}

.portraitGlass span,
.aboutCopy p,
.sectionHeader p,
.strengthCard p,
.projectInfo p,
.contactInner p {
  color: rgba(17, 17, 17, 0.62);
}

.aboutCopy h2,
.sectionHeader h2,
.contactInner h2 {
  color: #111111;
  font-family: Barlow, Inter, "Microsoft YaHei", sans-serif;
  font-style: normal;
  font-weight: 500;
}

.contactList a,
.contactList span {
  border-color: rgba(17, 17, 17, 0.1);
  color: rgba(17, 17, 17, 0.72);
  background: rgba(255, 255, 255, 0.66);
}

.statCard strong {
  color: #111111;
}

.statCard span {
  color: rgba(17, 17, 17, 0.5);
}

.iconWrap {
  border-color: rgba(17, 17, 17, 0.12);
  color: #111111;
  background: #397ce3;
}

.projectUniverse,
.aigcSection {
  color: #111111;
  background:
    radial-gradient(ellipse at 18% 10%, rgba(57, 124, 227, 0.2), transparent 28rem),
    #f7f7f1;
  border-radius: 34px 34px 0 0;
}

.projectUniverse::after {
  background:
    linear-gradient(180deg, rgba(247, 247, 241, 0.08), rgba(247, 247, 241, 0.84)),
    radial-gradient(ellipse at 70% 36%, rgba(57, 124, 227, 0.13), transparent 26rem);
}

.worksPreviewGrid {
  background:
    linear-gradient(rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px);
}

.universeIntro h2 {
  color: #111111;
  font-family: Barlow, Inter, "Microsoft YaHei", sans-serif;
  font-size: clamp(76px, 9vw, 148px);
  font-style: normal;
  font-weight: 500;
  text-shadow: none;
}

.universeIntro p {
  color: rgba(17, 17, 17, 0.62);
}

.featuredProject {
  border-top-color: rgba(17, 17, 17, 0.12);
}

.featuredProjectImage,
.referenceCard,
.aigcCase {
  border-radius: 18px;
  background: #e9e9e3;
  box-shadow: 0 20px 70px rgba(17, 17, 17, 0.08);
}

.featuredProjectImage img,
.referenceCard img,
.aigcCase img {
  filter: saturate(0.95) contrast(1.02) brightness(0.98);
}

.featuredProjectImage:hover img,
.referenceCard:hover img,
.aigcCase:hover img {
  filter: saturate(1.08) contrast(1.04) brightness(1.02);
}

.featuredProjectCopy {
  border-color: rgba(17, 17, 17, 0.1);
  background: #efefea;
  border-radius: 18px;
}

.featuredProjectCopy span,
.referenceCaption span,
.aigcCase span,
.workflowStep span {
  color: #397ce3;
}

.featuredProjectCopy h3,
.referenceCaption strong,
.aigcCase strong,
.workflowStep strong {
  color: #111111;
}

.featuredProjectCopy p {
  color: rgba(17, 17, 17, 0.62);
}

.featuredProjectCopy button {
  border-color: transparent;
  color: #111111;
  background: #397ce3;
}

.referenceProject {
  border-top-color: rgba(17, 17, 17, 0.12);
}

.referenceCard::after {
  border-color: rgba(17, 17, 17, 0.08);
  background: linear-gradient(180deg, transparent 44%, rgba(247, 247, 241, 0.42));
}

.workflowPanel {
  border-color: rgba(17, 17, 17, 0.1);
  background: rgba(17, 17, 17, 0.1);
}

.workflowStep {
  background:
    linear-gradient(135deg, rgba(57, 124, 227, 0.18), transparent 44%),
    #efefea;
}

.aigcCase::after {
  background: linear-gradient(180deg, transparent 28%, rgba(247, 247, 241, 0.92));
}

.contactFinal {
  color: #111111;
  background:
    radial-gradient(ellipse at 20% 24%, rgba(57, 124, 227, 0.2), transparent 26rem),
    #efefea;
  border-radius: 34px 34px 0 0;
}

.finalLinks a {
  border-color: rgba(17, 17, 17, 0.12);
  color: #111111;
  background: rgba(255, 255, 255, 0.58);
}

.finalLinks a:hover {
  border-color: transparent;
  background: #397ce3;
}

.projectModal {
  color: #111111;
}

.modalBackdrop {
  background: rgba(247, 247, 241, 0.78);
}

.modalPanel {
  border-color: rgba(17, 17, 17, 0.12);
  background: rgba(247, 247, 241, 0.88);
  box-shadow: 0 30px 100px rgba(17, 17, 17, 0.22);
}

.modalPanel img {
  background: #efefea;
}

.modalClose {
  border-color: rgba(17, 17, 17, 0.12);
  color: #111111;
  background: rgba(255, 255, 255, 0.64);
}

.modalCaption span {
  color: #397ce3;
}

.modalCaption strong {
  color: #111111;
}

.contactPageBody {
  min-width: 1180px;
  color: #111111;
  background:
    radial-gradient(circle at 74% 18%, rgba(57, 124, 227, 0.26), transparent 20rem),
    linear-gradient(180deg, #f7f7f1, #eeeeea);
}

.contactPage {
  min-height: 100vh;
  overflow: hidden;
}

.contactPage::before {
  position: fixed;
  right: -10vw;
  bottom: 12vh;
  left: -8vw;
  height: 240px;
  content: "";
  border-top: 18px solid rgba(57, 124, 227, 0.82);
  border-radius: 50%;
  filter: blur(2px);
  transform: rotate(-8deg);
  pointer-events: none;
}

.contactPageHero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.42fr);
  gap: 58px;
  align-items: center;
  padding: 150px 0 80px;
}

.contactPageCopy h1 {
  margin: 20px 0 0;
  font-size: clamp(72px, 8vw, 138px);
  line-height: 0.9;
  font-weight: 500;
}

.contactPageCopy p {
  max-width: 650px;
  margin: 34px 0 0;
  color: rgba(17, 17, 17, 0.62);
  font-size: 20px;
}

.contactMethodGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 58px;
}

.contactMethodGrid a,
.contactMethodGrid div {
  display: grid;
  gap: 16px;
  min-height: 150px;
  align-content: end;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 20px 60px rgba(17, 17, 17, 0.06);
}

.contactMethodGrid span,
.qrPanel span {
  color: #397ce3;
  font-size: 12px;
  text-transform: uppercase;
}

.contactMethodGrid strong {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 520;
}

.qrPanel {
  display: grid;
  gap: 24px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.1);
}

.qrPanel img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: cover;
  background: #fff;
}

.qrPanel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.qrPanel strong {
  font-size: 24px;
}

/* Dark portfolio restyle */
:root {
  color: #f7f7f2;
  background: #050608;
  --line: rgba(255, 255, 255, 0.14);
  --soft: rgba(255, 255, 255, 0.72);
  --muted: rgba(255, 255, 255, 0.48);
  --panel: rgba(255, 255, 255, 0.075);
  --accent: #9feaff;
  --acid: #397ce3;
  --dark-bg: #050608;
  --dark-card: #101215;
  --dark-card-2: #171a1f;
}

body {
  color: #f7f7f2;
  background:
    radial-gradient(circle at 18% 12%, rgba(57, 124, 227, 0.14), transparent 26rem),
    radial-gradient(circle at 78% 18%, rgba(159, 234, 255, 0.12), transparent 25rem),
    linear-gradient(180deg, #050608 0%, #0a0c0f 48%, #050608 100%);
}

.hero {
  background: #050608;
}

.heroVideo {
  opacity: 0.72;
  filter: saturate(0.85) contrast(1.18) brightness(0.42);
}

.heroOverlay {
  background:
    radial-gradient(circle at 54% 38%, rgba(57, 124, 227, 0.1), transparent 28rem),
    linear-gradient(180deg, rgba(5, 6, 8, 0.72), rgba(5, 6, 8, 0.4) 42%, rgba(5, 6, 8, 0.92));
}

.hero::before {
  opacity: 0.24;
  border-top-color: rgba(57, 124, 227, 0.82);
  mix-blend-mode: screen;
}

.hero::after {
  opacity: 0.58;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

.nav {
  border-color: rgba(255, 255, 255, 0.18);
  color: #f7f7f2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045) 44%, rgba(57, 124, 227, 0.08)),
    rgba(7, 9, 11, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 22px 70px rgba(0, 0, 0, 0.46);
}

.nav::before {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.34), transparent 24%),
    radial-gradient(circle at 76% 120%, rgba(57, 124, 227, 0.18), transparent 34%);
}

.brand span {
  color: rgba(255, 255, 255, 0.5);
}

.navLinks {
  border-color: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.045);
}

.navLinks a:hover {
  color: #050608;
  background: #397ce3;
}

.contactButton,
.solidAction,
.featuredProjectCopy button {
  border-color: transparent;
  color: #050608;
  background: #397ce3;
  box-shadow: 0 14px 34px rgba(57, 124, 227, 0.22);
}

.heroKicker,
.sectionLabel {
  color: rgba(57, 124, 227, 0.92);
}

.hero h1,
.hero h1 span,
.aboutCopy h2,
.sectionHeader h2,
.universeIntro h2,
.contactInner h2 {
  color: #f7f7f2;
}

.hero p,
.heroMiniFooter,
.aboutCopy p,
.sectionHeader p,
.strengthCard p,
.projectInfo p,
.featuredProjectCopy p,
.universeIntro p,
.contactInner p {
  color: rgba(255, 255, 255, 0.62);
}

.primaryAction,
.liquidGlassStrong,
.finalLinks a {
  border-color: rgba(255, 255, 255, 0.14);
  color: #f7f7f2;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 38px rgba(0, 0, 0, 0.22);
}

.primaryAction:hover,
.liquidGlassStrong:hover,
.finalLinks a:hover {
  border-color: transparent;
  color: #050608;
  background: #397ce3;
}

.section,
.about,
.strengths {
  color: #f7f7f2;
  background: #050608;
}

.portraitPanel,
.statCard,
.strengthCard,
.featuredProjectCopy,
.workflowPanel,
.qrPanel,
.contactMethodGrid a,
.contactMethodGrid div {
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    #101215;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.portraitGlass,
.contactList a,
.contactList span {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(5, 6, 8, 0.58);
}

.profileName,
.statCard strong,
.strengthCard h3,
.featuredProjectCopy h3,
.referenceCaption strong,
.aigcCase strong,
.workflowStep strong,
.contactMethodGrid strong,
.qrPanel strong {
  color: #f7f7f2;
}

.statCard span,
.portraitGlass span,
.contactMethodGrid span,
.qrPanel span,
.featuredProjectCopy span,
.referenceCaption span,
.aigcCase span,
.workflowStep span,
.modalCaption span {
  color: #397ce3;
}

.iconWrap {
  border-color: rgba(57, 124, 227, 0.32);
  color: #050608;
  background: #397ce3;
}

.projectUniverse,
.aigcSection,
.contactFinal {
  color: #f7f7f2;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(57, 124, 227, 0.16), transparent 28rem),
    radial-gradient(ellipse at 78% 38%, rgba(159, 234, 255, 0.08), transparent 26rem),
    #050608;
}

.projectUniverse::after {
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.08), rgba(5, 6, 8, 0.88)),
    radial-gradient(ellipse at 70% 36%, rgba(57, 124, 227, 0.1), transparent 26rem);
}

.worksPreviewGrid {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

.featuredProject,
.referenceProject {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.featuredProjectImage,
.referenceCard,
.aigcCase,
.workflowStep {
  background: #111418;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.featuredProjectImage img,
.referenceCard img,
.aigcCase img {
  filter: saturate(0.88) contrast(1.08) brightness(0.86);
}

.featuredProjectImage:hover img,
.referenceCard:hover img,
.aigcCase:hover img {
  filter: saturate(1.04) contrast(1.12) brightness(0.96);
}

.referenceCard::after,
.aigcCase::after {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, transparent 38%, rgba(5, 6, 8, 0.9));
}

.workflowStep {
  background:
    linear-gradient(135deg, rgba(57, 124, 227, 0.12), transparent 42%),
    #111418;
}

.modalBackdrop {
  background: rgba(0, 0, 0, 0.76);
}

.projectModal {
  color: #f7f7f2;
}

.modalPanel {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(12, 14, 17, 0.92);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62);
}

.modalPanel img {
  background: #050608;
}

.modalClose {
  border-color: rgba(255, 255, 255, 0.14);
  color: #f7f7f2;
  background: rgba(255, 255, 255, 0.08);
}

.modalCaption strong {
  color: #f7f7f2;
}

.contactPageBody {
  color: #f7f7f2;
  background:
    radial-gradient(circle at 74% 18%, rgba(57, 124, 227, 0.16), transparent 22rem),
    radial-gradient(circle at 20% 72%, rgba(159, 234, 255, 0.1), transparent 24rem),
    linear-gradient(180deg, #050608, #0b0d10);
}

.contactPage::before {
  border-top-color: rgba(57, 124, 227, 0.56);
  opacity: 0.44;
}

.contactPageCopy p {
  color: rgba(255, 255, 255, 0.62);
}

.qrPanel img {
  background: #fff;
}

/* Reference-inspired first screen */
.nav {
  top: 34px;
  width: min(900px, calc(100vw - 96px));
  height: 62px;
  padding: 0 9px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.055) 44%, rgba(255, 255, 255, 0.13)),
    rgba(8, 9, 14, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -24px 48px rgba(255, 255, 255, 0.035),
    0 22px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(28px) saturate(1.55) contrast(1.06);
  -webkit-backdrop-filter: blur(28px) saturate(1.55) contrast(1.06);
}

.nav::before {
  display: block;
  position: absolute;
  inset: 1px;
  z-index: 0;
  content: "";
  border-radius: inherit;
  background:
    radial-gradient(circle at 9% 0%, rgba(255, 255, 255, 0.44), transparent 24%),
    radial-gradient(circle at 80% 118%, rgba(57, 124, 227, 0.18), transparent 34%),
    linear-gradient(100deg, rgba(255, 255, 255, 0.12), transparent 36%, rgba(255, 255, 255, 0.13) 78%, transparent);
  opacity: 0.82;
  pointer-events: none;
}

.nav::after {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  border-radius: inherit;
  background-image:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.16) 42%, transparent 58%),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 180% 100%, 100% 9px;
  background-position: 28% 0, 0 0;
  opacity: 0.36;
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 15px;
  font-weight: 650;
}

.brand span {
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
}

.navLinks {
  position: relative;
  z-index: 1;
  margin-left: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.navLinks a {
  padding: 8px 12px;
  border-radius: 999px;
}

.navLinks a:hover {
  color: #050608;
  background: #397ce3;
}

.contactButton {
  position: relative;
  z-index: 1;
  min-height: 44px;
  margin-left: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0 18px;
  color: #050608;
  background: #397ce3;
  box-shadow: 0 14px 34px rgba(57, 124, 227, 0.22);
  font-size: 14px;
  font-weight: 650;
}

.contactButton:hover {
  color: #050608;
  background: #5f9bff;
  transform: translateY(-2px);
}

.homeHero {
  min-height: 100vh;
  margin: 28px;
  border-radius: 2px;
  background: #010103;
}

.homeHero .heroVideo {
  opacity: 0.16;
  filter: saturate(0.85) contrast(1.15) brightness(0.34);
}

.homeHero .heroOverlay {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(238, 244, 255, 0.96) 0%, rgba(143, 185, 245, 0.84) 14%, rgba(57, 124, 227, 0.72) 30%, rgba(35, 92, 190, 0.58) 48%, rgba(2, 12, 45, 0.8) 68%, #01030a 100%),
    linear-gradient(180deg, rgba(1, 1, 3, 0.96), rgba(1, 8, 35, 0.62) 46%, rgba(186, 210, 255, 0.16));
}

.homeHero .heroFadeTop {
  background: linear-gradient(to bottom, #010103, transparent);
}

.homeHero .heroFadeBottom {
  height: 42vh;
  background: linear-gradient(to top, rgba(238, 244, 255, 0.98), rgba(105, 156, 235, 0.28) 38%, transparent 78%);
}

.homeHero::before {
  display: none;
}

.homeHero::after {
  opacity: 0.12;
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, transparent 72%);
}

.homeHero .heroContent {
  position: relative;
  display: block;
  min-height: calc(100vh - 56px);
  padding: 170px 0 56px;
  text-align: left;
}

.homeHero .heroMain {
  position: absolute;
  top: 23%;
  left: 0;
  max-width: 620px;
}

.homeHero .heroKicker {
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  letter-spacing: 0;
}

.homeHero .heroKicker svg {
  color: #397ce3;
}

.homeHero .heroStatement {
  position: absolute;
  top: 22%;
  right: 4%;
  width: 310px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 18px;
  line-height: 1.12;
  text-align: right;
}

.homeHero h1 {
  max-width: 560px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(92px, 8vw, 150px);
  font-weight: 500;
  line-height: 0.96;
  text-transform: none;
  letter-spacing: 0;
}

.homeHero h1 span {
  display: block;
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: inherit;
  font-style: normal;
  font-weight: 500;
  line-height: inherit;
  text-transform: none;
}

.homeHero .heroActions {
  position: absolute;
  bottom: 72px;
  left: 0;
  z-index: 2;
  margin: 0;
}

.homeHero .primaryAction {
  min-height: auto;
  border: 0;
  padding: 0;
  color: #09090b;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  font-weight: 600;
}

.homeHero .primaryAction::before {
  display: none;
}

.homeHero .primaryAction:hover {
  color: #2c1eb4;
  background: transparent;
  transform: translateX(4px);
}

.heroThumbs {
  position: absolute;
  left: 50%;
  bottom: 58px;
  z-index: 2;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.heroThumb {
  display: block;
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.heroThumb:hover {
  transform: translateY(-6px);
  filter: brightness(1.08);
}

.heroThumbs img {
  width: 168px;
  height: 92px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  object-fit: cover;
  background: #08090c;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.heroScrollCue {
  position: absolute;
  right: 0;
  bottom: 54px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  color: #111114;
  font-size: 18px;
  font-weight: 600;
}

.heroScrollCue svg,
.heroScrollCue span:last-child {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(17, 17, 20, 0.48);
  border-radius: 50%;
  color: #111114;
}

.heroScrollCue svg {
  padding: 16px;
  transform: rotate(90deg);
}

.homeHero .heroMiniFooter {
  display: none;
}

.homeHero + .section {
  margin-top: -28px;
}

@media (max-width: 1280px) {
  .homeHero .heroStatement {
    right: 0;
  }

  .heroThumbs img {
    width: 140px;
    height: 78px;
  }
}

/* Rich project modal */
.modalPanel {
  width: min(1380px, calc(100vw - 96px));
  max-height: calc(100vh - 80px);
  overflow: auto;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: start;
}

.modalMedia {
  position: sticky;
  top: 0;
  grid-row: span 2;
  height: min(74vh, 760px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 100%, rgba(57, 124, 227, 0.16), transparent 36%),
    #050608;
}

.modalPanel .modalHeroImage {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: transparent;
}

.modalPanel .modalHeroImage.isChanging {
  animation: modalSlideImageIn 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modalArrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  background: rgba(7, 9, 12, 0.5);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.modalArrow:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(57, 124, 227, 0.78);
  transform: translateY(-50%) scale(1.05);
}

.modalArrowPrev { left: 22px; }
.modalArrowNext { right: 22px; }

.modalCounter {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  background: rgba(7, 9, 12, 0.54);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modalCaption {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 34px 34px 22px;
}

.modalCaption span {
  color: #397ce3;
  font-size: 13px;
  line-height: 1.35;
}

.modalCaption strong {
  color: #f7f7f2;
  font-size: clamp(28px, 2.4vw, 46px);
  line-height: 1.02;
  font-weight: 560;
}

.modalCaption p {
  max-width: 520px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  line-height: 1.7;
}

.modalGallery {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 34px 34px;
}

.modalGallery img {
  width: 100%;
  height: 168px;
  max-height: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  object-fit: cover;
  background: #0d1013;
  animation: modalImageIn 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modalGallery img:first-child {
  grid-column: 1 / -1;
  height: 210px;
}

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

  .modalMedia,
  .modalPanel .modalHeroImage {
    grid-row: auto;
    height: 58vh;
  }

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

  .modalGallery img,
  .modalGallery img:first-child {
    grid-column: auto;
    height: 140px;
  }
}

@keyframes modalSlideImageIn {
  from {
    opacity: 0.35;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero layout refinement */
.homeHero {
  margin: 24px;
}

.homeHero .heroContent {
  display: grid;
  min-height: calc(100vh - 48px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  grid-template-rows: 1fr auto;
  column-gap: clamp(72px, 9vw, 180px);
  align-items: center;
  padding: 130px 0 46px;
}

.homeHero .heroMain {
  position: static;
  align-self: center;
  max-width: 720px;
  padding-top: 18px;
}

.homeHero .heroKicker {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.homeHero h1 {
  max-width: 720px;
  font-size: clamp(106px, 9vw, 172px);
  line-height: 0.88;
}

.homeHero h1 span {
  color: rgba(255, 255, 255, 0.42);
}

.homeHero .heroStatement {
  position: static;
  align-self: center;
  justify-self: end;
  width: min(380px, 100%);
  margin-top: 58px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 21px;
  line-height: 1.28;
  text-align: right;
}

.homeHero .heroActions {
  position: static;
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  margin: 0;
}

.homeHero .primaryAction {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid rgba(8, 18, 40, 0.18);
  border-radius: 999px;
  padding: 0 22px;
  color: #061024;
  background: rgba(238, 244, 255, 0.82);
  box-shadow: 0 18px 44px rgba(2, 12, 45, 0.16);
}

.homeHero .primaryAction:hover {
  color: #ffffff;
  background: #397ce3;
  transform: translateY(-2px);
}

.heroThumbs {
  position: static;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  align-self: end;
  transform: none;
  gap: 14px;
}

.heroThumbs img {
  width: clamp(150px, 10.5vw, 190px);
  height: clamp(82px, 5.8vw, 104px);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 50px rgba(2, 12, 45, 0.26);
}

.heroScrollCue {
  position: static;
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: end;
  color: #061024;
}

.heroScrollCue svg,
.heroScrollCue span:last-child {
  border-color: rgba(6, 16, 36, 0.42);
  color: #061024;
}

/* Final stable hero layout */
.homeHero {
  min-height: calc(100vh - 48px);
  margin: 24px;
  overflow: hidden;
  border-radius: 6px;
}

.homeHero .heroContent {
  position: relative;
  display: block;
  width: min(1700px, calc(100vw - 120px));
  min-height: calc(100vh - 48px);
  padding: 0;
}

.homeHero .heroMain {
  position: absolute;
  top: 24%;
  left: 0;
  width: min(720px, 52vw);
  max-width: none;
  padding: 0;
}

.homeHero .heroKicker {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.2;
}

.homeHero h1 {
  width: min-content;
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(112px, 9vw, 176px);
  line-height: 0.86;
  font-weight: 520;
  letter-spacing: 0;
  white-space: nowrap;
}

.homeHero h1 span {
  display: block;
  color: rgba(255, 255, 255, 0.44);
}

.homeHero .heroStatement {
  position: absolute;
  top: 28%;
  right: 0;
  width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 20px;
  line-height: 1.35;
  text-align: right;
}

.homeHero .heroActions {
  position: absolute;
  bottom: 160px;
  left: 0;
  z-index: 3;
  display: flex;
  margin: 0;
}

.homeHero .primaryAction {
  min-height: 52px;
  border: 1px solid rgba(6, 16, 36, 0.18);
  border-radius: 999px;
  padding: 0 24px;
  color: #061024;
  background: rgba(238, 244, 255, 0.86);
  box-shadow: 0 18px 44px rgba(2, 12, 45, 0.16);
}

.heroThumbs {
  position: absolute;
  bottom: 44px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 14px;
  transform: translateX(-50%);
}

.heroThumbs img {
  width: 178px;
  height: 96px;
}

.heroScrollCue {
  position: absolute;
  right: 0;
  bottom: 58px;
  z-index: 3;
  color: #061024;
}

.heroScrollCue span:last-child {
  border-color: rgba(6, 16, 36, 0.42);
  color: #061024;
}

@media (max-width: 1280px) {
  .homeHero .heroContent {
    width: min(1700px, calc(100vw - 96px));
  }

  .homeHero h1 {
    font-size: clamp(96px, 8.5vw, 136px);
  }

  .homeHero .heroStatement {
    width: 320px;
  }

  .heroThumbs img {
    width: 140px;
    height: 78px;
  }
}

/* 3D portfolio marquee hero */
.homeHero .heroVideo {
  opacity: 0.07;
}

.marqueeStage {
  position: absolute;
  inset: -28% -13% -22%;
  z-index: 0;
  overflow: hidden;
  perspective: 1500px;
  pointer-events: none;
  opacity: 0.78;
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
}

.marqueeGrid {
  display: flex;
  width: 122%;
  height: 132%;
  gap: 16px;
  transform: rotateX(55deg) rotateZ(-24deg) scale(1.12);
  transform-style: preserve-3d;
}

.marqueeColumn {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  animation: marqueeUp 26s linear infinite;
  animation-delay: var(--column-delay);
  will-change: transform;
}

.marqueeColumn:nth-child(even) {
  animation-direction: reverse;
  margin-top: 96px;
}

.marqueeCard {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1.12 / 0.82;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  padding: 0;
  background: #101622;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  cursor: zoom-in;
  pointer-events: auto;
}

.marqueeCard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.08) brightness(0.62);
  transform: scale(1.03);
  transition: filter 320ms ease, transform 320ms ease;
}

.marqueeCard:hover img {
  filter: saturate(1) contrast(1.08) brightness(0.88);
  transform: scale(1.08);
}

.homeHero .heroContent {
  z-index: 5;
}

@keyframes marqueeUp {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marqueeColumn { animation: none; }
}

@media (max-width: 900px) {
  .marqueeStage {
    inset: -18% -42% -8%;
    opacity: 0.5;
  }

  .marqueeGrid {
    width: 145%;
    gap: 10px;
    transform: rotateX(56deg) rotateZ(-20deg) scale(1.08);
  }

  .marqueeColumn { gap: 10px; }
  .marqueeColumn:nth-child(even) { margin-top: 54px; }
  .homeHero .heroVideo { opacity: 0.04; }
}

/* Project card captions inside images */
.referenceProject {
  position: relative;
  border-top: 0;
  padding-top: 0;
}

.referenceCard::after {
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 28%, rgba(0, 0, 0, 0.9) 68%, #000 92%, #000 100%),
    radial-gradient(ellipse at 50% 30%, transparent 0, rgba(0, 0, 0, 0.18) 62%, rgba(0, 0, 0, 0.68) 100%);
}

.referenceCaption {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: auto;
  z-index: 2;
  display: grid;
  width: max-content;
  max-width: none;
  min-width: 0;
  min-height: 0;
  gap: 6px;
  padding: 0;
  overflow: visible;
  pointer-events: none;
}

.referenceCaption strong {
  color: #fff;
  font-size: 19px;
  line-height: 1.15;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.58);
  overflow: visible;
  white-space: nowrap;
}

.referenceCaption span {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(9px, 0.64vw, 12px);
  line-height: 1.2;
  display: block;
  overflow: visible;
  white-space: nowrap;
}

/* Remove bright seams at the bottom of project cards */
.referenceCard {
  background: #000;
}

.referenceCard img {
  height: calc(100% + 4px);
  margin-bottom: -4px;
}

.referenceCard::after {
  inset: 0 0 -3px 0;
  z-index: 1;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.22) 28%,
    rgba(0, 0, 0, 0.12) 58%,
    rgba(0, 0, 0, 0) 82%
  );
}

.referenceCaption {
  z-index: 5;
}
