:root {
  color: #eef6f3;
  background: #020303;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  --shell: min(1700px, calc(100vw - 96px));
  --line: rgba(255, 255, 255, 0.12);
  --muted: rgba(238, 246, 243, 0.66);
  --soft: rgba(238, 246, 243, 0.42);
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --accent: #38f4d7;
  --hero-blue: #5b9dff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1180px;
  overflow-x: hidden;
  background: #020303;
}

@media (pointer: fine) {
  body,
  body * {
    cursor: none;
  }

  .custom-cursor {
    position: fixed;
    z-index: 9999;
    left: var(--cursor-x, -80px);
    top: var(--cursor-y, -80px);
    width: 42px;
    height: 58px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-7px, -5px, 0) rotate(-8deg) scale(1);
    transform-origin: 8px 8px;
    transition:
      opacity 0.2s ease,
      transform 0.18s ease,
      filter 0.18s ease;
    filter:
      drop-shadow(0 0 1px rgba(0, 0, 0, 0.9))
      drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  }

  .cursor-ready .custom-cursor {
    opacity: 1;
  }

  .custom-cursor svg {
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .custom-cursor path {
    fill: rgba(3, 4, 4, 0.88);
    stroke: rgba(255, 255, 255, 0.96);
    stroke-width: 3.6;
    stroke-linejoin: round;
  }

  body:has(a:hover) .custom-cursor,
  body:has(button:hover) .custom-cursor,
  .cursor-active .custom-cursor {
    transform: translate3d(-7px, -5px, 0) rotate(-8deg) scale(1.18);
    filter:
      drop-shadow(0 0 2px rgba(255, 255, 255, 0.48))
      drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5));
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
}

.type-char {
  display: inline-block;
  color: inherit;
  font: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  opacity: 0;
  transform: translate3d(0, 0.72em, 0);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}

.typewriter-active .type-char {
  animation: typewriter-in 0.46s cubic-bezier(0.2, 0.9, 0.22, 1) forwards;
}

@keyframes typewriter-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 0.72em, 0);
    filter: blur(8px);
  }

  72% {
    opacity: 1;
    transform: translate3d(0, -0.04em, 0);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .type-char {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .typewriter-active .type-char {
    animation: none;
  }

}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  background: #020024;
  perspective: 1200px;
  perspective-origin: 55% 40%;
}

.hero-video,
.hero-shade,
.hero-light-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  z-index: -3;
  opacity: 0.025;
  filter: grayscale(1) saturate(0.15) contrast(1.1);
}

.hero-shade {
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(ellipse 82% 78% at 43% -12%, rgba(29, 88, 255, 0.92) 0 22%, rgba(70, 34, 255, 0.74) 39%, rgba(118, 70, 255, 0.28) 55%, transparent 72%),
    radial-gradient(ellipse 62% 58% at 96% 16%, rgba(3, 3, 58, 0.98) 0 54%, transparent 72%),
    radial-gradient(ellipse 74% 48% at -9% 86%, rgba(24, 79, 255, 0.82) 0 28%, rgba(0, 156, 255, 0.3) 45%, transparent 68%),
    radial-gradient(ellipse 54% 48% at 59% 91%, rgba(39, 99, 255, 0.86) 0 30%, rgba(143, 46, 255, 0.45) 52%, transparent 74%),
    radial-gradient(ellipse 36% 22% at 71% 55%, rgba(208, 183, 255, 0.42), transparent 64%),
    linear-gradient(135deg, #030024 0%, #06105b 42%, #08002f 70%, #010014 100%);
  filter: saturate(1.26) contrast(1.04);
  animation: liquid-field-drift 14s ease-in-out infinite alternate;
}

.hero-light-flow {
  z-index: -1;
  overflow: hidden;
  opacity: 1;
  mix-blend-mode: screen;
  animation: liquid-layer-drift 16s ease-in-out infinite alternate;
}

.hero-light-flow::before,
.hero-light-flow::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-light-flow::before {
  left: -30vw;
  top: -24vh;
  width: 86vw;
  height: 108vh;
  border: 1px solid rgba(198, 225, 255, 0.2);
  border-radius: 0 0 66% 34% / 0 0 72% 48%;
  background:
    radial-gradient(ellipse at 88% 50%, rgba(236, 248, 255, 0.34), transparent 12%),
    radial-gradient(ellipse at 72% 50%, rgba(118, 190, 255, 0.36), transparent 28%),
    linear-gradient(133deg, rgba(0, 0, 0, 0) 0 18%, rgba(33, 88, 255, 0.64) 34%, rgba(116, 67, 255, 0.74) 48%, rgba(188, 135, 255, 0.24) 60%, transparent 78%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 18px -10px 44px rgba(255, 255, 255, 0.14),
    inset 32px -14px 90px rgba(155, 109, 255, 0.24),
    inset -34px 20px 120px rgba(34, 186, 255, 0.18),
    -8px 10px 0 -7px rgba(255, 255, 255, 0.34),
    12px -10px 0 -11px rgba(142, 225, 255, 0.36),
    0 0 120px rgba(55, 96, 255, 0.34);
  filter: saturate(1.22) contrast(1.04);
  transform: rotate(-6deg) translate3d(0, 0, 0);
  transform-origin: 72% 52%;
  animation: liquid-ribbon-one 14s ease-in-out infinite alternate;
}

.hero-light-flow::after {
  right: -24vw;
  bottom: -30vh;
  width: 92vw;
  height: 92vh;
  border: 1px solid rgba(199, 226, 255, 0.22);
  border-radius: 64% 36% 0 0 / 52% 48% 0 0;
  background:
    radial-gradient(ellipse at 18% 19%, rgba(255, 255, 255, 0.38), transparent 13%),
    radial-gradient(ellipse at 24% 31%, rgba(175, 160, 255, 0.5), transparent 30%),
    linear-gradient(145deg, transparent 0 13%, rgba(48, 115, 255, 0.7) 34%, rgba(7, 117, 255, 0.55) 52%, rgba(146, 50, 255, 0.44) 75%, transparent 92%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 22px 0 42px rgba(255, 255, 255, 0.12),
    inset -38px 0 90px rgba(70, 70, 255, 0.28),
    inset 32px 0 100px rgba(0, 217, 255, 0.16),
    -10px -8px 0 -9px rgba(255, 255, 255, 0.36),
    12px 10px 0 -10px rgba(141, 222, 255, 0.34),
    0 0 136px rgba(56, 116, 255, 0.32);
  filter: saturate(1.2) contrast(1.04);
  opacity: 0.98;
  transform: rotate(-4deg) translate3d(0, 0, 0);
  transform-origin: 30% 22%;
  animation: liquid-ribbon-two 14s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 1;
  background:
    radial-gradient(ellipse 38% 42% at 72% 18%, rgba(0, 0, 0, 0.86) 0 42%, transparent 66%),
    radial-gradient(ellipse 44% 38% at 22% 56%, rgba(0, 0, 0, 0.76) 0 34%, transparent 64%),
    radial-gradient(ellipse at 49% 51%, transparent 0 26%, rgba(0, 0, 0, 0.18) 46%, rgba(0, 0, 0, 0.8) 88%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.74));
}

.hero::after {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(102deg, transparent 0 34%, rgba(255, 255, 255, 0.34) 41%, transparent 50%),
    linear-gradient(24deg, transparent 0 41%, rgba(162, 222, 255, 0.2) 49%, transparent 62%),
    radial-gradient(ellipse at 58% 48%, rgba(255, 255, 255, 0.24), transparent 20%);
  filter: saturate(1.08);
  mix-blend-mode: screen;
  opacity: 0.76;
  animation: liquid-highlight-sweep 10s ease-in-out infinite alternate;
}

@keyframes liquid-field-drift {
  0% {
    background-position: 0% 0%;
    transform: scale(1);
  }

  100% {
    background-position: 7% 5%;
    transform: scale(1.018);
  }
}

@keyframes liquid-layer-drift {
  0% {
    transform: translate3d(-1%, -0.5%, 0) scale(1);
  }

  100% {
    transform: translate3d(1.2%, 0.8%, 0) scale(1.02);
  }
}

@keyframes liquid-ribbon-one {
  0% {
    opacity: 0.72;
    transform: rotate(-8deg) translate3d(-1.8%, -1%, 0) scale(0.98);
    border-radius: 0 0 66% 34% / 0 0 72% 48%;
  }

  50% {
    opacity: 0.94;
    transform: rotate(-3deg) translate3d(0.8%, 1.3%, 0) scale(1.035);
    border-radius: 0 0 55% 45% / 0 0 62% 58%;
  }

  100% {
    opacity: 0.82;
    transform: rotate(-6deg) translate3d(2%, -0.4%, 0) scale(1.015);
    border-radius: 0 0 72% 28% / 0 0 78% 42%;
  }
}

@keyframes liquid-ribbon-two {
  0% {
    opacity: 0.72;
    transform: rotate(-5deg) translate3d(1.4%, -1%, 0) scale(0.98);
    border-radius: 64% 36% 0 0 / 52% 48% 0 0;
  }

  50% {
    opacity: 1;
    transform: rotate(-1deg) translate3d(-1.2%, 1.2%, 0) scale(1.04);
    border-radius: 54% 46% 0 0 / 42% 58% 0 0;
  }

  100% {
    opacity: 0.78;
    transform: rotate(-4deg) translate3d(-2%, 0.4%, 0) scale(1.015);
    border-radius: 70% 30% 0 0 / 58% 42% 0 0;
  }
}

@keyframes liquid-highlight-sweep {
  0% {
    opacity: 0.42;
    transform: translate3d(-5%, -2%, 0) rotate(-2deg);
  }

  100% {
    opacity: 0.78;
    transform: translate3d(5%, 2%, 0) rotate(2deg);
  }
}

.hero-glass {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055) 34%, rgba(0, 0, 0, 0.025) 72%, rgba(255, 255, 255, 0.12)),
    rgba(235, 244, 241, 0.055);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 0 0 3px rgba(255, 255, 255, 0.024),
    inset 7px 7px 14px rgba(255, 255, 255, 0.08),
    inset -8px -8px 16px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 18px rgba(255, 255, 255, 0.12),
    0 26px 72px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px) saturate(0.82) contrast(1.02) brightness(1.08);
  filter: contrast(1.02) saturate(0.82);
  transform-style: preserve-3d;
  backface-visibility: visible;
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero-glass::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 0 0 3px rgba(0, 0, 0, 0.08),
    inset 0 0 0 5px rgba(255, 255, 255, 0.08),
    inset 10px 10px 18px rgba(255, 255, 255, 0.1),
    inset -10px -10px 20px rgba(0, 0, 0, 0.1);
  filter: none;
  opacity: 0.82;
  mix-blend-mode: screen;
  animation: dispersion-shift 5.8s ease-in-out infinite alternate;
}

.hero-glass::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.16), transparent 1px),
    radial-gradient(circle at 72% 64%, rgba(255, 255, 255, 0.12), transparent 1px),
    rgba(255, 255, 255, 0.026);
  background-size: 14px 14px, 20px 20px, auto;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 18px rgba(255, 255, 255, 0.08);
  opacity: 0.34;
  transform: translateZ(6px);
  animation: glass-depth-pulse 6.2s ease-in-out infinite alternate;
}

.hero-glass-a {
  top: 0vh;
  left: 9vw;
  width: min(420px, 30vw);
  --rotate: -63deg;
  animation:
    glass-roam-a 28s cubic-bezier(0.45, 0, 0.2, 1) infinite alternate,
    glass-frost-a 28s cubic-bezier(0.45, 0, 0.2, 1) infinite alternate;
}

.hero-glass-b {
  z-index: 4;
  top: 10vh;
  left: 62vw;
  width: min(270px, 19vw);
  --rotate: -13deg;
  animation:
    glass-roam-b 24s cubic-bezier(0.42, 0, 0.18, 1) infinite alternate,
    glass-frost-a 24s cubic-bezier(0.42, 0, 0.18, 1) infinite alternate;
  animation-delay: -4s;
}

.hero-glass-c {
  right: -2vw;
  bottom: -20vh;
  width: min(210px, 15vw);
  --rotate: 24deg;
  animation:
    glass-roam-c 32s cubic-bezier(0.4, 0, 0.18, 1) infinite alternate,
    glass-frost-a 32s cubic-bezier(0.4, 0, 0.18, 1) infinite alternate;
  animation-delay: -9s;
}

@keyframes dispersion-shift {
  0% {
    opacity: 0.52;
    transform: translate3d(-2px, 1px, 22px);
    filter: blur(1.2px) hue-rotate(-8deg);
  }

  46% {
    opacity: 0.9;
    transform: translate3d(3px, -2px, 28px);
    filter: blur(0.8px) hue-rotate(12deg);
  }

  100% {
    opacity: 0.64;
    transform: translate3d(-1px, 2px, 24px);
    filter: blur(1px) hue-rotate(-16deg);
  }
}

@keyframes glass-depth-pulse {
  0% {
    opacity: 0.56;
    transform: translate3d(0, 0, 12px) scale(0.985);
  }

  55% {
    opacity: 0.82;
    transform: translate3d(2px, -2px, 26px) scale(1.01);
  }

  100% {
    opacity: 0.66;
    transform: translate3d(-1px, 1px, 18px) scale(1);
  }
}

@keyframes glass-frost-a {
  0%,
  30%,
  100% {
    backdrop-filter: blur(20px) saturate(0.72) contrast(1.08) brightness(1.18);
    filter: contrast(1.06) saturate(0.76) brightness(1.05);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.23), rgba(255, 255, 255, 0.105) 36%, rgba(0, 0, 0, 0.018) 72%, rgba(255, 255, 255, 0.18)),
      rgba(235, 244, 241, 0.105);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.48),
      inset 0 0 0 3px rgba(255, 255, 255, 0.04),
      inset 9px 9px 18px rgba(255, 255, 255, 0.14),
      inset -10px -10px 20px rgba(0, 0, 0, 0.08),
      0 0 0 1px rgba(255, 255, 255, 0.18),
      0 0 32px rgba(255, 255, 255, 0.2),
      0 30px 82px rgba(0, 0, 0, 0.22);
  }

  12%,
  52%,
  78% {
    backdrop-filter: blur(12px) saturate(0.82) contrast(1.02) brightness(1.08);
    filter: contrast(1.02) saturate(0.82);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055) 34%, rgba(0, 0, 0, 0.025) 72%, rgba(255, 255, 255, 0.12)),
      rgba(235, 244, 241, 0.055);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.28),
      inset 0 0 0 3px rgba(255, 255, 255, 0.024),
      inset 7px 7px 14px rgba(255, 255, 255, 0.08),
      inset -8px -8px 16px rgba(0, 0, 0, 0.08),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 18px rgba(255, 255, 255, 0.12),
      0 26px 72px rgba(0, 0, 0, 0.2);
  }
}

