@font-face {
  font-family: 'Monaspace Neon';
  src: url('fonts/MonaspaceNeon.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 100% 125%;
  font-style: oblique 0deg 11deg;
  font-display: swap;
}

@font-face {
  font-family: 'Monaspace Krypton';
  src: url('fonts/MonaspaceKrypton.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 100% 125%;
  font-style: oblique 0deg 11deg;
  font-display: swap;
}

@font-face {
  font-family: 'Monaspace Radon';
  src: url('fonts/MonaspaceRadon.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 100% 125%;
  font-style: oblique 0deg 11deg;
  font-display: swap;
}

:root {
  --bg: #d3deec;
  --bg-name: #bccbdf;
  --ink: #161616;
  --ink-soft: #2c2c2a;
  --muted-light: #5c5c58;
  --card: #141414;
  --accent: #f2b544;

  --night: #dfe7f2;
  --text: #121821;
  --text-soft: #3e4855;
  --muted: #6a7482;
  --line: rgba(18, 24, 33, 0.12);
  --teal: #0d8f80;
  --on-teal: #ffffff;
  --surface: rgba(255, 255, 255, 0.55);
  --field: rgba(255, 255, 255, 0.95);
  --header-bg: rgba(223, 231, 242, 0.8);
  --ghost: #c9d5e5;
  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-text: #1b2533;
  --glass-muted: #5a6575;
  --glass-bar: rgba(18, 24, 33, 0.14);
  --glass-red: #d93a33;
  --glass-ok: #0d8f80;
  --glass-shadow: 0 20px 45px rgba(40, 60, 110, 0.18);
  --glass-box: rgba(255, 255, 255, 0.7);
  --glass-deep: rgba(18, 24, 33, 0.05);
  --glass-amber: #b7791f;
  --glass-dot: rgba(18, 24, 33, 0.12);
  --glass-red-soft: rgba(217, 58, 51, 0.1);
  --glass-blue: #2f6fd6;
  --next: #7c5cff;

  --grid-line: rgba(18, 24, 33, 0.05);
  --glow-1: #6f9bff;
  --glow-2: #6fd6c2;
  --glow-3: #b49cff;
  --glow-op: 0.45;
  --cursor-glow: radial-gradient(circle, rgba(70, 110, 230, 0.12) 0%, rgba(13, 143, 128, 0.06) 30%, transparent 65%);

  --panel: #0d1726;
  --panel-text: #e8ece9;
  --panel-muted: #8b958f;
  --panel-teal: #5fd4c4;

  --navy: #0a111c;
  --red: #ff5f57;
  --amber: #febc2e;
  --green: #28c840;

  --font-body: 'Monaspace Neon', ui-monospace, Menlo, monospace;
  --font-mono: 'Monaspace Krypton', ui-monospace, Menlo, monospace;
  --font-sign: 'Monaspace Radon', ui-monospace, cursive;
  --font-head: 'Monaspace Neon', ui-monospace, Menlo, monospace;
  --font-display: 'Anton', 'Impact', sans-serif;
  --font-script: 'Pinyon Script', cursive;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0c121c;
  --bg-name: #151e2c;
  --ink: #e8ece9;
  --ink-soft: #c9d1cd;
  --muted-light: #8b958f;
  --card: #0d1726;

  --night: #06080d;
  --text: #e8ece9;
  --text-soft: #b9c2bd;
  --muted: #8b958f;
  --line: rgba(232, 236, 233, 0.12);
  --teal: #5fd4c4;
  --on-teal: #0a111c;
  --surface: rgba(13, 23, 38, 0.72);
  --field: rgba(6, 8, 13, 0.6);
  --header-bg: rgba(6, 8, 13, 0.72);
  --ghost: #142034;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-text: #e2e7ea;
  --glass-muted: #8b958f;
  --glass-bar: rgba(255, 255, 255, 0.14);
  --glass-red: #ff7a72;
  --glass-ok: #5fd4c4;
  --glass-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  --glass-box: rgba(255, 255, 255, 0.06);
  --glass-deep: rgba(0, 0, 0, 0.25);
  --glass-amber: #febc2e;
  --glass-dot: rgba(255, 255, 255, 0.08);
  --glass-red-soft: rgba(255, 95, 87, 0.12);
  --glass-blue: #5fa8ff;
  --next: #a98bff;

  --grid-line: rgba(232, 236, 233, 0.04);
  --glow-1: #2f5fd0;
  --glow-2: #1f8f80;
  --glow-3: #4b3fa8;
  --glow-op: 0.2;
  --cursor-glow: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, rgba(160, 190, 255, 0.04) 30%, transparent 65%);

  color-scheme: dark;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background: var(--night);
  color: var(--text);
  transition: background 0.4s ease, color 0.4s ease;
  font-family: var(--font-body);
  font-feature-settings: "calt" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

main, .ft {
  position: relative;
  z-index: 1;
}

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 20%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 20%, #000 25%, transparent 80%);
}

.bg-glow {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: var(--glow-op);
  will-change: transform;
  transition: background 0.6s ease, opacity 0.6s ease;
}

.bg-glow.g1 {
  top: -12vw;
  left: -14vw;
  background: var(--glow-1);
  animation: drift-1 26s ease-in-out infinite alternate;
}

.bg-glow.g2 {
  bottom: -22vw;
  left: 30vw;
  background: var(--glow-2);
  animation: drift-2 32s ease-in-out infinite alternate;
}

.bg-glow.g3 {
  top: 30vh;
  right: -18vw;
  background: var(--glow-3);
  animation: drift-3 30s ease-in-out infinite alternate;
}

@keyframes drift-1 { to { transform: translate(10vw, 8vh) scale(1.1); } }
@keyframes drift-2 { to { transform: translate(-10vw, -8vh) scale(0.9); } }
@keyframes drift-3 { to { transform: translate(-8vw, 10vh) scale(1.1); } }

#bg-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loading {
  overflow: hidden;
}

.loading .hero-bg-name,
.loading .hero-photo {
  animation-play-state: paused;
}

.loading .site-header { z-index: 101; }
.loading .site-nav,
.loading .theme-toggle { visibility: hidden; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  transition: opacity 0.6s ease;
}

.loader.done {
  opacity: 0;
  pointer-events: none;
}

.loader-marquee {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
}

.loader-track {
  display: flex;
  width: max-content;
  animation: marquee 16s linear infinite;
}

.loader-track span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 112px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  padding-right: 0.4em;
}

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

