.p2d .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
.p2d .hero-home { padding: 104px 0 52px; }
.p2d .hero-home h1 { font-size: clamp(46px, 7vw, 88px); max-width: 15ch; }
.p2d .hero-home .lead { max-width: 60ch; }
.p2d .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 34px; }
.p2d .install {
  display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 14px; min-height: 40px;
  background: var(--sheet); border: 1px dashed var(--hair-strong); border-radius: 5px;
  font: 400 14px/1 var(--font-mono); color: var(--ink);
}
.p2d .install code { background: none; border: 0; padding: 0; font-size: inherit; }
.p2d .install .prompt { color: var(--accent-ink); margin-right: 6px; user-select: none; }
.p2d .install .btn-icon { width: 32px; min-height: 32px; }
.p2d .install .i-check { display: none; color: var(--accent-ink); }
.p2d .install .is-done .i-copy { display: none; }
.p2d .install .is-done .i-check { display: block; }
.p2d .hero-home .facts { margin-top: 28px; }

.p2d.has-doodles { position: relative; isolation: isolate; }
.p2d .doodles {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .42;
  --top: 1199px;
  -webkit-mask-image:
    linear-gradient(to right, #000 calc(50% - 600px), transparent 0, transparent calc(50% + 600px), #000 0),
    linear-gradient(#000, #000);
          mask-image:
    linear-gradient(to right, #000 calc(50% - 600px), transparent 0, transparent calc(50% + 600px), #000 0),
    linear-gradient(#000, #000);
  -webkit-mask-size: 100% 100%, 100% var(--top);
          mask-size: 100% 100%, 100% var(--top);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
@media (max-width: 1199px) { .p2d .doodles { display: none; } }
.p2d .doodle-strip {
  position: absolute; top: 0; bottom: 0; width: max(0px, calc(50% - 480px));
  background: url(/assets/doodles.svg) 0 -1px / 1440px 1440px repeat;
}
.p2d .doodle-left { left: 0; background-position: right -1px; }
.p2d .doodle-right { right: 0; background-position: left -1px; }
html.is-dark .doodles { filter: invert(1) hue-rotate(180deg); opacity: .24; }

.p2d .showcase { padding-bottom: 8px; }
.p2d .slides { display: grid; }
.p2d .slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); min-height: 460px;
  visibility: hidden; opacity: 0; transition: opacity .4s ease, visibility 0s linear .4s;
}
.p2d .slide.is-active { visibility: visible; opacity: 1; transition: opacity .4s ease; }
.p2d .slide-text { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 40px 40px 40px 44px; border-right: 1px solid var(--hair); }
.p2d .slide-text h2 { font-size: clamp(32px, 3.4vw, 42px); }
.p2d .slide-text p { color: var(--ink-muted); max-width: 34ch; }
.p2d .slide-text .link-btn { align-self: flex-start; margin-top: 6px; }
.p2d .fig { display: block; width: 100%; height: 100%; max-height: 460px; padding: 12px 20px; align-self: center; }
.p2d .fig text { font: 500 11px var(--font-mono); letter-spacing: .08em; fill: var(--ink-label); paint-order: stroke; stroke: var(--sheet); stroke-width: 4px; stroke-linejoin: round; }
.p2d .fig .labels text { font: 450 18px var(--font-display); font-style: italic; letter-spacing: 0; fill: var(--ink); }
.p2d .fig .geo { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.p2d .fig .aux { fill: none; stroke: var(--construct); stroke-width: 1.2; stroke-dasharray: 5 4; }
.p2d .fig .off { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.p2d .fig .thin { fill: none; stroke: var(--ink); stroke-width: 1; }
.p2d .fig .dim { fill: none; stroke: var(--ink-muted); stroke-width: 1; }
.p2d .fig .ring { fill: var(--sheet); stroke: var(--accent); stroke-width: 1.6; }
.p2d .fig .dot { fill: var(--ink); }
.p2d .fig .lattice { fill: none; stroke: var(--hair-strong); stroke-width: .8; }
.p2d .fig .face { fill: url(#hatch); }
.p2d .fig .comb { fill: none; stroke: var(--accent); stroke-width: 1; opacity: .75; }
.p2d .fig .glyph rect { fill: var(--sheet); stroke: var(--accent); stroke-width: 1.2; }
.p2d .fig .glyph text { font-size: 10px; fill: var(--accent-ink); }
.p2d .hatch-bg { fill: var(--accent-wash); }
.p2d .hatch-line { stroke: var(--accent); stroke-width: 1; opacity: .5; }
.p2d .arrow-head { fill: var(--ink-muted); }

.p2d .fig .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.p2d .fig .fade, .p2d .fig .pop { opacity: 0; }
.p2d .slide.is-active .fig .draw { animation: draw 1.2s cubic-bezier(.6,0,.2,1) var(--d, 0s) forwards; }
.p2d .slide.is-active .fig .fade { animation: appear .7s ease var(--d, 0s) forwards; }
.p2d .slide.is-active .fig .pop { animation: appear .35s ease var(--d, 0s) forwards; }

.p2d .carousel-nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; }
.p2d .nodes { position: relative; display: flex; list-style: none; margin: 0; padding: 0; }
.p2d .nodes::before { content: ""; position: absolute; left: 50px; right: 50px; top: 15px; border-top: 1px dashed var(--construct); }
.p2d .node-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 100px; padding: 4px 0; border: 0; background: none; cursor: pointer; color: var(--ink-label);
  font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.p2d .node-tab:hover, .p2d .node-tab[aria-selected="true"] { color: var(--ink); }
.p2d .node-ring { width: 24px; height: 24px; transform: rotate(-90deg); }
.p2d .node-ring .track { fill: var(--paper); stroke: var(--hair-strong); stroke-width: 1.5; }
.p2d .node-ring .core { fill: var(--accent); transform-origin: 12px 12px; transform: scale(0); transition: transform .2s; }
.p2d .node-ring .progress { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.p2d .node-tab:hover .track { stroke: var(--accent); }
.p2d .node-tab[aria-selected="true"] .track { stroke: var(--hair); }
.p2d .node-tab[aria-selected="true"] .core { transform: scale(.38); }
.p2d .node-tab[aria-selected="true"] .progress { animation: progress 7s linear forwards; }
.p2d .carousel.is-paused .node-tab[aria-selected="true"] .progress, .p2d .carousel.is-held .node-tab[aria-selected="true"] .progress { animation-play-state: paused; }
.p2d .carousel.is-paused .node-tab[aria-selected="true"] .progress { stroke-dashoffset: 0; animation: none; }
.p2d .carousel-nav .btn-icon .icon { width: 18px; height: 18px; }
.p2d [data-pause] .i-play { display: none; }
.p2d .carousel.is-paused [data-pause] .i-play { display: block; }
.p2d .carousel.is-paused [data-pause] .i-pause { display: none; }
@keyframes progress { to { stroke-dashoffset: 0; } }

.p2d .index { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--frame); border-bottom: 1.5px solid var(--frame); }
.p2d .index li + li { border-top: 1px solid var(--hair); }
.p2d .index-row {
  display: grid; grid-template-columns: 72px minmax(0, 15fr) minmax(0, 26fr) auto; align-items: baseline; gap: 8px 24px;
  padding: 24px 12px; color: var(--ink); text-decoration: none; transition: background-color .15s;
}
.p2d .index-row:hover { background: var(--sheet); color: var(--ink); }
.p2d .index-no { font: 500 13px/1 var(--font-mono); color: var(--accent-ink); letter-spacing: .06em; }
.p2d .index-title { font: 450 clamp(26px, 2.6vw, 32px)/1.1 var(--font-display); letter-spacing: -.015em; }
.p2d .index-desc { color: var(--ink-muted); }
.p2d .index-go { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-label); }
.p2d .index-go .icon { width: 16px; height: 16px; transition: transform .2s; }
.p2d .index-row:hover .index-go { color: var(--accent-ink); }
.p2d .index-row:hover .index-go .icon { transform: translateX(4px); }

.p2d .section-follow { padding-top: 8px; }
.p2d .routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
.p2d .route {
  position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 26px 26px 24px;
  background: var(--sheet); border: 1px solid var(--hair); border-radius: 4px; box-shadow: var(--lift-1);
  color: var(--ink); text-decoration: none; transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s;
}
.p2d .route:hover { transform: translateY(-3px); box-shadow: var(--lift-2); color: var(--ink); }
.p2d .route h3 { font-size: 30px; }
.p2d .route p { color: var(--ink-muted); font-size: 15.5px; }
.p2d .route .index-go { margin-top: auto; padding-top: 10px; }
.p2d .route:hover .index-go { color: var(--accent-ink); }
.p2d .route:hover .index-go .icon { transform: translateX(4px); }
.p2d .route::after { content: ""; position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent); }

@media (max-width: 980px) {
  .p2d .slide { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 0; }
  .p2d .slide-text { order: 2; border-right: 0; border-top: 1px solid var(--hair); padding: 24px 24px 28px; }
  .p2d .fig { max-height: 360px; }
  .p2d .routes { grid-template-columns: 1fr; }
  .p2d .index-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .p2d .index-desc { grid-column: 2 / 3; }
  .p2d .index-go { grid-column: 3; grid-row: 1; }
}
@media (max-width: 760px) {
  .p2d .node-tab { width: 80px; }
  .p2d .nodes::before { left: 40px; right: 40px; }
  .p2d .carousel-nav [data-prev], .p2d .carousel-nav [data-next] { display: none; }
}
@media (max-width: 600px) {
  .p2d .hero-home { padding: 64px 0 36px; }
  .p2d .showcase .container { padding-inline: 0; }
  .p2d .node-tab { width: 48px; font-size: 0; gap: 0; }
  .p2d .nodes::before { left: 24px; right: 24px; top: 16px; }
  .p2d .index-row { grid-template-columns: 40px minmax(0, 1fr); padding: 20px 4px; }
  .p2d .index-go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .p2d .fig .draw { stroke-dashoffset: 0; }
  .p2d .fig .fade, .p2d .fig .pop { opacity: 1; }
}
.p2d .index-row.is-planned, .p2d .route.is-planned { cursor: default; }
.p2d .index-row.is-planned .index-title, .p2d .index-row.is-planned .index-desc, .p2d .route.is-planned h3, .p2d .route.is-planned p { opacity: .55; }
.p2d .index-row.is-planned:hover { background: none; }
.p2d .route.is-planned:hover { transform: none; box-shadow: var(--lift-1); }
.p2d .route h3 em { color: var(--accent); }
.pg-intro { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.pg-intro-text { display: grid; gap: 22px; justify-items: start; }
.pg-intro-text p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink); }
.pg-intro-examples { display: grid; gap: 10px; margin: 0; padding: 18px 20px; list-style: none; background: var(--sheet); border: 1px solid var(--hair); border-radius: 4px; box-shadow: var(--lift-1); }
.pg-intro-examples .mono-label { margin-bottom: 2px; color: var(--ink-label); }
@media (max-width: 760px) { .pg-intro { grid-template-columns: 1fr; } }
.p2d .hero-actions .btn, .p2d .pg-intro-text .btn { transition: background-color .15s ease; }
.p2d .hero-actions .btn:hover, .p2d .hero-actions .btn:focus-visible, .p2d .pg-intro-text .btn:hover, .p2d .pg-intro-text .btn:focus-visible {
  background: color-mix(in srgb, var(--accent) 10%, var(--sheet));
}

.p2d .shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0 0 26px; padding: 0; }
.p2d .shelf-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p2d .shelf-card {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 14px 14px 20px;
  background: var(--sheet); border: 1px solid var(--hair); border-radius: 4px; box-shadow: var(--lift-1);
  color: var(--ink); text-decoration: none; transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s;
}
.p2d .shelf-card:hover { transform: translateY(-3px); box-shadow: var(--lift-2); color: var(--ink); }
.p2d .shelf-thumb { position: relative; display: block; aspect-ratio: 3 / 2; margin-bottom: 6px; overflow: hidden; background: #fff; border: 1px solid var(--hair); border-radius: 3px; }
.p2d .shelf-thumb img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); max-width: none; object-fit: contain; }
.p2d .shelf-card h3 { font-size: 24px; }
.p2d .shelf-card p { color: var(--ink-muted); font-size: 15px; }
.p2d .shelf-more { display: flex; flex-wrap: wrap; gap: 6px 28px; }
@media (max-width: 980px) { .p2d .shelf, .p2d .shelf-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .p2d .shelf, .p2d .shelf-4 { grid-template-columns: 1fr; } }
