/* ==========================================================================
   SICK · personal blog
   A light, glassy, quietly springy interface.
   ========================================================================== */

@font-face {
  font-family: "Smiley Sans";
  src: url("../fonts/smiley-sans-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f8fc;
  --bg-warm: #fffaf3;
  --ink: #1b2232;
  --ink-2: #505b70;
  --ink-3: #677286;
  --blue: #628cf0;
  --blue-deep: #3f66c5;
  --blue-soft: #dfe9ff;
  --yellow: #ffd66b;
  --yellow-soft: #fff1bd;
  --orange: #ff9f70;
  --orange-soft: #ffe3d3;
  --pink: #ffa6c2;
  --pink-soft: #ffe1ea;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.56);
  --glass-strong: rgba(255, 255, 255, 0.76);
  --glass-soft: rgba(255, 255, 255, 0.36);
  --line: rgba(32, 45, 76, 0.09);
  --line-strong: rgba(32, 45, 76, 0.14);
  --shadow-sm: 0 8px 24px -14px rgba(34, 50, 91, 0.22);
  --shadow-md: 0 24px 60px -30px rgba(34, 50, 91, 0.28), 0 2px 5px rgba(34, 50, 91, 0.04);
  --shadow-lg: 0 40px 100px -42px rgba(34, 50, 91, 0.36), 0 4px 12px rgba(34, 50, 91, 0.05);
  --inset-light: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.22);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 42px;
  --spring: cubic-bezier(0.2, 1.4, 0.35, 1);
  --spring-soft: cubic-bezier(0.22, 1.12, 0.32, 1);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --font-body: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "Smiley Sans", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace;
  --container: 1180px;
  --nav-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  color: var(--ink);
  background: rgba(255, 214, 107, 0.62);
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(84, 102, 140, 0.22);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(84, 102, 140, 0.36);
  border: 3px solid transparent;
  background-clip: padding-box;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
blockquote,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 4px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: 96px;
}

.hero + .section {
  padding-top: 76px;
}

.view {
  min-height: 70vh;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--xs {
  width: 0.9em;
  height: 0.9em;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.u-mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: -0.02em;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 18px;
  color: var(--ink);
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

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

/* ==========================================================================
   Ambient background
   ========================================================================== */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1100px 780px at 12% -6%, rgba(209, 226, 255, 0.78), transparent 62%),
    radial-gradient(900px 700px at 94% 4%, rgba(255, 241, 189, 0.62), transparent 64%),
    radial-gradient(800px 700px at 80% 94%, rgba(255, 213, 226, 0.52), transparent 62%),
    linear-gradient(180deg, #fbfcff 0%, #f8f9fd 44%, #fffaf4 100%);
}

.ambient__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(74px);
  opacity: 0.54;
  will-change: transform;
  animation: blob-drift 24s var(--ease) infinite alternate;
}

.ambient__blob--blue {
  top: -8%;
  left: 38%;
  width: clamp(340px, 38vw, 620px);
  aspect-ratio: 1;
  background: rgba(142, 178, 255, 0.55);
  animation-duration: 27s;
}

.ambient__blob--yellow {
  top: 14%;
  right: -9%;
  width: clamp(300px, 30vw, 520px);
  aspect-ratio: 1;
  background: rgba(255, 218, 112, 0.48);
  animation-duration: 31s;
  animation-delay: -7s;
}

.ambient__blob--orange {
  bottom: 2%;
  left: -8%;
  width: clamp(320px, 34vw, 560px);
  aspect-ratio: 1;
  background: rgba(255, 158, 112, 0.35);
  animation-duration: 29s;
  animation-delay: -13s;
}

.ambient__blob--pink {
  right: 4%;
  bottom: -20%;
  width: clamp(380px, 42vw, 680px);
  aspect-ratio: 1;
  background: rgba(255, 157, 190, 0.32);
  animation-duration: 35s;
  animation-delay: -19s;
}

.ambient__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(49, 68, 108, 0.11) 0.75px, transparent 0.75px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 76% 60% at 50% 16%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 76% 60% at 50% 16%, #000 0%, transparent 72%);
}

.ambient__bubbles {
  position: absolute;
  inset: 0;
}

.ambient__bubbles i {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
  animation: bubble-float 16s ease-in-out infinite;
}

.ambient__bubbles i:nth-child(1) { top: 22%; left: 7%; width: 18px; height: 18px; animation-delay: -2s; }
.ambient__bubbles i:nth-child(2) { top: 62%; left: 15%; width: 8px; height: 8px; animation-delay: -9s; }
.ambient__bubbles i:nth-child(3) { top: 15%; right: 11%; width: 10px; height: 10px; animation-delay: -6s; }
.ambient__bubbles i:nth-child(4) { top: 54%; right: 5%; width: 22px; height: 22px; animation-delay: -12s; }
.ambient__bubbles i:nth-child(5) { bottom: 12%; left: 48%; width: 9px; height: 9px; animation-delay: -4s; }
.ambient__bubbles i:nth-child(6) { top: 36%; left: 46%; width: 5px; height: 5px; animation-delay: -14s; }

.ambient__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(6) infinite;
}

@keyframes blob-drift {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(3vw, 4vh, 0) scale(1.08) rotate(8deg); }
  100% { transform: translate3d(-3vw, -2vh, 0) scale(0.94) rotate(-6deg); }
}

@keyframes bubble-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate3d(10px, -26px, 0) scale(1.12); opacity: 0.95; }
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-3%, -2%); }
  80% { transform: translate(4%, 2%); }
}

/* ==========================================================================
   Boot
   ========================================================================== */

.boot {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  background: rgba(250, 251, 255, 0.7);
  backdrop-filter: blur(26px) saturate(1.25);
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
  animation: boot-auto-out 0.6s 1.6s var(--ease) forwards;
}

.boot p {
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.boot__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-inline: auto;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue) 0%, var(--orange) 52%, var(--pink) 100%);
  border-radius: 44% 56% 58% 42% / 48% 44% 56% 52%;
  box-shadow: 0 18px 40px -18px rgba(70, 92, 160, 0.65), var(--inset-light);
  animation: mark-morph 2.4s var(--ease) infinite alternate;
}

.boot__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: inherit;
}

body.is-ready .boot {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

@keyframes boot-auto-out {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@keyframes mark-morph {
  0% { border-radius: 44% 56% 58% 42% / 48% 44% 56% 52%; transform: rotate(-2deg) scale(1); }
  100% { border-radius: 56% 44% 42% 58% / 54% 58% 42% 46%; transform: rotate(3deg) scale(1.04); }
}

.boot-skeleton {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto 80px;
}

body.is-ready .boot-skeleton {
  display: none;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform: translateX(-100%);
  animation: skeleton-shine 1.8s var(--ease) infinite;
}

.skeleton--title { width: 58%; height: 58px; margin-bottom: 24px; }
.skeleton--line { width: 76%; height: 20px; margin-bottom: 44px; }
.skeleton--cards { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; border: 0; background: none; }
.skeleton--cards i { height: 230px; border-radius: 28px; background: rgba(255, 255, 255, 0.44); border: 1px solid rgba(255, 255, 255, 0.7); }
.skeleton--cards i:last-child { display: none; }

@keyframes skeleton-shine {
  to { transform: translateX(100%); }
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 100;
  width: min(var(--container), calc(100% - 32px));
  transform: translateX(-50%);
  transition: top 0.4s var(--ease), width 0.4s var(--ease);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 12px 0 14px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  box-shadow: 0 18px 40px -28px rgba(36, 53, 92, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.55);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}

.site-header.is-scrolled {
  top: 10px;
}

.site-header.is-scrolled .nav-shell {
  height: 60px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 40px -26px rgba(36, 53, 92, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  border-radius: 999px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(140deg, var(--blue) 0%, #9eabff 38%, var(--orange) 72%, var(--pink) 100%);
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 18px -10px rgba(64, 86, 151, 0.65);
  transition: transform 0.55s var(--spring), border-radius 0.55s var(--spring);
}

.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.08);
  border-radius: 56% 44% 44% 56% / 46% 56% 44% 54%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.05;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.045em;
}

.brand__text small {
  color: var(--ink-3);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  color: var(--ink-2);
  font-size: 13.5px;
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.4s var(--spring), transform 0.4s var(--spring);
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  transform: translateY(-1px);
}

.nav-links a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 2px 8px -3px rgba(44, 62, 105, 0.14), inset 0 1px 0 #fff;
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: color 0.25s, background 0.35s var(--ease), transform 0.45s var(--spring), box-shadow 0.35s;
}

.icon-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-sm);
}

.icon-btn:active {
  transform: scale(0.92);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 9px 0 17px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #6d91ee, #849ff3 55%, #e9a68a);
  border-radius: 999px;
  box-shadow: 0 10px 22px -12px rgba(72, 98, 172, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.5s var(--spring), box-shadow 0.4s var(--ease), filter 0.3s;
}

.nav-cta .icon {
  width: 24px;
  height: 24px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition: transform 0.45s var(--spring);
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.08);
  box-shadow: 0 16px 28px -14px rgba(72, 98, 172, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-cta:hover .icon {
  transform: rotate(45deg);
}

.nav-cta:active {
  transform: scale(0.95);
}

.menu-toggle {
  display: none;
}

.menu-toggle__lines {
  display: grid;
  gap: 5px;
  width: 16px;
}

.menu-toggle__lines i {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--spring), opacity 0.3s;
}

.menu-toggle.is-open .menu-toggle__lines i:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__lines i:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  transform-origin: top center;
  animation: menu-in 0.4s var(--spring-soft) both;
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 16px;
  transition: background 0.25s;
}

.mobile-menu nav a:hover,
.mobile-menu nav a.is-active {
  background: rgba(255, 255, 255, 0.72);
}

.mobile-menu nav a span {
  font-family: var(--font-display);
  font-size: 24px;
}

.mobile-menu nav a small {
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mobile-menu__foot {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 8px 2px;
  border-top: 1px solid var(--line);
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  color: var(--ink-2);
  font-size: 13px;
  border-radius: 999px;
}

.text-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   Shared typography & controls
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 159, 112, 0.12);
}

.eyebrow--blue i { background: var(--blue); box-shadow: 0 0 0 4px rgba(98, 140, 240, 0.13); }
.eyebrow--pink i { background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 166, 194, 0.14); }
.eyebrow--yellow i { background: #e8b833; box-shadow: 0 0 0 4px rgba(255, 214, 107, 0.2); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.section-head h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section-head__side {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 2px;
  color: var(--ink-2);
  font-size: 13.5px;
  transition: color 0.25s;
}

.text-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.22;
  transform-origin: right;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.text-link .icon {
  transition: transform 0.45s var(--spring);
}

.text-link:hover {
  color: var(--ink);
}

.text-link:hover::after {
  opacity: 0.55;
  transform: scaleX(0.72);
}

