:root {
  --cream: #f4efe6;
  --paper: #fffdf8;
  --paper-deep: #eee8dd;
  --navy: #132b41;
  --navy-soft: #27445a;
  --ink: #192a34;
  --muted: #5e6868;
  --line: #d9d5cc;
  --gold: #b7894f;
  --gold-ink: #8d652f;
  --gold-soft: #e7d6bb;
  --sage: #758b7f;
  --coral: #c9715d;
  --shadow: 0 20px 50px rgba(27, 42, 48, 0.08);
  --shadow-small: 0 8px 24px rgba(27, 42, 48, 0.07);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --sans: "Noto Sans TC", "PingFang TC", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", "STSong", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.4'/%3E%3C/svg%3E");
}

.section-wrap {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 max(32px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(217, 213, 204, 0.75);
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-logo,
.footer-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  aspect-ratio: 1;
}

.brand-logo img,
.footer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo {
  width: 32px;
  height: 32px;
}

.brand-name { display: grid; gap: 0; }
.brand-name small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.site-nav a { text-decoration: none; transition: color 180ms ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--navy); }
.site-nav .nav-github {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 253, 248, 0.55);
}

.mobile-menu-button {
  display: none;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: transparent;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  align-items: center;
  gap: 74px;
  min-height: 650px;
  padding-top: 92px;
  padding-bottom: 105px;
}

.eyebrow, .section-kicker, .results-eyebrow, .visual-caption, .workflow-topline, .footer-source, .mini-label {
  margin: 0;
  color: var(--gold-ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(117, 139, 127, 0.15);
}

.hero h1 {
  max-width: 710px;
  margin: 22px 0 26px;
  color: var(--navy);
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.16;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--gold-ink);
  font-family: var(--serif);
  font-size: 0.78em;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
  text-wrap: pretty;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--paper); background: var(--navy); box-shadow: var(--shadow-small); }
.button-primary:hover, .button-primary:focus-visible { box-shadow: 0 12px 28px rgba(19, 43, 65, 0.2); }
.button-quiet { border-color: var(--line); color: var(--navy); background: transparent; }
.button-quiet:hover, .button-quiet:focus-visible { background: rgba(255, 253, 248, 0.56); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 54px;
  color: var(--muted);
  font-size: 11px;
}
.hero-meta span { display: inline-flex; align-items: baseline; gap: 6px; }
.hero-meta strong { color: var(--navy); font-family: var(--serif); font-size: 25px; font-weight: 600; }

