:root {
  --bg: #050505;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.1);
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --text: #fff;
  --text-soft: rgba(255, 255, 255, 0.68);
  --glow: rgba(92, 141, 255, 0.14);
}

body.light {
  --bg: #f4f1ea;
  --white: #111;
  --muted: rgba(18, 18, 18, 0.62);
  --line: rgba(18, 18, 18, 0.12);
  --panel: rgba(255, 255, 255, 0.56);
  --panel-strong: rgba(255, 255, 255, 0.72);
  --text: #111;
  --text-soft: rgba(18, 18, 18, 0.68);
  --glow: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.55;
  transition: background 0.35s, color 0.35s;
  user-select: none;
}

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

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
}

.bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg::before {
  position: absolute;
  left: 50%;
  top: -18rem;
  width: 46rem;
  height: 46rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(150px);
  content: "";
}

.bg::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0, rgba(0, 0, 0, 0.55) 72%);
  content: "";
}

body.light .bg::after {
  background: radial-gradient(circle at center, transparent 0, rgba(244, 241, 234, 0.74) 74%);
}

#glow {
  pointer-events: none;
  position: fixed;
  z-index: 1;
  width: 760px;
  height: 760px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(92, 141, 255, 0.14) 28%,
    rgba(255, 145, 77, 0.09) 54%,
    transparent 72%
  );
  filter: blur(90px);
  mix-blend-mode: screen;
  transform: translate(-500px, -500px);
  transition: transform 0.08s linear;
}

.site-header {
  position: fixed;
  left: 18px;
  right: 18px;
  top: 14px;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.44);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(26px);
}

body.light .site-header {
  border-color: rgba(18, 18, 18, 0.095);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 48px rgba(80, 70, 55, 0.1);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s;
}

