:root {
  --text: rgba(14, 22, 36, 0.92);
  --muted: rgba(14, 22, 36, 0.58);
  --hairline: rgba(255, 255, 255, 0.68);
  --glass: rgba(255, 255, 255, 0.28);
  --glass-strong: rgba(255, 255, 255, 0.44);
  --shadow: 0 34px 120px rgba(34, 47, 73, 0.24);
  --shadow-soft: 0 18px 70px rgba(34, 47, 73, 0.15);
  --accent-blue: rgba(132, 197, 255, 0.9);
  --accent-pink: rgba(255, 153, 204, 0.88);
  --accent-mint: rgba(133, 224, 185, 0.86);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Microsoft YaHei UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.74), transparent 34rem),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 48%, #f8f1e9 100%);
}

body.timeline-interacting {
  overscroll-behavior: none;
}

.liquid-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: radial-gradient(circle at 50% 34%, rgba(0, 0, 0, 0.30), transparent 64%);
  opacity: 0.34;
}

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

/* Content levels are assigned from content.config.js.
   They are broad presets; component-specific CSS can still refine layout. */
[data-text-level] {
  font-size: var(--content-size, inherit);
  font-weight: var(--content-weight, inherit);
}

.content-level-display {
  font-size: var(--content-size, clamp(52px, 8.2vw, 108px));
  line-height: 0.90;
  letter-spacing: -0.08em;
}

.content-level-title {
  font-size: var(--content-size, clamp(24px, 4vw, 48px));
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.content-level-body {
  font-size: var(--content-size, 18px);
  line-height: 1.78;
  letter-spacing: -0.01em;
}

.content-level-label {
  font-size: var(--content-size, 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.content-level-meta {
  font-size: var(--content-size, 12px);
  letter-spacing: 0.03em;
}

.content-level-button {
  font-size: var(--content-size, 14px);
  font-weight: var(--content-weight, 680);
}

.content-level-value {
  font-size: var(--content-size, 23px);
  font-weight: var(--content-weight, 820);
}

.content-level-badge {
  font-size: var(--content-size, 12px);
  letter-spacing: 0.06em;
}

.background-layer {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.20;
}

.background-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.28)),
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.18), transparent 520px);
}

.aurora,
.cursor-light {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
}

.aurora {
  z-index: -3;
  filter: blur(58px);
  opacity: 0.40;
  animation: float-orb 12s ease-in-out infinite alternate;
}

.aurora-a {
  width: 34vw;
  height: 34vw;
  top: 6%;
  left: -10%;
  background: rgba(139, 199, 255, 0.62);
}

.aurora-b {
  width: 28vw;
  height: 28vw;
  top: 18%;
  right: -8%;
  background: rgba(255, 171, 212, 0.52);
  animation-delay: -5s;
}

.cursor-light {
  z-index: 8;
  left: 0;
  top: 0;
  width: 420px;
  height: 420px;
  transform: translate3d(calc(var(--cursor-x, 50vw) - 50%), calc(var(--cursor-y, 30vh) - 50%), 0);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.48), rgba(175, 215, 255, 0.18) 32%, transparent 66%);
  mix-blend-mode: screen;
  opacity: 0.68;
  will-change: transform;
}

/* Text glass refraction system.
   JS splits selected text into .text-fragment spans. The original text itself
   bends toward/away from the cursor; there is no duplicate magnifier layer. */
.text-bulge-target {
  overflow: visible;
  perspective: 520px;
  transform-style: preserve-3d;
}

.text-fragment-line {
  display: inline;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.text-fragment {
  display: inline-block;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform:
    perspective(460px)
    translate3d(var(--char-shift-x, 0px), var(--char-shift-y, 0px), var(--char-depth, 0px))
    scale(var(--char-scale-x, var(--char-scale, 1)), var(--char-scale-y, var(--char-scale, 1)))
    skew(var(--char-skew-x, 0deg), var(--char-skew-y, 0deg))
    rotate(var(--char-rotate, 0deg));
  transform-origin: var(--char-origin-x, 50%) var(--char-origin-y, 60%);
  filter:
    brightness(var(--char-brightness, 1))
    contrast(var(--char-contrast, 1));
  transition:
    transform 82ms linear,
    filter 100ms ease,
    text-shadow 100ms ease;
}

.text-droplet-active .text-fragment {
  will-change: transform, filter;
  text-shadow:
    var(--char-glint-x, 0px) var(--char-glint-y, -1px) 0 rgba(255, 255, 255, 0.58),
    var(--char-shadow-x, 0px) var(--char-shadow-y, 9px) 18px rgba(42, 61, 92, 0.15),
    0 -1px 9px rgba(255, 255, 255, 0.20);
}

.hero-card h1,
.section-head h2,
.feed-card h3,
.stack-window h2,
.media-panel h2,
.contact-panel h2,
.intro {
  position: relative;
  display: inline-block;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38),
    0 18px 34px rgba(83, 101, 132, 0.10);
}