.hero-visual { position: relative; padding: 28px 0 0 34px; }
.hero-visual::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 184px;
  background: var(--gold);
  content: "";
}
.visual-caption { position: absolute; top: 0; left: 19px; color: var(--muted); writing-mode: vertical-rl; }
.workflow-card {
  position: relative;
  padding: 29px 28px 21px;
  border: 1px solid rgba(19, 43, 65, 0.12);
  border-radius: var(--radius-lg);
  color: var(--paper);
  background: var(--navy);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.workflow-card::after {
  position: absolute;
  right: -58px;
  bottom: -86px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(231, 214, 187, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(231, 214, 187, 0.05), 0 0 0 48px rgba(231, 214, 187, 0.04);
  content: "";
}
.workflow-topline, .workflow-foot { display: flex; align-items: center; justify-content: space-between; color: rgba(255,253,248,0.53); font-size: 9px; }
.workflow-live { display: inline-flex; align-items: center; gap: 6px; color: #b5c8bc; }
.workflow-live i { width: 5px; height: 5px; border-radius: 50%; background: #b5c8bc; }
.workflow-question { margin: 37px 0 28px; color: var(--paper); font-family: var(--serif); font-size: clamp(21px, 2.2vw, 29px); line-height: 1.55; }
.workflow-divider { height: 1px; background: rgba(255, 253, 248, 0.16); }
.workflow-steps { display: grid; gap: 2px; margin: 12px 0 30px; padding: 0; list-style: none; }
.workflow-steps li { display: grid; grid-template-columns: 35px minmax(0, 1fr) 20px; align-items: center; gap: 10px; min-height: 58px; padding: 8px 0; color: rgba(255, 253, 248, 0.52); border-bottom: 1px solid rgba(255, 253, 248, 0.1); }
.workflow-steps li:last-child { border-bottom: 0; }
.workflow-steps li.is-active { color: var(--paper); }
.workflow-steps li > span { color: var(--gold-soft); font-family: var(--mono); font-size: 10px; }
.workflow-steps b, .workflow-steps small { display: block; }
.workflow-steps b { font-size: 13px; font-weight: 650; }
.workflow-steps small { margin-top: 2px; color: inherit; font-size: 10px; }
.workflow-steps strong { color: var(--gold-soft); font-family: var(--mono); font-size: 15px; font-weight: 500; }
.workflow-foot { padding-top: 15px; border-top: 1px solid rgba(255, 253, 248, 0.16); }

.explorer { padding-top: 74px; padding-bottom: 130px; scroll-margin-top: 50px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr); align-items: end; gap: 70px; margin-bottom: 42px; }
.section-heading-tight { margin-bottom: 46px; }
.section-kicker { margin-bottom: 17px; color: var(--gold-ink); }
.section-heading h2, .notes-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(31px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.26;
  text-wrap: balance;
}
.section-heading h2 span, .notes-header h2 span { color: var(--gold-ink); font-family: var(--serif); font-weight: 600; }
.section-intro-copy { max-width: 390px; margin: 0 0 4px auto; color: var(--muted); font-size: 14px; line-height: 1.9; }
.section-intro-copy b { color: var(--navy); font-weight: 700; }

.explorer-shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 34px; align-items: start; }
.filter-panel { position: sticky; top: 105px; padding: 24px 0; }
.filter-label { margin-bottom: 14px; color: var(--navy); font-size: 13px; font-weight: 750; }
.role-tabs { display: grid; gap: 4px; }
.role-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition: color 180ms ease, background 180ms ease, border 180ms ease;
}
.role-tab:hover, .role-tab:focus-visible { color: var(--navy); background: rgba(255,253,248,0.55); }
.role-tab[aria-pressed="true"] { border-color: var(--gold-soft); color: var(--navy); background: var(--paper); box-shadow: var(--shadow-small); }
.role-tab-count { color: var(--gold-ink); font-family: var(--mono); font-size: 10px; }
.filter-rule { height: 1px; margin: 25px 0 22px; background: var(--line); }
.search-field { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,253,248,0.6); }
.search-field > span { color: var(--gold-ink); font-size: 22px; line-height: 0; transform: translateY(-2px); }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--navy); background: transparent; font-size: 12px; }
.search-field input::placeholder { color: #9ba09d; }
.search-field:focus-within { border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(183, 137, 79, 0.12); }
.search-field button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font-size: 19px; line-height: 1; }
.filter-help { margin: 9px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.filter-note { margin-top: 48px; padding: 17px 16px; border: 1px solid var(--gold-soft); border-radius: 12px; background: rgba(255, 253, 248, 0.42); }
.mini-label { display: block; margin-bottom: 7px; color: var(--gold-ink); font-size: 9px; }
.filter-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }

