@font-face {
  font-family: MiSans;
  src: url('https://image.ark.art/fonts/MiSans-Regular.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: MiSans;
  src: url('https://image.ark.art/fonts/MiSans-Demibold.ttf') format('truetype');
  font-weight: 600 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page-bg: #080a0d;
  --surface: #13171d;
  --surface-raised: #181c23;
  --surface-subtle: #0e1116;
  --border: rgba(255, 255, 255, 0.11);
  --text: #f7f7f3;
  --muted: #a9adb6;
  --accent: #d9ef72;
  --accent-dark: #9cb13c;
  --section-max: 1320px;
  --page-gutter: clamp(20px, 4.5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page-bg);
}

body.static-seo-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--page-bg);
  font-family: MiSans, 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.static-seo-page :is(h1, h2, h3, p, figure, ol, ul, dl, dd) {
  margin-top: 0;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #11140a;
  background: var(--accent);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.section-shell {
  width: min(100%, var(--section-max));
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--page-gutter);
  padding-left: var(--page-gutter);
}

.static-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--border);
}

.static-header-inner {
  display: flex;
  width: min(100%, var(--section-max));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 102px;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-menu {
  position: relative;
}

.language-trigger {
  display: flex;
  width: 95px;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  background: #1f2126;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}

.language-trigger::-webkit-details-marker {
  display: none;
}

.language-trigger > span {
  color: #7e838d;
  transition: transform 180ms ease;
}

.language-menu[open] .language-trigger {
  border-color: rgba(217, 239, 114, 0.34);
}

.language-menu[open] .language-trigger > span {
  transform: rotate(180deg);
}

.language-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 132px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #1f2126;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.language-option {
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.language-option:hover,
.language-option.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #11140a;
  background: var(--accent);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  background: #e5f79b;
  box-shadow: 0 14px 34px rgba(217, 239, 114, 0.14);
  transform: translateY(-2px);
}

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

.header-cta {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
}

.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb-nav a {
  text-decoration: none;
}

.breadcrumb-nav a:hover,
.breadcrumb-nav [aria-current='page'] {
  color: var(--text);
}

.breadcrumb-separator {
  color: #575c66;
}

.hero,
.directory-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(540px, 1.2fr);
  min-height: 720px;
  align-items: center;
  gap: clamp(40px, 5vw, 76px);
  padding-top: clamp(52px, 6vw, 88px);
  padding-bottom: clamp(72px, 8vw, 112px);
}

.directory-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.directory-hero h1 {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(46px, 5.8vw, 82px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.skill-page .hero h1 {
  font-size: clamp(46px, 4.6vw, 70px);
}

.hero-description {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.75;
}

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

.hero-note {
  max-width: 560px;
  margin: 22px 0 0;
  color: #777d87;
  font-size: 13px;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  align-items: center;
  min-width: 0;
}

.image-card,
.example-figure,
.use-case-card,
.skill-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.image-card img {
  display: block;
  width: 100%;
  height: clamp(420px, 38vw, 620px);
  object-fit: cover;
}

.image-card figcaption,
.example-figure figcaption {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 0 16px;
  color: var(--muted);
  font-size: 12px;
}

.visual-arrow,
.comparison-arrow {
  display: grid;
  z-index: 2;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0 -1px;
  border: 1px solid rgba(217, 239, 114, 0.35);
  border-radius: 50%;
  color: var(--accent);
  background: #111318;
}

.content-section {
  padding: clamp(72px, 9vw, 128px) 0;
}

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

.split-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(440px, 1.2fr);
  gap: clamp(40px, 8vw, 120px);
}

.section-heading h2,
.category-heading h2,
.final-cta h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-heading > p:last-child,
.category-heading > p,
.prose-stack,
.content-card p,
.guide-card p,
.workflow-card p,
.advantage-grid p,
.use-case-card p,
.related-card p,
.final-cta p {
  color: var(--muted);
}

.constrained-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.card-grid,
.observation-grid,
.use-case-grid,
.related-grid,
.advantage-grid,
.chooser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.compact-grid,
.use-case-grid,
.related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-card,
.guide-card,
.advantage-grid article {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-raised);
}

.card-index,
.advantage-grid article > span {
  color: var(--accent);
  font-size: 12px;
}

.content-card h3,
.guide-card h3,
.advantage-grid h3 {
  margin-top: 48px;
  font-size: 20px;
}

.walkthrough-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.walkthrough-step {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-raised);
  animation: walkthrough-highlight 9s ease-in-out infinite;
  animation-delay: calc(var(--step-index) * 3s);
}

.walkthrough-step::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  content: '';
  transform: scaleX(0);
  transform-origin: left;
  animation: walkthrough-progress 9s linear infinite;
  animation-delay: calc(var(--step-index) * 3s);
}

.step-number {
  color: var(--accent);
  font-weight: 700;
}