.logo-word {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

body.light .logo-word {
  color: rgba(17, 17, 17, 0.78);
}

.site-logo:hover,
.theme-toggle:hover,
.back-to-top:hover {
  transform: scale(1.06);
  background: var(--panel-strong);
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

body.light .nav {
  border-color: rgba(18, 18, 18, 0.075);
  background: rgba(18, 18, 18, 0.025);
}

.nav a {
  position: relative;
  min-width: 76px;
  padding: 8px 14px 9px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-align: center;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease;
}

body.light .nav a {
  color: rgba(18, 18, 18, 0.58);
}

.nav a::after {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 14px;
  height: 1px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: translateX(-50%) scaleX(0.4);
  transition: 0.22s ease;
  content: "";
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
  text-shadow: none;
}

.nav a:hover::after {
  opacity: 0.58;
  transform: translateX(-50%) scaleX(1);
}

body.light .nav a:hover {
  color: rgba(18, 18, 18, 0.86);
  background: rgba(18, 18, 18, 0.045);
}

.theme-toggle,
.back-to-top {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  cursor: pointer;
  transition: 0.25s;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
}

.theme-toggle::before {
  font-size: 17px;
  content: "☾";
}

body.light .theme-toggle::before {
  content: "☼";
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 58;
  width: 48px;
  height: 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.wrap {
  position: relative;
  z-index: 10;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero {
  min-height: auto;
  padding-top: 92px;
  text-align: center;
}

.hero-copy {
  position: relative;
  min-height: clamp(720px, 92vh, 980px);
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 0 46px;
  perspective: 900px;
}

.hero-copy::before {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(720px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.028) 42%, transparent 68%);
  filter: blur(12px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.68);
  animation: haloPop 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
  content: "";
}

.pill,
.label,
.eyebrow,
.tag,
.work-type,
.site-footer,
.stat small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.pill,
.label {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 700;
}

.hero .pill {
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  animation: popIn 0.72s cubic-bezier(0.2, 1.5, 0.34, 1) 0.12s forwards;
}

.hero h1 {
  position: relative;
  z-index: 8;
  max-width: 1400px;
  margin: clamp(34px, 4vw, 58px) auto clamp(28px, 3.2vw, 46px);
  font-size: clamp(92px, 12.4vw, 224px);
  line-height: 0.88;
  letter-spacing: -0.065em;
  font-weight: 800;
  pointer-events: auto;
  transform-origin: center;
}

.gradient {
  display: block;
  background: linear-gradient(90deg, rgba(226, 226, 222, 0.86), rgba(190, 190, 186, 0.72), rgba(138, 138, 134, 0.58));
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

.hero-char {
  display: inline-block;
  opacity: 0;
  color: rgba(198, 198, 193, 0.88);
  transform: translateY(0.32em) translateZ(-120px) scale(0.72) rotateX(18deg);
  transform-origin: center bottom;
  animation: heroCharPop 0.86s cubic-bezier(0.18, 1.45, 0.22, 1) var(--char-delay) forwards;
  text-shadow: 0 18px 62px rgba(255, 255, 255, 0.08);
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.18s ease,
    text-shadow 0.18s ease;
  will-change: transform, opacity, filter;
}

.hero-char.hot {
  z-index: 3;
  transform: translateY(-0.045em) translateZ(24px) scale(1.024);
  color: rgba(245, 245, 240, 0.98);
  text-shadow: 0 16px 58px rgba(255, 255, 255, 0.14);
}

.hero-char.warm {
  z-index: 2;
  transform: translateY(-0.02em) translateZ(10px) scale(1.012);
  color: rgba(225, 225, 220, 0.92);
  text-shadow: 0 12px 46px rgba(255, 255, 255, 0.09);
}

.hero h1.hero-ready .hero-char {
  opacity: 1;
  transform: translateY(0) translateZ(0) scale(1) rotateX(0);
  animation: none;
  filter: blur(0);
}

.hero h1:hover .hero-char,
.hero h1.is-jumping .hero-char {
  opacity: 1;
  color: rgba(245, 245, 240, 0.96);
  animation: heroHoverJump 0.92s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.hero h1:hover .hero-char:nth-child(2),
.hero h1.is-jumping .hero-char:nth-child(2) {
  animation-delay: 0.05s;
}

.hero h1:hover .hero-char:nth-child(3),
.hero h1.is-jumping .hero-char:nth-child(3) {
  animation-delay: 0.1s;
}

.hero h1:hover .hero-char:nth-child(4),
.hero h1.is-jumping .hero-char:nth-child(4) {
  animation-delay: 0.15s;
}

.hero h1:hover .hero-char:nth-child(5),
.hero h1.is-jumping .hero-char:nth-child(5) {
  animation-delay: 0.2s;
}

.hero-char:nth-child(1),
.hero-char:nth-child(2) {
  color: rgba(224, 224, 220, 0.9);
}

.hero-char:nth-child(4),
.hero-char:nth-child(5) {
  color: rgba(158, 158, 154, 0.76);
}

body.light .hero-char {
  color: rgba(24, 24, 22, 0.72);
  text-shadow: none;
}

body.light .hero-char.hot {
  color: rgba(16, 16, 14, 0.92);
  text-shadow: none;
}

body.light .hero-char.warm {
  color: rgba(28, 28, 24, 0.8);
  text-shadow: none;
}

body.light .hero h1:hover .hero-char,
body.light .hero h1.is-jumping .hero-char {
  color: rgba(16, 16, 14, 0.9);
  text-shadow: none;
}

body.light .gradient {
  background: linear-gradient(90deg, #111, rgba(17, 17, 17, 0.62), rgba(17, 17, 17, 0.25));
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

.intro {
  max-width: 1080px;
  margin: 0 auto;
  color: rgba(216, 216, 210, 0.56);
  font-size: clamp(12px, 0.9vw, 15px);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  animation: popIn 0.82s cubic-bezier(0.2, 1.35, 0.34, 1) 0.58s forwards;
}

.intro-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 28px);
  margin: 0;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.intro-line i {
  width: 1px;
  height: 14px;
  background: rgba(216, 216, 210, 0.22);
}

.intro-code {
  color: rgba(230, 230, 224, 0.72);
  font-weight: 800;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3.4vw, 58px);
  margin-top: 34px;
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  animation: popIn 0.82s cubic-bezier(0.2, 1.35, 0.34, 1) 0.68s forwards;
}

.hero-keywords span {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(216, 216, 210, 0.34);
  font-size: clamp(11px, 0.78vw, 13px);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: none;
}

.hero-keywords span + span::before {
  position: absolute;
  left: calc(clamp(18px, 3.4vw, 58px) * -0.5);
  top: 50%;
  width: 1px;
  height: 12px;
  background: rgba(216, 216, 210, 0.12);
  transform: translateY(-50%);
  content: "";
}

body.light .intro {
  color: rgba(18, 18, 18, 0.54);
}

body.light .intro-line i {
  background: rgba(18, 18, 18, 0.18);
}

body.light .intro-code {
  color: rgba(18, 18, 18, 0.72);
}

body.light .hero-keywords span {
  color: rgba(18, 18, 18, 0.42);
}

.profile-strip {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 1.45fr) 1fr 1fr;
  align-items: start;
  gap: clamp(22px, 3vw, 54px);
  width: min(1100px, 100%);
  margin: 42px auto 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(216, 216, 210, 0.12);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  animation: popIn 0.82s cubic-bezier(0.2, 1.35, 0.34, 1) 0.76s forwards;
}

.profile-strip div {
  min-width: 0;
  display: grid;
  grid-template-rows: 16px auto;
  align-items: start;
  text-align: left;
}

.profile-strip dt {
  margin: 0 0 6px;
  color: rgba(216, 216, 210, 0.36);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-strip dd {
  margin: 0;
  color: rgba(236, 236, 230, 0.82);
  font-size: clamp(14px, 0.95vw, 16px);
  font-weight: 760;
  line-height: 1.28;
  letter-spacing: 0;
}

body.light .profile-strip {
  border-top-color: rgba(18, 18, 18, 0.12);
}

body.light .profile-strip dt {
  color: rgba(18, 18, 18, 0.38);
}

body.light .profile-strip dd {
  color: rgba(18, 18, 18, 0.78);
}

.actions,
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.hero .actions {
  opacity: 0;
  transform: translateY(28px) scale(0.94);
  animation: popIn 0.82s cubic-bezier(0.2, 1.35, 0.34, 1) 0.86s forwards;
}

.btn {
  min-width: 168px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  backdrop-filter: blur(20px);
  transition: 0.25s;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-2px) scale(1.05);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.hero-media {
  display: none;
  position: relative;
  height: clamp(320px, 32vw, 500px);
  margin: -28px auto 72px;
}

.float-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(20px);
  transition: 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.float-card.big {
  left: 50%;
  top: 0;
  width: min(960px, 76vw);
  height: clamp(300px, 29vw, 460px);
  transform: translateX(-50%);
  border-radius: 34px;
}

.float-card.small {
  right: 4%;
  bottom: 0;
  width: min(330px, 24vw);
  height: clamp(150px, 13vw, 210px);
  border-radius: 28px;
}

.float-card:hover {
  transform: translateY(-8px) scale(1.012);
}

.float-card.big:hover {
  transform: translateX(-50%) translateY(-8px) scale(1.012);
}

.float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.float-card::after,
.work-img::after,
.section-hero::after {
  position: absolute;
  inset: 0;
  content: "";
}

.float-card::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.04));
}

.caption {
  position: absolute;
  left: 26px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  text-align: left;
}

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

.caption h3 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.char {
  display: inline-block;
  position: relative;
  transform-origin: center bottom;
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.18s,
    text-shadow 0.18s;
  will-change: transform;
}

.no-break-token {
  display: inline-flex;
  white-space: nowrap;
}

.char.hot {
  z-index: 3;
  transform: translateY(-2px) scale(1.18);
  color: #fff;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.56);
}

.char.warm {
  z-index: 2;
  transform: translateY(-1px) scale(1.1);
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

body.light .gradient .char.hot {
  color: #111;
  text-shadow: 0 0 22px rgba(0, 0, 0, 0.16);
}

section {
  position: relative;
  z-index: 10;
}

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: end;
  padding: 84px 0 126px;
}

.about .title {
  max-width: 720px;
  color: rgba(236, 236, 230, 0.82);
}

.sphere-section {
  padding: 64px 0 190px;
}

.sphere-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  opacity: 0.82;
  transform: translateY(24px) scale(0.96);
}

.sphere-head .title {
  color: rgba(210, 210, 206, 0.42);
  font-size: clamp(56px, 7vw, 116px);
}

.sphere-stage {
  position: relative;
  height: min(1120px, 96vh);
  overflow: hidden;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at center, rgba(190, 190, 184, 0.1), rgba(255, 255, 255, 0.018) 34%, transparent 62%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.018) 42%, transparent 100%),
    #050505;
  perspective: 1680px;
  perspective-origin: 50% 48%;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.98);
  opacity: 0;
  transform: translateY(58px) scale(0.92);
  transform-origin: center top;
}