.hero-card h1::after,
.section-head h2::after {
  content: none;
}

.liquid-glass {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.18)),
    var(--glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -26px 70px rgba(255, 255, 255, 0.11),
    inset 22px 0 60px rgba(255, 255, 255, 0.08),
    var(--shadow-soft);
  backdrop-filter: blur(34px) saturate(1.55) brightness(1.03);
  -webkit-backdrop-filter: blur(34px) saturate(1.55) brightness(1.03);
  transition:
    transform 260ms cubic-bezier(.2,.8,.2,1),
    box-shadow 260ms cubic-bezier(.2,.8,.2,1),
    border-color 260ms ease,
    background 260ms ease;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 18%), rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.30) 18%, transparent 42%),
    radial-gradient(circle at calc(var(--mx, 50%) + 14%) calc(var(--my, 18%) + 18%), rgba(145, 204, 255, 0.20), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 22%, transparent 74%, rgba(255, 255, 255, 0.22));
  opacity: 0.58;
  mix-blend-mode: screen;
  transition: opacity 220ms ease;
}

.liquid-glass::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 18px 28px rgba(255, 255, 255, 0.14),
    inset 0 -22px 40px rgba(76, 118, 184, 0.06);
}

.liquid-glass:hover {
  border-color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -30px 78px rgba(255, 255, 255, 0.16),
    inset 24px 0 66px rgba(255, 255, 255, 0.12),
    0 38px 120px rgba(34, 47, 73, 0.25);
}

.liquid-glass:hover::before {
  opacity: 0.88;
}

.top-island {
  position: sticky;
  top: 18px;
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 999px;
  animation: page-rise 760ms cubic-bezier(.2,.8,.2,1) both;
}

.brand,
.top-island nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding: 8px 12px;
  font-weight: 760;
  letter-spacing: -0.02em;
  border-radius: 999px;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), background 220ms ease;
  will-change: transform;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #84c5ff, #ff99cc);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.35);
}

.top-island nav {
  flex-wrap: wrap;
  gap: 4px;
}

.top-island nav a {
  position: relative;
  overflow: hidden;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), background 220ms ease, color 220ms ease;
  will-change: transform;
}

.top-island nav a:hover {
  color: var(--text);
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.72), transparent 52%),
    rgba(255, 255, 255, 0.48);
}

.home-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 20px;
  min-height: 650px;
}

.hero-card {
  display: grid;
  align-content: center;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 48px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -30px 80px rgba(255, 255, 255, 0.12),
    0 38px 140px rgba(34, 47, 73, 0.24);
  animation: page-rise 900ms 90ms cubic-bezier(.2,.8,.2,1) both;
  will-change: transform;
}

.personal-mark {
  position: absolute;
  top: 28px;
  right: 30px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 30px;
  color: rgba(18, 28, 45, 0.78);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.84), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 20px 60px rgba(51, 72, 110, 0.14);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}

.personal-mark > span {
  font-size: 22px;
  font-weight: 860;
  letter-spacing: -0.05em;
}

.personal-mark small {
  margin-top: -18px;
  color: rgba(14, 22, 36, 0.42);
  font-size: 11px;
  letter-spacing: 0.13em;
}

.system-glyph {
  position: relative;
  z-index: 1;
  width: min(240px, 46vw);
  aspect-ratio: 1;
  margin: 0 0 28px;
  border-radius: 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.82), transparent 24%),
    radial-gradient(circle at 72% 76%, rgba(255, 138, 194, 0.30), transparent 32%),
    linear-gradient(135deg, rgba(126, 207, 255, 0.34), rgba(255, 162, 205, 0.26));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -24px 60px rgba(255, 255, 255, 0.18),
    0 34px 90px rgba(83, 112, 156, 0.18);
}

.system-glyph::before,
.system-glyph::after,
.system-glyph span {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.system-glyph::before {
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 0 0 24px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 151, 197, 0.10);
}

.system-glyph::after {
  left: 50%;
  top: 50%;
  width: 34%;
  height: 34%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.88), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 42px rgba(66, 88, 124, 0.14);
}

.system-glyph span:nth-child(1) {
  left: 13%;
  top: 18%;
  width: 18%;
  height: 18%;
  background: rgba(255, 255, 255, 0.50);
}

.system-glyph span:nth-child(2) {
  right: 15%;
  top: 24%;
  width: 12%;
  height: 12%;
  background: rgba(255, 147, 194, 0.42);
}

.system-glyph span:nth-child(3) {
  right: 20%;
  bottom: 16%;
  width: 22%;
  height: 22%;
  background: rgba(129, 209, 255, 0.38);
}

.glass-shine {
  position: absolute;
  inset: -35% -18% auto auto;
  width: 58%;
  height: 62%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.48), transparent 68%);
  filter: blur(8px);
  opacity: 0.72;
  transform: rotate(-18deg);
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin-bottom: 12px;
  font-size: clamp(52px, 8.2vw, 108px);
  line-height: 0.90;
  letter-spacing: -0.08em;
}

