:root {
  --bg: #0a0a1a;
  --card: #12142d;
  --blue: #4361ee;
  --amber: #f5b84f;
  --text: #ffffff;
  --muted: #cbd5e1;
  --border: rgba(255, 255, 255, 0.1);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  background: radial-gradient(circle at top, #11163f 0%, var(--bg) 45%, #060611 100%);
  color: var(--text);
  overflow-x: hidden;
}

/* Custom cursor disabled */

@media (max-width: 960px) {
  a,
  button,
  input,
  select,
  textarea {
    cursor: auto;
  }
}

main {
  position: relative;
  z-index: 2;
}

.container-main {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-nav.scrolled {
  background: rgba(10, 10, 26, 0.8);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}

.nav-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.nav-logo {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  /* the static flat nav never paints — nav.js rebuilds it into the grouped
     dropdowns (.nv-root restores visibility; a per-page <noscript> rule
     restores it for no-JS visitors) */
  visibility: hidden;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-color: var(--amber);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 26, 0.96);
}

.mobile-menu.open {
  display: flex;
}

.section {
  padding: 5.25rem 0;
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-mobile {
  width: 100%;
}

.win98-wrap {
  display: none;
}

.mobile-home-sections {
  display: block;
}

@media (min-width: 768px) {
  .hero-win98 {
    min-height: 420vh;
    align-items: stretch;
    overflow: visible;
  }

  .hero-win98 .hero-mobile {
    display: none;
  }

  .win98-wrap {
    display: block;
    width: 100%;
  }

  .win98-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: visible;
  }

  .win98-landing {
    padding-top: 6.8rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    will-change: transform, opacity;
    transform-origin: center top;
  }

  .win98-machine {
    margin: 1.75rem auto 0;
    width: min(76vw, 930px);
    position: relative;
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.35));
    will-change: transform, opacity, filter;
  }

  .win98-machine-image {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
  }

  .win98-screen {
    --scroll-hint-opacity: 1;
    --noise-opacity: 1;
    position: absolute;
    top: 9.61%;
    left: 29.25%;
    width: 41.68%;
    height: 42.79%;
    border-radius: 1% / 1.2%;
    border: none;
    background: radial-gradient(circle at 24% 20%, #24476f, #0d1d31 45%, #050a11);
    box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.6), inset 0 0 2px rgba(255, 255, 255, 0.45);
    display: grid;
    place-items: center;
    overflow: hidden;
    pointer-events: auto;
  }

  .win98-noise-layer {
    position: absolute;
    inset: 0;
    opacity: var(--noise-opacity);
    background-image: radial-gradient(rgba(255, 255, 255, 0.42) 0.6px, transparent 0.6px),
      radial-gradient(rgba(255, 255, 255, 0.25) 0.5px, transparent 0.5px),
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 3px);
    background-size: 4px 4px, 3px 3px, 100% 3px;
    background-position: 0 0, 2px 1px, 0 0;
    mix-blend-mode: screen;
    animation: win98noise 0.18s steps(3) infinite;
    pointer-events: none;
  }

  .win98-boot {
    position: relative;
    z-index: 2;
    width: 68%;
    color: #e2ebf7;
    font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
    font-size: 0.86rem;
    text-shadow: 0 0 6px rgba(35, 177, 255, 0.45);
  }

  .win98-boot p {
    margin: 0 0 0.6rem;
  }

  .win98-boot-bar {
    height: 14px;
    border: 2px solid #7f98bd;
    background: #041426;
    padding: 2px;
  }

  .win98-boot-bar span {
    display: block;
    height: 100%;
    width: 34%;
    background: linear-gradient(90deg, #3a83ff, #9ec6ff);
    animation: win98boot 1.6s linear infinite;
  }

  .win98-scroll-hint {
    opacity: var(--scroll-hint-opacity);
    margin-top: 0.7rem;
    display: grid;
    place-items: center;
    transition: opacity 0.2s linear;
  }

  .win98-scroll-hint span {
    width: 13px;
    height: 13px;
    border-right: 2px solid rgba(240, 248, 255, 0.72);
    border-bottom: 2px solid rgba(240, 248, 255, 0.72);
    transform: rotate(45deg);
    animation: win98scrollhint 1.35s ease-in-out infinite;
  }

  .win98-screen-expansion {
    --scanline-opacity: 0;
    --crt-flicker-opacity: 0;
    --expansion-scale: 1;
    --expansion-origin-x: 50%;
    --expansion-origin-y: 50%;
    position: fixed;
    inset: 0;
    z-index: 11;
    pointer-events: none;
    background: #008080;
    opacity: 0;
    transform: scale(var(--expansion-scale)) translateZ(0);
    transform-origin: var(--expansion-origin-x) var(--expansion-origin-y);
    will-change: clip-path, opacity, transform, filter;
  }

  .win98-screen-expansion::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 5px);
    opacity: var(--scanline-opacity);
    mix-blend-mode: screen;
  }

  .win98-screen-expansion::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 12%, rgba(0, 0, 0, 0.25));
    opacity: var(--crt-flicker-opacity);
    animation: win98flicker 0.08s steps(2) infinite;
    pointer-events: none;
  }

  .win98-desktop {
    position: absolute;
    inset: 0;
    z-index: 12;
    opacity: 0;
    transform: scale(1.02);
    transform-origin: center;
    pointer-events: none;
    background: #008080;
    font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
    transition: opacity 0.25s ease;
    will-change: opacity, transform;
  }

  .win98-desktop-logo {
    position: absolute;
    inset: 0 0 2.35rem 7.55rem;
    display: grid;
    place-items: center;
    z-index: 0;
    pointer-events: none;
  }

  .win98-desktop-logo img {
    width: min(22vw, 280px);
    max-width: 280px;
    min-width: 200px;
    opacity: 0.2;
    filter: saturate(0.9);
  }

  .win98-desktop.active {
    pointer-events: auto;
  }

  .win98-icons {
    position: absolute;
    top: 1.2rem;
    left: 0.95rem;
    display: grid;
    gap: 0.75rem;
    width: 116px;
    z-index: 2;
  }

  .win98-icon {
    background: transparent;
    border: 1px solid transparent;
    color: #f8fbff;
    text-decoration: none;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.15;
    padding: 0.38rem 0.2rem;
    display: grid;
    justify-items: center;
    gap: 0.3rem;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  }

  .win98-icon:hover,
  .win98-icon:focus-visible {
    border: 1px dotted #fff;
    outline: none;
    background: rgba(0, 20, 125, 0.2);
  }

  .win98-icon[data-folder="clients"] span:last-child {
    color: rgba(235, 244, 255, 0.82);
  }

  .win98-icon-disabled {
    opacity: 0.72;
    cursor: not-allowed;
  }

  .win98-icon-disabled:hover,
  .win98-icon-disabled:focus-visible {
    background: rgba(62, 66, 74, 0.2);
    border-color: rgba(255, 255, 255, 0.56);
  }

  .win98-folder-glyph {
    width: 34px;
    height: 24px;
    background: linear-gradient(180deg, #ffde7f, #f6be2f);
    border: 2px solid #9a7324;
    border-radius: 3px;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 247, 197, 0.9);
  }

  .win98-folder-glyph::before {
    content: "";
    position: absolute;
    left: 2px;
    top: -8px;
    width: 18px;
    height: 9px;
    border: 2px solid #9a7324;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #ffe89d, #f8c54a);
  }

  .win98-windows {
    position: absolute;
    inset: 1rem 1rem 2.95rem 7.55rem;
    z-index: 1;
  }

  .win98-window {
    position: absolute;
    width: min(80vw, 980px);
    height: min(65vh, 640px);
    min-height: 390px;
    border: 2px solid #8f8f8f;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    background: #c0c0c0;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.38);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(-20px) translateY(18px) scale(0.97);
    transition: opacity 0.26s ease, transform 0.26s ease;
    pointer-events: none;
  }

  .win98-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .win98-window-head {
    background: linear-gradient(90deg, #000080, #0a56c2);
    color: #fff;
    font-weight: 700;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.3rem 0.25rem 0.4rem;
  }

  .win98-window-controls {
    display: inline-flex;
    gap: 0.16rem;
  }

  .win98-window-controls span {
    width: 16px;
    height: 14px;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    color: #000;
    background: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
  }

  .win98-window-body {
    flex: 1;
    background: #fff;
    color: #111827;
    font-size: 0.92rem;
    line-height: 1.45;
    padding: 0.85rem;
    border: 1px solid #7d7d7d;
    margin: 0.34rem 0.34rem 0.2rem;
    overflow: auto;
  }

  .win98-window-status {
    margin: 0 0.34rem 0.34rem;
    border: 1px solid #8d8d8d;
    border-top-color: #6f6f6f;
    border-left-color: #6f6f6f;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    background: #c9c9c9;
    font-size: 0.74rem;
    color: #2b2b2b;
    padding: 0.15rem 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .win98-window-link {
    display: inline-block;
    margin-top: 0.65rem;
    padding: 0.22rem 0.45rem;
    color: #000;
    text-decoration: none;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #3c3c3c;
    border-bottom: 1px solid #3c3c3c;
    background: #c0c0c0;
    font-weight: 700;
  }

  .win98-window-link:active {
    border-top-color: #3c3c3c;
    border-left-color: #3c3c3c;
    border-right-color: #fff;
    border-bottom-color: #fff;
  }

  .win98-window-kicker {
    margin: 0 0 0.55rem;
    color: #304054;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 700;
  }

  .win98-window-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0 0 0.75rem;
  }

  .win98-window-stat {
    border: 1px solid #8d8d8d;
    background: #efefef;
    padding: 0.45rem;
    text-align: center;
  }

  .win98-window-stat strong {
    display: block;
    font-size: 1rem;
  }

  .win98-window-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.36rem;
    margin: 0.65rem 0 0;
  }

  .win98-window-pills span {
    border: 1px solid #7e7e7e;
    background: #ececec;
    padding: 0.18rem 0.45rem;
    font-size: 0.76rem;
  }

  .win98-window-list {
    margin: 0.45rem 0 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.28rem;
  }

  .win98-window-header {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: center;
    margin-bottom: 0.65rem;
  }

  .win98-window-logo {
    height: 26px;
    width: auto;
  }

  .win98-window-profile {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.72rem;
    align-items: start;
    margin-top: 0.65rem;
  }

  .win98-window-profile img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 1px solid #7f7f7f;
  }

  .win98-client-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.52rem;
    margin-top: 0.62rem;
  }

  .win98-client-card {
    border: 1px solid #8d8d8d;
    background: #f1f1f1;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0.45rem;
    align-items: center;
    padding: 0.34rem;
  }

  .win98-client-card img {
    width: 52px;
    height: 38px;
    object-fit: cover;
    border: 1px solid #9a9a9a;
  }

  .win98-client-card strong {
    font-size: 0.83rem;
    color: #2a2a2a;
  }

  .win98-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .win98-service-card {
    border: 1px solid #8a8a8a;
    background: #efefef;
    padding: 0.48rem;
  }

  .win98-service-card h4 {
    margin: 0.14rem 0 0.28rem;
    font-size: 0.85rem;
  }

  .win98-service-card p {
    margin: 0;
    font-size: 0.77rem;
    line-height: 1.4;
  }

  .win98-story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.52rem;
    margin-top: 0.55rem;
  }

  .win98-story-card {
    border: 1px solid #8d8d8d;
    background: #f4f4f4;
    padding: 0.3rem;
  }

  .win98-story-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid #9a9a9a;
  }

  .win98-story-card h4 {
    margin: 0.3rem 0 0.12rem;
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .win98-story-card p {
    margin: 0;
    font-size: 0.73rem;
    line-height: 1.34;
    color: #364152;
  }

  .win98-contact-grid {
    margin: 0.7rem 0;
    display: grid;
    gap: 0.32rem;
    font-size: 0.84rem;
  }

  .win98-start-menu {
    position: absolute;
    left: 0.2rem;
    bottom: 2.42rem;
    width: min(390px, 58vw);
    min-height: 260px;
    background: #c0c0c0;
    border: 2px solid #8f8f8f;
    border-top-color: #fff;
    border-left-color: #fff;
    border-right-color: #3f3f3f;
    border-bottom-color: #3f3f3f;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
    display: none;
    align-items: stretch;
    z-index: 60;
    transform: translateY(10px);
    opacity: 0;
  }

  .win98-start-menu.open {
    display: flex;
    animation: win98menuup 0.18s ease forwards;
  }

  .win98-start-brand {
    width: 34px;
    background: linear-gradient(180deg, #052481, #0a59cf);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: grid;
    place-items: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.03em;
  }

  .win98-start-items {
    flex: 1;
    padding: 0.32rem;
    display: grid;
    align-content: start;
    gap: 0.05rem;
  }

  .win98-start-item {
    color: #111;
    text-decoration: none;
    padding: 0.42rem 0.5rem;
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.86rem;
  }

  .win98-start-item:hover,
  .win98-start-item:focus-visible {
    background: #000080;
    color: #fff;
    outline: none;
  }

  .win98-start-icon {
    font-size: 0.95rem;
  }

  .win98-start-sep {
    height: 1px;
    margin: 0.28rem 0.5rem;
    background: #8f8f8f;
    box-shadow: 0 1px 0 #fff;
  }

  .win98-taskbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.35rem;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0.3rem;
  }

  .win98-start {
    border: 2px solid #808080;
    border-top-color: #fff;
    border-left-color: #fff;
    background: #c0c0c0;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.17rem 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: #000;
    cursor: pointer;
  }

  .win98-start:active {
    border-top-color: #404040;
    border-left-color: #404040;
    border-right-color: #fff;
    border-bottom-color: #fff;
  }

  .win98-start-mark {
    color: #008000;
  }

  .win98-task-mid {
    flex: 1;
    min-width: 80px;
    display: flex;
    gap: 0.22rem;
    align-items: center;
    overflow: hidden;
  }

  .win98-task-button {
    border: 1px solid #808080;
    border-top-color: #fff;
    border-left-color: #fff;
    border-right-color: #4c4c4c;
    border-bottom-color: #4c4c4c;
    background: #c0c0c0;
    color: #202020;
    font-size: 0.75rem;
    padding: 0.14rem 0.45rem;
    min-width: 112px;
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .win98-task-button.active {
    border-top-color: #4c4c4c;
    border-left-color: #4c4c4c;
    border-right-color: #fff;
    border-bottom-color: #fff;
    background: #b5b5b5;
  }

  .win98-tray {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #222;
  }

  .win98-tray a,
  .win98-tray button {
    width: 18px;
    height: 18px;
    border: 1px solid transparent;
    display: grid;
    place-items: center;
    color: #4c4c4c;
    text-decoration: none;
    font-size: 0.68rem;
    background: transparent;
    padding: 0;
  }

  .win98-tray a:hover,
  .win98-tray button:hover {
    border-color: #808080;
    color: #1e1e1e;
  }

  .win98-tray-wechat {
    position: relative;
  }

  .win98-tray-wechat .tooltip {
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffe1;
    color: #111;
    border: 1px solid #000;
    border-radius: 0;
    padding: 0.2rem 0.3rem;
    font-size: 0.68rem;
  }

  .win98-tray-sep {
    width: 1px;
    height: 17px;
    background: #7c7c7c;
    margin: 0 0.1rem;
  }

  .win98-task-clock {
    border: 2px solid #808080;
    border-top-color: #404040;
    border-left-color: #404040;
    border-right-color: #fff;
    border-bottom-color: #fff;
    padding: 0.15rem 0.5rem;
    font-size: 0.78rem;
    color: #000;
    min-width: 92px;
    text-align: center;
  }

  .mobile-home-sections {
    display: none;
  }
}

@keyframes win98boot {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(300%);
  }
}