.loader-pill {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 400px;
  height: 120px;
  padding: 0 52px;
  border: 3px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#050505, #050505) padding-box,
    linear-gradient(100deg, var(--teal) 0%, rgba(95, 212, 196, 0.15) 45%, transparent 70%) border-box;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(95, 212, 196, 0.25);
  color: #f4efe6;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    width 0.6s cubic-bezier(0.7, 0, 0.2, 1),
    height 0.6s cubic-bezier(0.7, 0, 0.2, 1),
    border-radius 0.6s ease;
}

.loader-pct {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  color: #8a8a86;
}

.loader-cursor {
  width: 14px;
  height: 26px;
  background: #f4efe6;
  animation: blink 0.8s steps(1) infinite;
}

.loader.granted .loader-pill { justify-content: center; }
.loader.granted .loader-pct  { display: none; }

.loader.expand .loader-pill {
  width: min(80vw, 1100px);
  height: 240px;
}

.loader.fill .loader-pill {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}

.loader.fill .loader-word {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 3vw;
  color: var(--ink);
  transition: background 0.3s ease, color 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  padding-top: 14px;
  padding-bottom: 14px;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  color: var(--text);
}

.monogram {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.monogram sup {
  font-size: 12px;
  margin-left: 4px;
  vertical-align: super;
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 13px;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  opacity: 1;
}

.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--teal);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.theme-toggle:hover { opacity: 1; }
.theme-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
:root[data-theme="dark"] .theme-toggle svg { transform: rotate(180deg); }
.theme-toggle svg { transition: transform 0.4s ease; }

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  transition: background 0.4s ease;
}