.intro {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.actions a {
  position: relative;
  overflow: hidden;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.60),
    0 12px 36px rgba(31, 41, 55, 0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), background 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.actions a:hover {
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 48px rgba(31, 41, 55, 0.16);
}

.page-card {
  min-height: 520px;
  margin-top: 42px;
}

.signature-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 44px;
}

.signature-strip > span {
  padding: 8px 11px;
  border-radius: 999px;
  color: rgba(14, 22, 36, 0.48);
  font-size: 12px;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.phone-stack {
  display: grid;
  gap: 12px;
  align-content: end;
  padding: 14px;
  border-radius: 46px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    var(--shadow);
  animation: page-rise 900ms 180ms cubic-bezier(.2,.8,.2,1) both;
}

.profile-widget,
.mini-widget,
.status-strip {
  position: relative;
  z-index: 1;
  border-radius: 30px;
}

.profile-widget {
  min-height: 324px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  text-align: center;
  padding: 20px;
  will-change: transform;
}

.avatar-orb {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  overflow: hidden;
  border-radius: 34px;
  color: white;
  font-size: 30px;
  font-weight: 850;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.86), transparent 26%),
    linear-gradient(135deg, #78b9ff, #ff91c0);
  box-shadow:
    0 24px 70px rgba(110, 155, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.50);
}

.avatar-image-frame {
  width: 132px;
  height: 132px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(135deg, rgba(129, 216, 255, 0.54), rgba(255, 136, 188, 0.56));
  box-shadow:
    0 28px 80px rgba(255, 126, 184, 0.20),
    0 16px 54px rgba(91, 163, 228, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -18px 32px rgba(255, 255, 255, 0.16);
}

.avatar-image-frame::before,
.avatar-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
}

.avatar-image-frame::before {
  background:
    radial-gradient(circle at 22% 10%, rgba(255, 255, 255, 0.44), transparent 26%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.26), transparent 42%),
    linear-gradient(0deg, rgba(15, 20, 32, 0.10), transparent 38%);
  mix-blend-mode: screen;
}

.avatar-image-frame::after {
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(255, 151, 197, 0.14),
    inset 0 -18px 34px rgba(22, 34, 56, 0.12);
}

.avatar-image-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.04) contrast(1.03);
}

.avatar-badge {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 3;
  display: inline-grid;
  min-width: 42px;
  height: 26px;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(28, 18, 34, 0.82);
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 22px rgba(42, 61, 92, 0.16);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.profile-widget small {
  color: var(--muted);
}

.identity-lines {
  width: 100%;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.identity-lines > p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 9px 10px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.22);
}

.identity-lines > p > b {
  color: rgba(14, 22, 36, 0.72);
  font-weight: 720;
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-widget {
  min-height: 96px;
  padding: 18px;
  color: var(--muted);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}

.mini-widget:hover,
.status-strip:hover {
  transform: translateY(-5px) scale(1.03);
}

.mini-widget b {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 23px;
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
}

.status-strip > span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #61d394;
  box-shadow: 0 0 0 6px rgba(97, 211, 148, 0.18);
}

.status-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.workspace-section {
  padding-top: 72px;
  animation: page-rise 860ms 300ms cubic-bezier(.2,.8,.2,1) both;
}

.window-switcher {
  position: sticky;
  top: 96px;
  z-index: 30;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 18px;
  padding: 7px;
  border-radius: 999px;
  overflow: hidden;
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -10px 24px rgba(255, 255, 255, 0.20),
    0 20px 60px rgba(49, 66, 96, 0.18);
}

.window-switcher::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: var(--switcher-indicator-w, 76px);
  height: calc(100% - 14px);
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -10px 22px rgba(148, 179, 222, 0.14),
    0 10px 24px rgba(49, 66, 96, 0.12);
  opacity: var(--switcher-indicator-opacity, 0);
  transform: translate3d(var(--switcher-indicator-x, 7px), 0, 0);
  transition:
    transform 360ms cubic-bezier(.22, 1, .36, 1),
    width 360ms cubic-bezier(.22, 1, .36, 1),
    opacity 180ms ease;
}

.window-tab {
  position: relative;
  z-index: 1;
  min-width: 76px;
  border: 0;
  border-radius: 999px;
  padding: 11px 17px;
  overflow: hidden;
  color: rgba(20, 31, 48, 0.62);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition:
    color 180ms ease,
    transform 180ms cubic-bezier(.22, 1, .36, 1);
}

.window-tab::before {
  display: none;
}

.window-tab:hover {
  color: rgba(12, 20, 34, 0.82);
  transform: translateY(-1px);
}

.window-tab.is-active {
  color: rgba(12, 20, 34, 0.92);
  background: transparent;
  box-shadow: none;
}

.window-tab.is-active::before {
  opacity: 0;
}