.step-preview {
  display: grid;
  height: 128px;
  grid-template-columns: 0.7fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  margin: 26px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0c0f13;
}

.step-preview span {
  border-radius: 8px;
  background: linear-gradient(135deg, #2f343c, #171b20);
}

.step-preview span:first-child {
  grid-row: 1 / -1;
}

.walkthrough-step h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.walkthrough-step p {
  color: var(--muted);
  font-size: 14px;
}

@keyframes walkthrough-highlight {
  0%, 27%, 100% { border-color: var(--border); transform: translateY(0); }
  6%, 24% { border-color: rgba(217, 239, 114, 0.65); transform: translateY(-6px); }
}

@keyframes walkthrough-progress {
  0% { transform: scaleX(0); }
  27% { transform: scaleX(1); }
  28%, 100% { transform: scaleX(0); }
}

.comparison-visual {
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  align-items: center;
  margin-top: 42px;
}

.example-figure img,
.use-case-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.use-case-card > div {
  padding: 24px;
}

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

.readability-grid article {
  padding: 28px;
  border-top: 2px solid var(--accent-dark);
  background: var(--surface);
}

.readability-grid li {
  margin-bottom: 10px;
  color: var(--muted);
}

.boundary-note,
.comparison-conclusion {
  margin-top: 22px;
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  color: #c9cbd0;
  background: rgba(217, 239, 114, 0.06);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--surface);
  text-align: left;
}

th,
td {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  vertical-align: top;
}

thead th,
tbody th {
  color: var(--text);
}

.narrow-shell {
  max-width: 940px;
}

.faq-list {
  margin-top: 42px;
}

.faq-list details {
  border-top: 1px solid var(--border);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  max-width: 760px;
  margin: -4px 0 28px;
  padding-right: 48px;
  color: var(--muted);
}

.related-card {
  position: relative;
  min-height: 220px;
  padding: 24px;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.related-card > span {
  position: absolute;
  right: 22px;
  top: 22px;
  color: var(--accent);
}

.related-card:hover,
.skill-card:hover {
  border-color: rgba(217, 239, 114, 0.42);
  transform: translateY(-4px);
}

.final-cta-section {
  padding: clamp(72px, 8vw, 112px) 0;
  background: radial-gradient(circle at 20% 0%, rgba(217, 239, 114, 0.15), transparent 38%), #0d0f13;
}

.final-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.final-cta > div {
  max-width: 780px;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: #777b83;
  background: #08090b;
}

.footer-inner {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}

.footer-inner p {
  margin-bottom: 0;
}

.hero-stats {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  margin: 52px 0 0;
}

.hero-stats div {
  display: grid;
  gap: 2px;
}

.hero-stats dt {
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
}

.hero-stats dd {
  color: var(--muted);
  font-size: 13px;
}

.directory-hero-gallery {
  position: relative;
  min-height: 520px;
}

.directory-hero-gallery a {
  position: absolute;
  inset: calc(var(--hero-card) * 18%) calc((2 - var(--hero-card)) * 8%) calc((2 - var(--hero-card)) * 12%) calc(var(--hero-card) * 12%);
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.34);
  transform: rotate(calc((var(--hero-card) - 1) * 3deg));
}

.directory-hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directory-hero-gallery a > span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 10, 13, 0.8);
  font-size: 13px;
}

.category-nav-section {
  position: sticky;
  top: 0;
  z-index: 10;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 10, 13, 0.92);
  backdrop-filter: blur(16px);
}

.category-nav-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.category-nav-inner > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.category-nav-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.category-nav-inner a,
.guide-card a {
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}

.directory-category {
  padding-top: 46px;
  scroll-margin-top: 76px;
}

.directory-category + .directory-category {
  margin-top: 92px;
  border-top: 1px solid var(--border);
}

.category-heading {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(400px, 1.2fr);
  gap: 72px;
  align-items: end;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.skill-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.skill-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.skill-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skill-card-image span {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--accent);
  background: rgba(8, 10, 13, 0.84);
  font-size: 11px;
}

.skill-card-copy {
  position: relative;
  padding: 24px;
}

.skill-card-copy h3 {
  margin-bottom: 12px;
  padding-right: 28px;
  font-size: 20px;
}

.skill-card-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.skill-card-copy > span {
  position: absolute;
  top: 24px;
  right: 22px;
  color: var(--accent);
}

.guide-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 22px;
}

.guide-card a {
  color: var(--accent);
}

