: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;
}

.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 {
  opacity: 0;
  transform: translateY(16px);
  animation: pageIn 0.55s ease forwards;
}

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

.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 {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 0.55rem 0.85rem;
  background: rgba(10, 10, 26, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  transform: translateY(110%);
  opacity: 0;
}

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

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

.cookie-consent__inner {
  width: min(var(--max), calc(100% - 1rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

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

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

.cookie-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 0.42rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.cookie-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.cookie-btn--primary {
  background: linear-gradient(120deg, var(--blue), #2f46b8);
  color: #ffffff;
  border-color: rgba(67, 97, 238, 0.85);
}

.cookie-panel {
  width: min(var(--max), calc(100% - 1rem));
  margin: 0.55rem auto 0;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(18, 20, 45, 0.96);
}

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

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

.cookie-panel__row strong {
  display: block;
  font-size: 0.86rem;
}

.cookie-panel__row p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.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(148, 163, 184, 0.35);
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.cookie-switch span::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #f8fafc;
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + span {
  background: rgba(67, 97, 238, 0.9);
}

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

.cookie-switch input:disabled + span {
  background: rgba(148, 163, 184, 0.6);
}

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

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

@keyframes cookieSlideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(110%);
    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: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

/* --- Masthead (hub + edition pages) --- */
.spot-masthead {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.4rem;
  margin-bottom: 2.4rem;
}
.spot-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
}
.spot-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 184, 79, 0.22);
  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: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.spot-wordmark em {
  font-style: normal;
  color: var(--amber);
}
.spot-sub {
  color: var(--muted);
  max-width: 46rem;
}
.spot-meta-row {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.74rem;
  color: #94a3b8;
}

/* --- Hub: edition cards --- */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.2rem;
}
.spot-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.2rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.spot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 184, 79, 0.5);
  box-shadow: 0 18px 40px -22px rgba(245, 184, 79, 0.4);
}
.spot-card--lead {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.12), rgba(245, 184, 79, 0.07)), var(--card);
  border-color: rgba(245, 184, 79, 0.35);
}
.spot-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.9rem;
}
.spot-count { color: var(--amber); }
.spot-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 0.5rem;
}
.spot-card--lead .spot-card-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.spot-card-dek {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.spot-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.spot-chip {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #d6ddff;
  border: 1px solid rgba(67, 97, 238, 0.45);
  background: rgba(67, 97, 238, 0.12);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.spot-readmore {
  margin-top: auto;
  color: var(--amber);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Edition page: signal list --- */
.spot-edition-body { max-width: 52rem; }
.spot-lede {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #e2e8f0;
  border-left: 2px solid var(--amber);
  padding-left: 1.1rem;
  margin-bottom: 2.6rem;
}
.spot-section-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 2.6rem 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.spot-section-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
}
.spot-section-head .spot-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
  color: var(--amber);
}
.spot-item {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.2rem 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.spot-item:last-child { border-bottom: 0; }
.spot-item-idx {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  color: #64748b;
  padding-top: 0.15rem;
}
.spot-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.8rem;
  margin-bottom: 0.4rem;
}
.spot-item-head h3 { font-size: 1.1rem; font-weight: 650; }
.spot-item-head a { color: var(--text); text-decoration: none; }
.spot-item-head a:hover { color: var(--amber); }
.spot-badge {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.7rem;
  color: var(--amber);
  border: 1px solid rgba(245, 184, 79, 0.4);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
  white-space: nowrap;
}
.spot-item p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.spot-item-links {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
}
.spot-item-links a { color: #7c93ff; text-decoration: none; }
.spot-item-links a:hover { color: var(--amber); text-decoration: underline; }
.spot-foot {
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  color: #64748b;
  font-size: 0.82rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.spot-foot a { color: #7c93ff; text-decoration: none; }

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