:root {
  --bg: #e8eff5;
  --bg-strong: #f5f9fc;
  --ink: #27334c;
  --muted: #68758d;
  --line: rgba(115, 132, 154, 0.22);
  --blue: #3b78ff;
  --green: #52c7b8;
  --orange: #ff9b52;
  --rose: #ff7c9a;
  --shadow-dark: rgba(113, 132, 153, 0.32);
  --shadow-light: rgba(255, 255, 255, 0.88);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 9%, rgba(255, 155, 82, 0.18), transparent 22rem),
    radial-gradient(circle at 82% 18%, rgba(82, 199, 184, 0.19), transparent 24rem),
    linear-gradient(145deg, #f2f7fb 0%, #e5edf4 46%, #d9e5ef 100%);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  background: rgba(235, 243, 249, 0.78);
  box-shadow: 9px 9px 22px var(--shadow-dark), -9px -9px 22px var(--shadow-light);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.contact-actions,
.filters {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.35), inset -3px -3px 8px rgba(20, 54, 102, 0.28);
}

.nav {
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius);
  background: #e5edf4;
  box-shadow: inset 5px 5px 11px rgba(128, 145, 166, 0.22), inset -5px -5px 11px rgba(255, 255, 255, 0.75);
}

.nav a {
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: 44px;
  padding: 86px 0 78px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-label,
.work-card span,
.contact-chip span,
.capability-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(62px, 10vw, 136px);
  line-height: 0.95;
  letter-spacing: 0;
}

.role {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.mobile-break {
  display: none;
}

.intro {
  max-width: 700px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.hero-actions,
.contact-actions,
.resource-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.resource-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  max-width: 720px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(232, 240, 246, 0.72);
  box-shadow: 12px 12px 26px rgba(113, 132, 153, 0.24), -12px -12px 26px rgba(255, 255, 255, 0.82);
}

.resource-card.wide {
  max-width: none;
  margin-top: 0;
  padding: 24px 28px;
}

.resource-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.resource-card h3 {
  margin: 8px 0 0;
  font-size: 24px;
}

.resource-card h2 {
  margin: 8px 0 0;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.65;
}

.resource-actions {
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
}

.resource-actions code {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--ink);
  font-family: inherit;
  font-weight: 900;
  background: #edf4f8;
  box-shadow: inset 4px 4px 9px rgba(128, 145, 166, 0.16), inset -5px -5px 12px rgba(255, 255, 255, 0.74);
}

.soft-button,
.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 900;
  background: #e8eff5;
  box-shadow: 8px 8px 18px var(--shadow-dark), -8px -8px 18px var(--shadow-light);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.soft-button:hover,
.filter-btn:hover {
  transform: translateY(-2px);
}

.soft-button.primary,
.filter-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.26), 8px 8px 18px var(--shadow-dark);
}

.hero-board,
.panel,
.capability-card,
.work-card,
.tool-card,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(232, 240, 246, 0.72);
  box-shadow: 14px 14px 30px var(--shadow-dark), -14px -14px 30px var(--shadow-light);
}

.hero-board {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 16px;
  min-height: 560px;
  padding: 34px;
  overflow: hidden;
}

.hero-board::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 49%, rgba(92, 112, 132, 0.1) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(92, 112, 132, 0.1) 50%, transparent 51%);
  background-size: 52px 52px;
  mask-image: linear-gradient(145deg, transparent 10%, #000 60%, transparent 100%);
}

.skill-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(237, 244, 248, 0.78);
  box-shadow: inset 5px 5px 12px rgba(128, 145, 166, 0.18), inset -6px -6px 14px rgba(255, 255, 255, 0.78);
}

.skill-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.skill-panel-head span,
.metric-row span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.skill-panel-head strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.skill-bars {
  display: grid;
  gap: 16px;
}

