/* ==========================================================================
   YASHAR DIGITAL UNIVERSE — design system
   Premium dark editorial · creative technology · personal universe
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn%5Bwght%5D.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("https://cdn.jsdelivr.net/npm/@fontsource/space-grotesk@5.0.0/files/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("https://cdn.jsdelivr.net/npm/@fontsource/space-grotesk@5.0.0/files/space-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --ink: #04060e;
  --ink-2: #060a16;
  --ink-3: #080e1e;
  --panel: rgba(12, 18, 36, 0.62);
  --panel-strong: rgba(10, 16, 32, 0.9);
  --panel-solid: #0a1020;
  --line: rgba(150, 168, 255, 0.13);
  --line-strong: rgba(160, 180, 255, 0.3);
  --text: #e9eeff;
  --muted: #98a5c6;
  --dim: #6c7899;
  --blue: #3b6dff;
  --blue-soft: #6f94ff;
  --cyan: #22e0c8;
  --violet: #7b4dff;
  --purple: #a45cff;
  --danger: #ff6b8b;
  --grad: linear-gradient(115deg, #6f94ff 0%, #22e0c8 48%, #a45cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(59, 109, 255, 0.22), rgba(34, 224, 200, 0.12) 50%, rgba(164, 92, 255, 0.2));
  --font: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
  --display: "Space Grotesk", "Vazirmatn", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, monospace;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --glow: 0 0 60px -12px rgba(84, 124, 255, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 74px;
  --shell: min(1240px, calc(100vw - 48px));
  --z-bg: 0;
  --z-content: 2;
  --z-nav: 40;
  --z-overlay: 80;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(59, 109, 255, 0.12), transparent 60%),
    radial-gradient(900px 600px at 5% 20%, rgba(123, 77, 255, 0.1), transparent 60%),
    var(--ink);
  overflow-x: hidden;
}

body.is-loading { cursor: progress; }
body.nav-open { overflow: hidden; }

::selection { background: rgba(34, 224, 200, 0.28); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.28; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.shell { width: var(--shell); margin-inline: auto; position: relative; z-index: var(--z-content); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--mono); letter-spacing: 0.08em; }
.grad-text {
  background: var(--grad);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 12s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ------------------------------------------------------------------ scene */
#yr-webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-bg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, rgba(0, 0, 0, 0.55) 70%, transparent 100%);
}
#yr-webgl.is-ready { opacity: 0.9; }

.uv-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.uv-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 165, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 165, 255, 0.035) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(80% 60% at 50% 20%, #000 0%, transparent 80%);
  opacity: 0.7;
}
.uv-grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.uv-scan {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
  opacity: 0.5;
}
.uv-aurora {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
}
.uv-aurora--a { width: 46vw; height: 46vw; top: -14vw; inset-inline-end: -10vw; background: radial-gradient(circle, rgba(59, 109, 255, 0.35), transparent 68%); }
.uv-aurora--b { width: 38vw; height: 38vw; top: 42vh; inset-inline-start: -14vw; background: radial-gradient(circle, rgba(164, 92, 255, 0.26), transparent 68%); animation-delay: -8s; }
@keyframes drift {
  to { transform: translate3d(4vw, 5vh, 0) scale(1.12); }
}

/* --------------------------------------------------------------- progress */
.uv-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: calc(var(--z-nav) + 2);
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--grad);
  box-shadow: 0 0 18px rgba(34, 224, 200, 0.55);
}