.workflow-grid {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.workflow-card {
  display: grid;
  grid-template-columns: 48px minmax(240px, 0.7fr) minmax(480px, 1.3fr);
  gap: 30px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.workflow-card > span {
  color: var(--accent);
}

.workflow-card ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-card a {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}

.workflow-card a span {
  color: var(--accent);
}

.static-seo-page :is(a, summary, .table-scroll):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .hero,
  .directory-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 800px;
  }

  .directory-hero-gallery {
    min-height: 470px;
  }

  .skill-grid,
  .card-grid,
  .compact-grid,
  .use-case-grid,
  .related-grid,
  .chooser-grid,
  .advantage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-card {
    grid-template-columns: 42px 1fr;
  }

  .workflow-card ol {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .static-header-inner {
    min-height: 66px;
  }

  .directory-link,
  .header-cta {
    display: none;
  }

  .header-nav,
  .language-links {
    gap: 8px;
  }

  .language-link {
    font-size: 12px;
  }

  .breadcrumb-nav {
    padding-top: 22px;
  }

  .hero,
  .directory-hero {
    gap: 46px;
    padding-top: 52px;
    padding-bottom: 76px;
  }

  .hero h1,
  .directory-hero h1,
  .skill-page .hero h1 {
    font-size: clamp(39px, 12vw, 56px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .visual-arrow,
  .comparison-arrow {
    margin: -4px auto;
    transform: rotate(90deg);
  }

  .image-card img {
    height: clamp(320px, 95vw, 520px);
  }

  .split-heading,
  .category-heading,
  .comparison-visual,
  .readability-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .compact-grid,
  .observation-grid,
  .use-case-grid,
  .related-grid,
  .advantage-grid,
  .chooser-grid,
  .skill-grid,
  .walkthrough-list {
    grid-template-columns: 1fr;
  }

  .walkthrough-step {
    min-height: 320px;
  }

  .content-card,
  .guide-card,
  .advantage-grid article {
    min-height: 0;
  }

  .directory-hero-gallery {
    min-height: 350px;
  }

  .category-nav-inner {
    display: block;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .category-nav-inner > p {
    margin-bottom: 8px;
  }

  .category-nav-inner nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-nav-inner nav a {
    flex: 0 0 auto;
  }

  .workflow-card {
    grid-template-columns: 32px 1fr;
    gap: 16px;
    padding: 22px;
  }

  .workflow-card ol {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta .button {
    width: 100%;
  }

  .footer-inner {
    justify-content: center;
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Former Vue skill landing visual system, rendered as static HTML. */
.skill-page .hero {
  grid-template-columns: minmax(360px, 0.72fr) minmax(640px, 1.28fr);
  min-height: min(700px, calc(100vh - 104px));
  gap: clamp(38px, 4vw, 60px);
  padding-top: clamp(58px, 6vw, 82px);
  padding-bottom: clamp(64px, 7vw, 92px);
}

.skill-page .hero h1 {
  max-width: 560px;
  font-size: clamp(46px, 4.6vw, 70px);
  line-height: 1.06;
}

.skill-page .hero-description {
  max-width: 560px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.85;
}

.skill-page .hero-visual {
  --hero-visual-overhang: clamp(32px, 3vw, 48px);
  position: relative;
  width: calc(100% + var(--hero-visual-overhang));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-left: 0;
}

.skill-page .hero-visual::before {
  position: absolute;
  z-index: 0;
  inset: 12% 4%;
  border-radius: 50%;
  background: rgba(217, 239, 114, 0.1);
  filter: blur(70px);
  content: '';
}

.skill-page .image-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  border-radius: 20px;
  background: var(--surface-raised);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.38);
}

.skill-page .input-card {
  grid-column: 1;
  grid-row: 1;
}

.skill-page .result-card {
  grid-column: 2;
  grid-row: 1;
}

.skill-page .hero-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #11151a;
  isolation: isolate;
}

.skill-page .hero-image-backdrop {
  position: absolute;
  z-index: 0;
  inset: -10%;
  display: block;
  width: 120%;
  max-width: none;
  height: 120%;
  object-fit: cover;
  filter: blur(22px) brightness(0.42) saturate(0.72);
  opacity: 0.84;
  transform: scale(1.05);
}

.skill-page .image-card .hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.skill-page .input-example img {
  background: #fff;
}

.skill-page .image-card figcaption {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  width: auto;
  max-width: calc(100% - 24px);
  min-height: 0;
  padding: 7px 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #f3f4ef;
  background: rgba(9, 12, 15, 0.74);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-page .visual-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  align-self: center;
  justify-self: center;
  width: 38px;
  height: 38px;
  margin: 0;
  border-color: rgba(217, 239, 114, 0.42);
  background: rgba(17, 22, 16, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
  transform: translate(-50%, -50%);
}

.skill-page .hero-note-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  max-width: 560px;
  align-items: start;
  gap: 11px;
  margin-top: 24px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.035), transparent), rgba(17, 21, 26, 0.78);
}

.skill-page .hero-note-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: var(--accent);
  background: rgba(217, 239, 114, 0.1);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.skill-page .hero-note-card p {
  margin: 0;
  color: #858b95;
  font-size: 12px;
  line-height: 1.65;
}

.skill-page .hero-note-card p > span {
  display: block;
}

.skill-page .hero-note-label {
  display: block;
  margin-bottom: 2px;
  color: #d7d9d3;
  font-size: 11px;
  font-weight: 600;
}

.skill-page .content-section {
  padding-top: clamp(78px, 9vw, 124px);
  padding-bottom: clamp(78px, 9vw, 124px);
  border-top: 1px solid var(--border);
}

.skill-page .split-heading {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(50px, 8vw, 120px);
  margin-bottom: 56px;
}

.skill-page .section-heading h2 {
  max-width: 820px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.14;
}

.skill-page .section-heading > p:last-child,
.skill-page .prose-stack p {
  font-size: 16px;
  line-height: 1.9;
}

.skill-page .constrained-heading {
  max-width: 800px;
  margin-bottom: 54px;
}

.skill-page .card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.skill-page .content-card {
  min-height: 245px;
  padding: 26px;
  background: var(--surface);
}

.skill-page .content-card h3 {
  margin: 40px 0 12px;
  font-size: 19px;
}

.skill-page .content-card p {
  font-size: 14px;
  line-height: 1.75;
}

.skill-page .compact-grid {
  gap: 12px;
}

.skill-page .light-card {
  min-height: 220px;
  color: var(--text);
  background: var(--surface-raised);
}

.skill-page .light-card h3 {
  margin-top: 30px;
}

.skill-page .check-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #25300a;
  background: var(--accent);
  font-weight: 700;
}

.skill-page .how-to-section {
  background: radial-gradient(circle at 80% 10%, rgba(217, 239, 114, 0.08), transparent 26%), var(--page-bg);
}

.skill-page .example-section,
.skill-page .use-case-section,
.skill-page .related-section {
  background: var(--surface-subtle);
}

.skill-page .comparison-section {
  background: #101217;
}

.skill-page .comparison-visual {
  grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1.2fr);
  gap: 22px;
  margin-top: 0;
}