.text-link:hover .icon {
  transform: translate(2px, -2px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  color: var(--ink-2);
  font-size: 11px;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 21px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transform: translateZ(0);
  transition: transform 0.55s var(--spring), box-shadow 0.4s var(--ease), background 0.3s, border-color 0.3s;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.45s var(--spring);
}

.btn:hover .icon {
  transform: translate(2px, -2px);
}

.btn:active {
  transform: scale(0.95);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #5d86ea 0%, #7c97f0 54%, #df9f86 100%);
  box-shadow: 0 16px 30px -16px rgba(63, 102, 197, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  pointer-events: none;
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 24px 38px -18px rgba(63, 102, 197, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--glass {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.76);
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 18px 32px -20px rgba(36, 53, 92, 0.32), inset 0 1px 0 #fff;
}

.btn--ink {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 26px -16px rgba(20, 28, 46, 0.55);
}

.btn--ink:hover {
  transform: translateY(-3px) scale(1.02);
  background: #283046;
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.spinner {
  width: 15px;
  height: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 30px;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(350px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding-bottom: 10px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 7px 14px 7px 9px;
  color: var(--ink-2);
  font-size: 11px;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero__badge b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  background: var(--yellow-soft);
  border-radius: 999px;
}

.hero__badge b::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #e8a820;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(232, 168, 32, 0.15);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7.2vw, 6.25rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  padding: 0.02em 0.03em 0.1em 0;
}

.hero h1 .line > span {
  display: inline-block;
  transform: translateY(112%);
  animation: line-up 0.95s var(--spring-soft) forwards;
}

.hero h1 .line:nth-child(2) > span {
  animation-delay: 0.08s;
}

.hero h1 em {
  position: relative;
  z-index: 0;
  font-style: normal;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: -0.03em;
  right: -0.04em;
  bottom: 0.06em;
  z-index: -1;
  height: 0.26em;
  background: linear-gradient(90deg, rgba(255, 214, 107, 0.62), rgba(255, 166, 194, 0.42));
  border-radius: 999px;
  transform: rotate(-1.1deg) scaleX(0);
  transform-origin: left;
  animation: marker-in 0.9s 0.55s var(--spring-soft) forwards;
}

.hero__lead {
  max-width: 510px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.92;
  opacity: 0;
  animation: soft-up 0.8s 0.38s var(--ease) forwards;
}

.hero__lead strong {
  color: var(--ink);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  opacity: 0;
  animation: soft-up 0.8s 0.5s var(--ease) forwards;
}

.hero__micro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: soft-up 0.8s 0.62s var(--ease) forwards;
}

.hero__micro span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__micro i {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
}

.hero__micro span:nth-child(2) i { background: var(--orange); }
.hero__micro span:nth-child(3) i { background: var(--pink); }

@keyframes line-up {
  to { transform: translateY(0); }
}

@keyframes marker-in {
  to { transform: rotate(-1.1deg) scaleX(1); }
}

@keyframes soft-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Portrait card */

.hero__visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  opacity: 0;
  animation: visual-in 1.1s 0.2s var(--spring-soft) forwards;
}

@keyframes visual-in {
  from { opacity: 0; transform: translateY(22px) scale(0.96) rotate(1deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

.portrait {
  position: relative;
  width: min(100%, 398px);
  padding: 15px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 44px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), box-shadow 0.4s;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  border-radius: 37px;
  background:
    radial-gradient(70% 60% at 24% 10%, rgba(255, 255, 255, 0.94), transparent 60%),
    linear-gradient(150deg, rgba(220, 232, 255, 0.9), rgba(255, 243, 208, 0.75) 48%, rgba(255, 220, 229, 0.82));
  overflow: hidden;
}

.portrait::after {
  content: "";
  position: absolute;
  top: 34px;
  right: 30px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(43, 60, 100, 0.14), inset 0 1px 2px #fff;
}

.portrait__halo {
  position: absolute;
  inset: 4%;
  z-index: 0;
  overflow: hidden;
  border-radius: 38px;
}

.portrait__halo::before {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 380px;
  height: 380px;
  background: conic-gradient(from 0deg, rgba(98, 140, 240, 0.28), rgba(255, 214, 107, 0.3), rgba(255, 159, 112, 0.25), rgba(255, 166, 194, 0.34), rgba(98, 140, 240, 0.28));
  border-radius: 50%;
  filter: blur(12px);
  transform: translate(-50%, -50%);
  animation: halo-spin 22s linear infinite;
}

@keyframes halo-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.portrait__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px 16px;
}

.portrait__frame {
  position: relative;
  width: 74%;
  aspect-ratio: 1;
  padding: 7px;
  margin-top: 7px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 20px 40px -24px rgba(48, 63, 106, 0.45), inset 0 1px 0 #fff;
}

.portrait__frame::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px dashed rgba(66, 88, 145, 0.22);
  border-radius: 50%;
  animation: ring-spin 38s linear infinite;
}

.portrait__frame::after {
  content: "";
  position: absolute;
  top: 8%;
  right: 3%;
  z-index: 3;
  width: 23px;
  height: 23px;
  background: var(--yellow);
  border: 4px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  box-shadow: 0 6px 14px -5px rgba(180, 130, 20, 0.45);
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #f0f1f5;
}

.portrait__name {
  margin-top: 19px;
  text-align: center;
}

.portrait__name h2 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
}

.portrait__name p {
  margin-top: 9px;
  color: var(--ink-2);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.portrait__chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.portrait__chips span {
  padding: 5px 10px;
  color: var(--ink-2);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.portrait__foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portrait__foot i {
  width: 5px;
  height: 5px;
  background: #75c99a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(117, 201, 154, 0.18);
}

a.portrait__foot {
  transition: color 0.25s;
}

a.portrait__foot:hover {
  color: var(--ink-2);
}

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 10px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 16px;
  box-shadow: 0 14px 30px -18px rgba(38, 54, 93, 0.35), inset 0 1px 0 #fff;
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  animation: float-soft 6s ease-in-out infinite;
}

.float-card b {
  display: block;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.float-card small {
  display: block;
  margin-top: 1px;
  color: var(--ink-3);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.float-card__icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  border-radius: 10px;
}

.float-card__icon .icon {
  width: 14px;
  height: 14px;
}

.float-card--one {
  top: 5%;
  left: -7%;
  animation-delay: -1.4s;
}

.float-card--two {
  right: -7%;
  bottom: 17%;
  animation-delay: -3.2s;
}

.float-card--three {
  left: -3%;
  bottom: 5%;
  color: var(--ink-2);
  animation-delay: -4.6s;
  padding: 8px 12px;
}

.float-card--three span {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.float-card--three .spark {
  color: var(--orange);
}

@keyframes float-soft {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-0.8deg); }
  50% { transform: translate3d(0, -9px, 0) rotate(0.8deg); }
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 38px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  position: relative;
  display: block;
  width: 42px;
  height: 1px;
  background: rgba(56, 72, 110, 0.18);
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink-2);
  transform: translateX(-100%);
  animation: scroll-line 2.4s var(--ease) infinite;
}

@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  48%, 100% { transform: translateX(100%); }
}

/* ==========================================================================
   Post cards and cover art
   ========================================================================== */

.posts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.post-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 22px;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px;
  background: rgba(255, 255, 255, 0.47);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transition: transform 0.55s var(--spring-soft), box-shadow 0.45s var(--ease), background 0.35s;
  overflow: hidden;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 5;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.8), transparent 32%, transparent 68%, rgba(255, 255, 255, 0.55)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.post-card:hover {
  transform: translateY(-7px);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 34px 70px -38px rgba(34, 50, 91, 0.42), inset 0 1px 0 #fff;
}

.post-card:active {
  transform: translateY(-2px) scale(0.995);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 19px 13px 12px;
}

.post-card--lead .post-card__body {
  padding: 23px 17px 16px;
}

.post-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.post-card__meta .dot {
  width: 3px;
  height: 3px;
  background: var(--ink-3);
  border-radius: 50%;
  opacity: 0.55;
}

.post-card__meta .category {
  color: var(--blue-deep);
  font-weight: 500;
}

.post-card h3 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.post-card--lead h3 {
  font-size: clamp(1.8rem, 2.7vw, 2.5rem);
}

.post-card h3 a {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.5s var(--ease);
}

.post-card:hover h3 a {
  background-size: 100% 1px;
}

.post-card__excerpt {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.8;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-card--lead .post-card__excerpt {
  font-size: 14.5px;
  -webkit-line-clamp: 2;
}

.post-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
}

.post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.post-card__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transition: transform 0.45s var(--spring), background 0.3s, color 0.3s;
}

.post-card:hover .post-card__arrow {
  color: #fff;
  background: var(--ink);
  transform: rotate(45deg) scale(1.06);
}

.post-card__arrow .icon {
  width: 15px;
  height: 15px;
}

.post-card--mini {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  padding: 10px;
  gap: 4px;
}

.post-card--mini .post-card__body {
  padding: 8px 10px 7px;
}

.post-card--mini h3 {
  margin-top: 8px;
  font-size: clamp(1.16rem, 1.5vw, 1.38rem);
  line-height: 1.32;
}

.post-card--mini .post-card__excerpt {
  display: none;
}

.post-card--mini .post-card__foot {
  padding-top: 12px;
}

.post-card--mini .post-card__arrow {
  width: 27px;
  height: 27px;
}

.post-card--mini .post-card__tags {
  display: none;
}

.post-card--mini .post-card__meta {
  font-size: 9px;
  gap: 7px;
}

/* Compact art for the narrow thumbnail cards. */

.post-card--mini .art__label {
  top: 9px;
  left: 9px;
  font-size: 6px;
}

.post-card--mini .art__caption {
  display: none;
}

.post-card--mini .bridge {
  inset: 17% 15% 12%;
  flex-direction: column;
  gap: 5px;
}

.post-card--mini .bridge__node {
  width: 100%;
  height: auto;
  aspect-ratio: 2.45 / 1;
  padding: 3px;
  border-radius: 9px;
}

.post-card--mini .bridge__node--main {
  width: 100%;
  transform: none;
}

.post-card--mini .bridge__node b {
  font-size: 8.5px;
}

.post-card--mini .bridge__node small {
  font-size: 4px;
}

.post-card--mini .bridge__wire {
  flex: 1;
  width: 1px;
  min-height: 8px;
  height: auto;
  background-image: linear-gradient(180deg, rgba(55, 78, 128, 0.25) 50%, transparent 50%);
  background-size: 1px 6px;
}

.post-card--mini .bridge__wire::after {
  top: 0;
  left: 50%;
  width: 4px;
  height: 4px;
  transform: translate(-50%, 0);
  animation: wire-travel-y 3.2s var(--ease) infinite;
}

.post-card--mini .bridge__wire--two::after {
  animation-delay: 1.1s;
}

