:root {
  color-scheme: dark;
  --ink: #f6f1e7;
  --text: #dde5f2;
  --muted: #a8b4c8;
  --paper: #07090f;
  --surface: #111722;
  --surface-2: #16202d;
  --line: #2a3444;
  --primary: #4d9bff;
  --primary-dark: #86bdff;
  --teal: #29d1c4;
  --coral: #ff7d5c;
  --gold: #f0bd5a;
  --focus: #f4ba3a;
  --strong-bg: #0b1018;
  --header-bg: rgba(7, 9, 15, 0.86);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, "Noto Sans HK", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 260ms ease;
}

body.page-ready {
  opacity: 1;
  transform: translateY(0);
}

body.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--primary);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--strong-bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-left: 3px solid var(--coral);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-24deg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.lang-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  background: var(--primary);
  color: #06101f;
}

.lang-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero--home {
  min-height: calc(100dvh - 96px);
  display: flex;
  align-items: flex-end;
  background-image:
    linear-gradient(90deg, rgba(9, 12, 19, 0.82), rgba(9, 12, 19, 0.36) 56%, rgba(9, 12, 19, 0.7)),
    url("../media/portfolio/cover-led-stage-800.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero--compact {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 125, 92, 0.24), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(41, 209, 196, 0.18), transparent 34%),
    linear-gradient(135deg, #0b1018, #111827 58%, #080a10);
  color: #fff;
}

.hero-inner,
.section-inner,
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-inner {
  width: 100%;
  padding-top: 80px;
  padding-bottom: 54px;
}

.hero--compact .hero-inner {
  padding-top: 74px;
  padding-bottom: 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero--home .eyebrow,
.hero--compact .eyebrow {
  color: #ffb18f;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  color: inherit;
  font-size: 3.2rem;
}

.hero--compact h1 {
  max-width: 960px;
  font-size: 2.65rem;
}

.hero-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 9, 15, 0.58);
  backdrop-filter: blur(10px);
}

.hero-proof strong {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.78);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--primary);
  color: #06101f;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  background: var(--primary-dark);
  color: #06101f;
}

.button:active {
  transform: translateY(1px);
}

.button--light {
  background: var(--ink);
  color: #06101f;
}

.button--light:hover {
  background: #ffffff;
  color: #06101f;
}