.skill-page .example-figure {
  min-width: 0;
  border-radius: 20px;
}

.skill-page .example-image {
  display: grid;
  height: clamp(380px, 48vw, 620px);
  place-items: center;
  overflow: hidden;
  background: #17191e;
}

.skill-page .example-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-page .example-figure figcaption {
  min-height: 0;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.skill-page .example-figure figcaption strong {
  color: var(--text);
  font-size: 15px;
}

.skill-page .example-figure figcaption span {
  color: var(--muted);
  font-size: 13px;
}

.skill-page .observation-grid {
  margin-top: 28px;
}

.skill-page .observation-grid .content-card {
  min-height: 0;
  padding: 24px 6px 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.skill-page .observation-grid .content-card h3 {
  margin-top: 0;
}

.skill-page .use-case-grid,
.skill-page .related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.skill-page .use-case-grid article {
  min-height: 220px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-raised);
}

.skill-page .use-case-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--border);
  object-fit: cover;
}

.skill-page .use-case-copy {
  padding: 22px 24px 26px;
}

.skill-page .use-case-line {
  display: block;
  width: 32px;
  height: 3px;
  background: #bacf55;
}

.skill-page .use-case-grid h3 {
  margin: 24px 0 12px;
  font-size: 19px;
}

.skill-page .faq-icon {
  color: var(--accent);
  font-size: 22px;
  transition: transform 180ms ease;
}

.skill-page .faq-list details[open] .faq-icon {
  transform: rotate(45deg);
}

.skill-page .related-card {
  min-height: 0;
  padding: 0;
  border-radius: 18px;
  background: var(--surface);
}

.skill-page .related-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c0f13;
}

.skill-page .related-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.skill-page .related-card:hover .related-card-image img {
  transform: scale(1.025);
}

.skill-page .related-card-copy {
  padding: 22px;
}

.skill-page .related-card-copy > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.skill-page .related-card-copy > div > span {
  position: static;
  flex: 0 0 auto;
  color: var(--accent);
}

.skill-page .related-grid h3 {
  margin: 0 0 12px;
  font-size: 19px;
}

.skill-page .walkthrough-grid {
  --walkthrough-cycle: 6s;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-page .walkthrough-card {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: #15171b;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
  animation: none;
}

.skill-page .walkthrough-card::after {
  display: none;
}

.skill-page .walkthrough-demo {
  position: relative;
  height: 272px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 76% 12%, rgba(217, 239, 114, 0.11), transparent 34%), #0f1114;
}

.skill-page .walkthrough-copy {
  min-height: 190px;
  padding: 24px;
}