/* ------------------------------------------------------------------- nav */
.uv-header {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-soft), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.uv-header.is-stuck {
  background: rgba(4, 6, 14, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.uv-nav {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.uv-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
  white-space: nowrap;
}
.uv-brand-mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: conic-gradient(from 210deg, #3b6dff, #22e0c8, #a45cff, #3b6dff);
  box-shadow: 0 0 30px -8px rgba(90, 130, 255, 0.8);
  position: relative;
  flex: none;
}
.uv-brand-mark::after {
  content: "";
  position: absolute; inset: 1px;
  border-radius: 11px;
  background: #060a16;
}
.uv-brand-mark span {
  position: relative; z-index: 1;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.uv-brand b { font-weight: 700; }
.uv-brand small {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: var(--dim);
  font-weight: 400;
  margin-top: 2px;
}
.uv-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.uv-nav-links a {
  position: relative;
  font-size: 13.5px;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.uv-nav-links a::after {
  content: "";
  position: absolute;
  bottom: 3px; left: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s var(--ease);
  box-shadow: 0 0 12px var(--cyan);
}
.uv-nav-links a:hover { color: var(--text); background: rgba(140, 165, 255, 0.06); }
.uv-nav-links a[aria-current="page"] { color: var(--text); }
.uv-nav-links a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.uv-nav-tools { display: flex; align-items: center; gap: 8px; }
.uv-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--text);
  background: rgba(120, 150, 255, 0.07);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.uv-nav-cta:hover { border-color: rgba(34, 224, 200, 0.55); background: rgba(34, 224, 200, 0.1); transform: translateY(-1px); }
.uv-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 36, 0.6);
  position: relative;
}
.uv-burger span {
  position: absolute; left: 50%; width: 17px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.uv-burger span:nth-child(1) { top: 14px; }
.uv-burger span:nth-child(2) { top: 20px; }
.uv-burger span:nth-child(3) { top: 26px; }
.nav-open .uv-burger span:nth-child(1) { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-open .uv-burger span:nth-child(2) { opacity: 0; }
.nav-open .uv-burger span:nth-child(3) { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: rgba(120, 150, 255, 0.08);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: transparent; box-shadow: 0 14px 40px -16px rgba(80, 120, 255, 0.8); }
.btn:hover::before { opacity: 1; }
.btn--primary {
  background: var(--grad);
  background-size: 180% 180%;
  color: #04060e;
  font-weight: 600;
  border-color: transparent;
  animation: gradShift 10s ease infinite;
}
.btn--primary::before { display: none; }
.btn--primary:hover { box-shadow: 0 18px 44px -14px rgba(34, 224, 200, 0.55); }
.btn .arrow { font-size: 15px; transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(-4px); }
[dir="ltr"] .btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { border-color: var(--line); color: var(--muted); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 13px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--muted);
  transition: color 0.3s, gap 0.3s var(--ease);
}
.link-arrow:hover { color: var(--cyan); gap: 13px; }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 10%;
  height: 70%;
  background: radial-gradient(60% 60% at 50% 45%, rgba(59, 109, 255, 0.18), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 26px;
  text-transform: uppercase;
}
.hero-kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.hero-kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: blink 2.4s ease infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero-title {
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
}
.hero-title .line { display: block; }
.hero-title .line--indent { padding-inline-start: clamp(0px, 4vw, 64px); }
.hero-title .grad-text { display: inline-block; padding-bottom: 0.08em; }
.hero-lead {
  max-width: 54ch;
  font-size: clamp(15px, 1.35vw, 17.5px);
  line-height: 2;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}
.hero-meta b { color: var(--text); font-weight: 500; }
.hero-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }

/* portrait identity card */
.identity {
  position: relative;
  perspective: 1100px;
  justify-self: center;
  width: min(100%, 420px);
}
.identity-orbit {
  position: absolute;
  inset: -9%;
  border-radius: 50%;
  border: 1px solid rgba(130, 160, 255, 0.16);
  animation: spin 34s linear infinite;
  pointer-events: none;
}
.identity-orbit::before,
.identity-orbit::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
.identity-orbit::before { top: 12%; left: 12%; }
.identity-orbit::after { bottom: 14%; right: 10%; background: var(--purple); box-shadow: 0 0 14px var(--purple); }
.identity-orbit--b { inset: -17%; animation-direction: reverse; animation-duration: 48s; border-style: dashed; opacity: 0.5; }
@keyframes spin { to { transform: rotate(360deg); } }

.identity-card {
  position: relative;
  border-radius: 24px;
  padding: 14px;
  background: linear-gradient(160deg, rgba(22, 32, 60, 0.85), rgba(8, 12, 24, 0.92));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 80px -40px rgba(90, 130, 255, 0.9);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}
.identity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(110, 150, 255, 0.18), transparent 65%);
  pointer-events: none;
}
.identity-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 6px 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-transform: uppercase;
}
.identity-live { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan); }
.identity-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: blink 2s infinite; }
.identity-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 40%, #0d2b44, #05080f 75%);
}
.identity-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(1.05);
  transform: scale(1.02);
}
.identity-frame::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(4, 6, 14, 0.75)),
    repeating-linear-gradient(180deg, rgba(120, 200, 255, 0.05) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.identity-frame-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(120, 200, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 200, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
}
.identity-badge {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(4, 8, 18, 0.76);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.identity-badge b { color: var(--text); letter-spacing: 0.1em; }
.identity-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 14px 6px 4px;
}
.identity-bottom small { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.2em; color: var(--dim); text-transform: uppercase; }
.identity-bottom strong { font-family: var(--display); font-size: 15px; letter-spacing: 0.01em; }
.identity-coords { font-family: var(--mono); font-size: 9px; line-height: 1.7; color: var(--dim); text-align: end; letter-spacing: 0.1em; }
.identity-chip {
  position: absolute;
  z-index: 3;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(7, 12, 24, 0.82);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -24px #000;
  animation: float 7s ease-in-out infinite;
}
.identity-chip b { font-size: 11.5px; letter-spacing: 0.04em; }
.identity-chip small { font-size: 9.5px; color: var(--dim); }
.identity-chip span { font-family: var(--mono); font-size: 8px; letter-spacing: 0.18em; color: var(--cyan); }
.identity-chip--a { inset-inline-start: -26px; top: 22%; }
.identity-chip--b { inset-inline-end: -22px; bottom: 20%; animation-delay: -3.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-scroll {
  display: flex; align-items: center; gap: 12px;
  margin-top: clamp(40px, 7vh, 80px);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--dim);
  text-transform: uppercase;
}
.hero-scroll i {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  display: block;
  animation: pulseLine 2.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes pulseLine { 0%, 100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding: clamp(64px, 9vw, 118px) 0; }
.section--tight { padding-top: clamp(30px, 5vw, 56px); }
.section-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 56px);
}
.section-index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.section-index::after { content: ""; width: 46px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }
.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section-head .lead { color: var(--muted); font-size: 14.5px; line-height: 2; max-width: 46ch; }
.section-head .lead + .lead { margin-top: 10px; }
.section-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; }
.eyebrow { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }

/* reveal */
.reveal, [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.in, [data-reveal].in { opacity: 1; transform: none; }
html.no-js .reveal, html.no-js [data-reveal] { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ lenses */
.lens-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.lens-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(18, 26, 48, 0.72), rgba(7, 11, 22, 0.9));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.5s var(--ease), border-color 0.5s, background 0.5s;
  isolation: isolate;
}
.lens-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 20%), color-mix(in srgb, var(--c, #5b8cff) 26%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
}
.lens-card::after {
  content: "";
  position: absolute;
  inset-inline: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c, #5b8cff), transparent);
  opacity: 0.5;
}
.lens-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c, #5b8cff) 45%, transparent); }
.lens-card:hover::before { opacity: 1; }
.lens-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--dim); }
.lens-icon { font-size: 30px; color: var(--c, #5b8cff); line-height: 1; margin: 20px 0 14px; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--c, #5b8cff) 60%, transparent)); }
.lens-card h3 { font-size: 20px; margin-bottom: 4px; }
.lens-card .fa { font-size: 12px; color: var(--dim); }
.lens-card p { font-size: 12.5px; color: var(--muted); line-height: 1.9; margin-top: 10px; }
.lens-count { font-family: var(--display); font-size: 34px; line-height: 1; margin-top: 18px; letter-spacing: -0.03em; }
.lens-count small { font-family: var(--font); font-size: 10px; color: var(--dim); letter-spacing: 0; margin-inline-start: 6px; }
.lens-go {
  position: absolute; top: 20px; inset-inline-end: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease);
}
.lens-card:hover .lens-go { background: color-mix(in srgb, var(--c, #5b8cff) 20%, transparent); color: #fff; transform: rotate(-45deg); }

/* ------------------------------------------------------------------- cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.work-grid > * { grid-column: span 4; }
.work-grid > .is-wide { grid-column: span 6; }

.item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(17, 24, 45, 0.66), rgba(6, 10, 20, 0.92));
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
  isolation: isolate;
}
.item-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(110, 150, 255, 0.12), transparent 55%);
  opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.item-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.95), 0 0 50px -30px rgba(80, 120, 255, 0.7); }
.item-card:hover::after { opacity: 1; }
.item-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #070c18;
  border-bottom: 1px solid var(--line);
}
.item-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.item-card:hover .item-cover img { transform: scale(1.05); }
.item-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 8, 16, 0.72));
}
.cover-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 15% 10%, color-mix(in srgb, var(--c, #5b8cff) 32%, transparent), transparent 55%),
    radial-gradient(100% 100% at 85% 90%, rgba(164, 92, 255, 0.28), transparent 60%),
    #070b16;
}
.cover-fallback::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.cover-glyph {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 74px);
  color: color-mix(in srgb, var(--c, #5b8cff) 70%, #fff);
  text-shadow: 0 0 48px color-mix(in srgb, var(--c, #5b8cff) 65%, transparent);
  position: relative;
  z-index: 1;
  letter-spacing: -0.04em;
}
.item-type {
  position: absolute;
  top: 12px; inset-inline-start: 12px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(5, 9, 18, 0.78);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  font-size: 10px;
  color: var(--muted);
}
.item-type i { width: 6px; height: 6px; border-radius: 50%; background: var(--c, #5b8cff); box-shadow: 0 0 8px var(--c, #5b8cff); }
.item-featured-mark {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.16em;
  color: var(--cyan); padding: 5px 9px; border-radius: 999px;
  background: rgba(5, 9, 18, 0.72); border: 1px solid rgba(34, 224, 200, 0.35);
}
.item-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.item-meta { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; }
.item-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.item-card h3 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.45; }
.item-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.item-card p { font-size: 12.5px; color: var(--muted); line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.item-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.item-tag { font-size: 10px; color: var(--dim); padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; }
.item-foot .go { font-size: 14px; color: var(--muted); transition: transform 0.4s var(--ease), color 0.4s; }
.item-card:hover .go { color: var(--cyan); transform: translate(-3px, -3px); }

/* type badge/copy */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 11.5px; color: var(--muted);
  background: rgba(130, 160, 255, 0.07);
  border: 1px solid var(--line);
}
.pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------------------------------------------------------------- activity */
.feed { border-top: 1px solid var(--line); }
.feed-row {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s, padding 0.4s var(--ease);
}
.feed-row:hover { background: rgba(120, 150, 255, 0.035); padding-inline: 16px; }
.feed-date { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--dim); }
.feed-main { min-width: 0; }
.feed-main .top { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; flex-wrap: wrap; }
.feed-main .type { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.16em; color: var(--c, var(--cyan)); text-transform: uppercase; }
.feed-main h3 { font-size: 16px; font-weight: 500; }
.feed-main h3 a::after { content: ""; position: absolute; inset: 0; }
.feed-main p { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-go { color: var(--dim); font-size: 14px; transition: transform 0.4s var(--ease), color 0.4s; }
.feed-row:hover .feed-go { color: var(--cyan); transform: translate(-3px, -3px); }

/* ---------------------------------------------------------------- interest cloud */
.interest-cloud { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.interest-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(14, 20, 38, 0.6);
  color: var(--muted);
  font-size: calc(12px + var(--w, 0) * 2px);
  transition: transform 0.4s var(--ease), border-color 0.4s, color 0.4s, background 0.4s;
}
.interest-pill b { font-weight: 500; color: var(--text); }
.interest-pill span { font-family: var(--mono); font-size: 8.5px; color: var(--dim); }
.interest-pill:hover { transform: translateY(-3px); border-color: rgba(34, 224, 200, 0.5); color: var(--text); background: rgba(34, 224, 200, 0.06); }
.interest-pill::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--c, var(--cyan)); box-shadow: 0 0 10px var(--c, var(--cyan));
}

/* ------------------------------------------------------------------ metrics */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric { background: rgba(7, 11, 22, 0.8); padding: 26px 22px; }
.metric b { display: block; font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.04em; }
.metric span { display: block; margin-top: 8px; font-size: 11px; color: var(--dim); }
.metric em { font-style: normal; color: var(--cyan); }

/* --------------------------------------------------------------- statement */
.statement-block {
  position: relative;
  padding: clamp(30px, 5vw, 60px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(59, 109, 255, 0.14), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(164, 92, 255, 0.12), transparent 60%),
    rgba(8, 12, 24, 0.72);
  overflow: hidden;
}
.statement-block::before {
  content: "“";
  position: absolute;
  top: -28px; inset-inline-end: 24px;
  font-family: var(--display);
  font-size: 180px;
  color: rgba(140, 170, 255, 0.08);
  line-height: 1;
}
.statement-block blockquote {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  line-height: 1.9;
  font-weight: 400;
  max-width: 62ch;
}
.statement-block .who { margin-top: 24px; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; color: var(--dim); text-transform: uppercase; }
.statement-block .who::before { content: ""; width: 30px; height: 1px; background: var(--line-strong); }
.principles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.principle {
  font-size: 11px; color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 16, 30, 0.5);
}

