@font-face {
  font-family: "Noto Sans TC";
  src: url("./fonts/noto-sans-tc-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans TC";
  src: url("./fonts/noto-sans-tc-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --midnight: #061b29;
  --navy: #092235;
  --navy-deep: #04141f;
  --navy-surface: rgba(7, 29, 43, 0.9);
  --navy-card: rgba(8, 31, 45, 0.88);
  --cyan: #b08a5b;
  --aqua: #c4a574;
  --copper: #c78a4b;
  --paper: #f3f7f8;
  --paper-muted: #b9cbd0;
  --line: rgba(113, 236, 227, 0.19);
  --line-quiet: rgba(185, 203, 208, 0.12);
  --live-glow: rgba(17, 210, 208, 0.12);
  --source-glow: rgba(199, 138, 75, 0.11);
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --sans: "Noto Sans TC", "Microsoft JhengHei UI", Arial, sans-serif;
  --content: 1420px;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 14px);
  background: var(--navy-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--paper);
  background:
    radial-gradient(circle at 74% -16%, rgba(17, 210, 208, 0.12), transparent 34%),
    linear-gradient(155deg, #04131e 0%, var(--midnight) 46%, #071a26 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(17, 210, 208, 0.18);
}

a {
  color: inherit;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border: 1px solid var(--cyan);
  background: var(--navy-deep);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.ambient-architecture {
  position: fixed;
  z-index: 0;
  inset: var(--header-height) 0 auto auto;
  width: min(70vw, 1120px);
  height: min(62vw, 760px);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.12;
  mask-image: linear-gradient(120deg, transparent 0%, #000 30%, #000 68%, transparent 100%);
}

.ambient-architecture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--midnight));
}

.ambient-architecture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.1);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 20, 31, 0.9);
  backdrop-filter: blur(18px) saturate(1.2);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: min(21vw, 320px);
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 44px), var(--content));
  min-height: var(--header-height);
  margin: 0 auto;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
}

.monogram {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(113, 236, 227, 0.42);
  background: linear-gradient(145deg, rgba(17, 210, 208, 0.13), rgba(9, 34, 53, 0.35));
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.identity-copy {
  display: grid;
  line-height: 1.15;
}

.identity-copy strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.identity-copy span {
  margin-top: 5px;
  color: #8eabb3;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #98b1b8;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.header-status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.header-status b {
  color: var(--paper);
  font-size: 11px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-dot--live {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(17, 210, 208, 0.7);
}

.status-dot--source {
  border: 1px solid var(--copper);
  background: transparent;
}

.github-profile {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(113, 236, 227, 0.24);
  color: #c8d8dc;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.github-profile:hover {
  border-color: var(--cyan);
  background: rgba(17, 210, 208, 0.08);
  color: var(--paper);
}

main,
footer {
  position: relative;
  z-index: 1;
}

main {
  width: min(calc(100% - 44px), var(--content));
  margin: 0 auto;
  padding: 10px 0 12px;
}

.portal-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 0;
  padding: 0 0 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line-quiet);
}

.intro-copy {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 2px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.eyebrow::after {
  content: "";
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, rgba(17, 210, 208, 0.65), transparent);
}

.eyebrow b {
  color: #718d95;
  font-weight: 400;
}

.portal-intro h1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  line-height: 1.15;
}

.portal-intro h1 em {
  color: var(--aqua);
  font-family: var(--mono);
  font-size: clamp(13px, 1.1vw, 16px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.portal-intro h1 span {
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-desc {
  margin: 2px 0 0;
  color: #8da4ac;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* 晶圓與電路科技網格背景 */
.bg-tech-grid,
.bg-wafer,
.bg-silicon,
.bg-wafer-grid {
  background-color: #030712;
  background-image:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(6, 182, 212, 0.18), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

/* 晶片引腳排線 (Pin Contacts) */
.chip-pins,
.pin-strip {
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  opacity: 0.4;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 2px, transparent 2px, transparent 6px);
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 2;
}

.portal-card:hover .chip-pins,
.portal-card:hover .pin-strip {
  opacity: 1;
  background-image: repeating-linear-gradient(90deg, var(--accent-color, #06b6d4) 0, var(--accent-color, #06b6d4) 2px, transparent 2px, transparent 6px);
}

.fixed-ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.glow-orb--cyan {
  top: -50px;
  left: 20%;
  width: 550px;
  height: 350px;
  background: rgba(6, 182, 212, 0.08);
}

.glow-orb--emerald {
  bottom: -50px;
  right: 20%;
  width: 550px;
  height: 350px;
  background: rgba(16, 185, 129, 0.08);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(8, 24, 36, 0.85);
  border: 1px solid rgba(113, 236, 227, 0.18);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #98b1b8;
}

.status-pill b {
  color: var(--paper);
  font-size: 11px;
}

.status-dot--pulse {
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.9);
  }
}

.filter-capsule {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: rgba(6, 24, 38, 0.9);
  border: 1px solid rgba(113, 236, 227, 0.22);
  border-radius: 10px;
  backdrop-filter: blur(14px);
  gap: 3px;
  flex-shrink: 0;
}

.tab-btn {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: #8da4ac;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #f1f5f9;
}

.tab-btn.active {
  background: rgba(14, 165, 233, 0.18);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.25);
}

.portal-section {
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1080px) {
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}

.portal-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto auto auto minmax(34px, 1fr) auto;
  min-width: 0;
  min-height: 154px;
  overflow: hidden;
  padding: 13px 15px 11px;
  border-radius: 12px;
  border: 1px solid rgba(113, 236, 227, 0.16);
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.04), transparent 45%),
    rgba(8, 24, 36, 0.92);
  color: var(--paper);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, box-shadow 220ms ease;
}