.window-stack {
  position: relative;
  min-height: 390px;
  isolation: isolate;
}

.window-stack::before,
.window-stack::after {
  content: "";
  position: absolute;
  inset: 34px 4% auto;
  height: 300px;
  z-index: -2;
  border-radius: 42px;
  pointer-events: none;
  opacity: 0.42;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 90px rgba(42, 61, 92, 0.16);
  transform: translate3d(0, 24px, 0) scale(0.965);
}

.window-stack::after {
  inset-inline: 8%;
  opacity: 0.24;
  transform: translate3d(0, 46px, 0) scale(0.92);
}

.stack-window {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 380px;
  padding: 30px;
  overflow: hidden;
  border-radius: 42px;
  opacity: 0;
  filter: blur(14px) saturate(0.94);
  pointer-events: none;
  transform: translate3d(0, 14px, 0) scale(0.982);
  transform-origin: 50% 0%;
  transition:
    opacity 300ms ease,
    transform 360ms cubic-bezier(.22, 1, .36, 1),
    filter 360ms ease,
    box-shadow 300ms ease;
}

.stack-window[hidden] {
  display: none;
}

.stack-window-active {
  position: relative;
  z-index: 3;
  opacity: 1;
  filter: blur(0) saturate(1);
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -24px 70px rgba(255, 255, 255, 0.18),
    0 46px 130px rgba(38, 54, 84, 0.24);
}

.stack-window-exiting {
  z-index: 2;
  opacity: 0;
  filter: blur(16px) saturate(0.88);
  pointer-events: none;
  transform: translate3d(0, -6px, 0) scale(0.992);
  will-change: transform, opacity, filter;
}

.stack-window-entering {
  opacity: 0;
  filter: blur(12px) saturate(0.96);
  transform: translate3d(0, 12px, 0) scale(0.986);
  will-change: transform, opacity, filter;
}

.stack-window-active > *:not(.window-chrome) {
  animation: window-content-rise 420ms 40ms cubic-bezier(.22, 1, .36, 1) both;
}

.stack-window::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--mx, 48%) var(--my, 20%), rgba(255, 255, 255, 0.44), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 72%);
  mix-blend-mode: screen;
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.window-chrome span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 5px 14px rgba(41, 55, 80, 0.12);
}

.window-chrome span:nth-child(1) {
  background: #ff7f9d;
}

.window-chrome span:nth-child(2) {
  background: #ffd56b;
}

.window-chrome span:nth-child(3) {
  background: #74e0a4;
}

.feed-section {
  padding-top: 76px;
  animation: page-rise 860ms 300ms cubic-bezier(.2,.8,.2,1) both;
}

.section-head {
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.feed-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.92fr 0.82fr;
  align-items: stretch;
  gap: 16px;
}

.fibonacci-timeline-stack,
.fibonacci-log-stack {
  position: relative;
  z-index: 1;
  isolation: isolate;
  user-select: none;
  overscroll-behavior: contain;
  touch-action: none;
  display: block;
  width: 100%;
  height: clamp(640px, 62vw, 760px);
  aspect-ratio: auto;
  min-height: 0;
  margin: 0 auto;
  border-radius: 40px;
  overflow: hidden;
  contain: layout paint;
  perspective: 1200px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.34), transparent 38%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 17%, transparent 83%, rgba(255, 255, 255, 0.16)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  transition: transform 260ms ease, filter 260ms ease, opacity 260ms ease;
}

.fibonacci-timeline-stack::before,
.fibonacci-timeline-stack::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.fibonacci-timeline-stack::before {
  inset: 18px;
  z-index: 0;
  border-radius: 46px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 4px, transparent 5px) left 16px top 18px / 26px 38px repeat-y,
    radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 4px, transparent 5px) right 16px top 18px / 26px 38px repeat-y,
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 34px 80px rgba(119, 189, 255, 0.10);
}

.fibonacci-timeline-stack::after {
  inset: 0;
  z-index: 160;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 18%, transparent 68%, rgba(255, 255, 255, 0.10)),
    radial-gradient(circle at 42% 22%, rgba(255, 255, 255, 0.18), transparent 34%),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(195, 213, 234, 0.12) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -34px 70px rgba(255, 255, 255, 0.10);
  opacity: 0.42;
  mix-blend-mode: screen;
}