@keyframes glass-roam-a {
  0% {
    transform: translate3d(-5vw, -12vh, 80px) rotateX(12deg) rotateY(-18deg) rotateZ(-58deg);
  }

  16% {
    transform: translate3d(28vw, 2vh, -90px) rotateX(-18deg) rotateY(24deg) rotateZ(-38deg);
  }

  28% {
    transform: translate3d(54vw, -4vh, -120px) rotateX(-16deg) rotateY(22deg) rotateZ(-24deg);
  }

  44% {
    transform: translate3d(34vw, 38vh, 150px) rotateX(24deg) rotateY(-32deg) rotateZ(-72deg);
  }

  62% {
    transform: translate3d(74vw, 30vh, 100px) rotateX(18deg) rotateY(34deg) rotateZ(-62deg);
  }

  82% {
    transform: translate3d(6vw, 44vh, -130px) rotateX(-20deg) rotateY(-36deg) rotateZ(-18deg);
  }

  100% {
    transform: translate3d(20vw, 66vh, -60px) rotateX(-10deg) rotateY(-28deg) rotateZ(-36deg);
  }
}

@keyframes glass-roam-b {
  0% {
    transform: translate3d(-64vw, 10vh, 120px) rotateX(-14deg) rotateY(18deg) rotateZ(-18deg);
  }

  14% {
    transform: translate3d(-18vw, -2vh, -140px) rotateX(24deg) rotateY(-34deg) rotateZ(28deg);
  }

  24% {
    transform: translate3d(-36vw, 26vh, -80px) rotateX(20deg) rotateY(-26deg) rotateZ(10deg);
  }

  42% {
    transform: translate3d(-68vw, 50vh, 110px) rotateX(-24deg) rotateY(36deg) rotateZ(-38deg);
  }

  58% {
    transform: translate3d(-8vw, 8vh, 140px) rotateX(-18deg) rotateY(-14deg) rotateZ(-32deg);
  }

  78% {
    transform: translate3d(-76vw, 0vh, -100px) rotateX(18deg) rotateY(-38deg) rotateZ(16deg);
  }

  100% {
    transform: translate3d(-46vw, 44vh, -90px) rotateX(14deg) rotateY(30deg) rotateZ(18deg);
  }
}

@keyframes glass-roam-c {
  0% {
    transform: translate3d(2vw, 0, 100px) rotateX(16deg) rotateY(-20deg) rotateZ(24deg);
  }

  18% {
    transform: translate3d(-42vw, -18vh, -130px) rotateX(-28deg) rotateY(30deg) rotateZ(58deg);
  }

  32% {
    transform: translate3d(-8vw, -46vh, -110px) rotateX(-22deg) rotateY(24deg) rotateZ(-8deg);
  }

  50% {
    transform: translate3d(-72vw, -58vh, 150px) rotateX(24deg) rotateY(-38deg) rotateZ(18deg);
  }

  68% {
    transform: translate3d(-26vw, -8vh, 130px) rotateX(18deg) rotateY(36deg) rotateZ(42deg);
  }

  84% {
    transform: translate3d(-58vw, -78vh, -110px) rotateX(-22deg) rotateY(-28deg) rotateZ(-30deg);
  }

  100% {
    transform: translate3d(-12vw, -72vh, -80px) rotateX(-16deg) rotateY(-30deg) rotateZ(12deg);
  }
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 24px;
  left: 50%;
  width: var(--shell);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(2, 3, 3, 0.56);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.brand span {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.025em;
}

.brand small {
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
}

nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

nav a,
.contact-button,
.hero-actions a {
  border: 1px solid var(--line);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

nav a {
  padding: 10px 16px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover,
.contact-button:hover,
.hero-actions a:hover {
  color: #ffffff;
  border-color: rgba(91, 157, 255, 0.7);
  background: rgba(91, 157, 255, 0.1);
}

.contact-button {
  justify-self: end;
  padding: 12px 18px;
  color: #04100e;
  background: var(--hero-blue);
  border-color: transparent;
  font-weight: 700;
}

.contact-button:hover {
  color: #ffffff;
  border-color: rgba(91, 157, 255, 0.72);
  background: rgba(91, 157, 255, 0.22);
  transform: translateY(-1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 132px 0 84px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--accent);
  font-size: 12px;
}

.hero .eyebrow {
  font-size: 19px;
  letter-spacing: 0.16em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
}

.hero-title {
  position: relative;
  isolation: isolate;
  max-width: 1120px;
  margin: 0;
  color: #f0eee7;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: clamp(150px, 16vw, 310px);
  font-weight: 800;
  line-height: 0.72;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  cursor: default;
  text-shadow:
    0 26px 70px rgba(0, 0, 0, 0.46),
    0 0 0 rgba(255, 255, 255, 0);
  transition:
    color 0.45s ease,
    filter 0.45s ease,
    text-shadow 0.45s ease;
}

.hero-title::after {
  content: none;
}

.hero-title::before {
  content: none;
}

.hero-title span {
  position: relative;
  z-index: 2;
  display: block;
  transition:
    color 0.45s ease,
    text-shadow 0.45s ease;
}

.hero-title span + span {
  margin-top: 34px;
}

.hero-title:hover,
.hero-title:focus-visible {
  filter: brightness(1.08);
  text-shadow:
    0 26px 70px rgba(0, 0, 0, 0.48),
    0 0 24px rgba(255, 255, 255, 0.32),
    0 0 64px rgba(138, 210, 255, 0.24);
}




.hero-side-note {
  position: absolute;
  top: 23vh;
  left: auto;
  right: 0;
  max-width: 260px;
  margin: 0;
  color: rgba(240, 238, 231, 0.82);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 720px;
  margin: 34px 0 0;
  color: var(--hero-blue);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.82;
}

@keyframes title-glass-pass {
  0% {
    transform: translate3d(-8vw, -2vh, 0) rotate(-18deg);
  }

  38% {
    transform: translate3d(18vw, 12vh, 0) rotate(8deg);
  }

  100% {
    transform: translate3d(42vw, 22vh, 0) rotate(-10deg);
  }
}

@keyframes title-highlight-pass {
  0% {
    transform: translate3d(-18%, -30px, 0) rotate(-15deg);
  }

  100% {
    transform: translate3d(78%, 56px, 0) rotate(-8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glass,
  .hero-title::after {
    animation: none;
  }
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 48px;
}

.hero-actions a {
  border-color: rgba(91, 157, 255, 0.28);
  min-width: 166px;
  padding: 15px 22px;
  text-align: center;
  font-weight: 700;
}

.hero-actions a:first-child {
  color: #03100e;
  background: #eef6f3;
  border-color: #eef6f3;
}

.section {
  padding: 150px 0;
}

.fluid-glass-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(91, 157, 255, 0.18), transparent 32%),
    radial-gradient(circle at 76% 28%, rgba(125, 75, 255, 0.24), transparent 38%),
    linear-gradient(180deg, #020303 0%, #050718 58%, #020303 100%);
}

.fluid-glass-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 55% 45%, #000, transparent 72%);
}

.fluid-glass-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(430px, 0.82fr) minmax(620px, 1.1fr);
  gap: 58px;
  align-items: center;
}

.fluid-glass-copy h2 {
  margin: 0;
  max-width: 780px;
  color: #ffffff;
  font-size: clamp(48px, 4.5vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.fluid-glass-copy p:not(.section-kicker) {
  max-width: 640px;
  margin: 28px 0 0;
  color: rgba(238, 246, 243, 0.68);
  font-size: 17px;
  line-height: 1.78;
}

.fluid-glass-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.fluid-glass-meta span {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(238, 246, 243, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(16px);
}

.fluid-glass-demo {
  position: relative;
  height: min(760px, 72vh);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 20%),
    linear-gradient(135deg, rgba(91, 157, 255, 0.18), rgba(125, 75, 255, 0.12)),
    rgba(3, 5, 14, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 34px 120px rgba(0, 0, 0, 0.38);
}

.fluid-glass-demo::before,
.fluid-glass-demo::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.fluid-glass-demo::before {
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 80px rgba(255, 255, 255, 0.08);
}

.fluid-glass-demo::after {
  left: 28px;
  right: 28px;
  bottom: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
}

.fluid-glass-demo canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.profile {
  padding-bottom: 36px;
  background:
    linear-gradient(180deg, #020303, rgba(8, 14, 14, 0.92)),
    #020303;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.1fr;
  gap: 72px 92px;
  align-items: stretch;
}

.portrait-wrap {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080909;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  opacity: 0.88;
  filter: contrast(1.06);
}

.portrait-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.portrait-caption span,
.project-info span,
.strength-card span,
.contact-list span,
.stat span {
  color: var(--soft);
  font-size: 13px;
  text-transform: uppercase;
}

.portrait-caption strong {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 22px;
  line-height: 1.45;
}

.profile-copy {
  padding-top: 26px;
  text-align: left;
}

.profile-copy h2,
.section-head h2,
.contact-inner h2 {
  margin: 0;
  max-width: 1000px;
  font-size: clamp(42px, 4.6vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
}

.profile-copy h2 {
  line-height: 0.9;
  text-align: left;
}

.profile-copy h2 br {
  display: block;
  content: "";
  margin-bottom: 0.08em;
}

.profile-copy p {
  text-align: left;
}

.profile-copy p:not(.section-kicker),
.section-head p,
.strength-card p,
.project-info p {
  color: var(--muted);
  line-height: 1.82;
}

.profile-copy p:not(.section-kicker) {
  max-width: 850px;
  margin: 34px 0 0;
  font-size: 18px;
}

.contact-list {
  --profile-glass-gap: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--profile-glass-gap);
  margin-top: 46px;
  border: 0;
  background: transparent;
}

.contact-list div,
.stat {
  background: rgba(238, 246, 243, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -18px 30px rgba(0, 0, 0, 0.18),
    0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(0.82) brightness(1.08);
  transition:
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
  will-change: transform;
}

.contact-list div {
  display: grid;
  gap: 12px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.contact-list div::before,
.stat::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 14px;
  left: 14px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(230, 246, 255, 0.3) 28%, rgba(255, 255, 255, 0.18) 72%, transparent);
}

.contact-list div::after,
.stat::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(213, 239, 255, 0.24), rgba(255, 255, 255, 0.07) 42%, transparent);
}

.contact-list strong {
  font-size: 18px;
  position: relative;
  z-index: 1;
}

.stats-grid {
  --profile-glass-gap: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--profile-glass-gap);
  margin-top: var(--profile-glass-gap);
  border: 0;
  background: transparent;
}

.stat {
  position: relative;
  overflow: hidden;
  min-height: 156px;
  padding: 26px;
}

.stat strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
}

.contact-list span,
.stat span {
  position: relative;
  z-index: 1;
}

.contact-list div:hover,
.stat:hover {
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(238, 246, 243, 0.095);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -18px 30px rgba(0, 0, 0, 0.16),
    0 30px 84px rgba(0, 0, 0, 0.3);
  animation: glass-card-bounce 0.46s cubic-bezier(0.18, 0.9, 0.28, 1.16) both;
}

@keyframes glass-card-bounce {
  0% {
    transform: translateY(0) scale(1);
  }

  48% {
    transform: translateY(-9px) scale(1.026);
  }

  72% {
    transform: translateY(-3px) scale(1.012);
  }

  100% {
    transform: translateY(-6px) scale(1.018);
  }
}

.workflow {
  min-height: 66vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 64px 0;
  color: #111111;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(180deg, #f6f4f2, #ebe8e5);
}

.workflow-layout {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
}

.workflow .section-kicker {
  margin: 0;
  color: #111111;
  letter-spacing: 0.06em;
  text-transform: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.workflow-copy {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 22px;
  transform: translateY(-50%);
}

.workflow-copy h2 {
  margin: 0;
  color: #111111;
  font-size: clamp(68px, 5.6vw, 106px);
  line-height: 0.9;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.workflow-input {
  display: flex;
  width: min(430px, 100%);
  margin-top: 42px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(20, 18, 16, 0.08);
}

.workflow-input span {
  flex: 1;
  padding: 18px 24px;
  color: rgba(17, 17, 17, 0.34);
  font-size: 15px;
}

.workflow-input a {
  display: grid;
  min-width: 96px;
  place-items: center;
  color: #111111;
  background: #ff9f72;
  font-weight: 800;
}

.workflow-cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  width: min(70vw, 1400px);
  margin: 0 0 0 auto;
  height: clamp(480px, 54vh, 520px);
  perspective: 1200px;
}

.workflow-card {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  min-width: 132px;
  border-radius: 18px;
  background: #111111;
  box-shadow: 0 34px 90px rgba(22, 18, 15, 0.16);
  opacity: 0;
  transform: translate3d(0, 80px, 0) rotateY(-8deg) scale(0.96);
  transition:
    flex 0.72s cubic-bezier(0.16, 0.9, 0.18, 1),
    flex-basis 0.72s cubic-bezier(0.16, 0.9, 0.18, 1),
    opacity 0.7s ease,
    filter 0.42s ease,
    transform 0.82s cubic-bezier(0.18, 0.86, 0.28, 1),
    box-shadow 0.4s ease;
  transition-delay: var(--workflow-delay, 0s);
}

.workflow.typewriter-active .workflow-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
}

.workflow-card:nth-child(2) {
  --workflow-delay: 0.14s;
}

.workflow-card:nth-child(3) {
  --workflow-delay: 0.24s;
}

.workflow-card:nth-child(4) {
  --workflow-delay: 0.34s;
}

.workflow-card:hover,
.workflow-card.is-expanded {
  z-index: 3;
  box-shadow: 0 42px 110px rgba(22, 18, 15, 0.24);
  transition-delay: 0s;
}

.workflow-cards:has(.workflow-card:hover) .workflow-card,
.workflow-cards.is-focusing .workflow-card {
  flex: 0.42 1 116px;
  filter: brightness(0.72) saturate(0.78);
}

.workflow-cards:has(.workflow-card:hover) .workflow-card:hover,
.workflow-cards.is-focusing .workflow-card.is-expanded {
  flex: 3.75 1 760px;
  filter: brightness(1.08) saturate(1.08);
}

.workflow.typewriter-active .workflow-card:hover,
.workflow.typewriter-active .workflow-card.is-expanded {
  transform: translate3d(0, -14px, 0) rotateY(0deg) scale(1);
}

.workflow-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  filter: grayscale(0.08) contrast(1.04);
  transform: scale(1);
  transition:
    opacity 0.42s ease,
    transform 0.8s cubic-bezier(0.16, 0.9, 0.18, 1),
    filter 0.42s ease;
}

.workflow-card:hover img,
.workflow-card.is-expanded img {
  opacity: 1;
  filter: grayscale(0) contrast(1.1);
  transform: scale(1.12);
}

.workflow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.78));
}