@keyframes wire-travel-y {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.post-card--mini .terminal {
  top: 16%;
  left: 8%;
  width: 84%;
  height: 70%;
  border-radius: 8px;
}

.post-card--mini .terminal__bar {
  height: 14px;
  padding: 0 6px;
}

.post-card--mini .terminal__body {
  padding: 5px 7px;
  font-size: 4.3px;
  line-height: 1.55;
}

.post-card--mini .tool-badge {
  top: 7%;
  right: 6%;
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.post-card--mini .tool-badge .icon {
  width: 11px;
  height: 11px;
}

.post-card--mini .art--web .webplay__panel {
  width: 62%;
  height: 60%;
}

.post-card--mini .webplay__swatches {
  gap: 3px;
  padding: 4px 5px;
  left: 5%;
  bottom: 7%;
}

.post-card--mini .webplay__swatches i {
  width: 7px;
  height: 7px;
}

.archive-art .bridge,
.archive-art .webplay,
.archive-art .terminal,
.archive-art .tool-badge,
.archive-art .game-world,
.archive-art .vinyl,
.archive-art .music-notes,
.archive-art .paper {
  display: none;
}

.art {
  position: relative;
  flex: none;
  overflow: hidden;
  border-radius: 23px;
  background: #eaf0ff;
  isolation: isolate;
}

.post-card--lead .art {
  aspect-ratio: 16 / 9.7;
}

.post-card--mini .art {
  width: 100%;
  height: 100%;
  min-height: 128px;
  border-radius: 21px;
}

.art * {
  pointer-events: none;
}

.art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 38%, rgba(255, 255, 255, 0.06));
  pointer-events: none;
}

.art__grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%);
  mask-image: linear-gradient(135deg, #000, transparent 70%);
}

.art__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.75;
}

.art__label {
  position: absolute;
  top: 16px;
  left: 17px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(27, 34, 50, 0.55);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.art__label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}

.art__caption {
  position: absolute;
  right: 16px;
  bottom: 13px;
  z-index: 4;
  color: rgba(27, 34, 50, 0.4);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
}

/* Cover: bridge */

