.registry-page { background: var(--paper-light); }

.registry-hero {
  width: min(1440px, 100%);
  min-height: 760px;
  margin: 0 auto;
  padding: clamp(70px, 9vw, 132px) clamp(20px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, .75fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  background: var(--paper);
}
.registry-hero .eyebrow { display: flex; align-items: center; gap: 10px; color: #55534d; }
.registry-hero .eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255,93,56,.14); }
.registry-hero h1 {
  margin: 0;
  font-size: clamp(58px, 7vw, 112px);
  line-height: .88;
  letter-spacing: -.075em;
}
.registry-hero h1 em { color: var(--blue); font-style: normal; }
.registry-hero-copy > p:not(.eyebrow) { max-width: 780px; margin: 34px 0 0; color: #4d4c47; font-size: clamp(19px, 1.7vw, 25px); }
.registry-actions { margin-top: 38px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.registry-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--paper-light); transform: rotate(1deg); box-shadow: 16px 16px 0 var(--orange); }
.registry-stats div { min-height: 150px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; }
.registry-stats div:nth-child(even) { border-left: 1px solid var(--ink); }
.registry-stats div:nth-child(n+3) { border-top: 1px solid var(--ink); }
.registry-stats strong { font-size: 58px; line-height: .9; letter-spacing: -.07em; }
.registry-stats span { margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 750; }
.registry-stats > p { grid-column: 1 / -1; margin: 0; padding: 24px 26px; color: var(--paper-light); background: var(--ink); font-size: 14px; }