.workflow-card-main {
  flex: 2.95 1 520px;
}

.workflow-card-main div {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.workflow-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 1.8vw, 34px);
  line-height: 1;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  transition:
    writing-mode 0s linear 0.08s,
    letter-spacing 0.24s ease,
    transform 0.34s ease;
}

.workflow-card:hover h3,
.workflow-card.is-expanded h3 {
  letter-spacing: 0;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.workflow-card strong {
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.workflow-card-slim {
  flex: 0.86 1 170px;
}

.workflow-card-slim h3 {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 28px;
  transform: none;
}

.workflow-bottom {
  grid-column: 1 / -1;
  margin: 22px 0 0;
  color: #111111;
  text-align: center;
  font-size: clamp(24px, 2vw, 38px);
  font-weight: 800;
  letter-spacing: 0;
}

.projects {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 0;
  background: #1f1f1e;
}

.project-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
  align-items: stretch;
}

.project-intro {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-right: 34px;
}

.project-intro span,
.project-panel span {
  display: block;
  margin-bottom: 16px;
  color: rgba(245, 244, 238, 0.62);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.project-panel span {
  position: relative;
  z-index: 2;
}

.project-intro h2 {
  margin: 0;
  color: #f4f2ec;
  font-size: clamp(58px, 5.2vw, 104px);
  line-height: 1;
  letter-spacing: 0;
}

.project-intro p {
  max-width: 360px;
  margin: 22px 0 0;
  color: rgba(245, 244, 238, 0.54);
  line-height: 1.7;
}

.project-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  padding: 32px;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.82s cubic-bezier(0.18, 0.86, 0.28, 1),
    transform 0.82s cubic-bezier(0.18, 0.86, 0.28, 1),
    box-shadow 0.35s ease,
    filter 0.35s ease;
  transition-delay: var(--panel-delay, 0s);
}

.project-panel::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: none;
}

.project-panel-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
  transform: scale(1.01);
  transition:
    opacity 0.38s ease,
    transform 0.62s ease,
    filter 0.38s ease;
}

.project-panel:hover .project-panel-image {
  opacity: 1;
  filter: contrast(1.12) saturate(1.05);
  transform: scale(1.06);
}

.projects.is-active .project-panel {
  opacity: 1;
  transform: translateY(0);
}

.project-panel:hover {
  transform: translateY(-10px) scale(1.015);
  filter: brightness(1.04);
  transition-delay: 0s;
}

.project-panel button,
.project-panel > span,
.project-panel > strong,
.project-panel > h3,
.project-panel > p,
.project-panel > div:not(.project-panel-image),
.pixel-chart,
.pixel-cluster,
.orbit-map {
  display: none;
}

.project-panel button {
  position: absolute;
  z-index: 3;
  top: 26px;
  right: 26px;
  width: 22px;
  height: 22px;
  padding: 0;
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: transparent;
  font-weight: 600;
}

.project-panel strong {
  position: relative;
  z-index: 2;
  display: block;
  color: #111111;
  font-size: clamp(40px, 4.2vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.project-panel p,
.project-panel h3 {
  position: relative;
  z-index: 2;
}

.project-panel p {
  margin: 16px 0 0;
  color: rgba(17, 17, 17, 0.56);
  line-height: 1.65;
}

.project-panel:has(.project-panel-image) span,
.project-panel:has(.project-panel-image) strong,
.project-panel:has(.project-panel-image) h3,
.project-panel:has(.project-panel-image) p {
  color: #ffffff;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
}

.project-panel:has(.project-panel-image) p {
  color: rgba(255, 255, 255, 0.76);
}

.panel-chart,
.panel-orbit,
.panel-pixels {
  background: #e7e5df;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.panel-chart {
  grid-column: 1;
  grid-row: 2;
  --panel-delay: 0.08s;
}

.panel-orbit {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  text-align: center;
  align-content: center;
  --panel-delay: 0.16s;
}

.panel-orbit .orbit-map {
  margin-bottom: 14px;
}

.panel-orbit strong {
  font-size: 58px;
}

.panel-orbit p {
  margin-top: 8px;
  line-height: 1.45;
}

.panel-text {
  grid-column: 3;
  grid-row: 1;
  color: #f4f2ec;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%),
    #181818;
  border: 1px solid rgba(255, 255, 255, 0.08);
  --panel-delay: 0.24s;
}

.panel-text button {
  color: #f4f2ec;
  border-color: rgba(255, 255, 255, 0.18);
}

.panel-text h3 {
  margin: 52px 0 18px;
  font-size: 28px;
  line-height: 1.15;
}

.panel-text p {
  max-width: 420px;
  color: rgba(245, 244, 238, 0.64);
}

.panel-image {
  grid-column: 2;
  grid-row: 2;
  padding: 0;
  color: #ffffff;
  background: #111111;
  --panel-delay: 0.32s;
}

.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
  transition:
    opacity 0.35s ease,
    transform 0.6s ease;
}

.panel-image:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.panel-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
}

.panel-image div {
  position: absolute;
  z-index: 2;
  left: 30px;
  right: 30px;
  bottom: 30px;
}

.panel-image strong,
.panel-image p,
.panel-image span {
  color: #ffffff;
}

.panel-image p {
  color: rgba(255, 255, 255, 0.72);
}

.panel-pixels {
  grid-column: 3;
  grid-row: 2;
  --panel-delay: 0.4s;
}

.panel-extra {
  background: #111111;
}

.panel-extra h3 {
  margin: 52px 0 0;
  font-size: 28px;
  line-height: 1.16;
}

.panel-extra strong {
  margin-top: 72px;
}

.panel-extra-1 {
  grid-column: 1;
  grid-row: 3;
  --panel-delay: 0.48s;
}

.panel-extra-2 {
  grid-column: 2;
  grid-row: 3;
  --panel-delay: 0.56s;
}

.panel-extra-3 {
  grid-column: 3;
  grid-row: 3;
  --panel-delay: 0.64s;
}

.project-showcase .project-panel button,
.project-showcase .project-panel > span,
.project-showcase .project-panel > strong,
.project-showcase .project-panel > h3,
.project-showcase .project-panel > p,
.project-showcase .project-panel > div:not(.project-panel-image) {
  display: none !important;
}

.pixel-chart {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(14, 8px);
  grid-auto-rows: 8px;
  gap: 5px;
  align-content: end;
  height: 142px;
  transform: rotate(-18deg);
  transform-origin: 0 100%;
}

.pixel-chart i,
.pixel-cluster i {
  display: block;
  background: #111111;
  animation: pixel-pulse 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.045s);
  animation-play-state: paused;
}

.pixel-chart i {
  width: 8px;
  height: 8px;
  opacity: calc(0.28 + var(--i) * 0.015);
}

.orbit-map {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 22px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 50%;
}

.orbit-map::before,
.orbit-map::after {
  content: "";
  position: absolute;
  inset: 25px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 50%;
}

.orbit-map::after {
  inset: 54px;
}

.orbit-map span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: #111111;
}

.orbit-map i {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #111111;
  animation: orbit-dot 4.5s linear infinite;
  animation-play-state: paused;
}

.projects.is-active .pixel-chart i,
.projects.is-active .pixel-cluster i,
.projects.is-active .orbit-map i {
  animation-play-state: running;
}

.orbit-map i:nth-of-type(1) {
  left: 27px;
  top: 34px;
}

.orbit-map i:nth-of-type(2) {
  right: 32px;
  top: 26px;
  animation-delay: -0.8s;
}

.orbit-map i:nth-of-type(3) {
  left: 45px;
  bottom: 24px;
  animation-delay: -1.6s;
}

.orbit-map i:nth-of-type(4) {
  right: 23px;
  bottom: 34px;
  animation-delay: -2.4s;
}

.pixel-cluster {
  position: absolute;
  top: 30px;
  right: 30px;
  display: grid;
  grid-template-columns: repeat(4, 18px);
  gap: 10px;
}

.pixel-cluster i {
  width: 18px;
  height: 18px;
}

.pixel-cluster i:nth-child(2),
.pixel-cluster i:nth-child(5) {
  width: 28px;
  height: 28px;
}

.panel-pixels span {
  margin-top: 136px;
}

.panel-pixels h3 {
  margin: 18px 0 0;
  color: #111111;
  font-size: 30px;
}

.commerce-spread {
  position: relative;
  min-height: 1180px;
  display: flex;
  align-items: center;
  padding: 104px 0 132px;
  overflow: hidden;
  color: #f5f7ff;
  background:
    radial-gradient(circle at 20% 18%, rgba(78, 114, 255, 0.2), transparent 34%),
    radial-gradient(circle at 78% 32%, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(135deg, #030405, #000000 48%, #05070a);
}

.commerce-spread::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  pointer-events: none;
  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);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 68%);
}

.commerce-stage {
  position: relative;
  min-height: 960px;
  isolation: isolate;
  padding: 0;
}

.commerce-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(16, 17, 20, 0.88), rgba(3, 4, 5, 0.94)),
    #050607;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.commerce-stage-body {
  position: relative;
  min-height: 820px;
  overflow: visible;
}

.commerce-stage-body h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-top: 56px;
  color: #f4f6ff;
  text-align: center;
  font-size: clamp(86px, 8vw, 154px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.commerce-card-rail {
  --commerce-card-step: clamp(320px, 20.5vw, 440px);
  position: absolute;
  z-index: 3;
  inset: 140px -160px 116px;
  pointer-events: none;
}

.commerce-float-card {
  position: absolute;
  left: 50%;
  width: clamp(285px, 19vw, 430px);
  height: clamp(400px, 27vw, 600px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: #f4f3ef;
  box-shadow:
    0 34px 80px rgba(28, 28, 28, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  opacity: 0;
  transform: translate3d(calc(-50% + var(--card-x)), 92px, 0) rotate(var(--card-rotate)) scale(0.92);
  transition:
    opacity 0.78s cubic-bezier(0.2, 0.86, 0.28, 1),
    transform 0.92s cubic-bezier(0.18, 0.86, 0.28, 1);
  transition-delay: var(--card-delay);
}

.commerce-spread.is-active .commerce-float-card {
  opacity: 1;
  transform: translate3d(calc(-50% + var(--card-x)), 0, 0) rotate(var(--card-rotate)) scale(1);
}

.commerce-float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commerce-float-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 40%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 36%);
  mix-blend-mode: multiply;
}

.commerce-float-card span,
.commerce-float-card strong {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  color: #ffffff;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
}

.commerce-float-card span {
  bottom: 68px;
  font-size: 13px;
  font-weight: 700;
}

.commerce-float-card strong {
  bottom: 28px;
  font-size: 25px;
  line-height: 1.05;
}

.commerce-float-1 {
  top: 214px;
  --card-x: calc(var(--commerce-card-step) * -2);
  --card-rotate: -12deg;
  --card-delay: 0.06s;
}

.commerce-float-2 {
  top: 134px;
  --card-x: calc(var(--commerce-card-step) * -1);
  --card-rotate: -5deg;
  --card-delay: 0.16s;
}

.commerce-float-3 {
  top: 106px;
  --card-x: 0px;
  --card-rotate: 4deg;
  --card-delay: 0.26s;
}

.commerce-float-4 {
  top: 138px;
  --card-x: var(--commerce-card-step);
  --card-rotate: 10deg;
  --card-delay: 0.36s;
}

.commerce-float-5 {
  top: 216px;
  --card-x: calc(var(--commerce-card-step) * 2);
  --card-rotate: 13deg;
  --card-delay: 0.46s;
}

.commerce-stage-cta {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  min-width: 220px;
  padding: 22px 34px;
  color: #ffffff;
  border-radius: 999px;
  background: #202020;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 18px 48px rgba(20, 20, 20, 0.2);
  transform: translateX(-50%);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.commerce-stage-cta:hover {
  background: #2d5bff;
  transform: translateX(-50%) translateY(-2px);
}

.commerce-spread {
  min-height: 980px;
  padding: 112px 0;
  background: #000000;
  color: #ffffff;
}

.commerce-spread::before,
.commerce-stage::before {
  display: none;
}

.commerce-stage {
  width: min(1680px, calc(100vw - 86px));
  min-height: 760px;
  padding: clamp(32px, 3vw, 54px);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.commerce-stage-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.72s cubic-bezier(0.18, 0.86, 0.28, 1),
    transform 0.86s cubic-bezier(0.18, 0.86, 0.28, 1);
}

.commerce-spread.is-active .commerce-stage-header {
  opacity: 1;
  transform: translateY(0);
}

.commerce-logo-pill,
.commerce-menu-pill {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #090909;
  border-radius: 999px;
  background: #ffffff;
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
}

.commerce-logo-pill {
  min-width: 122px;
  padding: 0 24px;
  font-size: 19px;
  letter-spacing: 0.08em;
}

.commerce-dot-nav {
  justify-self: end;
  display: flex;
  gap: 8px;
  align-items: center;
}

.commerce-dot-nav span {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.commerce-stage-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 700;
}

.commerce-menu-pill {
  gap: 12px;
  min-width: 132px;
  padding: 0 20px 0 10px;
  font-size: 13px;
}

.commerce-menu-grid {
  width: 42px;
  height: 42px;
  display: grid;
  grid-template-columns: repeat(2, 5px);
  grid-template-rows: repeat(2, 5px);
  gap: 5px;
  place-content: center;
  border-radius: 50%;
  background: #060606;
}

.commerce-menu-grid i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
}

.commerce-stage-body {
  min-height: 640px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 30px;
  overflow: visible;
}

.commerce-layout-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.88fr) minmax(320px, 1.48fr) minmax(180px, 0.92fr) minmax(180px, 0.92fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 1.7vw, 30px);
  min-height: 530px;
}

.commerce-masonry-wrap {
  width: min(100%, 1240px);
  min-height: 720px;
  margin: 0 auto;
}

.commerce-masonry-preview {
  position: relative;
  display: block;
  min-height: 720px;
}

.commerce-masonry-preview .commerce-tile {
  position: absolute;
  display: block;
  padding: 0;
  opacity: 1;
  transform: none;
}

.commerce-masonry-preview .commerce-tile-1 { left: 0; top: 0; width: 22%; height: 340px; }
.commerce-masonry-preview .commerce-tile-2 { left: 24%; top: 0; width: 28%; height: 720px; }
.commerce-masonry-preview .commerce-tile-3 { left: 54%; top: 0; width: 46%; height: 340px; }
.commerce-masonry-preview .commerce-tile-4 { left: 54%; top: 360px; width: 22%; height: 360px; }
.commerce-masonry-preview .commerce-tile-5 { left: 78%; top: 360px; width: 22%; height: 360px; }
.commerce-masonry-preview .commerce-tile-copy { left: 0; top: 360px; width: 22%; height: 360px; }