@keyframes win98noise {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-2px, 1px);
  }
}

@keyframes win98scrollhint {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.68;
  }
  50% {
    transform: translateY(6px) rotate(45deg);
    opacity: 1;
  }
}

@keyframes win98flicker {
  0% {
    opacity: 0.16;
  }
  100% {
    opacity: 0.31;
  }
}

@keyframes win98menuup {
  0% {
    transform: translateY(8px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.parallax {
  will-change: transform;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.hero-title {
  margin: 1rem 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.typed {
  min-height: 1.7em;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.typed::after {
  content: "|";
  animation: blink 1s infinite;
  margin-left: 0.2rem;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--blue), #2f46b8);
  color: #fff;
  box-shadow: 0 10px 35px rgba(67, 97, 238, 0.28);
}

.btn-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

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

.stats-bar {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
}

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

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

.service-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.card,
.story-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border-radius: 16px;
  padding: 1.2rem;
  transform-style: preserve-3d;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.card:hover,
.story-card:hover {
  border-color: rgba(245, 184, 79, 0.4);
}

.icon-box {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(67, 97, 238, 0.2);
  margin-bottom: 0.75rem;
}

.marquee-wrap {
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.02);
}

.marquee {
  display: inline-flex;
  gap: 1.5rem;
  padding: 0.9rem 0;
  animation: marquee 16s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.teaser {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(67, 97, 238, 0.35), rgba(245, 184, 79, 0.2));
  padding: 2rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.placeholder {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(140deg, rgba(67, 97, 238, 0.25), rgba(245, 184, 79, 0.22));
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  color: #dbe3ff;
  padding: 0.7rem;
}

.placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.ratio-4x5 {
  aspect-ratio: 4 / 5;
}

.ratio-21x9 {
  aspect-ratio: 21 / 9;
}

/* Image centering for hero images and thumbnails */
.placeholder img {
  object-fit: cover;
  object-position: center center;
  width: 100%;
  height: 100%;
}

/* Ensure story card thumbnail images are properly centered */
.story-card .placeholder img {
  object-fit: cover;
  object-position: center center;
}

.tag {
  display: inline-flex;
  border: 1px solid rgba(67, 97, 238, 0.5);
  background: rgba(67, 97, 238, 0.14);
  color: #d6ddff;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
}

.timeline {
  border-left: 2px solid var(--border);
  padding-left: 1.2rem;
  display: grid;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  padding: 0.3rem 0 0.3rem 0.3rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.timeline-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber);
  position: absolute;
  left: -1.62rem;
  top: 0.55rem;
}

.timeline-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.skills-rail {
  display: flex;
  gap: 0.55rem;
  overflow: auto;
  padding-bottom: 0.3rem;
}

.skills-rail span {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  white-space: nowrap;
  padding: 0.4rem 0.8rem;
  color: var(--muted);
}

.contact-form {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.02);
}

.form-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 0.7rem 0.8rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(67, 97, 238, 0.65);
  outline-offset: 1px;
}

.error {
  font-size: 0.8rem;
  color: #fca5a5;
  min-height: 1rem;
}

.success-state {
  display: none;
  border: 1px solid rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
  border-radius: 12px;
  padding: 0.9rem;
  margin-top: 0.9rem;
  animation: pop 0.4s ease;
}

.success-state.show {
  display: block;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid #34d399;
  border-radius: 999px;
  display: inline-block;
  position: relative;
  margin-right: 0.45rem;
}

.checkmark::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 6px;
  border-left: 2px solid #34d399;
  border-bottom: 2px solid #34d399;
  transform: rotate(-45deg);
  left: 4px;
  top: 5px;
}

.site-footer {
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 8, 20, 0.94);
}

.footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem;
}

.footer-col {
  min-width: 0;
}

.footer-logo {
  width: 130px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-tagline {
  margin: 0.75rem 0 0.45rem;
  color: #d8deee;
  font-size: 0.92rem;
}

.footer-copy {
  margin: 0;
  color: #9ca5bd;
  font-size: 0.82rem;
}

.footer-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d8deee;
}

.footer-nav-links {
  display: grid;
  gap: 0.48rem;
}