/* -------------------------------------------------------------------- page */
.page-head {
  position: relative;
  padding: calc(var(--nav-h) + clamp(52px, 9vh, 96px)) 0 clamp(30px, 5vw, 56px);
}
.page-head h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 18ch;
}
.page-head .lead { margin-top: 22px; max-width: 62ch; color: var(--muted); font-size: 15px; line-height: 2; }
.page-head .eyebrow { margin-bottom: 18px; color: var(--cyan); }
.page-head--split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: end; }
.page-head-aside { display: flex; flex-direction: column; gap: 12px; justify-self: end; text-align: end; font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; }
.page-head-aside b { color: var(--text); font-weight: 500; }

/* --------------------------------------------------------------- toolbar */
.toolbar { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 20; padding: 12px 0; }
.toolbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 20, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 20px 50px -30px #000;
}
.search-field { position: relative; flex: 1 1 220px; min-width: 180px; }
.search-field input {
  width: 100%; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 16, 30, 0.7);
  padding: 0 40px 0 14px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
[dir="ltr"] .search-field input { padding: 0 14px 0 40px; }
.search-field input::placeholder { color: var(--dim); }
.search-field input:focus { border-color: rgba(34, 224, 200, 0.5); background: rgba(10, 20, 34, 0.9); }
.search-field svg { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--dim); pointer-events: none; }
.view-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(10, 16, 30, 0.8); border: 1px solid var(--line); }
.view-tabs button {
  border: 0; background: transparent; color: var(--muted);
  font-size: 12px; padding: 7px 12px; border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}