.commerce-masonry-preview .commerce-tile:hover {
  z-index: 4;
  transform: scale(0.97);
}

.commerce-masonry-wrap .masonry-list {
  min-height: 720px;
}

.commerce-tile {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #e8e8e4;
  opacity: 0;
  transform: translateY(34px) scale(0.96);
  transition:
    opacity 0.74s cubic-bezier(0.18, 0.86, 0.28, 1),
    transform 0.9s cubic-bezier(0.18, 0.86, 0.28, 1),
    filter 0.3s ease;
}

.commerce-spread.is-active .commerce-tile {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.commerce-tile-1 {
  grid-column: 1;
  grid-row: 1;
  transition-delay: 0.08s;
}

.commerce-tile-copy {
  grid-column: 1;
  grid-row: 2;
  min-height: 210px;
  padding: clamp(24px, 2.2vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(135deg, #a020ff, #5c16ff);
  transition-delay: 0.18s;
}

.commerce-tile-2 {
  grid-column: 2;
  grid-row: 1 / span 2;
  transition-delay: 0.18s;
}

.commerce-tile-3 {
  grid-column: 3 / span 2;
  grid-row: 1;
  transition-delay: 0.26s;
}

.commerce-tile-4 {
  grid-column: 3;
  grid-row: 2;
  transition-delay: 0.34s;
}

.commerce-tile-5 {
  grid-column: 4;
  grid-row: 2;
  transition-delay: 0.42s;
}

.commerce-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(0.78) saturate(0.62) contrast(1.02);
  transition:
    filter 0.35s ease,
    transform 0.55s cubic-bezier(0.18, 0.86, 0.28, 1);
}

.commerce-tile:hover img {
  filter: grayscale(0.15) saturate(0.96) contrast(1.02);
  transform: scale(1.035);
}

.commerce-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 44%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 38%);
}

.commerce-tile span,
.commerce-tile strong {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  color: #ffffff;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}

.commerce-tile span {
  top: 20px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 800;
}

.commerce-tile strong {
  bottom: 22px;
  font-size: clamp(18px, 1.65vw, 30px);
  font-weight: 850;
  line-height: 1.05;
}

.commerce-tile-copy::after {
  display: none;
}

.commerce-tile-copy p {
  max-width: 240px;
  margin: 0;
  color: rgba(18, 10, 28, 0.82);
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.commerce-tile-copy a {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: #050505;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
}

.commerce-stage-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1fr) auto;
  gap: clamp(28px, 4vw, 76px);
  align-items: end;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.74s cubic-bezier(0.18, 0.86, 0.28, 1) 0.28s,
    transform 0.9s cubic-bezier(0.18, 0.86, 0.28, 1) 0.28s;
}

.commerce-stage-body > .commerce-masonry-preview {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

.commerce-stage-body > .commerce-stage-footer {
  grid-column: 1;
  grid-row: 1;
}

.commerce-spread.is-active .commerce-stage-footer {
  opacity: 1;
  transform: translateY(0);
}

.commerce-stage-footer h2,
.commerce-stage-body .commerce-stage-footer h2 {
  margin: 0;
  padding: 0;
  color: #ffffff;
  text-align: left;
  font-size: clamp(34px, 3.4vw, 64px);
  font-weight: 560;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.commerce-stage-footer p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.42;
}

.commerce-stage-footer .commerce-stage-cta {
  position: relative;
  left: auto;
  bottom: auto;
  min-width: 148px;
  padding: 18px 26px;
  color: #111111;
  background: #ffffff;
  font-size: 14px;
  box-shadow: none;
  transform: none;
}

.commerce-stage-footer .commerce-stage-cta:hover {
  color: #ffffff;
  background: #2d5bff;
  transform: translateY(-2px);
}

.works-carousel {
  position: relative;
  min-height: 1060px;
  display: flex;
  align-items: center;
  padding: 116px 0 126px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(117, 69, 46, 0.22), transparent 34%),
    radial-gradient(circle at 74% 42%, rgba(86, 52, 34, 0.28), transparent 40%),
    linear-gradient(135deg, #17100d 0%, #100c0a 46%, #080706 100%);
}

.works-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 50% 60%, rgba(255, 221, 170, 0.12), transparent 48%);
  opacity: 0.72;
}

.works-carousel-shell {
  position: relative;
  z-index: 1;
  width: min(1700px, calc(100vw - 72px));
  margin: 0 auto;
}

.works-carousel-heading {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 86px);
  align-items: start;
  margin-bottom: 74px;
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.82s cubic-bezier(0.18, 0.86, 0.28, 1),
    transform 0.96s cubic-bezier(0.18, 0.86, 0.28, 1);
}

.works-carousel.is-active .works-carousel-heading {
  opacity: 1;
  transform: translateY(0);
}

.works-carousel-heading p {
  max-width: 282px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-style: italic;
  font-weight: 650;
  line-height: 1.32;
}

.works-carousel-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(96px, 9vw, 184px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.works-carousel-window {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  overflow: hidden;
  padding: 18px 0 82px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.works-gallery-stage {
  width: 100%;
  height: clamp(580px, 48vw, 760px);
}

.works-gallery-stage .circular-gallery canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.works-carousel-track {
  display: flex;
  width: max-content;
  animation: works-carousel-loop 34s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.works-carousel.is-active .works-carousel-track {
  animation-play-state: running;
}

.works-carousel-window:hover .works-carousel-track {
  animation-play-state: paused;
}

.works-carousel-set {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2vw, 36px);
  padding-right: clamp(22px, 2vw, 36px);
}

.works-card {
  --work-y: 36px;
  --work-rotate: -4deg;
  --work-scale: 0.94;
  position: relative;
  flex: 0 0 clamp(238px, 15vw, 310px);
  height: clamp(350px, 23vw, 476px);
  overflow: hidden;
  border-radius: 28px;
  background: #211a16;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(calc(var(--work-y) + 58px)) rotate(var(--work-rotate)) scale(0.88);
  transition:
    opacity 0.8s cubic-bezier(0.18, 0.86, 0.28, 1),
    transform 1s cubic-bezier(0.18, 0.86, 0.28, 1);
}

.works-carousel.is-active .works-card {
  opacity: 1;
  transform: translateY(var(--work-y)) rotate(var(--work-rotate)) scale(var(--work-scale));
}

.works-card:nth-child(5n + 1) {
  --work-y: 28px;
  --work-rotate: -5deg;
  --work-scale: 0.93;
}

.works-card:nth-child(5n + 2) {
  --work-y: 4px;
  --work-rotate: 3deg;
  --work-scale: 1;
}

.works-card:nth-child(5n + 3) {
  --work-y: 76px;
  --work-rotate: 0deg;
  --work-scale: 1.12;
  flex-basis: clamp(292px, 18vw, 376px);
  height: clamp(426px, 28vw, 570px);
}

.works-card:nth-child(5n + 4) {
  --work-y: 2px;
  --work-rotate: -4deg;
  --work-scale: 0.98;
}

.works-card:nth-child(5n + 5) {
  --work-y: 36px;
  --work-rotate: 5deg;
  --work-scale: 0.92;
}

.works-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(0.98);
  transform: scale(1.02);
}

.works-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), transparent 38%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.54), transparent 38%);
}

.works-card span,
.works-card strong {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.46);
}

.works-card span {
  top: 24px;
  width: fit-content;
  max-width: calc(100% - 52px);
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.works-card strong {
  bottom: 26px;
  font-size: clamp(17px, 1.35vw, 26px);
  font-weight: 750;
  line-height: 1.05;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  filter: blur(5px);
}

.works-carousel.is-active .works-card strong {
  animation:
    works-title-reveal 0.9s cubic-bezier(0.18, 0.86, 0.28, 1) forwards,
    works-title-float 4.8s ease-in-out 1.1s infinite alternate;
  animation-delay:
    calc(0.18s + (var(--work-index, 0) * 0.1s)),
    calc(1.1s + (var(--work-index, 0) * 0.1s));
}

.works-card:nth-child(2) {
  --work-index: 1;
}

.works-card:nth-child(3) {
  --work-index: 2;
}

.works-card:nth-child(4) {
  --work-index: 3;
}

.works-card:nth-child(5) {
  --work-index: 4;
}

@keyframes works-title-reveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    filter: blur(5px);
  }
  65% {
    opacity: 1;
    transform: translate3d(5px, -2px, 0);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes works-title-float {
  from {
    transform: translate3d(-2px, 0, 0);
    text-shadow: 0 14px 36px rgba(0, 0, 0, 0.46);
  }
  to {
    transform: translate3d(3px, -5px, 0);
    text-shadow: 0 18px 42px rgba(117, 191, 255, 0.22);
  }
}

.works-carousel-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: -24px;
}

.works-carousel-controls span {
  position: relative;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
}

.works-carousel-controls span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translate(-60%, -50%) rotate(-45deg);
}

.works-carousel-controls span:first-child::before {
  transform: translate(-40%, -50%) rotate(135deg);
}

@keyframes works-carousel-loop {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.detail-showcase {
  position: relative;
  min-height: 2300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 74px 0 0;
  color: #ffffff;
  background:
    #020303;
}

.detail-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 25%, rgba(35, 216, 222, 0.13), transparent 28%),
    linear-gradient(180deg, transparent 93%, rgba(35, 216, 222, 0.96) 93%, rgba(35, 216, 222, 0.96) 100%);
  opacity: 1;
}

.detail-showcase-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.96fr 0.7fr 0.7fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 46px;
  align-items: start;
  min-height: 2220px;
}

.detail-copy {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.75s ease,
    transform 0.9s cubic-bezier(0.18, 0.86, 0.28, 1);
}

.detail-showcase.is-active .detail-copy {
  opacity: 1;
  transform: translateY(0);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 76px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-copy h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #ffffff;
  font-size: clamp(96px, 6.3vw, 136px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.055em;
}

.detail-copy h2 span {
  display: block;
}

.detail-copy h2 span:first-child {
  color: #23d2d9;
}

.detail-script {
  position: absolute;
  z-index: 3;
  left: 144px;
  top: 132px;
  margin: 0;
  color: #24d8de;
  font-family: "Segoe Script", "Segoe Print", "Lucida Handwriting", cursive;
  font-size: clamp(78px, 5vw, 108px);
  font-weight: 300;
  line-height: 1;
  transform: rotate(-8deg);
  opacity: 0.92;
  text-shadow: 0 0 18px rgba(35, 216, 222, 0.28);
}

/* Keep the handwritten project name visible on every detail title, including bathroom pages. */
.detail-showcase-screen-5 .detail-script,
.detail-showcase-screen-6 .detail-script {
  display: block;
}

.detail-cn {
  margin: 48px 0 0;
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
}

.detail-note {
  max-width: 430px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.7;
}

.detail-phone {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  position: relative;
  width: min(100%, 458px);
  margin-top: 52px;
  padding: 14px;
  border-radius: 72px;
  isolation: isolate;
  opacity: 1;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(19, 21, 24, 0.98) 16%, #030404 62%, rgba(255, 255, 255, 0.1)),
    #050607;
  box-shadow:
    0 42px 112px rgba(0, 0, 0, 0.68),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 0 0 4px rgba(0, 0, 0, 0.72),
    inset 18px 0 28px rgba(255, 255, 255, 0.04),
    inset -16px 0 24px rgba(0, 0, 0, 0.62);
  transform: rotate(-0.35deg);
  transition:
    opacity 0.78s ease 0.08s,
    transform 0.96s cubic-bezier(0.18, 0.86, 0.28, 1) 0.08s;
}

.detail-showcase.is-active .detail-phone {
  opacity: 1;
  transform: rotate(-0.35deg);
}

.detail-phone-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 9 / 18.25;
  height: auto;
  max-height: 880px;
  border: 8px solid #050607;
  border-radius: 58px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
  background: #f7f7f3;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 2px rgba(255, 255, 255, 0.16),
    inset 0 0 46px rgba(0, 0, 0, 0.26);
}

.detail-phone-frame::-webkit-scrollbar,
.detail-strip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.detail-phone-frame::before {
  content: none;
}

.detail-phone-frame img {
  width: 100%;
  height: auto;
  min-height: 100%;
  pointer-events: none;
  user-select: none;
}

.detail-strip img {
  width: 100%;
  height: auto;
  min-height: 100%;
  pointer-events: none;
  user-select: none;
}

.detail-scrolls {
  grid-column: 2 / 4;
  grid-row: 1 / 3;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: start;
  min-height: 2000px;
}

.detail-strip {
  position: relative;
  height: 2000px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
  border-radius: 0;
  background: #f7f7f3;
  box-shadow: none;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.76s ease,
    transform 0.94s cubic-bezier(0.18, 0.86, 0.28, 1);
}

.detail-pan.is-dragging {
  scroll-behavior: auto;
}

.detail-pan.is-wheel-active {
  cursor: ns-resize;
}

.detail-phone::before {
  content: "";
  position: absolute;
  z-index: 18;
  left: 50%;
  top: 27px;
  width: 92px;
  height: 25px;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 47%, rgba(61, 92, 122, 0.42), transparent 12%),
    linear-gradient(180deg, #080a0b, #000 58%, #070808);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.22),
    inset 0 -2px 8px rgba(0, 0, 0, 0.94),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
}

.detail-phone::after {
  content: "";
  position: absolute;
  z-index: 19;
  left: calc(50% + 29px);
  top: 35px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 34% 30%, rgba(145, 182, 255, 0.82), #111820 46%, #010202 72%);
  box-shadow:
    inset 0 0 2px rgba(255, 255, 255, 0.28),
    0 0 8px rgba(93, 153, 255, 0.26);
}

.detail-scroll-hint {
  position: absolute;
  z-index: 16;
  width: 34px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  pointer-events: none;
  background: rgba(6, 12, 18, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 14px 34px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(35, 216, 222, 0.2);
  backdrop-filter: blur(12px);
  animation: scroll-hint-breathe 2.2s ease-in-out infinite;
}

.detail-scroll-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  width: 5px;
  height: 12px;
  border-radius: 999px;
  pointer-events: none;
  background: #23d8de;
  box-shadow: 0 0 16px rgba(35, 216, 222, 0.72);
  transform: translateX(-50%);
  animation: scroll-hint-dot 1.45s ease-in-out infinite;
}

.detail-phone .detail-scroll-hint {
  right: 30px;
  bottom: 30px;
}

.detail-scrolls .detail-scroll-hint {
  right: 22px;
  top: 22px;
}

@keyframes scroll-hint-breathe {
  0%,
  100% {
    opacity: 0.46;
    transform: translateY(0) scale(0.98);
  }

  50% {
    opacity: 0.84;
    transform: translateY(4px) scale(1);
  }
}

@keyframes scroll-hint-dot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  34% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
}

