/* UI：独立的黑白终端主题。所有规则均绑定根节点主题属性；原版 CSS 与内容保持原样。 */
html[data-portfolio-theme="terminal"] {
  --ink: #080808;
  --ink-soft: #0e0e0e;
  --paper: #f5f5f5;
  --muted: #a6a6a6;
  --quiet: #898989;
  --rule: rgb(255 255 255 / 10%);
  --rule-strong: rgb(255 255 255 / 20%);
  --accent: #f5f5f5;
  --pink: #f5f5f5;
  --font-display: "Bricolage Grotesque", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-meta: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --terminal-progress: 0;
  color-scheme: dark;
  font-family: "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #080808;
  color: #f5f5f5;
}
html[data-portfolio-theme="terminal"] body { background: #080808; color: #f5f5f5; }
html[data-portfolio-theme="terminal"] body::selection { background: #f5f5f5; color: #080808; }
html[data-portfolio-theme="terminal"] :is(a, button, summary):focus-visible { outline: 2px solid #f5f5f5; outline-offset: 3px; }
html[data-portfolio-theme="terminal"] [hidden] { display: none !important; }

/* UI：顶部切换按钮在原版也保持中性，避免破坏已有首页和 Saylo 的视觉层。 */
.portfolio-theme-toggle[hidden] { display: none !important; }
.portfolio-theme-toggle {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: .48rem .72rem;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: .2rem;
  background: rgb(8 8 8 / 82%);
  color: #f5f5f5;
  cursor: pointer;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: .61rem;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 1.25;
  white-space: nowrap;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.portfolio-theme-toggle:hover { border-color: #fff; background: #f5f5f5; color: #080808; }
.portfolio-theme-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
html[data-portfolio-theme="terminal"] .portfolio-theme-toggle { border-color: rgb(255 255 255 / 56%); background: #f5f5f5; color: #080808; }
html[data-portfolio-theme="terminal"] .portfolio-theme-toggle:hover { background: #d8d8d8; }

/* UI：新主题固定阅读进度条位于导航下沿；扫描线极淡，文字层保持清晰。 */
html[data-portfolio-theme="terminal"] body::before {
  position: fixed;
  z-index: 12;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  background: #f5f5f5;
  content: "";
  pointer-events: none;
  transform: scaleX(var(--terminal-progress));
  transform-origin: left;
  animation: none !important;
}
html[data-portfolio-theme="terminal"] .signal-field {
  opacity: .26;
  background-image: repeating-linear-gradient(0deg, transparent 0 4px, rgb(255 255 255 / 3%) 5px 6px), radial-gradient(rgb(255 255 255 / 7%) .5px, transparent .6px);
  background-size: auto, 7px 7px;
  mask-image: none;
}
html[data-portfolio-theme="terminal"] .signal-field::before,
html[data-portfolio-theme="terminal"] .signal-field::after { background-image: none; animation: none; }
html[data-portfolio-theme="terminal"] .hud-rail { border-color: rgb(255 255 255 / 25%); color: #898989; }
html[data-portfolio-theme="terminal"] .site-header {
  grid-template-columns: auto 1fr auto;
  gap: clamp(.7rem, 1.6vw, 1.6rem);
  min-height: 4.25rem;
  border-color: rgb(255 255 255 / 10%);
  background: rgb(8 8 8 / 88%);
  backdrop-filter: blur(14px);
}
html[data-portfolio-theme="terminal"] .wordmark { color: #f5f5f5; font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; }
html[data-portfolio-theme="terminal"] .site-header nav { color: #a6a6a6; font-family: var(--font-meta); }
html[data-portfolio-theme="terminal"] .site-header nav a:hover,
html[data-portfolio-theme="terminal"] .site-header nav a[aria-current="page"] { color: #fff; }
html[data-portfolio-theme="terminal"] .site-header nav a::after,
html[data-portfolio-theme="terminal"] .site-header nav a[aria-current="page"]::after { height: 1px; background: #fff; transition: transform .25s ease; }
html[data-portfolio-theme="terminal"] .site-header nav .music-toggle { border-color: rgb(255 255 255 / 20%); background: transparent; color: #f5f5f5; }
html[data-portfolio-theme="terminal"] .site-header nav .music-toggle[aria-pressed="true"] { background: #f5f5f5; color: #080808; }

/* UI：首页首屏：把原有真实文案放入终端档案结构，不添加身份、数值或项目事实。 */
html[data-portfolio-theme="terminal"] .hero {
  width: 100%;
  min-height: min(54rem, calc(100svh - 4.25rem));
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: visible;
}
html[data-portfolio-theme="terminal"] .hero-story::before,
html[data-portfolio-theme="terminal"] .hero-story::after { display: none; }
html[data-portfolio-theme="terminal"] .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .95fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); margin: clamp(2.5rem, 5vw, 5rem) 0 2.5rem; }
html[data-portfolio-theme="terminal"] .eyebrow,
html[data-portfolio-theme="terminal"] .project-index { color: #a6a6a6; font-family: var(--font-meta); font-size: .68rem; font-weight: 500; letter-spacing: .14em; }
html[data-portfolio-theme="terminal"] .terminal-prompt {
  margin-bottom: 1.2rem;
  padding: 0 0 .45rem;
  border-bottom: 1px solid rgb(255 255 255 / 20%);
  background: transparent;
  color: #a6a6a6;
  font-family: var(--font-meta);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .07em;
  transform: none;
}
html[data-portfolio-theme="terminal"] .terminal-prompt::before { content: "> "; color: #f5f5f5; }
html[data-portfolio-theme="terminal"] .terminal-prompt::first-letter { color: #f5f5f5; }
html[data-portfolio-theme="terminal"] .terminal-prompt::after { display: inline-block; width: .42rem; height: .82em; margin-left: .4rem; background: #f5f5f5; content: ""; vertical-align: -.1em; animation: terminal-caret 1.05s steps(1) infinite; }
html[data-portfolio-theme="terminal"] .hero h1 { max-width: 11ch; color: #f5f5f5; font-family: var(--font-display); font-size: clamp(4rem, 8vw, 8rem); font-weight: 800; letter-spacing: -.07em; line-height: .98; text-shadow: none; }
html[data-portfolio-theme="terminal"] .hero-copy { max-width: 32rem; color: #a6a6a6; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.75; }
html[data-portfolio-theme="terminal"] .hero-actions a { border: 1px solid #f5f5f5; border-radius: .5rem; background: #f5f5f5; color: #080808; font-family: "Space Grotesk", "PingFang SC", sans-serif; font-weight: 650; transition: transform .25s ease, background .25s ease; }
html[data-portfolio-theme="terminal"] .hero-actions a + a { border-color: rgb(255 255 255 / 20%); background: transparent; color: #f5f5f5; }
html[data-portfolio-theme="terminal"] .hero-actions a:hover { transform: translateY(-3px); }
html[data-portfolio-theme="terminal"] .hero-actions a + a:hover { background: #141414; }
html[data-portfolio-theme="terminal"] .hero-art { min-height: clamp(25rem, 38vw, 34rem); transform: none; }
html[data-portfolio-theme="terminal"] .hero-art__frame { padding: .35rem .35rem 1.2rem; border: 1px solid rgb(255 255 255 / 15%); border-radius: .6rem; background: #141414; box-shadow: none; }
html[data-portfolio-theme="terminal"] .hero-art__frame--story { top: 2%; left: 0; transform: rotate(-3deg); }
html[data-portfolio-theme="terminal"] .hero-art__frame--castloop { right: 0; transform: rotate(3deg); }
html[data-portfolio-theme="terminal"] .hero-art__frame--creative { left: 5%; transform: rotate(-2deg); }
html[data-portfolio-theme="terminal"] .hero-art__tape { display: none; }
html[data-portfolio-theme="terminal"] .hero-art__character { filter: drop-shadow(0 1.2rem 2rem rgb(0 0 0 / 55%)); }
html[data-portfolio-theme="terminal"] .hero-art__hint { border-color: rgb(255 255 255 / 20%); border-radius: 99px; background: #141414; color: #a6a6a6; transform: none; }
html[data-portfolio-theme="terminal"] .hero-art__hint::before { background: #f5f5f5; }
html[data-portfolio-theme="terminal"] .hero-art__stamp { border: 1px solid rgb(255 255 255 / 25%); border-radius: 99px; background: #141414; color: #f5f5f5; transform: none; }
html[data-portfolio-theme="terminal"] .capability-triad { border-color: rgb(255 255 255 / 10%); }
html[data-portfolio-theme="terminal"] .capability-triad li { color: #a6a6a6; font-family: var(--font-meta); font-weight: 400; }
html[data-portfolio-theme="terminal"] .capability-triad li + li { border-color: rgb(255 255 255 / 10%); }
html[data-portfolio-theme="terminal"] .scroll-cue { color: #a6a6a6; font-family: var(--font-meta); }
html[data-portfolio-theme="terminal"] .scroll-cue span { color: #f5f5f5; }

/* UI：精选项目采用灰阶媒体卡；名称、证据标签与入口在图片外始终可见。 */
html[data-portfolio-theme="terminal"] .content-section { padding-block: clamp(5rem, 9vw, 8rem); border-top: 1px solid rgb(255 255 255 / 10%); }
html[data-portfolio-theme="terminal"] .section-heading h2,
html[data-portfolio-theme="terminal"] .about-grid h2 { color: #f5f5f5; font-family: var(--font-display); font-weight: 800; letter-spacing: -.055em; }
html[data-portfolio-theme="terminal"] .section-heading > p:last-child { color: #a6a6a6; }
html[data-portfolio-theme="terminal"] .project-grid { gap: 1rem; }
html[data-portfolio-theme="terminal"] .project-card,
html[data-portfolio-theme="terminal"] .project-card:nth-child(2),
html[data-portfolio-theme="terminal"] .project-card:nth-child(3) {
  min-height: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: .9rem;
  background: #141414;
  color: #f5f5f5;
  box-shadow: none;
  transform: none;
  transition: border-color .35s ease, background .35s ease, transform .35s ease;
}
html[data-portfolio-theme="terminal"] .project-card::before { display: none; }
html[data-portfolio-theme="terminal"] .project-card:is(:hover, :focus-within) { border-color: rgb(255 255 255 / 35%); background: #1c1c1c; transform: translateY(-4px); box-shadow: none; }
html[data-portfolio-theme="terminal"] .project-card + .project-card { border-left: 1px solid rgb(255 255 255 / 10%); }
html[data-portfolio-theme="terminal"] .project-card .tags li { border-color: rgb(255 255 255 / 15%); border-radius: 99px; color: #a6a6a6; font-weight: 400; }
html[data-portfolio-theme="terminal"] .project-card__cover { border: 1px solid rgb(255 255 255 / 10%); border-radius: .45rem; filter: grayscale(.5) brightness(.78); transition: filter .5s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
html[data-portfolio-theme="terminal"] .project-card:is(:hover, :focus-within) .project-card__cover { filter: grayscale(0) brightness(1); transform: scale(1.04); }
html[data-portfolio-theme="terminal"] .project-card h3 { color: #f5f5f5; font-family: var(--font-display); font-weight: 800; }
html[data-portfolio-theme="terminal"] .project-card > p:not(.project-index) { color: #a6a6a6; }
html[data-portfolio-theme="terminal"] .project-evidence,
html[data-portfolio-theme="terminal"] .project-evidence--real { border: 1px solid rgb(255 255 255 / 20%); border-radius: .25rem; background: #1c1c1c; color: #e8e8e8; font-weight: 500; }
html[data-portfolio-theme="terminal"] .project-card .text-link { color: #f5f5f5; }
html[data-portfolio-theme="terminal"] .project-card .text-link span { color: #f5f5f5; }

/* UI：AI 实验记录采用细线时间轴；三个原有状态与正文不改变。 */
html[data-portfolio-theme="terminal"] .lab-list { border-left: 1px solid rgb(255 255 255 / 18%); }
html[data-portfolio-theme="terminal"] .lab-entry { position: relative; padding-left: clamp(1.25rem, 3vw, 2.5rem); border-color: rgb(255 255 255 / 10%); }
html[data-portfolio-theme="terminal"] .lab-entry::before { position: absolute; top: 1.5rem; left: -.26rem; width: .5rem; height: .5rem; border: 1px solid #f5f5f5; border-radius: 50%; background: #080808; content: ""; }
html[data-portfolio-theme="terminal"] .lab-entry > span:first-child { color: #a6a6a6; }
html[data-portfolio-theme="terminal"] .lab-entry p { color: #a6a6a6; }
html[data-portfolio-theme="terminal"] .status { border-color: rgb(255 255 255 / 20%); color: #f5f5f5; }
html[data-portfolio-theme="terminal"] .craft-grid article { border-color: rgb(255 255 255 / 10%); border-radius: .6rem; background: #141414; }
html[data-portfolio-theme="terminal"] .craft-grid article > span { color: #a6a6a6; }
html[data-portfolio-theme="terminal"] .craft-grid article p,
html[data-portfolio-theme="terminal"] .about-grid p { color: #a6a6a6; }
html[data-portfolio-theme="terminal"] .about-section { text-align: center; }
html[data-portfolio-theme="terminal"] .about-grid { grid-template-columns: 1fr; justify-items: center; gap: 2rem; }
html[data-portfolio-theme="terminal"] .about-grid h2 { max-width: 19ch; }
html[data-portfolio-theme="terminal"] .about-grid > div { max-width: 38rem; }
html[data-portfolio-theme="terminal"] .site-footer { border-color: rgb(255 255 255 / 10%); background: #080808; color: #898989; }

/* UI：案例使用统一阅读外壳。变量只改网页面板；原始项目图像不加滤镜、不改裁切。 */
html[data-portfolio-theme="terminal"] .case-deck {
  --deck-accent: #f5f5f5;
  --deck-strong: #f5f5f5;
  --deck-glow: transparent;
  --deck-panel: #141414;
  background: #080808;
  color: #f5f5f5;
}
html[data-portfolio-theme="terminal"] .case-toc,
html[data-portfolio-theme="terminal"] .case-deck--saylo .case-toc { border-color: rgb(255 255 255 / 10%); background: rgb(8 8 8 / 92%); }
html[data-portfolio-theme="terminal"] .case-toc a { color: #a6a6a6; transition: color .25s ease, background .25s ease; }
html[data-portfolio-theme="terminal"] .case-toc a:hover,
html[data-portfolio-theme="terminal"] .case-toc a:focus-visible { background: #f5f5f5; color: #080808; }
html[data-portfolio-theme="terminal"] .case-slide,
html[data-portfolio-theme="terminal"] .case-deck .case-slide,
html[data-portfolio-theme="terminal"] .case-deck .case-slide:nth-of-type(3n),
html[data-portfolio-theme="terminal"] .case-deck .case-slide:nth-of-type(4n) { background: #080808; color: #f5f5f5; border-color: rgb(255 255 255 / 10%); }
html[data-portfolio-theme="terminal"] .case-deck :is(.case-slide__top, .case-slide__bottom) { border-color: rgb(255 255 255 / 10%); color: #a6a6a6; font-family: var(--font-meta); }
html[data-portfolio-theme="terminal"] .case-deck :is(.deck-kicker, .case-cover__eyebrow) { color: #a6a6a6; font-family: var(--font-meta); }
html[data-portfolio-theme="terminal"] .case-deck :is(h1, h2) { font-family: var(--font-display); letter-spacing: -.045em; }
html[data-portfolio-theme="terminal"] .case-deck :is(.deck-lead, .case-cover__lead) { color: #c5c5c5; }
html[data-portfolio-theme="terminal"] .case-deck :is(.case-slide__top, .case-slide__bottom, .deck-kicker, figcaption) { letter-spacing: .04em; }
html[data-portfolio-theme="terminal"] .case-deck figcaption { color: #a6a6a6; }
html[data-portfolio-theme="terminal"] .case-deck figcaption span { color: #f5f5f5; }
html[data-portfolio-theme="terminal"] .case-deck .case-slide--editorial::before { color: #f5f5f5; opacity: .035; }
html[data-portfolio-theme="terminal"] .case-pagination { border-color: rgb(255 255 255 / 12%); }
html[data-portfolio-theme="terminal"] .case-pagination a { color: #a6a6a6; }
html[data-portfolio-theme="terminal"] .case-pagination a:hover { background: #f5f5f5; color: #080808; }
html[data-portfolio-theme="terminal"] .case-intro__details { color: #19213a; }
html[data-portfolio-theme="terminal"] .saylo-detail-intro { background: #0e0e0e; }
html[data-portfolio-theme="terminal"] .saylo-detail { border-color: rgb(255 255 255 / 12%); }
html[data-portfolio-theme="terminal"] .saylo-detail__note { border-color: #f5f5f5; background: #141414; color: #c5c5c5; }

/* UI：Saylo 原展示层有独立冷色变量；只在终端模式改网页外壳，保留图内原色。 */
html.saylo-dark[data-portfolio-theme="terminal"] {
  --saylo-canvas: #080808;
  --saylo-ice: #f5f5f5;
  --saylo-frost: #e8e8e8;
  --saylo-mist: #a6a6a6;
  --saylo-helper: #a6a6a6;
  --saylo-blueprint: #f5f5f5;
  --saylo-text: #f5f5f5;
  --saylo-muted: #a6a6a6;
  --saylo-glass: #141414;
  --saylo-surface: #141414;
  --saylo-line: rgb(255 255 255 / 10%);
  --saylo-line-strong: rgb(255 255 255 / 20%);
  --saylo-ice-gradient: linear-gradient(0deg, #f5f5f5, #d8d8d8);
}
html.saylo-dark[data-portfolio-theme="terminal"] .site-header,
html.saylo-dark[data-portfolio-theme="terminal"] .site-footer,
html.saylo-dark[data-portfolio-theme="terminal"] .case-deck--saylo { background: #080808; color: #f5f5f5; }
html.saylo-dark[data-portfolio-theme="terminal"] .signal-field { opacity: .26; background-image: repeating-linear-gradient(0deg, transparent 0 4px, rgb(255 255 255 / 3%) 5px 6px); background-size: auto; }
html.saylo-dark[data-portfolio-theme="terminal"] .signal-field::before { background-image: none; }
html.saylo-dark[data-portfolio-theme="terminal"] .case-deck--saylo .case-slide,
html.saylo-dark[data-portfolio-theme="terminal"] .case-deck--saylo .case-slide:nth-of-type(3n),
html.saylo-dark[data-portfolio-theme="terminal"] .case-deck--saylo .case-slide:nth-of-type(4n),
html.saylo-dark[data-portfolio-theme="terminal"] .case-deck--saylo .case-slide--context-flow { background: #080808; }
html.saylo-dark[data-portfolio-theme="terminal"] .case-deck--saylo .case-toc { background: rgb(8 8 8 / 92%); }
html.saylo-dark[data-portfolio-theme="terminal"] .case-deck--saylo .deck-kicker { color: #a6a6a6; }
html.saylo-dark[data-portfolio-theme="terminal"] .case-deck--saylo .case-slide__inner { max-width: 80rem; }

/* UI：参考半成品页的分层淡入、滚入和轻量 hover；内容默认可见，观察器只补触发时机。 */
@keyframes terminal-caret { 50% { opacity: 0; } }
@keyframes terminal-enter { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes terminal-card-enter { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
html[data-portfolio-theme="terminal"] .hero .eyebrow { animation: terminal-enter .8s .15s both cubic-bezier(.22, 1, .36, 1); }
html[data-portfolio-theme="terminal"] .hero h1 { animation: terminal-enter .9s .3s both cubic-bezier(.22, 1, .36, 1); }
html[data-portfolio-theme="terminal"] .hero-copy { animation: terminal-enter .9s .45s both cubic-bezier(.22, 1, .36, 1); }
html[data-portfolio-theme="terminal"] .hero-actions { animation: terminal-enter .9s .6s both cubic-bezier(.22, 1, .36, 1); }
html[data-portfolio-theme="terminal"] .content-section[data-terminal-visible="true"] > .section-heading { animation: terminal-enter .7s both cubic-bezier(.22, 1, .36, 1); }
html[data-portfolio-theme="terminal"] .project-card[data-terminal-visible="true"] { animation: terminal-card-enter .8s both cubic-bezier(.22, 1, .36, 1); }
html[data-portfolio-theme="terminal"] .project-card[data-terminal-visible="true"]:nth-child(2) { animation-delay: .08s; }
html[data-portfolio-theme="terminal"] .project-card[data-terminal-visible="true"]:nth-child(3) { animation-delay: .16s; }
html[data-portfolio-theme="terminal"] .case-slide[data-terminal-visible="true"] .case-slide__top { animation: terminal-enter .7s both cubic-bezier(.22, 1, .36, 1); }

/* UI：窄屏把切换按钮和菜单放在同一顶栏，不挤掉关于页之外的导航入口。 */
@media (max-width: 980px) {
  html[data-portfolio-theme="terminal"] .site-header nav { font-size: .6rem; gap: .75rem; }
  html[data-portfolio-theme="terminal"] .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(15rem, .8fr); }
}
@media (max-width: 720px) {
  .site-header:has(.portfolio-theme-toggle) { grid-template-columns: minmax(0, 1fr) auto auto; gap: .55rem; }
  .site-header:has(.portfolio-theme-toggle) .portfolio-theme-toggle { grid-column: 2; grid-row: 1; min-height: 2rem; padding: .4rem .55rem; font-size: .56rem; }
  .site-header:has(.portfolio-theme-toggle) .menu-toggle { grid-column: 3; grid-row: 1; }
  .site-header:has(.portfolio-theme-toggle) nav { grid-column: 1 / -1; grid-row: 2; }
  html[data-portfolio-theme="terminal"] .site-header { grid-template-columns: minmax(0, 1fr) auto auto; }
  html[data-portfolio-theme="terminal"] .hero { padding-top: 3rem; }
  html[data-portfolio-theme="terminal"] .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; margin: 2rem 0; }
  html[data-portfolio-theme="terminal"] .hero h1 { font-size: clamp(3.35rem, 13vw, 5rem); }
  html[data-portfolio-theme="terminal"] .hero-art { min-height: clamp(21rem, 92vw, 28rem); margin: 0; }
  html[data-portfolio-theme="terminal"] .project-grid { grid-template-columns: 1fr; }
  html[data-portfolio-theme="terminal"] .project-card + .project-card { border-top: 1px solid rgb(255 255 255 / 10%); }
  html[data-portfolio-theme="terminal"] .about-grid { text-align: left; justify-items: start; }
  html[data-portfolio-theme="terminal"] .content-section { padding-block: 5rem; }
}
@media (max-width: 390px) {
  .site-header:has(.portfolio-theme-toggle) { padding-inline: .8rem; }
  .site-header:has(.portfolio-theme-toggle) .wordmark { font-size: .82rem; }
  .site-header:has(.portfolio-theme-toggle) .portfolio-theme-toggle { max-width: 6.6rem; white-space: normal; text-align: center; }
  html[data-portfolio-theme="terminal"] .hero h1 { font-size: clamp(2.9rem, 13vw, 3.35rem); }
  html[data-portfolio-theme="terminal"] .hero-actions { flex-direction: column; align-items: stretch; }
  html[data-portfolio-theme="terminal"] .hero-actions a { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-portfolio-theme="terminal"] *,
  html[data-portfolio-theme="terminal"] *::before,
  html[data-portfolio-theme="terminal"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html[data-portfolio-theme="terminal"] .terminal-prompt::after { animation: none; }
  html[data-portfolio-theme="terminal"] .project-card,
  html[data-portfolio-theme="terminal"] .project-card__cover { transform: none; }
}