.hero-bg-name {
  position: absolute;
  inset: 0 0 -2vh 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  font-family: var(--font-display);
  font-size: clamp(90px, 17.5vw, 300px);
  line-height: 0.86;
  color: var(--bg-name);
  user-select: none;
  scale: 1 1.5;
  transform-origin: center bottom;
  animation: rise 1s ease-out both;
  transition: color 0.4s ease;
}

.hero-photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 170vh;
  object-fit: contain;
  object-position: bottom;
  z-index: 2;
  animation: rise-photo 1.1s 0.15s ease-out both;
}

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

@keyframes rise-photo {
  from { opacity: 0; transform: translate(-50%, 60px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.hero-left {
  position: absolute;
  left: 3vw;
  bottom: 18vh;
  width: 340px;
  z-index: 3;
}

.work-card {
  display: block;
  width: 320px;
  padding: 12px 16px 16px;
  background: var(--card);
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transform: rotate(-4deg);
  transition: transform 0.25s ease;
  text-decoration: none;
}

.work-card:hover,
.work-card:focus-visible {
  transform: rotate(0deg) scale(1.04);
}

.terminal-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.terminal-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.terminal-dots span:nth-child(2) { background: var(--amber); }
.terminal-dots span:nth-child(3) { background: var(--green); }

.term-lines {
  min-height: 66px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.term-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #d8d8d4;
  white-space: nowrap;
}

.term-line .txt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.term-line.typing .txt::after {
  content: '▋';
  margin-left: 1px;
  animation: blink 0.8s steps(1) infinite;
}

.tag {
  flex: none;
  width: 48px;
  padding: 2px 0;
  border-radius: 2px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
}

.tag-alert  { color: #ff6b63; background: rgba(255, 95, 87, 0.15); }
.tag-triage { color: var(--amber); background: rgba(254, 188, 46, 0.15); }
.tag-fixed  { color: #3ddc5a; background: rgba(40, 200, 64, 0.15); }

.label {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.tagline {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.hero-right {
  position: absolute;
  right: 4vw;
  bottom: 22vh;
  width: 330px;
  z-index: 3;
}

.signature {
  font-family: var(--font-script);
  font-size: 78px;
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: 28px;
  color: var(--ink);
}

.signature span {
  display: inline-block;
  padding-left: 0.1em;
}

.intro {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.cta-solid { background: var(--ink); color: var(--bg); }
.cta-ghost { background: transparent; color: var(--ink); }

.cta-solid:hover,
.cta-solid:focus-visible,
.cta-resume[open] .cta-solid {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--on-teal);
  outline: none;
}

.cta-ghost:hover,
.cta-ghost:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
  outline: none;
}

.cta-resume { position: relative; }
.cta-resume summary { list-style: none; }
.cta-resume summary::-webkit-details-marker { display: none; }
.cta-resume summary span { transition: transform 0.25s ease; }
.cta-resume[open] summary span { transform: rotate(180deg); }

.cta-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--ink);
  box-shadow: var(--glass-shadow);
  z-index: 5;
}

.cta-menu a {
  padding: 11px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.cta-menu a + a { border-top: 1px solid var(--line); }
.cta-menu a:hover,
.cta-menu a:focus-visible { color: var(--teal); outline: none; }

.hero-footer {
  position: absolute;
  left: 3vw;
  bottom: 4vh;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.bw, .pj, .sk, .xp, .jr, .ft {
  color: var(--text);
  padding: 14vh 4vw;
}

.bw { margin-top: -14vh; padding-top: 24vh; }

.sk, .xp, .jr, .ft { border-top: 1px solid var(--line); }

.sec-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--teal);
}

.bw-title, .sk-title, .xp-title, .jr-title, .ft-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(40px, 6.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.bw-title em, .sk-title em, .xp-title em, .jr-title em, .ft-title em, .bw-intro em {
  font-family: var(--font-sign);
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.04em;
  color: var(--teal);
}

.bw-intro {
  margin-top: 20px;
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: -0.02em;
}

.bw-stage {
  position: relative;
  min-height: 64vh;
  display: grid;
  place-items: center;
  text-align: center;
  margin-top: 2vh;
  padding: 150px 0;
}

.bw-title {
  position: relative;
  z-index: 1;
}

.bw-float {
  position: absolute;
  width: 240px;
  padding: 14px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--glass-text);
  text-align: left;
  animation: bob 6s ease-in-out infinite;
}

.bw-float.f1 { top: 2%;  left: 3%;  --r: -6deg; }
.bw-float.f2 { top: 0;   right: 3%; --r: 5deg; animation-delay: -2s; }
.bw-float.f3 { bottom: 0; right: 9%; --r: -3deg; animation-delay: -4s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50%      { transform: translateY(-10px) rotate(var(--r)); }
}

.mini-dots { display: flex; gap: 5px; margin-bottom: 10px; }
.mini-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.mini-dots span:nth-child(2) { background: var(--amber); }
.mini-dots span:nth-child(3) { background: var(--green); }

.bw-float b    { font-weight: 500; }
.bw-float .red { color: var(--glass-red); }
.bw-float .ok  { color: var(--glass-ok); }
.mini-k        { color: var(--glass-muted); font-size: 10.5px; margin-bottom: 6px; }
.mini-alert    { color: var(--glass-red); margin-top: 8px; }

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
  border-bottom: 1px solid var(--glass-bar);
}

.mini-bars i     { flex: 1; background: var(--glass-bar); }
.mini-bars i.hot { background: var(--glass-red); }

.bw-bottom {
  margin-top: 8vh;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.bw-text {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.75;
  max-width: 70ch;
}

.bw-text .w    { opacity: 0.15; filter: blur(4px); transition: opacity 0.5s ease, filter 0.5s ease; }
.bw-text .w.on { opacity: 1; filter: blur(0); }

.bw-facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bw-facts dt  { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.bw-facts dd  { margin-top: 4px; font-size: 14px; }

.pj {
  overflow: hidden;
  padding-left: 3vw;
  padding-right: 3vw;
}

.pj-head {
  text-align: center;
}

.pj-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--teal);
}

.pj-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(80px, 15vw, 260px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ghost);
  margin-bottom: -7vw;
  transition: color 0.4s ease;
  user-select: none;
}

.pj-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2vw;
  max-width: 1500px;
  margin: 0 auto;
}

.pj-card {
  --r: 0deg;
  --y: 0px;
  display: block;
  width: clamp(200px, 16.5vw, 280px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  color: var(--glass-text);
  text-decoration: none;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transform: translateY(var(--y)) rotate(var(--r));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}

.pj-card:nth-child(1) { --r: -6deg; --y: 30px; }
.pj-card:nth-child(2) { --r: 3deg;  --y: 0px; }
.pj-card:nth-child(3) { --r: -2deg; --y: 40px; }
.pj-card:nth-child(4) { --r: 5deg;  --y: 10px; }
.pj-card:nth-child(5) { --r: -4deg; --y: 35px; }

.pj-card:hover,
.pj-card:focus-visible {
  transform: translateY(calc(var(--y) - 14px)) rotate(0deg) scale(1.04);
  border-color: var(--teal);
  z-index: 2;
  outline: none;
}

.pj-art {
  display: block;
  width: 100%;
  height: auto;
}

.pj-art text      { font-family: var(--font-mono); }
.pj-art .t-k      { fill: var(--glass-muted); font-size: 10px; letter-spacing: 0.08em; }
.pj-art .t-s      { fill: var(--glass-muted); font-size: 10px; }
.pj-art .t-m      { fill: var(--glass-text); font-size: 11px; font-weight: 500; }
.pj-art .t-ok     { fill: var(--glass-ok); font-size: 10px; font-weight: 500; }
.pj-art .t-bad    { fill: var(--glass-red); font-size: 10px; font-weight: 500; }
.pj-art .t-warn   { fill: var(--glass-amber); font-size: 10px; }
.pj-art .t-admin  { fill: #0d1726; font-size: 9px; font-weight: 500; }
.pj-art .t-icon   { fill: #0d1726; font-size: 11px; font-weight: 500; }
.pj-art .t-term   { fill: var(--glass-text); font-size: 11px; }

.pj-art rect[fill="#0d1726"]        { fill: transparent; }
.pj [fill="#1c2a40"]            { fill: var(--glass-dot); }
.pj [fill="#2a3a52"]            { fill: var(--glass-bar); }
.pj [stroke="#2a3a52"],
.pj [stroke="#22314a"]          { stroke: var(--glass-bar); }
.pj [fill="#121e30"]            { fill: var(--glass-box); }
.pj [fill="#080d16"]            { fill: var(--glass-deep); }
.pj [fill="#2a1416"]            { fill: var(--glass-red-soft); }
.pj [fill="#e8ece9"]            { fill: var(--glass-text); }
.pj [stroke="#e8ece9"]          { stroke: var(--glass-text); }
.pj [fill="#ff5f57"]            { fill: var(--glass-red); }
.pj [stroke="#ff5f57"]          { stroke: var(--glass-red); }
.pj [fill="#5fd4c4"]            { fill: var(--glass-ok); }
.pj [stroke="#5fd4c4"]          { stroke: var(--glass-ok); }
.pj [stroke="#febc2e"]          { stroke: var(--glass-amber); }
.pj [fill="#5fa8ff"]            { fill: var(--glass-blue); }

.pj-flow {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 6 6;
  animation: pj-dash 1.2s linear infinite;
}

@keyframes pj-dash {
  to { stroke-dashoffset: -12; }
}

.pj-pulse {
  animation: pj-pulse 1.8s ease-in-out infinite;
}

@keyframes pj-pulse {
  50% { opacity: 0.55; }
}

.pj-bars .hot {
  transform-box: fill-box;
  transform-origin: bottom;
}

.pj-card:hover .pj-bars .hot {
  animation: pj-grow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.pj-card:hover .pj-bars .hot:nth-child(10) { animation-delay: 0.05s; }
.pj-card:hover .pj-bars .hot:nth-child(11) { animation-delay: 0.1s; }
.pj-card:hover .pj-bars .hot:nth-child(12) { animation-delay: 0.15s; }

@keyframes pj-grow {
  from { transform: scaleY(0.1); }
  to   { transform: scaleY(1); }
}

.pj-cursor {
  animation: blink 0.9s steps(1) infinite;
}

.pj-meta {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--glass-bar);
}

.pj-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--glass-ok);
}

.pj-meta h3 {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.pj-meta p {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--glass-muted);
}

.sk-title { margin-top: 24px; }

.sk-rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 9vh;
}

.sk-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sk-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.sk-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.sk-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 112px;
  height: 112px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.sk-tile:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 8%, transparent);
}