.detail-showcase.is-active .detail-strip {
  opacity: 1;
  transform: translateY(0);
}

.detail-strip-1 {
  transition-delay: 0.14s;
}

.detail-strip-2 {
  margin-top: 0;
  transition-delay: 0.22s;
}

.detail-strip::after {
  content: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), transparent 44%, rgba(0, 0, 0, 0.18));
}

.detail-footer-band {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  margin: 76px calc((var(--shell) - 100vw) / 2) 0;
  padding: 0 max(48px, calc((100vw - var(--shell)) / 2));
  color: #ffffff;
  background: #23bec7;
}

.detail-footer-band strong {
  font-size: clamp(36px, 3vw, 58px);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.detail-footer-band span {
  font-size: clamp(22px, 2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.category-split {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 112px 0 126px;
  overflow: hidden;
  color: #ffffff;
  background: #000000;
}

.category-split-title {
  margin: 0 0 58px;
  text-align: center;
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s cubic-bezier(0.18, 0.86, 0.28, 1),
    transform 0.96s cubic-bezier(0.18, 0.86, 0.28, 1);
}

.category-split.is-active .category-split-title {
  opacity: 1;
  transform: translateY(0);
}

.category-split-title span {
  display: block;
  margin-bottom: 14px;
  color: rgba(244, 246, 255, 0.58);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-split-title h2 {
  margin: 0;
  color: #f4f6ff;
  font-size: clamp(64px, 6.2vw, 118px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.category-split-track {
  width: min(1700px, calc(100vw - 72px));
  min-height: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.18);
}

.category-split-card {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
  background: #111111;
  opacity: 0;
  transform: translateY(46px);
  transition:
    opacity 0.8s cubic-bezier(0.18, 0.86, 0.28, 1),
    transform 0.96s cubic-bezier(0.18, 0.86, 0.28, 1);
}

.category-split-card:nth-child(2) {
  transition-delay: 0.12s;
}

.category-split-card:nth-child(3) {
  transition-delay: 0.24s;
}

.category-split.is-active .category-split-card {
  opacity: 1;
  transform: translateY(0);
}

.category-split-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.96);
  transform: scale(1.04);
  transition:
    transform 0.9s cubic-bezier(0.18, 0.86, 0.28, 1),
    filter 0.45s ease;
}

.category-split-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), transparent 54%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.36));
}

.category-split-card h2 {
  position: absolute;
  left: 34px;
  top: 32px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 4.4vw, 72px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.045em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

.category-split-card a {
  position: absolute;
  left: 34px;
  bottom: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #111111;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: lowercase;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.category-split-card:hover img {
  filter: saturate(1.05) contrast(1);
  transform: scale(1.09);
}

.category-split-card:hover a {
  background: #58e2ff;
  transform: translateY(-3px);
}

@keyframes panel-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pixel-pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@keyframes orbit-dot {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.35);
  }
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 72px;
  align-items: end;
  margin-bottom: 54px;
}

.section-head .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -34px;
}

.section-head p:not(.section-kicker) {
  margin: 0;
  max-width: 640px;
  font-size: 17px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.project-card {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #090a0a;
}

.project-1,
.project-4 {
  grid-column: span 7;
}

.project-2,
.project-3 {
  grid-column: span 5;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1.01);
  transition:
    opacity 0.35s ease,
    transform 0.5s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.84));
}

.project-card:hover img {
  opacity: 1;
  transform: scale(1.045);
}

.project-info {
  position: absolute;
  z-index: 2;
  left: 32px;
  right: 32px;
  bottom: 32px;
}

.project-info h3 {
  margin: 14px 0 14px;
  font-size: 34px;
  line-height: 1.12;
}

.project-info p {
  max-width: 760px;
  margin: 0;
  font-size: 16px;
}

.strengths {
  padding-top: 48px;
  background: linear-gradient(180deg, #050606, #020303);
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.strength-card {
  background: rgba(6, 9, 9, 0.92);
  min-height: 360px;
  padding: 34px;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.strength-card:hover {
  background: rgba(255, 255, 255, 0.085);
  transform: translateY(-4px);
}

.strength-card h3 {
  margin: 78px 0 18px;
  font-size: 28px;
}

.strength-card p {
  margin: 0;
  font-size: 16px;
}

.contact-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(2, 3, 3, 0.95), rgba(2, 3, 3, 0.72)),
    url("ai-product-render.webp") center / cover no-repeat;
}

.contact-inner h2 {
  max-width: 1280px;
}

.contact-panel {
  display: flex;
  gap: 18px;
  margin-top: 58px;
}

.contact-panel a {
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

.contact-panel a:hover {
  border-color: rgba(56, 244, 215, 0.7);
  color: var(--accent);
}

@media (max-width: 1280px) {
  :root {
    --shell: min(1120px, calc(100vw - 64px));
  }

  body {
    min-width: 1024px;
  }

  .profile-grid,
  .section-head {
    gap: 48px;
  }

  .stats-grid {
    margin-top: -160px;
  }

  .detail-showcase-inner {
    grid-template-columns: 0.82fr 0.74fr 0.74fr;
    column-gap: 28px;
    min-height: 2220px;
  }

  .detail-copy h2 {
    font-size: 86px;
  }

  .detail-script {
    left: 100px;
    top: 122px;
    font-size: 70px;
  }

  .detail-meta {
    gap: 34px;
  }

  .detail-phone {
    width: min(100%, 380px);
    padding: 12px;
    border-radius: 64px;
  }

  .detail-phone-frame {
    width: 100%;
    height: auto;
    border-radius: 52px;
  }

  .detail-scrolls {
    gap: 26px;
    min-height: 2000px;
  }

  .detail-strip {
    height: 2000px;
  }
}

.projects .project-panel > :not(img):not(.project-panel-image),
.projects .project-panel :is(button, span, strong, h3, p),
.projects .project-panel :is(.pixel-chart, .pixel-cluster, .orbit-map),
#projects .project-panel > button,
#projects .project-panel > span,
#projects .project-panel > strong,
#projects .project-panel > h3,
#projects .project-panel > p,
#projects .project-panel > div,
#projects .project-panel button,
#projects .project-panel span,
#projects .project-panel strong,
#projects .project-panel h3,
#projects .project-panel p,
#projects .project-panel .pixel-chart,
#projects .project-panel .pixel-cluster,
#projects .project-panel .orbit-map {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-shadow: none !important;
  pointer-events: none !important;
}

.projects {
  position: relative;
  min-height: 980px;
  padding: 118px 0 138px;
  overflow: hidden;
  color: #f7f7f2;
  background:
    radial-gradient(circle at 50% 34%, rgba(42, 210, 224, 0.18), transparent 30%),
    radial-gradient(circle at 78% 48%, rgba(84, 91, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #050606 0%, #000000 100%);
}

.projects::before {
  content: "";
  position: absolute;
  inset: 14% -8% auto;
  height: 58%;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(circle at 50% 42%, rgba(38, 204, 216, 0.1), transparent 42%);
  opacity: 0.86;
  filter: blur(24px);
}

.projects .project-showcase {
  position: relative;
  z-index: 1;
  width: min(2140px, calc(100vw + 420px));
  max-width: none;
  min-height: 650px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 2vw, 40px);
  padding-top: 238px;
  box-sizing: border-box;
  transform: none;
}

.projects .project-intro {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 3;
  width: min(920px, 90vw);
  aspect-ratio: auto;
  padding: 0;
  display: block;
  min-width: 0;
  color: #ffffff;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.projects .project-intro span {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.projects .project-intro h2 {
  margin: 0;
  color: #f7f7f2;
  font-size: clamp(58px, 5vw, 96px);
  line-height: 0.94;
  letter-spacing: 0;
}

.projects .project-intro p {
  display: none;
}

.projects .project-panel {
  --card-y: 0px;
  --card-scale: 0.76;
  --card-drift: 38px;
  position: relative;
  flex: 0 0 clamp(270px, 21vw, 395px);
  aspect-ratio: 16 / 9;
  height: auto;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #111111;
  opacity: 0;
  transform: translate3d(0, calc(var(--card-y) + 42px), 0) scale(var(--card-scale));
  transform-origin: 50% 50%;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.36),
    0 4px 18px rgba(0, 0, 0, 0.18);
  transition:
    opacity 0.82s cubic-bezier(0.18, 0.86, 0.28, 1),
    transform 0.82s cubic-bezier(0.18, 0.86, 0.28, 1),
    box-shadow 0.35s ease;
  transition-delay: var(--panel-delay, 0s);
}

.projects .project-panel::before {
  content: none;
}

.projects .project-panel::after {
  content: none;
}

.projects .project-panel-image,
.projects .project-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
  transform: none;
  transition: none;
}

.projects.is-active .project-panel {
  opacity: 1;
  transform: translate3d(0, var(--card-y), 0) scale(var(--card-scale));
  animation: project-card-scroll 10.5s ease-in-out infinite alternate;
  animation-delay: calc(var(--panel-delay, 0s) * 0.5);
}

.projects .project-panel:hover {
  filter: none;
  transform: translate3d(0, calc(var(--card-y) - 8px), 0) scale(calc(var(--card-scale) + 0.03));
  animation-play-state: paused;
  box-shadow:
    0 44px 110px rgba(0, 0, 0, 0.22),
    0 8px 18px rgba(0, 0, 0, 0.1);
  transition-delay: 0s;
}

.projects .project-panel:hover .project-panel-image,
.projects .project-panel:hover > img {
  opacity: 1;
  filter: none;
  transform: none;
}

.projects .panel-chart {
  --card-y: 28px;
  --card-scale: 0.74;
  --card-drift: 64px;
  --panel-delay: 0.04s;
  flex-basis: clamp(275px, 20vw, 390px);
  margin-left: -250px;
}

.projects .panel-orbit {
  --card-y: 8px;
  --card-scale: 0.82;
  --card-drift: 44px;
  --panel-delay: 0.1s;
  flex-basis: clamp(300px, 22vw, 430px);
}

.projects .panel-text {
  --card-y: -18px;
  --card-scale: 1.22;
  --card-drift: 26px;
  --panel-delay: 0.16s;
  flex-basis: clamp(420px, 32vw, 640px);
  border-radius: 28px;
  z-index: 3;
}

.projects .panel-image {
  --card-y: 10px;
  --card-scale: 0.84;
  --card-drift: 44px;
  --panel-delay: 0.22s;
  flex-basis: clamp(300px, 22vw, 430px);
}

.projects .panel-pixels {
  --card-y: 30px;
  --card-scale: 0.74;
  --card-drift: 64px;
  --panel-delay: 0.28s;
  flex-basis: clamp(275px, 20vw, 390px);
}

.projects .panel-extra-1 {
  --card-y: -4px;
  --card-scale: 0.7;
  --card-drift: 76px;
  --panel-delay: 0.34s;
  flex-basis: clamp(260px, 19vw, 370px);
}

.projects .panel-extra-2 {
  --card-y: 42px;
  --card-scale: 0.68;
  --card-drift: 82px;
  --panel-delay: 0.4s;
  flex-basis: clamp(250px, 18vw, 350px);
}

.projects .panel-extra-3 {
  --card-y: 18px;
  --card-scale: 0.7;
  --card-drift: 76px;
  --panel-delay: 0.46s;
  flex-basis: clamp(260px, 19vw, 370px);
  margin-right: -250px;
}

@keyframes project-card-scroll {
  0% {
    transform: translate3d(calc(var(--card-drift) * -1), var(--card-y), 0) scale(var(--card-scale));
  }

  100% {
    transform: translate3d(var(--card-drift), var(--card-y), 0) scale(var(--card-scale));
  }
}

@media (max-width: 1280px) {
  .projects {
    min-height: 880px;
    padding: 98px 0 118px;
  }

  .projects .project-showcase {
    width: calc(100vw + 520px);
    min-height: 620px;
    gap: 26px;
    padding-top: 188px;
  }

  .projects .project-intro {
    left: 50%;
  }

  .projects .project-panel {
    flex-basis: 270px;
  }

  .projects .panel-text {
    flex-basis: 430px;
  }
}

.projects {
  min-height: 1360px;
  padding: 118px 0 336px;
}

.projects .project-showcase {
  width: min(1900px, 100vw);
  min-height: 900px;
  display: block;
  padding-top: 285px;
  transform: none;
  overflow: visible;
}

.projects .project-intro {
  top: 0;
  left: 50%;
  width: min(860px, 86vw);
  text-align: center;
  transform: translateX(-50%);
}

.projects .project-intro h2 {
  font-size: clamp(62px, 5.4vw, 104px);
}

.projects .project-panel {
  --carousel-delay: 0s;
  --hover-boost: 1;
  position: absolute;
  left: 50%;
  top: 62%;
  width: clamp(250px, 17vw, 360px);
  height: auto;
  aspect-ratio: 9 / 16;
  flex: none;
  margin: 0;
  border-radius: 24px;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.58);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  box-shadow:
    0 38px 120px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition:
    opacity 0.6s ease,
    box-shadow 0.35s ease;
}

.projects .project-panel::before,
.projects .project-panel::after {
  content: none !important;
}

.projects .project-panel-image,
.projects .project-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  filter: none;
}

.projects.is-active .project-panel {
  opacity: 1;
  animation: project-carousel-loop 28s linear infinite;
  animation-delay: var(--carousel-delay);
}

.projects .project-showcase:hover .project-panel {
  animation-play-state: paused;
}

.projects .project-panel:hover {
  --hover-boost: 1.14;
  z-index: 12 !important;
  filter: none;
  box-shadow:
    0 56px 160px rgba(0, 0, 0, 0.66),
    0 0 0 1px rgba(255, 255, 255, 0.14);
}

.projects .project-panel:hover .project-panel-image,
.projects .project-panel:hover > img {
  transform: none;
  filter: none;
}

.projects .panel-chart {
  --carousel-delay: -7s;
}

.projects .panel-orbit {
  --carousel-delay: -10.5s;
}

.projects .panel-text {
  --carousel-delay: -14s;
  width: clamp(300px, 20vw, 430px);
  border-radius: 28px;
  z-index: 4;
}

.projects .panel-image {
  --carousel-delay: -17.5s;
}

.projects .panel-pixels {
  --carousel-delay: -21s;
}

.projects .panel-extra-1 {
  --carousel-delay: -24.5s;
}

.projects .panel-extra-2 {
  --carousel-delay: -28s;
}

.projects .panel-extra-3 {
  --carousel-delay: -3.5s;
}