.skill-page .walkthrough-number {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.skill-page .walkthrough-copy h3 {
  margin: 22px 0 10px;
  color: #f6f7f8;
  font-size: 19px;
}

.skill-page .walkthrough-copy p {
  margin: 0;
  color: #a5a9b1;
  font-size: 14px;
  line-height: 1.75;
}

.skill-page .upload-dropzone {
  position: absolute;
  z-index: 1;
  top: 36px;
  right: 26px;
  bottom: 38px;
  display: flex;
  width: 48%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  color: #8f949e;
  background: #292c32;
  font-size: 12px;
  gap: 9px;
}

.skill-page .upload-dropzone strong {
  color: #e9ebee;
  font-size: 14px;
  font-weight: 500;
}

.skill-page .upload-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #17191d;
  background: #edf1f6;
  font-size: 18px;
}

.skill-page .upload-source {
  position: absolute;
  z-index: 2;
  top: 44px;
  left: 24px;
  width: 44%;
  height: 184px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}

.skill-page .upload-ready {
  position: absolute;
  z-index: 3;
  right: 38px;
  bottom: 48px;
  display: flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(217, 239, 114, 0.32);
  border-radius: 999px;
  color: #e8f5a8;
  background: rgba(22, 26, 16, 0.88);
  font-size: 11px;
  opacity: 0;
  gap: 6px;
}

.skill-page .walkthrough-demo--settings {
  display: flex;
  padding: 36px 28px;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.skill-page .setting-row {
  color: #b8bbc2;
  font-size: 13px;
}

.skill-page .ratio-control {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  margin-top: 12px;
  gap: 16px;
}

.skill-page .ratio-control strong {
  display: grid;
  height: 40px;
  place-items: center;
  border: 1px solid #4b4f58;
  border-radius: 6px;
  color: #f1f2f4;
  font-size: 13px;
  font-weight: 500;
}

.skill-page .slider-track {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: #050607;
}

.skill-page .slider-fill {
  position: absolute;
  inset: 0 8% 0 0;
  border-radius: inherit;
  background: #8755ec;
  transform: scaleX(0.42);
  transform-origin: left;
}

.skill-page .slider-thumb {
  position: absolute;
  top: 50%;
  right: 5%;
  width: 13px;
  height: 13px;
  border: 3px solid #e4e6ea;
  border-radius: 50%;
  background: #8b57ef;
  transform: translateY(-50%);
}

.skill-page .resolution-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
  gap: 8px;
}

.skill-page .resolution-options span {
  display: grid;
  height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c4c7cd;
  background: #30333a;
}

.skill-page .resolution-options .resolution-selected {
  border-color: #8b57ef;
  color: #fff;
}

.skill-page .walkthrough-demo--result {
  padding: 22px 26px;
}

.skill-page .result-preview {
  position: relative;
  height: 184px;
  overflow: hidden;
  border: 8px solid #292c32;
  border-radius: 14px;
  background: #08090b;
}

.skill-page .result-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skill-page .result-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px rgba(217, 239, 114, 0.65);
  opacity: 0;
}

.skill-page .completion-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #182009;
  background: var(--accent);
  font-size: 10px;
  font-weight: 600;
  opacity: 0;
}

.skill-page .generate-button {
  position: relative;
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: #8755ec;
  font-size: 13px;
}

.skill-page .credit-mark {
  margin-left: 5px;
}

.skill-page .generating-label {
  position: absolute;
  opacity: 0;
}

.skill-page .generation-progress {
  position: absolute;
  right: 26px;
  bottom: 22px;
  left: 26px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  opacity: 0;
}

.skill-page .generation-progress::after {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  content: '';
  transform: scaleX(0);
  transform-origin: left;
}

.skill-page .demo-cursor {
  position: absolute;
  z-index: 5;
  color: #fff;
  font-size: 24px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.72));
  opacity: 0;
  transform: rotate(-8deg);
}

.skill-page .demo-cursor--upload { top: 102px; left: 46%; }
.skill-page .demo-cursor--settings { right: 34px; bottom: 45px; }
.skill-page .demo-cursor--generate { right: 37%; bottom: 28px; }

.skill-page .click-pulse {
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 22px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.35);
}

.skill-page .click-pulse--upload { top: 109px; right: 23%; }
.skill-page .click-pulse--settings { right: 24px; bottom: 54px; }
.skill-page .click-pulse--generate { right: 42%; bottom: 31px; }

