:root {
  --bg: #101112;
  --panel: #181a1d;
  --panel-strong: #202328;
  --text: #f4f0e8;
  --muted: #aaa49a;
  --line: rgba(244, 240, 232, 0.14);
  --gold: #f0b65d;
  --teal: #47d5ff;
  --coral: #ef6f6c;
  --blue: #6ea8ff;
  --violet: #8b5cf6;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(90, 115, 255, 0.16), transparent 38rem),
    linear-gradient(180deg, #050712 0%, #0b0d17 42%, #06070d 100%);
  color: var(--text);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.ambient-stage {
  position: absolute;
  inset: 0 0 auto;
  height: var(--ambient-height, 100%);
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 82px 82px;
}

.ambient-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ambient-height, 100%);
  background:
    linear-gradient(180deg, rgba(5, 7, 18, 0), rgba(5, 7, 18, 0.18) 58%, rgba(5, 7, 18, 0.34)),
    url("assets/backgrounds/ambient-flow-small.gif") center top / 100% auto repeat-y;
  filter: saturate(1.05);
  opacity: 0.18;
  mask-image: linear-gradient(180deg, black 0%, black 92%, rgba(0,0,0,0.62) 100%);
  animation: none;
}

.ambient-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.08) 18%, transparent 36%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: 0.28;
  animation: sheenSweep 18s ease-in-out infinite;
}

.ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: var(--ambient-height, 100%);
  display: none;
  opacity: 0;
}

.halo {
  position: absolute;
  display: block;
  width: clamp(430px, 58vw, 920px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: blur(0.2px);
  opacity: 0.8;
  transform-style: preserve-3d;
  animation: haloSpin 42s linear infinite;
  will-change: transform;
}

.halo::before,
.halo::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
}

.halo::before {
  background: conic-gradient(from 20deg, transparent 0deg, rgba(76, 243, 255, 0.92) 32deg, transparent 76deg, rgba(139, 92, 246, 0.96) 172deg, transparent 225deg, rgba(255, 255, 255, 0.9) 290deg, transparent 342deg);
  filter: blur(8px);
  mask: radial-gradient(circle, transparent 58%, black 60%, black 64%, transparent 67%);
}

.halo::after {
  border: 2px solid transparent;
  background: conic-gradient(from 90deg, transparent, rgba(255, 255, 255, 0.9), transparent 24%, rgba(69, 243, 255, 0.88), transparent 54%, rgba(143, 94, 255, 0.9), transparent) border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.halo-a {
  top: -34vw;
  left: 50%;
  translate: -50% 0;
  animation-duration: 22s;
}

.halo-b {
  top: 118vh;
  right: -24vw;
  width: clamp(320px, 42vw, 680px);
  opacity: 0.48;
  animation-direction: reverse;
}

.halo-c {
  top: 250vh;
  bottom: auto;
  left: -16vw;
  width: clamp(380px, 48vw, 760px);
  opacity: 0.42;
  animation-duration: 26s;
}

.glass-block {
  position: absolute;
  display: block;
  width: 32vw;
  height: 20vw;
  min-width: 360px;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 46px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.018)),
    linear-gradient(90deg, rgba(68, 194, 177, 0.18), rgba(125, 211, 252, 0.05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 28px 90px rgba(0, 0, 0, 0.18);
  filter: blur(8px);
  opacity: 0.28;
  transform: rotate(-12deg);
  animation: floatGlass 36s ease-in-out infinite alternate;
  backdrop-filter: blur(14px);
  mask-image: radial-gradient(ellipse at center, black 0%, black 48%, rgba(0,0,0,0.58) 68%, transparent 100%);
}

.block-a {
  top: 11vh;
  left: -10vw;
}

.block-b {
  top: 34vh;
  right: -10vw;
  background:
    radial-gradient(circle at 26% 28%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(200, 164, 93, 0.08), rgba(255, 255, 255, 0.018)),
    linear-gradient(90deg, rgba(239, 111, 108, 0.1), rgba(125, 211, 252, 0.04));
  animation-duration: 24s;
  transform: rotate(14deg);
}

.block-c {
  bottom: -4vh;
  left: 28vw;
  background:
    radial-gradient(circle at 68% 22%, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(155, 140, 255, 0.1), rgba(68, 194, 177, 0.04)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045), transparent);
  animation-duration: 28s;
}

.glass-chip {
  position: absolute;
  display: block;
  width: 170px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,0.18), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.018)),
    rgba(88, 114, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 16px 46px rgba(0,0,0,0.16);
  filter: blur(3px);
  opacity: 0.34;
  backdrop-filter: blur(10px);
  mask-image: radial-gradient(ellipse at center, black 0%, black 54%, rgba(0,0,0,0.56) 76%, transparent 100%);
  animation: chipFloat 34s ease-in-out infinite alternate;
}

.chip-a {
  top: 18vh;
  right: 18vw;
  transform: rotate(10deg);
}