@keyframes project-carousel-loop {
  0% {
    opacity: 0;
    z-index: 1;
    transform: translate3d(calc(-50% - 1300px), -50%, 0) scale(calc(0.5 * var(--hover-boost)));
  }

  9% {
    opacity: 0.42;
    z-index: 2;
    transform: translate3d(calc(-50% - 980px), -50%, 0) scale(calc(0.62 * var(--hover-boost)));
  }

  22% {
    opacity: 0.76;
    z-index: 3;
    transform: translate3d(calc(-50% - 690px), -50%, 0) scale(calc(0.78 * var(--hover-boost)));
  }

  38% {
    opacity: 0.92;
    z-index: 4;
    transform: translate3d(calc(-50% - 410px), -50%, 0) scale(calc(0.9 * var(--hover-boost)));
  }

  50% {
    opacity: 1;
    z-index: 8;
    transform: translate3d(-50%, -50%, 0) scale(calc(1.16 * var(--hover-boost)));
  }

  62% {
    opacity: 0.92;
    z-index: 4;
    transform: translate3d(calc(-50% + 410px), -50%, 0) scale(calc(0.9 * var(--hover-boost)));
  }

  78% {
    opacity: 0.76;
    z-index: 3;
    transform: translate3d(calc(-50% + 690px), -50%, 0) scale(calc(0.78 * var(--hover-boost)));
  }

  91% {
    opacity: 0.42;
    z-index: 2;
    transform: translate3d(calc(-50% + 980px), -50%, 0) scale(calc(0.62 * var(--hover-boost)));
  }

  100% {
    opacity: 0;
    z-index: 1;
    transform: translate3d(calc(-50% + 1300px), -50%, 0) scale(calc(0.5 * var(--hover-boost)));
  }
}

@media (max-width: 1280px) {
  .projects {
    min-height: 1140px;
    padding: 100px 0 286px;
  }

  .projects .project-showcase {
    min-height: 760px;
    padding-top: 238px;
  }

  .projects .project-panel {
    width: 255px;
  }

  .projects .panel-text {
    width: 310px;
  }

  @keyframes project-carousel-loop {
    0% {
      opacity: 0;
      z-index: 1;
      transform: translate3d(calc(-50% - 880px), -50%, 0) scale(calc(0.5 * var(--hover-boost)));
    }

    9% {
      opacity: 0.42;
      z-index: 2;
      transform: translate3d(calc(-50% - 660px), -50%, 0) scale(calc(0.62 * var(--hover-boost)));
    }

    22% {
      opacity: 0.76;
      z-index: 3;
      transform: translate3d(calc(-50% - 470px), -50%, 0) scale(calc(0.78 * var(--hover-boost)));
    }

    38% {
      opacity: 0.92;
      z-index: 4;
      transform: translate3d(calc(-50% - 300px), -50%, 0) scale(calc(0.88 * var(--hover-boost)));
    }

    50% {
      opacity: 1;
      z-index: 8;
      transform: translate3d(-50%, -50%, 0) scale(calc(1.16 * var(--hover-boost)));
    }

    62% {
      opacity: 0.92;
      z-index: 4;
      transform: translate3d(calc(-50% + 300px), -50%, 0) scale(calc(0.88 * var(--hover-boost)));
    }

    78% {
      opacity: 0.76;
      z-index: 3;
      transform: translate3d(calc(-50% + 470px), -50%, 0) scale(calc(0.78 * var(--hover-boost)));
    }

    91% {
      opacity: 0.42;
      z-index: 2;
      transform: translate3d(calc(-50% + 660px), -50%, 0) scale(calc(0.62 * var(--hover-boost)));
    }

    100% {
      opacity: 0;
      z-index: 1;
      transform: translate3d(calc(-50% + 880px), -50%, 0) scale(calc(0.5 * var(--hover-boost)));
    }
  }
}

/* Post-hero visual polish pass: keep the first screen unchanged. */
main > section:not(.hero) {
  isolation: isolate;
}

.profile,
.strengths,
.contact-section {
  background:
    radial-gradient(circle at 18% 12%, rgba(35, 216, 222, 0.08), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(71, 95, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #020303 0%, #030707 52%, #010202 100%);
}

.profile {
  padding: clamp(86px, 6.5vw, 126px) 0 clamp(70px, 5vw, 104px);
}

.profile-grid {
  align-items: center;
  gap: clamp(58px, 5vw, 96px);
}

.portrait-wrap {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow:
    0 42px 130px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.42)),
    linear-gradient(90deg, rgba(35, 216, 222, 0.06), transparent 38%);
}

.portrait-caption {
  z-index: 1;
}

.profile-copy h2,
.section-head h2,
.contact-inner h2 {
  color: #f6fbff;
  text-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.profile-copy p:not(.section-kicker) {
  margin-top: 28px;
  color: rgba(244, 249, 249, 0.68);
}

.contact-list,
.stats-grid {
  gap: 14px;
}

.stats-grid {
  margin-top: 14px !important;
}

.contact-list div,
.stat,
.strength-card {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(8, 13, 13, 0.72);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 28px 82px rgba(0, 0, 0, 0.28);
}

.stat strong,
.contact-list strong {
  color: rgba(255, 255, 255, 0.96);
}

.strengths {
  padding: clamp(88px, 6vw, 128px) 0 clamp(104px, 7vw, 152px);
}

.section-head {
  margin-bottom: 46px;
}

.section-head .section-kicker {
  margin-bottom: -24px;
}

.strength-grid {
  gap: 14px;
  border: 0;
  background: transparent;
}

.strength-card {
  min-height: 328px;
  padding: 38px;
}

.strength-card h3 {
  margin-top: 72px;
  color: rgba(255, 255, 255, 0.95);
}

.strength-card:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.038)),
    rgba(11, 18, 18, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 34px 96px rgba(0, 0, 0, 0.38);
}

.workflow {
  min-height: 72vh;
  padding: clamp(72px, 5vw, 106px) 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(66, 145, 255, 0.12), transparent 34%),
    radial-gradient(circle at 36% 70%, rgba(0, 0, 0, 0.045), transparent 36%),
    linear-gradient(180deg, #f6f5f2, #ece9e5);
}

.workflow-layout {
  min-height: 620px;
}

.workflow-cards {
  width: min(76vw, 1460px);
  height: clamp(520px, 58vh, 610px);
  gap: clamp(18px, 1.25vw, 24px);
}

