/* Personal information portal: identity masthead, blue navigation, editorial content grid. */
.portal-page {
  --portal-blue: #084d91;
  --portal-blue-strong: #063c73;
  --portal-ink: var(--text);
  --portal-paper: var(--surface-strong);
  --portal-soft: var(--bg-alt);
  --portal-display: 'Inter', Arial, sans-serif;
  --portal-body: 'Inter', Arial, sans-serif;
  --accent: #1262ac;
  --accent-2: #084d91;
  --accent-text: #79baff;
  --accent-soft: #1262ac24;
  --border-hover: #4b8fc388;
  --shadow: 0 8px 24px #052b4f12;
  font-family: var(--portal-body);
}
[data-theme="light"] .portal-page { --bg: #ffffff; --bg-alt: #f2f5f8; --surface: #fff; --surface-strong: #fff; --text: #17324b; --text-muted: #526475; --text-dim: #617183; --accent-text: #084d91; --accent-soft: #eaf2fa; --border: #dce5ed; --header-bg: #fff; }
.portal-utility { background: var(--portal-blue-strong); color: #fff; font-size: 11px; }
.portal-utility > .container { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; padding-block: 9px; }
.portal-utility > .container > span { letter-spacing: .07em; }
.portal-utility > .container > div { display: flex; gap: 20px; }
.portal-page .header { position: relative; inset: auto; display: grid; grid-template-columns: 1fr auto; padding: 0; gap: 0; background: var(--portal-paper); backdrop-filter: none; border: 0; box-shadow: none; transform: none !important; z-index: 100; }
.portal-page .header > .logo { grid-column: 1; grid-row: 1; padding-block: 22px; margin-left: max(20px, calc((100vw - 1088px) / 2)); font-size: clamp(18px, 2.5vw, 27px); gap: 15px; }
.portal-page .header .logo-mark { width: 57px; height: 57px; border-radius: 50%; background: var(--portal-blue); color: #fff; font-size: 27px; border: 0; }
.portal-page .header .logo-caption { display: block; color: var(--text-muted); letter-spacing: .12em; font-size: 9px; margin-top: 5px; }
.portal-page .header-actions { grid-column: 2; grid-row: 1; margin-right: max(20px, calc((100vw - 1160px) / 2)); gap: 12px; }
.portal-page .header .home-shop-cta { display: inline-flex; border-radius: 4px; background: var(--portal-blue); box-shadow: none; font-size: 12px; white-space: nowrap; }
.portal-page .nav { grid-column: 1 / -1; grid-row: 2; background: var(--portal-blue); justify-content: center; gap: 0; width: 100%; }
.portal-page .nav-link { color: #fff; font-size: 13px; padding: 15px 20px; }
.portal-page .nav-link::after { display: none; }
.portal-page .nav-link.active, .portal-page .nav-link:hover { background: var(--portal-blue-strong); color: #fff; }
.portal-page.portfolio-page .hero { padding-block: 32px; background: var(--portal-soft); min-height: auto; }
.portal-page .hero-bg { display: none; }
.portal-page .hero-layout { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 40px; }
.portal-page .hero-title { font-size: clamp(33px, 4.5vw, 57px); letter-spacing: -.04em; }
.portal-page .hero-role { min-height: auto; font-size: 17px; margin-block: 12px 18px; }
.portal-page .type-cursor { display: none; }
.portal-page .hero-desc { font-size: 14px; line-height: 1.9; margin-bottom: 20px; max-width: 600px; }
.portal-page .hero-eyebrow { font-size: 11px; color: var(--accent-text); }
.portal-page .hero-badge { font-size: 10px; margin-bottom: 20px; box-shadow: none; }
.portal-page .hero-actions { gap: 10px; margin-bottom: 15px; }
.portal-page .btn { border-radius: 4px; box-shadow: none; }
.portal-page .btn-primary { background: var(--portal-blue); color: #fff; }
.portal-page .hero-actions .btn { padding: 12px 17px; font-size: 12px; }
.portal-page .hero-paths { display: none; }
.portal-page .hero-footnote { font-size: 10px; }
.portal-page .profile-card { padding: 18px 22px; border-radius: 4px; background: var(--portal-paper); box-shadow: none; }
.portal-page .profile-art { height: 180px; background: none; }
.portal-page .profile-monogram { font-size: 90px; }
.portal-page .profile-monogram.has-avatar { width: 160px; height: 160px; }
.portal-page .profile-orbit { width: 164px; height: 164px; }
.portal-page .orbit-two { width: 130px; height: 130px; }
.portal-page .profile-identity h2 { font-size: 17px; }
.portal-page .profile-school { margin-top: 14px; padding-top: 14px; }
.portal-page .profile-topline { font-size: 9px; }
.portal-page .code-note { display: none; }
.portal-page .code-playground { margin-top: 14px; }
.portal-page .section { padding-block: 48px; }
.portal-page .section-title { font-size: clamp(25px, 3vw, 35px); letter-spacing: -.025em; }
.portal-page .section-title em, .portal-page .home-store-heading h2 em { font-family: var(--portal-display); font-style: normal; font-weight: 700; }
.portal-page .section-tag { color: var(--accent-text); }
.portal-page .section-dark { background: var(--portal-soft); }
.portal-page .project-card, .portal-page .skill-category, .portal-page .contact-form, .portal-page .detail-card { border-radius: 5px; box-shadow: none; }
.portal-page .home-store.section { padding-block: 28px; background: var(--portal-soft); }
.portal-page .home-store-product { border-radius: 4px; box-shadow: none; }
.portal-page .home-store-heading h2 { font-size: 25px; }
.portal-page .home-store-link { border-radius: 4px; }
.portal-page .anim-up, .portal-page .reveal-up { opacity: 1; transform: none; animation: none; transition: none; }
.portal-page .footer { background: var(--portal-blue-strong); color: #fff; }
.portal-page .footer a, .portal-page .footer p { color: #fff; }
.portal-highlights { padding-block: 30px; }
.portal-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--portal-blue); }
.portal-section-heading h2 { font-size: 21px; color: var(--accent-text); }
.portal-section-heading > span { font-size: 11px; color: var(--text-muted); }
.portal-highlights-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 22px; }
.portal-feature { padding: 25px; background: var(--portal-blue); color: #fff; display: flex; flex-direction: column; align-items: start; gap: 13px; }
.portal-feature-label { font-size: 10px; letter-spacing: .1em; }
.portal-feature h3 { font-size: 23px; line-height: 1.35; }
.portal-feature p, .portal-connect p { font-size: 12px; line-height: 1.8; }
.portal-feature-link { margin-top: auto; font-size: 12px; font-weight: 600; }
.portal-directory h3, .portal-connect h3 { font-size: 17px; margin-bottom: 12px; }
.portal-directory a { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border); padding: 14px 0; font-size: 12px; }
.portal-directory a:hover { color: var(--accent-text); }
.portal-connect { padding: 20px; background: var(--portal-soft); border-top: 3px solid var(--portal-blue); }
.portal-connect h3 { margin-top: 12px; }
.portal-connect > a { display: inline-block; color: var(--accent-text); margin-block: 12px; font-size: 12px; font-weight: 600; }
.portal-connect .portal-personal-note { font-size: 10px; color: var(--text-muted); }
@media(max-width: 1000px) and (min-width: 769px) { .portal-page .nav-link { padding-inline: 12px; font-size: 11px; } }
@media(max-width: 768px) {
  .portal-utility { font-size: 9px; }
  .portal-page .header > .logo { padding-block: 16px; margin-left: 20px; font-size: 18px; gap: 10px; }
  .portal-page .header .logo-mark { width: 42px; height: 42px; font-size: 22px; }
  .portal-page .header .logo-caption { font-size: 7px; letter-spacing: .04em; }
  .portal-page .header-actions { margin-right: 16px; gap: 7px; }
  .portal-page .header .home-shop-cta { display: none; }
  .portal-page .menu-btn span { background: var(--text); }
  .portal-page .nav { position: fixed; inset: 0; height: 100dvh; padding: 80px 20px 30px; gap: 5px; align-items: stretch; }
  .portal-page .nav-link { text-align: center; font-size: 16px; padding: 13px; }
  .portal-page .header:has(.nav.open) .header-actions { position: fixed; top: 14px; right: 0; padding: 5px; background: var(--portal-paper); border-radius: 5px; }
  .portal-page .hero { padding-block: 25px; }
  .portal-page .hero-layout { grid-template-columns: 1fr; gap: 25px; }
  .portal-page .hero-content { text-align: left; }
  .portal-page .hero-role { font-size: 15px; }
  .portal-page .hero-visual { max-width: none; }
  .portal-page .profile-card { display: block; }
  .portal-highlights-grid { grid-template-columns: 1fr; gap: 18px; }
  .portal-page .section { padding-block: 32px; }
}
@media(prefers-reduced-motion:reduce) { .portal-page * { scroll-behavior: auto; } }
