
:root {
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Literata", Georgia, serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --bg: #090b10;
  --bg-glow: rgba(95, 121, 255, 0.08);
  --surface: rgba(15, 17, 23, 0.9);
  --surface-2: rgba(20, 23, 31, 0.96);
  --surface-3: rgba(26, 30, 39, 0.98);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4efe5;
  --muted: #c3baad;
  --soft: #91897d;
  --accent: #9bb4ff;
  --accent-soft: rgba(155, 180, 255, 0.16);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1180px;
  --nav-offset: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at top center, var(--bg-glow), transparent 32%),
    linear-gradient(180deg, #0b0d12 0%, var(--bg) 38%, #08090d 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 18%);
  opacity: 0.45;
}
body.menu-open { overflow: hidden; }
::selection {
  background: rgba(155, 180, 255, 0.24);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.page-shell {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0.9rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  padding: 0.82rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 13, 18, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.topbar-trailing {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.topbar-center-action {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.topbar-download-button.button-resume {
  pointer-events: auto;
  min-height: 3.05rem;
  padding-inline: 1.45rem;
  border-radius: 999px;
  border-color: rgba(242, 236, 223, 0.28);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}
.topbar-download-button.button-resume:hover,
.topbar-download-button.button-resume:focus-visible {
  border-color: rgba(242, 236, 223, 0.4);
}
.topbar-download-button svg {
  width: 1rem;
  height: 1rem;
}
.topbar-download-label {
  white-space: nowrap;
}
.topbar[data-home]:not(.topbar--nav-revealed) {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}
.topbar[data-home].topbar--nav-revealed {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition:
    opacity 0.45s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}
@media (prefers-reduced-motion: reduce) {
  .topbar[data-home]:not(.topbar--nav-revealed) {
    transform: none;
    transition: opacity 0.2s ease;
  }
  .topbar[data-home].topbar--nav-revealed {
    transition: opacity 0.2s ease;
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav a:not(.nav-resume) {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.79rem;
  min-height: 2.6rem;
  padding: 0.65rem 0.88rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.nav a:not(.nav-resume):hover,
.nav a:not(.nav-resume):focus-visible,
.nav a:not(.nav-resume).active,
.brand:hover,
.brand:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.25rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  border: 1px solid rgba(242, 236, 223, 0.2);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.18s ease;
}
.nav-resume svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.88;
}
.nav-resume:hover,
.nav-resume:focus-visible {
  border-color: rgba(242, 236, 223, 0.38);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 0 1px rgba(242, 236, 223, 0.06), 0 12px 28px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.button:disabled {
  cursor: not-allowed;
}
.button-primary {
  background: #f2ecdf;
  color: #101216 !important;
  border-color: #f2ecdf;
  box-shadow: 0 10px 24px rgba(242, 236, 223, 0.12);
}
.button-resume {
  gap: 0.55rem;
  padding: 0.82rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(242, 236, 223, 0.22);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  color: var(--text);
  font-weight: 620;
  letter-spacing: 0.04em;
}
.button-resume svg {
  width: 1.12rem;
  height: 1.12rem;
  flex-shrink: 0;
  opacity: 0.9;
}
.button-resume:hover,
.button-resume:focus-visible {
  border-color: rgba(242, 236, 223, 0.4);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 0 1px rgba(242, 236, 223, 0.07), 0 14px 32px rgba(0, 0, 0, 0.22);
}
.button-secondary {
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.button:hover,
.button:focus-visible,
.project-row:hover,
.project-row:focus-visible,
.contact-card:hover,
.contact-card:focus-visible,
.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-1px);
}
.menu-toggle {
  display: none;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.22rem;
}
.menu-toggle span {
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

main {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 0 4.5rem;
}
.section,
.hero,
.project-hero,
.story-card,
.link-card,
.contact-card,
.project-row {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero,
.section,
.project-hero {
  border-radius: var(--radius);
}
.section {
  padding: clamp(1.15rem, 1.8vw, 1.5rem);
}
.hero {
  --hero-radius: 24px;
  --hero-bleed: 5px;
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2rem);
  margin-top: 0.25rem;
  border-radius: var(--hero-radius);
  background:
    radial-gradient(circle at 72% 22%, rgba(136, 88, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(22, 18, 34, 0.97), rgba(14, 12, 23, 0.97));
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.hero.hero--sphere-bg {
  background: #0d0d0e;
}
.hero-sphere-canvas {
  position: absolute;
  inset: calc(var(--hero-bleed) * -1);
  z-index: 0;
  border-radius: calc(var(--hero-radius) + var(--hero-bleed));
  pointer-events: none;
}
.hero-sphere-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.hero-model-layer {
  position: absolute;
  top: calc(var(--hero-bleed) * -1);
  right: calc((var(--hero-bleed) * -1) - 0.65rem);
  bottom: calc(var(--hero-bleed) * -1);
  width: min(40%, 30rem);
  z-index: 5;
  pointer-events: none;
}
.hero-model-layer .model-rig-shell,
.hero-model-layer .model-rig-viewer {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.hero-model-layer .model-rig-viewer {
  background: transparent;
  box-shadow: none;
  border: 0;
}
.hero-sphere-overlay {
  position: absolute;
  inset: calc(var(--hero-bleed) * -1);
  z-index: 2;
  border-radius: calc(var(--hero-radius) + var(--hero-bleed));
  pointer-events: none;
}
.hero-sphere-overlay::before,
.hero-sphere-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.hero-sphere-overlay::before {
  background:
    radial-gradient(circle at 70% 26%, rgba(161, 112, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(50, 34, 78, 0.12), rgba(20, 17, 33, 0.06));
  backdrop-filter: blur(24px) brightness(1.08) saturate(1.08);
  -webkit-backdrop-filter: blur(24px) brightness(1.08) saturate(1.08);
  mask-image: radial-gradient(
    72% 120% at 12% 50%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 39%,
    rgba(0, 0, 0, 0.9) 51%,
    rgba(0, 0, 0, 0.34) 66%,
    rgba(0, 0, 0, 0.05) 75%,
    transparent 90%
  );
  -webkit-mask-image: radial-gradient(
    72% 120% at 12% 50%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 39%,
    rgba(0, 0, 0, 0.9) 51%,
    rgba(0, 0, 0, 0.34) 66%,
    rgba(0, 0, 0, 0.05) 75%,
    transparent 90%
  );
}
.hero-sphere-overlay::after { display: none; }
.hero-binary-mask {
  position: absolute;
  inset: calc(var(--hero-bleed) * -1);
  z-index: 3;
  display: block;
  width: calc(100% + (var(--hero-bleed) * 2));
  height: calc(100% + (var(--hero-bleed) * 2));
  border-radius: calc(var(--hero-radius) + var(--hero-bleed));
  pointer-events: none;
}
.hero-binary-copy {
  fill: #959595;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  white-space: pre;
}
.hero-binary-copy--one {
  animation: hero-binary-flicker-a 7.5s ease-in-out infinite;
}
.hero-binary-copy--two {
  fill: #a8a8a8;
  animation: hero-binary-flicker-b 9s ease-in-out infinite;
}
.hero-content {
  position: relative;
  z-index: 6;
}
.hero .eyebrow {
  color: var(--soft);
}
.hero .lede {
  color: var(--muted);
  margin-top: 1.1rem;
  max-width: 34rem;
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: clamp(2.4rem, 6.6vw, 4.25rem);
  color: #f4f4f5;
  max-width: 10ch;
}
.hero-title-line {
  display: block;
}
.hero-binary-mask text {
  dominant-baseline: middle;
}
@keyframes hero-binary-flicker-a {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.94; }
}
@keyframes hero-binary-flicker-b {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}
.hero-lede {
  max-width: 38rem;
}
.hero-actions .button-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.2rem;
  padding: 0.52rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 27, 0.88);
  color: #f4f4f5 !important;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: none;
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.hero-actions .button-hero:hover,
.hero-actions .button-hero:focus-visible {
  background: #1f1f23;
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.hero-actions .button-hero svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  opacity: 0.88;
}
.project-shell {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 3rem;
}
.project-hero {
  padding: 1.35rem;
  max-width: 54rem;
}
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.section h2,
.project-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}
.section h2,
.project-hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.25rem);
}
.lede,
.section-copy,
.note,
.contact-card-body > span,
.project-row p,
.story p,
li,
.tag-line,
.project-proof span,
.back-link,
.link-card p,
.project-summary {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}
.project-summary {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--text);
}
.lede {
  max-width: 32rem;
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  position: relative;
  z-index: 7;
}
.story-card,
.link-card,
.contact-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
}
.kicker,
.project-proof strong,
.story-card h3,
.link-card h3,
.contact-card strong {
  color: var(--text);
}
.kicker,
.project-kicker {
  display: block;
  margin-top: 0.28rem;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}
.section-heading {
  margin-bottom: 1rem;
}
.work-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.work-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.work-mode-button {
  min-height: 2.3rem;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.work-mode-button:hover,
.work-mode-button:focus-visible {
  color: var(--text);
}
.work-mode-button.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.split .section-copy {
  max-width: 18rem;
  margin: 0;
}
.project-list,
.contact-grid,
.story-layout,
.link-list {
  display: grid;
  gap: 0.85rem;
}
.project-row {
  display: grid;
  grid-template-columns: minmax(220px, 240px) minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.05rem;
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.project-row > .thumb {
  width: 240px;
  height: 128px;
  max-width: 100%;
  aspect-ratio: auto;
  justify-self: start;
}
.project-row:hover,
.project-row:focus-visible,
.contact-card:hover,
.link-card:hover {
  border-color: var(--line-strong);
  background: rgba(19, 22, 29, 0.96);
}
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f1014;
}
.thumb-image {
  height: 100%;
}
.thumb-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}
.thumb-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.04);
  background: #05070b;
}
.thumb-video {
  width: 100%;
  display: block;
}
.panorama-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  cursor: grab;
  touch-action: none;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 30%, rgba(118, 164, 255, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(5, 8, 14, 0.18), rgba(5, 8, 14, 0.5));
}
.panorama-viewer:active {
  cursor: grabbing;
}
.panorama-viewer canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.panorama-viewer-hint {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  z-index: 1;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 16, 0.74);
  color: rgba(241, 245, 255, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}
