@charset "UTF-8";
:root {
  --accent: #c96559;
  --bg: #fff8f3;
  --text: #655c58;
  --border: #e7ded7;
  --surface: #f3ebe5;
  --text-dark: #3d3330;
  --text-light: #9a8f8a;
  --outer-bg: #faf6f4;
  --pad: 16px;
  --sidebar-w: 256px; /* widened slightly to fit larger type */
  --radius-card: 1.375rem;
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: "Inter", "Noto Sans TC", sans-serif;
  color: var(--text);
  background-color: var(--outer-bg);
  position: relative;
  overflow-x: hidden;
}

#watercolor-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: var(--pad);
  height: calc(100vh - var(--pad) * 2);
  display: flex;
  flex-direction: column;
  padding: 20px 14px 18px 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 28px rgba(100, 70, 60, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 10;
}

.sidebar::-webkit-scrollbar {
  width: 0;
}

.sidebar-close {
  display: none;
}

.sidebar-home-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 0.875rem;
  padding: 10px 12px;
  margin: -2px -4px 0;
  transition: background 0.15s;
}

.sidebar-home-link:hover {
  background: rgba(201, 101, 89, 0.07);
}

.traffic-lights {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.tl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.tl-red {
  background: #ff5f57;
}

.tl-yellow {
  background: #febc2e;
}

.tl-green {
  background: #28c840;
}

.sidebar-logo {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 0.325rem;
}

.sidebar-logo span {
  color: var(--accent);
}

.sidebar-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

.sidebar-section-label {
  font-size: 0.65625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
  padding: 0 8px;
  margin-bottom: 6px;
  margin-top: 1.25rem;
}

/* Top-level folder row */
.sidebar-folder {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 2px;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.sidebar-folder:hover {
  background: rgba(201, 101, 89, 0.07);
}

.sidebar-folder.active {
  background: var(--outer-bg);
  box-shadow: 0 1px 8px rgba(100, 70, 60, 0.09), inset 0 0 0 1px rgba(231, 222, 215, 0.7);
}

.folder-icon {
  width: 23px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-folder-name {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 400;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-folder.active .sidebar-folder-name {
  color: var(--accent);
  font-weight: 500;
}

.sidebar-badge {
  font-size: 0.65625rem;
  background: rgba(201, 101, 89, 0.12);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 1.25rem;
  font-weight: 500;
}

/* Expand chevron for togglable folders */
.expand-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: transform 0.22s ease;
}

.sidebar-folder.expanded .expand-chevron {
  transform: rotate(90deg);
  color: var(--accent);
}

/* Sub-items container — collapsible */
.sidebar-subitems {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-subitems.open {
  max-height: 260px;
}

.sidebar-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 1.5rem;
  border-radius: 0.6875rem;
  font-size: 0.8125rem;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s;
  margin-bottom: 0.125rem;
}

.sidebar-subitem:hover {
  background: rgba(201, 101, 89, 0.06);
  color: var(--accent);
}

.sidebar-subitem-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.sidebar-subitem.active {
  background: rgba(201, 101, 89, 0.09);
  color: var(--accent);
  font-weight: 500;
}

.sidebar-subitem.active .sidebar-subitem-dot {
  background: var(--accent);
}

/* Static "archive" item — no link, no expand, just a count display */
.sidebar-folder.static {
  cursor: default;
}

.sidebar-folder.static:hover {
  background: transparent;
}

.sidebar-folder.static .folder-icon path {
  opacity: 0.55;
}

.sidebar-folder.static .sidebar-folder-name {
  color: var(--text-light);
}

.static-note {
  font-size: 0.625rem;
  color: var(--text-light);
  padding: 2px 12px 8px 45px;
  opacity: 0.75;
}

.sidebar-spacer {
  flex: 1;
  min-height: 8px;
}

.sidebar-bottom {
  padding: 12px 6px 0;
  border-top: 1px solid rgba(231, 222, 215, 0.5);
  margin-top: 8px;
}

.sidebar-avatar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 7px;
  border-radius: 0.875rem;
  transition: background 0.1s;
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(201, 101, 89, 0.3);
}

.avatar-name {
  font-size: 0.875rem;
  color: var(--text-dark);
  font-weight: 500;
}

.avatar-role {
  font-size: 0.71875rem;
  color: var(--text-light);
}

.page-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--pad);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  min-height: 100vh;
  position: relative;
}

.main-content {
  flex: 1;
  min-width: 0;
  position: relative;
}

.page-view {
  padding: 2.5rem 3rem 3rem;
  animation: fadeIn 0.22s ease;
}

