/* Landing-page composition. Functional pages share experience.css; the guide
   has one deliberate hierarchy: brand, title, three equal role entries, footer. */
.portal-page {
  --portal-ink:#243e57; --portal-muted:#61758a; --portal-accent:#3c6996;
  min-height:100vh; min-height:100svh; display:flex; flex-direction:column;
  color:var(--portal-ink); font-weight:400;
  background:radial-gradient(ellipse at 51% 0%,#dfeaf5a6,transparent 54%),radial-gradient(ellipse at 100% 50%,#e1efed77,transparent 38%),#f3f6fa;
}
.portal-page .startup-indicator { color:var(--portal-muted); }
.portal-masthead,.portal-footer { width:min(1120px,calc(100% - 80px)); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.portal-masthead { min-height:96px; background:transparent; border:0; box-shadow:none; }
.portal-brand { display:flex; align-items:center; gap:12px; }
.portal-brand img { display:block; object-fit:contain; }
.portal-tools { display:flex; align-items:center; gap:12px; }
.portal-page .portal-shell { flex:1; display:flex; align-items:center; justify-content:center; min-height:0; padding:36px 40px 52px; width:100%; }
.portal-content { width:min(1120px,100%); }
.portal-intro { text-align:center; margin:0 auto 54px; }
.portal-eyebrow { display:inline-flex; align-items:center; gap:13px; margin:0 0 21px; font-size:12px; font-weight:500; letter-spacing:.2em; color:#5b7c99; }
.portal-eyebrow::before,.portal-eyebrow::after { content:""; width:24px; height:1px; background:#a5bed0; }
.portal-intro h1 { margin:0; font-size:clamp(32px,3.3vw,46px); font-weight:650; line-height:1.45; letter-spacing:.045em; color:#233f5a; text-wrap:balance; }
.portal-intro h1 span { display:inline-block; white-space:nowrap; }
.portal-intro h1 span:last-child { color:#477a9c; }
.portal-description { margin:18px 0 0; color:var(--portal-muted); font-size:15px; font-weight:400; line-height:1.9; text-wrap:balance; }
.portal-description>span { display:inline-block; white-space:nowrap; }
.portal-description>span+span { margin-left:.4em; }
.portal-roles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.portal-page .portal-role {
  display:grid; position:relative; grid-template-columns:1fr auto; grid-template-rows:52px auto 1fr auto; gap:0;
  min-width:0; min-height:282px; padding:28px; overflow:hidden; isolation:isolate; transform:none;
  border:1px solid #ffffff; border-radius:21px; color:var(--portal-ink); text-decoration:none;
  background:linear-gradient(135deg,#ffffffed,#fcfeffdf 60%,#f1f7f9e6);
  box-shadow:0 10px 35px #2e50610a,0 1px 3px #29485c08,inset 0 1px 0 #fff;
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  transition:transform var(--motion-fast) var(--ease),border-color var(--motion-fast) var(--ease),box-shadow var(--motion-fast) var(--ease),background-color var(--motion-fast) var(--ease);
}
.portal-role-icon { grid-column:1; width:48px; height:48px; display:grid; place-items:center; border:1px solid #dae7f1; border-radius:14px; color:#4d769b; background:linear-gradient(145deg,#edf5fc,#e5eff5); box-shadow:inset 0 1px 0 #fff; }
.portal-role-icon svg { width:29px; height:29px; stroke:currentColor; stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round; }
.portal-role-index { grid-column:2; align-self:center; color:#6e8398; font-size:11px; font-weight:450; letter-spacing:.1em; }
.portal-role h2 { grid-column:1/-1; margin:22px 0 10px; font-size:21px; font-weight:650; line-height:1.5; color:#2d4b67; white-space:nowrap; }
.portal-role p { grid-column:1/-1; margin:0; font-size:14px; font-weight:400; color:#63778b; line-height:1.9; }
.portal-role p>span { display:block; white-space:nowrap; }
.portal-role-entry { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:25px; padding-top:17px; border-top:1px solid #e0e9f0; font-size:12px; font-weight:550; color:#416b91; }
.portal-role-entry>span { display:grid; place-items:center; flex:0 0 28px; width:28px; height:28px; border:1px solid #d7e4ee; border-radius:50%; background:#f1f7fb; transition:transform var(--motion-fast) var(--ease),background-color var(--motion-fast) var(--ease); }
.portal-role-entry svg { width:16px; height:16px; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.portal-data-note { display:flex; align-items:center; justify-content:center; gap:9px; margin:29px 0 0; color:#637b8b; font-size:12px; line-height:1.8; text-align:center; }
.portal-data-note>svg { width:16px; height:16px; flex:0 0 16px; stroke:#668c87; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.portal-footer { min-height:64px; border-top:1px solid #d8e3ec; justify-content:center; text-align:center; }
.portal-footer p { margin:0; color:#6b7d8e; font-size:11px; line-height:1.8; font-weight:400; }
.portal-page .portal-thanks {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:9px 15px;
  border:1px solid var(--tool-edge,#c9d9e6); border-radius:11px; background:var(--tool-tint,#f4f8fc);
  color:var(--portal-accent); box-shadow:none; transform:none; font-size:14px; font-weight:550; white-space:nowrap; text-decoration:none;
  transition:background-color var(--motion-fast) var(--ease),border-color var(--motion-fast) var(--ease),transform var(--motion-press) var(--ease);
}
.portal-thanks svg { width:17px; height:17px; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.portal-page .home-action:focus-visible { outline:3px solid #719ac3; outline-offset:4px; }
.portal-page .portal-role:is(:active,.press-feedback) { transform:translateY(0) scale(.985); border-color:#aac6dc; background-color:#d9eaf5; box-shadow:0 3px 12px #2e506112,inset 0 1px 0 #fff; }
.portal-page .portal-thanks:is(:active,.press-feedback) { transform:scale(.97); background:#e4edf6; box-shadow:none; }
@media(hover:hover) and (pointer:fine) {
  .portal-page .portal-role:hover { transform:translateY(-4px); border-color:#b3cde1; background-color:#eaf4fa; box-shadow:0 17px 40px #365a7312,inset 0 1px 0 #fff; }
  .portal-page .portal-role:hover .portal-role-entry>span { transform:translateX(3px); background:#e8f2fa; }
  .portal-page .portal-role:is(:active,.press-feedback) { transform:translateY(0) scale(.985); }
  .portal-page .portal-thanks:hover { transform:none; background:var(--tool-hover,#e4edf6); border-color:var(--selection-edge,#a7bfd5); }
}
/* Movement has a consistent upward direction. The static glass is never animated. */
.portal-page.home-ready .portal-intro { animation:portalEnter var(--motion-reveal) var(--ease) backwards; }
.portal-page.home-ready .portal-role { animation:portalEnter var(--motion-reveal) var(--ease) backwards; }
.portal-page.home-ready .portal-role:nth-child(1) { animation-delay:.1s; }
.portal-page.home-ready .portal-role:nth-child(2) { animation-delay:.18s; }
.portal-page.home-ready .portal-role:nth-child(3) { animation-delay:.26s; }
.portal-page.home-ready .portal-data-note { animation:portalEnter var(--motion-reveal) var(--ease) .3s backwards; }
.portal-page.home-ready .portal-thanks { animation:none; }
@keyframes portalEnter { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
@media(max-width:1000px) and (min-width:801px) {
  .portal-page .portal-role { padding:20px; }
  .portal-role h2 { font-size:18px; }
  .portal-role p { font-size:12px; }
  .portal-roles { gap:14px; }
}
@media(min-width:801px) and (max-height:850px) {
  .portal-masthead { min-height:80px; }
  .portal-page .portal-shell { padding-top:20px; padding-bottom:26px; }
  .portal-intro { margin-bottom:35px; }
  .portal-eyebrow { margin-bottom:15px; }
  .portal-footer { min-height:66px; }
}
@media(max-width:800px) {
  .portal-masthead,.portal-footer { width:calc(100% - 40px); }
  .portal-masthead { min-height:78px; gap:12px; }
  .portal-brand { gap:8px; }
  .portal-brand img { width:34px; height:34px; }
  .portal-page .portal-shell { padding:25px 20px 30px; align-items:flex-start; }
  .portal-intro { margin-bottom:30px; }
  .portal-eyebrow { font-size:10px; margin-bottom:13px; }
  .portal-intro h1 { font-size:28px; line-height:1.5; letter-spacing:.025em; }
  .portal-intro h1 span { display:block; }
  .portal-description { max-width:340px; margin:14px auto 0; font-size:13px; line-height:1.9; }
  .portal-description>span { display:block; }
  .portal-description>span+span { margin-left:0; }
  .portal-roles { grid-template-columns:minmax(0,1fr); gap:13px; }
  .portal-page .portal-role { min-height:150px; padding:20px; grid-template-columns:38px minmax(0,1fr); grid-template-rows:auto auto auto; gap:0 14px; border-radius:17px; }
  .portal-role-icon { width:38px; height:38px; grid-column:1; grid-row:1/3; align-self:start; margin-top:1px; border-radius:11px; }
  .portal-role-icon svg { width:24px; height:24px; }
  .portal-role-index { display:none; }
  .portal-role h2 { grid-column:2; margin:0 0 7px; font-size:18px; }
  .portal-role p { grid-column:2; max-width:none; font-size:12px; line-height:1.8; }
  .portal-role-entry { grid-column:2; margin-top:12px; padding-top:10px; font-size:11px; }
  .portal-role-entry>span { width:24px; height:24px; flex-basis:24px; }
  .portal-data-note { align-items:flex-start; margin-top:23px; font-size:11px; gap:7px; }
  .portal-data-note>svg { margin-top:2px; }
  .portal-footer { min-height:58px; padding:12px 0; }
  .portal-footer p { font-size:11px; text-wrap:pretty; }
  .portal-tools { gap:8px; }
  .portal-page .portal-thanks { padding:8px 12px; }
}
@media(max-width:480px) {
  .portal-masthead { gap:8px; }
  .portal-brand { flex-direction:column; gap:1px; }
  .portal-tools { gap:6px; }
  .portal-page .portal-thanks { padding-inline:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .portal-page.home-ready :is(.portal-intro,.portal-role,.portal-data-note) { animation:none; }
  .portal-page .home-action,.portal-role-entry>span { transition:none; }
}