.footer-nav-links a {
  color: #b9c2d8;
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav-links a:hover,
.footer-nav-links a:focus-visible {
  color: #f5b84f;
  transform: translateX(3px);
  outline: none;
}

.footer-connect-icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.footer-connect-icons a,
.footer-connect-icons button {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.footer-connect-icons a:hover,
.footer-connect-icons a:focus-visible,
.footer-connect-icons button:hover,
.footer-connect-icons button:focus-visible {
  transform: scale(1.05);
  opacity: 0.9;
  border-color: rgba(245, 184, 79, 0.8);
  outline: none;
}

.footer-connect-icons img {
  width: 26px;
  height: 26px;
  display: block;
}

.footer-wechat {
  position: relative;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 1px solid var(--border);
  background: #101427;
  color: #fff;
  border-radius: 6px;
  padding: 0.3rem 0.45rem;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.footer-wechat:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer-email-text {
  margin-top: 0.55rem;
  display: inline-block;
  color: #f5b84f;
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-email-text:hover,
.footer-email-text:focus-visible {
  color: #ffd890;
}

.cursor-dot,
.cursor-ring {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.page-enter {
  /* fade only — NO transform here: a retained transform on <body> creates a
     containing block that breaks every position: fixed descendant
     (nav, cookie card, page stamp). The dot view-transition handles entry. */
  opacity: 0;
  animation: pageIn 0.45s ease forwards;
}

@keyframes pageIn {
  to {
    opacity: 1;
  }
}

.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.callout {
  border: 1px solid rgba(245, 184, 79, 0.45);
  background: rgba(245, 184, 79, 0.1);
  border-radius: 12px;
  padding: 1rem;
}

/* Cookie consent — floating corner card (industrial). cookie.js builds it. */
.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: auto;
  z-index: 200;
  width: min(380px, calc(100vw - 2rem));
  padding: 0.9rem;
  background: #1d1a14;
  border: 1px solid rgba(236, 231, 219, 0.16);
  border-radius: 2px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
  color: #ece7db;
  transform: translateY(14px);
  opacity: 0;
}

[dir="rtl"] .cookie-consent { right: auto; left: 1rem; }

.cookie-consent.is-visible {
  animation: cookieSlideUp 0.3s ease forwards;
}

.cookie-consent.is-hiding {
  animation: cookieSlideDown 0.25s ease forwards;
}

.cookie-consent__kicker {
  margin: 0 0 0.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ff4d00;
}

.cookie-consent__inner {
  display: block;
}

.cookie-consent__text {
  margin: 0 0 0.7rem;
  font-size: 0.83rem;
  line-height: 1.5;
  color: #a39c8c;
}

.cookie-consent__link {
  color: #ece7db;
  margin-left: 0.3rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.cookie-btn {
  border: 1px solid rgba(236, 231, 219, 0.24);
  border-radius: 2px;
  padding: 0.5rem 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  flex: 1;
}

.cookie-btn--ghost {
  background: transparent;
  color: #ece7db;
}

.cookie-btn--ghost:hover { border-color: #ece7db; }

.cookie-btn--primary {
  background: #ece7db;
  color: #14120e;
  border-color: #ece7db;
}

.cookie-btn--primary:hover { background: #ff4d00; border-color: #ff4d00; color: #fff; }

.cookie-panel {
  margin: 0.7rem 0 0;
  padding: 0.2rem 0 0;
  border: none;
  border-top: 1px solid rgba(236, 231, 219, 0.16);
  border-radius: 0;
  background: transparent;
}

.cookie-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(236, 231, 219, 0.08);
}

.cookie-panel__row:last-of-type {
  border-bottom: 0;
}

.cookie-panel__row strong {
  display: block;
  font-size: 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
}

.cookie-panel__row p {
  margin: 0.2rem 0 0;
  color: #a39c8c;
  font-size: 0.73rem;
  line-height: 1.45;
}

.cookie-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch span {
  position: absolute;
  inset: 0;
  background: rgba(236, 231, 219, 0.2);
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.cookie-switch span::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 4px;
  top: 4px;
  border-radius: 1px;
  background: #ece7db;
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + span {
  background: #ff4d00;
}

.cookie-switch input:checked + span::before {
  transform: translateX(20px);
}

.cookie-switch input:disabled + span {
  background: rgba(236, 231, 219, 0.35);
}

.cookie-save {
  margin-top: 0.65rem;
  width: 100%;
}

/* persistent reopen chip after a choice is made */
.cookie-reopen {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 190;
  background: #1d1a14;
  border: 1px solid rgba(236, 231, 219, 0.16);
  border-radius: 2px;
  color: #a39c8c;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}
.cookie-reopen:hover { color: #ece7db; border-color: #ece7db; }
[dir="rtl"] .cookie-reopen { right: auto; left: 1rem; }

@keyframes cookieSlideUp {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes cookieSlideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(14px);
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero:not(.hero-win98) {
    min-height: auto;
    padding-top: 6.2rem;
    padding-bottom: 3.5rem;
  }

  .stats-bar,
  .card-grid,
  .service-grid,
  .story-grid,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .win98-window-profile,
  .win98-client-grid,
  .win98-story-grid {
    grid-template-columns: 1fr;
  }

  .win98-service-grid {
    grid-template-columns: 1fr;
  }

  .cookie-consent__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-consent__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .hero-win98 {
    min-height: auto;
    padding-top: 5.7rem;
    padding-bottom: 0;
  }

  .hero-win98 .win98-wrap {
    display: none;
  }

  .ipaq-mobile {
    width: 100%;
    overflow: clip;
  }

  .ipaq-landing {
    position: relative;
    z-index: 5;
    padding-top: 0.4rem;
    text-align: center;
    display: grid;
    justify-items: center;
  }

  .ipaq-landing .hero-title {
    margin: 0.95rem 0 0;
    font-size: clamp(1.9rem, 9vw, 2.55rem);
    line-height: 1.06;
    max-width: 16ch;
  }

  .ipaq-scroll-scene {
    position: relative;
    height: 300vh;
    margin-top: 0.9rem;
  }

  .ipaq-sticky {
    position: sticky;
    top: 4.4rem;
    height: calc(100vh - 4.4rem);
    overflow: hidden;
  }

  .ipaq-device-wrap {
    width: min(65vw, 340px);
    margin: 0 auto;
    position: relative;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.38));
    transform-origin: center top;
    will-change: transform, opacity;
  }

  .ipaq-device-image {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
  }

  .ipaq-screen {
    --ipaq-noise-opacity: 1;
    position: absolute;
    top: 13.96%;
    left: 15.56%;
    width: 68.87%;
    height: 54.51%;
    border-radius: 2px;
    overflow: hidden;
    background: #f3f5f8;
    border: 1px solid #2c3a4f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
  }

  .ipaq-noise-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.28) 0.7px, transparent 0.7px),
      repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0 1px, transparent 1px 3px);
    background-size: 3px 3px, 100% 3px;
    opacity: var(--ipaq-noise-opacity);
    mix-blend-mode: soft-light;
    animation: ipaqStatic 0.16s steps(3) infinite;
  }

  .ipaq-today {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-rows: 6% 9% 1fr 5%;
    font-family: "Tahoma", "MS Sans Serif", sans-serif;
    color: #0f2040;
  }

  .ipaq-topbar,
  .ipaq-bottom-bar {
    display: flex;
    align-items: center;
    gap: 0.22rem;
    padding: 0 0.22rem;
    color: #f7f9ff;
    font-size: 0.43rem;
  }

  .ipaq-topbar {
    background: linear-gradient(180deg, #000080 0%, #0000aa 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .ipaq-start-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.14rem;
    font-weight: 700;
  }

  .ipaq-win-mark {
    width: 0.34rem;
    height: 0.34rem;
    display: inline-block;
    background:
      linear-gradient(90deg, #f12f2f 0 49%, transparent 49% 51%, #2e8cff 51% 100%),
      linear-gradient(180deg, #2ecc71 0 49%, transparent 49% 51%, #ffd23f 51% 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
  }

  .ipaq-status {
    margin-left: auto;
    display: inline-flex;
    gap: 0.12rem;
    align-items: center;
    opacity: 0.9;
  }

  .ipaq-top-time {
    min-width: 2.2rem;
    text-align: right;
  }

  .ipaq-today-band {
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.05rem 0.25rem;
    color: #e9fbff;
    background: linear-gradient(180deg, #3ea39d 0%, #1f7f89 100%);
    border-bottom: 1px solid rgba(3, 27, 43, 0.42);
  }

  .ipaq-today-body {
    background: linear-gradient(180deg, #fcfdff 0%, #f1f4f8 100%);
    padding: 0.16rem 0.2rem;
    display: grid;
    align-content: start;
    gap: 0.08rem;
    font-size: 0.45rem;
    line-height: 1.24;
  }

  .ipaq-owner,
  .ipaq-date-row {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.14rem;
    color: #1e3458;
    font-size: 0.42rem;
  }

  .ipaq-owner strong {
    font-weight: 700;
  }

  .ipaq-rule {
    height: 1px;
    background: #95a7c0;
    margin: 0.03rem 0 0.02rem;
  }

  .ipaq-list-row {
    min-height: 0.68rem;
    padding: 0.04rem 0.09rem;
    display: grid;
    grid-template-columns: 0.48rem 1fr;
    align-items: center;
    gap: 0.08rem;
    border: 1px solid transparent;
    border-bottom-color: #b1bfd2;
    text-decoration: none;
    color: #132e56;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.72);
  }

  .ipaq-screen-expansion {
    --ipaq-static-opacity: 0.2;
    position: fixed;
    inset: 0;
    opacity: 0;
    z-index: 40;
    pointer-events: none;
    background: linear-gradient(180deg, #0b8b8f 0%, #007f83 52%, #006f75 100%);
    will-change: clip-path, opacity, transform;
  }

  .ipaq-screen-expansion::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 4px);
    background-size: 4px 4px, 100% 4px;
    opacity: var(--ipaq-static-opacity);
    pointer-events: none;
    animation: ipaqStatic 0.22s steps(3) infinite;
  }

  .ipaq-screen-expansion::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.15));
    pointer-events: none;
  }

  .ipaq-desktop {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03) translateZ(0);
    pointer-events: none;
    font-family: "Tahoma", "MS Sans Serif", sans-serif;
  }

  .ipaq-desktop.active {
    pointer-events: auto;
  }

  .ipaq-desktop-watermark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
  }

  .ipaq-desktop-watermark img {
    width: min(52vw, 210px);
    opacity: 0.3;
    filter: saturate(0.8);
  }

  .ipaq-programs {
    position: absolute;
    top: 0.8rem;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 3.1rem;
    padding: 0.4rem 0.2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    justify-items: center;
    gap: 0.5rem 0.3rem;
  }

  .ipaq-program-icon {
    width: min(40vw, 132px);
    min-height: 44px;
    padding: 0.32rem 0.2rem;
    text-decoration: none;
    color: #f4fcff;
    display: grid;
    justify-items: center;
    gap: 0.14rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border: 1px solid transparent;
    border-radius: 4px;
  }

  .ipaq-program-icon span:first-child {
    font-size: 1.35rem;
    line-height: 1;
  }

  .ipaq-program-icon:active {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(2, 45, 61, 0.25);
  }

  .ipaq-taskbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.25rem 0.35rem;
    background: linear-gradient(180deg, #000080 0%, #0000aa 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
  }

  .ipaq-start-btn {
    min-height: 44px;
    min-width: 64px;
    border: 1px solid #6f86a8;
    background: #eef4ff;
    color: #102a4d;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 0.2rem 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
  }

  .ipaq-task-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    margin-left: auto;
    margin-right: 0.18rem;
  }

  .ipaq-task-icons a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(213, 228, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
  }

  .ipaq-task-icons img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(1.12);
  }

  .ipaq-clock {
    color: #f4fbff;
    font-size: 0.72rem;
    font-weight: 600;
    min-width: 3.15rem;
    text-align: right;
  }

  .ipaq-bottom-bar {
    background: linear-gradient(180deg, #dee3ea 0%, #c5ccd6 100%);
    color: #1c2a44;
    border-top: 1px solid #97a3b3;
    font-size: 0.4rem;
    font-weight: 700;
    justify-content: flex-start;
    gap: 0.3rem;
  }

  .ipaq-bottom-bar span:last-child {
    margin-left: auto;
  }
}

@keyframes ipaqStatic {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-1px, 1px);
  }
  100% {
    transform: translate(1px, -1px);
  }
}