/* 矽晶片封裝卡片（Silicon Package / Wafer Die） */
.chip-die,
.chip-card,
.pkg-card {
  position: relative;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.85) 0%, rgba(3, 7, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chip-die::before,
.chip-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--accent-color, #06b6d4);
  border-left: 2px solid var(--accent-color, #06b6d4);
  opacity: 0.65;
  transition: all 0.25s ease;
  z-index: 3;
}

.chip-die::after,
.chip-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 6px;
  height: 6px;
  border-bottom: 2px solid var(--accent-color, #06b6d4);
  border-right: 2px solid var(--accent-color, #06b6d4);
  opacity: 0.65;
  transition: all 0.25s ease;
  z-index: 3;
}

.chip-die:hover,
.chip-card:hover,
.pkg-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border, rgba(6, 182, 212, 0.5));
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.8), 0 0 20px -3px var(--accent-glow, rgba(6, 182, 212, 0.25));
}

.chip-die:hover::before,
.chip-die:hover::after,
.chip-card:hover::before,
.chip-card:hover::after {
  width: 10px;
  height: 10px;
  opacity: 1;
}

/* 專屬領域微色系區隔 */
.portal-card--research {
  --card-accent: #38bdf8;
  --accent-color: #06b6d4;
  --accent-border: rgba(6, 182, 212, 0.6);
  --accent-glow: rgba(6, 182, 212, 0.25);
}

.portal-card--game {
  --card-accent: #fbbf24;
  --accent-color: #f59e0b;
  --accent-border: rgba(245, 158, 11, 0.6);
  --accent-glow: rgba(245, 158, 11, 0.25);
}

.portal-card--learning {
  --card-accent: #818cf8;
  --accent-color: #6366f1;
  --accent-border: rgba(99, 102, 241, 0.6);
  --accent-glow: rgba(99, 102, 241, 0.25);
}

.portal-card--hardware {
  --card-accent: #c084fc;
  --accent-color: #a855f7;
  --accent-border: rgba(168, 85, 247, 0.6);
  --accent-glow: rgba(168, 85, 247, 0.25);
}

.portal-card--data {
  --card-accent: #34d399;
  --accent-color: #10b981;
  --accent-border: rgba(16, 185, 129, 0.6);
  --accent-glow: rgba(16, 185, 129, 0.25);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-family: var(--mono);
  font-size: 10px;
}

.card-chips {
  color: #64748b;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.hud-card:hover {
  transform: translateY(-2px);
}

.hud-card:hover .card-enter {
  color: var(--card-accent);
}

.hud-card:hover .card-enter b {
  transform: translate(2px, -2px);
}

.portal-card.hidden {
  display: none !important;
}

.portal-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.35;
  background:
    linear-gradient(90deg, transparent 0 15%, rgba(113, 236, 227, 0.06) 15% 15.25%, transparent 15.25% 72%, rgba(113, 236, 227, 0.04) 72% 72.25%, transparent 72.25%),
    linear-gradient(0deg, transparent 0 32%, rgba(113, 236, 227, 0.04) 32% 32.5%, transparent 32.5%);
}

.portal-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: -1px;
  left: -1px;
  width: 32%;
  height: 2px;
  background: linear-gradient(90deg, var(--card-accent), transparent);
}

.portal-card--live {
  --card-accent: var(--cyan);
  --card-glow: var(--live-glow);
}

.portal-card--source {
  --card-accent: var(--copper);
  --card-glow: var(--source-glow);
}

.portal-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--card-accent) 70%, transparent);
  background-color: rgba(9, 36, 52, 0.94);
}

.portal-card.is-pressed {
  transform: translateY(0);
  background-color: rgba(12, 43, 58, 0.98);
}

.portal-card:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-color: var(--card-accent);
}

