:root{
  --jmac-yellow:#ffbe00;
  --jmac-ink:#0b0b0a;
  --jmac-paper:#fff0ad;
  --jmac-line:rgba(11,11,10,.48);
  --jmac-max:74rem;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:132px}
body{margin:0;background:var(--jmac-yellow);color:var(--jmac-ink);font-family:"DM Sans",system-ui,-apple-system,sans-serif;line-height:1.65}
main{min-height:70vh}
.portal-wrap{width:min(calc(100% - 40px),var(--jmac-max));margin-inline:auto}
.portal-hero{padding:clamp(5rem,10vw,9rem) 0 clamp(4rem,8vw,7rem);border-bottom:1px solid var(--jmac-ink)}
.portal-kicker{margin:0 0 1rem;font:600 .78rem/1.5 "DM Mono",monospace;letter-spacing:.16em;text-transform:uppercase}
.portal-hero h1,.portal-section h2{margin:0;font-weight:700;letter-spacing:-.065em;line-height:.9;text-wrap:balance}
.portal-hero h1{max-width:12ch;font-size:clamp(3.4rem,9vw,8rem)}
.portal-hero h1 em{font-family:"Instrument Serif",Georgia,serif;font-weight:400}
.portal-lead{max-width:60ch;margin:2rem 0 0;font-size:clamp(1.1rem,2vw,1.4rem);line-height:1.55}
.portal-section{padding:clamp(4rem,8vw,7rem) 0;border-bottom:1px solid var(--jmac-ink)}
.portal-section h2{max-width:15ch;font-size:clamp(2.5rem,6vw,5.5rem)}
.portal-section h3{margin:0 0 .65rem;font-size:clamp(1.35rem,2.6vw,2rem);line-height:1.15}
.portal-section p{max-width:68ch;font-size:clamp(1rem,1.4vw,1.15rem)}
.portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin-top:2.5rem;background:var(--jmac-ink);border:1px solid var(--jmac-ink)}
.portal-card{padding:clamp(1.5rem,3vw,2.5rem);background:var(--jmac-paper)}
.portal-card p{margin-bottom:0}
.portal-index{display:block;margin-bottom:1.2rem;font:600 .8rem "DM Mono",monospace;letter-spacing:.1em}
.portal-list{display:grid;gap:1px;margin-top:2.5rem;background:var(--jmac-ink);border:1px solid var(--jmac-ink)}
.portal-list article{display:grid;grid-template-columns:6rem minmax(0,.75fr) minmax(0,1.25fr);gap:2rem;padding:clamp(1.5rem,3vw,2.5rem);background:var(--jmac-paper)}
.portal-list h3,.portal-list p{margin:0}
.portal-tags{margin-top:1rem;font:500 .88rem/1.7 "DM Mono",monospace}
.portal-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:2rem}
.portal-button{display:inline-flex;padding:.9rem 1.15rem;border:1px solid var(--jmac-ink);color:inherit;text-decoration:none;font-weight:700}
.portal-button--dark{background:var(--jmac-ink);color:var(--jmac-yellow)}
.portal-note{margin-top:2rem;padding-top:1.2rem;border-top:1px solid var(--jmac-line);font-size:.95rem!important}
.portal-footer{padding:2rem 20px;background:var(--jmac-ink);color:var(--jmac-yellow)}
.portal-footer-inner{width:min(100%,var(--jmac-max));margin:auto;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.portal-footer a{color:inherit}
.model-mix{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin-top:2.5rem;background:var(--jmac-ink);border:1px solid var(--jmac-ink)}
.model-mix article{padding:clamp(1.35rem,3vw,2rem);background:var(--jmac-paper)}
.model-mix strong{display:block;font-size:clamp(2.25rem,5vw,4rem);line-height:1;margin-bottom:.7rem}
.model-mix span{font-weight:700}
.model-bullets{margin:2rem 0 0;padding-left:1.25rem;font-size:clamp(1rem,1.4vw,1.15rem)}
.model-bullets li+li{margin-top:.7rem}
.model-note{margin-top:2.5rem;padding-top:1.25rem;border-top:1px solid var(--jmac-line)}
.journey-flow{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"one two three" "six five four";gap:clamp(2.6rem,5vw,4.6rem) clamp(2rem,4vw,4rem);margin-top:3rem;padding:1rem 0}
.journey-flow::before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle,var(--jmac-ink) 1px,transparent 1.5px);background-size:18px 18px;opacity:.08;pointer-events:none}
.journey-node{position:relative;z-index:1;min-height:18rem;padding:clamp(1.5rem,3vw,2.4rem);border:1px solid var(--jmac-ink);background:var(--jmac-paper);display:flex;flex-direction:column;overflow:visible;animation:journey-arrive .7s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--step) * .12s);transition:transform .25s ease,box-shadow .25s ease,background .25s ease}
.journey-node:hover{transform:translateY(-8px);box-shadow:12px 12px 0 var(--jmac-ink);background:#fff4bf}
.journey-node:nth-child(1){grid-area:one}.journey-node:nth-child(2){grid-area:two}.journey-node:nth-child(3){grid-area:three}.journey-node:nth-child(4){grid-area:four}.journey-node:nth-child(5){grid-area:five}.journey-node:nth-child(6){grid-area:six}
.journey-node .portal-index{display:inline-grid;place-items:center;width:3.3rem;height:3.3rem;margin-bottom:auto;border-radius:50%;background:var(--jmac-ink);color:var(--jmac-yellow);font-size:.95rem;box-shadow:0 0 0 0 rgba(11,11,10,.35);animation:journey-pulse 2.8s ease-in-out infinite;animation-delay:calc(var(--step) * .2s)}
.journey-node h3{margin:2rem 0 .8rem;font-size:clamp(1.45rem,2.4vw,2.2rem)}
.journey-node p{margin:0;font-size:1rem;line-height:1.6}
.journey-arrow{position:absolute;z-index:3;display:grid;place-items:center;width:2.8rem;height:2.8rem;border-radius:50%;background:var(--jmac-ink);color:var(--jmac-yellow);font:700 1.25rem/1 "DM Mono",monospace;animation:journey-arrow 1.7s ease-in-out infinite}
.journey-node:nth-child(1) .journey-arrow,.journey-node:nth-child(2) .journey-arrow{right:calc(clamp(2rem,4vw,4rem) / -2 - 1.4rem);top:50%;transform:translateY(-50%)}
.journey-node:nth-child(3) .journey-arrow{left:50%;bottom:calc(clamp(2.6rem,5vw,4.6rem) / -2 - 1.4rem);transform:translateX(-50%) rotate(90deg)}
.journey-node:nth-child(4) .journey-arrow,.journey-node:nth-child(5) .journey-arrow{left:calc(clamp(2rem,4vw,4rem) / -2 - 1.4rem);top:50%;transform:translateY(-50%) rotate(180deg)}
.journey-node:nth-child(6) .journey-arrow{display:none}
@keyframes journey-arrive{from{opacity:0;transform:translateY(22px) scale(.98)}to{opacity:1;transform:none}}
@keyframes journey-pulse{50%{box-shadow:0 0 0 10px rgba(11,11,10,0)}}
@keyframes journey-arrow{50%{filter:brightness(1.8);box-shadow:0 0 0 7px rgba(11,11,10,.08)}}
@media(max-width:760px){
  html{scroll-padding-top:106px}
  .portal-wrap{width:min(calc(100% - 32px),var(--jmac-max))}
  .portal-hero{padding-top:4rem}
  .portal-grid{grid-template-columns:1fr}
  .model-mix{grid-template-columns:1fr}
  .portal-list article{grid-template-columns:1fr;gap:.7rem}
  .journey-flow{display:grid;grid-template-columns:1fr;grid-template-areas:none;gap:3.7rem;padding-left:1.25rem}
  .journey-node:nth-child(n){grid-area:auto;min-height:0}
  .journey-node:nth-child(n) .journey-arrow{display:grid;left:50%;right:auto;top:auto;bottom:-3.3rem;transform:translateX(-50%) rotate(90deg)}
  .journey-node:nth-child(6) .journey-arrow{display:none}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.journey-node,.journey-node .portal-index,.journey-arrow{animation:none!important}}