.nav-logo {
  animation: logoReveal 0.7s ease both;
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.kinetic-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: wordRise 0.45s ease forwards;
}

@keyframes wordRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.page-out {
  opacity: 0;
  transition: opacity 0.18s ease;
}

/* ============================================================
   WIN98 DESKTOP OVERHAUL v4 — Full viewport, draggable windows
   ============================================================ */

/* Desktop/Mobile split */
.desktop-only { display: none; }
.mobile-only-placeholder { display: block; }

@media (min-width: 769px) {
  .desktop-only { display: flex; }
  .mobile-only-placeholder { display: none !important; }
  .mobile-home-sections { display: none !important; }
  .hero-mobile { display: none !important; }
}

/* Full-viewport win98 desktop section */
.win98-desktop-section {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #008080;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
  font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
}

/* Desktop area (above taskbar) */
[data-win98-desktop] {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

/* Desktop logo watermark */
.win98-desktop-section .win98-desktop-logo {
  position: absolute;
  bottom: 8px;
  right: 12px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.win98-desktop-section .win98-desktop-logo img {
  height: 40px;
  width: auto;
  filter: grayscale(1);
}

/* Desktop icons grid */
.win98-desktop-section .win98-icons {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
}

.win98-desktop-section .win98-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
  font-size: 0.72rem;
  text-shadow: 1px 1px 2px #000, 0 0 4px #000;
  width: 72px;
  padding: 4px;
  border-radius: 2px;
  text-align: center;
  user-select: none;
  text-decoration: none;
}
.win98-desktop-section .win98-icon:hover,
.win98-desktop-section .win98-icon:focus {
  background: rgba(0,0,128,0.55);
  outline: 1px dotted #fff;
}
.win98-desktop-section .win98-icon .win98-folder-glyph {
  width: 36px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 28'%3E%3Crect x='0' y='6' width='36' height='22' rx='1' fill='%23F5C518'/%3E%3Crect x='0' y='6' width='36' height='22' rx='1' fill='%23E6B800'/%3E%3Crect x='2' y='4' width='14' height='4' rx='1' fill='%23F5C518'/%3E%3C/svg%3E") center/contain no-repeat;
  display: block;
}

/* Windows container */
[data-win98-windows] {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}
[data-win98-windows] .win98-window {
  pointer-events: auto;
}

/* Win98 Window */
.win98-window {
  position: absolute;
  min-width: 320px;
  max-width: 90vw;
  max-height: 80vh;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #3c3c3c;
  border-bottom: 2px solid #3c3c3c;
  box-shadow: 2px 2px 0 #000;
  display: none;
  flex-direction: column;
  z-index: 40;
  overflow: hidden;
  resize: both;
}
.win98-window.open {
  display: flex;
}
.win98-window.minimized {
  display: none;
}
.win98-window.win98-focused .win98-titlebar {
  background: linear-gradient(to right, #000080, #1084d0);
}

/* Title bar */
.win98-titlebar {
  display: flex;
  align-items: center;
  padding: 2px 4px;
  background: #808080;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: move;
  user-select: none;
  gap: 4px;
  min-height: 20px;
  flex-shrink: 0;
}
.win98-titlebar-icon {
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Crect x='0' y='2' width='14' height='9' rx='0' fill='%23F5C518'/%3E%3Crect x='1' y='1' width='6' height='3' rx='0' fill='%23F5C518'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}
.win98-titlebar-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.win98-titlebar-btns {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.win98-btn-minimize,
.win98-btn-maximize,
.win98-btn-close {
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #3c3c3c;
  border-bottom: 1px solid #3c3c3c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  cursor: pointer;
  color: #000;
  padding: 0;
  font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
}
.win98-btn-minimize:active,
.win98-btn-maximize:active,
.win98-btn-close:active {
  border-top-color: #3c3c3c;
  border-left-color: #3c3c3c;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

/* Window menu bar */
.win98-menubar {
  display: flex;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  padding: 0 4px;
  font-size: 0.72rem;
  flex-shrink: 0;
}
.win98-menubar-item {
  padding: 2px 6px;
  cursor: pointer;
}
.win98-menubar-item:hover {
  background: #000080;
  color: #fff;
}

/* Window body */
.win98-window-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #fff;
  min-height: 0;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
}

/* Window status bar */
.win98-window-statusbar {
  display: flex;
  align-items: center;
  padding: 2px 8px;
  background: #c0c0c0;
  border-top: 1px solid #808080;
  font-size: 0.68rem;
  min-height: 18px;
  flex-shrink: 0;
}
.win98-window-statusbar span {
  border: 1px solid #808080;
  padding: 0 6px;
  background: #c0c0c0;
}

/* Taskbar */
.win98-desktop-section .win98-taskbar {
  flex-shrink: 0;
  height: 32px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  display: flex;
  align-items: stretch;
  z-index: 100;
  position: relative;
}
.win98-taskbar-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 2px;
  padding: 2px 4px;
}

/* Start button */
.win98-start-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #3c3c3c;
  border-bottom: 2px solid #3c3c3c;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}
.win98-start-btn:active,
.win98-start-btn.active {
  border-top-color: #3c3c3c;
  border-left-color: #3c3c3c;
  border-right-color: #fff;
  border-bottom-color: #fff;
}
.win98-start-mark {
  color: #000080;
  font-size: 1rem;
}

/* Task mid — window tab buttons */
.win98-task-mid {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}
.win98-task-btn {
  height: 22px;
  max-width: 150px;
  min-width: 60px;
  padding: 0 8px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #3c3c3c;
  border-bottom: 2px solid #3c3c3c;
  font-size: 0.7rem;
  font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.win98-task-btn.active {
  border-top-color: #3c3c3c;
  border-left-color: #3c3c3c;
  border-right-color: #fff;
  border-bottom-color: #fff;
  background: #b0b0b0;
}

/* Tray */
.win98-desktop-section .win98-tray {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  background: #c0c0c0;
  flex-shrink: 0;
  font-size: 0.7rem;
}
.win98-desktop-section .win98-tray a,
.win98-desktop-section .win98-tray button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.win98-desktop-section .win98-tray img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.win98-tray-sep {
  width: 1px;
  height: 18px;
  background: #808080;
  margin: 0 4px;
}
.win98-task-clock {
  font-size: 0.7rem;
  font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
  white-space: nowrap;
}

/* Start menu */
.win98-start-menu {
  position: absolute;
  bottom: 32px;
  left: 4px;
  width: 200px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #3c3c3c;
  border-bottom: 2px solid #3c3c3c;
  box-shadow: 2px 2px 0 #000;
  display: none;
  z-index: 200;
  flex-direction: column;
}
.win98-start-menu.open {
  display: flex;
}
.win98-start-brand {
  background: linear-gradient(to bottom, #000080, #1084d0);
  color: #fff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  padding: 8px 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  text-align: center;
}
.win98-start-items {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.win98-start-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.win98-start-item:hover {
  background: #000080;
  color: #fff;
}
.win98-start-icon {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

/* ============================================================
   FULL-VIEWPORT WIN98 DESKTOP — NEW LAYOUT OVERRIDES
   ============================================================ */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: auto; /* Default to scrollable */
}

/* Only apply height and overflow hidden to home page (Win98 theme) */
body[data-page="home"] {
  height: 100%;
  overflow: hidden;
}

html body[data-page="home"] {
  height: 100%;
  overflow: hidden;
}

/* Ensure non-home pages are scrollable */
body:not([data-page="home"]) {
  overflow: auto !important;
  height: auto !important;
}

html:not(:has(body[data-page="home"])) {
  overflow: auto !important;
  height: auto !important;
}

/* BIOS Screen */
#bios-screen {
  position: fixed;
  inset: 0;
  background: #000;
  color: #aaa;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(11px, 1.4vw, 15px);
  line-height: 1.5;
  padding: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

#bios-screen.hidden {
  display: none;
}

/* Win98 Desktop */
#win98-desktop {
  position: fixed;
  inset: 0;
  background: #008080;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#win98-desktop.active {
  display: flex;
}

/* Desktop icons area */
#win98-icons {
  flex: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  padding: 16px;
  overflow: hidden;
}

/* Taskbar */
#win98-taskbar {
  height: 32px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  display: flex;
  align-items: center;
  padding: 0 2px;
  gap: 2px;
  flex-shrink: 0;
  z-index: 100;
}

#win98-start {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #3c3c3c;
  border-bottom: 2px solid #3c3c3c;
  cursor: pointer;
  height: 24px;
}

