/* UComtel. Cobalt and amber, from the logo. */

@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/RedHatDisplay.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("../fonts/RedHatText.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #0E1430;       /* text and headings */
  --ink-deep: #090D22;
  --cobalt: #2340D9;    /* primary: 7.5:1 on white */
  --cobalt-dark: #1A2FA8;
  --amber: #FFB020;     /* signal accent: fills and dots, dark text on top */
  --amber-light: #FFC24D;
  --paper: #F5F7FF;
  --line: #DCE1F2;
  --slate: #4B5370;
  --mute: #AEB6D6;      /* secondary text on ink */
  --error: #C24133;
  --white: #FFFFFF;

  --display: "Red Hat Display", system-ui, sans-serif;
  --text: "Red Hat Text", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.3vw, 2.25rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--text);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--cobalt-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
address { font-style: normal; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.4em;
  border: 2px solid var(--cobalt); border-radius: var(--radius);
  background: var(--cobalt); color: var(--white);
  font: 700 var(--step-0)/1.1 var(--display); letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--cobalt-dark); border-color: var(--cobalt-dark); color: var(--white); }
.btn-small { min-height: 40px; padding: 0.45em 1.1em; font-size: var(--step--1); }
.btn-ghost { background: transparent; color: var(--cobalt); }
.btn-ghost:hover { background: var(--paper); color: var(--cobalt-dark); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-light); border-color: var(--amber-light); color: var(--ink); }
.btn-block { width: 100%; }
.text-link { font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: block; flex: none; }
.brand .logo { height: 30px; width: auto; }
.logo .lu { stroke: var(--cobalt); }
.logo .ld { fill: var(--amber); }
.logo .lw { fill: var(--ink); }
.brand-reverse .logo .lu { stroke: var(--white); }
.brand-reverse .logo .lw { fill: var(--white); }
.primary-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.primary-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-nav ul a { color: var(--ink); font: 600 var(--step-0)/1 var(--display); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.primary-nav ul a:hover, .primary-nav ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--cobalt); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.tel { color: var(--ink); font: 700 var(--step-0)/1 var(--display); text-decoration: none; font-variant-numeric: tabular-nums; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .header-row { min-height: 64px; flex-wrap: wrap; }
  .brand .logo { height: 26px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    min-height: 44px; padding: 0 4px; color: var(--ink); font: 700 var(--step-0)/1 var(--display); text-decoration: none;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.2s; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .primary-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 4px 0 20px; }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--step-1); }
  .primary-nav ul a[aria-current="page"] { border-bottom-color: var(--line); color: var(--cobalt); }
  .nav-actions { justify-content: space-between; padding-top: 18px; }
}

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 22px 0 0; font-size: var(--step--1); color: var(--slate); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--mute); }
.crumbs a { color: var(--slate); }