.skill-page .is-active :is(
  .upload-source,
  .upload-ready,
  .demo-cursor,
  .click-pulse,
  .slider-fill,
  .slider-thumb,
  .resolution-selected,
  .walkthrough-result,
  .result-scan,
  .completion-badge,
  .generate-label,
  .generating-label,
  .generation-progress
) {
  animation-duration: var(--walkthrough-cycle);
  animation-fill-mode: both;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.skill-page .is-active .generation-progress::after {
  animation: walkthrough-progress-fill var(--walkthrough-cycle) ease-in-out infinite both;
}

.skill-page .is-active .upload-source { animation-name: walkthrough-upload-source; }
.skill-page .is-active .upload-ready { animation-name: walkthrough-upload-ready; }
.skill-page .is-active .demo-cursor--upload { animation-name: walkthrough-upload-cursor; }
.skill-page .is-active .click-pulse--upload { animation-name: walkthrough-upload-click; }
.skill-page .is-active .slider-fill { animation-name: walkthrough-slider-fill; }
.skill-page .is-active .slider-thumb { animation-name: walkthrough-slider-thumb; }
.skill-page .is-active .resolution-selected { animation-name: walkthrough-resolution; }
.skill-page .is-active .demo-cursor--settings { animation-name: walkthrough-settings-cursor; }
.skill-page .is-active .click-pulse--settings { animation-name: walkthrough-settings-click; }
.skill-page .is-active .walkthrough-result { animation-name: walkthrough-result-reveal; }
.skill-page .is-active .result-scan { animation-name: walkthrough-result-scan; }
.skill-page .is-active .completion-badge { animation-name: walkthrough-completion; }
.skill-page .is-active .generate-label { animation-name: walkthrough-generate-label; }
.skill-page .is-active .generating-label { animation-name: walkthrough-generating-label; }
.skill-page .is-active .generation-progress { animation-name: walkthrough-progress-visibility; }
.skill-page .is-active .demo-cursor--generate { animation-name: walkthrough-generate-cursor; }
.skill-page .is-active .click-pulse--generate { animation-name: walkthrough-generate-click; }

@keyframes walkthrough-upload-source {
  0%, 4% { opacity: 0.78; transform: translate3d(0, 0, 0) scale(1); }
  18%, 100% { opacity: 0.88; transform: translate3d(116%, 0, 0) scale(0.72); }
}

@keyframes walkthrough-upload-ready {
  0%, 16% { opacity: 0; transform: translateY(5px); }
  22%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes walkthrough-upload-cursor {
  0%, 4% { opacity: 0; transform: translate3d(-70px, 58px, 0) rotate(-8deg); }
  8%, 14% { opacity: 1; transform: translate3d(42px, 8px, 0) rotate(-8deg); }
  18%, 100% { opacity: 0; transform: translate3d(42px, 8px, 0) rotate(-8deg); }
}

@keyframes walkthrough-upload-click {
  0%, 10% { opacity: 0; transform: scale(0.35); }
  14% { opacity: 0.9; }
  19%, 100% { opacity: 0; transform: scale(1.7); }
}

@keyframes walkthrough-slider-fill {
  0%, 28% { transform: scaleX(0.42); }
  42%, 100% { transform: scaleX(1); }
}

@keyframes walkthrough-slider-thumb {
  0%, 28% { right: 55%; }
  42%, 100% { right: 5%; }
}

@keyframes walkthrough-resolution {
  0%, 36% { border-color: transparent; box-shadow: none; }
  45%, 100% { border-color: #8b57ef; box-shadow: 0 0 0 1px rgba(139, 87, 239, 0.35); }
}

@keyframes walkthrough-settings-cursor {
  0%, 29% { opacity: 0; transform: translate3d(-90px, -46px, 0) rotate(-8deg); }
  34%, 43% { opacity: 1; transform: translate3d(0, 0, 0) rotate(-8deg); }
  48%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-8deg); }
}

@keyframes walkthrough-settings-click {
  0%, 39% { opacity: 0; transform: scale(0.35); }
  43% { opacity: 0.9; }
  48%, 100% { opacity: 0; transform: scale(1.7); }
}

@keyframes walkthrough-generate-cursor {
  0%, 48% { opacity: 0; transform: translate3d(45px, 34px, 0) rotate(-8deg); }
  53%, 60% { opacity: 1; transform: translate3d(0, 0, 0) rotate(-8deg); }
  64%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-8deg); }
}

@keyframes walkthrough-generate-click {
  0%, 57% { opacity: 0; transform: scale(0.35); }
  60% { opacity: 0.9; }
  65%, 100% { opacity: 0; transform: scale(1.7); }
}

@keyframes walkthrough-generate-label {
  0%, 59% { opacity: 1; }
  63%, 78% { opacity: 0; }
  83%, 100% { opacity: 1; }
}

@keyframes walkthrough-generating-label {
  0%, 59% { opacity: 0; }
  63%, 78% { opacity: 1; }
  83%, 100% { opacity: 0; }
}

@keyframes walkthrough-progress-visibility {
  0%, 60% { opacity: 0; }
  64%, 80% { opacity: 1; }
  84%, 100% { opacity: 0; }
}

@keyframes walkthrough-progress-fill {
  0%, 62% { transform: scaleX(0); }
  80%, 100% { transform: scaleX(1); }
}

@keyframes walkthrough-result-reveal {
  0%, 67% { filter: brightness(0.72) saturate(0.78); transform: scale(1.015); }
  84%, 100% { filter: none; transform: scale(1); }
}