.art--bridge {
  background:
    radial-gradient(100% 100% at 12% 8%, rgba(255, 255, 255, 0.7), transparent 46%),
    linear-gradient(135deg, #d9e5ff 0%, #edf3ff 39%, #fff7e4 100%);
}

.art--bridge .orb-a {
  top: -24%;
  right: -4%;
  width: 58%;
  aspect-ratio: 1;
  background: rgba(255, 202, 116, 0.62);
  filter: blur(18px);
}

.art--bridge .orb-b {
  bottom: -22%;
  left: 4%;
  width: 44%;
  aspect-ratio: 1;
  background: rgba(255, 161, 190, 0.34);
  filter: blur(22px);
}

.bridge {
  position: absolute;
  inset: 12% 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.bridge__node {
  position: relative;
  display: grid;
  place-items: center;
  gap: 1px;
  width: 24%;
  aspect-ratio: 1 / 1.04;
  padding: 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  box-shadow: 0 18px 32px -24px rgba(45, 65, 115, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bridge__node b {
  font-family: var(--font-display);
  font-size: clamp(14px, 2.1vw, 23px);
  font-weight: 400;
  line-height: 1;
}

.bridge__node small {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.7vw, 7px);
  letter-spacing: 0.08em;
}

.bridge__node--main {
  width: 28%;
  background: linear-gradient(150deg, rgba(97, 139, 238, 0.9), rgba(124, 150, 239, 0.76));
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-3%);
  box-shadow: 0 24px 44px -24px rgba(56, 89, 176, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.bridge__node--main b,
.bridge__node--main small {
  color: #fff;
}

.bridge__node--main small {
  opacity: 0.72;
}

.bridge__wire {
  position: relative;
  flex: 1;
  height: 1px;
  background-image: linear-gradient(90deg, rgba(55, 78, 128, 0.22) 50%, transparent 50%);
  background-size: 7px 1px;
}

.bridge__wire::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 159, 112, 0.18);
  transform: translateY(-50%);
  animation: wire-travel 3.2s var(--ease) infinite;
}

.bridge__wire--two::after {
  animation-delay: 1.1s;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(98, 140, 240, 0.16);
}

@keyframes wire-travel {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.art--bridge .art__label { color: rgba(42, 67, 120, 0.5); }

/* Cover: web */

.art--web {
  background:
    radial-gradient(80% 90% at 80% 14%, rgba(255, 245, 189, 0.72), transparent 52%),
    linear-gradient(148deg, #ffe3ed 0%, #f3f1ff 43%, #dceaff 100%);
}

.art--web .orb-a {
  top: -20%;
  left: -12%;
  width: 60%;
  aspect-ratio: 1;
  background: rgba(129, 164, 242, 0.48);
  filter: blur(22px);
}

.webplay {
  position: absolute;
  inset: 13% 9%;
  display: grid;
  place-items: center;
}

.webplay__panel {
  position: absolute;
  width: 58%;
  height: 72%;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  box-shadow: 0 26px 42px -28px rgba(44, 59, 102, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.webplay__panel--back {
  transform: translate(-16%, 7%) rotate(-7deg);
  opacity: 0.55;
}

.webplay__panel--front {
  transform: translate(6%, -3%) rotate(4deg);
  background: rgba(255, 255, 255, 0.58);
}

.webplay__panel--front::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 15%;
  width: 46%;
  height: 5px;
  background: rgba(47, 64, 108, 0.24);
  border-radius: 99px;
  box-shadow: 0 13px 0 -1.5px rgba(47, 64, 108, 0.14), 0 26px 0 -1.5px rgba(47, 64, 108, 0.1);
}

.webplay__cursor {
  position: absolute;
  z-index: 5;
  top: 45%;
  left: 59%;
  width: 14px;
  height: 19px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 62%, 58% 66%, 38% 100%);
  transform: rotate(-8deg);
  filter: drop-shadow(0 4px 4px rgba(30, 40, 70, 0.2));
  animation: cursor-drift 5s ease-in-out infinite;
}

.webplay__swatches {
  position: absolute;
  z-index: 5;
  bottom: 6%;
  left: 3%;
  display: flex;
  gap: 7px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 12px 22px -16px rgba(46, 62, 104, 0.4);
}

.webplay__swatches i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.webplay__swatches i:nth-child(2) { background: var(--yellow); }
.webplay__swatches i:nth-child(3) { background: var(--orange); }
.webplay__swatches i:nth-child(4) { background: var(--pink); }

@keyframes cursor-drift {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  50% { transform: translate(9px, -7px) rotate(-4deg); }
}

/* Cover: tool */

.art--tool {
  background:
    radial-gradient(90% 80% at 85% 16%, rgba(255, 244, 188, 0.86), transparent 55%),
    linear-gradient(140deg, #fff0c7 0%, #ffe8b9 44%, #ffdcd0 100%);
}

.art--tool .orb-a {
  left: 5%;
  bottom: -28%;
  width: 62%;
  aspect-ratio: 1;
  background: rgba(255, 157, 111, 0.38);
  filter: blur(20px);
}

.terminal {
  position: absolute;
  top: 18%;
  left: 13%;
  width: 70%;
  height: 64%;
  overflow: hidden;
  background: rgba(34, 39, 55, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 15px;
  box-shadow: 0 24px 44px -25px rgba(51, 42, 20, 0.66), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: rotate(-2deg);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal__bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff9a88;
}

.terminal__bar i:nth-child(2) { background: #ffd66b; }
.terminal__bar i:nth-child(3) { background: #8bd7aa; }

.terminal__body {
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.85vw, 9px);
  line-height: 1.9;
}

.terminal__body b {
  color: #ffd66b;
  font-weight: 400;
}

.terminal__body em {
  color: #96c5ff;
  font-style: normal;
}

.terminal__body .cursor {
  display: inline-block;
  width: 5px;
  height: 9px;
  margin-left: 2px;
  background: #ffd66b;
  vertical-align: -1px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.tool-badge {
  position: absolute;
  top: 11%;
  right: 7%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  color: #7e5318;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 14px 24px -16px rgba(126, 92, 30, 0.4);
  transform: rotate(8deg);
}

.tool-badge .icon {
  width: 22px;
  height: 22px;
}

/* Cover: game */

.art--game {
  background:
    radial-gradient(90% 90% at 76% 10%, rgba(255, 255, 255, 0.7), transparent 44%),
    linear-gradient(145deg, #f7d9e5 0%, #e6dcff 42%, #cfe4ff 100%);
}

.art--game .orb-a {
  top: -8%;
  right: 12%;
  width: 36%;
  aspect-ratio: 1;
  background: rgba(255, 246, 195, 0.85);
  filter: blur(6px);
}

.game-world {
  position: absolute;
  inset: 9% 8% 0;
  overflow: hidden;
}

.game-world__hill {
  position: absolute;
  bottom: -18%;
  left: -10%;
  width: 78%;
  height: 52%;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.55), rgba(137, 173, 238, 0.35));
  border-radius: 50% 50% 0 0;
  transform: rotate(-8deg);
  box-shadow: inset 0 18px 30px rgba(255, 255, 255, 0.35);
}

.game-world__hill--two {
  right: -16%;
  bottom: -26%;
  left: auto;
  width: 84%;
  height: 60%;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.5), rgba(255, 167, 196, 0.34));
  transform: rotate(7deg);
}

.game-cube {
  position: absolute;
  top: 34%;
  left: 44%;
  z-index: 4;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 18px 30px -16px rgba(57, 71, 122, 0.4), inset 0 1px 0 #fff;
  transform: rotate(12deg) skewY(-3deg);
  animation: cube-float 5s ease-in-out infinite;
}

.game-cube::before,
.game-cube::after {
  content: "";
  position: absolute;
  background: rgba(92, 131, 220, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  inset: 6px;
}

.game-cube::after {
  inset: 13px;
  background: rgba(255, 193, 118, 0.36);
}

@keyframes cube-float {
  0%, 100% { transform: translateY(0) rotate(12deg) skewY(-3deg); }
  50% { transform: translateY(-9px) rotate(6deg) skewY(-3deg); }
}

.game-world__star {
  position: absolute;
  z-index: 4;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.game-world__star--a { top: 16%; left: 20%; }
.game-world__star--b { top: 31%; right: 13%; width: 3px; height: 3px; }
.game-world__star--c { top: 10%; right: 35%; width: 4px; height: 4px; }

.game-world__tag {
  position: absolute;
  right: 4%;
  bottom: 10%;
  z-index: 5;
  padding: 5px 9px;
  color: rgba(50, 63, 96, 0.58);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
}

/* Cover: music */

.art--music {
  background:
    radial-gradient(85% 85% at 14% 10%, rgba(255, 255, 255, 0.8), transparent 46%),
    linear-gradient(142deg, #ffe2c9 0%, #ffe9cd 40%, #ffd6df 100%);
}

.art--music .orb-a {
  right: -10%;
  bottom: -30%;
  width: 66%;
  aspect-ratio: 1;
  background: rgba(255, 154, 128, 0.36);
  filter: blur(20px);
}

.vinyl {
  position: absolute;
  top: 50%;
  left: 37%;
  width: 46%;
  aspect-ratio: 1;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 50%, #ffd66b 0 14%, #32313c 14.5% 15%, #3c3a46 15.5% 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 28px 42px -22px rgba(87, 55, 45, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%) rotate(0);
  animation: vinyl-spin 18s linear infinite;
}

.vinyl::before {
  content: "";
  position: absolute;
  inset: 17%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.vinyl::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #25232b;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@keyframes vinyl-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.music-notes {
  position: absolute;
  z-index: 4;
  right: 13%;
  bottom: 12%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 38px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 12px 22px -14px rgba(96, 58, 45, 0.4);
}

.music-notes i {
  width: 3px;
  height: 30%;
  background: var(--orange);
  border-radius: 99px;
  animation: equalize 1.4s ease-in-out infinite alternate;
}

.music-notes i:nth-child(2) { height: 70%; animation-delay: -0.3s; background: var(--pink); }
.music-notes i:nth-child(3) { height: 45%; animation-delay: -0.65s; background: var(--yellow); }
.music-notes i:nth-child(4) { height: 90%; animation-delay: -0.15s; background: var(--blue); }

@keyframes equalize {
  to { height: 22%; }
}

/* Cover: age */

.art--age {
  background:
    radial-gradient(90% 80% at 20% 10%, rgba(255, 255, 255, 0.9), transparent 50%),
    linear-gradient(145deg, #fff4cf 0%, #fff9e9 52%, #e9f0ff 100%);
}

.art--age .orb-a {
  top: -20%;
  right: -2%;
  width: 49%;
  aspect-ratio: 1;
  background: rgba(255, 204, 88, 0.55);
  filter: blur(16px);
}

.paper {
  position: absolute;
  top: 15%;
  left: 17%;
  width: 66%;
  height: 70%;
  padding: 12% 8% 0;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 26px 38px -28px rgba(88, 74, 37, 0.45), inset 0 1px 0 #fff;
  transform: rotate(-3deg);
}

.paper::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 38%;
  width: 34%;
  height: 18px;
  background: rgba(255, 214, 107, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.45);
  transform: rotate(3deg);
  box-shadow: 0 4px 8px rgba(120, 100, 40, 0.08);
}

.paper__sun {
  position: absolute;
  top: 13%;
  right: 13%;
  width: 25px;
  height: 25px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 214, 107, 0.18);
}

.paper__line {
  height: 5px;
  margin-bottom: 11px;
  background: rgba(56, 65, 87, 0.14);
  border-radius: 99px;
}

.paper__line:nth-child(2) { width: 74%; }
.paper__line:nth-child(3) { width: 88%; }
.paper__line:nth-child(4) { width: 52%; }

.paper__sign {
  position: absolute;
  right: 12%;
  bottom: 12%;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: rgba(65, 73, 94, 0.35);
}

.art--age .art__caption { color: rgba(65, 73, 94, 0.35); }

/* ==========================================================================
   Project
   ========================================================================== */

.project-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(30px, 5vw, 74px);
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(224, 234, 255, 0.72), transparent 55%),
    radial-gradient(60% 80% at 0% 100%, rgba(255, 230, 210, 0.62), transparent 58%),
    rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}

.project-panel::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -100px;
  width: 420px;
  height: 420px;
  background: conic-gradient(from 90deg, rgba(255, 214, 107, 0.3), rgba(255, 166, 194, 0.2), rgba(98, 140, 240, 0.24), rgba(255, 214, 107, 0.3));
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.7;
  pointer-events: none;
}

.project-panel__copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  color: #3e7e5c;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.project-status::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #64bd8a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(100, 189, 138, 0.16);
  animation: status-pulse 2.6s ease-in-out infinite;
}

@keyframes status-pulse {
  50% { box-shadow: 0 0 0 6px rgba(100, 189, 138, 0.04); }
}

.project-panel h2 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(3.7rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.project-panel h2 span {
  display: block;
  margin-top: 17px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.project-panel__desc {
  max-width: 520px;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.92;
}

.project-panel__note {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.project-tags span {
  padding: 6px 11px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.arch {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  box-shadow: 0 32px 60px -38px rgba(41, 56, 99, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: rotate(1.4deg);
  transition: transform 0.6s var(--spring-soft);
}

.arch:hover {
  transform: rotate(0) translateY(-4px);
}

.arch__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 5px 14px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.arch__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.arch__live::before {
  content: "";
  width: 4px;
  height: 4px;
  background: #64bd8a;
  border-radius: 50%;
}

.arch__canvas {
  position: relative;
  padding: 22px 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    rgba(239, 244, 255, 0.6);
  background-size: 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
}

.arch__flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.arch__node {
  display: grid;
  place-items: center;
  gap: 1px;
  width: 27%;
  aspect-ratio: 1 / 1.06;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 10px 24px -18px rgba(49, 66, 110, 0.4), inset 0 1px 0 #fff;
}

.arch__node b {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.6vw, 18px);
  font-weight: 400;
  line-height: 1;
}

.arch__node small {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.06em;
}

.arch__node--qsick {
  background: linear-gradient(145deg, rgba(87, 132, 236, 0.95), rgba(109, 143, 241, 0.82));
  border-color: rgba(255, 255, 255, 0.66);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -18px rgba(54, 82, 164, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.arch__node--qsick b,
.arch__node--qsick small {
  color: #fff;
}

.arch__node--qsick small {
  opacity: 0.72;
}

.arch__wire {
  position: relative;
  flex: 1;
  height: 1px;
  background-image: linear-gradient(90deg, rgba(66, 86, 135, 0.28) 50%, transparent 50%);
  background-size: 6px 1px;
}

.arch__wire::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: wire-travel 3.8s var(--ease) infinite;
}

.arch__wire--second::before {
  animation-delay: 1.4s;
  background: var(--blue);
}

.arch__ports {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.arch__ports span {
  padding: 4px 9px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
}

.arch__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 5px 2px;
  color: var(--ink-3);
  font-size: 9px;
}

.arch__foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.arch__foot i {
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
}

.arch-sticker {
  position: absolute;
  z-index: 3;
  right: -17px;
  bottom: -16px;
  padding: 8px 12px;
  color: #7f5c24;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  background: rgba(255, 238, 178, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 9px;
  box-shadow: 0 8px 18px -10px rgba(126, 100, 45, 0.45);
  transform: rotate(5deg);
}

/* ==========================================================================
   Interests
   ========================================================================== */

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

.interest-card {
  position: relative;
  overflow: hidden;
  min-height: 206px;
  padding: 27px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.55s var(--spring-soft), box-shadow 0.4s, background 0.3s;
}

.interest-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -50px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.6;
  pointer-events: none;
}

.interest-card--code::before { background: rgba(152, 184, 255, 0.6); }
.interest-card--game::before { background: rgba(255, 196, 217, 0.65); }
.interest-card--music::before { background: rgba(255, 214, 107, 0.62); }

.interest-card:hover {
  transform: translateY(-6px) rotate(-0.25deg);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 30px 56px -36px rgba(34, 50, 91, 0.38), inset 0 1px 0 #fff;
}

.interest-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.interest-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--blue-deep);
  background: rgba(223, 233, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 43% 57% 54% 46% / 48% 43% 57% 52%;
  box-shadow: inset 0 1px 0 #fff, 0 10px 18px -12px rgba(55, 81, 145, 0.4);
  transition: transform 0.6s var(--spring), border-radius 0.6s var(--spring);
}

.interest-card:hover .interest-icon {
  transform: rotate(-8deg) scale(1.08);
  border-radius: 56% 44% 43% 57% / 40% 56% 44% 60%;
}

.interest-card--game .interest-icon {
  color: #ad5b77;
  background: rgba(255, 225, 234, 0.82);
}

.interest-card--music .interest-icon {
  color: #93701d;
  background: rgba(255, 241, 189, 0.86);
}

.interest-icon .icon {
  width: 22px;
  height: 22px;
}

.interest-card__index {
  color: rgba(68, 81, 110, 0.34);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.interest-card h3 {
  margin-top: 23px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.interest-card p {
  margin-top: 9px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.85;
}

.interest-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 11px;
  transition: color 0.25s, gap 0.35s var(--spring);
}

.interest-card__link .icon {
  width: 12px;
  height: 12px;
}

.interest-card:hover .interest-card__link {
  gap: 9px;
  color: var(--ink);
}

.mini-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}

.mini-eq i {
  width: 2px;
  height: 35%;
  background: #c1931b;
  border-radius: 99px;
  animation: equalize 1.2s ease-in-out infinite alternate;
}

.mini-eq i:nth-child(2) { height: 70%; animation-delay: -0.25s; }
.mini-eq i:nth-child(3) { height: 50%; animation-delay: -0.5s; }
.mini-eq i:nth-child(4) { height: 85%; animation-delay: -0.15s; }

/* ==========================================================================
   Guestbook teaser & notes
   ========================================================================== */

.guestbook-teaser {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(68% 90% at 96% 10%, rgba(255, 228, 178, 0.6), transparent 58%),
    radial-gradient(64% 90% at 2% 100%, rgba(255, 207, 225, 0.45), transparent 58%),
    rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.guestbook-teaser__copy h2 {
  margin-top: 15px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.guestbook-teaser__copy p {
  max-width: 390px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.9;
}

.guestbook-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.guestbook-teaser__count {
  color: var(--ink-3);
  font-size: 11px;
}

.guestbook-teaser__count b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}

.note-board {
  position: relative;
  min-height: 280px;
  padding: 19px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.note-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(38, 52, 86, 0.13) 0.65px, transparent 0.65px);
  background-size: 18px 18px;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(140deg, #000, transparent 80%);
  mask-image: linear-gradient(140deg, #000, transparent 80%);
  border-radius: inherit;
  pointer-events: none;
}

.sticky-note {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 88%;
  padding: 17px 18px 14px;
  background: rgba(255, 246, 199, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  box-shadow: 0 14px 24px -18px rgba(83, 67, 32, 0.42);
  transform: rotate(-2.2deg);
  transition: transform 0.45s var(--spring-soft), box-shadow 0.3s;
}

.sticky-note + .sticky-note {
  margin-top: -3px;
  margin-left: auto;
  background: rgba(255, 224, 233, 0.9);
  transform: rotate(1.7deg);
}

.sticky-note.sticky-note--ghost {
  margin-top: 17px !important;
  margin-left: 4% !important;
  background: rgba(255, 255, 255, 0.32);
  border: 1px dashed rgba(58, 75, 114, 0.22);
  box-shadow: none;
  transform: rotate(1.2deg);
}

.sticky-note.sticky-note--ghost .sticky-note__pin {
  background: var(--blue);
  border-color: rgba(255, 255, 255, 0.8);
}

.sticky-note.sticky-note--ghost .sticky-note__head {
  color: var(--ink-3);
}

.sticky-note.sticky-note--ghost .sticky-note__head b {
  color: var(--ink-2);
}

.sticky-note.sticky-note--ghost p {
  color: var(--ink-3);
}

.sticky-note:hover {
  z-index: 4;
  transform: rotate(0) translateY(-4px) scale(1.015);
  box-shadow: 0 24px 34px -22px rgba(83, 67, 32, 0.5);
}

.sticky-note__pin {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--orange);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(90, 60, 30, 0.26);
}

.sticky-note__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(63, 52, 34, 0.6);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.sticky-note__head b {
  color: #4a3c27;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.sticky-note p {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: rgba(55, 46, 32, 0.82);
  font-size: 12.5px;
  line-height: 1.75;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notes-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

.notes-loading {
  display: grid;
  gap: 12px;
  padding: 12px 2px;
}

.notes-loading i {
  display: block;
  width: 82%;
  height: 78px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  animation: soft-pulse 1.6s ease-in-out infinite;
}

.notes-loading i:nth-child(2) {
  width: 72%;
  margin-left: auto;
  animation-delay: 0.2s;
}

@keyframes soft-pulse {
  50% { opacity: 0.5; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  padding: 64px 0 30px;
}

.footer-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(38px, 6vw, 90px);
  padding: clamp(30px, 5vw, 56px);
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(226, 236, 255, 0.7), transparent 58%),
    radial-gradient(60% 90% at 0% 100%, rgba(255, 239, 198, 0.56), transparent 60%),
    rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  background: conic-gradient(from 120deg, rgba(255, 214, 107, 0.32), rgba(255, 166, 194, 0.2), rgba(98, 140, 240, 0.22), rgba(255, 214, 107, 0.32));
  border-radius: 50%;
  filter: blur(38px);
  pointer-events: none;
}

.footer-lead {
  position: relative;
  z-index: 2;
}

.footer-lead h2 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.footer-lead__copy {
  max-width: 390px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.9;
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  padding-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
  border-bottom: 1px solid rgba(33, 44, 68, 0.25);
  transition: gap 0.35s var(--spring), border-color 0.3s;
}

.footer-mail .icon {
  width: 14px;
  height: 14px;
}

.footer-mail:hover {
  gap: 11px;
  border-color: var(--ink);
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-content: center;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-col h3 {
  margin-bottom: 5px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 0;
  color: var(--ink-2);
  font-size: 12.5px;
  text-align: left;
  transition: color 0.25s, transform 0.35s var(--spring);
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--ink);
  transform: translateX(2px);
}

.footer-col .u-mono {
  color: var(--ink-3);
  font-size: 10px;
}

.footer-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 3px;
  padding: 0 5px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}

.sound-toggle {
  gap: 7px !important;
}

.sound-toggle small {
  color: var(--ink-3);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  width: 12px;
  height: 12px;
}

.sound-bars i {
  width: 2px;
  height: 35%;
  background: currentColor;
  border-radius: 99px;
}

.sound-toggle[aria-pressed="true"] .sound-bars i {
  animation: equalize 0.9s ease-in-out infinite alternate;
}

.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -0.3s; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -0.55s; }
.sound-toggle[aria-pressed="true"] small { color: #3e7e5c; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 8px 0;
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.footer-bottom__meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-filing {
  margin-top: 10px;
  text-align: center;
  color: var(--ink-3);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Consolas, monospace);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  opacity: 0.68;
  transition: opacity 0.2s ease;
}

.footer-filing:hover {
  opacity: 0.92;
}

.footer-filing__line {
  margin: 0;
  white-space: nowrap;
}

.footer-filing a {
  color: inherit;
  text-decoration: none;
}

.footer-filing a:hover {
  color: var(--blue-500, #2f6bff);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-filing__copyright {
  color: inherit;
}

.status-dot {
  width: 5px;
  height: 5px;
  background: #75c99a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(117, 201, 154, 0.14);
}

/* ==========================================================================
   Search
   ========================================================================== */

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: start center;
  padding: min(13vh, 120px) 22px 30px;
}

.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(243, 246, 253, 0.46);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  animation: fade-in 0.3s var(--ease);
}

.search-panel {
  position: relative;
  z-index: 2;
  width: min(700px, 100%);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 27px;
  box-shadow: 0 50px 100px -40px rgba(38, 53, 95, 0.48), inset 0 1px 0 #fff;
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  animation: search-in 0.45s var(--spring-soft) both;
}

@keyframes search-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-panel__head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.search-panel__head > .icon {
  width: 21px;
  height: 21px;
  color: var(--ink-3);
}

.search-panel__head input {
  flex: 1;
  min-width: 0;
  padding: 5px 0;
  color: var(--ink);
  font-size: 19px;
  background: none;
  border: 0;
  outline: 0;
}

.search-panel__head input::placeholder {
  color: rgba(91, 102, 126, 0.5);
}

.search-panel__head input::-webkit-search-cancel-button {
  display: none;
}

.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 0 7px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(41, 57, 92, 0.12);
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-close {
  display: none;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.search-close .icon {
  width: 13px;
  height: 13px;
}

.search-hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 13px 20px;
  color: var(--ink-3);
  font-size: 10px;
  border-bottom: 1px solid var(--line);
}

.search-hints button {
  padding: 4px 9px;
  color: var(--ink-2);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  transition: background 0.2s, transform 0.3s var(--spring);
}

.search-hints button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.search-results {
  max-height: min(46vh, 390px);
  overflow-y: auto;
  padding: 8px;
}

.search-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  text-align: left;
  border-radius: 14px;
  transition: background 0.2s;
}

.search-result:hover,
.search-result.is-active {
  background: rgba(255, 255, 255, 0.7);
}

.search-result__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--blue-deep);
  background: rgba(223, 233, 255, 0.7);
  border-radius: 11px;
}

.search-result:nth-child(3n + 2) .search-result__icon {
  color: #a97a17;
  background: rgba(255, 241, 189, 0.8);
}

.search-result:nth-child(3n) .search-result__icon {
  color: #ae5e78;
  background: rgba(255, 225, 234, 0.8);
}

.search-result__icon .icon {
  width: 15px;
  height: 15px;
}

.search-result__text {
  min-width: 0;
}

.search-result__text b {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-result__text small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-result mark {
  color: inherit;
  background: rgba(255, 214, 107, 0.52);
  border-radius: 3px;
}

.search-result > .icon {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}

.search-empty {
  padding: 52px 20px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

.search-empty b {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}

.search-panel__foot {
  display: flex;
  gap: 15px;
  padding: 11px 20px;
  color: var(--ink-3);
  font-size: 9px;
  border-top: 1px solid var(--line);
}

.search-panel__foot span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.search-panel__foot kbd {
  padding: 1px 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* ==========================================================================
   Toast & back to top
   ========================================================================== */

.toast-region {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(440px, calc(100% - 32px));
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 11px 16px;
  color: var(--ink);
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 20px 40px -22px rgba(37, 52, 91, 0.4), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
  animation: toast-in 0.5s var(--spring) both;
}

.toast.is-leaving {
  animation: toast-out 0.35s var(--ease) both;
}

.toast .icon {
  width: 15px;
  height: 15px;
  color: #3e8a63;
}

.toast--error .icon {
  color: #c05d5d;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(18px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(10px) scale(0.94); }
}

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.45s var(--spring), background 0.3s, color 0.3s;
}

.to-top .icon {
  width: 17px;
  height: 17px;
}

.to-top:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-4px) scale(1.04);
}

.to-top:active {
  transform: scale(0.9);
}

.to-top__ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  padding: 1px;
  background: conic-gradient(var(--blue) calc(var(--progress, 0) * 1%), transparent 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ==========================================================================
   Inner page header
   ========================================================================== */

.page-head {
  position: relative;
  padding: 158px 0 46px;
}

.page-head__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.page-head h1 {
  margin-top: 15px;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 6.4vw, 5.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.page-head p {
  max-width: 510px;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.9;
}

.page-head__side {
  flex: none;
  padding-bottom: 8px;
  color: var(--ink-3);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 2;
}

.page-head__side b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0;
}

/* ==========================================================================
   Archive
   ========================================================================== */

.archive-section {
  padding-bottom: 100px;
}

.archive-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.archive-search {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1;
  min-width: 0;
  flex: 1;
  padding: 0 12px;
  height: 38px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
}

.archive-search .icon {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}

.archive-search input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  background: none;
  border: 0;
  outline: 0;
}

.archive-search input::placeholder {
  color: var(--ink-3);
}

.tag-filter {
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  gap: 5px;
  flex-wrap: wrap;
}

.tag-filter button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  color: var(--ink-2);
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.35s var(--spring);
}

.tag-filter button small {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8px;
}

.tag-filter button:hover {
  background: rgba(255, 255, 255, 0.76);
  transform: translateY(-1px);
}

.tag-filter button.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px -8px rgba(37, 52, 91, 0.4);
}