/* Hero */
.hero { background: var(--paper); color: var(--ink); overflow: hidden; position: relative; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(35,64,217,0.16) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  mask-image: linear-gradient(100deg, transparent 35%, #000 80%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { color: var(--ink); font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.1rem); max-width: 14ch; }
.hero-lead { color: var(--slate); font-size: var(--step-1); line-height: 1.55; max-width: 38ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tel { margin: 22px 0 0; color: var(--slate); }
.hero-tel a { color: var(--ink); font-weight: 700; font-family: var(--display); }
.hero-art { justify-self: end; width: 100%; max-width: 560px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { justify-self: stretch; max-width: 520px; }
}

/* Network diagram */
.network { width: 100%; height: auto; overflow: visible; }
.net-routes path { fill: none; stroke: #B9C2E8; stroke-width: 2.5; stroke-linejoin: round; }
.net-pulses path { fill: none; stroke: var(--cobalt); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 26 600; stroke-dashoffset: 26; opacity: 0; }
.net-pbx rect { fill: var(--white); stroke: var(--slate); stroke-width: 2; }
.net-pbx path { stroke: var(--slate); stroke-width: 2.5; stroke-linecap: round; }
.net-core circle { fill: var(--cobalt); stroke: rgba(35,64,217,0.25); stroke-width: 8; }
.net-core .lu { stroke: var(--white); }
.net-core .ld { fill: var(--amber); }
.net-ends circle { fill: var(--white); stroke: var(--cobalt); stroke-width: 2.5; }
.net-ends .dot { fill: var(--amber); stroke: none; }
.net-label { fill: var(--ink); font: 600 15px var(--display); }
.net-core-label { fill: var(--ink); font-weight: 800; }
.net-note { fill: var(--slate); font: italic 400 12.5px var(--text); }
.portal-art .net-routes path { stroke: rgba(255,255,255,0.32); }
.portal-art .net-pulses path { stroke: var(--amber); }
.portal-art .net-pbx rect { fill: rgba(255,255,255,0.08); stroke: #D6DCF7; }
.portal-art .net-pbx path { stroke: #D6DCF7; }
.portal-art .net-core circle { fill: var(--white); stroke: rgba(255,255,255,0.25); }
.portal-art .net-core .lu { stroke: var(--cobalt); }
.portal-art .net-ends circle { fill: var(--cobalt); stroke: var(--white); }
.portal-art .net-label, .portal-art .net-core-label { fill: var(--white); }
.portal-art .net-note { fill: #D6DCF7; }

@media (prefers-reduced-motion: no-preference) {
  .net-core circle { animation: core-glow 7s ease-in-out 0.6s infinite; }
  .p-in { animation: pulse-in 7s linear 0.6s infinite; }
  .p-delay { animation-delay: 0.85s; }
  .p-out { animation: pulse-out 7s linear 1.6s infinite; }
  .p-o2 { animation-delay: 1.75s; }
  .p-o3 { animation-delay: 1.9s; }
  .p-o4 { animation-delay: 2.05s; }
}
@keyframes pulse-in {
  0% { stroke-dashoffset: 26; opacity: 1; }
  14% { stroke-dashoffset: -150; opacity: 1; }
  15%, 100% { stroke-dashoffset: -150; opacity: 0; }
}
@keyframes pulse-out {
  0% { stroke-dashoffset: 26; opacity: 1; }
  18% { stroke-dashoffset: -280; opacity: 1; }
  19%, 100% { stroke-dashoffset: -280; opacity: 0; }
}
@keyframes core-glow {
  0%, 12% { stroke-width: 8; }
  16% { stroke-width: 16; }
  24%, 100% { stroke-width: 8; }
}

/* Bands */
.band { padding-block: clamp(56px, 7vw, 96px); }
.band-paper { background: var(--paper); }
.band-title { margin-bottom: 40px; max-width: 20ch; }
.band-head { max-width: 60ch; margin-bottom: 36px; }
.band-head p, .split-head p { color: var(--slate); font-size: var(--step-1); line-height: 1.5; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.split-head { position: sticky; top: 104px; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 20px; }
  .split-head { position: static; }
}

.audience { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.audience li { padding: 22px 0 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 32px; }
.audience h3 { margin: 0; font-size: var(--step-1); }
.audience h3 a { color: var(--ink); text-decoration: none; }
.audience h3 a:hover { color: var(--cobalt); text-decoration: underline; }
.audience p { margin: 0; color: var(--slate); }
@media (max-width: 600px) { .audience li { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; }
.facts div { border-top: 3px solid var(--cobalt); padding-top: 18px; }
.facts dt { font: 700 var(--step-1)/1.25 var(--display); color: var(--ink); margin-bottom: 10px; }
.facts dd { margin: 0; color: var(--slate); }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 24px; } }

/* Plan table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plan-table { width: 100%; min-width: 520px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.plan-table thead th { font: 800 var(--step-2)/1.1 var(--display); color: var(--ink); text-align: left; padding: 0 16px 16px; border-bottom: 2px solid var(--ink); scroll-margin-top: 100px; width: 32%; }
.plan-table thead td { border-bottom: 2px solid var(--ink); }
.plan-table tbody th { text-align: left; font-weight: 600; color: var(--ink); padding: 16px 16px 16px 0; }
.plan-table tbody td { padding: 16px; color: var(--ink); }
.plan-table tbody tr { border-bottom: 1px solid var(--line); }
.row-note { display: block; font-weight: 400; font-size: var(--step--1); color: var(--slate); margin-top: 2px; max-width: 34ch; }
.tick { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--cobalt); position: relative; vertical-align: -5px; }
.tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid var(--white); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.after-table { margin-top: 24px; }
@media (max-width: 600px) {
  .plan-table { min-width: 0; font-size: var(--step--1); }
  .plan-table thead th { font-size: var(--step-0); padding: 0 8px 12px; width: 31%; }
  .plan-table tbody th { padding: 12px 8px 12px 0; }
  .plan-table tbody td { padding: 12px 8px; }
  .row-note { display: none; }
  .net-label { font-size: 21px; }
  .net-note { display: none; }
}

/* CTA */
.cta { background: var(--cobalt); color: #E8EBFA; padding-block: clamp(48px, 6vw, 80px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta h2 { color: var(--white); margin-bottom: 8px; }
.cta p { margin: 0; max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-tel { color: var(--white); font: 800 var(--step-3)/1 var(--display); text-decoration: none; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.cta-tel:hover { color: var(--amber-light); }

/* Inner pages */
.page-head { padding: 28px 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 22ch; margin-top: 12px; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--slate); max-width: 52ch; margin: 0; }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 88px); padding-block: clamp(40px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .with-aside { grid-template-columns: 1fr; } }
.prose { max-width: 68ch; }
.prose section + section { margin-top: 40px; }
.prose h2 { font-size: var(--step-2); }
.prose h3 { margin-top: 1.4em; }
.marks { list-style: none; padding: 0; margin: 0 0 1em; }
.marks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.marks li::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(255,176,32,0.25); }
.sublist { list-style: none; padding: 0; margin: 0; }
.sublist li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.sublist h3 { margin: 0 0 4px; font-size: var(--step-1); }
.sublist p { margin: 0; color: var(--slate); }

.aside { display: grid; gap: 20px; position: sticky; top: 100px; }
@media (max-width: 900px) { .aside { position: static; } }
.aside-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.aside-h { font-size: var(--step-0); font-weight: 800; letter-spacing: 0; margin-bottom: 12px; }
.aside-call { background: var(--paper); border-color: var(--paper); }
.aside-call p:last-child { margin-bottom: 0; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li + li { margin-top: 8px; }
.link-list a { font-weight: 600; }
.big-tel { font: 800 var(--step-2)/1 var(--display); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.big-tel:hover { color: var(--cobalt); }

.service-index { list-style: none; margin: 0; padding: clamp(32px, 5vw, 56px) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.service-index > li { padding: 28px 0; border-top: 2px solid var(--ink); }
.service-index h2 { font-size: var(--step-2); margin-bottom: 8px; }
.service-index h2 a { color: var(--ink); text-decoration: none; }
.service-index h2 a:hover { color: var(--cobalt); text-decoration: underline; }
.service-index p { color: var(--slate); margin-bottom: 12px; }
.service-sub { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.service-sub a { font-weight: 600; }
@media (max-width: 760px) { .service-index { grid-template-columns: 1fr; } }

.plans-compare { padding-block: clamp(36px, 5vw, 56px); }
.plan-intros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-bottom: 40px; }
.plan-intros p { color: var(--slate); margin: 0; }
@media (max-width: 700px) { .plan-intros { grid-template-columns: 1fr; } }
.plan-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.custom-plan { padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); scroll-margin-top: 80px; }

/* Forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 80px); padding-block: clamp(40px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { max-width: 720px; }
.form-h { font-size: var(--step-2); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin-bottom: 24px; }
.field.wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.opt { font-weight: 400; color: var(--slate); font-size: var(--step--1); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #A3ABCB; border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(35,64,217,0.22); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
.hint { font-size: var(--step--1); color: var(--slate); margin: 6px 0 0; }
.error { font-size: var(--step--1); color: var(--error); font-weight: 600; margin: 6px 0 0; }
.form-alert { border-left: 4px solid var(--error); background: #FBEFEE; padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 24px; }
.form-alert:focus { outline: none; }
.form-alert p { margin: 0; font-weight: 600; color: #8E2A20; }
.form-alert ul { margin: 8px 0 0; padding-left: 20px; color: #8E2A20; }
.form-note { color: var(--slate); font-size: var(--step--1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: 20px; }
.contact-info { display: grid; gap: 28px; }
.contact-block h2 { font-size: var(--step--1); font-weight: 700; color: var(--slate); letter-spacing: 0.01em; margin-bottom: 6px; }
.contact-block p { margin: 0 0 4px; }

/* Notice pages */
.notice { padding-block: clamp(64px, 10vw, 128px); max-width: 720px; }
.notice .lead { margin-bottom: 20px; }
.notice-mark { display: block; width: 56px; height: 56px; margin-bottom: 28px; }
.notice-mark .lu { stroke: var(--cobalt); }
.notice-mark .ld { fill: var(--amber); }
.notice-links { margin-bottom: 20px; }

/* Footer */
.site-footer { background: var(--ink); color: #C3C9E4; padding-top: 64px; font-size: var(--step--1); }
.site-footer a { color: #E8EBFA; text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .logo { height: 28px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 30ch; }
.footer-h { font: 700 var(--step--1)/1.2 var(--display); color: var(--white); letter-spacing: 0.01em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.footer-contact p { margin: 0 0 8px; }
.footer-tel { font: 800 var(--step-1)/1 var(--display); color: var(--amber) !important; }
.footer-base { border-top: 1px solid rgba(174,182,214,0.22); padding-block: 20px 28px; color: var(--mute); }
.footer-base p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Client portal */
.t-portal { background: var(--paper); }
.portal { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; min-height: 100dvh; }
.portal-side {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--cobalt) 0%, var(--cobalt-dark) 100%); color: #E8EBFA;
  display: flex; flex-direction: column; gap: 36px;
  padding: clamp(28px, 4vw, 56px);
}
.portal-side::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}
.portal-side::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -220px; bottom: -220px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 65%);
}
.portal-side > * { position: relative; z-index: 1; }
.portal-side .logo { height: 30px; width: auto; }
.portal-title { font: 800 clamp(2rem, 1.4rem + 2vw, 2.9rem)/1.05 var(--display); color: var(--white); letter-spacing: -0.025em; margin: 0 0 12px; }
.portal-side-copy p:last-child { font-size: var(--step-1); max-width: 30ch; }
.portal-art { margin-top: auto; max-width: 520px; }
.portal-side-foot { margin: 0; font-size: var(--step--1); color: #D6DCF7; }

.portal-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px var(--gutter); }
.portal-card {
  width: 100%; max-width: 440px; background: var(--white);
  border-radius: 14px; padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 1px 2px rgba(14,20,48,0.06), 0 12px 40px -12px rgba(14,20,48,0.28);
}
.portal-card h1 { font-size: var(--step-3); margin-bottom: 8px; }
.portal-sub { color: var(--slate); margin-bottom: 28px; }
.portal-error { display: flex; gap: 12px; align-items: center; background: #FBEFEE; color: #8E2A20; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; font-weight: 600; }
.portal-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--error); color: var(--white); font: 800 14px/1 var(--display); }
.portal-error p { margin: 0; }

.pfield { position: relative; margin-bottom: 18px; }
.pfield input {
  width: 100%; height: 58px; padding: 22px 16px 6px;
  font: 500 var(--step-0) var(--text); color: var(--ink);
  background: var(--white); border: 1.5px solid #A3ABCB; border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pfield-pass input { padding-right: 76px; }
.pfield label {
  position: absolute; left: 17px; top: 18px; color: var(--slate); pointer-events: none;
  transform-origin: left top; transition: transform 0.15s, color 0.15s;
}
.pfield input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(35,64,217,0.18); }
.pfield input:focus + label, .pfield input:not(:placeholder-shown) + label { transform: translateY(-11px) scale(0.78); color: var(--cobalt); font-weight: 600; }
.pfield input[aria-invalid="true"] { border-color: var(--error); }
.reveal {
  position: absolute; right: 8px; top: 9px; height: 40px; padding: 0 12px;
  border: 0; background: transparent; color: var(--cobalt); border-radius: 8px;
  font: 700 var(--step--1) var(--display); cursor: pointer;
}
.reveal:hover { background: var(--paper); }
.portal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 24px; font-size: var(--step--1); }
.portal-row a { font-weight: 600; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--ink); }
.check input { width: 18px; height: 18px; accent-color: var(--cobalt); margin: 0; }
.portal-submit { position: relative; height: 54px; font-size: var(--step-0); border-radius: 10px; }
.spinner { display: none; width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: var(--white); border-radius: 50%; }
.portal-submit.busy .portal-submit-text { opacity: 0.85; }
.portal-submit.busy .spinner { display: block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.portal-help { margin: 24px 0 0; text-align: center; font-size: var(--step--1); color: var(--slate); }
.portal-back { margin: 28px 0 0; font-size: var(--step--1); }
.portal-back a { color: var(--slate); }

@media (prefers-reduced-motion: no-preference) {
  .shake { animation: shake 0.42s cubic-bezier(.36,.07,.19,.97); }
}
@keyframes shake {
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

@media (max-width: 860px) {
  .portal { grid-template-columns: 1fr; }
  .portal-side { gap: 20px; padding-bottom: 32px; }
  .portal-art, .portal-side-foot { display: none; }
  .portal-title { font-size: var(--step-3); margin-bottom: 4px; }
  .portal-side-copy p:last-child { margin: 0; }
  .portal-main { justify-content: flex-start; padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .cta, .aside, .hero-art { display: none; }
  .hero { background: none; color: var(--ink); }
  .hero h1 { color: var(--ink); }
}

/* Footnotes. Markers escalate: *, **, ***, and so on. */
sup.fn { font-size: 0.62em; line-height: 0; vertical-align: super; margin-left: 0.08em; white-space: nowrap; }
sup.fn a { color: var(--cobalt); text-decoration: none; font-weight: 700; letter-spacing: -0.04em; padding: 10px 4px; margin: -10px -4px; }
sup.fn a:hover { text-decoration: underline; }
h1 sup.fn, h2 sup.fn, h3 sup.fn, dt sup.fn, th sup.fn { font-size: 0.5em; }
.cta sup.fn a, .site-footer sup.fn a, .portal-side sup.fn a { color: var(--amber); }
.tel-wrap { white-space: nowrap; }
:target { scroll-margin-top: 96px; }
li:target .fn-text, sup.fn a:target { background: rgba(255,176,32,0.28); border-radius: 3px; }

.fineprint { border-top: 1px solid rgba(174,182,214,0.22); padding: 32px 0 40px; font-size: 0.8125rem; line-height: 1.55; color: #C3C9E4; }
.fineprint-h { font: 700 var(--step--1)/1.2 var(--display); color: var(--white); margin-bottom: 18px; }
.fineprint-list { list-style: none; margin: 0; padding: 0; columns: 2 26rem; column-gap: 48px; }
.fineprint-list li { break-inside: avoid; margin-bottom: 14px; }
.fn-mark { display: block; color: var(--amber); font-weight: 700; letter-spacing: 0.04em; word-break: break-all; line-height: 1.2; margin-bottom: 2px; }
.fn-back { margin-left: 4px; white-space: nowrap; }
.fineprint-legal { margin: 24px 0 0; padding-top: 16px; border-top: 1px dashed rgba(174,182,214,0.3); color: var(--white); font-weight: 600; }

.portal-fineprint { width: 100%; max-width: 640px; margin-top: 40px; }
.portal-fineprint .fineprint { color: var(--slate); border-top-color: var(--line); padding-bottom: 0; }
.portal-fineprint .fineprint .wrap { padding: 0; }
.portal-fineprint .fineprint-h, .portal-fineprint .fineprint-legal { color: var(--ink); }
.portal-fineprint .fn-mark { color: var(--cobalt); }
.portal-fineprint .fineprint-list { columns: 1; }
.portal-fineprint .site-footer a, .portal-fineprint .fn-back { color: var(--cobalt); }
.portal-main { justify-content: flex-start; padding-top: clamp(48px, 12vh, 120px); }