.chip-b {
  top: 66vh;
  left: 12vw;
  width: 220px;
  height: 118px;
  transform: rotate(-9deg);
  animation-duration: 13s;
}

.chip-c {
  top: 212vh;
  right: 8vw;
  width: 190px;
  height: 108px;
  transform: rotate(18deg);
  animation-duration: 15s;
}

.scan-line {
  position: absolute;
  top: 0;
  left: -40%;
  width: 48%;
  height: var(--scan-height, var(--ambient-height, 5200px));
  background: linear-gradient(90deg, transparent, rgba(120, 230, 255, 0.13), rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-18deg);
  animation: scanMove 9s ease-in-out infinite;
}

.cursor-light {
  position: absolute;
  left: var(--mx, 50%);
  top: var(--my, 28%);
  width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(112, 244, 255, 0.18), rgba(141, 92, 246, 0.08) 34%, transparent 68%);
  filter: blur(16px);
  opacity: 0.45;
  transition: left 420ms ease, top 420ms ease;
}

.section-orbit {
  position: absolute;
  display: block;
  width: clamp(420px, 58vw, 980px);
  aspect-ratio: 1.65;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.22);
  filter: blur(0.4px);
  opacity: 0.58;
  transform: rotate(-12deg);
  animation: orbitBreath 18s ease-in-out infinite alternate;
}

.section-orbit::before,
.section-orbit::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: inherit;
  border: 1px solid rgba(155, 140, 255, 0.22);
}

.section-orbit::after {
  inset: 20%;
  border-color: rgba(68, 194, 177, 0.18);
  filter: blur(2px);
}

.orbit-work {
  top: 104vh;
  left: -18vw;
}

.orbit-products {
  top: 188vh;
  right: -22vw;
  width: clamp(520px, 72vw, 1180px);
  border-color: rgba(200, 164, 93, 0.18);
  transform: rotate(10deg);
  animation-duration: 22s;
}

.orbit-resume {
  top: 318vh;
  left: 18vw;
  width: clamp(460px, 62vw, 980px);
  border-color: rgba(239, 111, 108, 0.14);
  transform: rotate(-24deg);
  animation-duration: 26s;
}

.section-glow {
  position: absolute;
  display: block;
  width: clamp(380px, 44vw, 780px);
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.28;
  animation: glowPulse 34s ease-in-out infinite alternate;
}

.glow-work {
  top: 124vh;
  right: 6vw;
  background: radial-gradient(circle, rgba(68, 194, 177, 0.34), rgba(79, 70, 229, 0.1) 46%, transparent 72%);
}

.glow-products {
  top: 220vh;
  left: -8vw;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.28), rgba(155, 140, 255, 0.16) 42%, transparent 74%);
  animation-duration: 18s;
}

.glow-resume {
  top: 340vh;
  right: 8vw;
  background: radial-gradient(circle, rgba(200, 164, 93, 0.22), rgba(239, 111, 108, 0.1) 46%, transparent 74%);
  animation-duration: 20s;
}

.soft-panel {
  position: absolute;
  display: block;
  width: clamp(300px, 34vw, 640px);
  height: clamp(210px, 22vw, 420px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 56px;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
    rgba(125, 211, 252, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 28px 80px rgba(0,0,0,0.18);
  filter: blur(7px);
  opacity: 0.2;
  backdrop-filter: blur(10px);
  mask-image: radial-gradient(ellipse at center, black 0%, black 52%, rgba(0,0,0,0.52) 76%, transparent 100%);
  animation: panelDrift 42s ease-in-out infinite alternate;
}

.panel-work {
  top: 142vh;
  left: 62vw;
  transform: rotate(-8deg);
}

.panel-products {
  top: 240vh;
  left: 9vw;
  width: clamp(360px, 42vw, 720px);
  transform: rotate(9deg);
  animation-duration: 29s;
}

.panel-resume {
  top: 356vh;
  right: 4vw;
  transform: rotate(-14deg);
  animation-duration: 31s;
}

@keyframes auroraDrift {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(-2deg) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) rotate(3deg) scale(1.08);
  }
}

@keyframes sheenSweep {
  0%,
  32% {
    transform: translateX(-34%);
    opacity: 0.2;
  }
  58% {
    opacity: 0.72;
  }
  100% {
    transform: translateX(34%);
    opacity: 0.22;
  }
}

@keyframes haloSpin {
  to {
    rotate: 360deg;
  }
}

@keyframes floatGlass {
  from {
    translate: 0 0;
    scale: 1;
  }
  to {
    translate: 5vw -4vh;
    scale: 1.08;
  }
}

@keyframes chipFloat {
  from {
    translate: 0 0;
  }
  to {
    translate: -22px 34px;
  }
}

@keyframes orbitBreath {
  from {
    scale: 1;
    opacity: 0.38;
  }
  to {
    scale: 1.08;
    opacity: 0.68;
  }
}