.sphere-section.in-view .sphere-stage {
  animation: sphereStagePop 1.05s cubic-bezier(0.16, 1.18, 0.28, 1) forwards;
}

.sphere-section.in-view .sphere-head {
  animation: popIn 0.75s cubic-bezier(0.2, 1.35, 0.34, 1) 0.05s both;
}

.sphere-stage::before {
  position: absolute;
  inset: 9% 3%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 42%, rgba(255, 255, 255, 0.045) 43%, transparent 44%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 58%);
  filter: blur(1px);
  opacity: 0.38;
  content: "";
}

.sphere-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.76) 9%, transparent 24%, transparent 76%, rgba(5, 5, 5, 0.76) 91%, #050505 100%),
    linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0.64) 12%, transparent 30%, transparent 70%, rgba(5, 5, 5, 0.66) 88%, #050505 100%),
    radial-gradient(circle at center, transparent 0 55%, rgba(0, 0, 0, 0.5) 78%, #050505 100%);
}

.sphere-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: sphereSpin 86s linear infinite;
}

.sphere-stage:hover .sphere-track {
  animation-play-state: running;
}

.sphere-row {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin: 0;
  transform-style: preserve-3d;
}

.row-a {
  transform: none;
}

.row-b {
  transform: none;
}

.row-c {
  transform: none;
}

.row-d {
  transform: none;
}

.sphere-tile {
  position: relative;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--tile-w, 188px);
  height: var(--tile-h, 108px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.052);
  border-radius: 9px;
  background: #090909;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.44);
  transform:
    rotateY(var(--angle, 0deg))
    translateZ(calc(var(--radius, 760px) + var(--hover-z, 0px)))
    translateY(var(--row-y, 0px))
    translateX(calc(var(--tile-w, 188px) * -0.5))
    scale(var(--hover-scale, 1));
  backface-visibility: hidden;
  transform-style: preserve-3d;
  opacity: 0.82;
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s, opacity 0.35s;
}

.sphere-tile:hover {
  --hover-z: 0px;
  --hover-scale: 1;
  filter: none;
  opacity: 0.9;
}

.sphere-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(0.78);
  opacity: 0.86;
  transition:
    filter 0.28s ease,
    opacity 0.28s ease,
    transform 0.28s ease;
}

.sphere-stage:has(.sphere-tile:hover) .sphere-tile:not(:hover) img {
  filter: grayscale(1) contrast(1.12) brightness(0.78);
  opacity: 0.86;
}

.sphere-tile:hover img,
.sphere-tile:focus-within img {
  filter: grayscale(0) contrast(1.06) saturate(1.08) brightness(1.04);
  opacity: 1;
  transform: none;
}

.sphere-tile::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.08)),
    radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.32));
  content: "";
  transition: opacity 0.28s ease;
}

.sphere-tile:hover::after,
.sphere-tile:focus-within::after {
  opacity: 0.56;
}

.sphere-tile figcaption,
.sphere-tile span {
  display: none;
}

.sphere-tile span {
  top: 50%;
  bottom: auto;
  text-align: center;
  transform: translateY(-50%);
}

.hero-tile {
  --tile-w: 148px;
}

.tile-a {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #111, #242424);
}

.tile-b {
  background:
    radial-gradient(circle at 26% 38%, rgba(255, 255, 255, 0.24), transparent 24%),
    #060606;
}

.tile-c {
  background:
    linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.18) 43% 45%, transparent 46%),
    #101010;
}