.skill-bar {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.skill-bar span {
  color: var(--muted);
  font-weight: 900;
}

.skill-bar i {
  position: relative;
  display: block;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce7ef;
  box-shadow: inset 4px 4px 8px rgba(128, 145, 166, 0.24), inset -4px -4px 8px rgba(255, 255, 255, 0.78);
}

.skill-bar i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.28);
}

.skill-bar:nth-child(2) i::before {
  background: linear-gradient(90deg, var(--orange), var(--rose));
}

.skill-bar:nth-child(3) i::before {
  background: linear-gradient(90deg, #6a7fe8, var(--blue));
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metric-row div {
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 16px;
  border-radius: var(--radius);
  background: #edf4f8;
  box-shadow: 7px 7px 16px rgba(113, 132, 153, 0.24), -7px -7px 16px rgba(255, 255, 255, 0.8);
}

.metric-row strong {
  font-size: 24px;
  line-height: 1.1;
}

.stat-ring {
  position: relative;
  z-index: 1;
  display: grid;
  width: 250px;
  height: 250px;
  place-items: center;
  justify-self: center;
  align-self: center;
  border-radius: 50%;
  background:
    conic-gradient(from 220deg, var(--orange) 0 28%, #eef5f9 28% 56%, var(--green) 56% 70%, #eef5f9 70% 100%);
  box-shadow: inset 10px 10px 20px rgba(116, 134, 154, 0.3), inset -12px -12px 24px rgba(255, 255, 255, 0.82), 12px 12px 28px rgba(116, 134, 154, 0.28);
}

.ring-core {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: inset 4px 4px 9px rgba(255, 255, 255, 0.32), inset -5px -5px 13px rgba(116, 47, 10, 0.25);
}

.contact-chip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: #edf4f8;
  box-shadow: inset 4px 4px 9px rgba(128, 145, 166, 0.2), inset -5px -5px 12px rgba(255, 255, 255, 0.78);
}

.contact-chip a {
  font-size: 20px;
  font-weight: 900;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 24px;
  padding: 36px 0;
  align-items: stretch;
}

.panel {
  padding: 30px;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #e8eff5;
  box-shadow: inset 5px 5px 10px rgba(128, 145, 166, 0.2), inset -5px -5px 10px rgba(255, 255, 255, 0.74);
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
  font-weight: 900;
}

.intro-panel {
  display: grid;
  align-content: start;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.profile-stats div {
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(237, 244, 248, 0.96), rgba(224, 234, 242, 0.92));
  box-shadow: inset 4px 4px 9px rgba(128, 145, 166, 0.16), inset -5px -5px 12px rgba(255, 255, 255, 0.74);
}

.profile-stats strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.profile-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-chart {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(237, 244, 248, 0.96), rgba(224, 234, 242, 0.92));
  box-shadow: inset 4px 4px 9px rgba(128, 145, 166, 0.16), inset -5px -5px 12px rgba(255, 255, 255, 0.74);
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.chart-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-head strong {
  color: var(--ink);
  font-size: 20px;
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: end;
  min-height: 170px;
}

.chart-bars div {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  height: 170px;
  min-width: 0;
}

.chart-bars i {
  display: block;
  align-self: end;
  height: var(--height);
  min-height: 36px;
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(180deg, var(--blue), var(--green));
  box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.3), 6px 6px 14px rgba(113, 132, 153, 0.18);
}

.chart-bars div:nth-child(2) i {
  background: linear-gradient(180deg, var(--orange), var(--rose));
}

.chart-bars div:nth-child(3) i {
  background: linear-gradient(180deg, #6a7fe8, var(--blue));
}

.chart-bars div:nth-child(4) i {
  background: linear-gradient(180deg, var(--green), #7ed8b7);
}

.chart-bars span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: #edf4f8;
  box-shadow: inset 5px 5px 12px rgba(128, 145, 166, 0.18), inset -5px -5px 12px rgba(255, 255, 255, 0.72);
}

.timeline-head {
  display: grid;
  grid-template-columns: minmax(205px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.timeline-item time {
  color: var(--blue);
  font-weight: 900;
  font-size: 17px;
  white-space: nowrap;
}

.timeline-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.timeline-head strong {
  display: block;
  font-size: 18px;
}

.timeline-head span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.timeline-main p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.timeline-main em {
  color: #ff4e55;
  font-style: normal;
  font-weight: 900;
}

.timeline-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.timeline-metrics.compact {
  grid-template-columns: repeat(3, 1fr);
}

.timeline-metrics div {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 104px;
  padding: 14px 14px 28px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8eff5;
  box-shadow: 6px 6px 14px rgba(113, 132, 153, 0.18), -6px -6px 14px rgba(255, 255, 255, 0.76);
}

.timeline-metrics div::before {
  content: "";
  position: absolute;
  inset: auto 12px 12px 12px;
  height: 7px;
  border-radius: 999px;
  background: #d7e3ed;
  box-shadow: inset 2px 2px 5px rgba(128, 145, 166, 0.2), inset -2px -2px 5px rgba(255, 255, 255, 0.78);
}

.timeline-metrics div::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: calc(100% - 24px);
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(var(--bar));
  transform-origin: left center;
}

.timeline-metrics strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.05;
  white-space: nowrap;
  letter-spacing: 0;
}

.timeline-metrics div:nth-child(2) strong {
  font-size: 18px;
}

.timeline-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.capability-section,
.work-section,
.ai-tool-section,
.tool-gallery-section,
.contact-section {
  padding: 54px 0;
}

.resource-section {
  padding: 30px 0 48px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading p {
  max-width: 470px;
  margin-bottom: 6px;
  color: var(--muted);
  line-height: 1.8;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.capability-card {
  min-height: 218px;
  padding: 24px;
}

.capability-card h3,
.work-card h3,
.tool-card h3 {
  margin: 14px 0 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.capability-card p,
.work-card p,
.tool-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.product-showcase-section {
  padding: 28px 0 54px;
}

.product-showcase-heading {
  margin-bottom: 24px;
}

.product-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: stretch;
}

.product-preview-card,
.product-link-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 26px;
  box-shadow: 16px 16px 34px rgba(105, 125, 150, 0.27), -12px -12px 28px rgba(255, 255, 255, 0.72);
}

.product-preview-card {
  position: relative;
  display: block;
  min-height: 450px;
  background: #edf2fb;
}

.product-preview-card img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 280ms ease;
}

.product-preview-card:hover img {
  transform: scale(1.025);
}

.product-preview-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 22px;
  align-items: center;
  padding: 22px 28px;
  color: #fff;
  background: linear-gradient(100deg, rgba(38, 73, 111, 0.96), rgba(31, 64, 99, 0.9));
}

.product-preview-footer strong {
  font-size: clamp(20px, 2vw, 27px);
}

.product-preview-footer small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.product-preview-footer b,
.product-link-card b {
  padding: 13px 18px;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(135deg, #ff9c8d, #ff7d70);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4);
}

.product-preview-footer b { grid-row: span 2; }
.product-preview-footer i { font-style: normal; }

.product-link-card {
  display: flex;
  min-height: 450px;
  padding: 34px;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  background: linear-gradient(160deg, #ff9c87 0%, #f87d75 58%, #d95575 100%);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 20px 23px 38px rgba(174, 76, 97, 0.3), -10px -10px 24px rgba(255, 255, 255, 0.75);
}

.product-link-card > i {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 18px;
  color: #ff8077;
  font-size: 32px;
  font-style: normal;
  background: rgba(255, 255, 255, 0.26);
}

.product-link-card > span {
  font-weight: 900;
}

.product-link-card > strong {
  margin: 18px 0;
  font-size: clamp(31px, 3vw, 46px);
  line-height: 1.16;
}

.product-link-card > small {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.product-link-card b {
  margin-top: auto;
  color: #ef746f;
  background: #fff;
}

.filters {
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  min-height: 40px;
  padding: 0 14px;
}

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

.work-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 420px;
  padding: 14px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.work-card.is-hidden {
  display: none;
}

.work-card:hover {
  transform: translateY(-4px);
}

.image-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  padding: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #030303;
  cursor: zoom-in;
  box-shadow: inset 4px 4px 8px rgba(128, 145, 166, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.74);
}

a.image-button,
.video-entry {
  cursor: pointer;
}

.image-button img {
  height: 100%;
  object-fit: contain;
  transition: opacity 200ms ease;
}

.entry-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 8px 8px 18px rgba(48, 65, 88, 0.24), inset 2px 2px 5px rgba(255, 255, 255, 0.25);
}

.work-card:hover .image-button img {
  opacity: 0.94;
}

.work-card > div {
  padding: 18px 6px 4px;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 900;
}

.text-link:hover {
  text-decoration: underline;
}

.ai-tool-section {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 32px;
  align-items: center;
}

.tool-copy {
  padding-right: 20px;
}

.tool-copy p {
  font-size: 17px;
}

.tool-points {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.tool-points span {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 900;
  background: #edf4f8;
  box-shadow: inset 5px 5px 12px rgba(128, 145, 166, 0.18), inset -5px -5px 12px rgba(255, 255, 255, 0.72);
}

.ai-feature-card {
  position: relative;
  display: block;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(232, 240, 246, 0.72);
  box-shadow: 14px 14px 30px var(--shadow-dark), -14px -14px 30px var(--shadow-light);
  transition: transform 180ms ease;
}

.ai-feature-card:hover {
  transform: translateY(-4px);
}

.ai-feature-card img {
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  background: #030303;
}

.live-badge {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 1;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 8px 8px 18px rgba(48, 65, 88, 0.26), inset 2px 2px 5px rgba(255, 255, 255, 0.26);
}

.tool-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tool-card {
  padding: 12px;
}

.tool-card img {
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  background: #030303;
}

.tool-card h3 {
  margin: 14px 4px 6px;
  font-size: 18px;
}

.tool-card p {
  margin: 0 4px 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.video-page .topbar {
  margin-bottom: 0;
}

.video-hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.76fr) minmax(500px, 1.24fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 64px 0 58px;
}

.video-hero h1 {
  margin: 24px 0 34px;
  font-size: clamp(44px, 4.15vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.video-tool-intro {
  display: grid;
  gap: 14px;
}

.video-tool-intro p {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(237, 244, 248, 0.62);
}

.video-tool-intro strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
}

.video-tool-intro span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.video-portfolio-note {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.video-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 470px;
  margin-top: 26px;
}

.video-stats div {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(232, 240, 246, 0.62);
  box-shadow: inset 4px 4px 10px rgba(128, 145, 166, 0.14), inset -5px -5px 12px rgba(255, 255, 255, 0.72);
}

.video-stats strong,
.video-stats span {
  display: block;
}

.video-stats strong {
  font-size: 24px;
  line-height: 1;
}

.video-stats span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.featured-player,
.video-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(232, 240, 246, 0.72);
  box-shadow: 14px 14px 30px var(--shadow-dark), -14px -14px 30px var(--shadow-light);
}

.featured-player {
  position: relative;
  padding: 16px;
  transition: transform 260ms ease, opacity 260ms ease;
}

.featured-player.is-changing .featured-stage,
.featured-player.is-changing .featured-caption {
  opacity: 0;
  transform: translateX(12px);
}

.featured-player-head,
.featured-caption,
.collection-heading,
.video-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.featured-player-head {
  min-height: 38px;
  padding: 0 2px 12px;
}

.featured-player-head .live-badge {
  position: static;
  padding: 0;
  color: var(--blue);
  background: none;
  box-shadow: none;
}

.live-badge,
.featured-index {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-index {
  color: var(--muted);
}

.featured-player video,
.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #030303;
  object-fit: contain;
}

.featured-stage {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  transition: opacity 240ms ease, transform 240ms ease;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  background: rgba(23, 35, 56, 0.58);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 180ms ease, background 180ms ease;
}

.featured-stage:hover .carousel-arrow,
.carousel-arrow:focus-visible {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(59, 120, 255, 0.86);
}

.carousel-prev {
  left: 14px;
}

.carousel-next {
  right: 14px;
}

.featured-caption {
  align-items: flex-end;
  gap: 28px;
  padding: 18px 4px 4px;
  transition: opacity 240ms ease, transform 240ms ease;
}

.featured-caption span,
.collection-heading span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-caption h2 {
  margin: 5px 0 0;
  font-size: 26px;
}

.featured-caption p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 4px 0;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(104, 117, 141, 0.34);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

.carousel-dots button.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.carousel-hint {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.video-gallery-section {
  padding: 70px 0 28px;
}

.video-gallery-section .section-heading p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.video-gallery-heading h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 6vw, 72px);
}

.video-category-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 36px 0 84px;
}

.video-category-nav a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  align-items: center;
  min-height: 94px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(232, 240, 246, 0.72);
  box-shadow: 9px 9px 20px rgba(113, 132, 153, 0.24), -9px -9px 20px rgba(255, 255, 255, 0.78);
  transition: transform 180ms ease, color 180ms ease;
}