.button--secondary {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.button--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.button--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.file-size {
  color: currentColor;
  font-size: 0.82em;
  font-weight: 700;
  opacity: 0.72;
  white-space: nowrap;
}

.section {
  padding: 74px 0;
}

.section--tight {
  padding: 52px 0;
}

.section--surface {
  background: var(--surface);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: 2.35rem;
}

.section-heading p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--2 {
  grid-template-columns: 1fr;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.stat {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.feature,
.work-card,
.timeline-item,
.contact-panel,
.asset-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature,
.timeline-item,
.contact-panel {
  padding: 24px;
}

.feature h3,
.work-card h3,
.timeline-item h3,
.contact-panel h3 {
  font-size: 1.32rem;
}

.feature p,
.work-card p,
.timeline-item p,
.contact-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cfe5ff;
  background: rgba(77, 155, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.split-copy h2 {
  font-size: 2.35rem;
}

.split-copy p {
  color: var(--muted);
}

.media-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-frame--wide img {
  aspect-ratio: 16 / 9;
}

.caption {
  margin: 0;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.case-facts {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.case-facts div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.case-facts dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-facts dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.work-card {
  overflow: hidden;
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.work-card--portrait img {
  aspect-ratio: 4 / 5;
  object-position: center 48%;
}

.work-card--framed-still img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #05070c;
}

.work-card-body {
  padding: 22px;
}

.work-card .meta {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-band {
  background: var(--strong-bg);
  color: #fff;
}

.quote-band blockquote {
  max-width: 920px;
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.35;
}

.quote-band cite {
  display: block;
  margin-top: 18px;
  color: #b9c1d0;
  font-style: normal;
}

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

.credit-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.credit-list article {
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.credit-list h3 {
  font-size: 1.18rem;
}

.credit-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

.timeline-item {
  display: grid;
  gap: 8px;
}

.timeline-item time {
  color: var(--coral);
  font-weight: 900;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.contact-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li + li {
  margin-top: 10px;
}

.contact-list a {
  font-weight: 800;
}

.asset-card {
  padding: 18px;
}

.asset-card h3 {
  margin-bottom: 8px;
}

.skill-controls {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.skill-search label {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.skill-search input {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.skill-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skill-filter {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.skill-filter[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #06101f;
}

.skill-result-count {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.skill-layout {
  display: grid;
  gap: 18px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.skill-card {
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.skill-card:hover,
.skill-card[aria-pressed="true"] {
  border-color: rgba(77, 155, 255, 0.8);
  background: var(--surface-2);
}

.skill-card:active {
  transform: translateY(1px);
}

.skill-name {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.skill-kind {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.skill-empty {
  display: none;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
}

.skill-empty.is-visible {
  display: block;
}

.skill-inspector {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.skill-inspector h2 {
  font-size: 1.5rem;
}

.skill-inspector p {
  margin: 12px 0 0;
  color: var(--muted);
}

.hero--compact.skill-hero-enhanced {
  min-height: 560px;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(7, 9, 15, 0.94), rgba(7, 9, 15, 0.62) 54%, rgba(7, 9, 15, 0.9)),
    linear-gradient(180deg, rgba(77, 155, 255, 0.2), rgba(255, 125, 92, 0.12)),
    url("../media/virtual-camera-monitor-800.jpg");
  background-size: cover;
  background-position: center;
}

.hero--compact.skill-hero-enhanced::before,
.hero--compact.skill-hero-enhanced::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero--compact.skill-hero-enhanced::before {
  z-index: 0;
  opacity: 0.45;
  background:
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.06) 43px 44px),
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(41, 209, 196, 0.08) 59px 60px);
  animation: skill-scan 14s linear infinite;
}

.hero--compact.skill-hero-enhanced::after {
  z-index: 0;
  background: linear-gradient(135deg, rgba(41, 209, 196, 0.18), transparent 36%, rgba(255, 125, 92, 0.14) 70%, transparent);
}

.skill-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
  align-items: center;
}

.skill-hero-stage {
  min-height: 330px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(17, 23, 34, 0.82), rgba(8, 12, 20, 0.64)),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(14px);
}

.skill-orbit {
  position: relative;
  width: min(72vw, 330px);
  aspect-ratio: 1;
}

.skill-orbit::before,
.skill-orbit::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.skill-orbit::after {
  inset: 74px;
  border-color: rgba(41, 209, 196, 0.26);
}

.skill-orbit__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.86);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36), 0 0 0 1px color-mix(in srgb, var(--skill-accent), transparent 72%);
  cursor: pointer;
  transform: rotate(calc(var(--orbit-index) * 45deg)) translateY(-124px) rotate(calc(var(--orbit-index) * -45deg));
  transition: border-color 180ms ease, box-shadow 180ms ease, scale 180ms ease;
  animation: skill-float 3.4s ease-in-out infinite;
  animation-delay: calc(var(--orbit-index) * -180ms);
}

.skill-orbit__item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.skill-orbit__item:hover,
.skill-orbit__item.is-active {
  border-color: color-mix(in srgb, var(--skill-accent), #ffffff 20%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44), 0 0 24px color-mix(in srgb, var(--skill-accent), transparent 44%);
  scale: 1.08;
}

.skill-hero-readout {
  width: min(100%, 360px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 9, 15, 0.76);
}

.skill-hero-readout span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.skill-hero-readout strong {
  min-width: 0;
  color: var(--ink);
  font-size: 1.05rem;
  overflow-wrap: break-word;
}

.skill-hero-readout .skill-random-button {
  grid-row: span 2;
}

.skill-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.skill-stat-pill,
.skill-random-button,
.skill-reset-button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.skill-stat-pill {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
}

.skill-stat-pill span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.skill-stat-pill strong {
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.1;
}

.skill-random-button,
.skill-reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.skill-random-button {
  border-color: rgba(41, 209, 196, 0.42);
  background: linear-gradient(135deg, rgba(41, 209, 196, 0.18), rgba(77, 155, 255, 0.14));
  color: var(--ink);
}

.skill-reset-button:hover,
.skill-random-button:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  transform: translateY(-1px);
}

.skill-search input {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 16px 34px rgba(0, 0, 0, 0.18);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.skill-search input:focus {
  border-color: rgba(77, 155, 255, 0.78);
  background: #0d1420;
  box-shadow: 0 0 0 4px rgba(77, 155, 255, 0.16);
}

.skill-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.skill-filter:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.skill-filter[aria-pressed="true"] {
  box-shadow: 0 12px 28px rgba(77, 155, 255, 0.22);
}

.skill-filter__count {
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 0.76rem;
  font-weight: 900;
}

.skill-filter[aria-pressed="true"] .skill-filter__count {
  background: rgba(6, 16, 31, 0.16);
}

.skill-layout {
  gap: 22px;
}

.skill-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  perspective: 1200px;
}

.skill-card {
  position: relative;
  min-height: 158px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 8px 12px;
  overflow: hidden;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(22, 32, 45, 0.92), rgba(11, 16, 24, 0.96)),
    linear-gradient(135deg, color-mix(in srgb, var(--skill-accent, var(--primary)), transparent 82%), transparent 48%);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) translateY(0);
  transition:
    opacity 260ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(115deg, transparent 0 28%, color-mix(in srgb, var(--skill-accent, var(--primary)), transparent 62%) 42%, transparent 56%);
  transform: translateX(-60%);
  transition: opacity 180ms ease, transform 260ms ease;
}

.skill-card:hover,
.skill-card[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--skill-accent, var(--primary)), #ffffff 10%);
  background-color: var(--surface-2);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.36), 0 0 0 1px color-mix(in srgb, var(--skill-accent, var(--primary)), transparent 64%);
  transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) translateY(-3px);
}

.skill-card:hover::before,
.skill-card[aria-pressed="true"]::before {
  opacity: 1;
  transform: translateX(62%);
}

.skill-card:active {
  transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) translateY(0) scale(0.99);
}

.skill-card.is-ready:not(.is-revealed) {
  opacity: 0;
  transform: translateY(14px);
}

.skill-card.is-spotlighted {
  animation: skill-spotlight 850ms ease;
}

.skill-card__icon {
  grid-row: 1 / span 2;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 28px color-mix(in srgb, var(--skill-accent, var(--primary)), transparent 78%);
}

.skill-card__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.skill-name,
.skill-kind,
.skill-card__meta {
  position: relative;
  z-index: 1;
}

.skill-name {
  align-self: end;
  line-height: 1.18;
}

.skill-kind {
  min-height: 2.8em;
  margin-top: 0;
}

.skill-card__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #cfe5ff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.skill-inspector {
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(22, 32, 45, 0.96), rgba(8, 12, 20, 0.98)),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 18px);
}

.skill-inspector::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--primary), var(--coral));
}