#win98-start:active {
  border-top: 2px solid #3c3c3c;
  border-left: 2px solid #3c3c3c;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

#win98-taskbar-divider {
  width: 2px;
  height: 22px;
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
  margin: 0 2px;
}

#win98-task-mid {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}

#win98-tray {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  font-size: 0.7rem;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
  height: 24px;
  white-space: nowrap;
}

#win98-clock {
  font-size: 0.7rem;
}

/* Start menu — authentic Win98 */
#win98-start-menu {
  position: fixed;
  bottom: 37px;
  left: 4px;
  width: 220px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #3c3c3c;
  border-bottom: 2px solid #3c3c3c;
  box-shadow: 2px 2px 0 #000;
  z-index: 500;
  display: none;
  flex-direction: row;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
}

#win98-start-menu.open {
  display: flex;
}

/* Left sidebar — vertical "JFound" text */
.start-menu-sidebar {
  width: 26px;
  background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  flex-shrink: 0;
}

.start-menu-sidebar span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
  white-space: nowrap;
  user-select: none;
}

/* Right content area */
.start-menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.start-menu-header {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
  letter-spacing: 0.02em;
  display: none;
}

.start-menu-items {
  list-style: none;
  margin: 0;
  padding: 2px 0;
  flex: 1;
}

.start-menu-items li {
  display: block;
}

.start-menu-items li button,
.start-menu-items li a {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 3px 8px 3px 6px;
  background: transparent;
  border: none;
  color: #000;
  font-size: 0.78rem;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
  text-align: left;
  cursor: default;
  text-decoration: none;
  white-space: nowrap;
}

.start-menu-items li button:hover,
.start-menu-items li a:hover {
  background: #000080;
  color: #fff;
}

.start-menu-divider {
  height: 1px;
  background: #808080;
  box-shadow: 0 1px 0 #fff;
  margin: 3px 4px;
}

.start-menu-items li.start-menu-divider {
  height: auto;
  background: none;
  padding: 0;
}

/* Windows host */
#win98-windows {
  position: absolute;
  inset: 0;
  bottom: 32px;
  pointer-events: none;
}

#win98-windows .win98-window {
  pointer-events: auto;
}

/* Mobile layout */
#mobile-layout {
  display: none;
  padding: 2rem 1.5rem;
  font-family: system-ui, sans-serif;
}

@media (max-width: 767px) {
  #win98-desktop { display: none !important; }
  #bios-screen { display: none !important; }
  #mobile-layout { display: block; }
  body, html { overflow: auto; }
}

/* Fix scrolling for regular pages - highest specificity override */
html body[data-page="stories"],
html body[data-page="about"],
html body[data-page="contact"],
html body[data-page="services"] {
  overflow: auto !important;
  overflow-y: auto !important;
  height: auto !important;
}

/* Force html element to also allow scrolling */
html:has(body[data-page="stories"]),
html:has(body[data-page="about"]),
html:has(body[data-page="contact"]),
html:has(body[data-page="services"]) {
  overflow: auto !important;
  overflow-y: auto !important;
  height: auto !important;
}

/* Fallback for browsers without :has() support */
html {
  overflow: auto !important;
}

/* But preserve Win98 theme on home page */
html body[data-page="home"] {
  overflow: hidden !important;
  height: 100% !important;
}

html:has(body[data-page="home"]) {
  overflow: hidden !important;
  height: 100% !important;
}

/* Desktop icon emoji (no background) */
.win98-icon-emoji {
  font-size: 2rem;
  line-height: 1;
  display: block;
  background: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

/* Win98 real folder SVG icons */
.win98-folder-svg {
  display: block;
  width: 40px;
  height: 32px;
  filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.45));
}

/* ============================================================
   SPOTLIGHT — daily AI-agents intelligence brief
   Self-contained block. Distinctive "wire service" treatment
   built on the site tokens (--bg/--card/--blue/--amber).
   ============================================================ */