@keyframes glowPulse {
  from {
    transform: translate3d(0, 0, 0) scale(0.96);
  }
  to {
    transform: translate3d(5vw, -3vh, 0) scale(1.12);
  }
}

@keyframes panelDrift {
  from {
    translate: 0 0;
    opacity: 0.22;
  }
  to {
    translate: -34px 42px;
    opacity: 0.34;
  }
}

@keyframes scanMove {
  0%,
  28% {
    left: -48%;
  }
  68%,
  100% {
    left: 108%;
  }
}

@keyframes headingLineFlow {
  0%,
  18% {
    background-position: 0 0, 130% 0;
  }
  72%,
  100% {
    background-position: 0 0, -130% 0;
  }
}

@property --ring-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderParticleOrbit {
  to {
    --ring-angle: 360deg;
  }
}

@keyframes resumeBorderFlash {
  to {
    --ring-angle: 360deg;
  }
}

.topbar,
.reader-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px clamp(18px, 4vw, 56px);
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 16, 0.46);
  backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: 0 12px 46px rgba(0, 0, 0, 0.16);
}

.reader-topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 17, 18, 0.78);
  backdrop-filter: blur(20px);
}

.nav a,
.text-button {
  border-radius: var(--radius-xs);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-avatar {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(110, 168, 255, 0.46);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(110, 168, 255, 0.22);
}

.brand {
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--panel);
  color: var(--gold);
}

.nav a,
.text-button {
  color: var(--muted);
  font: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.nav a:hover,
.text-button:hover {
  color: #8be8ff;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(88vh - 75px);
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  padding: clamp(56px, 8vw, 110px) clamp(18px, 6vw, 92px) 62px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 42% 48%, rgba(10, 16, 34, 0.08), rgba(5, 7, 18, 0.46) 54%, rgba(5, 7, 18, 0.7) 100%),
    linear-gradient(90deg, rgba(5, 7, 18, 0.58) 0%, rgba(5, 7, 18, 0.2) 46%, rgba(5, 7, 18, 0.54) 100%),
    linear-gradient(180deg, rgba(5, 7, 18, 0.22), rgba(5, 7, 18, 0.48));
  pointer-events: none;
}

.hero-motion-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/backgrounds/hero-city-loop.gif");
  background-position: center;
  background-size: cover;
  opacity: 0.95;
  transform: scale(1.012);
  filter: saturate(1.04) contrast(1.02);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.hero .signal-panel {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 980px;
  font-size: clamp(2.6rem, 6.1vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.85;
}

.section-subtitle {
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.tag,
.pill {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  color: #ddd7cc;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.hero-actions,
.form-actions,
.admin-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.button.primary {
  border-color: rgba(126, 171, 255, 0.55);
  background: linear-gradient(135deg, #43d5ff 0%, #5b7cfa 46%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 12px 34px rgba(91, 124, 250, 0.28);
}

.button.primary:hover {
  transform: translateY(-2px);
  border-color: rgba(141, 226, 255, 0.75);
  box-shadow: 0 16px 44px rgba(91, 124, 250, 0.36), 0 0 26px rgba(71, 213, 255, 0.16);
}

.button.ghost {
  border-color: rgba(71, 213, 255, 0.64);
  background:
    linear-gradient(135deg, rgba(71, 213, 255, 0.08), rgba(139, 92, 246, 0.045)),
    rgba(255, 255, 255, 0.018);
  color: #66dcff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(71, 213, 255, 0.08);
}

.button.ghost:hover {
  border-color: rgba(110, 168, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(71, 213, 255, 0.14), rgba(139, 92, 246, 0.08)),
    rgba(255, 255, 255, 0.03);
  color: #a8ecff;
}

.signal-panel {
  display: grid;
  gap: 14px;
}

.signal-panel > div,
.highlight-card,
.timeline-item,
.work-card,
.admin-panel,
.product-feature,
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.016));
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.signal-panel > div {
  padding: 22px;
}

.metric {
  display: block;
  color: var(--gold);
  font-size: 2.25rem;
  font-weight: 850;
  line-height: 1;
}

.metric-label,
.muted {
  color: var(--muted);
}

.work-section,
.product-section,
.resume-section {
  padding: 86px clamp(18px, 6vw, 92px);
}

.product-section {
  position: relative;
  margin: 36px 0;
  background: url("Group 48097292.png?v=2") center / cover no-repeat;
  color: #071120;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(42, 112, 190, 0.16),
    0 28px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.product-section .section-subtitle,
.product-section .product-copy p,
.product-section .product-card p {
  color: rgba(7, 17, 32, 0.68);
}

.product-section h2,
.product-section h3 {
  color: #071120;
}

.product-section .eyebrow {
  color: #087fc5;
}

.product-section .product-copy,
.product-section .product-card {
  border-color: rgba(52, 110, 184, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(241, 248, 255, 0.58)),
    rgba(255, 255, 255, 0.42);
  box-shadow: 0 22px 70px rgba(57, 105, 168, 0.18);
}

.product-section .tag {
  border-color: rgba(47, 98, 168, 0.18);
  background: rgba(255, 255, 255, 0.48);
  color: rgba(7, 17, 32, 0.78);
}

.section-heading {
  display: grid;
  justify-items: center;
  width: min(100%, 980px);
  max-width: 980px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2 {
  position: relative;
  display: grid;
  width: min(100%, 880px);
  grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  margin-bottom: 14px;
  white-space: nowrap;
}

.section-heading h2::before,
.section-heading h2::after {
  content: "";
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(71, 213, 255, 0.72), rgba(139, 92, 246, 0.36), transparent),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 66%, transparent 100%);
  background-size: 100% 100%, 240% 100%;
  background-position: 0 0, 120% 0;
  box-shadow: 0 0 18px rgba(71, 213, 255, 0.22);
  animation: headingLineFlow 3.8s ease-in-out infinite;
}

.section-heading h2::after {
  background:
    linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.36), rgba(71, 213, 255, 0.72), transparent),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 66%, transparent 100%);
  background-size: 100% 100%, 240% 100%;
  background-position: 0 0, -120% 0;
  animation-direction: reverse;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading .section-subtitle {
  margin-inline: auto;
}