.tile-d {
  background:
    linear-gradient(90deg, #050505, #272727 50%, #080808);
}

.tile-e,
.tile-h,
.tile-k,
.tile-n,
.tile-r {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 30%),
    #0a0a0a;
}

.tile-f,
.tile-i,
.tile-l,
.tile-o,
.tile-s {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 15px),
    #090909;
}

.tile-g,
.tile-j,
.tile-m,
.tile-p,
.tile-q,
.tile-t {
  background:
    linear-gradient(160deg, #070707, #303030 48%, #090909);
}

@keyframes sphereSpin {
  from {
    transform: rotateX(var(--sphereTiltX, -3deg)) rotateY(calc(var(--sphereTiltY, 0deg) + 0deg));
  }

  to {
    transform: rotateX(var(--sphereTiltX, -3deg)) rotateY(calc(var(--sphereTiltY, 0deg) - 360deg));
  }
}

@keyframes haloPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.62);
  }

  58% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }

  100% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes titlePop {
  0% {
    opacity: 0;
    transform: translateY(42px) translateZ(-150px) scale(0.74);
    filter: blur(12px);
  }

  62% {
    opacity: 1;
    transform: translateY(-8px) translateZ(38px) scale(1.035);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) translateZ(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroCharPop {
  0% {
    opacity: 0;
    transform: translateY(0.34em) translateZ(-140px) scale(0.7) rotateX(20deg);
    filter: blur(10px);
  }

  62% {
    opacity: 1;
    transform: translateY(-0.06em) translateZ(34px) scale(1.045) rotateX(0);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) translateZ(0) scale(1) rotateX(0);
    filter: blur(0);
  }
}

@keyframes heroHoverJump {
  0%,
  100% {
    transform: translateY(0) translateZ(0) scale(1) rotateX(0);
    text-shadow: 0 18px 62px rgba(255, 255, 255, 0.08);
  }

  38% {
    transform: translateY(-0.055em) translateZ(26px) scale(1.022) rotateX(0);
    text-shadow: 0 18px 60px rgba(255, 255, 255, 0.15);
  }

  66% {
    transform: translateY(0.008em) translateZ(0) scale(0.998) rotateX(0);
    text-shadow: 0 14px 46px rgba(255, 255, 255, 0.08);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
    filter: blur(8px);
  }

  64% {
    opacity: 1;
    transform: translateY(-5px) scale(1.025);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes sphereStagePop {
  0% {
    opacity: 0;
    transform: translateY(70px) scale(0.88);
    filter: blur(14px);
  }

  62% {
    opacity: 1;
    transform: translateY(-10px) scale(1.025);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.title {
  margin: 0;
  font-size: clamp(56px, 7.4vw, 112px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.muted {
  color: var(--muted);
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.8;
}

.core {
  padding: 100px 0;
}

.tools-section {
  width: auto;
  margin-left: 0;
  padding: 0 0 118px;
  background: transparent;
  color: rgba(236, 236, 230, 0.9);
}

.tools-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 80px;
  align-items: end;
  max-width: none;
  margin: 0 auto;
}

.tools-index {
  margin: 0 0 22px;
  color: rgba(236, 236, 230, 0.44);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.tools-title {
  max-width: 900px;
  margin: 0;
  color: rgba(236, 236, 230, 0.82);
  font-size: clamp(42px, 4.7vw, 76px);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: 0;
}

.tools-note {
  margin: 0 0 12px;
  color: rgba(236, 236, 230, 0.44);
  font-size: 14px;
  font-style: italic;
  font-weight: 650;
  line-height: 1.8;
  text-align: right;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
  margin: 42px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tool-group {
  min-height: 220px;
  padding: 30px 28px 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.tool-group:first-child {
  border-left: 0;
  padding-left: 0;
}

.tool-group h3 {
  margin: 0 0 16px;
  color: rgba(236, 236, 230, 0.78);
  font-size: clamp(14px, 0.95vw, 16px);
  font-weight: 750;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.tool-lead {
  margin: 0 0 20px;
  color: rgba(236, 236, 230, 0.52);
  font-size: 14px;
  font-style: italic;
  line-height: 1.8;
}

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

.tool-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(236, 236, 230, 0.58);
  font-size: 14px;
  line-height: 1.75;
}

.tool-list li::before {
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(236, 236, 230, 0.72);
  content: "";
}

.tool-list strong {
  color: rgba(236, 236, 230, 0.82);
  font-weight: 750;
}

body.light .tools-section {
  color: rgba(18, 18, 18, 0.78);
}

body.light .tools-title {
  color: rgba(18, 18, 18, 0.84);
}

body.light .about .title {
  color: rgba(18, 18, 18, 0.84);
}

body.light .tools-note {
  color: rgba(18, 18, 18, 0.46);
}

body.light .tools-grid {
  border-top-color: rgba(18, 18, 18, 0.14);
}

body.light .tool-group {
  border-left-color: rgba(18, 18, 18, 0.12);
}

body.light .tool-group h3 {
  color: rgba(18, 18, 18, 0.76);
}

body.light .tool-lead {
  color: rgba(18, 18, 18, 0.55);
}

body.light .tool-list li {
  color: rgba(18, 18, 18, 0.6);
}

body.light .tool-list li::before {
  background: rgba(18, 18, 18, 0.56);
}

body.light .tool-list strong {
  color: rgba(18, 18, 18, 0.82);
}

body.light .tool-group:nth-child(n + 3) {
  border-top-color: rgba(18, 18, 18, 0.12);
}

.portfolio-section {
  padding: 138px 0;
}

.section-shell {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.3);
}

.section-shell::before {
  position: absolute;
  left: -80px;
  top: -80px;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(130px);
  content: "";
}

.section-shell.warm::before {
  background: rgba(255, 145, 77, 0.12);
}

.section-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: #000;
}

.section-hero img {
  width: 100%;
  height: clamp(500px, 42vw, 680px);
  object-fit: cover;
  opacity: 0.66;
  transform: scale(1.08);
  transition: transform 0.25s linear;
}

.section-hero::after {
  background: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
}

.section-head {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  z-index: 2;
}

.section-head-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 28px;
  align-items: end;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
}

.tag {
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  letter-spacing: 0;
}

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

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(20px);
}

.stat b {
  display: block;
  margin-top: 8px;
  font-size: 32px;
}

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

.featured {
  grid-column: 1 / -1;
}

.work {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
  transition: 0.4s;
}

.work:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.work-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
  transition: 0.7s;
}

.work:hover .work-img img {
  transform: scale(1.04);
  opacity: 1;
}

.work-img::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.38) 28%, transparent 68%);
}

.abstract-a,
.abstract-b,
.abstract-c,
.abstract-d,
.abstract-e,
.abstract-f {
  min-height: 100%;
}

.abstract-a {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #101010, #1e2f42 45%, #0a0a0a);
}

.abstract-b {
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.24) 49% 51%, transparent 52%),
    linear-gradient(160deg, #29231f, #080808 70%);
}