.sort-btn {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  color: var(--ink-2);
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.25s;
}

.sort-btn:hover {
  background: rgba(255, 255, 255, 0.76);
}

.sort-btn .icon {
  width: 12px;
  height: 12px;
  transition: transform 0.4s var(--spring);
}

.sort-btn.is-desc .icon {
  transform: rotate(180deg);
}

.archive-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.archive-item {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 126px;
  align-items: center;
  gap: 24px;
  padding: 30px 6px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease), background 0.35s;
}

.archive-item::before {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  top: 7px;
  bottom: 7px;
  z-index: -1;
  background: rgba(255, 255, 255, 0);
  border-radius: 20px;
  transition: background 0.3s;
}

.archive-item:hover::before {
  background: rgba(255, 255, 255, 0.42);
}

.archive-item:hover {
  padding-left: 14px;
  padding-right: 14px;
}

.archive-date {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.8;
}

.archive-date b {
  display: block;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
}

.archive-main {
  min-width: 0;
}

.archive-main h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  transition: color 0.2s;
}

.archive-main p {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.75;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.archive-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 9.5px;
}

.archive-meta .tag {
  height: 22px;
  padding: 0 8px;
  font-size: 9px;
}

.archive-art {
  position: relative;
  width: 126px;
  height: 82px;
  overflow: hidden;
  border-radius: 14px;
  transform: rotate(1.5deg);
  transition: transform 0.55s var(--spring-soft);
}

.archive-item:hover .archive-art {
  transform: rotate(0) scale(1.035);
}

.archive-art .art {
  height: 100%;
  border-radius: 0;
}

.archive-art__tag {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  padding: 4px 8px;
  color: rgba(35, 47, 72, 0.7);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 4px 10px -8px rgba(38, 52, 86, 0.4);
  transform: translate(-50%, -50%) rotate(-2deg);
}

.archive-art .art__label,
.archive-art .art__caption {
  display: none;
}

.archive-empty {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 30px;
  text-align: center;
}

.archive-empty b {
  display: block;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
}

.archive-empty p {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 12px;
}

.archive-empty button {
  margin-top: 18px;
}

/* ==========================================================================
   Article
   ========================================================================== */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  width: var(--read, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--orange), var(--pink));
  box-shadow: 0 1px 6px rgba(255, 159, 112, 0.4);
  transition: width 0.1s linear;
}