.compact-heading {
  margin-top: 0;
  margin-bottom: 48px;
}

.hero-carousel-section {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3.7vw, 56px) 0 clamp(62px, 7vw, 96px);
  background:
    linear-gradient(180deg, rgba(226, 237, 251, 0.08), rgba(207, 223, 244, 0.18)),
    url("Group 48097291.png") center / cover no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(58, 112, 180, 0.16),
    0 24px 86px rgba(0, 0, 0, 0.24);
}

.hero-carousel-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(234, 242, 253, 0.32), transparent 22%, transparent 78%, rgba(234, 242, 253, 0.32)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 54%, rgba(198, 217, 241, 0.2));
  pointer-events: none;
}

.hero-carousel-section .carousel-shell,
.hero-carousel-section .dots {
  position: relative;
  z-index: 1;
}

.carousel-shell {
  grid-column: 1 / -1;
  position: relative;
  display: block;
  width: 100vw;
  margin-top: clamp(12px, 2vw, 28px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.icon-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 72px;
  transform: translateY(-50%);
  border: 1px solid rgba(52, 110, 184, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.58);
  color: #17304f;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
  backdrop-filter: blur(12px);
}

.icon-button:first-child {
  left: clamp(14px, 2vw, 34px);
}

.icon-button:last-child {
  right: clamp(14px, 2vw, 34px);
}

.icon-button:hover {
  transform: translateY(-50%) scale(1.06);
  border-color: rgba(31, 129, 225, 0.48);
  background: rgba(255, 255, 255, 0.82);
  color: #0b6ed8;
  box-shadow: 0 14px 38px rgba(47, 91, 146, 0.18);
}

.featured-track {
  display: flex;
  min-height: clamp(250px, 26vw, 470px);
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 18px);
  padding: 8px clamp(52px, 7vw, 108px) 36px;
  overflow: visible;
  transform-origin: center;
}

.featured-track.slide-next {
  animation: slideInNext 620ms cubic-bezier(.16, 1.18, .32, 1) both;
}

.featured-track.slide-prev {
  animation: slideInPrev 620ms cubic-bezier(.16, 1.18, .32, 1) both;
}

.featured-card {
  position: relative;
  flex: 0 0 clamp(230px, 20vw, 360px);
  aspect-ratio: 1.48 / 1;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  box-shadow: none;
  transform: scale(0.88);
  transform-origin: center;
  transition: flex-basis 520ms cubic-bezier(.18, 1.08, .28, 1), transform 420ms cubic-bezier(.18, 1.08, .28, 1), opacity 220ms ease;
}

.featured-card::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 23%;
  z-index: 0;
  background: url("assets/backgrounds/carousel-base.png") center bottom / 100% 100% no-repeat;
  filter: saturate(1.02) drop-shadow(0 18px 30px rgba(35, 117, 232, 0.16));
  opacity: 0.62;
  pointer-events: none;
}

.featured-frame {
  position: absolute;
  left: 3%;
  right: 3%;
  top: 1%;
  bottom: 16%;
  z-index: 1;
  display: block;
  overflow: visible;
  background: transparent;
  pointer-events: none;
}

.featured-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("assets/backgrounds/carousel-frame.png") center / 100% 100% no-repeat;
  filter: saturate(1.04) drop-shadow(0 16px 28px rgba(35, 117, 232, 0.16));
  opacity: 0.68;
  pointer-events: none;
}

.featured-card[data-offset="-2"],
.featured-card[data-offset="2"] {
  opacity: 0.86;
  transform: scale(0.78);
}