.sk-tile i {
  width: 34px;
  height: 34px;
  background: var(--text);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: background 0.25s ease;
}

.sk-tile b {
  display: grid;
  place-items: center;
  height: 34px;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--text);
  transition: color 0.25s ease;
}

.sk-tile:hover i { background: var(--teal); }
.sk-tile:hover b { color: var(--teal); }

.sk-tile span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.25;
  padding: 0 6px;
}

.xp-title { margin-top: 24px; }

.xp-list {
  list-style: none;
  margin-top: 8vh;
  border-top: 1px solid var(--line);
}

.xp-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4vw;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.xp-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  padding-top: 6px;
}

.xp-body h3 {
  font-family: var(--font-head);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.xp-org {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.xp-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  max-width: 70ch;
}

.xp-points li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}

.xp-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
}

.xp-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.xp-tags li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
}

.ft {
  padding-bottom: 0;
  overflow: hidden;
}

.ft-top {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 6vw;
  align-items: start;
  padding-bottom: 8vh;
}

.ft-title {
  margin: 20px 0 28px;
  font-size: clamp(40px, 5vw, 88px);
}

.ft-text {
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}

.ft-direct {
  list-style: none;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.ft-direct li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.ft-k {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  padding-top: 3px;
}

.ft-direct a {
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.ft-direct a:hover,
.ft-direct a:focus-visible {
  color: var(--teal);
}

.ft-resumes {
  display: flex;
  gap: 20px;
}

.ft-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ft-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ft-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ft-field label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.ft-field input,
.ft-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.ft-field input:focus,
.ft-field textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.ft-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  background: var(--teal);
  border: 0;
  border-radius: 2px;
  color: var(--on-teal);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.ft-btn:hover,
.ft-btn:focus-visible {
  background: var(--text);
  color: var(--night);
  transform: translateX(4px);
  outline: none;
}

.ft-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.ft-status {
  min-height: 1.4em;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.ft-status.ok  { color: var(--teal); }
.ft-status.bad { color: var(--red); }

.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 26px 72px 30px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.ft-built {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.ft-built li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  color: var(--text-soft);
}

.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease, border-color 0.2s ease;
}

.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover,
.to-top:focus-visible { color: var(--teal); border-color: var(--teal); outline: none; }

.jr-title { margin-top: 24px; }

.jr-list {
  position: relative;
  list-style: none;
  max-width: 760px;
  margin: 8vh 0 0 clamp(0px, 18vw, 320px);
  padding-left: 48px;
}

.jr-list::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--glass-blue), var(--teal) 55%, var(--next));
}