@keyframes walkthrough-result-scan {
  0%, 66% { left: 0; opacity: 0; }
  70% { opacity: 1; }
  84% { left: 100%; opacity: 1; }
  88%, 100% { left: 100%; opacity: 0; }
}

@keyframes walkthrough-completion {
  0%, 84% { opacity: 0; transform: translateY(-5px); }
  90%, 100% { opacity: 1; transform: translateY(0); }
}

/* Approved directory direction A: compact metrics, tabs and connected paths. */
.directory-page .static-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 10, 13, 0.9);
  backdrop-filter: blur(18px);
}

.directory-page .directory-hero {
  min-height: min(820px, calc(100vh - 76px));
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
  gap: clamp(46px, 6vw, 88px);
  padding-top: clamp(68px, 7vw, 100px);
  padding-bottom: clamp(74px, 8vw, 112px);
}

.directory-page .directory-hero h1 {
  max-width: 730px;
  font-size: clamp(48px, 4.4vw, 68px);
  line-height: 1.08;
}

.directory-page .directory-hero .hero-description {
  max-width: 650px;
  font-size: clamp(16px, 1.35vw, 19px);
}

.hero-metric-ribbon {
  display: grid;
  max-width: 570px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 42px 0 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.hero-metric-ribbon > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 9px;
  padding: 17px 18px;
}

.hero-metric-ribbon > div + div {
  border-left: 1px solid var(--border);
}

.hero-metric-ribbon dt {
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.hero-metric-ribbon dd {
  margin: 0;
  color: #858a94;
  font-size: 11px;
  white-space: nowrap;
}

.directory-page .directory-hero-gallery a {
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.category-tabs-wrap {
  position: sticky;
  z-index: 30;
  top: 76px;
  padding: 12px var(--page-gutter);
  background: linear-gradient(180deg, rgba(8, 10, 13, 0.98), rgba(8, 10, 13, 0.88));
  backdrop-filter: blur(18px);
}

.category-tabs {
  display: flex;
  width: min(100%, calc(var(--section-max) - (var(--page-gutter) * 2)));
  min-height: 54px;
  align-items: center;
  gap: 5px;
  margin: 0 auto;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #11141a;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs a {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 10px;
  color: #9297a1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.category-tabs a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.category-tabs a[aria-current='page'] {
  color: #19200b;
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(217, 239, 114, 0.12);
}

.category-tabs a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.directory-page .directory-section {
  padding-top: clamp(54px, 7vw, 92px);
}

.directory-page .directory-category {
  padding-top: 34px;
  scroll-margin-top: 154px;
}

.directory-page .directory-category + .directory-category {
  margin-top: 74px;
}

.directory-page .category-heading {
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 64px;
}

.directory-page .skill-grid {
  gap: 16px;
  margin-top: 30px;
}

.directory-page .skill-card {
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.16);
}

.directory-page .skill-card-image {
  background: #0c0f13;
}

.directory-page .skill-card-image img {
  transition: transform 280ms ease;
}

.directory-page .skill-card:hover .skill-card-image img {
  transform: scale(1.025);
}

.directory-page .chooser-grid {
  gap: 14px;
}

.directory-page .guide-card {
  min-height: 230px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent), var(--surface-raised);
}

.directory-page .guide-card h3 {
  margin-top: 8px;
}

.workflow-section {
  background: radial-gradient(circle at 88% 8%, rgba(217, 239, 114, 0.08), transparent 26%), var(--page-bg);
}

.workflow-grid {
  gap: 14px;
  margin-top: 0;
}

.workflow-path {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(540px, 1.28fr);
  align-items: center;
  gap: clamp(32px, 5vw, 74px);
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.025), transparent 48%), var(--surface);
}

.workflow-intro {
  position: relative;
  padding-left: 48px;
}