.skill-inspector__top {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.skill-inspector__icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.skill-inspector__icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.skill-inspector__top .eyebrow {
  margin-bottom: 8px;
}

.skill-inspector__kind {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.skill-meter {
  height: 9px;
  margin: 18px 0 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.skill-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--primary), var(--gold));
  transition: width 280ms ease;
}

.skill-inspector__tags,
.skill-related div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.skill-inspector__tags li,
.skill-related__button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #dbeaff;
  font-size: 0.84rem;
  font-weight: 850;
}

.skill-inspector__tags li {
  padding: 6px 10px;
}

.skill-related {
  margin-top: 20px;
}

.skill-related p {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.skill-related__button {
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.skill-related__button:hover {
  border-color: rgba(77, 155, 255, 0.52);
  background: rgba(77, 155, 255, 0.12);
  color: var(--ink);
}

.skill-inspector__actions {
  margin-top: 20px;
}

.skill-toast {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--teal);
  font-weight: 900;
}

@keyframes skill-scan {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 86px 0, 0 120px;
  }
}

@keyframes skill-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes skill-spotlight {
  0%,
  100% {
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  }
  45% {
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.42), 0 0 0 4px color-mix(in srgb, var(--skill-accent, var(--primary)), transparent 34%);
  }
}

@media (min-width: 900px) {
  .skill-hero-inner {
    grid-template-columns: minmax(0, 0.98fr) minmax(330px, 0.56fr);
  }

  .skill-hero-stage {
    justify-self: end;
    width: min(100%, 430px);
  }
}

@media (max-width: 640px) {
  .hero--compact.skill-hero-enhanced {
    min-height: auto;
  }

  .skill-hero-stage {
    min-height: 280px;
    padding: 18px;
  }

  .skill-orbit {
    width: min(78vw, 276px);
  }

  .skill-orbit__item {
    width: 58px;
    height: 58px;
    margin: -29px;
    transform: rotate(calc(var(--orbit-index) * 45deg)) translateY(-104px) rotate(calc(var(--orbit-index) * -45deg));
  }

  .skill-orbit__item img {
    width: 31px;
    height: 31px;
  }

  .skill-hero-readout {
    grid-template-columns: 1fr;
  }

  .skill-hero-readout .skill-random-button {
    grid-row: auto;
  }

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

  .skill-dashboard .skill-random-button,
  .skill-dashboard .skill-reset-button {
    grid-column: span 1;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: 148px;
  }

  .skill-inspector {
    position: relative;
    top: auto;
  }
}

.site-footer {
  background: var(--strong-bg);
  color: #dfe4ef;
}