.featured-card.active {
  z-index: 2;
  flex-basis: clamp(410px, 36vw, 650px);
  opacity: 1;
  box-shadow: none;
  transform: scale(1);
}

.featured-card.active::before {
  opacity: 0.72;
  filter: saturate(1.06) drop-shadow(0 20px 34px rgba(35, 117, 232, 0.2));
}

.featured-card.active .featured-frame::before {
  opacity: 0.78;
}

.featured-card img {
  position: absolute;
  left: 10.5%;
  right: 10.5%;
  top: 12.5%;
  bottom: 12.5%;
  z-index: 1;
  display: block;
  width: 79%;
  height: 75%;
  object-fit: cover;
  border-radius: 12px;
  filter: saturate(1.02) contrast(1.02);
  box-shadow: 0 14px 34px rgba(31, 82, 144, 0.12);
  transition: filter 220ms ease;
}

.featured-card::after {
  content: "";
  position: absolute;
  height: 30%;
  left: 13%;
  right: 13%;
  bottom: 25.5%;
  z-index: 2;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 18, 0.74));
  opacity: 0;
  transition: opacity 220ms ease;
}

.featured-title {
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 28%;
  z-index: 3;
  color: #f8f4ea;
  font-weight: 850;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.featured-card.active::after,
.featured-card.active .featured-title,
.featured-card:hover::after,
.featured-card:hover .featured-title {
  opacity: 1;
  transform: translateY(0);
}

.featured-card:hover {
  opacity: 1;
  transform: scale(0.93);
  box-shadow: none;
}

.featured-card[data-offset="-2"]:hover,
.featured-card[data-offset="2"]:hover {
  transform: scale(0.83);
}

.featured-card.active:hover {
  transform: scale(1.025);
}

.featured-card:hover img {
  filter: saturate(1.1) contrast(1.04);
}

.featured-work {
  position: relative;
  display: block;
  min-height: clamp(360px, 45vw, 720px);
  overflow: hidden;
  border: 1px solid rgba(71, 213, 255, 0.24);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: rgba(18, 20, 24, 0.58);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  cursor: pointer;
  transform-origin: center;
  transition: transform 360ms cubic-bezier(.2, .9, .2, 1), border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.hero .featured-work {
  min-height: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: default;
  opacity: 0.68;
  filter: saturate(1.16) contrast(1.06);
  pointer-events: none;
}

.hero .featured-work:hover {
  transform: none;
  box-shadow: none;
}

.featured-work:hover {
  border-color: rgba(71, 213, 255, 0.46);
  background: rgba(18, 22, 34, 0.7);
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.45), 0 0 42px rgba(71, 213, 255, 0.12);
  transform: translateY(-4px) scale(1.006);
}

.featured-work.slide-next {
  animation: slideInNext 620ms cubic-bezier(.16, 1.18, .32, 1) both;
}

.featured-work.slide-prev {
  animation: slideInPrev 620ms cubic-bezier(.16, 1.18, .32, 1) both;
}

.featured-image {
  min-height: clamp(360px, 45vw, 720px);
  background-position: center;
  background-size: cover;
  transition: transform 420ms cubic-bezier(.2, .9, .2, 1), filter 220ms ease;
}

.hero .featured-image {
  min-height: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
}

.resume-section {
  position: relative;
  isolation: isolate;
}

.resume-section::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 0;
  z-index: 0;
  width: clamp(440px, 42vw, 700px);
  height: clamp(180px, 15vw, 230px);
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(5, 7, 18, 0.82) 16%,
      rgba(5, 7, 18, 0.98) 32%,
      #050712 48%,
      #050712 100%
    );
  pointer-events: none;
}

.resume-section > * {
  position: relative;
  z-index: 1;
}

.featured-work:hover .featured-image {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.featured-copy {
  display: none;
}

.featured-copy h3 {
  font-size: clamp(1.9rem, 3vw, 3.35rem);
  line-height: 1;
}

.featured-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 0;
}

.hero .dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 3;
  margin: 0;
}

.dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(42, 78, 124, 0.22);
  cursor: pointer;
}