.abstract-c {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 18px),
    #10100f;
}

.abstract-d {
  background:
    radial-gradient(circle at 30% 34%, rgba(255, 110, 72, 0.28), transparent 30%),
    linear-gradient(145deg, #100f0e, #30241f);
}

.abstract-e {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(90deg, #101010, #322c24);
}

.abstract-f {
  background:
    linear-gradient(135deg, transparent 45%, rgba(180, 45, 36, 0.85) 46% 48%, transparent 49%),
    #0d0d0c;
}

.external {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  transition: 0.3s;
}

.work:hover .external {
  transform: rotate(45deg);
  background: #fff;
  color: #000;
}

.work-body {
  position: absolute;
  left: 22px;
  right: 68px;
  bottom: 18px;
  z-index: 2;
}

.work-body .mb {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.work-body .tag {
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 650;
}

.work h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-shadow: 0 5px 22px rgba(0, 0, 0, 1);
}

.featured .work h3 {
  font-size: 36px;
}

.work-type {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.95);
}

.portfolio-portals-section {
  padding-top: 160px;
}

.portal-shell {
  padding: clamp(18px, 2.6vw, 38px);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.075), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.044), rgba(255, 255, 255, 0.018));
}

.portal-hero img {
  height: clamp(520px, 45vw, 760px);
  filter: grayscale(1) contrast(1.08) brightness(0.72);
}

.portal-hero::after {
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.14), transparent 23%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.28));
}

.portal-hero .muted {
  max-width: 620px;
  margin: 0;
  color: rgba(224, 224, 218, 0.58);
  font-size: clamp(15px, 1.02vw, 18px);
  line-height: 1.9;
}

.portfolio-ports {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 20px);
  margin-top: clamp(18px, 1.6vw, 26px);
}

.portfolio-port {
  position: relative;
  min-height: clamp(360px, 29vw, 520px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 26px;
  background: #070707;
  text-align: left;
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.36);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s,
    background 0.45s;
}

.portfolio-port:hover {
  transform: translateY(-10px) scale(1.012);
  border-color: rgba(255, 255, 255, 0.26);
  background: #0d0d0d;
}

.port-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: clamp(560px, 56vw, 860px);
}

.port-visual {
  position: absolute;
  inset: 0;
  opacity: 0.88;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s;
}

.port-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.54) 44%, rgba(0, 0, 0, 0.16) 100%),
    radial-gradient(circle at 50% 28%, transparent, rgba(0, 0, 0, 0.52));
  content: "";
}

.portfolio-port:hover .port-visual {
  opacity: 1;
  transform: scale(1.055);
}

.port-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(0.78);
}

.port-visual-b {
  background:
    radial-gradient(circle at 70% 22%, rgba(230, 230, 224, 0.22), transparent 20%),
    linear-gradient(135deg, #090909, #20232a 44%, #050505);
}

.port-visual-c {
  background:
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.18) 43% 45%, transparent 46%),
    radial-gradient(circle at 30% 36%, rgba(255, 255, 255, 0.16), transparent 24%),
    #090908;
}

.port-visual-d {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 22px),
    linear-gradient(150deg, #050505, #25231f 48%, #080808);
}

.port-visual-e {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 22%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 16px),
    #0b0b0b;
}

.port-copy {
  position: absolute;
  left: clamp(20px, 2.2vw, 38px);
  right: clamp(20px, 2.2vw, 38px);
  bottom: clamp(22px, 2.4vw, 42px);
  z-index: 2;
}

.port-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(22px, 3.4vw, 52px);
  color: rgba(226, 226, 218, 0.46);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-port h3 {
  max-width: 760px;
  margin: 0;
  color: rgba(244, 244, 240, 0.92);
  font-size: clamp(28px, 3.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.72);
}

.port-large h3 {
  font-size: clamp(48px, 5.8vw, 104px);
}

.portfolio-port p {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(226, 226, 220, 0.62);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.75;
}

.port-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.port-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(238, 238, 232, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.portfolio-port:hover .external {
  transform: rotate(45deg);
  background: #fff;
  color: #000;
}

.works-wall-section {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 96px clamp(24px, 8vw, 210px) 130px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.07), transparent 34%),
    #030303;
}

