/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .hidden {
    display: none;
  }
}
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg: #f2f2f7;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --text: #1c1c1e;
  --text-secondary: #636366;
  --text-muted: #aeaeb2;
  --accent: #007aff;
  --accent-hover: #0066d6;
  --border: rgba(0, 0, 0, 0.06);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', sans-serif;
  --gradient-accent: linear-gradient(135deg, #007aff, #5856d6);
  --gradient-warm: linear-gradient(135deg, #ff6b6b, #ff8e53);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);
  --separator: rgba(60, 60, 67, 0.08);
  --radius-xl: 22px;
  --book-cover: #1c1c1e;
  --book-page: #ffffff;
  --book-ink: #1c1c1e;
  --book-ink-secondary: #636366;
  --book-ink-muted: #aeaeb2;
}
[data-theme="dark"] {
  --bg: #000000;
  --bg-card: #1c1c1e;
  --bg-elevated: #2c2c2e;
  --text: #f2f2f7;
  --text-secondary: #98989d;
  --text-muted: #636366;
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --gradient-accent: linear-gradient(135deg, #0a84ff, #5e5ce6);
  --gradient-warm: linear-gradient(135deg, #ff453a, #ff9f0a);
  --glass-bg: rgba(28, 28, 30, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --separator: rgba(84, 84, 88, 0.36);
  --book-cover: #000000;
  --book-page: #1c1c1e;
  --book-ink: #f2f2f7;
  --book-ink-secondary: #98989d;
  --book-ink-muted: #636366;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: clip;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--separator);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 44px;
}
.nav {
  display: flex;
  gap: 28px;
  flex: 1;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}
.nav-link:hover {
  color: var(--accent);
}
.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tabbar {
  display: none;
}
.toggle-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.toggle-btn:hover {
  color: var(--accent);
  transform: scale(1.05);
}
.toggle-btn:active {
  transform: scale(0.95);
}
.lang-btn {
  width: auto;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 16px;
}
.icon-moon {
  display: none;
}
[data-theme="dark"] .icon-sun {
  display: none;
}
[data-theme="dark"] .icon-moon {
  display: block;
}
.hero {
  padding: 100px 0 60px;
  text-align: center;
}
.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.hero-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero-name {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.hero-location {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.hero-links {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: var(--accent);
  color: #ffffff;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}
.btn:active {
  transform: translateY(0);
}
.section {
  padding: 60px 0;
}
.section-alt {
  background: var(--bg-elevated);
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 24px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: -14px;
  margin-bottom: 28px;
}
.about-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.exp-book {
  max-width: 1040px;
  margin: 0 auto;
}
.book-ctl {
  display: flex;
  justify-content: center;
  margin: 0 0 28px;
}
.book-outer {
  padding: 14px;
  border-radius: 20px;
  background: var(--book-cover);
  box-shadow: 0 46px 60px -34px rgba(0, 0, 0, 0.3);
  transition: background 0.4s ease;
}
.book-body {
  --flip: 0.9s;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  border-radius: 8px;
  perspective: 2400px;
}
.book-body::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 46px;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.15) 46%, rgba(0, 0, 0, 0.27) 50%, rgba(0, 0, 0, 0.15) 54%, transparent);
}
.book-body.single {
  grid-template-columns: 1fr;
  min-height: 0;
}
.book-body.single::after {
  display: none;
}
.book-body.instant .leaf {
  transition: none !important;
}
.book-face {
  position: relative;
  padding: 38px clamp(26px, 4vw, 50px) 30px;
  display: flex;
  flex-direction: column;
  background-color: var(--book-page);
}
.pg-l {
  border-radius: 8px 0 0 8px;
}
.pg-r {
  border-radius: 0 8px 8px 0;
}
.pg-base-l {
  grid-area: 1 / 1;
}
.pg-base-r {
  grid-area: 1 / 2;
}
.leaf {
  grid-area: 1 / 2;
  position: relative;
  display: flex;
  flex-direction: column;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform var(--flip) cubic-bezier(0.55, 0.06, 0.2, 1) var(--d, 0ms);
}
.leaf.is-flipped {
  transform: rotateY(-180deg);
}
.leaf > .book-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.leaf > .pg-front {
  flex: 1;
}
.leaf > .pg-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}
.leaf > .book-face::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.04));
}
.leaf.turning > .book-face::after {
  animation: book-shade var(--flip) ease-in-out var(--d, 0ms) both;
}
@keyframes book-shade {
  0% {
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.single .leaf {
  display: contents;
}
.single .book-face {
  grid-area: auto;
  position: static;
  inset: auto;
  transform: none;
  transition: none;
  display: none;
}
.single .book-face[data-mobile-active] {
  display: flex;
}
.single .book-face::after {
  content: none;
}
.book-page-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 14px;
  background: var(--exp-color, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 16px;
}
.book-face h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  color: var(--book-ink);
}
.book-company {
  font-size: 1rem;
  color: var(--book-ink-secondary);
  margin-top: 4px;
}
.book-date {
  font-size: 0.9rem;
  color: var(--book-ink-muted);
  margin-top: 2px;
}
.book-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding: 0;
}
.book-tags li {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 99px;
  background: var(--exp-color, var(--book-ink-muted));
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--exp-color, var(--book-ink-muted)) 12%, var(--book-page));
  }
  color: var(--exp-color, var(--book-ink-secondary));
  border: 1px solid var(--exp-color, var(--book-ink-muted));
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--exp-color, var(--book-ink-muted)) 30%, transparent);
  }
}
.book-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
  margin: 0;
}
.book-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--book-ink);
  line-height: 1.5;
}
.book-list li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--exp-color, var(--book-ink-muted));
}
.exp-nav-btn {
  all: unset;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
}
.exp-nav-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.exp-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 12px;
}
.exp-dot {
  all: unset;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s;
}
.exp-dot[data-active] {
  background: var(--accent);
  transform: scale(1.3);
}
.proj-carousel {
  --n: 5;
  --slat: 54px;
  --gap: 6px;
  container-type: inline-size;
  display: flex;
  gap: var(--gap);
  border-radius: var(--radius-xl);
  height: 280px;
  overflow: hidden;
}
.proj-item {
  display: flex;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow: hidden;
  flex: 0 0 var(--slat);
  min-width: 0;
  transition: flex cubic-bezier(.4,0,.2,1) .5s;
  cursor: default;
  box-shadow: var(--shadow);
}
.proj-item[data-active] {
  flex-basis: calc(100cqw - (var(--n) - 1) * (var(--slat) + var(--gap)));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  cursor: default;
}
.proj-tab {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 0 0 54px;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
  padding-top: 20px;
  gap: 12px;
  border-radius: inherit;
  cursor: default;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  position: relative;
}
.proj-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--proj-color, var(--accent)) 40%, transparent);
  opacity: 0;
  transition: opacity .35s;
}
.proj-item[data-active] .proj-tab::before {
  opacity: 1;
}
.proj-icon {
  position: relative;
  z-index: 1;
  color: var(--proj-color, var(--accent));
}
.proj-label {
  position: relative;
  z-index: 1;
  font-family: var(--font);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  white-space: nowrap;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.proj-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 30px;
  padding: 32px;
  opacity: 0;
  transition: opacity .35s;
}
.proj-item[data-active] .proj-panel {
  opacity: 1;
}
.proj-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.proj-head h3 {
  font-size: 1.125rem;
  font-weight: 600;
}
.proj-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.proj-tech {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.proj-link {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: var(--gradient-accent);
  padding: 4px 10px;
  border-radius: 12px;
  text-decoration: none;
  width: fit-content;
}
.proj-link--website {
  background: linear-gradient(135deg, #34c759, #30d158);
}
.proj-link--app {
  background: linear-gradient(135deg, #af52de, #bf5af2);
}
.proj-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.proj-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 500px;
}
.proj-details {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: gap 0.2s ease, color 0.2s ease;
}
.proj-details:hover {
  color: var(--accent-hover);
  gap: 7px;
}
.proj-details svg {
  flex: none;
}
.cs-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}
.cs-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cs-nav {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.cs-nav:hover {
  color: var(--accent);
  transform: scale(1.06);
}
.cs-stack {
  position: relative;
  width: 300px;
  height: 360px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-item {
  position: absolute;
  inset: 0;
  transition: transform 500ms cubic-bezier(0.34, 1.4, 0.64, 1), opacity 400ms ease, filter 400ms ease, box-shadow 300ms ease;
  cursor: pointer;
}
.cs-item[data-slot="0"] {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 8;
  filter: none;
}
.cs-item[data-slot="1"] {
  transform: translateX(72%) scale(0.94);
  opacity: 0.8;
  z-index: 6;
  filter: saturate(0.8);
}
.cs-item[data-slot="-1"] {
  transform: translateX(-72%) scale(0.94);
  opacity: 0.8;
  z-index: 6;
  filter: saturate(0.8);
}
.cs-item[data-slot="2"] {
  transform: translateX(128%) scale(0.88);
  opacity: 0.4;
  z-index: 4;
  filter: saturate(0.65);
}
.cs-item[data-slot="-2"] {
  transform: translateX(-128%) scale(0.88);
  opacity: 0.4;
  z-index: 4;
  filter: saturate(0.65);
}
.cs-item[data-slot="3"], .cs-item[data-slot="4"], .cs-item[data-slot="-3"], .cs-item[data-slot="-4"] {
  transform: translateX(0) scale(0.9);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.cs-item[data-slot="0"]:hover .cs-card {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
}
.cs-card {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}
.cs-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.cs-art {
  display: block;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.cs-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
}
.cs-body strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.cs-body .cs-copy {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.footer {
  padding: 32px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.modal-close:hover {
  color: var(--accent);
  transform: scale(1.05);
}
.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.modal-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  white-space: pre-line;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 210;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
.lightbox-img {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.lightbox.active .lightbox-img {
  transform: scale(1);
}
.lightbox-caption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  max-width: 85vw;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease 0.1s;
}
.lightbox.active .lightbox-caption {
  transform: translateY(0);
  opacity: 1;
}
@media (max-width: 640px) {
  .cs-stack {
    width: 240px;
    height: 300px;
  }
  .cs-item[data-slot="1"] {
    transform: translateX(52%) scale(0.94);
  }
  .cs-item[data-slot="-1"] {
    transform: translateX(-52%) scale(0.94);
  }
  .cs-item[data-slot="2"] {
    transform: translateX(90%) scale(0.88);
  }
  .cs-item[data-slot="-2"] {
    transform: translateX(-90%) scale(0.88);
  }
  .cs-nav {
    width: 36px;
    height: 36px;
  }
  .nav {
    display: none;
  }
  .header-inner {
    justify-content: flex-end;
  }
  .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid var(--separator);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
  }
  .tabbar .tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 12px;
    min-width: 60px;
    transition: color 0.2s ease;
  }
  .tabbar .tab-link:hover {
    color: var(--accent);
  }
  body {
    padding-bottom: 64px;
  }
  .hero {
    padding: 80px 0 48px;
  }
  .hero-avatar {
    width: 110px;
    height: 110px;
  }
  .hero-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    line-height: 1.8;
  }
  .hero-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .book-outer {
    padding: 10px;
    border-radius: 16px;
  }
  .book-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .book-body::after {
    display: none;
  }
  .book-face {
    padding: 30px 22px 22px;
  }
  .pg-l {
    border-radius: 8px 8px 0 0;
  }
  .pg-r {
    border-radius: 0 0 8px 8px;
  }
  .book-page-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
  }
  .book-face h3 {
    font-size: 1.2rem;
  }
  .book-tags li {
    font-size: 0.78rem;
    padding: 5px 10px;
  }
  .book-list li {
    font-size: 0.88rem;
  }
  .proj-carousel {
    container-type: normal;
    flex-direction: column;
    height: auto;
    gap: 8px;
    overflow: hidden;
    max-width: 100%;
  }
  .proj-item {
    flex: none;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  .proj-item[data-active="true"] {
    flex: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
  .proj-tab {
    position: relative;
    inset: auto;
    flex: none;
    width: 100%;
    height: auto;
    min-height: 58px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    text-align: left;
  }
  .proj-item[data-active="true"] .proj-tab {
    border-bottom-color: transparent;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .proj-label {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.95rem;
    white-space: normal;
    line-height: 1.3;
  }
  .proj-item[data-active="true"] .proj-tab::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--proj-color, var(--accent)) 40%, transparent);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .proj-item[data-active="true"] .proj-label {
    color: #fff;
  }
  .proj-item[data-active="true"] .proj-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
  }
  .proj-icon {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--proj-color, var(--accent));
    @supports (color: color-mix(in lab, red, red)) {
      background: color-mix(in srgb, var(--proj-color, var(--accent)) 12%, var(--bg-card));
    }
    color: var(--proj-color, var(--accent));
  }
  .proj-panel {
    position: static;
    flex: none;
    width: 100%;
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transform: none;
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
    opacity: 1;
    transition: max-height 0.5s cubic-bezier(0.3, 0.85, 0.25, 1), padding 0.4s;
  }
  .proj-item[data-active="true"] .proj-panel {
    max-height: 520px;
    padding: 4px 16px 18px;
    transition: max-height 0.55s cubic-bezier(0.3, 0.85, 0.25, 1), padding 0.4s;
  }
  .proj-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    min-width: 0;
    width: 100%;
  }
  .proj-head h3 {
    font-size: 1rem;
  }
  .proj-desc {
    max-width: 100%;
    font-size: 0.85rem;
  }
  .nav-controls {
    gap: 6px;
  }
}
@media print {
  .header {
    display: none;
  }
  .hero {
    padding: 20px 0;
  }
  .section {
    padding: 20px 0;
  }
  .section-alt {
    background: transparent;
  }
  body {
    font-size: 12px;
  }
}