.timeline-card,
.feed-card {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  min-height: 214px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 32px;
  transition:
    transform 260ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 260ms ease,
    filter 260ms ease,
    opacity 260ms ease;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.timeline-card {
  position: absolute;
  z-index: 1;
  --card-rotate: 0deg;
  --card-scale: 1;
  --hover-y: 0px;
  --slide-y: 0px;
  --flip-x: 0px;
  --flip-y: 0px;
  --flip-scale-x: 1;
  --flip-scale-y: 1;
  min-height: 0;
  overflow: hidden;
  transform:
    translate3d(var(--flip-x), calc(var(--timeline-drag-y, 0px) + var(--slide-y) + var(--hover-y) + var(--flip-y)), 0)
    rotate(var(--card-rotate))
    scale(var(--card-scale))
    scale(var(--flip-scale-x), var(--flip-scale-y));
  transform-origin: center;
  backface-visibility: hidden;
}

.timeline-wheel-card {
  left: 50%;
  top: 50%;
  z-index: var(--wheel-z, 1);
  --hover-y: 0px;
  --slide-y: 0px;
  --flip-x: 0px;
  --flip-y: 0px;
  --flip-scale-x: 1;
  --flip-scale-y: 1;
  width: min(620px, 58%);
  height: clamp(160px, 18vw, 218px);
  padding: 24px;
  border-radius: 34px;
  opacity: var(--wheel-opacity, 1);
  filter: blur(var(--wheel-blur, 0px)) saturate(1.04);
  pointer-events: none;
  transform:
    translate3d(-50%, -50%, 0)
    translate3d(var(--wheel-x, 0px), var(--wheel-y, 0px), 0)
    rotateX(var(--wheel-tilt, 0deg))
    scale(var(--wheel-scale, 1));
  transform-origin: 50% 50%;
  transition:
    transform 240ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 220ms ease,
    background 220ms ease,
    filter 220ms ease,
    opacity 220ms ease;
}

.timeline-wheel-card[data-active="true"] {
  pointer-events: auto;
  cursor: pointer;
}

.timeline-wheel-card:focus,
.timeline-wheel-card:focus-visible {
  outline: none;
}

.timeline-wheel-card[data-active="true"] {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -28px 60px rgba(255, 255, 255, 0.18),
    0 42px 130px rgba(34, 47, 73, 0.25);
}

.timeline-wheel-card .log-art {
  width: min(210px, 54%);
  border-radius: 34px;
  opacity: 0.82;
}

.timeline-wheel-card::before {
  right: 22px;
  top: 22px;
}

.timeline-focus-mode .timeline-wheel-card {
  opacity: 0.16;
  filter: blur(6px) saturate(0.94);
  transition:
    opacity 220ms ease,
    filter 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.timeline-focus-mode .timeline-wheel-card[data-preview="true"] {
  opacity: 0.28;
  filter: blur(4px) saturate(0.96);
  pointer-events: auto;
}

.timeline-hover-preview {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 220;
  display: flex;
  flex-direction: column;
  width: min(820px, 78%);
  height: min(520px, 68%);
  padding: clamp(28px, 4vw, 46px);
  border-radius: 44px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -48%, 0) scale(0.965);
  filter: blur(10px) saturate(0.96);
  transition:
    opacity 260ms ease,
    transform 420ms cubic-bezier(.18, .86, .18, 1),
    filter 360ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -38px 82px rgba(255, 255, 255, 0.22),
    0 58px 170px rgba(34, 47, 73, 0.32);
}

.timeline-hover-preview[hidden] {
  display: none;
}

.timeline-hover-preview-active {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  transform: translate3d(-50%, -50%, 0) scale(1);
  filter: blur(0) saturate(1.06);
}

.timeline-hover-preview > span {
  color: var(--muted);
  font-size: 15px;
}

.timeline-hover-preview h3 {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: auto 0 12px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.timeline-hover-preview p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0;
  color: rgba(14, 22, 36, 0.60);
  font-size: 16px;
  line-height: 1.65;
}

.timeline-hover-preview .log-art {
  width: min(320px, 54%);
  margin-top: 26px;
  border-radius: 46px;
}

.timeline-card::before,
.feed-card::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 20px;
  width: 74px;
  height: 74px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.62), transparent 28%),
    linear-gradient(135deg, rgba(132, 197, 255, 0.26), rgba(255, 153, 204, 0.20));
  opacity: 0.75;
}

.timeline-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -18%;
  bottom: -18%;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  border-left-color: transparent;
  border-bottom-color: transparent;
  opacity: 0.68;
  pointer-events: none;
}

.timeline-slot-main,
.timeline-card-main {
  left: 22%;
  top: 31%;
  z-index: 8;
  width: 56%;
  height: 36%;
}

.timeline-slot-second {
  left: 26%;
  top: 66%;
  z-index: 7;
  width: 48%;
  height: 21%;
  opacity: 0.82;
  --card-scale: 0.95;
}

.timeline-slot-third {
  left: 30%;
  top: 83%;
  z-index: 5;
  width: 40%;
  height: 18%;
  opacity: 0.42;
  --card-scale: 0.88;
}

.timeline-slot-fourth {
  left: 33%;
  top: 97%;
  z-index: 4;
  width: 34%;
  height: 16%;
  opacity: 0.22;
  --card-scale: 0.82;
}

.timeline-slot-fifth {
  left: 26%;
  top: 13%;
  z-index: 7;
  width: 48%;
  height: 21%;
  opacity: 0.82;
  --card-scale: 0.95;
}