.spot-mono {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

/* --- Masthead (hub + edition pages) --- */
.spot-masthead {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.6rem;
  margin-bottom: 2.6rem;
}
.spot-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal, #ff4d00);
  margin-bottom: 0.9rem;
}
.spot-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--signal, #ff4d00);
  animation: spotPulse 2.4s ease-in-out infinite;
}
@keyframes spotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.spot-wordmark {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.7rem;
}
.spot-wordmark em {
  font-style: normal;
  color: var(--signal, #ff4d00);
}
.spot-sub {
  color: var(--muted);
  max-width: 44rem;
  font-size: 1.02rem;
  line-height: 1.7;
}
.spot-meta-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Hub: edition cards --- */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.2rem;
}
.spot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem 1.5rem 1.3rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.spot-card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--signal, #ff4d00);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55);
}
.spot-card--lead {
  grid-column: 1 / -1;
  border-color: rgba(255, 77, 0, 0.45);
}
.spot-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.spot-count { color: var(--signal, #ff4d00); }
.spot-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}
.spot-card--lead .spot-card-title { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; }
.spot-card-dek {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
  /* collection page shows a teaser, never the full lede */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spot-card--lead .spot-card-dek { -webkit-line-clamp: 4; max-width: 62rem; }
.spot-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.spot-chip {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink, #ece7db);
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 2px;
  padding: 0.22rem 0.55rem;
}
.spot-readmore {
  margin-top: auto;
  color: var(--signal, #ff4d00);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Edition page: signal list --- */
.spot-edition-body { max-width: 46rem; }
.spot-lede {
  font-size: 1.18rem;
  line-height: 1.8;
  color: var(--ink, #ece7db);
  border-left: 2px solid var(--signal, #ff4d00);
  padding-left: 1.2rem;
  margin-bottom: 2.8rem;
}
.spot-section-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 3rem 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}
.spot-section-head h2 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.spot-section-head .spot-num {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--signal, #ff4d00);
}
.spot-item {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.2rem 1.1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.spot-item:last-child { border-bottom: 0; }
.spot-item-idx {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--signal, #ff4d00);
  padding-top: 0.3rem;
}
.spot-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.8rem;
  margin-bottom: 0.55rem;
}
.spot-item-head h3 { font-size: 1.18rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.spot-item-head a { color: var(--text); text-decoration: none; }
.spot-item-head a:hover { color: var(--signal, #ff4d00); }
.spot-badge {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal, #ff4d00);
  border: 1px solid rgba(255, 77, 0, 0.45);
  border-radius: 2px;
  padding: 0.12rem 0.45rem;
  white-space: nowrap;
}
.spot-item p { color: #c9c3b4; font-size: 1.02rem; line-height: 1.75; }
.spot-item-links {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.74rem;
}
.spot-item-links a { color: var(--signal, #ff4d00); text-decoration: none; }
.spot-item-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.spot-foot {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
.spot-foot a { color: var(--signal, #ff4d00); text-decoration: none; }

@media (max-width: 640px) {
  .spot-item { grid-template-columns: 1fr; }
  .spot-item-idx { display: none; }
}

/* ===================== Marketing articles ===================== */
/* Hero band — carbon panel + dot-grid motif, industrial. */
.mkt-hero {
  position: relative;
  overflow: hidden;
  margin: 1rem 0 2.6rem;
  padding: clamp(1.8rem, 4.5vw, 3.4rem);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--card, #1d1a14);
}
.mkt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image: radial-gradient(rgba(236, 231, 219, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask: linear-gradient(155deg, #000 10%, transparent 70%);
  mask: linear-gradient(155deg, #000 10%, transparent 70%);
}
.mkt-hero > * { position: relative; z-index: 1; }
.mkt-hero .spot-kicker { color: var(--signal, #ff4d00); }
.mkt-hero-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink, #ece7db);
  margin: 0.7rem 0 1.1rem;
}
.mkt-hero .spot-meta-row { color: var(--muted); }

/* Article body typography */
.mkt-article { font-size: 1.05rem; line-height: 1.8; color: #c9c3b4; }
.mkt-article > p { margin: 0 0 1.4rem; }
.mkt-article h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink, #ece7db);
  margin: 2.8rem 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}
.mkt-article h3 { font-size: 1.2rem; font-weight: 600; color: var(--ink, #ece7db); margin: 2rem 0 0.8rem; }
.mkt-article strong { color: var(--ink, #ece7db); font-weight: 600; }
.mkt-article em { color: var(--ink, #ece7db); }
.mkt-article a {
  color: var(--signal, #ff4d00);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 77, 0, 0.4);
  transition: color 0.15s, border-color 0.15s;
}
.mkt-article a:hover { color: var(--ink, #ece7db); border-bottom-color: var(--ink, #ece7db); }
.mkt-article ul,
.mkt-article ol { margin: 0 0 1.5rem; padding-left: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.mkt-article ul { list-style: none; }
.mkt-article ul > li { position: relative; padding-left: 1.3rem; }
.mkt-article ul > li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--signal, #ff4d00);
}
.mkt-article ol { list-style: decimal; padding-left: 1.4rem; }
.mkt-article li { line-height: 1.7; }
.mkt-article blockquote {
  margin: 1.9rem 0;
  padding: 0.3rem 0 0.3rem 1.2rem;
  border-left: 3px solid var(--signal, #ff4d00);
  color: var(--ink, #ece7db);
  font-style: italic;
}
/* Tables — the big upgrade from raw browser default */
.mkt-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  border: 1px solid var(--border);
}
.mkt-article thead th {
  background: rgba(236, 231, 219, 0.08);
  color: var(--ink, #ece7db);
  text-align: left;
  font-weight: 600;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mkt-article th,
.mkt-article td {
  padding: 0.72rem 0.95rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
}
.mkt-article th:last-child,
.mkt-article td:last-child { border-right: 0; }
.mkt-article tbody tr:last-child td { border-bottom: 0; }
.mkt-article tbody tr:nth-child(even) td { background: rgba(236, 231, 219, 0.03); }
.mkt-article tbody td:first-child { color: var(--ink, #ece7db); font-weight: 600; }
/* Optional inline figure/image support for posts that include one */
.mkt-figure { margin: 2rem 0; }
.mkt-figure img { width: 100%; border-radius: 2px; border: 1px solid var(--border); display: block; }
.mkt-figure figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  .mkt-article table, .mkt-article thead, .mkt-article tbody, .mkt-article th, .mkt-article td, .mkt-article tr { display: block; }
  .mkt-article thead { display: none; }
  .mkt-article tbody td { border-right: 0; }
  .mkt-article tbody tr { border-bottom: 1px solid var(--border); padding: 0.4rem 0; }
  .mkt-article tbody tr:last-child { border-bottom: 0; }
}

/* ====================================================================
   Win98 V5 — deeper OS behaviors (2026-06-10)
   Window chrome (max/restore/resize), dialogs, context menu, cascading
   start menu, shutdown screen, screensaver, wallpapers, and programs
   (MS-DOS Prompt, Minesweeper, Notepad, Recycle Bin, Display Properties).
   Plus the shared dot-matrix loader primitive (used site-wide).
   ==================================================================== */

/* --- window control buttons --- */
.win98-ctrl-btn {
  width: 16px;
  height: 14px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  line-height: 1;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
  color: #000;
  background: #c0c0c0;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  padding: 0;
  cursor: pointer;
}
.win98-ctrl-btn:active {
  border-top-color: #404040;
  border-left-color: #404040;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

/* --- maximized windows --- */
#win98-windows .win98-window.maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  box-shadow: none;
}

/* --- resize grip (SE corner) --- */
.win98-resize-grip {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 0 50%, #808080 50% 56%, #fff 56% 62%, transparent 62% 70%, #808080 70% 76%, #fff 76% 82%, transparent 82% 88%, #808080 88% 94%, #fff 94%);
  z-index: 5;
}
.win98-window.maximized .win98-resize-grip { display: none; }

/* --- modal dialogs --- */
.win98-dialog-host {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.18);
  z-index: 900;
}
.win98-dialog-host.open { display: grid; }
.win98-dialog {
  width: min(400px, 86vw);
  background: #c0c0c0;
  border: 2px solid #8f8f8f;
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
}
.win98-dialog-body {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.6rem;
  align-items: start;
  padding: 0.9rem 0.8rem 0.5rem;
  font-size: 0.84rem;
  color: #111;
}
.win98-dialog-icon { font-size: 1.7rem; line-height: 1; }
.win98-dialog-msg { line-height: 1.45; }
.win98-dialog-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem 0.8rem;
}
.win98-dialog-buttons .win98-window-link { margin-top: 0; min-width: 78px; text-align: center; cursor: pointer; font-size: 0.8rem; }
.win98-run-input {
  margin-top: 0.55rem;
  width: 100%;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
  font-size: 0.84rem;
  padding: 0.2rem 0.3rem;
  background: #fff;
  color: #111;
  border: 2px solid #8f8f8f;
  border-top-color: #404040;
  border-left-color: #404040;
  border-right-color: #fff;
  border-bottom-color: #fff;
  outline: none;
}

/* --- shutdown screen --- */
.win98-shutdown-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
  display: grid;
  place-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  cursor: pointer;
}
.win98-shutdown-screen.on { opacity: 1; }
.win98-shutdown-screen p {
  color: #ffa500;
  font-family: 'Courier New', monospace;
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  font-weight: 700;
  margin: 0;
  text-shadow: 0 0 14px rgba(255, 165, 0, 0.5);
}
.win98-shutdown-screen span {
  display: block;
  margin-top: 1.4rem;
  color: rgba(255, 165, 0, 0.45);
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

/* --- desktop context menu --- */
.win98-context-menu {
  position: fixed;
  z-index: 800;
  min-width: 170px;
  margin: 0;
  padding: 2px;
  list-style: none;
  background: #c0c0c0;
  border: 2px solid #8f8f8f;
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  display: none;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
}
.win98-context-menu.open { display: block; }
.win98-context-menu li button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 4px 18px 4px 22px;
  font-size: 0.78rem;
  font-family: inherit;
  color: #000;
  cursor: default;
  white-space: nowrap;
}
.win98-context-menu li button:hover:not(:disabled) { background: #000080; color: #fff; }
.win98-context-menu li button:disabled { color: #808080; text-shadow: 1px 1px 0 #fff; }
.win98-context-menu .ctx-sep { height: 1px; background: #808080; box-shadow: 0 1px 0 #fff; margin: 3px 2px; }

/* desktop refresh flicker */
#win98-desktop.win98-refresh #win98-icons,
#win98-desktop.win98-refresh #win98-windows { visibility: hidden; }

/* --- start menu V2: cascading submenus --- */
.start-menu-items li { position: relative; }
.start-menu-items .win98-menu-ic { width: 18px; display: inline-block; text-align: center; flex-shrink: 0; }
.start-menu-items .win98-menu-tx { flex: 1; }
.start-menu-items .win98-menu-arrow { font-size: 0.55rem; margin-left: auto; padding-left: 10px; }
.win98-submenu {
  position: absolute;
  left: calc(100% - 3px);
  top: -3px;
  min-width: 195px;
  margin: 0;
  padding: 2px 0;
  list-style: none;
  background: #c0c0c0;
  border: 2px solid #8f8f8f;
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 510;
}
.win98-submenu-parent:hover > .win98-submenu,
.win98-submenu-parent:focus-within > .win98-submenu { display: block; }
.win98-submenu-parent:hover > button { background: #000080; color: #fff; }
#win98-start-menu { width: 240px; }

/* --- screensaver --- */
.win98-screensaver {
  position: fixed;
  inset: 0;
  z-index: 3000;
  cursor: none;
}

/* --- wallpapers --- */
#win98-desktop.wp-teal { background: #008080; }
#win98-desktop.wp-black { background: #0c0c0c; }
#win98-desktop.wp-dots {
  background-color: #006a6a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
#win98-desktop.wp-clouds {
  background:
    radial-gradient(ellipse 60% 38% at 22% 28%, rgba(255, 255, 255, 0.85), transparent 65%),
    radial-gradient(ellipse 48% 30% at 68% 18%, rgba(255, 255, 255, 0.7), transparent 65%),
    radial-gradient(ellipse 70% 42% at 80% 62%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(ellipse 56% 34% at 38% 74%, rgba(255, 255, 255, 0.6), transparent 68%),
    linear-gradient(180deg, #1f7fd4 0%, #5fb6f0 100%);
}
.wp-options { display: grid; gap: 0.4rem; margin-top: 0.3rem; }
.wp-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.55rem;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
  font-size: 0.84rem;
  background: #efefef;
  border: 1px solid #8d8d8d;
  cursor: pointer;
  text-align: left;
}
.wp-option:hover { background: #e2e2e2; }
.wp-option.selected { outline: 1px dotted #000; background: #d8e4f0; }
.wp-swatch { width: 34px; height: 22px; border: 1px solid #555; flex-shrink: 0; }
.wp-swatch-teal { background: #008080; }
.wp-swatch-black { background: #0c0c0c; }
.wp-swatch-dots {
  background-color: #006a6a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 6px 6px;
}
.wp-swatch-clouds { background: linear-gradient(180deg, #1f7fd4, #8fd0f7); }

/* --- Notepad --- */
.win98-app-notepad .win98-window-body { background: #fff; }
.win98-notepad-text {
  margin: 0;
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: #111;
}

/* --- MS-DOS Prompt --- */
.win98-app-dos .win98-window-body {
  background: #000;
  color: #c7c7c7;
  border-color: #000;
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 0.8rem;
  line-height: 1.42;
}
.win98-app-dos .win98-window-content { display: flex; flex-direction: column; min-height: 100%; }
.dos-out { white-space: pre-wrap; word-break: break-word; }
.dos-out .dos-echo { color: #fff; }
.dos-line { display: flex; align-items: center; gap: 6px; }
.dos-ps { white-space: nowrap; color: #fff; }
.dos-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  caret-color: #0f0;
  padding: 0;
}

/* --- Minesweeper --- */
.win98-app-mines .win98-window-body { background: #c0c0c0; border-color: #8d8d8d; }
.mine-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  margin-bottom: 8px;
  border: 2px solid #fff;
  border-top-color: #808080;
  border-left-color: #808080;
  background: #c0c0c0;
}
.mine-lcd {
  background: #000;
  color: #f00;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 1px;
  padding: 1px 4px;
  min-width: 46px;
  text-align: center;
}
.mine-face {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  cursor: pointer;
  padding: 0;
}
.mine-face:active {
  border-top-color: #404040;
  border-left-color: #404040;
  border-right-color: #fff;
  border-bottom-color: #fff;
}
.mine-board {
  display: grid;
  grid-template-columns: repeat(9, 22px);
  grid-auto-rows: 22px;
  justify-content: center;
  border: 2px solid #fff;
  border-top-color: #808080;
  border-left-color: #808080;
  padding: 2px;
  background: #bdbdbd;
}
.mine-cell {
  width: 22px;
  height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: 'MS Sans Serif', Tahoma, Arial, sans-serif;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  cursor: pointer;
  user-select: none;
}
.mine-cell.open {
  border: 1px solid #9a9a9a;
  background: #c6c6c6;
  cursor: default;
}
.mine-cell.boom { background: #e33; }
.mine-cell[data-n="1"] { color: #0000f0; }
.mine-cell[data-n="2"] { color: #007000; }
.mine-cell[data-n="3"] { color: #e00000; }
.mine-cell[data-n="4"] { color: #000080; }
.mine-cell[data-n="5"] { color: #700000; }
.mine-cell[data-n="6"] { color: #007878; }
.mine-cell[data-n="7"] { color: #000; }
.mine-cell[data-n="8"] { color: #555; }

/* --- Recycle Bin --- */
.recycle-list {
  list-style: none;
  margin: 0.2rem 0 0.8rem;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}
.recycle-list li {
  display: block;
  font-size: 0.82rem;
  padding: 0.32rem 0.4rem;
  border: 1px solid #8d8d8d;
  background: #f3f3f3;
}
.recycle-list li span { margin-right: 0.35rem; }
.recycle-list li em { color: #555; font-style: normal; font-size: 0.76rem; }
.win98-app-recycle .win98-window-link { cursor: pointer; }

/* --- blog rows in the Blog window --- */
.win98-blog-row {
  display: block;
  padding: 0.42rem 0.5rem;
  margin-bottom: 0.4rem;
  border: 1px solid #8d8d8d;
  background: #f4f4f4;
  text-decoration: none;
  color: #111;
}
.win98-blog-row:hover { background: #dce6f2; }
.win98-blog-row strong { display: block; font-size: 0.82rem; line-height: 1.3; }
.win98-blog-row span { font-size: 0.72rem; color: #4a5568; }

/* ====================================================================
   Dot-matrix loader primitive — shared by the Win98 desktop and the
   sub-page loader layer (dotmatrix.js). 3×3 grid of dots, "drift" pulse.
   Inspired by dotmatrix.zzzzshawn.cloud.
   ==================================================================== */
.dotm-loader {
  --dotm-size: 7px;
  --dotm-gap: 5px;
  --dotm-color: #1a2b45;
  display: grid;
  grid-template-columns: repeat(3, var(--dotm-size));
  gap: var(--dotm-gap);
  width: max-content;
  margin: 1.1rem auto;
}
.dotm-loader span {
  width: var(--dotm-size);
  height: var(--dotm-size);
  border-radius: 50%;
  background: var(--dotm-color);
  opacity: 0.15;
  animation: dotm-pulse 1.15s ease-in-out infinite;
}
.dotm-loader span:nth-child(1) { animation-delay: 0s; }
.dotm-loader span:nth-child(2) { animation-delay: 0.12s; }
.dotm-loader span:nth-child(3) { animation-delay: 0.24s; }
.dotm-loader span:nth-child(6) { animation-delay: 0.36s; }
.dotm-loader span:nth-child(9) { animation-delay: 0.48s; }
.dotm-loader span:nth-child(8) { animation-delay: 0.6s; }
.dotm-loader span:nth-child(7) { animation-delay: 0.72s; }
.dotm-loader span:nth-child(4) { animation-delay: 0.84s; }
.dotm-loader span:nth-child(5) { animation-delay: 0.96s; }
.dotm-loader.dotm-light { --dotm-color: #e8eefc; }
@keyframes dotm-pulse {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  35% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .dotm-loader span { animation: none; opacity: 0.7; }
}
.dos-input:focus { outline: none; } /* global focus ring breaks the terminal illusion; caret is the indicator */

/* ====================================================================
   INDUSTRIAL REDESIGN (2026-06-11) — inner pages only (body.page-enter;
   the Win98 desktop keeps its own world). Dark earth: carbon ground,
   bone text, signal orange. Space Grotesk / IBM Plex Mono, hairline
   panels with offset shadows (the Win98 4px-shadow lineage), dot-matrix
   motifs throughout. Token swap does the heavy lifting: --blue → signal,
   --amber → bone. "ink" here = foreground (bone on dark).
   ==================================================================== */

body.page-enter {
  --ground: #14120e;
  --panel: #1d1a14;
  --ink: #ece7db;
  --signal: #ff4d00;
  /* legacy token remap — every existing component recolors itself */
  --bg: var(--ground);
  --card: var(--panel);
  --blue: var(--signal);
  --amber: var(--ink);
  --text: var(--ink);
  --muted: #a39c8c;
  --border: rgba(236, 231, 219, 0.16);
  --paper: var(--ground); /* alias kept for shared rules below */

  font-family: "Space Grotesk", "Unbounded", sans-serif;
  color: var(--ink);
  background-color: var(--ground);
  background-image: radial-gradient(rgba(236, 231, 219, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* fixed page stamp, spec-sheet style */
body.page-enter::after {
  content: "JF \2014  " attr(data-page);
  position: fixed;
  left: 0.85rem;
  bottom: 1rem;
  z-index: 40;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(236, 231, 219, 0.35);
  pointer-events: none;
}

body.page-enter ::selection { background: var(--signal); color: #fff; }

/* --- typography --- */
body.page-enter h1,
body.page-enter h2,
body.page-enter h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}
body.page-enter .hero-title {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.035em;
}
body.page-enter .gradient-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--signal);
}
body.page-enter .typed {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
}
body.page-enter .text-slate-300,
body.page-enter .text-slate-400 { color: var(--muted); }
body.page-enter .text-amber-300 {
  color: var(--signal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* --- nav: instrument bar --- */
body.page-enter .site-nav { border-bottom: 1px solid transparent; }
body.page-enter .site-nav.scrolled {
  background: rgba(20, 18, 14, 0.96);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
/* keep the header row solid while the mobile menu is open */
body.page-enter .site-nav:has(.mobile-menu.open) {
  background: rgba(20, 18, 14, 0.97);
  border-color: var(--border);
}
body.page-enter .nav-link {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 2px solid transparent;
}
body.page-enter .nav-link:hover,
body.page-enter .nav-link.active {
  color: var(--ink);
  border-color: var(--signal);
}
body.page-enter .mobile-menu { background: rgba(20, 18, 14, 0.97); }
body.page-enter .mobile-toggle { border-radius: 2px; color: var(--ink); }

/* --- badges, tags, labels: mono brackets --- */
body.page-enter .hero-badge,
body.page-enter .tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.28rem 0.6rem;
}
body.page-enter .tag::before { content: "\25AA "; color: var(--signal); }

/* --- buttons: machine keys --- */
body.page-enter .btn {
  border-radius: 2px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.85rem 1.5rem;
}
body.page-enter .btn-primary {
  background: var(--ink);
  color: #14120e;
  box-shadow: none;
  border: 1px solid var(--ink);
}
body.page-enter .btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
body.page-enter .btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--signal);
}
body.page-enter .btn-primary:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
}

/* --- panels: cards, stats, teaser --- */
body.page-enter .card,
body.page-enter .story-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
body.page-enter .card::after,
body.page-enter .story-card::after {
  content: "+";
  position: absolute;
  top: 0.45rem;
  right: 0.6rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: rgba(236, 231, 219, 0.3);
}
body.page-enter .card:hover,
body.page-enter .story-card:hover {
  border-color: var(--signal);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55);
}
body.page-enter .card:hover::after,
body.page-enter .story-card:hover::after { color: var(--signal); }
body.page-enter .stats-bar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  gap: 0;
}
body.page-enter .stat { border-left: 1px solid var(--border); }
body.page-enter .stat:first-child { border-left: none; }
body.page-enter .stat-number {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  color: var(--signal);
}
body.page-enter .icon-box {
  border-radius: 2px;
  background: transparent;
  border: 1px solid var(--border);
}
body.page-enter .teaser {
  border-radius: 2px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
}
body.page-enter .callout {
  border-radius: 2px;
  background: var(--panel);
  border-left: 3px solid var(--signal);
}
body.page-enter .marquee-wrap {
  border-radius: 2px;
  background: var(--panel);
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* --- imagery: framed plates, no blue glow --- */
body.page-enter .placeholder {
  border-radius: 2px;
  border: 1px solid var(--border);
  background: #26221a;
  color: var(--muted);
}
body.page-enter .placeholder::after { display: none; }

/* --- timeline / rails --- */
body.page-enter .timeline { border-left: 1px solid var(--ink); }
body.page-enter .skills-rail span {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

/* --- forms: instrument inputs --- */
body.page-enter .contact-form {
  border-radius: 2px;
  background: var(--panel);
}
body.page-enter input,
body.page-enter select,
body.page-enter textarea {
  border-radius: 2px;
  background: #14120e;
  color: var(--ink);
  border: 1px solid var(--border);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}
body.page-enter input:focus,
body.page-enter select:focus,
body.page-enter textarea:focus {
  outline: 2px solid var(--signal);
  outline-offset: 0;
}
body.page-enter label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
body.page-enter .error { color: #ff7a59; }
body.page-enter .success-state {
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--ink);
  border-left: 3px solid var(--signal);
}

/* --- footer: spec sheet, deeper black --- */
body.page-enter .site-footer {
  background: #0c0b08;
  border-top: 1px solid var(--border);
  color: #d8d6cd;
}
body.page-enter .site-footer .footer-tagline,
body.page-enter .site-footer .footer-copy,
body.page-enter .site-footer .footer-nav-links a,
body.page-enter .site-footer .footer-email-text { color: #b8b5a8; }
body.page-enter .footer-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: #8a8779;
}
body.page-enter .footer-nav-links a:hover,
body.page-enter .footer-nav-links a:focus-visible { color: var(--signal); }
body.page-enter .footer-connect-icons a,
body.page-enter .footer-connect-icons button {
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--ink); /* bone chips — the black icon PNGs need a light plate */
}
body.page-enter .footer-connect-icons a:hover,
body.page-enter .footer-connect-icons a:focus-visible,
body.page-enter .footer-connect-icons button:hover,
body.page-enter .footer-connect-icons button:focus-visible {
  background: var(--signal);
  border-color: var(--signal);
  opacity: 1;
}

/* cookie banner: styled at base level (floating card) — see .cookie-consent */

/* --- language switcher --- */
body.page-enter .lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
body.page-enter .lang-toggle:hover { background: rgba(236, 231, 219, 0.08); border-color: var(--ink); }
body.page-enter .lang-dropdown {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
}
body.page-enter .lang-dropdown a,
body.page-enter .lang-dropdown button { color: var(--ink); }
body.page-enter .lang-dropdown a:hover,
body.page-enter .lang-dropdown button:hover { background: rgba(236, 231, 219, 0.08); }

/* --- dot loader recolors --- */
body.page-enter .dotm-loader { --dotm-color: var(--ink); }

/* RTL stamp position */
body.page-enter.rtl::after,
.rtl body.page-enter::after { left: auto; right: 0.85rem; }

@media (max-width: 720px) {
  body.page-enter::after { display: none; }
}

/* ====================================================================
   Page-entry dot reveal — the dot grid resolves into the page content.
   Runs as a plain entry animation on <body>. This REPLACED the
   cross-document View Transition (@view-transition navigation:auto):
   Chrome 149 permanently render-blocks the destination document on
   cross-doc transitions (pagereveal never fires, body frozen at first
   frame = white screen on every link click). Verified with a minimal
   two-page repro on Chrome 149.0.7827.103, 2026-06-12. Do NOT re-add
   the opt-in without click-through-verifying navigation in current
   Chrome. Exit is the JS .page-out fade in main.js.
   ==================================================================== */
@property --vt-dot {
  syntax: "<length>";
  inherits: false;
  /* fully-open by default: if the animation can't run, the mask shows
     the whole page instead of a blank screen */
  initial-value: 14px;
}

/* the page behind the body mask must be the ground color, not browser
   white — the dots resolve out of darkness, and the brief gap between
   pages stays dark instead of flashing white */
html { background-color: #14120e; }

@media (prefers-reduced-motion: no-preference) {
  body.page-enter {
    /* the mask alone does the reveal — layering an opacity fade on top
       muted the dot effect into a plain fade */
    opacity: 1;
    animation: vt-dots-in 0.55s cubic-bezier(0.6, 0, 0.3, 1) forwards;
  }
  /* mask is scoped to its own rule so dropping it (vt-done, added by
     main.js on animationend) doesn't change the animation list and
     restart the reveal */
  body.page-enter:not(.vt-done) {
    -webkit-mask-image: radial-gradient(circle, #000 var(--vt-dot), transparent calc(var(--vt-dot) + 0.5px));
    mask-image: radial-gradient(circle, #000 var(--vt-dot), transparent calc(var(--vt-dot) + 0.5px));
    -webkit-mask-size: 18px 18px;
    mask-size: 18px 18px;
    -webkit-mask-position: center;
    mask-position: center;
  }
  /* symmetric exit: dots dissolve out (declared after the entry rules so
     it wins while both classes are on body). 0.2s tracks the 180ms JS
     navigation delay. */
  body.page-enter.page-out,
  body.page-out {
    opacity: 1;
    transition: none;
    animation: vt-dots-out 0.2s cubic-bezier(0.7, 0, 0.6, 1) forwards;
    -webkit-mask-image: radial-gradient(circle, #000 var(--vt-dot), transparent calc(var(--vt-dot) + 0.5px));
    mask-image: radial-gradient(circle, #000 var(--vt-dot), transparent calc(var(--vt-dot) + 0.5px));
    -webkit-mask-size: 18px 18px;
    mask-size: 18px 18px;
    -webkit-mask-position: center;
    mask-position: center;
  }
}

@keyframes vt-dots-in {
  0% { --vt-dot: 1px; }
  100% { --vt-dot: 14px; } /* > half tile diagonal: dots merge into the full page */
}

@keyframes vt-dots-out {
  0% { --vt-dot: 14px; }
  100% { --vt-dot: 0.5px; }
}

/* Win98 tray WeChat tooltip — toggled by the tray button (.active on parent).
   The old inline display:none could never be overridden by the toggle class. */
.win98-tray-wechat { position: relative; }
.win98-tray-wechat .tooltip { display: none; }
.win98-tray-wechat.active .tooltip,
.win98-tray-wechat:hover .tooltip { display: block; }
/* Win98 dialogs: the global form label color (--muted, light) is unreadable
   on the gray dialog chrome */
.win98-dialog label { color: #111; font-size: 0.82rem; }

/* ============================================================
   NAV V2 — categorized dropdowns (built by js/nav.js)
   WORK / JOURNAL groups + direct About / Reach Out.
   Industrial: mono micro-type, dot-grid panels, orange scanline,
   staggered item reveal. Static per-page nav remains the no-JS
   fallback; these classes only exist after nav.js runs.
   ============================================================ */

.nv-root { display: flex; align-items: center; gap: 0.55rem; visibility: visible; }

.nv-group { position: relative; }

.nv-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem 0.65rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.25s ease, letter-spacing 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nv-trigger:hover,
.nv-group.nv-open .nv-trigger { color: var(--text); letter-spacing: 0.22em; }

.nv-trigger-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal, var(--blue));
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nv-trigger.is-current .nv-trigger-dot {
  opacity: 1;
  transform: none;
  box-shadow: 0 0 8px var(--signal, var(--blue));
}

/* plus glyph that twists into an × */
.nv-plus { position: relative; width: 9px; height: 9px; flex: none; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.nv-plus-h, .nv-plus-v { position: absolute; background: currentColor; }
.nv-plus-h { top: 4px; left: 0; width: 9px; height: 1px; }
.nv-plus-v { top: 0; left: 4px; width: 1px; height: 9px; }
.nv-group.nv-open .nv-plus { transform: rotate(135deg); color: var(--signal, var(--blue)); }

.nv-panel {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-start: -10px;
  min-width: 320px;
  z-index: 60;
  padding: 0.4rem 0 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background-image: radial-gradient(rgba(236, 231, 219, 0.06) 1px, transparent 1.4px);
  background-size: 13px 13px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  clip-path: inset(0 0 100% 0);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    clip-path 0.18s ease,
    visibility 0s linear 0.18s;
}
/* hover bridge so the pointer can cross the gap below the trigger */
.nv-panel::before { content: ""; position: absolute; top: -13px; left: 0; right: 0; height: 13px; }
.nv-group.nv-open .nv-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  clip-path: inset(-1px -40px -60px -40px); /* negative: keep the shadow */
  transition:
    opacity 0.22s ease,
    transform 0.34s cubic-bezier(0.2, 0.9, 0.25, 1),
    clip-path 0.34s cubic-bezier(0.2, 0.9, 0.25, 1),
    visibility 0s;
}

.nv-scanline {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: var(--signal, var(--blue));
  transform: scaleX(0);
  transform-origin: var(--nv-origin, left);
  transition: transform 0.2s ease;
}
[dir="rtl"] .nv-scanline { --nv-origin: right; }
.nv-group.nv-open .nv-scanline { transform: scaleX(1); transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.25, 1) 0.1s; }

.nv-panel-tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.55rem 0.95rem 0.5rem;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 0.3rem;
}

.nv-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.6rem 0.95rem;
  text-decoration: none;
  border-inline-start: 2px solid transparent;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.nv-group.nv-open .nv-item {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.3s ease calc(var(--nv-i, 0) * 70ms + 90ms),
    transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1) calc(var(--nv-i, 0) * 70ms + 90ms),
    background 0.2s ease,
    border-color 0.2s ease;
}
.nv-item:hover,
.nv-item.is-current {
  background: rgba(236, 231, 219, 0.05);
  border-inline-start-color: var(--signal, var(--blue));
}

.nv-idx {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  flex: none;
  transition: color 0.2s ease;
}
.nv-item:hover .nv-idx,
.nv-item.is-current .nv-idx { color: var(--signal, var(--blue)); }

.nv-item-body { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.nv-item-label { color: var(--text); font-weight: 600; font-size: 0.92rem; line-height: 1.25; }
.nv-item-dek {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nv-item-arrow {
  margin-inline-start: auto;
  color: var(--signal, var(--blue));
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.9, 0.25, 1);
}
[dir="rtl"] .nv-item-arrow { transform: translateX(6px) scaleX(-1); }
.nv-item:hover .nv-item-arrow { opacity: 1; transform: translateX(0); }
[dir="rtl"] .nv-item:hover .nv-item-arrow { transform: translateX(0) scaleX(-1); }

/* direct links + CTA chip */
.nv-direct {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.55rem;
  background-image: linear-gradient(var(--signal, var(--blue)), var(--signal, var(--blue)));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0.55rem calc(100% - 0.32rem);
  transition: color 0.25s ease, background-size 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.nv-direct:hover,
.nv-direct.is-current {
  color: var(--text);
  background-size: calc(100% - 1.1rem) 2px;
}
.nv-direct .nv-item-arrow, .nv-direct .nv-idx, .nv-direct .nv-item-dek { display: none; }

.nv-cta {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.45rem 0.95rem;
  margin-inline-start: 0.35rem;
  background-image: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.nv-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--signal, var(--blue));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.25, 1);
  z-index: -1;
}
.nv-cta:hover { color: #14120e; border-color: var(--signal, var(--blue)); background-size: 0 0; }
.nv-cta:hover::after { transform: scaleY(1); }
.nv-cta.is-current { border-color: var(--signal, var(--blue)); background-size: 0 0; }

/* ---------- mobile menu (grouped, staggered) ---------- */
.nv-mobile { gap: 0; padding-bottom: 1.1rem; }

.nv-m-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.95rem;
  padding: 0 0.15rem 0.25rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--signal, var(--blue));
}
.nv-m-head-rule { flex: 1; height: 1px; background: var(--border); }

.nv-m-item {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.55rem 0.15rem;
  text-decoration: none;
}
.nv-m-item .nv-item-label { font-size: 1.02rem; }
.nv-m-item .nv-item-dek { display: none; }
.nv-m-item .nv-item-arrow { opacity: 0; }
.nv-m-item.is-current .nv-item-arrow { opacity: 1; transform: none; }
.nv-m-item.is-current .nv-idx { color: var(--signal, var(--blue)); }

@keyframes nv-m-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.mobile-menu.open .nv-m-item,
.mobile-menu.open .nv-m-head {
  animation: nv-m-in 0.32s cubic-bezier(0.2, 0.9, 0.25, 1) both;
  animation-delay: calc(var(--nv-i, 0) * 40ms);
}

/* keep dropdown panels inside the viewport on narrower desktop widths:
   the last group's panel hugs the end edge instead of overflowing */
.nv-group:last-of-type .nv-panel { inset-inline-start: auto; inset-inline-end: -10px; }

/* .nv-root's display:flex is declared after the 960px media query above and
   was winning the cascade — re-hide the desktop nav on small screens */
@media (max-width: 960px) {
  .nv-root { display: none; }
}

/* Win98 corner popup — non-modal variant of the dialog host. Used by the
   privacy notice: sits bottom-right above the taskbar like a system
   notification and never blocks interaction with the rest of the desktop. */
.win98-dialog-host.corner {
  inset: auto 14px 50px auto;
  background: none;
  pointer-events: none;
  place-items: unset;
}
.win98-dialog-host.corner.open { display: block; }
.win98-dialog-host.corner .win98-dialog {
  pointer-events: auto;
  width: min(340px, calc(100vw - 28px));
  animation: win98-popup-in 0.25s ease;
}
@keyframes win98-popup-in {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