.view-tabs button:hover { color: var(--text); }
.view-tabs button[aria-pressed="true"] { background: rgba(120, 150, 255, 0.14); color: var(--text); }
.sort-select {
  height: 42px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(10, 16, 30, 0.8); color: var(--muted);
  padding: 0 12px; font-size: 12px; outline: none;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  border: 1px solid var(--line);
  background: rgba(10, 16, 30, 0.55);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 7px;
}
.chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--c, var(--dim)); }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { color: var(--text); border-color: rgba(34, 224, 200, 0.45); background: rgba(34, 224, 200, 0.08); }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 18px; font-size: 11.5px; color: var(--dim); }
.results-bar b { color: var(--text); font-weight: 500; }
.empty-state {
  padding: 70px 24px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  background: rgba(8, 12, 24, 0.5);
}
.empty-state b { display: block; font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--dim); font-size: 13px; }

/* ---------------------------------------------------------------- timeline */
.tl-wrap { position: relative; }
.tl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.tl-year { position: relative; padding-inline-start: 42px; margin-bottom: 48px; }
.tl-year::before {
  content: ""; position: absolute; inset-inline-start: 13px; top: 30px; bottom: -48px;
  width: 1px; background: linear-gradient(180deg, var(--line-strong), var(--line));
}
.tl-year:last-child::before { display: none; }
.tl-year-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.tl-year-head h2 { font-family: var(--display); font-size: 26px; letter-spacing: -0.03em; }
.tl-year-head .count { font-family: var(--mono); font-size: 9px; color: var(--dim); letter-spacing: 0.16em; }
.tl-year-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tl-year::after {
  content: ""; position: absolute; inset-inline-start: 8px; top: 8px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--cyan);
  box-shadow: 0 0 14px rgba(34, 224, 200, 0.6);
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
.tl-item:hover { background: rgba(14, 22, 42, 0.7); border-color: var(--line); transform: translateX(-4px); }
.tl-date { font-family: var(--mono); font-size: 9.5px; color: var(--dim); letter-spacing: 0.1em; padding-top: 4px; }
.tl-content h3 { font-size: 16px; margin-bottom: 4px; }
.tl-content h3 a::after { content: ""; position: absolute; inset: 0; }
.tl-content p { font-size: 12px; color: var(--dim); line-height: 1.9; max-width: 64ch; }
.tl-type { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c, var(--cyan)); white-space: nowrap; padding-top: 4px; }