.works-wall-section::before {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px);
  background-size: 10px 10px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 16%, transparent 84%, #000 100%);
  content: "";
}

.work-wall {
  position: relative;
  z-index: 1;
  max-width: 1420px;
  margin: 0 auto;
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.work-filters button {
  min-height: 30px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.032);
  color: rgba(236, 236, 230, 0.62);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  cursor: default;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.work-filters button:first-child {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(246, 246, 240, 0.9);
  color: #050505;
}

.showcase-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  background: #080808;
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.36);
  transition:
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.42s,
    box-shadow 0.42s;
}

.showcase-card::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
  content: "";
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
}

.showcase-featured {
  min-height: clamp(500px, 46vw, 720px);
}

.showcase-media {
  position: absolute;
  inset: 0;
  background: #0b0b0b;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s;
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.18) contrast(1.04) saturate(0.92) brightness(0.74);
  transition:
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.42s;
}

.sf90-cover img {
  object-position: center;
  filter: contrast(1.06) saturate(0.92) brightness(0.82);
}

.watch-cover img {
  object-position: center;
  filter: contrast(1.06) saturate(0.9) brightness(0.82);
}

.storage-cover img {
  object-position: center;
  filter: contrast(1.08) saturate(0.96) brightness(0.78);
}

.projector-cover img {
  object-position: center;
  filter: contrast(1.04) saturate(0.94) brightness(0.82);
}

.annual-cover img {
  object-position: center;
  filter: contrast(1.05) saturate(0.92) brightness(0.84);
}

.irrigator-cover img {
  object-position: center;
  filter: contrast(1.02) saturate(0.88) brightness(0.86);
}

.collection-cover img {
  object-position: center;
  filter: contrast(1.03) saturate(0.92) brightness(0.82);
}

.showcase-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.48) 34%, rgba(0, 0, 0, 0.08) 74%),
    radial-gradient(circle at 50% 18%, transparent, rgba(0, 0, 0, 0.34));
  content: "";
}

.showcase-card:hover .showcase-media {
  transform: scale(1.022);
}

.showcase-card:hover .showcase-media img {
  filter: grayscale(0) contrast(1.05) saturate(1) brightness(0.82);
}

.showcase-copy {
  position: absolute;
  left: clamp(20px, 2.2vw, 38px);
  right: clamp(20px, 2.2vw, 38px);
  bottom: clamp(20px, 2.2vw, 38px);
  z-index: 2;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.mini-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: rgba(246, 246, 240, 0.68);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(14px);
}

.showcase-copy h2,
.showcase-copy h3 {
  margin: 0;
  color: rgba(246, 246, 240, 0.94);
  line-height: 1.06;
  letter-spacing: 0;
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.7);
}

.showcase-copy h2 {
  font-size: clamp(48px, 5.4vw, 88px);
  letter-spacing: -0.035em;
}

.showcase-copy h3 {
  max-width: 90%;
  font-size: clamp(19px, 1.45vw, 26px);
  letter-spacing: -0.025em;
}

.showcase-copy p {
  margin: 9px 0 0;
  color: rgba(236, 236, 230, 0.56);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.project-card {
  min-height: clamp(236px, 18.2vw, 300px);
}

.showcase-card .external {
  right: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 62px;
  height: 28px;
  padding: 0 10px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(246, 246, 240, 0.78);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  backdrop-filter: blur(16px);
}

.showcase-card .external::before {
  color: rgba(246, 246, 240, 0.66);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
  content: "VIEW";
}

.showcase-card:hover .external {
  transform: translateY(-1px);
  background: #fff;
  color: #000;
}

.showcase-card:hover .external::before {
  color: rgba(0, 0, 0, 0.64);
}

.case-page {
  background: #050505;
}

body.light.case-page {
  background: #f5f2eb;
}

body.light.case-page .bg::before {
  background: rgba(18, 18, 18, 0.035);
  filter: blur(180px);
}

body.light.case-page .bg::after {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.74), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 34%);
}

body.light.case-page #glow {
  display: none;
}

.case-wrap {
  position: relative;
  z-index: 10;
  max-width: 1480px;
  margin: 0 auto;
  padding: 112px 28px 40px;
}

.case-hero {
  padding: clamp(42px, 6vw, 86px) 0 26px;
}

.case-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.case-kicker span {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(236, 236, 230, 0.62);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.case-hero h1 {
  max-width: 1120px;
  margin: 0;
  color: rgba(242, 242, 238, 0.94);
  font-size: clamp(58px, 8vw, 138px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.case-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(236, 236, 230, 0.58);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.85;
}

.case-gallery img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #090909;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 30px 0 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.case-meta div {
  padding: 24px;
  background: rgba(8, 8, 8, 0.82);
}

.case-meta span {
  display: block;
  margin-bottom: 10px;
  color: rgba(236, 236, 230, 0.38);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.case-meta b {
  color: rgba(242, 242, 238, 0.78);
  font-size: 16px;
}

.case-gallery {
  display: grid;
  gap: clamp(18px, 2vw, 30px);
  opacity: 1;
  transform: none;
}

.case-gallery img {
  height: auto;
}

.case-bottom {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 66px 0 30px;
}

body.light.case-page .case-hero h1 {
  color: rgba(18, 18, 18, 0.9);
}

body.light.case-page .case-hero p,
body.light.case-page .case-kicker span {
  color: rgba(18, 18, 18, 0.62);
}

body.light.case-page .case-meta,
body.light.case-page .case-gallery img {
  border-color: rgba(18, 18, 18, 0.12);
}

body.light.case-page .case-kicker span {
  background: rgba(18, 18, 18, 0.035);
}

body.light.case-page .case-gallery img {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 70px rgba(18, 18, 18, 0.12);
}

body.light.case-page .case-meta div {
  background: rgba(255, 255, 255, 0.58);
}

body.light.case-page .case-meta span {
  color: rgba(18, 18, 18, 0.42);
}

body.light.case-page .case-meta b {
  color: rgba(18, 18, 18, 0.78);
}

.visual-a,
.visual-b,
.visual-c,
.visual-d,
.visual-e,
.visual-f {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.38), transparent),
    #0b0b0b;
}