.card-signal {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.hud-card:hover .card-signal {
  color: var(--card-accent);
}

.card-domain {
  display: block;
  color: rgba(14, 165, 233, 0.85);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.portal-card--source .card-domain {
  color: rgba(199, 138, 75, 0.85);
}

.portal-card h3 {
  margin: 0;
  color: #f1f5f9;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.hud-card:hover h3 {
  color: #fff;
}

.portal-card p {
  margin: 3px 0 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-enter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--card-accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.card-enter b {
  font-size: 11px;
  font-style: normal;
  display: inline-block;
  transition: transform 0.2s ease;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 40%, transparent);
  background: color-mix(in srgb, var(--card-accent) 8%, transparent);
  color: var(--card-accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.availability i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
}

.availability--live i {
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(17, 210, 208, 0.7);
}

.availability--source i {
  border: 1px solid var(--copper);
  transform: rotate(45deg);
}
  font-size: 15px;
  font-weight: 400;
  transition: transform 170ms ease;
}

.portal-card:hover .card-enter b {
  transform: translate(2px, -2px);
}

footer {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  width: min(calc(100% - 44px), var(--content));
  min-height: 58px;
  margin: 0 auto;
  border-top: 1px solid var(--line-quiet);
  color: #78949c;
}

.footer-brand {
  display: grid;
  line-height: 1.2;
}

.footer-brand strong {
  color: #d5e2e5;
  font-size: 13px;
}

.footer-brand span,
footer small {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

footer p {
  margin: 0;
  font-size: 12px;
}

footer p span {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 9px;
}

footer > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: #a9bdc2;
  font-family: var(--mono);
  font-size: 9px;
  text-decoration: none;
}

footer > a:hover {
  color: var(--aqua);
}

@media (max-width: 1060px) {
  .header-inner {
    grid-template-columns: minmax(235px, 1fr) auto;
  }

  .header-status {
    display: none;
  }

  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-card {
    min-height: 184px;
  }

  footer {
    grid-template-columns: auto minmax(220px, 1fr) auto;
  }

  footer small {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 62px;
  }

  .ambient-architecture {
    width: 130vw;
    height: 72vw;
    opacity: 0.08;
  }

  .header-inner,
  main,
  footer {
    width: min(calc(100% - 28px), var(--content));
  }

  .header-inner {
    gap: 12px;
  }

  .monogram {
    width: 36px;
    height: 36px;
  }

  .identity-copy strong {
    font-size: 15px;
  }

  .identity-copy span {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .github-profile {
    min-height: 44px;
    padding: 0 10px;
    font-size: 8px;
  }

  main {
    padding-top: 14px;
  }

  .portal-intro {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-height: 0;
    padding-bottom: 12px;
  }

  .portal-intro h1 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
  }

  .portal-intro h1 em {
    font-size: 13px;
  }

  .portal-intro h1 span {
    font-size: clamp(20px, 6vw, 24px);
  }

  .hero-desc {
    font-size: 14px;
  }

  .filter-capsule {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 11px;
  }

  .section-bar {
    min-height: 48px;
  }

  .section-bar h2 {
    font-size: 17px;
  }

  .section-bar p {
    font-size: 8px;
    letter-spacing: 0.07em;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .portal-card {
    min-height: 142px;
    padding: 11px 15px 10px;
  }

  .portal-card h3 {
    font-size: 20px;
  }

  .portal-card p {
    font-size: 14px;
    line-height: 1.45;
    -webkit-line-clamp: 1;
  }

  .card-enter {
    min-height: 26px;
    margin-top: 3px;
    padding-top: 5px;
  }

  footer {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    min-height: 76px;
    padding: 10px 0;
  }

  footer p {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  footer p span {
    display: none;
  }
}

@media (max-width: 420px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .identity-copy span {
    max-width: 144px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .github-profile {
    width: 42px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .github-profile::before {
    content: "GH";
    color: #c8d8dc;
    font-family: var(--mono);
    font-size: 10px;
  }

  .github-profile span {
    margin-left: 3px;
    color: var(--cyan);
    font-size: 11px;
  }

  .eyebrow {
    gap: 9px;
    letter-spacing: 0.12em;
  }

  .eyebrow::after {
    width: 28px;
  }

  .portal-intro h1 span {
    font-size: 29px;
    letter-spacing: -0.05em;
  }

  .legend-item {
    min-height: 54px;
    padding: 8px 9px;
  }

  .legend-item b {
    font-size: 11px;
  }

  .section-bar p {
    max-width: 145px;
    text-align: right;
    line-height: 1.35;
  }

  .portal-card {
    min-height: 140px;
  }

  .availability {
    max-width: calc(100% - 46px);
    white-space: normal;
  }

  .card-domain {
    padding-right: 30px;
    overflow-wrap: anywhere;
  }

  footer p {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .portal-card:hover,
  .portal-card.is-pressed,
  .portal-card:hover .card-enter b {
    transform: none;
  }
}