.timeline-slot-sixth {
  left: 30%;
  top: -3%;
  z-index: 5;
  width: 40%;
  height: 18%;
  opacity: 0.42;
  --card-scale: 0.88;
}

.timeline-slot-seventh {
  left: 33%;
  top: -15%;
  z-index: 4;
  width: 34%;
  height: 16%;
  opacity: 0.22;
  --card-scale: 0.82;
}

.timeline-slot-eighth {
  left: 40%;
  top: 4%;
  z-index: 3;
  width: 20%;
  height: 8%;
  opacity: 0.36;
  --card-scale: 0.92;
}

.timeline-slot-third,
.timeline-slot-fifth,
.timeline-slot-sixth,
.timeline-slot-seventh {
  padding: 16px;
  border-radius: 28px;
}

.timeline-slot-fourth {
  padding: 18px;
  border-radius: 30px;
}

.timeline-slot-sixth,
.timeline-slot-seventh {
  padding: 12px 14px;
  border-radius: 22px;
}

.timeline-slot-main::after {
  right: -19%;
  bottom: 10%;
  transform: rotate(0deg);
}

.timeline-slot-second::after {
  right: auto;
  left: -24%;
  bottom: -20%;
  transform: rotate(90deg);
}

.timeline-slot-third::after {
  right: auto;
  left: -32%;
  bottom: auto;
  top: -20%;
  transform: rotate(180deg);
}

.timeline-slot-fourth::after {
  right: -34%;
  bottom: auto;
  top: -32%;
  transform: rotate(270deg);
}

.timeline-slot-fifth::after {
  right: -42%;
  bottom: -42%;
  transform: rotate(0deg);
}

.timeline-slot-sixth::after {
  right: auto;
  left: -48%;
  bottom: -40%;
  transform: rotate(90deg);
}

.timeline-slot-seventh::after {
  right: auto;
  left: -54%;
  bottom: auto;
  top: -44%;
  transform: rotate(180deg);
}

.timeline-slot-eighth::after {
  right: -60%;
  bottom: auto;
  top: -58%;
  transform: rotate(270deg);
}

.timeline-card:hover,
.feed-card:hover {
  --hover-y: 0px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 32px 96px rgba(34, 47, 73, 0.20);
}

.timeline-wheel-card:hover {
  --hover-y: 0px;
}

.feed-card:not(.timeline-card):hover {
  transform: translateY(-8px) scale(1.022);
}

.timeline-card > span,
.feed-card > span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 14px;
}

.timeline-card h3,
.feed-card h3 {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.timeline-slot-third h3,
.timeline-slot-fourth h3,
.timeline-slot-fifth h3,
.timeline-slot-sixth h3,
.timeline-slot-seventh h3 {
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: -0.025em;
}

.timeline-slot-fourth > span,
.timeline-slot-fifth > span,
.timeline-slot-sixth > span,
.timeline-slot-seventh > span {
  font-size: 11px;
}

.timeline-slot-sixth h3,
.timeline-slot-seventh h3 {
  margin-top: auto;
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.02;
}

.timeline-slot-seventh > span {
  font-size: 11px;
  opacity: 0.72;
}

.timeline-slot-eighth {
  padding: 12px 14px;
  border-radius: 22px;
}

.timeline-slot-eighth > span {
  font-size: 11px;
  opacity: 0.72;
}

.timeline-slot-eighth h3 {
  max-width: none;
  margin-top: auto;
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.02;
}

.timeline-card-main h3,
.feed-card-main h3 {
  max-width: 330px;
  font-size: 30px;
  line-height: 1.05;
}

.log-art {
  position: relative;
  z-index: 1;
  width: min(170px, 72%);
  aspect-ratio: 1;
  margin: 18px 0 auto;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.78), transparent 28%),
    linear-gradient(135deg, rgba(135, 208, 255, 0.28), rgba(255, 152, 201, 0.24));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -20px 40px rgba(255, 255, 255, 0.14),
    0 16px 44px rgba(57, 77, 112, 0.12);
}

.timeline-slot-main .log-art {
  width: min(260px, 68%);
  margin-top: 24px;
}

.timeline-slot-second .log-art {
  width: min(170px, 64%);
}

.timeline-slot-fifth .log-art {
  width: min(170px, 64%);
}

.timeline-slot-third .log-art,
.timeline-slot-fourth .log-art,
.timeline-slot-fifth .log-art,
.timeline-slot-sixth .log-art,
.timeline-slot-seventh .log-art {
  width: min(82px, 54%);
  margin-top: 10px;
  border-radius: 20px;
}

.timeline-slot-sixth .log-art,
.timeline-slot-seventh .log-art,
.timeline-slot-eighth .log-art {
  display: none;
}

.log-art-large {
  width: min(260px, 78%);
  border-radius: 40px;
}

.log-art-small {
  width: min(128px, 68%);
  border-radius: 26px;
}