.model-showcase {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 46rem;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 121, 97, 0.14), transparent 24%),
    radial-gradient(circle at 78% 20%, rgba(130, 180, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(14, 16, 22, 0.96), rgba(10, 11, 16, 0.98));
}
.model-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.04), transparent 34%),
    linear-gradient(180deg, transparent, rgba(255,255,255,0.02));
  pointer-events: none;
}
.model-rig-shell {
  position: relative;
  z-index: 1;
}
.model-rig-shell {
  min-width: 0;
  height: 100%;
}
.model-rig-viewer {
  position: relative;
  width: 100%;
  min-height: 46rem;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  border: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 130, 102, 0.2), transparent 20%),
    radial-gradient(circle at 50% 62%, rgba(120, 160, 255, 0.14), transparent 40%),
    linear-gradient(180deg, #11141c 0%, #090b10 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 24px 60px rgba(0, 0, 0, 0.3);
  cursor: grab;
  touch-action: none;
}
.model-rig-viewer.is-static {
  cursor: default;
  touch-action: auto;
}
.model-rig-viewer:active {
  cursor: grabbing;
}
.model-rig-viewer canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.model-rig-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  pointer-events: none;
  opacity: 0.9;
}
.model-rig-glow--one {
  width: 9rem;
  height: 9rem;
  left: -1.5rem;
  top: 1.2rem;
  background: rgba(255, 119, 92, 0.18);
}
.model-rig-glow--two {
  width: 11rem;
  height: 11rem;
  right: -2rem;
  bottom: -1rem;
  background: rgba(114, 160, 255, 0.18);
}
.model-rig-gui {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: grid;
  justify-items: end;
  gap: 0.65rem;
}
.model-rig-gui-toggle {
  min-height: 2.2rem;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 11, 16, 0.72);
  color: rgba(241, 245, 255, 0.82);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}