.article-page {
  padding-top: 114px;
}

.article-hero {
  width: min(940px, calc(100% - 48px));
  margin-inline: auto;
  padding-top: 54px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.breadcrumb a {
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb .icon {
  width: 9px;
  height: 9px;
  transform: rotate(-90deg);
  opacity: 0.5;
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 37px;
}

.article-kicker .category {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 500;
  background: rgba(223, 233, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
}

.article-hero h1 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 4.9rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.article-hero__excerpt {
  max-width: 720px;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.85;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  color: var(--ink-3);
  font-size: 10.5px;
  border-top: 1px solid var(--line);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-meta .icon {
  width: 13px;
  height: 13px;
}

.article-meta__sep {
  width: 3px;
  height: 3px;
  background: var(--ink-3);
  border-radius: 50%;
  opacity: 0.5;
}

.article-meta__actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.meta-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  color: var(--ink-2);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  transition: background 0.25s, transform 0.4s var(--spring);
}

.meta-btn:hover {
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.meta-btn .icon {
  width: 12px;
  height: 12px;
}

.article-cover {
  width: min(1100px, calc(100% - 48px));
  margin: 46px auto 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.article-cover .art {
  aspect-ratio: 2.35 / 1;
  border-radius: 26px;
}

.article-cover .art__label {
  font-size: 10px;
  top: 23px;
  left: 24px;
}

.article-cover .art__caption {
  right: 24px;
  bottom: 20px;
  font-size: 9px;
}

.article-cover .bridge {
  inset: 17% 17%;
}

.article-cover .bridge__node {
  width: 17%;
  max-width: 120px;
}

.article-cover .bridge__node--main {
  width: 20%;
}

.article-cover .webplay {
  inset: 9% 30%;
}

.article-cover .terminal {
  top: 16%;
  left: 29%;
  width: 42%;
  height: 68%;
}

.article-cover .game-world {
  inset: 8% 27% 0;
}

.article-cover .vinyl {
  width: 25%;
  left: 50%;
}

.article-cover .paper {
  top: 12%;
  left: 37%;
  width: 26%;
  height: 76%;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 205px;
  justify-content: center;
  gap: clamp(34px, 6vw, 76px);
  width: min(1100px, calc(100% - 48px));
  margin: 64px auto 0;
  padding-bottom: 80px;
}

.article-body {
  min-width: 0;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.96;
  letter-spacing: 0.005em;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body p {
  margin-top: 1.45em;
}

.article-body .lead {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.9;
}

.article-body h2,
.article-body h3 {
  position: relative;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  scroll-margin-top: 110px;
}

.article-body h2 {
  margin-top: 2.3em;
  margin-bottom: 0.7em;
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  line-height: 1.3;
}

.article-body h3 {
  margin-top: 1.9em;
  margin-bottom: 0.55em;
  font-size: 1.38rem;
}

.article-body h2::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 11px;
  margin-bottom: 0.18em;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 159, 112, 0.12);
}

.article-body a {
  color: var(--blue-deep);
  border-bottom: 1px solid rgba(63, 102, 197, 0.26);
  transition: border-color 0.2s, background 0.2s;
}

.article-body a:hover {
  border-color: var(--blue-deep);
  background: rgba(223, 233, 255, 0.5);
}

.article-body strong {
  color: var(--ink);
  font-weight: 600;
}

.article-body em {
  font-style: normal;
  background: linear-gradient(transparent 58%, rgba(255, 214, 107, 0.42) 58%);
}

.article-body blockquote {
  position: relative;
  margin: 2.1em 0;
  padding: 22px 26px 22px 32px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.68;
  background: linear-gradient(120deg, rgba(255, 242, 194, 0.56), rgba(255, 255, 255, 0.36));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.article-body blockquote::before {
  content: "“";
  position: absolute;
  top: -12px;
  left: 13px;
  color: rgba(212, 164, 35, 0.4);
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
}

.article-body ul,
.article-body ol {
  margin-top: 1.4em;
  padding-left: 1.4em;
}

.article-body li {
  margin-top: 0.55em;
  padding-left: 0.2em;
}

.article-body li::marker {
  color: var(--orange);
}

.article-body code {
  padding: 0.18em 0.42em;
  color: #32415f;
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(222, 232, 250, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
}

.article-body pre {
  position: relative;
  margin: 1.9em 0;
  padding: 25px 23px 22px;
  overflow-x: auto;
  color: #e8edf9;
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(95, 120, 188, 0.24), transparent 60%),
    #242a3a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 19px;
  box-shadow: 0 24px 50px -32px rgba(24, 32, 56, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.article-body pre::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 15px;
  width: 34px;
  height: 10px;
  background: radial-gradient(circle at 4px 5px, #ff9a88 0 4px, transparent 4.5px), radial-gradient(circle at 17px 5px, #ffd66b 0 4px, transparent 4.5px), radial-gradient(circle at 30px 5px, #8bd7aa 0 4px, transparent 4.5px);
  opacity: 0.8;
}

.article-body pre code {
  display: block;
  padding: 0;
  color: inherit;
  font-size: 12.5px;
  line-height: 1.85;
  background: none;
  border: 0;
  border-radius: 0;
  tab-size: 2;
}

.copy-code {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 27px;
  padding: 0 8px;
  color: rgba(238, 243, 255, 0.64);
  font-family: var(--font-mono);
  font-size: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.article-body pre:hover .copy-code,
.copy-code:focus-visible {
  opacity: 1;
}

.copy-code:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.copy-code .icon {
  width: 10px;
  height: 10px;
}

.copy-code.is-copied {
  color: #b9f0cf;
}

.article-body .callout {
  display: flex;
  gap: 13px;
  margin: 2.1em 0;
  padding: 18px 20px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.8;
  background: rgba(255, 247, 218, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.article-body .callout__icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  color: #876518;
  font-size: 12px;
  background: rgba(255, 231, 155, 0.8);
  border-radius: 8px;
}

.article-body .callout p {
  margin: 0;
}

.article-body hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article-body img {
  margin: 2em auto;
  border-radius: 18px;
}

.article-body table {
  width: 100%;
  margin: 1.9em 0;
  border-collapse: collapse;
  font-size: 13px;
}

.article-body th,
.article-body td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.article-body th {
  color: var(--ink);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.42);
}

.toc {
  position: sticky;
  top: 112px;
  padding-top: 8px;
}

.toc__label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.toc__label::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--ink-3);
  opacity: 0.5;
}

.toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.toc a {
  position: relative;
  padding: 6px 0 6px 14px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.55;
  transition: color 0.2s;
}

.toc a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 7px;
  bottom: 7px;
  width: 1.5px;
  background: var(--ink-2);
  border-radius: 1px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}

.toc a:hover {
  color: var(--ink);
}

.toc a.is-active {
  color: var(--ink);
}

.toc a.is-active::before {
  transform: scaleY(1);
}

.toc a.toc-h3 {
  padding-left: 24px;
  font-size: 10.5px;
}

.article-toc-mobile {
  display: none;
  margin-bottom: 24px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
}

.article-toc-mobile summary {
  color: var(--ink-2);
  font-size: 11px;
  cursor: pointer;
}

.article-toc-mobile a {
  display: block;
  padding: 6px 0;
  color: var(--ink-3);
  font-size: 11px;
}

.article-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 3em;
  padding-top: 24px;
  color: var(--ink-3);
  font-size: 10px;
  border-top: 1px solid var(--line);
}

.article-end::before,
.article-end::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.article-author {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 36px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.article-author img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: #f0f1f5;
}

.article-author h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
}

.article-author p {
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.7;
}

.article-author .btn {
  min-height: 36px;
  padding: 0 13px;
  font-size: 10.5px;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.article-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  transition: background 0.3s, transform 0.45s var(--spring-soft);
}

.article-nav a:hover {
  background: rgba(255, 255, 255, 0.64);
  transform: translateY(-3px);
}

.article-nav small {
  color: var(--ink-3);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.article-nav b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}

.article-nav a:last-child {
  text-align: right;
  align-items: flex-end;
}

.article-related {
  margin-top: 30px;
}

.article-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-list {
  display: grid;
  gap: 7px;
}

.related-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s, color 0.2s;
}

.related-list a:hover {
  padding-left: 8px;
  color: var(--blue-deep);
}

.related-list b {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
}

.related-list span {
  flex: none;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9px;
}

/* ==========================================================================
   About
   ========================================================================== */

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
  padding-bottom: 42px;
}

.about-story {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.95;
}

.about-story .lead {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.about-story p + p {
  margin-top: 1.3em;
}

.about-sidecard {
  padding: 15px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: rotate(1.2deg);
}

.about-sidecard__photo {
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 6 / 5;
  background: linear-gradient(145deg, #e7eeff, #fff2c9 55%, #ffe0e8);
}

.about-sidecard__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.about-sidecard__body {
  padding: 17px 8px 6px;
}

.about-sidecard__body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.about-sidecard__body > p {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.8;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 17px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.about-facts div {
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.5);
}

.about-facts small {
  display: block;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-facts b {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding-block: 48px;
  border-top: 1px solid var(--line);
}

.about-section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.about-section-title span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.about-section-title h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
}

.about-prose {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.95;
}

.about-prose p + p {
  margin-top: 1.15em;
}

.about-prose strong {
  color: var(--ink);
  font-weight: 500;
}

.about-prose a {
  color: var(--blue-deep);
  border-bottom: 1px solid rgba(63, 102, 197, 0.26);
}

.now-card {
  padding: 23px;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(255, 236, 176, 0.62), transparent 55%),
    rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.now-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 17px;
}

.now-card__head span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.now-card__head i {
  width: 6px;
  height: 6px;
  background: #64bd8a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(100, 189, 138, 0.12);
}

.now-list {
  display: grid;
  gap: 13px;
  list-style: none;
}

.now-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.7;
}

.now-list .icon {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  color: var(--orange);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 67px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  transition: background 0.3s, transform 0.4s var(--spring-soft);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-2px);
}

.contact-card__label {
  display: block;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card__value {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.contact-card .icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--ink-3);
}

.contact-card button,
.contact-card a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
}

.about-timeline {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-row time {
  color: var(--ink-3);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
}

.timeline-row p {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.8;
}

.timeline-row b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 500;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.stack-tags span {
  padding: 5px 9px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 8px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

/* ==========================================================================
   Guestbook page
   ========================================================================== */

.guestbook-page {
  padding-bottom: 100px;
}

.guestbook-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 6px;
}

.composer {
  position: sticky;
  top: 96px;
  padding: 22px;
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(255, 235, 174, 0.56), transparent 58%),
    rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.composer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.composer__head h2 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
}

.composer__head p {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 9.5px;
  line-height: 1.6;
}

.composer__head .icon {
  width: 20px;
  height: 20px;
  color: var(--orange);
}