.dot.active {
  background: linear-gradient(90deg, #1aa8ff, #7b61ff);
}

@keyframes slideInNext {
  0% {
    opacity: 0.24;
    transform: translateX(54px) scale(0.94);
    filter: blur(5px);
  }
  64% {
    opacity: 1;
    transform: translateX(-8px) scale(1.018);
    filter: blur(0);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}

@keyframes slideInPrev {
  0% {
    opacity: 0.24;
    transform: translateX(-54px) scale(0.94);
    filter: blur(5px);
  }
  64% {
    opacity: 1;
    transform: translateX(8px) scale(1.018);
    filter: blur(0);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}

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

.work-grid {
  grid-template-columns: repeat(2, minmax(360px, 520px));
  justify-content: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.product-grid {
  display: flex;
  gap: clamp(10px, 0.9vw, 16px);
  width: min(100%, 1680px);
  height: clamp(430px, 36vw, 590px);
  margin-inline: auto;
  overflow: hidden;
}

.work-card,
.highlight-card,
.product-card {
  padding: 20px;
}

.work-card {
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.work-card:hover {
  border-color: rgba(71, 213, 255, 0.52);
  background: linear-gradient(135deg, rgba(71, 213, 255, 0.1), rgba(139, 92, 246, 0.06));
  box-shadow: 0 26px 74px rgba(0, 0, 0, 0.4), 0 0 28px rgba(71, 213, 255, 0.1);
  transform: translateY(-5px);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform 260ms ease, filter 220ms ease;
}

.work-card:hover img {
  transform: scale(1.025);
  filter: saturate(1.08);
}

.work-card p,
.product-card p,
.highlight-card p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.7;
}

.product-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.72fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: 18px;
}

.video-frame {
  min-height: 460px;
  background: #05060a;
  overflow: hidden;
}

.video-frame video {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.product-copy {
  display: flex;
  min-height: 460px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4.5vw, 58px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(12, 14, 18, 0.58);
}

.export-output {
  border-radius: var(--radius-xs);
}

.product-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 4.7rem);
  line-height: 1;
}

.product-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.product-card {
  position: relative;
  isolation: isolate;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(97, 156, 224, 0.3);
  border-radius: var(--radius-md);
  background: #071326;
  color: #fff;
  text-align: left;
  box-shadow: 0 20px 46px rgba(18, 58, 106, 0.14);
  transition:
    flex 520ms cubic-bezier(.16, 1, .3, 1),
    transform 320ms cubic-bezier(.16, 1, .3, 1),
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 9, 22, 0.06) 16%, rgba(3, 10, 24, 0.24) 48%, rgba(3, 9, 22, 0.96) 100%),
    linear-gradient(90deg, rgba(3, 10, 24, 0.14), transparent 45%);
  pointer-events: none;
  transition: background 300ms ease;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  z-index: 3;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.product-grid:hover .product-card {
  flex-grow: 0.72;
}

.product-grid .product-card:hover,
.product-grid .product-card:focus-visible {
  z-index: 4;
  flex-grow: 3.6;
  border-color: color-mix(in srgb, var(--accent), white 24%);
  box-shadow: 0 28px 72px rgba(20, 72, 142, 0.25), 0 0 26px color-mix(in srgb, var(--accent), transparent 76%);
  transform: scale(1.012);
}

.product-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent), white 24%);
  outline-offset: -4px;
}

.product-card > .product-card-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding: clamp(20px, 2.2vw, 34px);
  color: #fff;
  text-align: center;
  transform: translateY(8px);
  transition: transform 340ms cubic-bezier(.16, 1, .3, 1);
}

.product-card:hover > .product-card-copy,
.product-card:focus-visible > .product-card-copy {
  text-align: left;
  transform: translateY(0);
}

.product-card .eyebrow {
  margin-bottom: 10px;
  color: #fff;
  white-space: nowrap;
}

.product-card h3 {
  position: relative;
  left: 50%;
  width: max-content;
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 1.65vw, 1.8rem);
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  transform: translateX(-50%);
  transition: left 260ms ease, transform 260ms ease;
}

.product-card:hover h3,
.product-card:focus-visible h3 {
  left: 0;
  transform: translateX(0);
}

.product-card-summary,
.product-card .tag-row {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition:
    max-height 380ms cubic-bezier(.16, 1, .3, 1),
    margin 300ms ease,
    opacity 220ms ease,
    transform 320ms cubic-bezier(.16, 1, .3, 1);
}

.product-card:hover .product-card-summary,
.product-card:focus-visible .product-card-summary {
  max-height: 92px;
  margin-top: 12px;
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover .tag-row,
.product-card:focus-visible .tag-row {
  max-height: 96px;
  margin-top: 16px;
  opacity: 1;
  transform: translateY(0);
}

.product-card .tag {
  border-color: rgba(196, 224, 255, 0.38);
  background: rgba(6, 18, 40, 0.5);
  color: #fff;
  backdrop-filter: blur(8px);
}

.product-section .product-card,
.product-section .product-card p,
.product-section .product-card h3,
.product-section .product-card .eyebrow,
.product-section .product-card .tag {
  color: #fff;
}

button.product-card {
  font: inherit;
  cursor: pointer;
}

.resume-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.45fr);
  gap: 16px;
  margin-bottom: 16px;
}