.workflow-intro > span {
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.workflow-intro h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.workflow-intro p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.workflow-nodes {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-nodes > li:not(.workflow-arrow) {
  min-width: 0;
  flex: 1 1 0;
}

.workflow-node {
  display: grid;
  min-height: 78px;
  align-content: center;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  color: var(--text);
  background: #0e1116;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.workflow-node span {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.workflow-node:hover {
  border-color: rgba(217, 239, 114, 0.4);
  background: #151a16;
  transform: translateY(-2px);
}

.workflow-arrow {
  flex: 0 0 auto;
  color: #656a73;
  font-size: 16px;
}

.directory-page .faq-icon {
  color: var(--accent);
  font-size: 22px;
  transition: transform 180ms ease;
}

.directory-page .faq-list details[open] .faq-icon {
  transform: rotate(45deg);
}

@media (max-width: 1100px) {
  .skill-page .hero,
  .directory-page .directory-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .skill-page .hero-copy {
    max-width: 780px;
  }

  .skill-page .hero-visual {
    --hero-visual-overhang: 0px;
    width: 100%;
    max-width: 900px;
    margin-left: 0;
  }

  .skill-page .card-grid,
  .skill-page .use-case-grid,
  .skill-page .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .skill-page .walkthrough-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .skill-page .walkthrough-demo {
    height: 260px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
  }

  .directory-page .directory-hero-gallery {
    width: 100%;
    max-width: 820px;
  }

  .workflow-path {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 720px) {
  .language-trigger {
    width: 88px;
    min-height: 38px;
    font-size: 12px;
  }

  .skill-page .hero {
    gap: 36px;
    padding-top: 44px;
    padding-bottom: 64px;
  }

  .skill-page .hero h1 {
    font-size: clamp(39px, 12vw, 55px);
  }

  .skill-page .hero-visual {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .skill-page .input-card,
  .skill-page .result-card {
    grid-column: 1;
    grid-row: auto;
  }

  .skill-page .image-card {
    border-radius: 14px;
  }

  .skill-page .image-card .hero-image {
    height: 100%;
  }

  .skill-page .visual-arrow {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1;
    grid-row: auto;
    width: 34px;
    height: 34px;
    margin: -4px auto;
    transform: rotate(90deg);
  }

  .skill-page .hero-note-card {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding: 12px 13px;
  }

  .skill-page .split-heading,
  .skill-page .comparison-visual {
    grid-template-columns: 1fr;
  }

  .skill-page .split-heading {
    gap: 20px;
  }

  .skill-page .card-grid,
  .skill-page .use-case-grid,
  .skill-page .related-grid,
  .skill-page .observation-grid {
    grid-template-columns: 1fr;
  }

  .skill-page .content-card,
  .skill-page .use-case-grid article {
    min-height: 0;
  }

  .skill-page .walkthrough-card {
    display: block;
  }

  .skill-page .walkthrough-demo {
    height: 250px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .skill-page .walkthrough-copy {
    min-height: 0;
  }

  .skill-page .example-image {
    height: auto;
    min-height: 360px;
    max-height: 560px;
  }

  .skill-page .example-image img {
    min-height: 360px;
  }

  .directory-page .static-header-inner {
    min-height: 66px;
  }

  .directory-page .directory-hero {
    gap: 42px;
    padding-top: 50px;
    padding-bottom: 68px;
  }

  .directory-page .directory-hero h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero-metric-ribbon {
    width: 100%;
    margin-top: 34px;
  }

  .hero-metric-ribbon > div {
    min-height: 78px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 13px 10px;
  }

  .hero-metric-ribbon dt {
    font-size: 22px;
  }

  .hero-metric-ribbon dd {
    white-space: normal;
    line-height: 1.35;
  }

  .category-tabs-wrap {
    top: 66px;
    padding: 9px 14px;
  }

  .category-tabs {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
  }

  .category-tabs a {
    padding: 8px 13px;
    font-size: 12px;
  }

  .directory-page .directory-category {
    scroll-margin-top: 134px;
  }

  .directory-page .category-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .workflow-path {
    padding: 24px 20px;
  }

  .workflow-intro {
    padding-left: 38px;
  }

  .workflow-nodes {
    display: grid;
    align-items: stretch;
    gap: 0;
    padding-left: 14px;
  }

  .workflow-arrow {
    display: none;
  }

  .workflow-nodes > li:not(.workflow-arrow) {
    position: relative;
    padding: 0 0 14px 22px;
  }

  .workflow-nodes > li:not(.workflow-arrow)::before {
    position: absolute;
    top: 0;
    bottom: -1px;
    left: 4px;
    width: 1px;
    background: rgba(217, 239, 114, 0.26);
    content: '';
  }

  .workflow-nodes > li:not(.workflow-arrow)::after {
    position: absolute;
    top: 30px;
    left: 0;
    width: 9px;
    height: 9px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: #101318;
    content: '';
  }

  .workflow-nodes > li:not(.workflow-arrow):last-child {
    padding-bottom: 0;
  }

  .workflow-nodes > li:not(.workflow-arrow):last-child::before {
    bottom: 50%;
  }

  .workflow-node {
    min-height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-page .walkthrough-grid *,
  .skill-page .walkthrough-grid *::before,
  .skill-page .walkthrough-grid *::after {
    animation: none !important;
    transition: none !important;
  }

  .skill-page :is(.demo-cursor, .click-pulse, .result-scan, .generation-progress, .generating-label) {
    display: none;
  }

  .skill-page .upload-source {
    opacity: 0.88;
    transform: translate3d(116%, 0, 0) scale(0.72);
  }

  .skill-page :is(.upload-ready, .completion-badge, .generate-label) {
    opacity: 1;
    transform: none;
  }

  .skill-page .slider-fill {
    transform: scaleX(1);
  }

  .skill-page .slider-thumb {
    right: 5%;
  }
}
    grid-column: 1;
    grid-row: auto;