.log-art::before,
.log-art::after,
.log-art i {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.log-art::before {
  inset: 13%;
  border: 1px solid rgba(255, 255, 255, 0.54);
}

.log-art::after {
  left: 50%;
  top: 50%;
  width: 38%;
  height: 38%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.34);
}

.log-art i:nth-child(1) {
  left: 11%;
  top: 18%;
  width: 21%;
  height: 21%;
  background: rgba(255, 255, 255, 0.50);
}

.log-art i:nth-child(2) {
  right: 17%;
  top: 21%;
  width: 13%;
  height: 13%;
  background: rgba(255, 147, 194, 0.42);
}

.log-art i:nth-child(3) {
  right: 17%;
  bottom: 14%;
  width: 25%;
  height: 25%;
  background: rgba(129, 209, 255, 0.36);
}

.timeline-dragging {
  cursor: grabbing;
  transform: scale(0.992);
}

.timeline-dragging .timeline-card {
  transition: none !important;
  will-change: transform, opacity;
}

.timeline-flip-prep .timeline-card {
  transition: none !important;
}

.timeline-flip-active .timeline-card {
  transition:
    transform var(--timeline-flip-duration, 680ms) cubic-bezier(.16, .92, .18, 1),
    opacity 520ms ease,
    filter 520ms ease,
    box-shadow 260ms ease;
}

.timeline-reader-open .fibonacci-timeline-stack,
.log-reader-open .fibonacci-log-stack {
  filter: blur(10px) saturate(0.94);
  opacity: 0.36;
  transform: scale(0.985);
  transition: filter 260ms ease, opacity 260ms ease, transform 260ms ease;
}

.log-reader {
  position: absolute;
  inset: 74px 30px 30px;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(180px, 0.58fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 16px 28px;
  align-items: start;
  padding: 30px;
  border-radius: 36px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 22px, 0) scale(0.982);
  filter: blur(12px);
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(.22, 1, .36, 1),
    filter 320ms ease;
}

@keyframes timeline-orbit {
  to {
    transform: rotate(360deg);
  }
}

.log-reader[hidden] {
  display: none;
}

.log-reader-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.log-reader-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: rgba(18, 28, 45, 0.66);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.log-reader .eyebrow {
  grid-column: 2;
  margin: 8px 42px 0 0;
}

.log-reader-art {
  grid-row: 1 / span 3;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 42px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.80), transparent 24%),
    linear-gradient(135deg, rgba(134, 207, 255, 0.30), rgba(255, 153, 204, 0.24));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 28px 70px rgba(57, 77, 112, 0.14);
}

.log-reader h3 {
  grid-column: 2;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.log-reader p[data-timeline-reader-body] {
  grid-column: 2;
  max-width: 620px;
  margin: 0;
  color: rgba(14, 22, 36, 0.68);
  font-size: 17px;
  line-height: 1.9;
}

.feed-card p,
.stack-window p,
.media-panel-inner p,
.media-panel > p,
.contact-panel h2 {
  margin-bottom: 0;
  color: var(--muted);
}

.feed-card p,
.stack-window p,
.media-panel > p,
.profile-widget small,
.identity-lines span,
.status-strip p {
  transition: color 160ms ease, text-shadow 160ms ease, filter 160ms ease;
}

.feed-card:hover p,
.stack-window:hover p,
.media-panel:hover > p,
.profile-widget:hover small,
.identity-lines p:hover span,
.status-strip:hover p {
  color: rgba(14, 22, 36, 0.70);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 18px rgba(42, 61, 92, 0.10);
  filter: brightness(1.03);
}

.media-panel,
.contact-panel {
  margin-top: 16px;
  padding: 32px;
  border-radius: 36px;
  animation: page-rise 860ms 390ms cubic-bezier(.2,.8,.2,1) both;
}

.media-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 28px;
}

.media-panel-inner,
.message-layout,
.chain-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.media-panel-inner {
  margin-bottom: 28px;
}

.media-preview-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.media-preview-grid.fibonacci-timeline-stack {
  display: block;
  grid-template-columns: none;
  gap: 0;
  width: 100%;
  aspect-ratio: auto;
}

.media-preview-grid article,
.media-preview-grid .timeline-card,
.chain-cards article {
  min-height: 152px;
  border-radius: 30px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.72), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0.13));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -16px 30px rgba(136, 167, 216, 0.10),
    0 18px 44px rgba(41, 55, 80, 0.10);
}

.media-preview-grid article,
.media-preview-grid .timeline-card {
  display: flex;
  align-items: flex-end;
  color: rgba(16, 26, 42, 0.66);
}

.media-preview-grid article:nth-child(1),
.media-preview-grid .timeline-card:nth-child(1) {
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, 0.78), transparent 28%),
    linear-gradient(135deg, rgba(166, 204, 255, 0.42), rgba(255, 187, 220, 0.20));
}