.resume-id-card,
.resume-facts,
.resume-hobbies {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(71, 213, 255, 0.06), rgba(139, 92, 246, 0.035));
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.resume-section .resume-id-card,
.resume-section .resume-facts,
.resume-section .resume-hobbies,
.resume-section .highlight-card,
.resume-section .timeline-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.resume-section .resume-id-card::before,
.resume-section .resume-facts::before,
.resume-section .resume-hobbies::before,
.resume-section .highlight-card::before,
.resume-section .timeline-item::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 4;
  border-radius: inherit;
  padding: 2px;
  background:
    conic-gradient(
      from var(--ring-angle),
      transparent 0deg,
      transparent 18deg,
      rgba(71, 213, 255, 0.18) 34deg,
      rgba(71, 213, 255, 1) 50deg,
      rgba(255, 255, 255, 0.96) 64deg,
      rgba(240, 182, 93, 0.92) 78deg,
      rgba(139, 92, 246, 1) 98deg,
      transparent 132deg,
      transparent 360deg
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(71, 213, 255, 0.28));
  animation: resumeBorderFlash 12s linear infinite;
}

.resume-section .highlight-card:nth-child(2)::before,
.resume-section .timeline-item:nth-child(2)::before {
  animation-delay: -1.8s;
}

.resume-section .highlight-card:nth-child(3)::before,
.resume-section .timeline-item:nth-child(3)::before,
.resume-section .resume-hobbies::before {
  animation-delay: -3.4s;
}

.resume-id-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.6fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: 220px;
  padding: clamp(26px, 3vw, 42px);
}

.resume-person {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.resume-person img {
  width: 132px;
  height: 132px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(110, 168, 255, 0.45);
}

.resume-person-copy h3 {
  margin: 8px 0 7px;
  font-size: 1.35rem;
}

.resume-person-copy > p:last-child,
.resume-assessment > p:last-child,
.resume-facts span {
  color: var(--muted);
  line-height: 1.7;
}

.resume-assessment {
  min-width: 0;
  padding-left: clamp(28px, 4vw, 64px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-assessment .eyebrow {
  margin-bottom: 12px;
}

.resume-assessment > p:last-child {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.9;
  text-align: justify;
}

.resume-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.resume-facts div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.resume-facts span,
.resume-facts strong {
  display: block;
}

.resume-facts strong {
  margin-top: 5px;
  color: var(--text);
  font-size: 0.98rem;
}

.resume-hobbies {
  padding: 20px;
}

.resume-hobbies .tag-row {
  align-content: start;
}

.product-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: inherit;
  filter: saturate(0.9) brightness(0.92);
  transition: transform 520ms cubic-bezier(.16, 1, .3, 1), filter 320ms ease;
}

.product-card:hover img,
.product-card:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.06) brightness(1);
}

.product-section .product-card {
  padding: 0;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 72px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.video-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(18px);
}

.video-modal-panel {
  position: relative;
  width: min(1180px, 94vw);
  border: 1px solid rgba(124, 215, 255, 0.32);
  border-radius: var(--radius-lg);
  background: rgba(6, 9, 18, 0.78);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.58), 0 0 48px rgba(71, 213, 255, 0.18);
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  transition: transform 240ms cubic-bezier(.2, .9, .2, 1);
}

.video-modal.open .video-modal-panel {
  transform: translateY(0) scale(1);
}

.video-modal-panel video {
  display: block;
  width: 100%;
  max-height: 78vh;
  background: #02040a;
}

.video-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.72);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 128px;
  padding: 20px 64px 20px 26px;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.timeline-item:focus-visible {
  outline: 2px solid rgba(71, 213, 255, 0.72);
  outline-offset: 4px;
}

.timeline-item:hover {
  border-color: rgba(71, 213, 255, 0.38);
  background: linear-gradient(135deg, rgba(71, 213, 255, 0.075), rgba(139, 92, 246, 0.045));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), 0 0 28px rgba(71, 213, 255, 0.08);
  transform: translateY(-3px);
}

.timeline-item.open {
  border-color: rgba(71, 213, 255, 0.5);
  background: linear-gradient(135deg, rgba(71, 213, 255, 0.11), rgba(139, 92, 246, 0.07));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4), 0 0 34px rgba(71, 213, 255, 0.12);
}

.timeline-icon-wrap {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  justify-self: center;
  align-self: center;
}

.timeline-icon {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.24));
}

.timeline-content {
  align-self: center;
}

.timeline-content h3 {
  margin-bottom: 7px;
}

.timeline-content .tag-row {
  margin: 18px 0 0;
}