.model-rig-gui-panel {
  width: min(26rem, calc(100vw - 3rem));
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(8, 10, 15, 0.78);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}
.model-rig-color-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.model-rig-color-control,
.model-rig-control {
  display: grid;
  gap: 0.35rem;
}
.model-rig-color-control span,
.model-rig-control span,
.model-rig-control strong {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.model-rig-color-control span,
.model-rig-control span {
  color: var(--soft);
}
.model-rig-control strong {
  color: var(--text);
}
.model-rig-color-control input[type="color"] {
  width: 100%;
  height: 2.4rem;
  padding: 0.18rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}
.model-rig-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.model-rig-control input[type="range"] {
  width: 100%;
  accent-color: #d7e1ff;
}
.thumb-play {
  position: absolute;
  inset: auto auto 0.8rem 0.8rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgba(11,11,13,0.76);
  border: 1px solid rgba(255,255,255,0.14);
}
.thumb-play::before {
  content: "";
  position: absolute;
  left: 0.88rem;
  top: 0.65rem;
  width: 0;
  height: 0;
  border-top: 0.42rem solid transparent;
  border-bottom: 0.42rem solid transparent;
  border-left: 0.62rem solid #f3f2ee;
}
.thumb-icon { isolation: isolate; }
.thumb-icon .glyph,
.thumb-icon .shape { position: absolute; }
.thumb-icon .glyph {
  left: 1rem;
  bottom: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
.thumb-icon .shape-a {
  right: 1rem;
  top: 1rem;
  width: 4.3rem;
  height: 4.3rem;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.2), rgba(255,255,255,0.03) 58%, transparent 60%);
}
.thumb-icon .shape-b {
  right: 1.2rem;
  bottom: 1rem;
  width: 5rem;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}