.media-preview-grid article:nth-child(2),
.media-preview-grid .timeline-card:nth-child(2) {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.74), transparent 28%),
    linear-gradient(135deg, rgba(255, 230, 180, 0.38), rgba(157, 214, 255, 0.20));
}

.media-preview-grid article:nth-child(3),
.media-preview-grid .timeline-card:nth-child(3) {
  background:
    radial-gradient(circle at 24% 72%, rgba(255, 255, 255, 0.62), transparent 28%),
    linear-gradient(135deg, rgba(212, 193, 255, 0.34), rgba(255, 255, 255, 0.14));
}

.media-preview-grid.fibonacci-timeline-stack .timeline-card {
  position: absolute;
  min-height: 0;
  align-items: stretch;
  padding: 22px;
}

.media-preview-grid.fibonacci-timeline-stack .timeline-slot-third,
.media-preview-grid.fibonacci-timeline-stack .timeline-slot-fifth,
.media-preview-grid.fibonacci-timeline-stack .timeline-slot-sixth,
.media-preview-grid.fibonacci-timeline-stack .timeline-slot-seventh {
  padding: 14px;
  border-radius: 28px;
}

.media-preview-grid.fibonacci-timeline-stack .timeline-slot-fourth {
  padding: 14px;
  border-radius: 26px;
}

.media-preview-grid.fibonacci-timeline-stack .timeline-slot-sixth,
.media-preview-grid.fibonacci-timeline-stack .timeline-slot-seventh {
  padding: 12px 14px;
  border-radius: 22px;
}

.media-preview-grid.fibonacci-timeline-stack .timeline-slot-eighth {
  padding: 12px 14px;
  border-radius: 22px;
}

.message-form {
  display: grid;
  gap: 12px;
}

.message-form input,
.message-form textarea,
.message-form button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  padding: 15px 17px;
  color: rgba(14, 22, 36, 0.76);
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -12px 22px rgba(135, 167, 214, 0.08);
  font: inherit;
  outline: none;
  backdrop-filter: blur(22px) saturate(1.34);
  -webkit-backdrop-filter: blur(22px) saturate(1.34);
}

.message-form textarea {
  min-height: 132px;
  resize: vertical;
}

.message-form button {
  cursor: not-allowed;
  color: rgba(16, 26, 42, 0.82);
  background:
    radial-gradient(circle at 28% 10%, rgba(255, 255, 255, 0.86), transparent 34%),
    rgba(255, 255, 255, 0.34);
}

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

.chain-cards article {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chain-cards span {
  color: var(--muted);
}

.chain-cards b {
  font-size: clamp(18px, 2.5vw, 26px);
  letter-spacing: -0.04em;
  word-break: break-word;
}

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes float-orb {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4%, 3%, 0) scale(1.08);
  }
}

@keyframes window-content-rise {
  from {
    opacity: 0.86;
    transform: translate3d(0, 8px, 0) scale(0.996);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

.click-ripple {
  position: absolute;
  z-index: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.78);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-pop 620ms cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes ripple-pop {
  0% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(0);
  }
  75% {
    opacity: 0.24;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .cursor-light {
    display: none;
  }
}

@media (pointer: coarse) {
  .cursor-light {
    display: none;
  }
}

@media (max-width: 900px) {
  .top-island,
  .hero-grid,
  .media-panel,
  .media-panel-inner,
  .message-layout,
  .chain-layout {
    grid-template-columns: 1fr;
  }

  .top-island {
    align-items: flex-start;
    border-radius: 30px;
    flex-direction: column;
  }

  .phone-stack {
    border-radius: 36px;
  }

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

  .fibonacci-log-stack {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "main"
      "second"
      "third"
      "fourth"
      "fifth";
    min-height: auto;
  }

  .fibonacci-timeline-stack,
  .media-preview-grid.fibonacci-timeline-stack {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "main"
      "second"
      "third"
      "fourth"
      "fifth";
    height: auto;
    min-height: auto;
    overflow: visible;
    touch-action: pan-y;
  }

  .fibonacci-timeline-stack .timeline-card,
  .media-preview-grid.fibonacci-timeline-stack .timeline-card {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    min-height: 148px;
    opacity: 1;
    filter: none;
    pointer-events: auto;
    transform: none;
  }

  .timeline-hover-preview {
    display: none;
  }

  .window-switcher {
    position: relative;
    top: auto;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .window-switcher::after {
    top: 7px;
  }

  .stack-window {
    min-height: auto;
    padding: 24px;
    border-radius: 34px;
  }

  .feed-card-thin {
    margin-top: 0;
  }

  .media-preview-grid,
  .chain-cards {
    grid-template-columns: 1fr;
  }

  .log-reader {
    inset: 68px 20px 20px;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px;
    overflow: auto;
  }

  .log-reader .eyebrow,
  .log-reader h3,
  .log-reader p[data-timeline-reader-body] {
    grid-column: 1;
  }

  .log-reader-art {
    grid-row: auto;
    width: min(180px, 62%);
  }
}