.visual-a {
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(140deg, #1c1c1a, #060606 70%);
}

.visual-b {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at 72% 34%, rgba(255, 255, 255, 0.22), transparent 24%),
    #080808;
}

.visual-c {
  background:
    repeating-radial-gradient(circle at 70% 62%, rgba(255, 255, 255, 0.15) 0 2px, transparent 2px 26px),
    linear-gradient(135deg, #151515, #050505);
}

.visual-d {
  background:
    radial-gradient(circle at 44% 46%, rgba(132, 90, 255, 0.36), transparent 34%),
    linear-gradient(135deg, #070707, #1d1430);
}

.visual-e {
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.16) 47% 49%, transparent 50%),
    linear-gradient(160deg, #080808, #1d2431 48%, #040404);
}

.visual-f {
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.22), transparent 22%),
    radial-gradient(circle at 74% 58%, rgba(255, 96, 70, 0.26), transparent 28%),
    linear-gradient(135deg, #15100d, #0a0a0a);
}

.contact {
  padding: 120px 24px;
}

.contact-box {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(58px, 7vw, 94px) 40px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
  text-align: center;
}

.contact-box .title {
  font-size: clamp(38px, 5.4vw, 78px);
}

.contact-box .muted {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 15px;
}

.contact-links {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 34px auto 0;
}

.contact-pill {
  position: relative;
  min-width: 178px;
  display: inline-grid;
  grid-template-columns: auto;
  gap: 4px;
  padding: 14px 18px 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: center;
  backdrop-filter: blur(20px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.contact-pill:hover,
.contact-wechat[open] {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.075);
}

.contact-pill span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-pill strong {
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: 0;
}

.contact-pill small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.contact-wechat {
  padding: 0;
}

.contact-wechat summary {
  display: grid;
  gap: 4px;
  padding: 14px 18px 15px;
  cursor: pointer;
  list-style: none;
}

.contact-wechat summary::-webkit-details-marker {
  display: none;
}

.wechat-popover {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  z-index: 20;
  width: 188px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(18, 18, 18, 0.94);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px) scale(0.96);
  transition: 0.22s ease;
}

.contact-wechat[open] .wechat-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.wechat-popover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
}

