:root { --portal-navy:#080f25; --portal-white:#f5f7ff; --portal-accent:#55e9fb; }
.portal-header.topbar { background:#080f25; color:var(--portal-white); border-color:#7b94ff20; padding:0; }
.portal-header-inner { width:min(100%,1700px); height:100%; padding:0 clamp(24px,3.3vw,60px); margin:auto; display:flex; align-items:center; gap:23px; }
.portal-brand { flex:none; display:inline-flex; align-items:center; padding:5px 4px 5px 0; }
.portal-mark { display:inline-flex; align-items:baseline; font-style:italic; font-weight:950; white-space:nowrap; line-height:.95; }
.portal-mark i { color:#c18bff; font:950 italic 42px/1 Arial,sans-serif; letter-spacing:-.095em; }
.portal-mark i sup { vertical-align:top; position:relative; top:-.18em; margin-left:.04em; font:bold italic .63em Georgia,serif; letter-spacing:-.06em; color:#f3e1ff; text-shadow:0 0 .44em #8f4eff; }
.portal-mark b { font-size:32px; margin-left:.12em; }
.portal-tagline { color:#d5dcf5; font-size:13px; white-space:nowrap; padding-left:20px; border-left:1px solid #69779e; }
.portal-nav { flex:1 1 auto; height:100%; display:flex; justify-content:center; align-items:center; gap:clamp(15px,2.65vw,46px); white-space:nowrap; }
.portal-nav a { height:100%; position:relative; display:inline-flex; align-items:center; font-size:15px; font-weight:620; color:#e7edff; }
.portal-nav a:hover,.portal-nav a[aria-current] { color:white; }
.portal-nav a[aria-current]::after { content:''; position:absolute; height:3px; background:var(--portal-accent); inset:auto 0 9px; border-radius:4px; }
.portal-tools { display:flex; gap:10px; align-items:center; margin-left:auto; flex:none; }
.portal-tool { color:#e2eaff; border:1px solid #30446f; background:#14224a; }
.portal-tool:hover { background:#223466; }
.portal-search { display:flex; align-items:center; gap:9px; border-radius:40px; padding:9px 12px; white-space:nowrap; font-size:12px; color:#c1cbe5; }
.portal-search kbd { font:10px ui-monospace,monospace; color:#a9b9e5; padding:2px 4px; border-radius:4px; border:1px solid #3c4b74; }
.portal-saved { display:grid; place-items:center; width:37px; height:37px; border-radius:50%; }
.portal-header .menu-button { border-radius:8px; padding:6px; color:#e2eaff; background:#14224a; }
.portal-header :focus-visible,.portal-hero :focus-visible { outline:2px solid #72edff; }
.shop-mode .portal-header.topbar { padding:0; }

.portal-mode { background:#f8f9fe; color:#101936; }
.portal-main { padding-top:var(--header); }
.portal-width { width:min(calc(100% - 80px),1560px); margin-inline:auto; }
.portal-hero { position:relative; isolation:isolate; overflow:hidden; color:var(--portal-white); background:radial-gradient(ellipse at 73% 105%,#142c75 0%,#0c193b 42%,transparent 76%),linear-gradient(180deg,#080f25 0%,#0a142e 70%,#111f43 100%); border-bottom:1px solid #526dcb; }
.portal-hero-inner { position:relative; min-height:clamp(485px,33vw,550px); display:flex; flex-direction:column; justify-content:space-between; padding:33px 0 27px; }
.portal-copy { position:relative; z-index:2; width:49%; padding-left:clamp(0px,3vw,42px); }
.portal-wordmark { width:clamp(192px,23vw,327px); aspect-ratio:310/108; position:relative; margin:0 0 20px; display:grid; place-items:center; }
.portal-wordmark>svg { position:absolute; inset:0; width:100%; height:100%; filter:drop-shadow(0 0 9px #6a68ff66); }
.portal-wordmark .portal-mark { transform:translate(.03em,-.02em); }
.portal-wordmark .portal-mark i { font-size:clamp(62px,7.4vw,115px); color:transparent; background:linear-gradient(155deg,#e6a3fd,#9861ee 73%,#6771ff); background-clip:text; }
.portal-wordmark .portal-mark b { font-size:clamp(47px,5.4vw,85px); }
.portal-copy h1 { margin:0; font-size:clamp(26px,2.45vw,42px); font-weight:850; line-height:1.32; letter-spacing:-.03em; }
.portal-copy h1 em { font-style:inherit; color:#49dcf6; }
.portal-copy p { margin:13px 0 22px; color:#d4def2; font-size:clamp(13px,1.18vw,19px); line-height:1.6; }
.portal-actions { display:flex; flex-wrap:wrap; gap:12px; }
.portal-actions a { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:0 17px; min-height:45px; font-weight:690; font-size:15px; border-radius:11px; white-space:nowrap; }
.portal-primary { border:1px solid #ad8cff61; background:linear-gradient(108deg,#9661ee,#5054f1 95%); box-shadow:0 8px 26px #2e32cc58; }
.portal-primary:hover { background:linear-gradient(108deg,#a578f2,#6064ff); }
.portal-secondary { border:1px solid #a8b8e7; background:#0a143088; }
.portal-secondary:hover { background:#1b2a53; }
.portal-hero-art { position:absolute; top:-42px; right:-24px; width:65%; height:calc(100% + 24px); object-fit:contain; object-position:center -17px; mask-image:linear-gradient(90deg,transparent,#000 13%,#000 90%,transparent),radial-gradient(ellipse 65% 65% at 52% 44%,#000 47%,#000b 67%,transparent 99%); mask-composite:intersect; }
.portal-art-caption { color:#c7d1ed; position:absolute; top:23px; right:10px; font-size:10px; z-index:1; letter-spacing:.09em; }
.portal-workflow { position:relative; z-index:2; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(17px,3.5vw,60px); width:min(78%,1120px); align-self:flex-end; margin-top:55px; padding:0 18px; }
.portal-workflow::before { content:''; position:absolute; pointer-events:none; inset:-28% -3% -26%; z-index:-1; border:1px solid #93b3ff70; border-radius:50%; background:radial-gradient(ellipse,#112d661f 40%,#143b9390 100%); box-shadow:inset 0 -3px 16px #3477eea8,0 1px 14px #4b5cf380; transform:perspective(475px) rotateX(32deg); }
.portal-stage { position:relative; border:1px solid #6590fa60; border-radius:28px 28px 15px 15px / 17px 17px 14px 14px; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; padding:30px 8px 10px; text-align:center; background:radial-gradient(ellipse 58% 45% at 50% 0%,#4f70d0 0%,#162e70 50%,#0b1739 100%); box-shadow:inset 0 0 16px #4371f260,0 8px 23px #04081672; }
.portal-stage::before { content:''; position:absolute; inset:-1px -1px auto; height:40px; border-radius:50%; border-bottom:1px solid #95aeffb3; box-shadow:0 2px 9px #6889ff51; background:linear-gradient(180deg,#588df713,#5079ed2b); }
.portal-stage:not(:last-child)::after { content:'→'; position:absolute; inset:12px auto auto calc(100% + .1em); width:clamp(17px,3.5vw,60px); color:#75c8ff; text-shadow:0 0 8px #456dff; font-size:clamp(18px,2.8vw,34px); font-weight:800; pointer-events:none; }
.portal-stage-icon { position:absolute; top:-28px; color:#8de9ff; filter:drop-shadow(0 0 9px #4d90ffbb); }
.portal-stage:hover { border-color:#b9c8ff; }
.portal-stage strong { position:relative; font-size:clamp(13px,1.4vw,22px); }
.portal-stage span:last-child { margin-top:4px; color:#dae3fb; font-size:clamp(10px,.92vw,14px); }

.portal-lower { position:relative; isolation:isolate; overflow:hidden; padding:24px 0 32px; background:linear-gradient(180deg,#f7f7ff,#fafaff 75%); }
.portal-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(12px,1.6vw,26px); }
.portal-card { position:relative; isolation:isolate; overflow:hidden; display:grid; grid-template-columns:auto minmax(0,1fr); gap:17px; padding:18px clamp(14px,1.7vw,27px) 15px; border:1px solid #e4e8fb; border-radius:17px; background:linear-gradient(132deg,#eceefe,#f0f3ff 78%); transition:box-shadow .2s,border-color .2s; }
.portal-card:hover { box-shadow:0 9px 23px #20298715; border-color:#9dacf7; }
.portal-card-icon { margin-top:1px; color:#6950ed; }
.portal-card h2 { margin:0 0 7px; font-size:clamp(16px,1.5vw,23px); font-weight:800; line-height:1.4; }
.portal-card p { margin:0; max-width:35em; font-size:clamp(12px,1vw,15px); line-height:1.65; color:#364063; }
.portal-card-arrow { display:block; margin-top:10px; color:#3d41a0; }
.portal-card-deco { color:#6a5bfa; opacity:.4; position:absolute; z-index:-1; right:12px; bottom:8px; }
.portal-card-deco svg { width:clamp(40px,4.4vw,68px); }
.portal-card-data .portal-card-deco svg { width:clamp(64px,7.6vw,112px); }
.portal-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:24px 0 2px; }
.portal-stat { display:flex; align-items:center; justify-content:center; gap:14px; padding:4px 12px; }
.portal-stat+.portal-stat { border-left:1px solid #ccd7fb; }
.portal-stat-icon { color:#4a73f5; }
.portal-stat strong,.portal-stat div span { display:block; }
.portal-stat strong { font-size:clamp(16px,1.5vw,22px); font-weight:820; }
.portal-stat div span { color:#435073; font-size:clamp(11px,1vw,14px); line-height:1.55; }
a.portal-stat:hover strong { color:#454acc; }
.portal-hills { position:absolute; z-index:-1; width:100%; height:57px; bottom:-1px; }
.portal-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding-block:16px 20px; color:#55617d; font-size:12px; }
.portal-footer nav { display:flex; flex-wrap:wrap; gap:16px; }
.portal-footer a:hover { color:#2d41c2; text-decoration:underline; }
.site-registration { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px 20px; padding:12px 16px 18px; border-top:1px solid #dce2ec; color:#526079; font-size:13px; line-height:1.6; }
.site-registration a { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.site-registration a:hover,.site-registration a:focus-visible { color:#2d41a8; }
@media (min-width:761px) { body:has(.sidebar) .site-registration { margin-left:var(--side); } }
.page.page-standalone { margin-inline:auto; }
.portal-contact-mode .page { margin-inline:auto; width:min(100%,1050px); }
.portal-contact-links { display:flex; gap:12px; flex-wrap:wrap; margin-top:22px; }
.portal-contact-links a { color:white; text-decoration:none; }
.portal-contact-links .secondary { color:var(--green); }

@media(max-width:1260px) {
  .portal-tagline { display:none; }
  .portal-header-inner { gap:18px; }
  .portal-copy { padding-left:5px; }
  .portal-art-caption { right:0; }
}
@media(max-width:1000px) {
  .portal-width { width:calc(100% - 44px); }
  .portal-copy { width:53%; }
  .portal-hero-inner { min-height:440px; }
  .portal-hero-art { right:-18px; width:66%; object-position:center 25px; }
  .portal-card { gap:10px; }
  .portal-card-icon svg { width:28px; height:28px; }
  .portal-stat { gap:7px; }
  .portal-stat-icon svg { width:24px; height:24px; }
}
@media(max-width:760px) {
  :root { --header:98px; }
  .portal-header-inner { display:grid; grid-template-columns:auto 1fr auto; grid-template-rows:52px 45px; gap:0 10px; padding:0 16px; }
  .portal-brand { grid-area:1/2; justify-self:start; }
  .portal-header-inner:not(:has(.menu-button)) .portal-brand { grid-area:1/1/2/3; }
  .portal-mark i { font-size:35px; }
  .portal-mark b { font-size:27px; }
  .portal-nav { grid-area:2/1/3/4; height:100%; justify-content:space-between; gap:clamp(5px,1.7vw,14px); }
  .portal-nav a { font-size:clamp(11px,3.3vw,15px); }
  .portal-nav a[aria-current]::after { bottom:2px; }
  .portal-tools { grid-area:1/3; }
  .portal-search { width:35px; height:35px; display:grid; place-items:center; padding:0; }
  .portal-search span,.portal-search kbd { display:none; }
  .portal-saved { width:35px; height:35px; }
  .page { padding-top:calc(var(--header) + 20px); }
  html { scroll-padding-top:calc(var(--header) + 15px); }
  .source-content :is(h2,h3,h4) { scroll-margin-top:calc(var(--header) + 15px); }
  .portal-width { width:calc(100% - 32px); }
  .portal-hero-inner { min-height:0; padding:24px 0 20px; display:grid; }
  .portal-copy { width:100%; padding:0; text-align:center; }
  .portal-wordmark { margin:0 auto 13px; }
  .portal-copy h1 { font-size:clamp(20px,5.9vw,35px); }
  .portal-copy p { margin:9px 0 15px; }
  .portal-actions { justify-content:center; gap:8px; }
  .portal-actions a { padding:0 10px; font-size:13px; min-height:40px; gap:5px; }
  .portal-hero-art { position:relative; top:auto; right:auto; width:min(100% + 26px,640px); height:auto; aspect-ratio:1.78; justify-self:center; object-fit:cover; object-position:center; margin:6px 0 0; }
  .portal-art-caption { top:auto; bottom:123px; right:2px; }
  .portal-workflow { width:100%; gap:8px; padding:0; margin-top:17px; }
  .portal-workflow::before,.portal-stage::after { display:none; }
  .portal-stage { padding:24px 3px 6px; border-radius:12px; min-height:65px; }
  .portal-stage-icon { top:-13px; }
  .portal-stage-icon svg { width:27px; height:27px; }
  .portal-stage::before { height:22px; }
  .portal-stage strong { font-size:clamp(9px,2.85vw,15px); }
  .portal-stage span:last-child { font-size:clamp(8px,2.35vw,12px); }
  .portal-lower { padding:15px 0 25px; }
  .portal-cards { grid-template-columns:1fr; gap:10px; }
  .portal-card { padding:14px; }
  .portal-card h2 { margin-bottom:4px; }
  .portal-card-arrow { margin-top:6px; }
  .portal-stats { grid-template-columns:1fr 1fr; gap:13px 0; padding-top:19px; }
  .portal-stat { justify-content:flex-start; padding-inline:7px; }
  .portal-stat:nth-child(3) { border-left:0; }
}
@media print { .portal-header,.portal-footer { display:none; } }