.timeline-toggle {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(71, 213, 255, 0.36);
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(10, 18, 34, 0.38);
  backdrop-filter: blur(12px);
  cursor: pointer;
  box-shadow: 0 0 0 rgba(71, 213, 255, 0);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.timeline-toggle::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.timeline-toggle:hover {
  border-color: rgba(103, 232, 249, 0.9);
  background: rgba(71, 213, 255, 0.12);
  box-shadow: 0 12px 30px rgba(71, 213, 255, 0.12);
  transform: translateY(-1px);
}

.timeline-toggle[aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.timeline-detail {
  max-width: 920px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(71, 213, 255, 0.18);
}

.timeline-detail p {
  position: relative;
  margin: 0;
  padding-left: 18px;
}

.timeline-detail p + p {
  margin-top: 10px;
}

.timeline-detail p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 14px rgba(71, 213, 255, 0.45);
}

.timeline-period {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 6vw, 92px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.reader-body {
  background: #0d0e10;
}

.reader-topbar h1 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
}

.reader-main {
  padding: 30px clamp(10px, 4vw, 56px) 70px;
}

.page-stream {
  display: grid;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.page-stream img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: #181818;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 44px clamp(18px, 5vw, 72px);
}

.admin-panel {
  padding: 24px;
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: #111315;
  color: var(--text);
  padding: 12px;
  font: inherit;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.admin-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}

.admin-item img {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-xs);
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.mini-button {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: #202328;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
}

.export-output {
  min-height: 220px;
}

@media (max-width: 900px) {
  .hero,
  .featured-work,
  .product-feature,
  .admin-layout {
    grid-template-columns: 1fr;
  }

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

  .carousel-shell {
    display: block;
  }

  .featured-track {
    min-height: clamp(230px, 43vw, 390px);
    padding: 8px clamp(24px, 7vw, 72px) 34px;
  }

  .featured-card {
    flex-basis: clamp(190px, 28vw, 280px);
  }

  .featured-card.active {
    flex-basis: clamp(300px, 54vw, 480px);
  }

  .featured-card[data-offset="-2"],
  .featured-card[data-offset="2"] {
    display: none;
  }

  .icon-button {
    display: none;
  }

  .work-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .resume-profile {
    grid-template-columns: 1fr;
  }

  .resume-id-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .resume-assessment {
    padding-left: 0;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid rgba(71, 213, 255, 0.18);
  }

  .product-grid {
    height: 430px;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 5vw 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 151, 255, 0.46) transparent;
  }

  .product-grid .product-card,
  .product-grid:hover .product-card,
  .product-grid .product-card:hover,
  .product-grid .product-card:focus-visible {
    flex: 0 0 min(72vw, 430px);
    scroll-snap-align: center;
    transform: none;
  }

  .product-card .product-card-summary,
  .product-card .tag-row {
    max-height: 96px;
    opacity: 1;
    transform: none;
  }

  .product-card .product-card-summary {
    margin-top: 12px;
  }

  .product-card .tag-row {
    margin-top: 16px;
  }

  .section-heading h2 {
    gap: 14px;
    width: min(100%, 720px);
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .section-heading h2::before,
  .section-heading h2::after {
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 56px 18px 18px;
  }

  .timeline-icon-wrap {
    width: 72px;
    height: 72px;
  }

  .timeline-icon {
    width: 68px;
    height: 68px;
  }

  .featured-image {
    min-height: 340px;
  }

  .featured-copy {
    padding-inline: clamp(20px, 6vw, 38px);
  }

  .video-frame,
  .video-frame video,
  .product-copy {
    min-height: 320px;
  }
}

@media (max-width: 620px) {
  .topbar,
  .reader-topbar,
  .footer,
  .admin-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .signal-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .featured-work {
    min-height: auto;
  }

  .hero-carousel-section {
    padding-top: 30px;
  }

  .featured-track {
    min-height: 250px;
    padding-inline: 18px;
  }

  .featured-card[data-offset="-1"],
  .featured-card[data-offset="1"] {
    flex-basis: 40vw;
    opacity: 0.78;
    transform: scale(0.72);
  }

  .featured-card.active {
    flex-basis: 72vw;
  }

  .featured-image {
    min-height: 280px;
  }

  .product-grid {
    height: 390px;
    padding-inline: 18px;
  }

  .product-grid .product-card,
  .product-grid:hover .product-card,
  .product-grid .product-card:hover,
  .product-grid .product-card:focus-visible {
    flex-basis: 84vw;
  }

  .product-card > .product-card-copy {
    min-width: 0;
    padding: 22px 18px;
  }

  .resume-id-card {
    min-height: 0;
    padding: 22px 18px;
  }

  .resume-person {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
  }

  .resume-person img {
    width: 96px;
    height: 96px;
    border-radius: 20px;
  }

  .resume-person-copy h3 {
    font-size: 1.18rem;
  }

  .resume-assessment > p:last-child {
    font-size: 0.92rem;
    line-height: 1.8;
    text-align: left;
  }

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

  .section-heading h2 {
    grid-template-columns: minmax(20px, 0.35fr) auto minmax(20px, 0.35fr);
    gap: 10px;
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .timeline-item {
    grid-template-columns: 64px minmax(0, 1fr);
    padding-right: 52px;
  }

  .timeline-icon-wrap {
    width: 58px;
    height: 58px;
  }

  .timeline-icon {
    width: 56px;
    height: 56px;
  }
}

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

  .cursor-light {
    display: none;
  }
}