/* ------------------------------------------------------------------- item */
.item-page { padding-top: calc(var(--nav-h) + 38px); }
.item-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(28px, 5vw, 64px); align-items: end; padding: clamp(28px, 5vw, 60px) 0; }
.item-hero h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 700; }
.item-hero .sub { margin-top: 14px; font-size: 17px; color: var(--muted); }
.item-hero .summary { margin-top: 20px; font-size: 14.5px; color: var(--muted); line-height: 2; max-width: 64ch; }
.item-breadcrumb { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; margin-bottom: 24px; flex-wrap: wrap; }
.item-breadcrumb a:hover { color: var(--cyan); }
.item-cover-lg { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; position: relative; background: #070c18; }
.item-cover-lg img { width: 100%; height: 100%; object-fit: cover; }
.item-cover-lg .cover-fallback { position: relative; height: 100%; }
.item-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: clamp(26px, 5vw, 64px); align-items: start; padding: clamp(30px, 5vw, 60px) 0 80px; }
.item-content { min-width: 0; }
.prose { font-size: 15.5px; line-height: 2.15; color: #c6d0e8; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { font-size: 24px; color: var(--text); margin-top: 2em; letter-spacing: -0.02em; }
.prose h3 { font-size: 19px; color: var(--text); margin-top: 1.8em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(34, 224, 200, 0.35); }
.prose blockquote { margin-inline: 0; padding-inline-start: 20px; border-inline-start: 2px solid rgba(34, 224, 200, 0.5); color: var(--muted); font-size: 16px; }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-inline-start: 20px; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.8em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px rgba(34, 224, 200, 0.6); }
.prose code { font-family: var(--mono); font-size: 0.88em; background: rgba(120, 150, 255, 0.12); padding: 2px 6px; border-radius: 6px; color: var(--blue-soft); }
.item-side { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 14px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(9, 14, 28, 0.7); padding: 18px; }
.side-card h4 { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; color: var(--dim); text-transform: uppercase; margin-bottom: 14px; font-weight: 500; }
.side-meta { display: grid; gap: 12px; }
.side-meta div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; align-items: baseline; }
.side-meta dt { color: var(--dim); font-size: 11px; }
.side-meta dd { margin: 0; color: var(--text); text-align: end; }
.side-links { display: flex; flex-direction: column; gap: 8px; }
.side-links a { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; transition: all 0.3s; }
.side-links a:hover { color: var(--text); border-color: rgba(34, 224, 200, 0.4); background: rgba(34, 224, 200, 0.05); }
.share-row { display: flex; gap: 8px; }
.share-row button, .share-row a { flex: 1; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: rgba(12, 18, 34, 0.7); color: var(--muted); font-size: 11px; display: grid; place-items: center; transition: all 0.3s; }
.share-row button:hover, .share-row a:hover { color: var(--text); border-color: var(--line-strong); }
.relation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.relation-card { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: rgba(10, 16, 30, 0.6); transition: all 0.35s; }
.relation-card:hover { border-color: rgba(34, 224, 200, 0.4); transform: translateY(-2px); }
.relation-card small { font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; color: var(--dim); text-transform: uppercase; }
.relation-card b { display: block; font-size: 13.5px; font-weight: 500; margin-top: 6px; }
.relation-card a::after { content: ""; position: absolute; inset: 0; }
.item-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.item-tag-row a { font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; transition: all 0.3s; }
.item-tag-row a:hover { color: var(--cyan); border-color: rgba(34, 224, 200, 0.4); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.pager a { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: all 0.35s; background: rgba(9, 14, 28, 0.5); }
.pager a:hover { border-color: var(--line-strong); background: rgba(14, 22, 42, 0.8); }
.pager small { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.16em; color: var(--dim); text-transform: uppercase; }
.pager b { display: block; font-size: 14px; font-weight: 500; margin-top: 6px; }
.pager .next { text-align: end; }
.prerender { padding: 20px 0; }
.prerender-body p { margin: 1em 0; color: var(--muted); }
.prerender-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.prerender-tags li { font-size: 11px; border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; color: var(--dim); }

/* -------------------------------------------------------------- graph page */
.graph-shell {
  position: relative;
  height: min(68vh, 620px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: radial-gradient(80% 80% at 50% 40%, rgba(14, 24, 48, 0.9), rgba(4, 7, 14, 0.95));
  overflow: hidden;
  touch-action: none;
}
.graph-shell canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.graph-shell canvas:active { cursor: grabbing; }
.graph-legend {
  position: absolute;
  inset-inline-start: 16px; bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(5, 9, 18, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; color: var(--dim);
  text-transform: uppercase;
  max-width: calc(100% - 32px);
}
.graph-legend span { display: inline-flex; align-items: center; gap: 6px; }
.graph-legend i { width: 6px; height: 6px; border-radius: 50%; }
.graph-hint { position: absolute; top: 14px; inset-inline-end: 16px; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; color: var(--dim); }
.graph-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.graph-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(8, 13, 26, 0.7); padding: 22px; min-height: 240px; }
.graph-panel .empty { color: var(--dim); font-size: 12.5px; line-height: 2; }
.graph-panel h3 { font-size: 20px; margin: 8px 0 6px; }
.graph-panel .kind { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.16em; color: var(--cyan); text-transform: uppercase; }
.graph-panel .rel { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.graph-panel .rel a { font-size: 12px; color: var(--muted); padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; transition: all 0.3s; }
.graph-panel .rel a:hover { color: var(--text); border-color: rgba(34, 224, 200, 0.35); }
.graph-stat { display: flex; gap: 14px; margin-top: 16px; font-family: var(--mono); font-size: 9px; color: var(--dim); letter-spacing: 0.1em; }

/* ------------------------------------------------------------------ about */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.about-portrait { position: sticky; top: calc(var(--nav-h) + 24px); }
.about-portrait-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 4/5; background: #070c18; }
.about-portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 7, 14, 0.9)); }
.about-portrait-cap { position: absolute; bottom: 16px; inset-inline: 16px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; }
.about-portrait-cap b { font-family: var(--display); font-size: 16px; }
.about-portrait-cap small { font-family: var(--mono); font-size: 8px; letter-spacing: 0.18em; color: var(--dim); text-transform: uppercase; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 14px; }
.about-fact { background: rgba(8, 12, 24, 0.8); padding: 16px; }
.about-fact small { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; color: var(--dim); text-transform: uppercase; margin-bottom: 5px; }
.about-fact b { font-size: 12.5px; font-weight: 500; }
.about-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 18px; letter-spacing: -0.03em; }
.about-copy p { color: var(--muted); line-height: 2.1; font-size: 14.5px; margin-bottom: 18px; }
.about-copy p strong { color: var(--text); }