.thumb-panorama { background: linear-gradient(135deg, #182232, #0d1b2a 55%, #101015); }
.thumb-avatar { background: linear-gradient(135deg, #23172a, #151825 62%, #101015); }
.thumb-avatar .glyph { border-radius: 999px; }
.thumb-avatar .glyph::before { content: ""; position: absolute; left: 1rem; top: 0.72rem; width: 1.45rem; height: 1.45rem; border-radius: 999px; background: rgba(255,255,255,0.14); }
.thumb-avatar .glyph::after { content: ""; position: absolute; left: 0.6rem; bottom: 0.58rem; width: 2.25rem; height: 1.45rem; border-radius: 999px 999px 0.7rem 0.7rem; background: rgba(255,255,255,0.12); }
.thumb-sketch { background: linear-gradient(135deg, #271d16, #171925 62%, #101015); }
.thumb-sketch .glyph::before,
.thumb-sketch .glyph::after { content: ""; position: absolute; left: 0.65rem; right: 0.65rem; height: 2px; background: rgba(255,255,255,0.22); }
.thumb-sketch .glyph::before { top: 1.25rem; transform: rotate(-10deg); }
.thumb-sketch .glyph::after { top: 2rem; transform: rotate(12deg); }
.thumb-pre { background: linear-gradient(135deg, #1d1827, #171c29 62%, #101015); }
.thumb-pre .glyph::before,
.thumb-pre .glyph::after { content: ""; position: absolute; background: rgba(255,255,255,0.14); }
.thumb-pre .glyph::before { left: 0.72rem; top: 0.72rem; width: 2.15rem; height: 0.58rem; border-radius: 999px; }
.thumb-pre .glyph::after { left: 0.72rem; top: 1.55rem; width: 1.65rem; height: 1.32rem; border-radius: 0.55rem; }
.thumb-avatar-gen { background: linear-gradient(135deg, #1c1f2b, #1a2230 62%, #101015); }
.thumb-avatar-gen .glyph { clip-path: polygon(50% 0, 92% 26%, 92% 76%, 50% 100%, 8% 76%, 8% 26%); }
.thumb-extension { background: linear-gradient(135deg, #1a2028, #1b1c22 62%, #101015); }
.thumb-extension .glyph::before,
.thumb-extension .glyph::after { content: ""; position: absolute; background: rgba(255,255,255,0.14); }
.thumb-extension .glyph::before { left: 0.65rem; top: 0.75rem; width: 2.2rem; height: 0.55rem; border-radius: 999px; }
.thumb-extension .glyph::after { left: 0.65rem; top: 1.6rem; width: 1.55rem; height: 1.2rem; border-radius: 0.45rem; }
.thumb-stereo { background: linear-gradient(135deg, #132030, #121722 62%, #101015); }
.thumb-stereo .glyph::before,
.thumb-stereo .glyph::after { content: ""; position: absolute; top: 0.95rem; width: 1rem; height: 1.65rem; border: 1px solid rgba(255,255,255,0.16); }
.thumb-stereo .glyph::before { left: 0.85rem; }
.thumb-stereo .glyph::after { right: 0.85rem; }
.thumb-tv { background: linear-gradient(135deg, #152328, #14161e 62%, #101015); }
.thumb-tv .glyph::before { content: ""; position: absolute; inset: 0.62rem; border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.14); }
.thumb-gamepad { background: linear-gradient(135deg, #23201b, #171822 62%, #101015); }
.thumb-gamepad .glyph::before,
.thumb-gamepad .glyph::after { content: ""; position: absolute; background: rgba(255,255,255,0.15); }
.thumb-gamepad .glyph::before { left: 0.72rem; top: 1.35rem; width: 2rem; height: 0.7rem; border-radius: 999px; }
.thumb-gamepad .glyph::after { left: 1.45rem; top: 0.75rem; width: 0.55rem; height: 1.9rem; border-radius: 999px; }
.thumb-camera img { filter: saturate(0.88) contrast(1.04); }
.thumb-skybox img,
.thumb-skybox video {
  object-position: 46% 44%;
  transform: scale(1.08);
  transform-origin: center;
}
.project-main {
  display: grid;
  gap: 0.75rem;
  align-items: start;
}
.project-row-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}
.project-row-heading {
  min-width: 0;
}
.project-row h3,
.story-card h3,
.link-card h3,
.contact-card strong {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.project-row p { margin: 0; }
.project-row-summary {
  max-width: 40ch;
  color: var(--text);
}
.project-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.project-proof-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.project-row-cta {
  color: var(--accent);
  font-size: 0.84rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-line {
  margin-top: 0;
  color: var(--soft);
  font-size: 0.88rem;
}
.note-block { max-width: 40rem; }
.note-block p { margin: 0.55rem 0 0; }

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 18.5rem);
  gap: 2.25rem;
  align-items: stretch;
}
@media (max-width: 768px) {
  .about-layout { grid-template-columns: 1fr; }
  .journey { display: none; }
}

.journey {
  align-self: start;
  padding: 0.35rem 0 0.15rem;
}

.journey-items {
  display: grid;
  gap: 1.35rem;
}

.jm {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 0;
}

.jm-year {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--soft);
  line-height: 1;
}
.jm-stat {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 0.15rem;
}
.jm-unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.jm-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.3rem;
  line-height: 1.25;
}
.jm-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--soft);
  margin-top: 0.18rem;
  line-height: 1.4;
  max-width: none;
}

.jm-now .jm-year { color: rgba(130, 200, 255, 0.7); }
.jm-now .jm-title { color: rgba(180, 215, 255, 0.9); }

.jm-vrchive .jm-stat,
.jm-fluid .jm-stat {
  background: linear-gradient(135deg, var(--text) 30%, rgba(130, 180, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.contact-card-icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.contact-card-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}
.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.utility-section { padding: 1.25rem; }
.utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.utility-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.utility-card--fit {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  min-height: 22rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  overflow: hidden;
}
.utility-card--green {
  border-color: rgba(86, 200, 128, 0.34);
  box-shadow: 0 18px 48px rgba(20, 80, 40, 0.18);
}
.utility-card--yellow {
  border-color: rgba(214, 196, 83, 0.34);
  box-shadow: 0 18px 48px rgba(92, 80, 20, 0.16);
}
.utility-card--orange {
  border-color: rgba(233, 151, 73, 0.34);
  box-shadow: 0 18px 48px rgba(110, 56, 20, 0.16);
}
.utility-card--red {
  border-color: rgba(224, 90, 90, 0.32);
  box-shadow: 0 18px 48px rgba(96, 24, 24, 0.16);
}
.utility-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 620;
}
.utility-head--fit {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}
.utility-head--fit h3 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  letter-spacing: -0.04em;
}
.utility-head--fit p:last-child {
  max-width: 38rem;
  margin: 0;
  font-size: 1rem;
}
.utility-head p:last-child {
  margin: 0.55rem 0 0;
  color: var(--muted);
}
.utility-form {
  display: grid;
  gap: 0.75rem;
}
.utility-form--fit {
  width: min(100%, 42rem);
}
.utility-input--fit {
  min-height: 8.5rem;
  font-size: 1.02rem;
  line-height: 1.5;
  padding: 1.08rem 1.3rem !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,0.05) !important;
}
.utility-input--fit:not(textarea) {
  text-align: center;
  border-radius: 999px !important;
}
.utility-form--fit textarea.utility-input--fit {
  text-align: left;
}
.utility-form input,
.utility-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 0.95rem 1rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.utility-form input::placeholder,
.utility-form textarea::placeholder {
  color: var(--soft);
}
.utility-form input:focus,
.utility-form textarea:focus {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.03);
}
.utility-button {
  width: fit-content;
}
.utility-button--fit {
  justify-self: center;
  min-width: 9.5rem;
}
.utility-meta,
.utility-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--soft);
}
.utility-meta--fit {
  max-width: 34rem;
  justify-self: center;
}
.utility-status.is-visible {
  color: var(--muted);
}
.fit-entry,
.fit-loading,
.fit-response-shell {
  grid-area: 1 / 1;
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.32s ease;
}
.fit-entry {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1.5rem;
  min-height: 100%;
}
.utility-card--fit.is-loading .fit-entry,
.utility-card--fit.has-result .fit-entry {
  opacity: 0;
  transform: translateY(-18px);
  filter: blur(8px);
  pointer-events: none;
}
.fit-loading {
  display: grid;
  width: 100%;
  height: 100%;
  justify-items: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}
.utility-card--fit.is-loading .fit-loading {
  opacity: 1;
  transform: scale(1);
}
.fit-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  justify-self: center;
  align-self: center;
  text-align: center;
}
.fit-spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.fit-spinner {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.88);
  animation: fit-spinner-rotate 0.8s linear infinite;
}
.fit-loading-label {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.fit-response-shell {
  width: min(100%, 44rem);
  margin: 0 auto;
  align-self: center;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  pointer-events: none;
}
.utility-card--fit.has-result .fit-response-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fit-result {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  text-align: left;
  animation: fit-result-enter 0.46s cubic-bezier(0.2, 1, 0.3, 1);
}
.fit-status-message {
  text-align: center;
}
.fit-result-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.35rem;
}
.fit-result--green {
  border-color: rgba(86, 200, 128, 0.3);
  background: rgba(86, 200, 128, 0.08);
}
.fit-result--yellow {
  border-color: rgba(214, 196, 83, 0.28);
  background: rgba(214, 196, 83, 0.08);
}
.fit-result--orange {
  border-color: rgba(233, 151, 73, 0.28);
  background: rgba(233, 151, 73, 0.08);
}
.fit-result--red {
  border-color: rgba(224, 90, 90, 0.28);
  background: rgba(224, 90, 90, 0.08);
}
.fit-result-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}
.fit-score {
  min-width: 4.9rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.04);
  text-align: center;
}
.fit-score--green {
  border-color: rgba(86, 200, 128, 0.34);
  background: rgba(86, 200, 128, 0.16);
  color: #b6f1c6;
}
.fit-score--yellow {
  border-color: rgba(214, 196, 83, 0.34);
  background: rgba(214, 196, 83, 0.16);
  color: #f0e6a6;
}
.fit-score--orange {
  border-color: rgba(233, 151, 73, 0.34);
  background: rgba(233, 151, 73, 0.16);
  color: #ffd2a5;
}
.fit-score--red {
  border-color: rgba(224, 90, 90, 0.34);
  background: rgba(224, 90, 90, 0.16);
  color: #ffc3c3;
}
.fit-score--neutral {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.fit-score-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
.fit-score-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fit-summary {
  min-width: 0;
}
.fit-summary-label,
.fit-signals-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}
.fit-summary-text {
  margin: 0.35rem 0 0;
  color: var(--text);
}
.fit-quote {
  margin: 0;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(255,255,255,0.18);
  color: var(--muted);
  font-style: italic;
}
.fit-signals-list {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.fit-signals-list li + li {
  margin-top: 0.35rem;
}
@keyframes fit-spinner-rotate {
  to { transform: rotate(360deg); }
}
@keyframes fit-result-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.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;
}
.back-link { display: inline-block; margin-bottom: 0.25rem; }
.story-layout {
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.72fr);
  gap: 1rem;
  align-items: start;
}
.story-card {
  overflow: hidden;
}
.story {
  max-width: 68ch;
}
.story p { margin: 0 0 1rem; }
.story-card h3 { margin-bottom: 0.6rem; }
.visual-card {
  padding: 0.9rem;
  position: sticky;
  top: calc(0.9rem + var(--nav-offset));
}
.visual-card .thumb-video-frame {
  aspect-ratio: 16 / 9;
}
.visual-card .thumb-reddit-frame {
  padding: 0;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0f1014;
}
.visual-card .thumb-youtube-frame {
  position: relative;
  width: 100%;
  padding: 0;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #05070b;
}
.thumb-youtube-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.reddit-embed-shell {
  width: 100%;
  min-height: 0;
}
.reddit-embed-shell blockquote {
  margin: 0 !important;
  width: 100%;
}
.visual-card .thumb-panorama-frame {
  position: relative;
  padding: 0;
  aspect-ratio: 16 / 9;
  min-height: 0;
  height: auto;
  max-width: 100%;
}
.visual-card .thumb {
  width: 100%;
  min-height: 0;
}
.visual-card .thumb-image img,
.visual-card .thumb-image video {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.visual-card .thumb-panorama-frame,
.visual-card .thumb-panorama-frame .panorama-viewer {
  min-height: 0;
}
.visual-card .thumb-panorama-frame .panorama-viewer {
  position: absolute;
  inset: 0;
}
.visual-card .thumb-video-large {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #05070b;
}
.visual-card .thumb-icon .glyph { left: 1.2rem; bottom: 1.2rem; width: 5.6rem; height: 5.6rem; border-radius: 18px; }
.visual-card .thumb-icon .shape-a { width: 6.8rem; height: 6.8rem; right: 1.2rem; top: 1.2rem; }
.visual-card .thumb-icon .shape-b { right: 1.35rem; bottom: 1.2rem; width: 7.1rem; height: 1rem; }
.visual-card .thumb-avatar .glyph::before { left: 1.55rem; top: 1.1rem; width: 2.1rem; height: 2.1rem; }
.visual-card .thumb-avatar .glyph::after { left: 1rem; bottom: 0.95rem; width: 3.5rem; height: 2.2rem; border-radius: 999px 999px 1rem 1rem; }
.visual-card .thumb-sketch .glyph::before { top: 1.95rem; }
.visual-card .thumb-sketch .glyph::after { top: 3rem; }
.visual-card .thumb-pre .glyph::before { left: 1rem; top: 1rem; width: 3.15rem; height: 0.8rem; }
.visual-card .thumb-pre .glyph::after { left: 1rem; top: 2.05rem; width: 2.35rem; height: 1.95rem; border-radius: 0.7rem; }
.visual-card .thumb-extension .glyph::before { left: 1rem; top: 1rem; width: 3.2rem; height: 0.72rem; }
.visual-card .thumb-extension .glyph::after { left: 1rem; top: 2.1rem; width: 2.25rem; height: 1.75rem; }
.visual-card .thumb-stereo .glyph::before,
.visual-card .thumb-stereo .glyph::after { top: 1.5rem; width: 1.45rem; height: 2.35rem; }
.visual-card .thumb-stereo .glyph::before { left: 1.35rem; }
.visual-card .thumb-stereo .glyph::after { right: 1.35rem; }
.visual-card .thumb-tv .glyph::before { inset: 0.95rem; }
.visual-card .thumb-gamepad .glyph::before { left: 1.05rem; top: 2rem; width: 3rem; height: 1rem; }
.visual-card .thumb-gamepad .glyph::after { left: 2.2rem; top: 1.1rem; width: 0.8rem; height: 2.8rem; }
.link-card p { margin: 0.3rem 0 0; }
.link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0.2rem; }
.jobs-board-hero {
  display: grid;
  gap: 1rem;
}
.jobs-board-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.jobs-board-subtitle {
  max-width: 40rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
}
.jobs-board-summary {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  text-align: right;
  color: var(--muted);
}
.jobs-board-summary p {
  margin: 0;
}
.jobs-board-filters,
.jobs-board-meta,
.jobs-board-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.jobs-board-toolbar {
  display: grid;
  gap: 0.9rem;
}
.jobs-board-recency {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.jobs-board-recency-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 0.84rem;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.jobs-board-recency-link:hover,
.jobs-board-recency-link:focus-visible {
  color: var(--text);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}
.jobs-board-recency-link.is-active {
  color: #101216;
  border-color: #f2ecdf;
  background: #f2ecdf;
}
.jobs-board-filter,
.jobs-board-meta span,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.84rem;
}
.status-chip {
  color: var(--text);
}
.status-chip--not_applied {
  border-color: rgba(255,255,255,0.16);
}
.status-chip--applied {
  border-color: rgba(86, 200, 128, 0.34);
  background: rgba(86, 200, 128, 0.12);
}
.status-chip--interviewing {
  border-color: rgba(214, 196, 83, 0.34);
  background: rgba(214, 196, 83, 0.12);
}
.status-chip--archived {
  border-color: rgba(224, 90, 90, 0.34);
  background: rgba(224, 90, 90, 0.12);
}
.jobs-board-list {
  display: grid;
  gap: 0.9rem;
}
.jobs-board-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.jobs-board-card-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}
.jobs-board-card-main {
  min-width: 0;
  display: grid;
  gap: 0.8rem;
}
.jobs-board-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}
.jobs-board-heading h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 620;
}
.jobs-board-company,
.jobs-board-rationale {
  margin: 0;
}
.jobs-board-company {
  margin-top: 0.3rem;
  color: var(--muted);
}
.jobs-board-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.jobs-board-link {
  min-height: 2rem;
  padding: 0.48rem 0.82rem;
}
.jobs-board-meta span::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  margin-right: 0.45rem;
  background: rgba(255,255,255,0.2);
}
.jobs-board-signals {
  list-style: none;
  padding: 0;
  margin: 0;
}
.jobs-board-signals li {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 1000px) {
  .project-row-top,
  .project-row-meta {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 940px) {
  .story-layout {
    grid-template-columns: 1fr;
  }
  .visual-card {
    position: static;
  }
}

@media (max-width: 860px) {
  :root { --nav-offset: 0px; }
  .page-shell { width: min(100% - 1rem, var(--max)); }
  .topbar {
    top: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.72rem 0.8rem;
  }
  .topbar-center-action {
    left: auto;
    right: 4.2rem;
    transform: none;
  }
  .topbar-download-button {
    min-width: 2.6rem;
    min-height: 2.6rem;
    padding: 0.55rem;
    border-radius: 999px;
  }
  .topbar-download-button .topbar-download-label {
    display: none;
  }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 4.7rem 0.75rem auto;
    padding: 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: rgba(12,14,19,0.97);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .nav.open { display: flex; }
  .nav a,
  .nav-resume { width: 100%; justify-content: center; margin-left: 0; }
  .hero { padding: 0.75rem; }
  .section,
  .project-hero { padding: 1rem; }
  .contact-grid,
  .link-list,
  .utility-grid { grid-template-columns: 1fr; }
  .model-showcase {
    min-height: 0;
  }
  .model-rig-viewer {
    min-height: 36rem;
  }
  .model-rig-gui {
    top: auto;
    right: 0.8rem;
    bottom: 0.8rem;
  }
  .model-rig-gui-panel {
    width: min(100%, 22rem);
  }
  .hero-model-layer {
    width: min(46%, 24rem);
    right: -0.85rem;
  }
  .project-row { grid-template-columns: 1fr; }
  .project-row > .thumb {
    width: 100%;
    height: auto;
    max-width: none;
    aspect-ratio: 16 / 9;
  }
  .split { display: block; }
  .utility-card { gap: 0.9rem; }
  .utility-card--fit {
    min-height: 19rem;
    padding: 1.5rem 1rem;
  }
  .fit-result-header { grid-template-columns: 1fr; }
  .fit-score { width: fit-content; }
  .jobs-board-recency {
    justify-content: flex-start;
  }
  .jobs-board-summary {
    justify-items: start;
    text-align: left;
  }
  .jobs-board-card-top { grid-template-columns: 1fr; }
  .jobs-board-heading { flex-direction: column; }
  .jobs-board-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .hero { padding-top: 0.75rem; }
  .hero .hero-title { font-size: clamp(2.3rem, 12vw, 3.1rem); }
  .section h2,
  .project-hero h1 { font-size: clamp(1.85rem, 8.5vw, 2.5rem); }
  .model-rig-viewer {
    min-height: 30rem;
  }
  .model-rig-gui {
    left: 0.75rem;
    right: 0.75rem;
    justify-items: stretch;
  }
  .model-rig-gui-panel {
    width: 100%;
  }
  .model-rig-color-row,
  .model-rig-control-grid {
    grid-template-columns: 1fr;
  }
  .hero-model-layer {
    width: 58%;
    right: -1rem;
  }
  .thumb { min-height: 116px; }
  .thumb-image img,
  .thumb-image video { min-height: 116px; }
  .visual-card .thumb,
  .visual-card .thumb-image img,
  .visual-card .thumb-image video { min-height: 0; }
  .visual-card .thumb-panorama-frame,
  .visual-card .thumb-panorama-frame .panorama-viewer {
    min-height: 0;
  }
}

.project-list-extra {
  display: grid;
  gap: 0.85rem;
}
.project-list-extra[hidden] {
  display: none !important;
}
.project-more-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  min-height: 3rem;
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 620;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.project-more-banner:hover,
.project-more-banner:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
  border-style: solid;
  transform: translateY(-1px);
}
.project-more-banner::after {
  content: '↓';
  font-size: 0.85rem;
  color: var(--soft);
}
.project-more-banner.is-expanded::after {
  content: '↑';
}
@media (max-width: 720px) {
  .work-heading-row {
    align-items: start;
    flex-direction: column;
  }
  .work-mode-toggle {
    width: 100%;
    justify-content: stretch;
  }
  .work-mode-button {
    flex: 1 1 0;
    justify-content: center;
  }
}