.activation-chain { width: min(1440px, 100%); margin: 0 auto; padding: clamp(76px, 9vw, 130px) clamp(20px, 5vw, 80px); background: var(--orange); }
.activation-copy { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; }
.activation-copy .eyebrow { grid-column: 1 / -1; margin-bottom: 0; color: var(--ink); opacity: .7; }
.activation-copy h2 { margin: 0; font-size: clamp(46px, 5.4vw, 82px); line-height: .93; letter-spacing: -.065em; }
.activation-copy > p:last-child { max-width: 620px; margin: 0; font-size: 19px; }
.activation-chain ol { margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper-light); overflow: hidden; list-style: none; }
.activation-chain li + li { border-left: 1px solid var(--ink); }
.activation-chain a { min-height: 245px; padding: 24px; display: flex; flex-direction: column; text-decoration: none; transition: background .2s ease, color .2s ease; }
.activation-chain a:hover { color: var(--paper-light); background: var(--ink); }
.activation-chain li span { color: var(--orange); font: 800 12px/1 ui-monospace, monospace; }
.activation-chain li strong { margin-top: auto; font-size: 23px; line-height: 1.05; letter-spacing: -.04em; }
.activation-chain li em { margin-top: 10px; color: var(--muted); font-size: 11px; font-style: normal; text-transform: uppercase; }
.activation-chain a:hover em { color: #aaa89f; }

.featured-skill {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(76px, 9vw, 130px) clamp(20px, 5vw, 80px);
  display: grid;
  grid-template-columns: .25fr 1.25fr .5fr;
  gap: clamp(30px, 6vw, 90px);
}
.featured-index { color: #77766f; font-size: 12px; }
.featured-skill h2 { margin: 0; font-size: clamp(44px, 5.4vw, 82px); line-height: .92; letter-spacing: -.065em; }
.featured-skill > div:nth-child(2) > p:last-child { max-width: 820px; margin: 30px 0 0; color: #bbb9b1; font-size: 20px; }
.featured-skill aside { align-self: end; padding: 26px; border: 1px solid var(--light-line); border-radius: 16px; }
.featured-skill aside > * { display: block; }
.featured-skill .skill-code { color: var(--orange); font-size: 12px; }
.featured-skill aside strong { margin-top: 22px; color: var(--lime); font-size: 19px; }
.featured-skill aside p { color: #aaa89f; font-size: 14px; }
.featured-skill aside a { color: var(--paper-light); font-weight: 800; text-underline-offset: 5px; }

.registry-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 120px); background: var(--paper-light); }
.registry-intro h2 { font-size: clamp(50px, 6vw, 88px); }
.registry-intro ol { padding: 0; margin: 0; list-style: none; }
.registry-intro li { min-height: 125px; padding: 24px 0; display: grid; grid-template-columns: 58px 1fr; gap: 20px; border-top: 1px solid var(--line); }
.registry-intro li > span { width: 40px; height: 40px; display: grid; place-items: center; color: var(--paper-light); background: var(--ink); border-radius: 50%; font: 700 11px/1 ui-monospace, monospace; }
.registry-intro strong { font-size: 23px; letter-spacing: -.03em; }
.registry-intro li p { margin: 6px 0 0; color: var(--muted); }

.catalog { max-width: 1440px; background: var(--paper); }
.catalog-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; }
.catalog-heading h2 { font-size: clamp(52px, 6vw, 92px); }
.catalog-heading > p { max-width: 580px; margin: 0; color: var(--muted); font-size: 19px; }
.registry-controls { margin: 60px 0 34px; padding: 18px; display: grid; grid-template-columns: minmax(250px, 1fr) auto auto; gap: 18px; align-items: end; border: 1px solid var(--ink); border-radius: 16px; background: var(--paper-light); }
.registry-search { display: grid; gap: 8px; }
.registry-search span { color: var(--muted); font-size: 10px; font-weight: 800; }
.registry-search input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #bdb9af; border-radius: 10px; color: var(--ink); background: #fff; outline: none; }
.registry-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(70,89,255,.12); }
.registry-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.registry-filters button { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 100px; color: #55534d; background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.registry-filters button:hover { border-color: var(--ink); }
.registry-filters button[aria-pressed="true"] { color: var(--paper-light); background: var(--ink); border-color: var(--ink); }
.registry-count { min-width: 86px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.registry-count strong { display: block; color: var(--ink); font-size: 32px; line-height: 1; }

.registry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.registry-card { min-width: 0; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper-light); scroll-margin-top: 110px; }
.registry-card[hidden] { display: none; }
.registry-card-featured { color: var(--paper-light); background: var(--blue); border-color: var(--blue); box-shadow: 10px 10px 0 var(--orange); }
.registry-card header { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.registry-id { padding-top: 7px; font-size: 11px; font-weight: 800; }
.origin { padding: 7px 10px; border-radius: 100px; font: 750 10px/1 ui-monospace, monospace; white-space: nowrap; }
.origin-core { color: var(--paper-light); background: var(--ink); }
.origin-observed { color: var(--paper-light); background: var(--orange); }
.origin-direct { color: var(--ink); background: var(--lime); }
.origin-derived { color: var(--paper-light); background: var(--blue); }
.origin-optional { color: var(--ink); background: #ddd8cb; }
.registry-card-featured .origin-direct { color: var(--ink); }
.registry-card-onboarding { border-top: 8px solid var(--orange); }
.registry-card h3 { max-width: 610px; margin: 50px 0 16px; font-size: clamp(29px, 3vw, 43px); line-height: 1; letter-spacing: -.055em; }
.registry-definition { min-height: 76px; margin: 0; color: var(--muted); font-size: 16px; }
.registry-card-featured .registry-definition { color: rgba(255,255,255,.78); }
.registry-result { margin-top: 32px; padding-top: 18px; display: grid; grid-template-columns: 80px 1fr; gap: 18px; border-top: 1px solid currentColor; }
.registry-result span { opacity: .55; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.registry-result strong { font-size: 13px; }
.registry-card details { margin-top: 26px; border-top: 1px solid var(--line); }
.registry-card-featured details { border-color: rgba(255,255,255,.25); }
.registry-card summary { padding: 18px 0 0; font-size: 13px; font-weight: 850; cursor: pointer; }
.registry-card details > div { padding: 12px 0 0; color: var(--muted); font-size: 14px; }
.registry-card-featured details > div { color: rgba(255,255,255,.72); }
.registry-card details p { margin: 8px 0; }
.registry-card details a { display: inline-block; margin-top: 8px; color: var(--orange); font-weight: 800; text-underline-offset: 4px; }
.registry-card .registry-page-link { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 14px; font-weight: 900; text-underline-offset: 5px; }
.registry-card .registry-page-link span { color: var(--orange); font-size: 20px; }
.registry-card-featured .registry-page-link span { color: var(--lime); }
.registry-empty { padding: 60px 24px; border: 1px dashed var(--ink); border-radius: var(--radius); text-align: center; }
.registry-empty strong { font-size: 28px; }
.registry-empty p { color: var(--muted); }

.registry-cta { width: min(1440px, 100%); margin: 0 auto; padding: clamp(80px, 10vw, 145px) clamp(20px, 5vw, 80px); display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(50px, 8vw, 120px); align-items: end; }
.registry-cta h2 { margin: 0; font-size: clamp(46px, 5vw, 76px); line-height: .95; letter-spacing: -.055em; }
.registry-cta > div:last-child p { margin: 0 0 30px; color: #aaa89f; font-size: 19px; }

@media (max-width: 1050px) {
  .registry-hero { min-height: 0; grid-template-columns: 1fr; }
  .registry-stats { max-width: 680px; }
  .featured-skill { grid-template-columns: 1fr; }
  .featured-skill aside { max-width: 540px; }
  .activation-copy { grid-template-columns: 1fr; }
  .activation-copy .eyebrow { grid-column: auto; }
  .activation-chain ol { grid-template-columns: 1fr 1fr; }
  .activation-chain li:nth-child(3) { border-left: 0; border-top: 1px solid var(--ink); }
  .activation-chain li:nth-child(4) { border-top: 1px solid var(--ink); }
  .registry-controls { grid-template-columns: 1fr; align-items: start; }
  .registry-count { text-align: left; }
}

@media (max-width: 760px) {
  .registry-hero h1 { font-size: clamp(52px, 15vw, 76px); }
  .registry-stats div { min-height: 120px; padding: 20px; }
  .registry-stats strong { font-size: 44px; }
  .registry-intro, .catalog-heading, .registry-cta { grid-template-columns: 1fr; }
  .activation-chain ol { grid-template-columns: 1fr; }
  .activation-chain li + li, .activation-chain li:nth-child(3) { border-left: 0; border-top: 1px solid var(--ink); }
  .activation-chain a { min-height: 180px; }
  .registry-grid { grid-template-columns: 1fr; }
  .registry-card h3 { margin-top: 36px; }
  .registry-definition { min-height: 0; }
  .registry-result { grid-template-columns: 1fr; gap: 7px; }
  .registry-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .registry-filters button { flex: 0 0 auto; }
}

@media (max-width: 460px) {
  .registry-stats { grid-template-columns: 1fr; transform: none; box-shadow: 8px 10px 0 var(--orange); }
  .registry-stats div:nth-child(even) { border-left: 0; }
  .registry-stats div:nth-child(n+2) { border-top: 1px solid var(--ink); }
  .registry-card header { flex-direction: column; }
}