/* ---------------------------------------------------------------- contact */
.contact-hero { padding: calc(var(--nav-h) + clamp(60px, 12vh, 120px)) 0 40px; }
.contact-hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 1.05; letter-spacing: -0.04em; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: clamp(14px, 2.4vw, 24px);
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s, border-color 0.3s;
  word-break: break-all;
  direction: ltr;
}
.contact-mail:hover { color: var(--cyan); border-color: var(--cyan); }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 50px; }
.contact-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 16, 30, 0.62);
  padding: 20px;
  transition: all 0.4s var(--ease);
  overflow: hidden;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: rgba(16, 25, 48, 0.8); }
.contact-card small { font-family: var(--mono); font-size: 8px; letter-spacing: 0.18em; color: var(--dim); text-transform: uppercase; }
.contact-card b { display: block; margin-top: 10px; font-size: 14px; font-weight: 500; direction: ltr; text-align: start; }
.contact-card span { display: block; margin-top: 8px; font-size: 11px; color: var(--dim); }
.contact-form-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 60px); align-items: start; margin-top: clamp(50px, 8vw, 90px); }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.16em; color: var(--dim); text-transform: uppercase; }
.field input, .field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.7);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.9; }
.field input:focus, .field textarea:focus { border-color: rgba(34, 224, 200, 0.5); background: rgba(10, 20, 34, 0.9); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-status { font-size: 12px; color: var(--muted); min-height: 22px; }
.form-status.ok { color: var(--cyan); }
.form-status.err { color: var(--danger); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ----------------------------------------------------------------- footer */
.footer { position: relative; margin-top: 60px; border-top: 1px solid var(--line); padding: 54px 0 30px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.2fr 0.6fr 0.6fr; gap: 40px; }
.footer-brand { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.03em; }
.footer-tag { color: var(--dim); font-size: 12px; margin-top: 10px; max-width: 34ch; line-height: 1.9; }
.footer-col h4 { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.18em; color: var(--dim); text-transform: uppercase; margin-bottom: 14px; font-weight: 500; }
.footer-col a { display: block; font-size: 12.5px; color: var(--muted); padding: 5px 0; transition: color 0.3s, transform 0.3s; }
.footer-col a:hover { color: var(--cyan); transform: translateX(-3px); }
.footer-mark {
  font-family: var(--display);
  font-size: clamp(56px, 15vw, 200px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.8;
  margin-top: 40px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(150, 170, 255, 0.16);
  user-select: none;
  white-space: nowrap;
  direction: ltr;
  text-align: center;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; }
.footer-bottom a:hover { color: var(--cyan); }

/* ------------------------------------------------------------- transition */
.uv-transition {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: #04060e;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease-soft);
}
.uv-transition.is-on { opacity: 1; }

/* ------------------------------------------------------------------- misc */
.to-top {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(8, 13, 26, 0.8);
  color: var(--muted);
  display: grid; place-items: center;
  z-index: 30;
  opacity: 0; transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s, color 0.3s, border-color 0.3s;
  backdrop-filter: blur(10px);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--cyan); border-color: rgba(34, 224, 200, 0.5); }
.badge-sample { font-family: var(--mono); font-size: 8px; color: var(--cyan); border: 1px solid rgba(34,224,200,.35); padding: 2px 7px; border-radius: 999px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .identity { justify-self: start; width: min(100%, 360px); }
  .lens-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid > * { grid-column: span 6; }
  .item-layout { grid-template-columns: 1fr; }
  .item-side { position: static; }
  .graph-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 420px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .uv-nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 24px;
    background: rgba(5, 8, 16, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
    transform: translateY(-120%);
    transition: transform 0.45s var(--ease);
    z-index: -1;
  }
  .uv-nav-links a { padding: 13px 14px; border-radius: 10px; font-size: 15px; }
  .nav-open .uv-nav-links { transform: none; }
  .uv-burger { display: block; }
  .uv-nav-cta span.cta-label { display: none; }
  .uv-nav-cta { width: 42px; padding: 0; justify-content: center; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero-title { font-size: clamp(2.6rem, 10vw, 4rem); }
  .hero-title .line--indent { padding-inline-start: 0; }
  .identity-chip--a { inset-inline-start: -8px; }
  .identity-chip--b { inset-inline-end: -6px; }
  .item-hero { grid-template-columns: 1fr; }
  .page-head--split { grid-template-columns: 1fr; }
  .page-head-aside { justify-self: start; text-align: start; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .work-grid > * { grid-column: span 12; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .tl-type { padding-top: 0; }
  .toolbar { position: static; }
}
@media (max-width: 620px) {
  :root { --shell: calc(100vw - 32px); --nav-h: 66px; }
  body { font-size: 15px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 12px; font-size: 8.5px; }
  .lens-grid { grid-template-columns: 1fr; }
  .lens-card { min-height: 200px; }
  .identity { width: 100%; overflow-x: clip; }
  .identity-chip { display: none; }
  .identity-orbit { inset: -4%; }
  .identity-orbit--b { inset: -6%; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 18px 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .feed-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .feed-date { grid-column: 1 / -1; }
  .about-facts { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .item-side { order: 2; }
  .footer-mark { font-size: 22vw; }
  .view-tabs { flex-wrap: wrap; }
  .sort-select { flex: 1; }
  .toolbar-inner { padding: 8px; }
  .graph-shell { height: 58vh; }
}

/* ============================================================== FRONT PAGE */

/* Front hero — big orbs + portrait composition */
.front-hero { padding-bottom: 40px; }

/* quick access rail */
.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: 30px;
}
.rail a {
  background: rgba(5, 9, 18, 0.72);
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background 0.4s;
  position: relative;
  overflow: hidden;
}
.rail a::before {
  content: "";
  position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 1px;
  background: var(--grad);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.rail a:hover { background: rgba(14, 22, 42, 0.9); }
.rail a:hover::before { transform: none; }
.rail small { font-family: var(--mono); font-size: 8px; letter-spacing: 0.18em; color: var(--dim); text-transform: uppercase; }
.rail b { font-size: 14px; font-weight: 500; }
.rail span { font-size: 11px; color: var(--dim); }

/* editorial split */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 70px); align-items: start; }
.editorial .sticky { position: sticky; top: calc(var(--nav-h) + 24px); }
.editorial-note { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.editorial-note .idx { font-family: var(--mono); font-size: 9px; color: var(--cyan); letter-spacing: 0.14em; padding-top: 5px; }
.editorial-note h3 { font-size: 15px; margin-bottom: 5px; font-weight: 500; }
.editorial-note p { font-size: 12.5px; color: var(--dim); line-height: 1.9; }

/* home timeline preview */
.mini-tl { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mini-tl a { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; background: rgba(7, 11, 22, 0.8); transition: background 0.35s; }
.mini-tl a:hover { background: rgba(16, 24, 44, 0.9); }
.mini-tl small { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; color: var(--dim); }
.mini-tl b { font-size: 13.5px; font-weight: 500; }
.mini-tl span { font-size: 14px; color: var(--dim); }
.mini-tl a:hover span { color: var(--cyan); }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 40px; font-family: var(--display); font-size: 13px; letter-spacing: 0.22em; color: var(--dim); text-transform: uppercase; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--cyan); font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: marqueeRtl; }
@keyframes marqueeRtl { to { transform: translateX(50%); } }

@media (max-width: 900px) {
  .editorial { grid-template-columns: 1fr; }
  .editorial .sticky { position: static; }
  .rail { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .rail { grid-template-columns: 1fr; }
  .mini-tl a { grid-template-columns: 60px 1fr; }
  .mini-tl span { display: none; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, [data-reveal] { opacity: 1 !important; transform: none !important; }
  #yr-webgl { display: none; }
  .marquee-track { animation: none; }
}
html[data-motion="off"] #yr-webgl { display: none; }
html[data-motion="off"] .marquee-track { animation: none; }

/* print */
@media print {
  #yr-webgl, .uv-atmosphere, .uv-aurora, .uv-grain, .uv-scan, .uv-header, .to-top, .uv-progress { display: none !important; }
  body { background: #fff; color: #111; }
}