.page-view.page-leaving {
  animation: fadeOut 0.18s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-view,
  .page-view.page-leaving {
    animation: none;
  }
}
.footer-strip {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(231, 222, 215, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-name {
  font-size: 0.9375rem;
  color: var(--text-dark);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.1s;
}

.footer-links a:hover {
  color: var(--accent);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
  white-space: nowrap;
}

.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.tag {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  font-size: 0.6875rem;
  color: var(--text);
}

.hero-texture-zone {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 480px;
  background-image: linear-gradient(rgba(231, 222, 215, 0.45) 1px, transparent 1px), linear-gradient(90deg, rgba(231, 222, 215, 0.45) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  pointer-events: none;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.2rem;
  align-items: start;
  margin-bottom: 2.5rem;
  max-width: 1240px;
  position: relative;
}

.hero-name {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(4.16vw, 7rem, 21.33vw);
  line-height: 1.125;
  color: var(--text-dark);
  letter-spacing: -0.06em;
  overflow-wrap: break-word;
}

.hero-quote {
  color: var(--accent);
  font-style: italic;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

.hero-bio {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 1.1rem;
  max-width: 600px;
}

.stats-strip {
  display: flex;
  gap: 0;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(231, 222, 215, 0.7);
  border-radius: 0.875rem;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.stat-item {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.1rem 0.95rem;
  position: relative;
  text-align: left;
  border-right: 1px solid rgba(231, 222, 215, 0.6);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.1rem;
  right: 1.1rem;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.25;
  border-radius: 0.0625rem;
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
  overflow: hidden;
  height: 38px;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-drum {
  display: flex;
  flex-direction: column;
  transition: none;
}

.stat-digit {
  font-size: 1.6875rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 38px;
  display: block;
}

.stat-suffix {
  font-size: 1.0625rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 38px;
  flex-shrink: 0;
  font-style: italic;
}

.stat-label {
  font-size: 0.71875rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-ctas {
  display: flex;
  gap: 11px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0.6875rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(201, 101, 89, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(201, 101, 89, 0.35);
}

.btn-ghost {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0.6875rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.88);
}

.archive-card {
  position: relative;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1rem;
  padding: 1.5rem;
  transform: rotate(5.2deg);
  box-shadow: 0 3px 16px rgba(100, 70, 60, 0.08);
  backdrop-filter: blur(6px);
  margin-top: 1.5rem;
}

.archive-card::before {
  content: "PORTFOLIO";
  position: absolute;
  top: 11px;
  right: 11px;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  opacity: 0.5;
  font-weight: 700;
}

.stamp-line {
  height: 1px;
  background: var(--border);
  margin: 9px 0;
}

.stamp-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 6px 0;
}

.stamp-row strong {
  color: var(--text-dark);
  font-weight: 500;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.folder-carousel {
  position: relative;
}

.folder-grid {
  display: flex;
  align-items: stretch;
  gap: 1.6rem;
  padding: 1.5rem 72px 1rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: mask-image 0.2s ease, -webkit-mask-image 0.2s ease;
  -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(to right, black 0, black calc(100% - 48px), transparent 100%);
}

.folder-grid::-webkit-scrollbar {
  display: none;
}

.folder-grid.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.folder-grid > .folder-wrap {
  flex: 0 0 auto;
  width: calc((100% - 72px * 2 - 3.2rem) / 2.25);
  scroll-snap-align: start;
}

.folder-grid > .folder-wrap:first-child {
  margin-left: 1.25rem;
}

.folder-grid-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-right: 24px;
  margin-top: 0.3rem;
}

.folder-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.folder-nav-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

[data-page=works] .folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.4rem 1.2rem;
  overflow: visible;
  mask-image: none;
  -webkit-mask-image: none;
  padding: 0;
  cursor: default;
}

[data-page=works] .folder-grid > .folder-wrap {
  width: auto;
  scroll-snap-align: none;
}

[data-page=works] .folder-grid > .folder-wrap:first-child {
  margin-left: 0;
}

.folder-wrap {
  position: relative;
  display: block;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s, filter 0.18s;
}

.folder-wrap:link,
.folder-wrap:visited {
  color: inherit;
}

.folder-wrap:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 5px 10px rgba(100, 70, 60, 0.12));
}

.folder-back {
  position: absolute;
  top: -17px;
  left: 25px;
  right: 0;
  bottom: 0;
  border-radius: 0.375rem 1.0625rem 1.25rem 0.375rem;
  background: var(--folder-back-bg, #ede3dc);
  border: 1.5px solid var(--folder-back-border, #d8ccc3);
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 11px 13px 13px;
}

.back-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 6px;
}

.back-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.back-tag {
  padding: 3px 8px;
  border-radius: 1.25rem;
  font-size: 0.65625rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--folder-back-border, #d8ccc3);
  color: var(--text);
}

.back-tag.highlight {
  background: rgba(201, 101, 89, 0.12);
  border-color: rgba(201, 101, 89, 0.28);
  color: var(--accent);
}

.folder-tab {
  position: absolute;
  top: -19px;
  left: 0;
  width: 96px;
  height: 19px;
  background: var(--folder-bg, #f5ede7);
  border: 1.5px solid var(--folder-border, #e2cfc5);
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  z-index: 2;
}

.folder-tab::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: var(--folder-bg, #f5ede7);
  z-index: 3;
}

.folder-tab-label {
  position: absolute;
  top: -14px;
  right: 27px;
  font-size: 0.59375rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--folder-accent, var(--accent));
  text-transform: uppercase;
  z-index: 4;
  white-space: nowrap;
}

.folder-front {
  position: relative;
  z-index: 1;
  background: var(--folder-bg, #f5ede7);
  border: 1.5px solid var(--folder-border, #e2cfc5);
  border-radius: 0 1rem 1rem 1rem;
  padding: 0.5rem 1.15rem 1.05rem;
  min-height: 190px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.folder-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.folder-eyebrow {
  font-size: 0.59375rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--folder-accent, var(--accent));
  margin-bottom: 0.32rem;
  font-weight: 700;
}

.folder-title {
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.folder-banner-img {
  width: 100%;
}

.folder-banner-img {
  width: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.6rem;
}

.folder-desc {
  font-size: 0.75rem;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
}

.folder-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--folder-border, #e2cfc5);
  font-size: 0.65625rem;
  color: var(--text-light);
}

.folder-open-btn {
  font-size: 0.6875rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.folder-open-btn:hover {
  color: var(--accent);
}

.folder-wrap.ghost {
  opacity: 0.42;
}

.folder-wrap.archive-prompt {
  opacity: 0.65;
}

.folder-wrap.ghost .folder-front,
.folder-wrap.archive-prompt .folder-front {
  background: rgba(243, 235, 229, 0.5);
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 190px;
}

.folder-wrap.ghost .folder-back,
.folder-wrap.archive-prompt .folder-back,
.folder-wrap.ghost .folder-tab,
.folder-wrap.archive-prompt .folder-tab,
.folder-wrap.ghost .folder-tab-label,
.folder-wrap.archive-prompt .folder-tab-label {
  display: none;
}

.folder-wrap.ghost .folder-front {
  border-style: dashed;
}

.folder-wrap.warm {
  --folder-bg: #f5ede7;
  --folder-border: #e2cfc5;
  --folder-back-bg: #ede3dc;
  --folder-back-border: #d8ccc3;
}

.folder-wrap.sage {
  --folder-bg: #eaf0ea;
  --folder-border: #c8d8c5;
  --folder-accent: #5a7e57;
  --folder-back-bg: #dde8da;
  --folder-back-border: #bdd0b9;
}

.folder-wrap.slate {
  --folder-bg: #e8edf2;
  --folder-border: #c5d1dc;
  --folder-accent: #4a6275;
  --folder-back-bg: #dce3ec;
  --folder-back-border: #b8c8d5;
}

.folder-wrap.sand {
  --folder-bg: #f2ede4;
  --folder-border: #ddd3c4;
  --folder-accent: #8a7354;
  --folder-back-bg: #eae3d6;
  --folder-back-border: #d0c6b2;
}

.folder-wrap.lilac {
  --folder-bg: #e8e5f1;
  --folder-border: #cbbed1;
  --folder-accent: #595E8D;
  --folder-back-bg: #d9d4e7;
  --folder-back-border: #a6a1b6;
}

.leadership-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.initiative-card {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(231, 222, 215, 0.72);
  border-radius: 1rem;
  padding: 1.1rem 1.5rem;
  backdrop-filter: blur(6px);
}

.initiative-icon {
  width: 33px;
  height: 33px;
  background: rgba(243, 235, 229, 0.8);
  border-radius: 0.5625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 1.0625rem;
}

.initiative-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 0.32rem;
}

.initiative-sub {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

.initiative-banner {
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
}
.initiative-banner img {
  width: 100%;
  border-radius: 0.5rem;
}

.archive-wrapper {
  margin-top: 1.5rem;
}

.archive-card-backing {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(231, 222, 215, 0.7);
  border-radius: 1.125rem;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(100, 70, 60, 0.05), 0 5px 0 -3px rgba(231, 222, 215, 0.4);
  backdrop-filter: blur(8px);
}

.archive-header {
  display: grid;
  grid-template-columns: 2fr 1.1fr 65px 1fr;
  gap: 11px;
  padding: 11px 20px 9px;
  background: rgba(243, 235, 229, 0.62);
  border-bottom: 1px solid rgba(231, 222, 215, 0.7);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 700;
}

.archive-row {
  display: grid;
  grid-template-columns: 2fr 1.1fr 65px 1fr;
  gap: 11px;
  align-items: center;
  padding: 11px 20px;
  border-bottom: 1px solid rgba(231, 222, 215, 0.5);
  font-size: 0.84375rem;
  transition: background 0.1s;
}

.archive-row:last-child {
  border-bottom: none;
}

.archive-row:hover {
  background: rgba(243, 235, 229, 0.4);
}

.archive-name {
  color: var(--text-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84375rem;
}

.archive-industry,
.archive-role {
  color: var(--text);
  font-size: 0.78125rem;
}

.archive-year {
  color: var(--text-light);
  font-size: 0.75rem;
}

.archive-count-note {
  font-size: 0.78125rem;
  color: var(--text-light);
  padding: 0.9rem 20px;
  font-style: italic;
  background: rgba(243, 235, 229, 0.4);
  border-top: 1px dashed rgba(231, 222, 215, 0.7);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Placeholder folder cards (locked / archive-prompt) */
.placeholder-card {
  text-align: center;
  width: 100%;
}

.placeholder-icon {
  font-size: 1.375rem;
  color: var(--text-light);
}

.placeholder-card.accent .placeholder-icon {
  color: var(--accent);
}

.placeholder-note {
  font-size: 0.6875rem;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.6;
}

.placeholder-card.accent .placeholder-note {
  color: var(--text);
  line-height: 1.7;
}

.placeholder-note .placeholder-link {
  color: var(--accent);
  font-weight: 500;
}

[data-page=about] .section-heading {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

[data-page=resume] .section-heading {
  margin-bottom: 1rem;
}

.resume-header {
  position: relative;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.resume-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 360px;
  background-image: linear-gradient(rgba(231, 222, 215, 0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(231, 222, 215, 0.4) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  pointer-events: none;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  z-index: 0;
}

.resume-header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.resume-name {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.resume-name-en {
  font-size: clamp(1.5rem, 3.2vw, 3rem);
  color: var(--text-light);
  font-weight: 400;
  margin-left: 0.55rem;
  font-style: normal;
}

.resume-role {
  font-size: 1.125rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.45rem;
}

.resume-contact-item {
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.resume-contact-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.resume-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid var(--border);
  border-radius: 0.6875rem;
  font-size: 0.84375rem;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.resume-download:hover {
  background: rgba(255, 255, 255, 0.85);
}

.resume-body {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 2.5rem;
  align-items: start;
}

.resume-section {
  margin-bottom: 2.4rem;
}

.resume-section:last-child {
  margin-bottom: 0;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 0 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-year {
  font-size: 0.71875rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-top: 0.2rem;
  padding-right: 0.75rem;
  text-align: right;
  white-space: nowrap;
}

.timeline-year span {
  display: block;
  font-size: 0.65625rem;
  opacity: 0.7;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(231, 222, 215, 0.7);
  border-radius: 0.75rem;
  padding: 1.1rem 1.5rem;
  backdrop-filter: blur(4px);
  position: relative;
}

.timeline-content::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.55;
  box-shadow: 0 0 0 3px rgba(201, 101, 89, 0.12);
}

.timeline-entry:not(:last-child) .timeline-content::after {
  content: "";
  position: absolute;
  left: -1.27rem;
  top: 1.2rem;
  width: 1px;
  bottom: -1.6rem;
  background: rgba(231, 222, 215, 0.8);
}

.entry-org {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.25rem;
  opacity: 0.85;
}

.entry-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.entry-desc {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.75;
}

.entry-desc span {
  display: block;
  margin-bottom: 0.75rem;
}

.entry-desc li {
  position: relative;
  padding-left: 14px;
}

.entry-desc li:not(:last-child) {
  margin-bottom: 0.125rem;
}

.entry-desc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.55;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0.6rem;
}

.entry-tag {
  padding: 3px 8px;
  border-radius: 1.25rem;
  font-size: 0.65625rem;
  font-weight: 500;
  background: rgba(243, 235, 229, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
}

.skills-col {
  position: sticky;
  top: calc(var(--pad) + 2.5rem);
}

.skill-card {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(231, 222, 215, 0.7);
  border-radius: 1rem;
  padding: 1.2rem 1.25rem;
  backdrop-filter: blur(6px);
  margin-bottom: 13px;
}

.skill-card:last-child {
  margin-bottom: 0;
}

.skill-card-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-light);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 9px;
}

.skill-card-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.skill-row {
  margin-bottom: 0.7rem;
}

.skill-row:last-child {
  margin-bottom: 0;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.skill-name {
  font-size: 0.8125rem;
  color: var(--text-dark);
  font-weight: 500;
}

.skill-level {
  font-size: 0.65625rem;
  color: var(--text-light);
}

.skill-bar {
  height: 5px;
  background: rgba(231, 222, 215, 0.8);
  border-radius: 0.125rem;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 0.125rem;
  background: linear-gradient(90deg, var(--accent), rgba(201, 101, 89, 0.55));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.soft-skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.soft-skill-chip {
  padding: 4px 11px;
  border-radius: 1.25rem;
  font-size: 0.71875rem;
  font-weight: 500;
  background: rgba(243, 235, 229, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--text);
  padding: 5px 7px;
  border-radius: 0.5625rem;
  background: rgba(243, 235, 229, 0.5);
  border: 1px solid rgba(231, 222, 215, 0.6);
}

.tool-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.6;
}

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-dark);
  box-shadow: 0 3px 16px rgba(100, 70, 60, 0.14);
  cursor: pointer;
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.15s, color 0.15s, border-color 0.15s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.back-to-top svg {
  flex-shrink: 0;
}

body[data-page=landing] {
  height: 100vh;
  overflow: hidden;
}

.landing-stage {
  position: fixed;
  inset: 0;
  background: var(--outer-bg);
  overflow: hidden;
}

@media (max-width: 680px) {
  body[data-page=landing] {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .landing-stage {
    position: relative;
    min-height: 150vh;
    height: auto;
  }
  .landing-heading {
    top: 4% !important;
    width: min(92vw, 100%);
    padding: 0 4vw;
    box-sizing: border-box;
  }
  .landing-heading .landing-eyebrow {
    font-family: "Inter", "Noto Sans TC", sans-serif;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
  .landing-heading .landing-title {
    font-size: clamp(1.75rem, 9vw, 6rem);
    white-space: normal;
    text-wrap: balance;
  }
}
.landing-desk {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(231, 222, 215, 0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(231, 222, 215, 0.4) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, black 0%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 42%, black 0%, transparent 75%);
}

.landing-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.landing-heading {
  position: absolute;
  top: 10%;
  left: 50%;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -10px);
  animation: landingHeadingIn 0.45s ease 0.1s forwards;
}

.landing-eyebrow {
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.landing-title {
  position: relative;
  font-family: "Montserrat", cursive;
  font-weight: 700;
  font-size: clamp(2rem, 11vw, 11.5rem);
  line-height: 1;
  padding: 0 0 1rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  clip-path: inset(0 100% 0 0);
  animation: landingWrite 1.1s cubic-bezier(0.65, 0.05, 0.36, 1) 0.5s forwards;
  text-wrap: nowrap;
}

.landing-pen {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 2px rgba(201, 101, 89, 0.5);
  opacity: 0;
  pointer-events: none;
  animation: landingPenMove 1.1s cubic-bezier(0.65, 0.05, 0.36, 1) 0.5s forwards;
}

.landing-underline {
  width: clamp(120px, 150vw, 50rem);
  height: auto;
  margin-top: -1.2rem;
  opacity: 0;
  pointer-events: none;
  animation: landingUnderlineIn 0.01s linear 1.6s forwards;
}
.landing-underline path {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: landingUnderlineDraw 0.5s ease 1.6s forwards;
}

@keyframes landingHeadingIn {
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes landingWrite {
  to {
    clip-path: inset(0 0% 0 0);
  }
}
@keyframes landingPenMove {
  0% {
    left: 0;
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
@keyframes landingUnderlineIn {
  to {
    opacity: 1;
  }
}
@keyframes landingUnderlineDraw {
  to {
    stroke-dashoffset: 0;
  }
}
.book-open-hint {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  transform: translate(-50%, -50%);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: "Noto Sans TC", "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  box-shadow: 0 4px 14px rgba(100, 70, 60, 0.25);
}

.book-open-hint.visible {
  opacity: 1;
}

.landing-fade {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--outer-bg);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .landing-heading {
    animation: none !important;
    opacity: 1 !important;
    transform: translate(-50%, 0) !important;
  }
  .landing-title {
    animation: none !important;
    clip-path: inset(0 0% 0 0) !important;
  }
  .landing-pen {
    animation: none !important;
    opacity: 0 !important;
  }
  .landing-underline {
    animation: none !important;
    opacity: 1 !important;
  }
  .landing-underline path {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
}
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s;
}

.project-back:hover {
  color: var(--accent);
}

.project-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

.project-title {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.project-subtitle {
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(231, 222, 215, 0.7);
  border-radius: 0.875rem;
  backdrop-filter: blur(6px);
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.project-meta-label {
  font-size: 0.785rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.project-meta-value {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-banner {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.project-banner img {
  display: block;
  width: 100%;
}

.project-layout {
  position: relative;
}

.project-main {
  position: relative;
  max-width: 960px;
}

.project-toc-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 180px;
  margin-left: 5rem;
}

.project-toc {
  position: sticky;
  top: calc(var(--pad) + 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-toc-label {
  font-size: 0.65625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.project-toc-link {
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.project-toc-link:hover {
  color: var(--text-dark);
}

.project-toc-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}

.project-section {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
  scroll-margin-top: 1.5rem;
}

.project-section:last-of-type {
  margin-bottom: 0;
}

.project-challenge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tension-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tension-item {
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(231, 222, 215, 0.72);
  border-radius: 1rem;
  backdrop-filter: blur(6px);
}

.tension-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tension-sides {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.85rem;
}

.tension-side {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.tension-side.force-a {
  text-align: right;
}

.tension-side.force-b {
  text-align: left;
}

.tension-vs {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tension-caption {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}

.tension-insight {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.75;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(231, 222, 215, 0.9);
}

.project-decision {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.25rem 1rem;
  padding: 0.8rem 0 1rem;
  border-bottom: 1px solid rgba(231, 222, 215, 0.6);
}
.project-decision.project-mockup {
  grid-template-columns: 24rem 1fr;
  margin-top: 1rem;
}
.project-decision.project-mockup .project-gallery-item {
  display: flex;
  justify-content: center;
}
.project-decision.project-mockup .project-gallery-item img {
  max-height: 25rem;
  width: auto;
}
.project-decision.project-mockup .project-decision-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-decision-num {
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.6;
  padding-top: 0.3rem;
}

.project-decision-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-body-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.75;
}

.project-decision-desc {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
}

.project-figure img {
  display: block;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.project-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.78125rem;
  color: var(--text-light);
  line-height: 1.6;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-gallery-item img {
  display: block;
  width: 100%;
  border-radius: 1rem;
}

.project-gallery-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

.project-gallery-wide {
  grid-column: 1/-1;
}

.project-quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.1rem;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.85;
}

.project-quote.accent {
  font-size: 1.125rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-top: 0.5rem;
}

.project-body-text {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.85;
}

.project-timeline-h {
  display: flex;
  align-items: flex-start;
  padding: 1.25rem 0 1.5rem;
}

.timeline-h-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timeline-h-year {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.timeline-h-node {
  position: relative;
  height: 10px;
  width: 100%;
  margin: 0.55rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-h-node::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(231, 222, 215, 0.9);
  transform: translateY(-50%);
}

.timeline-h-item:first-child .timeline-h-node::before {
  left: 50%;
}

.timeline-h-item:last-child .timeline-h-node::before {
  right: 50%;
}

.timeline-h-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
  box-shadow: 0 0 0 4px rgba(255, 248, 243, 0.9);
}

.timeline-h-label {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.5;
  padding: 0 0.35rem;
}

.timeline-h-caption {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.7;
  text-align: center;
}

.project-footer-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.challenge-icon {
  width: 34px;
  height: 34px;
  border-radius: 0.625rem;
  background: rgba(201, 101, 89, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}
.challenge-icon svg {
  width: 18px;
  height: 18px;
}

.process-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.process-block + .process-block {
  padding-top: 2rem;
  border-top: 1px dashed rgba(231, 222, 215, 0.8);
}

.process-subhead {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-dark);
}

.process-num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.75;
}

.arch-flow {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.arch-node {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(231, 222, 215, 0.72);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  backdrop-filter: blur(6px);
}

.arch-node-label {
  font-size: 0.65625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 700;
}

.arch-node-value {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.5;
}

.arch-node-desc {
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.65;
}

.arch-arrow {
  flex-shrink: 0;
  align-self: center;
  color: var(--text-light);
  opacity: 0.6;
}
.arch-arrow svg {
  width: 18px;
  height: 18px;
}

.arch-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.arch-note-chip {
  padding: 4px 11px;
  border-radius: 1.25rem;
  font-size: 0.71875rem;
  font-weight: 500;
  background: rgba(201, 101, 89, 0.08);
  border: 1px solid rgba(201, 101, 89, 0.22);
  color: var(--accent);
}

.feature-table-wrap {
  border: 1px solid rgba(231, 222, 215, 0.7);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
}
.feature-table th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  background: rgba(243, 235, 229, 0.62);
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid rgba(231, 222, 215, 0.7);
}
.feature-table td {
  padding: 0.9rem 1.1rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.65;
  vertical-align: top;
  border-bottom: 1px dashed rgba(231, 222, 215, 0.8);
}
.feature-table tr:last-child td {
  border-bottom: none;
}
.feature-table td:first-child {
  color: var(--text-dark);
  font-weight: 500;
  white-space: nowrap;
}
.feature-table td:last-child {
  color: var(--accent);
  font-weight: 500;
}

.ia-compare {
  display: flex;
  align-items: stretch;
  gap: 1rem;
}

.ia-block {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(231, 222, 215, 0.7);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem 1.4rem;
  backdrop-filter: blur(6px);
}

.ia-block-label {
  font-size: 0.65625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-light);
  margin-bottom: 0.9rem;
}

.ia-block.new .ia-block-label {
  color: var(--accent);
}

.ia-arrow-down {
  display: flex;
  justify-content: center;
  color: var(--text-light);
  opacity: 0.65;
  padding: 0.6rem 0;
}
.ia-arrow-down svg {
  width: 18px;
  height: 18px;
}

.ia-tree,
.ia-tree ul {
  list-style: none;
  margin: 0;
  padding-left: 1.2rem;
  border-left: 1px dashed rgba(201, 101, 89, 0.32);
}

.ia-tree {
  padding-left: 0;
  border-left: none;
}

.ia-tree li {
  position: relative;
  padding: 0.32rem 0 0.32rem 0.9rem;
  font-size: 0.84375rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.ia-tree li::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 0;
  width: 0.7rem;
  height: 1px;
  background: rgba(201, 101, 89, 0.32);
}

.ia-tree > li {
  padding-left: 0;
}

.ia-tree > li::before {
  display: none;
}

.ia-node-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 1px 8px;
  border-radius: 1.25rem;
  font-size: 0.625rem;
  font-weight: 500;
  background: rgba(201, 101, 89, 0.1);
  color: var(--accent);
}

.flow-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.flow-row-label {
  font-size: 0.65625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-light);
}

.flow-row.after {
  margin-top: 1rem;
}

.flow-row.after .flow-row-label {
  color: var(--accent);
}

.flow-steps {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1;
  min-width: 128px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(231, 222, 215, 0.72);
  border-radius: 0.875rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.8125rem;
  color: var(--text-dark);
  line-height: 1.5;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-row.after .flow-step {
  background: rgba(201, 101, 89, 0.07);
  border-color: rgba(201, 101, 89, 0.25);
  font-weight: 500;
}

.flow-step-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--text-light);
  opacity: 0.55;
}
.flow-step-arrow svg {
  width: 18px;
  height: 18px;
}

.requirement-chain {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.requirement-row {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
}

.requirement-step {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(231, 222, 215, 0.72);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.requirement-step.result {
  background: rgba(201, 101, 89, 0.07);
  border-color: rgba(201, 101, 89, 0.25);
}

.requirement-step-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.requirement-step-text {
  font-size: 0.8125rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.requirement-arrow {
  flex-shrink: 0;
  align-self: center;
  color: var(--text-light);
  opacity: 0.55;
}
.requirement-arrow svg {
  width: 18px;
  height: 18px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 1rem;
}

.bento-item {
  position: relative;
  border-radius: 1.125rem;
  overflow: hidden;
  border: 1px solid rgba(231, 222, 215, 0.7);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
}

.bento-item.span-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-media {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bento-caption {
  padding: 0.65rem 0.9rem;
  font-size: 0.75rem;
  color: var(--text-light);
  border-top: 1px solid rgba(231, 222, 215, 0.6);
  background: rgba(255, 255, 255, 0.5);
}

.bento-status-demo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
}

.status-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.status-chip.status-done {
  background: rgba(90, 126, 87, 0.12);
  color: #5a7e57;
  border-color: rgba(90, 126, 87, 0.28);
}

.status-chip.status-progress {
  background: rgba(201, 101, 89, 0.1);
  color: var(--accent);
  border-color: rgba(201, 101, 89, 0.25);
}

.status-chip.status-overdue {
  background: rgba(180, 70, 60, 0.12);
  color: #9c3f33;
  border-color: rgba(180, 70, 60, 0.28);
}

.hamburger {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
  width: 44px;
  height: 44px;
  background: rgba(255, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(100, 70, 60, 0.14);
  border: 1px solid var(--border);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: opacity 0.2s ease;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.6px;
  background: var(--text-dark);
  border-radius: 0.125rem;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 51, 48, 0.28);
  z-index: 49;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease;
}

@media (max-width: 1280px) {
  :root {
    --sidebar-w: 232px;
    --pad: 14px;
  }
  .page-view {
    padding: 2.1rem 2.1rem 2.6rem;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 268px;
    gap: 1.6rem;
  }
}
@media (max-width: 1200px) {
  .tension-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 960px) {
  :root {
    --sidebar-w: 216px;
    --pad: 12px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .archive-card {
    transform: none;
    max-width: 400px;
  }
  .folder-grid {
    padding-left: 60px;
    padding-right: 60px;
  }
  .folder-grid > .folder-wrap {
    width: calc((100% - 120px - 1.6rem) / 1.45);
  }
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .resume-body {
    grid-template-columns: 1fr;
  }
  .skills-col {
    position: static;
  }
  .project-main {
    max-width: none;
  }
  .project-toc-rail {
    display: none;
  }
  .archive-header,
  .archive-row {
    grid-template-columns: 2fr 1fr 55px;
  }
  .archive-row > *:last-child,
  .archive-header > *:last-child {
    display: none;
  }
  .project-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .arch-flow,
  .requirement-row,
  .ia-compare {
    flex-direction: column;
  }
  .arch-arrow svg,
  .requirement-arrow svg {
    transform: rotate(90deg);
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  :root {
    --pad: 10px;
  }
  .page-shell {
    flex-direction: column;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    border-radius: 0 1.375rem 1.375rem 0;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    height: 100vh;
    z-index: 61;
    box-shadow: 4px 0 32px rgba(100, 70, 60, 0.16);
    background: rgba(255, 255, 255, 0.9);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  body.sidebar-open .hamburger {
    opacity: 0;
    pointer-events: none;
  }
  .sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(101, 92, 88, 0.08);
    color: var(--text-dark);
    cursor: pointer;
  }
  .sidebar-close:hover {
    background: rgba(101, 92, 88, 0.16);
  }
  .hamburger {
    display: flex;
  }
  .page-view {
    padding: 3.7rem 1.2rem 2rem;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.3rem;
  }
  .hero-name {
    font-size: 6.5rem;
    margin-bottom: 0.5rem;
  }
  .stats-strip {
    flex-direction: column;
  }
  .stat-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-right: none;
    border-bottom: 1px solid rgba(231, 222, 215, 0.6);
    padding: 0.75rem 1.1rem;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .stat-item::before {
    content: none;
  }
  .stat-number-wrap {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .stat-label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .archive-card {
    transform: none;
  }
  .folder-grid {
    flex-direction: column;
    overflow-x: visible;
    padding: 0;
    mask-image: none;
    -webkit-mask-image: none;
    cursor: default;
  }
  .folder-grid > .folder-wrap {
    width: 100%;
    margin-left: 0;
  }
  .folder-grid > .folder-wrap:first-child {
    margin-left: 0;
  }
  .folder-grid-controls {
    display: none;
  }
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .resume-body {
    grid-template-columns: 1fr;
  }
  .timeline-entry {
    grid-template-columns: 70px 1fr;
  }
  .section-heading {
    white-space: normal;
    overflow-wrap: break-word;
  }
  .project-timeline-h {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.75rem;
  }
  .timeline-h-item {
    flex: 0 0 88px;
  }
  .archive-header,
  .archive-row {
    grid-template-columns: 1fr 60px;
  }
  .archive-row > *:nth-child(2),
  .archive-row > *:nth-child(4),
  .archive-header > *:nth-child(2),
  .archive-header > *:nth-child(4) {
    display: none;
  }
  .footer-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .project-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-card-grid,
  .project-gallery,
  .tension-list {
    grid-template-columns: 1fr;
  }
  .project-decision.project-mockup {
    grid-template-columns: 1fr;
  }
  .project-decision.project-mockup .project-gallery-item img {
    max-height: none;
    width: 100%;
  }
  .tension-sides {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.5rem;
  }
  .tension-side.force-a,
  .tension-side.force-b {
    text-align: center;
  }
  .feature-table-wrap {
    overflow-x: visible;
  }
  .feature-table {
    min-width: 0;
    width: 100%;
  }
  .feature-table thead {
    display: none;
  }
  .feature-table tr {
    display: block;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px dashed rgba(231, 222, 215, 0.8);
  }
  .feature-table tr:last-child {
    border-bottom: none;
  }
  .feature-table td {
    display: block;
    padding: 0 0 0.6rem;
    border-bottom: none;
    white-space: normal;
  }
  .feature-table td:first-child {
    white-space: normal;
  }
  .feature-table td:last-child {
    padding-bottom: 0;
  }
  .feature-table td::before {
    content: "";
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.2rem;
  }
  .feature-table td:nth-child(1)::before {
    content: "原有功能";
  }
  .feature-table td:nth-child(2)::before {
    content: "問題";
  }
  .feature-table td:nth-child(3)::before {
    content: "決策";
  }
  .project-timeline-h {
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
    padding: 0.25rem 0 0;
  }
  .timeline-h-item {
    flex: none;
    display: grid;
    grid-template-columns: 20px 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.9rem;
    row-gap: 0.15rem;
    text-align: left;
    padding: 0 0 1.25rem;
  }
  .timeline-h-item:last-child {
    padding-bottom: 0;
  }
  .timeline-h-year {
    grid-column: 2;
    grid-row: 1;
  }
  .timeline-h-node {
    grid-column: 1;
    grid-row: 1/3;
    width: 100%;
    height: auto;
    margin: 0;
  }
  .timeline-h-node::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
    transform: translateX(-50%);
  }
  .timeline-h-item:first-child .timeline-h-node::before {
    top: 50%;
  }
  .timeline-h-item:last-child .timeline-h-node::before {
    bottom: 50%;
  }
  .timeline-h-label {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    padding: 0;
  }
  .timeline-h-caption {
    text-align: left;
  }
  .flow-steps {
    flex-direction: column;
  }
  .flow-step-arrow {
    justify-content: center;
  }
  .flow-step-arrow svg {
    transform: rotate(90deg);
  }
  .requirement-chain {
    counter-reset: requirement-row;
  }
  .requirement-row {
    counter-increment: requirement-row;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(231, 222, 215, 0.9);
  }
  .requirement-row:first-child {
    padding-top: 0;
    border-top: none;
  }
  .requirement-row::before {
    content: "需求 " counter(requirement-row);
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.7rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .bento-item.span-2x2 {
    grid-column: span 1;
    grid-row: span 2;
  }
  .back-to-top {
    right: 18px;
    bottom: 18px;
  }
  .intro-peek-title {
    font-size: clamp(8rem, 30vw, 4.5rem);
    text-wrap: auto;
  }
  .intro-peek-underline {
    width: clamp(120px, 80vw, 56rem);
  }
  .intro-peek-underline path {
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: introUnderlineDraw 0.5s ease 1.6s forwards;
  }
  .intro-folder-btn {
    width: min(94vw, 380px);
    height: 46%;
  }
  .intro-hint {
    top: -64px;
    font-size: 0.75rem;
  }
}