.results-panel { min-width: 0; }
.results-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; min-height: 65px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.results-eyebrow { margin-bottom: 6px; color: var(--muted); font-size: 9px; }
.results-toolbar h3 { margin: 0; color: var(--navy); font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.2; }
.results-count { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 19px; }
.skill-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 21px 21px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.66);
  transition: transform 180ms ease, border 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.skill-card:hover, .skill-card:focus-within { transform: translateY(-3px); border-color: var(--gold-soft); background: var(--paper); box-shadow: var(--shadow-small); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-role { color: var(--gold-ink); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.card-number { color: #a9ada8; font-family: var(--mono); font-size: 10px; }
.skill-card h4 { margin: 22px 0 9px; color: var(--navy); font-size: 19px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.45; text-wrap: balance; }
.skill-card > p { min-height: 51px; margin: 0 0 19px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.card-facts { display: grid; gap: 8px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.card-fact { display: grid; grid-template-columns: 47px minmax(0, 1fr); gap: 10px; font-size: 11px; line-height: 1.55; }
.card-fact-label { color: var(--gold-ink); font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: 0.1em; }
.card-fact-value { display: -webkit-box; overflow: hidden; color: var(--ink); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; }
.card-source-count { color: var(--muted); font-size: 10px; }
.card-open { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 13px; border: 1px solid var(--gold-soft); border-radius: 999px; color: var(--navy); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.card-open:hover, .card-open:focus-visible { color: var(--paper); border-color: var(--navy); background: var(--navy); }
.empty-state { grid-column: 1 / -1; padding: 70px 20px; border: 1px dashed var(--line); border-radius: var(--radius-md); color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--navy); font-family: var(--serif); font-size: 24px; font-weight: 600; }

.how-section { padding-top: 112px; padding-bottom: 132px; border-top: 1px solid var(--line); scroll-margin-top: 50px; }
.journey-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.journey-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) 40px; gap: 25px; align-items: center; min-height: 128px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.journey-number { color: var(--gold-ink); font-family: var(--mono); font-size: 11px; }
.journey-body h3 { margin: 0 0 5px; color: var(--navy); font-size: 18px; font-weight: 750; }
.journey-body p { max-width: 640px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.journey-arrow { color: var(--gold-ink); font-family: var(--serif); font-size: 24px; text-align: right; }

.notes-section { display: grid; grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.25fr); gap: 80px; padding-top: 105px; padding-bottom: 120px; scroll-margin-top: 50px; }
.notes-header h2 { font-size: clamp(33px, 4vw, 51px); }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 13px; }
.note-card { display: flex; flex-direction: column; min-height: 255px; padding: 22px 19px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.note-card-gold { border-color: var(--gold-soft); background: var(--gold-soft); }
.note-card-navy { border-color: var(--navy); color: var(--paper); background: var(--navy); }
.note-card-paper { background: rgba(255,253,248,0.55); }
.note-index { color: var(--gold-ink); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.note-card h3 { margin: 44px 0 10px; font-size: 15px; line-height: 1.55; }
.note-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.note-card-navy p { color: rgba(255,253,248,0.68); }
.note-card-navy .note-index { color: var(--gold-soft); }

.advanced-section { padding-bottom: 100px; }
.advanced-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.advanced-details summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; padding: 0 5px; color: var(--navy); cursor: pointer; list-style: none; }
.advanced-details summary::-webkit-details-marker { display: none; }
.advanced-details summary small, .advanced-details summary b { display: block; }
.advanced-details summary small { margin-bottom: 4px; color: var(--gold-ink); font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; }
.advanced-details summary b { font-size: 17px; font-weight: 700; }
.summary-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-ink); font-size: 21px; font-weight: 300; transition: transform 180ms ease; }
.advanced-details[open] .summary-icon { transform: rotate(45deg); }
.advanced-content { padding: 5px 5px 35px; }
.advanced-content > p { max-width: 580px; margin: 0 0 27px; color: var(--muted); font-size: 13px; }
.install-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.install-steps > div { min-height: 123px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,253,248,0.5); }
.install-steps span { display: block; margin-bottom: 13px; color: var(--gold-ink); font-family: var(--mono); font-size: 10px; }
.install-steps code { display: block; overflow-wrap: anywhere; color: var(--navy); font-family: var(--mono); font-size: 11px; line-height: 1.6; }
.install-steps small { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; }
.advanced-link { display: inline-flex; gap: 8px; margin-top: 25px; color: var(--navy); font-size: 12px; font-weight: 700; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer > div { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; }
.footer-mark { width: 25px; height: 25px; font-size: 14px; }
.site-footer p { margin: 0; }
.footer-source { color: #989d99; font-size: 8px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 22px; background: rgba(19, 43, 65, 0.45); backdrop-filter: blur(8px); }
.modal-backdrop[hidden] { display: none; }
.skill-modal { position: relative; width: min(640px, 100%); max-height: min(740px, calc(100vh - 44px)); overflow-y: auto; padding: 35px 37px 33px; border: 1px solid rgba(255,253,248,0.38); border-radius: 23px; background: var(--paper); box-shadow: 0 30px 80px rgba(19,43,65,0.25); }
.modal-close { position: absolute; top: 19px; right: 20px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); background: transparent; cursor: pointer; font-size: 23px; font-weight: 300; line-height: 1; }
.modal-close:hover, .modal-close:focus-visible { color: var(--paper); border-color: var(--navy); background: var(--navy); }
.modal-kicker { margin-bottom: 13px; color: var(--gold-ink); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.skill-modal h2 { max-width: 520px; margin: 0 42px 10px 0; color: var(--navy); font-size: clamp(27px, 4vw, 38px); letter-spacing: -0.05em; line-height: 1.3; }
.modal-summary { margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.modal-facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.modal-fact { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.modal-fact-label { color: var(--gold-ink); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; }
.modal-fact-value { color: var(--ink); font-size: 12px; line-height: 1.7; }
.say-block { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 25px; padding: 17px 17px 16px; border-radius: 13px; background: var(--navy); }
.say-block .mini-label { margin-bottom: 6px; color: var(--gold-soft); }
.say-block p { margin: 0; color: var(--paper); font-family: var(--serif); font-size: 16px; line-height: 1.6; }
.copy-button { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 1px solid rgba(231,214,187,0.5); border-radius: 999px; color: var(--gold-soft); background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.copy-button:hover, .copy-button:focus-visible { color: var(--navy); background: var(--gold-soft); }
.modal-note { margin-top: 16px; padding: 12px 14px; border-left: 2px solid var(--gold); color: var(--muted); background: #f8f2e9; font-size: 11px; line-height: 1.7; }
.modal-note:empty { display: none; }
.modal-technical { margin-top: 24px; border-top: 1px solid var(--line); }
.modal-technical summary { padding: 15px 0; color: var(--navy); cursor: pointer; font-size: 11px; font-weight: 700; }
.modal-technical-content { padding-bottom: 5px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.modal-technical-content code { display: block; margin: 7px 0 14px; padding: 10px; overflow-wrap: anywhere; border-radius: 8px; color: var(--navy); background: #f1ede5; font-family: var(--mono); font-size: 10px; }
.modal-technical-content a { color: var(--navy); font-weight: 700; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 70; max-width: min(360px, calc(100% - 44px)); padding: 11px 15px; border-radius: 9px; color: var(--paper); background: var(--navy); box-shadow: var(--shadow); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 3px solid rgba(183, 137, 79, 0.48); outline-offset: 3px; }

@media (max-width: 900px) {
  .section-wrap { width: min(100% - 40px, 720px); }
  .site-header { padding: 0 20px; }
  .mobile-menu-button { display: block; }
  .site-nav { position: absolute; top: calc(100% + 1px); right: 20px; display: none; min-width: 180px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow-small); }
  .site-nav.is-open { display: grid; gap: 3px; }
  .site-nav a { padding: 10px; }
  .site-nav .nav-github { margin-top: 4px; text-align: center; }
  .hero { grid-template-columns: 1fr; gap: 58px; min-height: auto; padding-top: 72px; padding-bottom: 92px; }
  .hero-visual { width: min(100%, 520px); margin-left: auto; }
  .section-heading, .notes-section { grid-template-columns: 1fr; gap: 27px; }
  .section-intro-copy { margin-left: 0; }
  .explorer-shell { grid-template-columns: 1fr; gap: 20px; }
  .filter-panel { position: static; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px 18px; padding: 0 0 10px; }
  .filter-label { grid-column: 1 / -1; margin: 0; }
  .role-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
  .role-tab { width: auto; min-height: 44px; }
  .filter-rule, .filter-note { display: none; }
  .search-field { grid-column: 1 / -1; }
  .filter-help { grid-column: 1 / -1; margin-top: -6px; }
  .notes-grid { max-width: 620px; }
}

@media (max-width: 620px) {
  .section-wrap { width: calc(100% - 32px); }
  .site-header { min-height: 66px; padding: 0 16px; }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 58px); }
  .hero-lead { font-size: 14px; }
  .hero-meta { gap: 13px; margin-top: 40px; }
  .hero-meta span:last-child { width: 100%; }
  .hero-visual { padding-left: 20px; }
  .visual-caption { left: 3px; }
  .workflow-card { padding: 24px 19px 18px; border-radius: 20px; }
  .workflow-question { font-size: 20px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: 275px; }
  .results-toolbar { align-items: start; flex-direction: column; gap: 7px; }
  .journey-item { grid-template-columns: 42px minmax(0, 1fr) 26px; gap: 10px; min-height: 145px; }
  .journey-body h3 { font-size: 16px; }
  .journey-body p { font-size: 12px; }
  .notes-grid { grid-template-columns: 1fr; }
  .note-card { min-height: 0; }
  .note-card h3 { margin-top: 28px; }
  .install-steps { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding: 25px 0; }
  .site-footer p { font-size: 10px; }
  .skill-modal { padding: 30px 20px 24px; border-radius: 18px; }
  .skill-modal h2 { margin-right: 34px; font-size: 28px; }
  .say-block { align-items: stretch; flex-direction: column; gap: 14px; }
  .copy-button { align-self: flex-start; }
}

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