.field {
  margin-top: 12px;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--ink-3);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.field label span {
  font-family: var(--font-mono);
  font-size: 8px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 13px;
  outline: 0;
  box-shadow: inset 0 1px 2px rgba(41, 55, 90, 0.04);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(91, 103, 128, 0.48);
}

.field input:focus,
.field textarea:focus {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(98, 140, 240, 0.38);
  box-shadow: 0 0 0 4px rgba(98, 140, 240, 0.09), inset 0 1px 2px rgba(41, 55, 90, 0.03);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 8.5px;
}

.field__foot .counter.is-near {
  color: #b56a1f;
}

.field__foot .counter.is-over {
  color: #bd5151;
}

.mood-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.mood-row button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  color: var(--ink-2);
  font-size: 9.5px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  transition: background 0.25s, transform 0.35s var(--spring), border-color 0.25s;
}

.mood-row button:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.mood-row button.is-active {
  background: #fff;
  border-color: rgba(98, 140, 240, 0.3);
  box-shadow: 0 0 0 3px rgba(98, 140, 240, 0.08);
}

.composer .btn {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  font-size: 12.5px;
}

.composer__privacy {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 8.5px;
  line-height: 1.7;
  text-align: center;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.guestbook-feed__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 0 2px;
}

.guestbook-feed__head h2 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
}

.guestbook-feed__head p {
  color: var(--ink-3);
  font-size: 9.5px;
}

.guestbook-feed__count {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--ink-3);
  font-size: 9px;
}

.guestbook-feed__count b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
}

.messages {
  display: grid;
  gap: 9px;
}

.message-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 17px 13px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: message-in 0.55s var(--spring-soft) both;
  transition: background 0.3s, transform 0.45s var(--spring-soft);
}

.message-card:hover {
  background: rgba(255, 255, 255, 0.58);
  transform: translateY(-2px);
}

.message-card.is-owner {
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(255, 238, 182, 0.48), transparent 58%),
    rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.86);
}

.message-card.is-owner::after {
  content: "站长";
  position: absolute;
  top: 13px;
  right: 14px;
  padding: 2px 7px;
  color: #8a6418;
  font-size: 7.5px;
  letter-spacing: 0.06em;
  background: rgba(255, 231, 155, 0.82);
  border-radius: 999px;
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: #38517d;
  font-family: var(--font-display);
  font-size: 19px;
  background: var(--avatar-bg, #dfe9ff);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-card__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding-right: 42px;
}

.message-card__name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
}

.message-card__time {
  color: var(--ink-3);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.message-card__mood {
  margin-left: auto;
  font-size: 12px;
  line-height: 1;
}

.message-card__text {
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 12.8px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-card__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 9px;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px 3px 3px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}

.like-btn:hover {
  color: #c25779;
  background: rgba(255, 226, 235, 0.5);
}

.like-btn .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.45s var(--spring);
}

.like-btn.is-liked {
  color: #c25779;
}

.like-btn.is-liked .icon {
  fill: currentColor;
  transform: scale(1.08);
}

.like-btn.is-popping .icon {
  animation: heart-pop 0.5s var(--spring);
}

@keyframes heart-pop {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.55); }
  60% { transform: scale(0.92); }
}

.message-card__foot .reply-note {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.feed-loading {
  display: grid;
  gap: 9px;
}

.feed-loading i {
  height: 94px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  animation: soft-pulse 1.5s ease-in-out infinite;
}

.feed-loading i:nth-child(2) { animation-delay: 0.16s; }
.feed-loading i:nth-child(3) { animation-delay: 0.32s; }

.feed-more {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.feed-more button {
  min-width: 140px;
}

.feed-invitation {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 188px;
  padding: 26px;
  color: var(--ink-3);
  text-align: center;
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(255, 241, 189, 0.34), transparent 70%),
    rgba(255, 255, 255, 0.24);
  border: 1px dashed rgba(57, 75, 116, 0.16);
  border-radius: 20px;
}

.feed-invitation .icon {
  width: 19px;
  height: 19px;
  margin-bottom: 9px;
  color: var(--orange);
}

.feed-invitation b {
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
}

.feed-invitation p {
  margin-top: 5px;
  font-size: 10.5px;
}

.feed-empty,
.feed-error {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.34);
  border: 1px dashed rgba(57, 75, 116, 0.16);
  border-radius: 20px;
}

.feed-empty b {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}

.feed-error button {
  margin-top: 12px;
}

.guestbook-note {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  padding: 13px 15px;
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.75;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
}

.guestbook-note .icon {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 2px;
  color: var(--orange);
}

/* ==========================================================================
   Subscribe & sitemap
   ========================================================================== */

.utility-page {
  padding-bottom: 100px;
}

.utility-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: start;
}

.utility-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.utility-card h2 {
  margin-top: 13px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.utility-card > p {
  max-width: 560px;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.85;
}

.utility-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 7px 7px 7px 14px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
}

.utility-copy code {
  flex: 1;
  min-width: 0;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.utility-copy .btn {
  flex: none;
  min-height: 34px;
  padding: 0 11px;
  font-size: 10.5px;
}

.utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.utility-actions .btn {
  min-height: 38px;
  padding: 0 13px;
  font-size: 11px;
}

.utility-list {
  display: grid;
  margin-top: 16px;
  list-style: none;
}

.utility-list li {
  border-bottom: 1px solid var(--line);
}

.utility-list li:last-child {
  border-bottom: 0;
}

.utility-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 2px;
  transition: padding 0.3s var(--ease), color 0.2s;
}

.utility-list a:hover {
  padding-left: 6px;
  color: var(--blue-deep);
}

.utility-list b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.utility-list small {
  flex: none;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.utility-card--wide {
  grid-column: 1 / -1;
}

.utility-help {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(255, 241, 189, 0.4), transparent 58%),
    rgba(255, 255, 255, 0.42);
}

.utility-help__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--blue-deep);
  background: rgba(223, 233, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
}

.utility-help__icon .icon {
  width: 18px;
  height: 18px;
}

.utility-help h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

.utility-help p {
  max-width: 780px;
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.8;
}

.utility-help .utility-actions {
  margin-top: 14px;
}

@media (max-width: 760px) {
  .utility-page {
    padding-bottom: 60px;
  }

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

  .utility-card {
    padding: 22px;
    border-radius: 24px;
  }

  .utility-copy {
    flex-wrap: wrap;
    padding: 10px;
  }

  .utility-copy code {
    flex-basis: 100%;
  }

  .utility-copy .btn {
    width: 100%;
  }

  .utility-help {
    flex-direction: column;
    gap: 12px;
  }

  .utility-card--wide {
    grid-column: auto;
  }
}

/* ==========================================================================
   404
   ========================================================================== */

.notfound {
  display: grid;
  place-items: center;
  min-height: 82vh;
  padding: 150px 24px 110px;
  text-align: center;
}

.notfound__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  margin-bottom: 22px;
}

.notfound__orb {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 20deg, rgba(98, 140, 240, 0.3), rgba(255, 214, 107, 0.4), rgba(255, 166, 194, 0.34), rgba(98, 140, 240, 0.3));
  border-radius: 42% 58% 56% 44% / 48% 44% 56% 52%;
  filter: blur(3px);
  animation: mark-morph 5s var(--ease) infinite alternate;
}

.notfound__num {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.notfound h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
}