.video-category-nav a:hover {
  color: var(--blue);
  transform: translateY(-3px);
}

.video-category-nav strong {
  grid-row: span 2;
  color: rgba(59, 120, 255, 0.28);
  font-size: 34px;
}

.video-category-nav span {
  font-size: 15px;
  font-weight: 900;
}

.video-category-nav small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.video-collection {
  scroll-margin-top: 108px;
  padding: 0 0 92px;
}

.collection-heading {
  position: relative;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.collection-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(34px, 4vw, 50px);
}

.collection-heading p {
  max-width: 480px;
  margin: 0 0 4px auto;
  color: var(--muted);
  line-height: 1.7;
}

.collection-heading > strong {
  color: rgba(59, 120, 255, 0.16);
  font-size: 64px;
  line-height: 0.82;
}

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

.video-card {
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 18px 18px 34px rgba(113, 132, 153, 0.3), -14px -14px 30px rgba(255, 255, 255, 0.86);
}

.video-card-copy {
  min-height: 88px;
  padding: 0 3px;
}

.video-card span {
  display: block;
  margin: 14px 2px 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-card h3 {
  margin: 0 2px 4px;
  font-size: 19px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.video-footer {
  margin-top: 10px;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.video-footer a {
  color: var(--blue);
}

/* UE portfolio */
.ue-page {
  --ue-accent: #31d6c5;
  --ue-blue: #438bff;
}

.ue-page::before {
  background:
    radial-gradient(circle at 82% 14%, rgba(49, 214, 197, 0.14), transparent 27%),
    radial-gradient(circle at 10% 36%, rgba(67, 139, 255, 0.13), transparent 26%);
}

.ue-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(54px, 5.4vw, 84px);
  white-space: nowrap;
}

.ue-lead {
  margin: 0 0 34px;
  color: var(--ink);
  font-size: clamp(20px, 1.7vw, 28px);
  font-weight: 900;
  line-height: 1.35;
}

.ue-page .soft-button.primary,
.ue-page .entry-badge {
  background: linear-gradient(135deg, var(--ue-blue), var(--ue-accent));
}

.ue-featured-player {
  border-color: rgba(49, 214, 197, 0.3);
  background: linear-gradient(145deg, rgba(238, 247, 250, 0.94), rgba(225, 239, 245, 0.91));
}

.ue-featured-player .featured-stage {
  box-shadow: 0 20px 54px rgba(8, 20, 34, 0.2);
}

.ue-featured-player .live-badge,
.ue-featured-player .featured-caption span,
.ue-page .collection-heading span,
.ue-page .video-card span {
  color: #148f86;
}

.ue-page .carousel-dots button.is-active {
  background: linear-gradient(90deg, var(--ue-blue), var(--ue-accent));
}

.ue-category-nav { grid-template-columns: repeat(3, 1fr); }
.ue-category-nav a:hover { border-color: rgba(49, 214, 197, 0.54); }
.ue-category-nav strong { color: rgba(49, 214, 197, 0.76); }

.ue-video-grid .video-card-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.ue-video-grid .video-card { overflow: hidden; }

@media (max-width: 720px) {
  .ue-hero h1 { font-size: clamp(48px, 16vw, 70px); }
  .ue-category-nav { grid-template-columns: 1fr; }
}

/* AE portfolio */
.ae-page { --ae-accent: #ff6f85; --ae-violet: #766cff; }
.ae-page::before { background: radial-gradient(circle at 80% 14%, rgba(118, 108, 255, 0.14), transparent 28%), radial-gradient(circle at 9% 38%, rgba(255, 111, 133, 0.12), transparent 27%); }
.ae-hero h1 { margin-bottom: 20px; font-size: clamp(48px, 4.5vw, 72px); white-space: nowrap; }
.ae-lead { margin: 0 0 34px; color: var(--ink); font-size: clamp(20px, 1.7vw, 28px); font-weight: 900; line-height: 1.35; }
.ae-page .soft-button.primary, .ae-page .entry-badge { background: linear-gradient(135deg, var(--ae-violet), var(--ae-accent)); }
.ae-featured-player { border-color: rgba(118, 108, 255, 0.3); background: linear-gradient(145deg, rgba(242, 240, 251, 0.95), rgba(235, 241, 249, 0.92)); }
.ae-featured-player .featured-stage { box-shadow: 0 20px 54px rgba(25, 18, 51, 0.2); }
.ae-featured-player .live-badge, .ae-featured-player .featured-caption span, .ae-page .collection-heading span, .ae-page .video-card span { color: #6957d9; }
.ae-page .carousel-dots button.is-active { background: linear-gradient(90deg, var(--ae-violet), var(--ae-accent)); }
.ae-category-nav { grid-template-columns: repeat(3, 1fr); }
.ae-category-nav a:hover { border-color: rgba(118, 108, 255, 0.5); }
.ae-category-nav strong { color: rgba(118, 108, 255, 0.72); }
.ae-video-grid .video-card-copy p { margin: 8px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.65; }
.ae-video-grid .video-card { overflow: hidden; }
@media (max-width: 720px) { .ae-hero h1 { font-size: clamp(38px, 11vw, 54px); } .ae-category-nav { grid-template-columns: 1fr; } }

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: 32px;
  padding: 30px 34px;
  margin-bottom: 54px;
}

.contact-card h2 {
  max-width: 520px;
  margin-bottom: 0;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.12;
}

.contact-card .contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 0;
}

.contact-card .soft-button {
  min-height: 54px;
  padding: 0 20px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(22, 31, 46, 0.72);
  backdrop-filter: blur(14px);
}

.modal.is-open {
  display: flex;
}

.modal figure {
  width: min(1120px, 100%);
  margin: 0;
}

.modal img {
  max-height: 82vh;
  border-radius: var(--radius);
  object-fit: contain;
  background: #000;
  box-shadow: 18px 18px 34px rgba(0, 0, 0, 0.32);
}

.modal figcaption {
  margin-top: 12px;
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

@media (max-width: 1040px) {
  .hero,
  .profile-grid,
  .ai-tool-section,
  .video-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-board {
    min-height: 480px;
  }

  .capability-grid,
  .work-grid,
  .video-grid,
  .timeline-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-showcase-grid {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 20px;
  }

  .product-preview-card,
  .product-link-card {
    min-height: 370px;
  }

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

  .timeline-metrics.compact {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 9px 12px;
    text-align: center;
  }

  .section {
    width: min(100% - 24px, 1180px);
    max-width: calc(100vw - 24px);
  }

  .hero {
    gap: 24px;
    padding-top: 42px;
  }

  .hero-copy,
  .hero-board {
    width: 100%;
    max-width: min(100%, 320px);
  }

  h1 {
    font-size: 64px;
  }

  .role {
    font-size: clamp(20px, 5.6vw, 22px);
    line-height: 1.22;
    word-break: break-all;
  }

  .mobile-break {
    display: block;
  }

  .intro {
    font-size: 16px;
    max-width: 320px;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .resource-card {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .resource-card.wide {
    max-width: none;
    padding: 20px;
  }

  .resource-actions {
    justify-content: flex-start;
  }

  .hero-board {
    min-height: auto;
    padding: 16px;
    gap: 14px;
  }

  .skill-panel {
    width: 100%;
    padding: 16px;
    overflow: hidden;
  }

  .skill-panel-head {
    flex-direction: column;
    gap: 8px;
  }

  .skill-panel-head strong {
    font-size: 24px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .contact-chip {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .stat-ring {
    width: 190px;
    height: 190px;
  }

  .ring-core {
    width: 72px;
    height: 72px;
  }

  .section-heading,
  .contact-card {
    align-items: stretch;
  }

  .section-heading {
    flex-direction: column;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .capability-grid,
  .work-grid,
  .video-grid,
  .tool-stack,
  .timeline-metrics,
  .timeline-metrics.compact {
    grid-template-columns: 1fr;
  }

  .product-showcase-grid {
    grid-template-columns: 1fr;
  }

  .product-preview-card {
    min-height: 300px;
  }

  .product-link-card {
    min-height: 310px;
    padding: 28px;
  }

  .product-preview-footer {
    grid-template-columns: 1fr;
    padding: 18px 20px;
  }

  .product-preview-footer b {
    width: max-content;
    grid-row: auto;
    margin-top: 8px;
  }

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

  .video-hero-copy {
    width: 100%;
    max-width: 720px;
    min-width: 0;
  }

  .video-hero h1 {
    margin: 22px 0 28px;
    font-size: clamp(38px, 10.5vw, 54px);
    letter-spacing: -0.05em;
  }

  .video-tool-intro p {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px 14px;
  }

  .video-tool-intro strong {
    color: var(--blue);
  }

  .featured-player {
    width: 100%;
    min-width: 0;
    padding: 10px;
    overflow: hidden;
  }

  .carousel-arrow {
    width: 36px;
    height: 44px;
    font-size: 28px;
    opacity: 1;
  }

  .carousel-prev {
    left: 8px;
  }

  .carousel-next {
    right: 8px;
  }

  .video-category-nav {
    grid-template-columns: 1fr;
    margin-bottom: 64px;
  }

  .collection-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .collection-heading p {
    margin-left: 0;
  }

  .collection-heading > strong {
    position: absolute;
    top: 4px;
    right: 0;
    font-size: 52px;
  }

  .featured-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .featured-caption p {
    max-width: none;
    text-align: left;
  }

  .carousel-footer {
    padding-bottom: 2px;
  }

  .carousel-hint {
    display: none;
  }

  .video-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
  }

  .video-stats div {
    min-width: 0;
    padding: 12px 10px;
  }

  .video-stats span {
    overflow-wrap: anywhere;
  }

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

  .chart-head {
    flex-direction: column;
    gap: 6px;
  }

  .chart-bars {
    gap: 10px;
    min-height: 140px;
  }

  .chart-bars div {
    height: 140px;
  }

  .contact-card .contact-actions {
    grid-template-columns: 1fr;
  }

  .work-card {
    grid-template-rows: auto 1fr;
    min-height: auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .info-list div {
    grid-template-columns: 1fr;
  }
}