.link-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.links-shell {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(44px, 8vw, 82px) 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.94), rgba(7, 9, 15, 0.72) 52%, rgba(7, 9, 15, 0.96)),
    linear-gradient(145deg, rgba(41, 209, 196, 0.14), transparent 38%, rgba(255, 125, 92, 0.12)),
    url("../media/virtual-event-control-800.jpg");
  background-size: cover;
  background-position: center;
}

.links-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(255, 255, 255, 0.035) 55px 56px),
    linear-gradient(180deg, transparent, rgba(7, 9, 15, 0.38));
}

.links-profile {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.links-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.links-language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(58px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(17, 23, 34, 0.78);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.links-language-switch button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.links-language-switch button:hover {
  color: #fff;
}

.links-language-switch button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.links-language-switch button[aria-pressed="true"] {
  background: #fff;
  color: #07101f;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18);
}

.links-identity {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.links-identity .eyebrow {
  margin-bottom: 8px;
}

.links-avatar {
  width: 116px;
  height: 116px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  object-fit: cover;
  object-position: center 34%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.links-title {
  color: #fff;
  font-size: clamp(2.15rem, 6vw, 3rem);
}

.links-intro {
  max-width: 610px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.links-list {
  display: grid;
  gap: 12px;
}

.link-card {
  --link-accent: var(--primary);
  position: relative;
  min-height: 76px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--link-accent), transparent 88%), transparent 44%),
    rgba(17, 23, 34, 0.84);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--link-accent);
  opacity: 0.8;
}

.link-card--featured {
  border-color: color-mix(in srgb, var(--link-accent), #ffffff 28%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--link-accent), transparent 76%), transparent 50%),
    rgba(17, 23, 34, 0.88);
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--link-accent), #ffffff 28%);
  background: rgba(28, 39, 57, 0.92);
  color: #fff;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42), 0 0 0 1px color-mix(in srgb, var(--link-accent), transparent 58%);
}

.link-card:active {
  transform: translateY(0);
}

.link-icon,
.link-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.link-icon {
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--link-accent), transparent 54%);
  background: color-mix(in srgb, var(--link-accent), transparent 84%);
  color: color-mix(in srgb, var(--link-accent), #ffffff 18%);
}

.link-action {
  width: 36px;
  height: 36px;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gold);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.link-card:hover .link-action {
  border-color: transparent;
  background: var(--link-accent);
  color: #06101f;
}

.link-icon svg,
.link-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: block;
}

.link-copy span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.link-copy strong {
  display: block;
  color: #fff;
  font-size: 1.04rem;
}

.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 125, 92, 0.94), rgba(77, 155, 255, 0.9) 54%, rgba(41, 209, 196, 0.92));
  transform: translateX(-105%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-leaving .page-wipe {
  transform: translateX(0);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-out 260ms cubic-bezier(0.4, 0, 1, 1);
}

::view-transition-new(root) {
  animation: page-in 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes page-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-inner {
  padding-top: 34px;
  padding-bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (min-width: 760px) {
  .header-inner {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-inner,
  .section-inner,
  .footer-inner {
    padding-left: 28px;
    padding-right: 28px;
  }

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

  .hero h1 {
    font-size: 5rem;
  }

  .hero--compact h1 {
    font-size: 3.9rem;
  }

  .section-heading {
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
    align-items: end;
  }

  .section-heading h2,
  .split-copy h2 {
    font-size: 3rem;
  }

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

  .skill-controls {
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
    align-items: end;
  }

  .skill-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
    align-items: start;
  }

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

  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .split--reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .split--reverse .split-copy {
    order: 2;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1080px) {
  .hero--home {
    min-height: calc(100dvh - 96px);
  }

  .hero h1 {
    font-size: 6rem;
  }

  .hero--compact h1 {
    font-size: 4.6rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .nav a,
  .lang-link {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 7px 10px;
    font-size: 0.9rem;
    scroll-snap-align: start;
  }

  .hero--home {
    min-height: calc(100dvh - 132px);
    background-position: center top;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero--compact h1 {
    font-size: 2.35rem;
  }

  .section {
    padding: 54px 0;
  }

  .links-shell {
    padding: 42px 0 54px;
  }

  .links-topbar {
    justify-content: flex-start;
    margin-bottom: 18px;
  }

  .links-language-switch {
    width: 100%;
    max-width: 220px;
  }

  .links-identity {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .links-avatar {
    width: 96px;
    height: 96px;
  }

  .links-title {
    font-size: 2.15rem;
  }

  .link-card {
    grid-template-columns: 44px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }

  .link-icon {
    width: 42px;
    height: 42px;
  }

  .link-action {
    width: 34px;
    height: 34px;
  }
}

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

  body {
    opacity: 1;
    transform: none;
  }

  .page-wipe {
    display: none;
  }
}