.notfound p {
  max-width: 380px;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.9;
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1120px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
    gap: 30px;
  }

  .float-card--one { left: -3%; }
  .float-card--two { right: -3%; }

  .article-layout {
    grid-template-columns: minmax(0, 720px) 180px;
    gap: 38px;
  }

  .about-intro {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

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

  .menu-toggle {
    display: inline-grid;
  }

  .nav-shell {
    gap: 16px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero {
    padding-top: 150px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 50px;
  }

  .hero__copy {
    max-width: 680px;
  }

  .hero__visual {
    min-height: 0;
    margin-top: 6px;
  }

  .portrait {
    width: min(100%, 390px);
  }

  .hero__scroll {
    display: none;
  }

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

  .post-stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .post-card--mini {
    grid-template-columns: 1fr;
  }

  .post-card--mini .art {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .post-card--mini .post-card__body {
    padding: 14px 10px 9px;
  }

  .post-card--mini .post-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    font-size: 12px;
  }

  .post-card--mini .post-card__foot {
    padding-top: 13px;
  }

  .project-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .arch {
    max-width: 520px;
  }

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

  .interest-card:last-child {
    grid-column: span 2;
    min-height: 220px;
  }

  .guestbook-teaser {
    grid-template-columns: minmax(0, 1fr);
  }

  .note-board {
    min-height: 260px;
  }

  .footer-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-layout {
    grid-template-columns: minmax(0, 720px);
    gap: 0;
  }

  .toc {
    display: none;
  }

  .article-toc-mobile {
    display: block;
  }

  .about-intro,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-sidecard {
    width: min(100%, 330px);
    transform: rotate(0);
  }

  .guestbook-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .composer {
    position: static;
  }

  .page-head__inner {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 38px);
  }

  .section {
    padding-block: 78px;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .site-header.is-scrolled {
    top: 7px;
  }

  .nav-shell {
    height: 58px;
    padding: 0 8px 0 10px;
  }

  .site-header.is-scrolled .nav-shell {
    height: 54px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .brand__text strong {
    font-size: 17px;
  }

  .brand__text small {
    display: none;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .nav-cta {
    height: 36px;
    padding-left: 14px;
    font-size: 12px;
  }

  .nav-cta .icon {
    width: 22px;
    height: 22px;
  }

  .nav-actions {
    gap: 5px;
  }

  .hero {
    padding-top: 126px;
    padding-bottom: 34px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.7rem);
    line-height: 1.04;
  }

  .hero__badge {
    margin-bottom: 22px;
  }

  .hero__lead {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.85;
  }

  .hero__actions {
    margin-top: 27px;
  }

  .hero__actions .btn {
    min-height: 45px;
    padding-inline: 17px;
    font-size: 13px;
  }

  .hero__micro {
    gap: 11px;
    margin-top: 21px;
    font-size: 10px;
  }

  .hero__inner {
    gap: 38px;
  }

  .portrait {
    width: min(100%, 350px);
    border-radius: 36px;
  }

  .portrait::before {
    border-radius: 30px;
  }

  .portrait__content {
    padding: 16px 14px 12px;
  }

  .portrait__frame {
    width: 68%;
  }

  .portrait__name h2 {
    font-size: 36px;
  }

  .float-card {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .section-head h2 {
    font-size: 2rem;
  }

  .section-head__side {
    padding-top: 20px;
    padding-bottom: 0;
  }

  .section-head__side .text-link {
    font-size: 12px;
  }

  .post-stack {
    grid-template-columns: 1fr;
  }

  .post-card--mini {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .post-card--mini .art {
    aspect-ratio: auto;
    height: 100%;
    min-height: 120px;
  }

  .post-card--mini .post-card__body {
    padding: 7px 8px 6px;
  }

  .post-card--mini .post-card__excerpt {
    display: none;
  }

  .post-card--mini h3 {
    font-size: 1.1rem;
  }

  .post-card--lead .art {
    aspect-ratio: 16 / 10.5;
  }

  .post-card--lead h3 {
    font-size: 1.55rem;
  }

  .post-card__body {
    padding: 15px 9px 9px;
  }

  .post-card--lead .post-card__body {
    padding: 17px 10px 11px;
  }

  .post-card__excerpt {
    font-size: 12px;
  }

  .project-panel {
    padding: 26px 21px;
    border-radius: 30px;
  }

  .project-panel h2 {
    font-size: clamp(3.4rem, 18vw, 4.7rem);
  }

  .project-panel__desc {
    font-size: 14px;
  }

  .arch {
    padding: 12px;
    border-radius: 23px;
    transform: none;
  }

  .arch__canvas {
    padding: 18px 12px;
  }

  .arch__node {
    border-radius: 12px;
  }

  .arch-sticker {
    right: -7px;
    bottom: -11px;
  }

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

  .interest-card,
  .interest-card:last-child {
    grid-column: auto;
    min-height: 0;
    padding: 23px;
  }

  .interest-card h3 {
    margin-top: 18px;
  }

  .guestbook-teaser {
    padding: 26px 21px;
    border-radius: 30px;
  }

  .guestbook-teaser__copy h2 {
    font-size: 2.05rem;
  }

  .note-board {
    min-height: 0;
    padding: 16px;
    border-radius: 24px;
  }

  .sticky-note {
    max-width: 94%;
    padding: 14px 15px 12px;
  }

  .sticky-note + .sticky-note {
    margin-top: 8px;
  }

  .footer-panel {
    padding: 27px 22px;
    border-radius: 30px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
  }

  .footer-col:last-child {
    grid-column: span 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .footer-col:last-child h3 {
    width: 100%;
    margin-bottom: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding-top: 20px;
  }

  .page-head {
    padding: 128px 0 30px;
  }

  .page-head__inner {
    display: block;
  }

  .page-head h1 {
    font-size: clamp(2.9rem, 14vw, 4rem);
  }

  .page-head p {
    font-size: 14px;
  }

  .page-head__side {
    display: none;
  }

  .archive-toolbar {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    border-radius: 18px;
  }

  .archive-search {
    flex: 1;
    min-width: 0;
  }

  .tag-filter {
    order: 3;
    gap: 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .tag-filter::-webkit-scrollbar {
    display: none;
  }

  .tag-filter button {
    flex: none;
  }

  .sort-btn {
    order: 2;
    margin-left: auto;
  }

  .archive-item {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 4px;
  }

  .archive-art {
    display: none;
  }

  .archive-date b {
    font-size: 18px;
  }

  .archive-main h2 {
    font-size: 1.45rem;
  }

  .archive-main p {
    font-size: 11.5px;
    -webkit-line-clamp: 2;
  }

  .archive-meta {
    gap: 7px;
    margin-top: 9px;
  }

  .archive-item:hover {
    padding-left: 4px;
    padding-right: 4px;
  }

  .article-page {
    padding-top: 94px;
  }

  .article-hero {
    width: calc(100% - 38px);
    padding-top: 34px;
  }

  .article-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .article-hero__excerpt {
    margin-top: 17px;
    font-size: 15px;
  }

  .article-meta {
    gap: 9px;
    margin-top: 20px;
    padding-top: 17px;
    font-size: 9.5px;
  }

  .article-meta__actions {
    width: 100%;
    margin-left: 0;
    padding-top: 4px;
  }

  .article-cover {
    width: calc(100% - 38px);
    margin-top: 28px;
    padding: 7px;
    border-radius: 26px;
  }

  .article-cover .art {
    aspect-ratio: 16 / 10;
    border-radius: 20px;
  }

  .article-cover .art__label { top: 14px; left: 15px; font-size: 8px; }
  .article-cover .art__caption { right: 15px; bottom: 11px; font-size: 7px; }
  .article-cover .bridge { inset: 15% 7%; }
  .article-cover .bridge__node { width: 24%; max-width: none; border-radius: 12px; }
  .article-cover .bridge__node--main { width: 28%; }
  .article-cover .webplay { inset: 13% 9%; }
  .article-cover .terminal { top: 18%; left: 13%; width: 70%; height: 64%; }
  .article-cover .game-world { inset: 9% 8% 0; }
  .article-cover .vinyl { width: 46%; left: 38%; }
  .article-cover .paper { top: 15%; left: 17%; width: 66%; height: 70%; }

  .article-layout {
    width: calc(100% - 38px);
    margin-top: 34px;
    padding-bottom: 50px;
  }

  .article-body {
    font-size: 15.5px;
    line-height: 1.92;
  }

  .article-body .lead {
    font-size: 17px;
  }

  .article-body h2 {
    font-size: 1.55rem;
  }

  .article-body blockquote {
    padding: 17px 18px 17px 22px;
    font-size: 1.13rem;
  }

  .article-body pre {
    margin-inline: -4px;
    padding: 24px 16px 18px;
    border-radius: 16px;
  }

  .article-body pre code {
    font-size: 11px;
  }

  .copy-code {
    opacity: 1;
  }

  .article-author {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 14px;
  }

  .article-author img {
    width: 46px;
    height: 46px;
  }

  .article-author .btn {
    grid-column: span 2;
    width: 100%;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav a:last-child {
    text-align: left;
    align-items: flex-start;
  }

  .about-story {
    font-size: 15px;
  }

  .about-story .lead {
    font-size: 1.5rem;
  }

  .about-grid {
    padding-block: 46px;
  }

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

  .guestbook-page {
    padding-bottom: 60px;
  }

  .guestbook-layout {
    margin-top: 0;
  }

  .composer {
    padding: 19px;
    border-radius: 24px;
  }

  .message-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 14px 11px;
  }

  .avatar {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .message-card__head {
    padding-right: 38px;
  }

  .message-card__name {
    font-size: 16px;
  }

  .message-card__text {
    font-size: 12.2px;
  }

  .guestbook-feed__head {
    align-items: center;
  }

  .guestbook-feed__head h2 {
    font-size: 23px;
  }

  .search-modal {
    padding-top: 8vh;
    padding-inline: 12px;
  }

  .search-panel {
    border-radius: 22px;
  }

  .search-panel__head {
    padding: 14px 15px;
  }

  .search-panel__head input {
    font-size: 16px;
  }

  .search-panel__head .keycap {
    display: none;
  }

  .search-close {
    display: grid;
    flex: none;
  }

  .search-hints {
    padding: 11px 15px;
  }

  .search-result {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .search-result > .icon {
    display: none;
  }

  .search-panel__foot {
    display: none;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  .toast-region {
    bottom: 72px;
  }

  .footer-bottom {
    font-size: 9px;
  }
}

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

  .hero h1 {
    font-size: 3.35rem;
  }

  .hero__badge {
    font-size: 10px;
  }

  .hero__micro span:nth-child(3) {
    display: none;
  }

  .section-head {
    display: block;
  }

  .section-head__side {
    display: none;
  }

  .post-card--mini {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .post-card--mini .art {
    min-height: 108px;
  }

  .post-card--mini h3 {
    font-size: 1rem;
  }

  .post-card--mini .post-card__tags {
    display: none;
  }

  .project-panel {
    padding: 24px 17px;
  }

  .project-panel__desc {
    font-size: 13px;
  }

  .arch__canvas {
    padding: 14px 8px;
  }

  .arch__node {
    border-radius: 10px;
  }

  .arch__node small {
    font-size: 5.5px;
  }

  .arch__ports {
    gap: 4px;
  }

  .arch__ports span {
    padding: 3px 6px;
    font-size: 6px;
  }

  .arch-sticker {
    display: none;
  }

  .guestbook-teaser__actions .btn {
    width: 100%;
  }

  .footer-grid {
    gap: 24px 14px;
  }

  .footer-col a,
  .footer-col button {
    font-size: 11.5px;
  }

  .page-head h1 {
    font-size: 2.7rem;
  }

  .guestbook-layout {
    gap: 20px;
  }

  .composer {
    padding: 17px;
  }

  .guestbook-feed__head p {
    display: none;
  }

  .sticky-note {
    max-width: 100%;
  }

  .article-meta {
    gap: 8px;
  }

  .article-meta__sep {
    display: none;
  }

  .article-body .callout {
    padding: 15px;
    font-size: 12.5px;
  }
}

/* ==========================================================================
   Motion preferences & fallbacks
   ========================================================================== */

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-shell,
  .portrait,
  .post-card,
  .project-panel,
  .interest-card,
  .guestbook-teaser,
  .footer-panel,
  .search-panel,
  .composer,
  .message-card,
  .arch,
  .article-cover {
    background: rgba(255, 255, 255, 0.94);
  }
}

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

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

  .hero h1 .line > span,
  .hero__lead,
  .hero__actions,
  .hero__micro,
  .hero__visual,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Card overlay links */
.post-card__cover {
  position: absolute;
  inset: 0;
  z-index: 7;
  border-radius: inherit;
}

.post-card__cover:focus-visible {
  outline: none;
}

.post-card:has(.post-card__cover:focus-visible) {
  outline: 2px solid var(--blue-deep);
  outline-offset: 4px;
}

.archive-item {
  isolation: isolate;
}

.archive-item__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 20px;
}

.archive-item__link:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 2px;
}

.hero {
  --mx: 50%;
  --my: 42%;
}

.hero::before {
  content: "";
  position: absolute;
  top: var(--my, 42%);
  left: var(--mx);
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 226, 177, 0.14) 44%, transparent 68%);
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.6s var(--ease), top 0.6s var(--ease);
  opacity: 0.75;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.heading-anchor {
  display: inline-block;
  margin-left: 9px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.46em;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: 0.3em;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}

.article-body h2:hover .heading-anchor,
.article-body h3:hover .heading-anchor,
.heading-anchor:focus-visible {
  color: var(--blue-deep);
  opacity: 1;
}

.article-body .callout a {
  border-bottom: 1px solid rgba(63, 102, 197, 0.25);
}

.post-card__meta .reading {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-card__meta .reading .icon {
  width: 10px;
  height: 10px;
}

.home-notes-error {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
}

.home-notes-error a {
  margin-top: 8px;
  color: var(--blue-deep);
  font-size: 11px;
  border-bottom: 1px solid rgba(63, 102, 197, 0.3);
}

/* SPA transitions */
::view-transition-old(root) {
  animation: page-out 0.22s var(--ease) both;
}

::view-transition-new(root) {
  animation: page-in 0.42s var(--ease) both;
}

@keyframes page-out {
  to { opacity: 0; transform: translateY(-6px) scale(0.998); }
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(10px) scale(0.998); }
}

.page-enter {
  animation: page-in 0.5s var(--ease) both;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.992);
  transition: opacity 0.75s var(--ease), transform 0.85s var(--spring-soft);
  transition-delay: calc(var(--i, 0) * 55ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition-delay: 0ms !important;
  }
}