.jr-item {
  position: relative;
  padding-bottom: 44px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.jr-item.in { opacity: 1; transform: none; }
.jr-item:last-child { padding-bottom: 0; }

.jr-item::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: var(--night);
  box-sizing: border-box;
}

.jr-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.jr-item h3 {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.jr-item h3 + p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}

.jr-item.is-next .jr-date { color: var(--next); }
.jr-item.is-next::before {
  border-color: var(--next);
  background: var(--next);
  animation: jr-pulse 2s ease-out infinite;
}

@keyframes jr-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--next) 55%, transparent); }
  100% { box-shadow: 0 0 0 14px transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .jr-item { opacity: 1; transform: none; transition: none; }
  .jr-item.is-next::before { animation: none; }
  html { scroll-behavior: auto; }

  .hero-bg-name,
  .hero-photo,
  .bg-glow,
  .bw-float,
  .pj-flow,
  .pj-pulse,
  .pj-cursor,
  .pj-card:hover .pj-bars .hot {
    animation: none;
  }
}

@media (max-width: 760px) {
  .jr-list { margin-left: 0; }
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .loader-pill {
    width: 280px;
    height: 86px;
    padding: 0 32px;
    font-size: 16px;
  }

  .site-header { padding: 14px 16px; }
  .site-nav { display: none; }
  .theme-toggle { margin-left: auto; }

  .hero {
    clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
  }

  .hero-bg-name {
    font-size: 15vw;
    scale: 1 1.3;
  }

  .hero-photo { height: 120vh; }

  .hero-left { display: none; }

  .hero-right {
    left: 16px;
    right: 16px;
    bottom: 15vh;
    width: auto;
  }

  .signature { font-size: 54px; margin-bottom: 14px; }

  .hero-footer {
    left: 16px;
    bottom: 3vh;
    font-size: 10px;
  }

  .bw, .pj, .sk, .xp, .jr, .ft {
    padding: 10vh 16px;
  }

  .bw { margin-top: -7vh; padding-top: 14vh; }

  .bw-stage { min-height: auto; padding: 4vh 0; }
  .bw-float { display: none; }

  .bw-bottom,
  .ft-top,
  .ft-row,
  .xp-item { grid-template-columns: 1fr; }

  .xp-item { gap: 10px; }

  .pj { padding-left: 0; padding-right: 0; }
  .pj-title { margin-bottom: -10vw; }

  .pj-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 20px 16px 30px;
  }

  .pj-card {
    flex: none;
    width: 78vw;
    scroll-snap-align: center;
    --r: 0deg !important;
    --y: 0px !important;
  }

  .sk-tile { width: 92px; height: 92px; gap: 10px; }
  .sk-tile i { width: 28px; height: 28px; }

  .ft { padding-bottom: 0; }
  .ft-form { padding: 22px; }
  .ft-direct li { grid-template-columns: 1fr; gap: 4px; }
}