.wechat-popover p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.975);
  transition:
    opacity 0.82s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.82s cubic-bezier(0.2, 1.18, 0.28, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

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

@media (max-width: 980px) {
  .about,
  .section-head-grid,
  .work-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .tools-section {
    padding: 28px 0 92px;
  }

  .tools-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tools-title {
    max-width: 720px;
    font-size: 44px;
  }

  .tools-note {
    max-width: 560px;
    text-align: left;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
  }

  .tool-group:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .tool-group:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }

  .float-card.small {
    display: none;
  }

  .section-hero img {
    height: 360px;
  }

  .portfolio-ports {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .port-large {
    grid-column: 1 / -1;
    min-height: 620px;
  }

  .portfolio-port {
    min-height: 420px;
  }

  .works-wall-section {
    padding: 78px 38px 104px;
  }

  .showcase-featured {
    min-height: 540px;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
  }

  .project-card {
    min-height: 300px;
  }

  .case-wrap {
    padding-left: 38px;
    padding-right: 38px;
  }

  .case-meta {
    grid-template-columns: 1fr;
  }

  .sphere-stage {
    height: 680px;
  }

  .sphere-track {
    width: auto;
  }

  .sphere-tile {
    height: 64px;
    border-radius: 10px;
  }

  .hero-tile {
    --tile-w: 168px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
    left: auto;
    right: auto;
    top: 0;
    height: 56px;
    margin: 0;
    padding: 0 18px;
    grid-template-columns: auto 1fr;
    border: 0;
    border-radius: 0;
    background: rgba(5, 5, 5, 0.74);
  }

  .site-logo {
    width: auto;
    height: 56px;
    padding: 0;
  }

  .logo-word {
    display: inline;
  }

  .nav,
  .theme-toggle {
    display: none;
  }

  .wrap {
    padding: 0 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-copy {
    max-width: 340px;
    min-height: 78vh;
    margin: 0 auto;
    padding: 32px 0 44px;
  }

  .hero h1 {
    max-width: 340px;
    font-size: clamp(42px, 11.5vw, 54px);
    line-height: 1;
    letter-spacing: -0.03em;
  }

  .hero h1 .gradient {
    display: inline-block;
    white-space: nowrap;
  }

  .intro {
    max-width: 340px;
    font-size: 12px;
    line-height: 1.8;
  }

  .intro-line {
    flex-wrap: wrap;
    gap: 9px 14px;
    white-space: normal;
  }

  .intro-line i {
    height: 10px;
  }

  .intro-code {
    width: 100%;
    text-align: center;
  }

  .hero-keywords {
    gap: 10px 18px;
    margin-top: 24px;
  }

  .hero-keywords span {
    font-size: 11px;
  }

  .hero-keywords span + span::before {
    display: none;
  }

  .profile-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    margin-top: 28px;
    padding-top: 16px;
  }

  .profile-strip div {
    text-align: center;
  }

  .actions,
  .contact-actions {
    width: 100%;
  }

  .contact-links {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .contact-card {
    min-height: 150px;
  }

  .actions .btn,
  .contact-actions .btn {
    width: 100%;
    max-width: 340px;
  }

  .hero-media {
    height: 250px;
    margin-bottom: 48px;
  }

  .float-card.big {
    width: 100%;
    height: 230px;
    border-radius: 22px;
  }

  .sphere-section {
    padding: 28px 0 82px;
  }

  .sphere-head {
    align-items: start;
    display: grid;
    margin-bottom: 18px;
  }

  .sphere-stage {
    height: 460px;
    margin-left: -18px;
    margin-right: -18px;
    border-radius: 0;
    perspective: 980px;
  }

  .sphere-track {
    width: auto;
    animation-duration: 58s;
  }

  .sphere-row {
    gap: 7px;
    margin: 7px 0;
  }

  .sphere-tile {
    height: 46px;
    border-radius: 8px;
  }

  .hero-tile {
    --tile-w: 136px;
  }

  .sphere-tile figcaption,
  .sphere-tile span {
    left: 8px;
    right: 8px;
    bottom: 8px;
    font-size: 9px;
  }

  .about,
  .core,
  .portfolio-section,
  .contact {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .title {
    font-size: clamp(40px, 11vw, 58px);
    line-height: 1.04;
  }

  .muted {
    font-size: 14px;
  }

  .tools-section {
    margin-left: 0;
    width: auto;
    padding: 26px 0 76px;
  }

  .tools-index {
    margin-bottom: 16px;
    font-size: 12px;
  }

  .tools-title {
    font-size: 32px;
    line-height: 1.16;
  }

  .tools-note {
    font-size: 13px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .tool-group,
  .tool-group:first-child,
  .tool-group:nth-child(odd) {
    min-height: auto;
    padding: 26px 0 28px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .tool-group:first-child {
    border-top: 0;
  }

  .tool-group h3 {
    margin-bottom: 14px;
    font-size: 10px;
  }

  .tool-group h3 {
    margin-bottom: 16px;
    font-size: 14px;
  }

  .tool-lead,
  .tool-list li {
    font-size: 13px;
  }

  .tool-list {
    gap: 14px;
  }

  .section-shell {
    padding: 12px;
    border-radius: 24px;
  }

  .section-hero {
    border-radius: 18px;
  }

  .section-hero img {
    height: 250px;
  }

  .portal-hero img {
    height: 360px;
  }

  .portal-hero .muted {
    display: none;
  }

  .section-head {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .tag-row {
    gap: 8px;
  }

  .tag {
    padding: 7px 10px;
    font-size: 10px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .featured {
    grid-column: 1 / -1;
  }

  .work {
    border-radius: 16px;
  }

  .work-img {
    aspect-ratio: 4 / 3;
  }

  .work-body {
    left: 10px;
    right: 36px;
    bottom: 10px;
  }

  .work-body .mb {
    display: none;
  }

  .work h3 {
    font-size: 15px;
  }

  .featured .work h3 {
    font-size: 22px;
  }

  .work-type {
    margin-top: 4px;
    font-size: 10px;
  }

  .portfolio-ports {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .works-wall-section {
    padding: 56px 18px 82px;
  }

  .work-filters {
    gap: 8px;
    margin-bottom: 18px;
  }

  .work-filters button {
    min-height: 30px;
    padding: 0 12px;
    font-size: 11px;
  }

  .showcase-featured {
    min-height: 420px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
  }

  .project-card {
    min-height: 270px;
  }

  .showcase-copy h2 {
    font-size: 42px;
  }

  .showcase-copy h3 {
    font-size: 24px;
  }

  .showcase-copy p {
    font-size: 12px;
  }

  .showcase-card .external {
    right: 12px;
    top: 12px;
  }

  .case-wrap {
    padding: 70px 18px 30px;
  }

  .case-hero h1 {
    font-size: clamp(42px, 13vw, 68px);
  }

  .case-hero p {
    margin-bottom: 30px;
    font-size: 14px;
  }

  .case-gallery img {
    border-radius: 4px;
  }

  .case-bottom {
    display: grid;
  }

  .port-large,
  .portfolio-port {
    grid-column: auto;
    grid-row: auto;
    min-height: 390px;
    border-radius: 18px;
  }

  .port-large {
    min-height: 460px;
  }

  .port-copy {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }

  .port-meta {
    margin-bottom: 22px;
    font-size: 10px;
  }

  .portfolio-port h3,
  .port-large h3 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .portfolio-port p {
    font-size: 13px;
  }

  .external {
    right: 10px;
    top: 10px;
    width: 28px;
    height: 28px;
  }

  .contact {
    padding-left: 0;
    padding-right: 0;
  }

  .contact-box {
    padding: 46px 20px;
    border-radius: 24px;
  }

  .site-footer {
    display: grid;
    padding: 24px 18px;
  }
}

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

  .hero .pill,
  .hero h1,
  .hero-char,
  .intro,
  .hero-keywords,
  .hero .actions,
  .sphere-stage,
  .sphere-head {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