.workflow-card {
  min-height: 520px;
  border-radius: 18px;
  box-shadow:
    0 36px 92px rgba(20, 20, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.workflow-card h3 {
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.commerce-spread {
  padding: clamp(116px, 7vw, 156px) 0 clamp(126px, 8vw, 172px);
  background:
    radial-gradient(circle at 18% 14%, rgba(40, 80, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 46%, rgba(35, 216, 222, 0.08), transparent 34%),
    #000000;
}

.commerce-stage {
  width: min(1740px, calc(100vw - 72px));
  min-height: 800px;
}

.commerce-layout-grid {
  min-height: 570px;
}

.commerce-tile {
  box-shadow:
    0 32px 94px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.commerce-stage-footer {
  padding-top: 10px;
}

.works-carousel {
  min-height: 1120px;
  padding: clamp(128px, 8vw, 170px) 0 clamp(138px, 8vw, 176px);
  background:
    radial-gradient(circle at 18% 18%, rgba(35, 216, 222, 0.08), transparent 28%),
    radial-gradient(circle at 82% 34%, rgba(88, 68, 255, 0.1), transparent 34%),
    linear-gradient(135deg, #080808 0%, #050505 46%, #000000 100%);
}

.works-carousel-heading {
  margin-bottom: 90px;
}

.works-carousel-heading h2 {
  letter-spacing: 0;
}

.works-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-showcase {
  background:
    radial-gradient(circle at 12% 14%, rgba(35, 216, 222, 0.12), transparent 28%),
    linear-gradient(180deg, #010202, #000000 72%);
}

.detail-copy h2 {
  letter-spacing: -0.04em;
}

.detail-phone,
.detail-strip {
  box-shadow:
    0 42px 112px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.detail-strip {
  background: #f7f3ec;
}

.category-split {
  min-height: 112vh;
  padding-top: clamp(126px, 8vw, 176px);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.08), transparent 32%),
    #000000;
}

.category-split-title {
  margin-bottom: 70px;
}

.category-split-track {
  min-height: 820px;
  gap: 14px;
  background: transparent;
}

.category-split-card {
  min-height: 820px;
  border-radius: 8px;
  box-shadow: 0 36px 118px rgba(0, 0, 0, 0.38);
}

.contact-section {
  min-height: 108vh;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 10% -10% auto 38%;
  height: 56%;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent, rgba(35, 216, 222, 0.12), transparent 66%);
  transform: skewY(-8deg);
}

.contact-panel a {
  border-radius: 8px;
  text-decoration: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.contact-panel a:hover {
  background: rgba(35, 216, 222, 0.08);
  transform: translateY(-3px);
}

@media (max-width: 1280px) {
  .profile {
    padding-top: 86px;
  }

  .profile-grid {
    gap: 48px;
  }

  .workflow-cards {
    width: min(74vw, 1060px);
  }

  .commerce-stage {
    width: min(1180px, calc(100vw - 52px));
  }

  .works-carousel-heading h2 {
    font-size: clamp(82px, 8vw, 132px);
  }

  .category-split-track {
    width: min(1180px, calc(100vw - 52px));
  }
}

/* Stronger refinement pass after feedback. */
.hero::after {
  content: none !important;
}

.hero-light-flow {
  opacity: 0.88;
}

.hero-light-flow::before,
.hero-light-flow::after {
  filter: saturate(1.06) contrast(1.02);
}

main > section:not(.hero) {
  position: relative;
}

main > section:not(.hero)::after {
  content: "";
  position: absolute;
  left: max(48px, calc((100vw - var(--shell)) / 2));
  right: max(48px, calc((100vw - var(--shell)) / 2));
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(91, 157, 255, 0.24);
  border-radius: 999px;
  color: #8ad2ff;
  background: rgba(91, 157, 255, 0.065);
  letter-spacing: 0.16em;
}

.profile {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 16%, rgba(91, 157, 255, 0.16), transparent 32%),
    radial-gradient(circle at 86% 16%, rgba(138, 210, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #020303 0%, #071011 55%, #010202 100%);
}

.profile::before {
  content: "ABOUT";
  position: absolute;
  right: max(48px, calc((100vw - var(--shell)) / 2));
  top: 72px;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(128px, 15vw, 260px);
  font-weight: 900;
  line-height: 0.8;
}

.profile-copy h2 {
  font-size: clamp(62px, 5.6vw, 112px);
}

.profile-copy h2::after,
.section-head h2::after,
.contact-inner h2::after {
  content: "";
  display: block;
  width: min(220px, 32%);
  height: 3px;
  margin-top: 24px;
  background: linear-gradient(90deg, #5b9dff, rgba(138, 210, 255, 0));
}

.portrait-wrap {
  transform: translateZ(0);
}

.portrait-lanyard-wrap {
  width: 800px;
  min-width: 800px;
  min-height: 1020px;
  height: 1020px;
  margin-left: 0;
  justify-self: center;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.profile-lanyard-root,
.portrait-lanyard-wrap .lanyard-wrapper,
.portrait-lanyard-wrap .lanyard-wrapper > div {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.portrait-lanyard-wrap .lanyard-wrapper {
  overflow: visible;
}

.portrait-lanyard-wrap .lanyard-wrapper {
  height: 100%;
  min-height: 1020px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-lanyard-root {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-lanyard-wrap.has-lanyard > img,
.portrait-lanyard-wrap.has-lanyard > .portrait-caption {
  display: none;
}

.portrait-lanyard-wrap::after {
  display: none;
}

.portrait-lanyard-wrap .profile-lanyard-root {
  z-index: 5;
}

.contact-list div,
.stat {
  padding: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.01) 58%),
    rgba(6, 10, 10, 0.68);
  border-color: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(20px) saturate(1.08) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 1px 0 0 rgba(255, 255, 255, 0.05),
    0 28px 82px rgba(0, 0, 0, 0.28);
}

.contact-list div:hover,
.stat:hover,
.strength-card:hover {
  border-color: rgba(91, 157, 255, 0.38);
}

.strengths {
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 157, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #010202, #050909 46%, #000000);
}

.strengths .section-head {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.strengths .section-head h2 {
  font-size: clamp(76px, 6.6vw, 136px);
}

.strength-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 380px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.012) 58%),
    rgba(6, 10, 10, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(20px) saturate(1.08) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 1px 0 0 rgba(255, 255, 255, 0.055),
    0 28px 82px rgba(0, 0, 0, 0.28);
}

.strength-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(108deg, rgba(255, 255, 255, 0.16), transparent 17% 76%, rgba(190, 226, 241, 0.045)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 2px);
  opacity: 0.72;
}

.strength-card > * {
  position: relative;
  z-index: 1;
}

.workflow {
  color: #f7fbfa;
  background:
    radial-gradient(circle at 72% 28%, rgba(51, 155, 169, 0.16), transparent 34%),
    radial-gradient(circle at 20% 76%, rgba(25, 66, 72, 0.18), transparent 38%),
    #000000;
}

.workflow .section-kicker,
.workflow-copy h2 {
  color: #f7fbfa;
}

.workflow-copy h2 {
  font-size: clamp(82px, 6.6vw, 126px);
}

.workflow-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.workflow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 34%);
  opacity: 0.48;
}

.workflow-card-main div,
.workflow-card-slim h3 {
  z-index: 3;
}

.commerce-spread {
  min-height: 1120px;
  background:
    radial-gradient(circle at 20% 18%, rgba(91, 157, 255, 0.22), transparent 32%),
    radial-gradient(circle at 78% 52%, rgba(62, 72, 255, 0.14), transparent 38%),
    linear-gradient(180deg, #020204, #000000 56%, #030404);
}

.commerce-stage-footer h2 {
  font-size: clamp(46px, 4vw, 78px);
}

.commerce-tile {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.works-carousel {
  min-height: 1200px;
  background:
    radial-gradient(circle at 20% 24%, rgba(91, 157, 255, 0.16), transparent 32%),
    radial-gradient(circle at 78% 34%, rgba(125, 75, 255, 0.16), transparent 38%),
    linear-gradient(180deg, #050506, #000000 68%);
}

.works-carousel-heading {
  align-items: end;
}

.works-carousel-heading h2 {
  font-size: clamp(116px, 10vw, 210px);
}

.works-card {
  filter: saturate(1.02);
}

.detail-showcase {
  background:
    radial-gradient(circle at 18% 10%, rgba(91, 157, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #000000, #030707 44%, #000000);
}

.detail-copy h2 span:first-child,
.detail-script {
  color: #5ee8ff;
}

.detail-footer-band {
  background: linear-gradient(90deg, #4ea6ff, #5ee8ff);
}

.category-split-title h2 {
  font-size: clamp(86px, 7.8vw, 148px);
}

.category-split-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.contact-section {
  background:
    radial-gradient(circle at 14% 24%, rgba(91, 157, 255, 0.14), transparent 32%),
    linear-gradient(180deg, #020303, #000000);
}

/* Masonry showcase override for the static preview layout. */
.commerce-spread .commerce-masonry-preview {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 760px !important;
  min-height: 760px !important;
}

.commerce-spread .commerce-masonry-preview .commerce-tile {
  position: absolute !important;
  display: block !important;
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
}

.commerce-spread .commerce-masonry-preview .commerce-tile-1 { left: 0 !important; top: 0 !important; width: 20% !important; height: 330px !important; }
.commerce-spread .commerce-masonry-preview .commerce-tile-2 { left: 22% !important; top: 0 !important; width: 30% !important; height: 760px !important; }
.commerce-spread .commerce-masonry-preview .commerce-tile-3 { left: 54% !important; top: 0 !important; width: 46% !important; height: 330px !important; }
.commerce-spread .commerce-masonry-preview .commerce-tile-4 { left: 54% !important; top: 350px !important; width: 22% !important; height: 410px !important; }
.commerce-spread .commerce-masonry-preview .commerce-tile-5 { left: 78% !important; top: 350px !important; width: 22% !important; height: 410px !important; }
.commerce-spread .commerce-masonry-preview .commerce-tile-copy { left: 0 !important; top: 350px !important; width: 20% !important; height: 410px !important; }

.commerce-spread .commerce-masonry-preview .commerce-tile:hover {
  z-index: 4 !important;
  transform: scale(0.96) !important;
}

/* Refined commerce showcase: editorial copy + focused masonry gallery. */
.commerce-spread {
  min-height: 1040px;
  padding: clamp(88px, 7vw, 132px) 0;
  background:
    radial-gradient(circle at 22% 35%, rgba(43, 193, 202, 0.12), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(74, 93, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #020405, #050b0d 52%, #020303);
}

.commerce-stage {
  width: min(1540px, calc(100vw - 112px));
  min-height: 820px;
  padding: 0;
}

.commerce-stage-header {
  margin-bottom: 56px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(178, 226, 232, 0.13);
}

.commerce-logo-pill,
.commerce-menu-pill {
  min-height: 38px;
  border: 1px solid rgba(182, 226, 235, 0.24);
  color: rgba(235, 249, 251, 0.9);
  background: rgba(14, 27, 31, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.commerce-logo-pill {
  min-width: 84px;
  padding: 0 18px;
  font-size: 14px;
}

.commerce-menu-pill {
  min-width: 112px;
  padding-right: 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.commerce-menu-grid {
  width: 32px;
  height: 32px;
  background: #dffbff;
}

.commerce-menu-grid i {
  width: 4px;
  height: 4px;
  background: #081014;
}

.commerce-stage-body {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1.85fr);
  gap: clamp(44px, 6vw, 104px);
  align-items: center;
}

.commerce-masonry-wrap {
  width: 100%;
  min-height: 760px;
  order: 2;
}

.commerce-masonry-wrap .masonry-list,
.commerce-spread .commerce-masonry-preview {
  height: 760px !important;
  min-height: 760px !important;
}

.commerce-stage-footer {
  order: 1;
  display: block;
  opacity: 1;
  transform: none;
  align-self: center;
  padding: 24px 0 24px 28px;
  border-left: 1px solid rgba(145, 232, 239, 0.28);
}

.commerce-stage-footer::before {
  content: "01 / E-COMMERCE DESIGN";
  display: block;
  margin-bottom: 26px;
  color: #8bdfe8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.commerce-stage-footer h2,
.commerce-stage-body .commerce-stage-footer h2 {
  max-width: 360px;
  margin: 0;
  color: #f4fbfc;
  font-size: clamp(52px, 5.3vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.commerce-stage-footer p {
  max-width: 320px;
  margin: 30px 0 0;
  color: rgba(219, 239, 241, 0.6);
  font-size: 14px;
  line-height: 1.75;
}

.commerce-stage-footer .commerce-stage-cta {
  position: static;
  display: inline-flex;
  margin-top: 34px;
  transform: none;
  border: 1px solid rgba(160, 231, 237, 0.34);
  color: #dffbff;
  background: rgba(80, 184, 198, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.commerce-spread .commerce-masonry-preview .commerce-tile {
  border: 1px solid rgba(198, 235, 239, 0.17);
  border-radius: 18px;
  background: rgba(12, 23, 26, 0.68);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.commerce-spread .commerce-masonry-preview .commerce-tile img {
  filter: grayscale(0.38) saturate(0.78) contrast(1.03);
}

.commerce-spread .commerce-masonry-preview .commerce-tile:hover img {
  filter: grayscale(0.04) saturate(1) contrast(1.05);
}

.commerce-spread .commerce-masonry-preview .commerce-tile span {
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(211, 245, 248, 0.2);
  background: rgba(9, 20, 23, 0.56);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.commerce-spread .commerce-masonry-preview .commerce-tile strong {
  bottom: 18px;
  font-size: clamp(16px, 1.4vw, 24px);
}

/* First-screen composition aligned to the latest visual reference. */
.hero .site-header {
  top: 0;
  width: min(1760px, calc(100vw - 96px));
  min-height: 80px;
}

.hero .hero-content {
  width: min(1760px, calc(100vw - 96px));
  min-height: 100vh;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 150px 0 76px;
  text-align: left;
}

.hero .eyebrow {
  position: absolute;
  top: 150px;
  left: 46%;
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
}

.hero .hero-title {
  margin-left: 90px;
  text-align: left;
}

.hero .hero-side-note {
  top: 23vh;
  right: 0;
  left: auto;
  text-align: center;
}

.hero .hero-copy {
  margin-top: 34px;
  margin-left: 285px;
  text-align: left;
}

.hero .hero-actions {
  align-self: flex-start;
  margin-top: 48px;
  margin-left: -4px;
  text-align: left;
}

.hero .hero-actions a {
  position: relative;
  overflow: hidden;
  text-align: center;
  min-width: 166px;
  padding: 15px 22px;
  border: 1px solid rgba(242, 249, 255, 0.9);
  border-radius: 999px;
  color: rgba(247, 250, 255, 0.96);
  background: linear-gradient(110deg, rgba(247, 252, 255, 0.12), rgba(139, 170, 239, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -1px 0 rgba(16, 38, 105, 0.12), 0 6px 16px rgba(8, 22, 74, 0.1);
  backdrop-filter: blur(4px) saturate(1.04);
  text-shadow: 0 1px 5px rgba(20, 30, 68, 0.28);
}

.hero .hero-actions a::before {
  content: none;
}

.hero .hero-actions a:first-child {
  color: rgba(247, 250, 255, 0.96);
  border-color: rgba(242, 249, 255, 0.9);
  background: linear-gradient(110deg, rgba(247, 252, 255, 0.12), rgba(139, 170, 239, 0.2));
}

.hero .hero-actions a:hover {
  color: #ffffff;
  border-color: rgba(235, 245, 255, 0.88);
  background: linear-gradient(110deg, rgba(244, 250, 255, 0.4), rgba(136, 164, 235, 0.48));
  transform: translateY(-2px);
}

.hero-badges {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: #f5f5f3;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 38px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px) saturate(1.15);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-badge-branding {
  top: 205px;
  left: 345px;
}

.hero-badge-logo {
  top: 280px;
  left: 700px;
  color: #11131b;
  background: rgba(245, 246, 246, 0.88);
}

.hero-badge-amazon {
  top: 435px;
  left: 575px;
}

.hero-badge-type {
  top: 550px;
  left: 100px;
  color: #14151b;
  background: rgba(245, 246, 246, 0.86);
}

.hero-badge-smd {
  top: 620px;
  left: 790px;
}

.hero-footer-note {
  position: absolute;
  left: 90px;
  bottom: 106px;
  z-index: 5;
  width: min(500px, 38vw);
  margin: 0;
  color: rgba(240, 242, 244, 0.56);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.hero-footer-role {
  position: absolute;
  right: 0;
  bottom: 102px;
  z-index: 5;
  display: grid;
  color: rgba(246, 247, 247, 0.86);
  font-size: 16px;
  line-height: 1.1;
  text-align: right;
}

@media (max-width: 1280px) {
  .hero-badge {
    min-height: 38px;
    padding: 4px 16px;
    font-size: 16px;
  }

  .hero-badge-branding { top: 190px; left: 250px; }
  .hero-badge-logo { top: 245px; left: 520px; }
  .hero-badge-amazon { top: 390px; left: 430px; }
  .hero-badge-type { top: 485px; left: 55px; }
  .hero-badge-smd { top: 545px; left: 590px; }

  .hero-footer-note { left: 48px; bottom: 88px; width: 420px; }
  .hero-footer-role { right: 36px; bottom: 86px; }
}

@media (max-width: 1280px) {
  .hero .hero-content {
    padding-top: 138px;
  }

  .hero .eyebrow {
    top: 138px;
    left: 44%;
  }

  .hero .hero-title {
    margin-left: 48px;
  }

  .hero .hero-copy {
    margin-left: 180px;
  }
}

/* Centered poster composition: the title is the visual axis. */
.hero {
  background: #050505;
}

.hero-shade {
  background:
    radial-gradient(ellipse 72% 70% at 50% 42%, rgba(50, 55, 132, 0.68), transparent 70%),
    radial-gradient(ellipse 72% 58% at 15% 78%, rgba(30, 35, 98, 0.5), transparent 74%),
    linear-gradient(180deg, #050505 0%, #0b0b12 55%, #050505 100%);
}

.hero .hero-content {
  width: min(1760px, calc(100vw - 96px));
  align-items: center;
  justify-content: flex-start;
  padding: 146px 0 76px;
  text-align: center;
}

.hero .eyebrow {
  top: 116px;
  left: 90px;
  transform: none;
  text-align: left;
}

.hero .hero-title {
  width: min(1120px, 90vw);
  max-width: none;
  margin: 56px 0 0;
  font-size: clamp(148px, 15.5vw, 292px);
  line-height: 0.72;
  text-align: center;
}

.hero .hero-copy {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 4;
  margin: 36px 0 0;
  text-align: center;
}

.hero .hero-actions {
  position: static;
  z-index: auto;
  align-self: center;
  justify-content: center;
  margin: 42px 0 0;
}

.hero .hero-side-note {
  top: 23vh;
  right: 7%;
  left: auto;
  text-align: center;
}

.hero-badges {
  left: 50%;
  width: min(1120px, 90vw);
  transform: translateX(-50%);
}

.hero-badge-branding {
  top: 206px;
  left: 30%;
  transform: translateX(-50%);
}

.hero-badge-logo {
  top: 282px;
  left: 72%;
  transform: translateX(-50%);
}

.hero-badge-amazon {
  top: 434px;
  left: 58%;
  transform: translateX(-50%);
}

.hero-badge-type {
  top: 552px;
  left: 15%;
  transform: translateX(-50%);
}

.hero-badge-smd {
  top: 620px;
  left: 77%;
  transform: translateX(-50%);
}

.hero-footer-note {
  left: 50%;
  bottom: 104px;
  width: min(520px, 58vw);
  transform: translateX(-50%);
  text-align: center;
}

.hero-footer-role {
  right: 4%;
  bottom: 104px;
  text-align: right;
}

@media (max-width: 1280px) {
  .hero .hero-content {
    padding-top: 132px;
  }

  .hero .eyebrow {
    top: 104px;
    left: 48px;
  }

  .hero .hero-title {
    width: min(920px, 90vw);
    margin-top: 54px;
    font-size: clamp(132px, 15vw, 230px);
  }

  .hero .hero-side-note {
    right: 4%;
  }


  .hero-badge {
    min-height: 38px;
    padding: 4px 16px;
    font-size: 16px;
  }

  .hero-badge-branding { top: 190px; left: 28%; }
  .hero-badge-logo { top: 250px; left: 72%; }
  .hero-badge-amazon { top: 390px; left: 58%; }
  .hero-badge-type { top: 488px; left: 13%; }
  .hero-badge-smd { top: 548px; left: 78%; }

  .hero-footer-note { bottom: 84px; }
  .hero-footer-role { right: 3%; bottom: 84px; }
}

/* Red-marked hero placements from the latest reference image. */
.hero .hero-side-note {
  top: 108px;
  right: 3%;
  z-index: 5;
  text-align: right;
}

.hero-name {
  position: absolute;
  left: 8px;
  bottom: 42px;
  z-index: 5;
  margin: 0;
  color: #ffffff;
  font-size: clamp(22px, 1.55vw, 30px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: left;
}

.hero .hero-footer-role {
  right: 1.5%;
  bottom: 48px;
  text-align: right;
}

@media (max-width: 1280px) {
  .hero .hero-side-note {
    top: 96px;
    right: 5%;
  }

  .hero-name {
    left: 0;
    bottom: 34px;
    font-size: 22px;
  }

  .hero .hero-footer-role {
    right: 1%;
    bottom: 38px;
  }
}

/* Move the hero name into the red-marked lower-left position. */
.hero-name {
  left: 145px;
  bottom: 58px;
}

@media (max-width: 1280px) {
  .hero-name {
    left: 132px;
    bottom: 51px;
  }
}

/* Lower the two remaining floating glass panels together. */
.hero-glass-a,
.hero-glass-b {
  margin-top: 50px;
}

/* Reduce the background glass panels to compact floating tiles. */
.hero-glass-a {
  width: min(190px, 14vw);
}

.hero-glass-b {
  width: min(220px, 15vw);
}

@media (max-width: 1280px) {
  .hero-glass-a {
    width: min(160px, 16vw);
  }

  .hero-glass-b {
    width: min(180px, 16vw);
  }
}

/* Drop the category navigation into the lower marked band. */
.hero .hero-actions {
  margin-top: 186px;
  gap: 24px;
}

@media (max-width: 1280px) {
  .hero .hero-actions {
    margin-top: 150px;
    gap: 18px;
  }
}

/* Masonry reference layout: editorial copy on the left, image columns on the right. */
.circular-projects {
  min-height: 1180px;
  padding: 110px 0 150px;
  background: radial-gradient(circle at 50% 46%, rgba(39, 151, 160, 0.14), transparent 38%), #050607;
}

.circular-projects .project-showcase {
  display: block;
  width: min(1680px, calc(100vw - 80px));
  min-height: 1020px;
  padding: 0;
}

.circular-projects .project-intro {
  position: relative;
  inset: auto;
  width: auto;
  margin: 0;
  transform: none;
  text-align: center;
  pointer-events: none;
}

.circular-projects .project-intro span {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.circular-projects .project-intro h2 {
  color: #f8f8f4;
  font-size: clamp(58px, 6.4vw, 112px);
  line-height: 0.92;
}

.circular-projects .circular-projects-gallery {
  position: relative;
  height: 660px;
  margin-top: 28px;
}

.circular-projects .project-panel { display: none !important; }

.circular-preview-gallery {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 830px;
  margin-top: 72px;
  overflow: hidden;
}

.circular-preview-gallery::before {
  content: "";
  position: absolute;
  inset: 8% 18%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(103, 237, 221, 0.18), transparent 64%);
  filter: blur(22px);
  opacity: 0;
  transition: opacity 900ms ease;
}

.circular-preview-gallery.is-ready::before {
  opacity: 1;
  animation: text-gallery-glow 3.8s ease-in-out infinite alternate;
}

.circular-preview-gallery > button {
  position: absolute;
  left: 50%;
  top: 56%;
  width: clamp(210px, 21vw, 360px);
  height: clamp(350px, 39vw, 610px);
  padding: clamp(22px, 2.1vw, 36px);
  overflow: hidden;
  border: 1px solid rgba(185, 240, 235, 0.22);
  border-radius: 26px;
  background: radial-gradient(circle at 18% 12%, rgba(139, 234, 223, 0.2), transparent 32%), linear-gradient(145deg, rgba(26, 52, 55, 0.98), rgba(7, 13, 16, 0.98) 64%, rgba(25, 74, 78, 0.88));
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.18);
  cursor: pointer;
  opacity: var(--gallery-opacity, 1);
  color: inherit;
  font: inherit;
  text-align: left;
  appearance: none;
  transform: translate(-50%, -50%) translateX(var(--gallery-x, 0)) translateY(var(--gallery-y, 0)) scale(calc(var(--gallery-scale, 1) * var(--gallery-pop, 1))) rotate(var(--gallery-rotate, 0deg));
  transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1), opacity 420ms ease, filter 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
}

.circular-preview-gallery > button:not(.is-active) { filter: saturate(0.6) brightness(0.62); }
.circular-preview-gallery > button.is-active { border-color: rgba(190, 255, 246, 0.74); filter: saturate(1.08) brightness(1.06); box-shadow: 0 36px 96px rgba(0, 0, 0, 0.62), 0 0 42px rgba(81, 229, 211, 0.16), inset 0 1px rgba(255, 255, 255, 0.28); }
.circular-preview-gallery > button::before { content: ""; position: absolute; inset: -35%; background: linear-gradient(105deg, transparent 38%, rgba(183, 255, 244, 0.3) 50%, transparent 62%); opacity: 0.7; transform: translateX(-54%) rotate(8deg); transition: transform 850ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.circular-preview-gallery > button::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(218, 255, 251, 0.055) 11px 12px); opacity: 0.6; }
.circular-preview-gallery .gallery-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.72; filter: saturate(.92) contrast(1.08); mix-blend-mode: normal; pointer-events: none; transition: opacity .52s ease, transform .9s cubic-bezier(.2,.8,.2,1), filter .52s ease; }
.circular-preview-gallery > button.is-active .gallery-image, .circular-preview-gallery > button:hover .gallery-image { opacity: .9; filter: saturate(1.08) contrast(1.06); transform: scale(1.06); }
.circular-preview-gallery > button.is-active::before, .circular-preview-gallery > button:hover::before { transform: translateX(54%) rotate(8deg); }
.circular-preview-gallery .gallery-number, .circular-preview-gallery .gallery-eyebrow, .circular-preview-gallery .gallery-title, .circular-preview-gallery .gallery-copy, .circular-preview-gallery i { position: absolute !important; z-index: 1 !important; display: block !important; margin: 0 !important; text-shadow: none !important; }
.circular-preview-gallery .gallery-number { top: clamp(20px, 2vw, 30px) !important; right: clamp(22px, 2vw, 32px) !important; left: auto !important; bottom: auto !important; color: rgba(223, 255, 251, 0.64) !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: 0.14em !important; }
.circular-preview-gallery .gallery-eyebrow { top: clamp(24px, 2.2vw, 34px) !important; left: clamp(22px, 2vw, 32px) !important; right: auto !important; bottom: auto !important; color: #a9f4e9 !important; font-size: 10px !important; font-weight: 800 !important; letter-spacing: 0.14em !important; text-transform: uppercase !important; }
.circular-preview-gallery .gallery-title { right: clamp(22px, 2vw, 32px) !important; bottom: clamp(112px, 11vw, 164px) !important; left: clamp(22px, 2vw, 32px) !important; color: #f3fffd !important; font-size: clamp(30px, 2.8vw, 50px) !important; font-weight: 800 !important; letter-spacing: -0.07em !important; line-height: 0.9 !important; overflow-wrap: anywhere; }
.circular-preview-gallery .gallery-copy { right: clamp(22px, 2vw, 32px) !important; bottom: clamp(28px, 2.6vw, 42px) !important; left: clamp(22px, 2vw, 32px) !important; color: rgba(229, 250, 247, 0.72) !important; font-size: clamp(10px, 0.78vw, 12px) !important; font-weight: 500 !important; letter-spacing: 0.02em !important; line-height: 1.45 !important; }
.circular-preview-gallery i { right: clamp(22px, 2vw, 32px); bottom: clamp(94px, 9vw, 134px); left: clamp(22px, 2vw, 32px); height: 1px; background: linear-gradient(90deg, rgba(178, 255, 244, 0.75), transparent); transform-origin: left; transition: transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.circular-preview-gallery > button:not(.is-active) i { transform: scaleX(0.48); }
.circular-preview-gallery > button.is-clicked { animation: text-gallery-click 720ms cubic-bezier(0.16, 1, 0.3, 1); }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 5vh 5vw;
  background: rgba(0, 0, 0, 0.84);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.gallery-lightbox.is-open { opacity: 1; pointer-events: auto; }
.gallery-lightbox figure { position: relative; max-width: min(940px, 88vw); max-height: 88vh; margin: 0; transform: translateY(20px) scale(0.96); transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.gallery-lightbox.is-open figure { transform: translateY(0) scale(1); }
.gallery-lightbox img { display: block; max-width: 100%; max-height: 80vh; border: 1px solid rgba(190, 255, 246, 0.55); border-radius: 18px; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65); }
.gallery-lightbox figcaption { margin-top: 14px; color: #eafffb; font-size: 14px; letter-spacing: 0.12em; text-align: center; text-transform: uppercase; }
.gallery-lightbox-close { position: absolute; top: 24px; right: 30px; z-index: 1; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, 0.42); border-radius: 50%; color: #fff; background: rgba(0, 0, 0, 0.35); font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox-open { overflow: hidden; }

.circular-preview-gallery.is-ready > button.is-active .gallery-title {
  animation: text-gallery-title-in 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes text-gallery-glow {
  from { opacity: 0.42; transform: scale(0.9); }
  to { opacity: 0.92; transform: scale(1.12); }
}

@keyframes text-gallery-title-in {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes text-gallery-click {
  0% { filter: brightness(1.45); }
  100% { filter: brightness(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .circular-preview-gallery.is-ready::before,
  .circular-preview-gallery.is-ready > button.is-active .gallery-title { animation: none; }
}

.circular-projects .circular-gallery {
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .circular-projects { min-height: 760px; padding: 76px 0; }
  .circular-projects .project-showcase { width: min(100% - 32px, 720px); min-height: 620px; }
  .circular-projects .circular-projects-gallery { height: 500px; }
}

/* Masonry reference layout: editorial copy on the left, image columns on the right. */
.commerce-spread {
  min-height: 1120px;
  padding: 72px 0 88px;
  background:
    radial-gradient(circle at 18% 35%, rgba(28, 173, 179, 0.08), transparent 30%),
    linear-gradient(180deg, #05090b 0%, #020406 100%);
}

.commerce-stage {
  width: min(1720px, calc(100vw - 112px));
  min-height: 950px;
  padding: 0;
}

.commerce-stage-header {
  min-height: 66px;
  margin-bottom: 64px;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(164, 214, 219, 0.14);
}

.commerce-logo-pill,
.commerce-menu-pill {
  min-height: 42px;
  border: 1px solid rgba(181, 224, 228, 0.24);
  color: rgba(232, 248, 249, 0.9);
  background: rgba(13, 26, 30, 0.48);
}

.commerce-logo-pill { min-width: 94px; font-size: 15px; }
.commerce-menu-pill { min-width: 132px; font-size: 11px; letter-spacing: 0.26em; }

.commerce-stage-body {
  min-height: 820px;
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1.85fr);
  gap: clamp(48px, 6vw, 112px);
  align-items: center;
}

.commerce-stage-footer {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  display: block;
  padding: 34px 0 38px 30px;
  border-left: 1px solid rgba(139, 223, 232, 0.28);
}

.commerce-stage-footer::before {
  margin-bottom: 28px;
  color: #8bdfe8;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.commerce-stage-footer h2,
.commerce-stage-body .commerce-stage-footer h2 {
  max-width: 360px;
  color: #f4fbfc;
  font-size: clamp(58px, 5.8vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.commerce-stage-footer p { max-width: 340px; margin-top: 34px; font-size: 14px; line-height: 1.7; }
.commerce-stage-footer .commerce-stage-cta { margin-top: 36px; }

.commerce-stage-body > .commerce-masonry-wrap,
.commerce-stage-body > .commerce-masonry-preview {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 820px !important;
  min-height: 820px !important;
}

/* Static preview cards mirror the Masonry component's uneven columns. */
.commerce-spread .commerce-masonry-preview {
  position: relative !important;
  display: block !important;
  overflow: visible;
}

.commerce-spread .commerce-masonry-preview .commerce-tile {
  position: absolute !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 18px;
  opacity: 1 !important;
  transform: none !important;
}

.commerce-spread .commerce-masonry-preview .commerce-tile-1 { left: 0 !important; top: 0 !important; width: 24% !important; height: 360px !important; }
.commerce-spread .commerce-masonry-preview .commerce-tile-2 { left: 26% !important; top: 0 !important; width: 30% !important; height: 820px !important; }
.commerce-spread .commerce-masonry-preview .commerce-tile-3 { left: 58% !important; top: 0 !important; width: 42% !important; height: 360px !important; }
.commerce-spread .commerce-masonry-preview .commerce-tile-4 { left: 58% !important; top: 380px !important; width: 20% !important; height: 440px !important; }
.commerce-spread .commerce-masonry-preview .commerce-tile-5 { left: 80% !important; top: 380px !important; width: 20% !important; height: 440px !important; }
.commerce-spread .commerce-masonry-preview .commerce-tile-copy { display: none !important; }

.commerce-spread .commerce-masonry-preview .commerce-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.02);
}

.commerce-spread .commerce-masonry-preview .commerce-tile span {
  top: 18px;
  left: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(8, 15, 18, 0.56);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.commerce-spread .commerce-masonry-preview .commerce-tile strong {
  bottom: 20px;
  font-size: clamp(16px, 1.35vw, 25px);
}

@media (max-width: 900px) {
  .commerce-stage { width: min(100% - 40px, 720px); }
  .commerce-stage-body { grid-template-columns: 1fr; gap: 42px; }
  .commerce-stage-footer,
  .commerce-stage-body > .commerce-masonry-wrap,
  .commerce-stage-body > .commerce-masonry-preview { grid-column: 1; grid-row: auto; }
  .commerce-stage-footer { padding-left: 20px; }
  .commerce-stage-body > .commerce-masonry-wrap,
  .commerce-stage-body > .commerce-masonry-preview { height: 680px !important; min-height: 680px !important; }
}

/* Use a square tile grid for the commerce showcase. */
.commerce-stage-body > .commerce-masonry-preview {
  height: auto !important;
  min-height: 0 !important;
}

.commerce-spread .commerce-masonry-preview {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, auto);
  align-items: start;
  gap: clamp(18px, 1.7vw, 30px);
  min-height: 0 !important;
  height: auto !important;
}

.commerce-spread .commerce-masonry-preview .commerce-tile {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
}

.commerce-spread .commerce-masonry-preview .commerce-tile-1 { grid-column: 1; grid-row: 1; }
.commerce-spread .commerce-masonry-preview .commerce-tile-2 { grid-column: 2 / span 2; grid-row: 1 / span 2; }
.commerce-spread .commerce-masonry-preview .commerce-tile-3 { grid-column: 4; grid-row: 1; }
.commerce-spread .commerce-masonry-preview .commerce-tile-4 { grid-column: 1; grid-row: 2; }
.commerce-spread .commerce-masonry-preview .commerce-tile-5 { grid-column: 4; grid-row: 2; }
.commerce-spread .commerce-masonry-preview .commerce-tile-6 { grid-column: 1; grid-row: 3; }
.commerce-spread .commerce-masonry-preview .commerce-tile-7 { grid-column: 2; grid-row: 3; }
.commerce-spread .commerce-masonry-preview .commerce-tile-8 { grid-column: 3; grid-row: 3; }
.commerce-spread .commerce-masonry-preview .commerce-tile-9 { grid-column: 4; grid-row: 3; }

@media (max-width: 900px) {
  .commerce-spread .commerce-masonry-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commerce-spread .commerce-masonry-preview .commerce-tile-1,
  .commerce-spread .commerce-masonry-preview .commerce-tile-2,
  .commerce-spread .commerce-masonry-preview .commerce-tile-3,
  .commerce-spread .commerce-masonry-preview .commerce-tile-4,
  .commerce-spread .commerce-masonry-preview .commerce-tile-5 {
    grid-column: auto;
    grid-row: auto;
  }

  .commerce-spread .commerce-masonry-preview .commerce-tile-6,
  .commerce-spread .commerce-masonry-preview .commerce-tile-7,
  .commerce-spread .commerce-masonry-preview .commerce-tile-8,
  .commerce-spread .commerce-masonry-preview .commerce-tile-9 {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Slightly enlarge and lower the main Portfolio title. */
.hero .hero-title {
  transform: translateY(33px) scale(1.06);
  transform-origin: center top;
}

.hero-badges {
  transform: translate(-50%, 18px);
}

@media (max-width: 1280px) {
  .hero .hero-title {
    transform: translateY(33px) scale(1.05);
  }
}

/* Match the reference copy layout: year pill at upper-left and role at upper-right. */
.hero .eyebrow {
  top: 104px;
  left: 3.5%;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(34, 24, 133, 0.62);
  box-shadow: 0 10px 24px rgba(11, 10, 62, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 18px;
  letter-spacing: 0.14em;
  text-align: center;
}

.hero .hero-footer-role {
  top: 122px;
  right: 5%;
  bottom: auto;
  display: block;
  white-space: nowrap;
  font-size: 20px;
  line-height: 1.08;
}

.hero .hero-name {
  display: none;
}

@media (max-width: 1280px) {
  .hero .eyebrow {
    top: 94px;
    left: 3.5%;
    padding: 7px 14px;
    font-size: 16px;
  }

  .hero .hero-footer-role {
    top: 114px;
    right: 4%;
    white-space: nowrap;
    font-size: 17px;
  }
}

