@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300&family=Playfair+Display:wght@400;600;700&family=JetBrains+Mono:wght@400;500&family=Inter:wght@400;500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
*, *:hover { cursor: none !important; }
body { background: #F9F7F2; overflow-x: hidden; font-family: "Georgia", serif; }
canvas { display: block; position: fixed; top: 0; left: 0; width: 100vw !important; height: 100vh !important; z-index: 0; }
#scroll-space { height: 700vh; }

#info {
  position: fixed; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  color: #111; font-family: "Georgia", serif; font-size: 13px;
  letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6;
  pointer-events: none; text-align: center; z-index: 3;
}

/* ── ABOUT SECTION (#cp1) ── */
#cp1 {
  max-width: 320px;
  padding: 30px 28px 26px;
  pointer-events: auto;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 4px;
  box-shadow:
    0 2px 12px rgba(26,20,16,0.06),
    0 8px 32px -8px rgba(26,20,16,0.10),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

/* ── GITHUB STATS CARD (#cp-github) ── */
#cp-github {
  position: fixed;
  top: 45%; right: 5%;
  left: auto;
  transform: translateY(-50%);
  width: 260px;
  padding: 26px 24px 22px;
  pointer-events: auto;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 4px;
  box-shadow:
    0 2px 12px rgba(26,20,16,0.06),
    0 8px 32px -8px rgba(26,20,16,0.10),
    inset 0 1px 0 rgba(255,255,255,0.8);
  flex-direction: column !important;
  gap: 0 !important;
}
.gh-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}
.gh-icon {
  width: 15px;
  height: 15px;
  fill: rgba(26,20,16,0.45);
  flex-shrink: 0;
}
.gh-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  color: rgba(26,20,16,0.60);
  letter-spacing: 0.04em;
}
.gh-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(26,20,16,0.14), rgba(26,20,16,0.04), transparent);
  margin: 10px 0 16px;
}
.gh-stats {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
}
.gh-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  position: relative;
}
.gh-stat + .gh-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 1px;
  background: rgba(26,20,16,0.10);
}
.gh-stat + .gh-stat { padding-left: 16px; }
.gh-stat-val {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 32px;
  font-weight: 300;
  color: rgba(26,20,16,0.88);
  line-height: 1;
  letter-spacing: -0.03em;
}
.gh-stat-key {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(26,20,16,0.38);
  margin-top: 2px;
}
.gh-langs-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(26,20,16,0.32);
  margin-bottom: 8px;
}
.gh-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}
.gh-lang-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(26,20,16,0.78);
  background: rgba(139,0,0,0.07);
  border: 1px solid rgba(139,0,0,0.18);
  border-radius: 999px;
  padding: 3px 10px;
}
.gh-updated {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: rgba(26,20,16,0.25);
  letter-spacing: 0.06em;
}
.about-header { margin-bottom: 20px; }
#cp1 h2 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(26,20,16,0.90);
  line-height: 1.0;
  margin-bottom: 16px;
}
.about-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(26,20,16,0.18), rgba(26,20,16,0.04), transparent);
  margin-bottom: 12px;
}
#cp1 .cp-subtitle {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(26,20,16,0.58);
  margin: 0;
}
.about-bio {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.80;
  color: rgba(26,20,16,0.82);
  margin-bottom: 16px;
}
.about-status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 20px;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(26,20,16,0.62);
  line-height: 1.65;
  pointer-events: none;
}
.about-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(139,0,0,0.65);
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 0 3px rgba(139,0,0,0.10);
  animation: status-pulse 2.8s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(139,0,0,0.10); }
  50%       { box-shadow: 0 0 0 5px rgba(139,0,0,0.04); }
}
.about-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(26,20,16,0.08);
}


/* ── EXP OVERLAY ── */
#cp2, #cp2b, #cp3, #cp3b { display: none; }

#exp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
#exp-overlay.visible { pointer-events: auto; }

#exp2-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
#exp2-overlay.visible { pointer-events: auto; }

#exp-inner,
#exp2-inner {
  position: relative;
  padding: 0 0 50vh;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#exp-inner .exp-card,
#exp2-inner .exp-card {
  margin-bottom: -60px;
}

.exp-card.exp-left {
  align-self: flex-start;
  margin-left: 4vw;
  width: 38vw;
  max-width: 460px;
}
.exp-card.exp-right {
  align-self: flex-end;
  margin-right: 4vw;
  width: 38vw;
  max-width: 460px;
}

.exp-section-label {
  width: 100%;
  padding-left: 4vw;
  padding-right: 4vw;
  box-sizing: border-box;
}

.exp-top-spacer {
  height: 72vh;
  flex-shrink: 0;
}

.exp-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(26,20,16,0.35);
  padding: 24px 4vw 4px;
  border-bottom: 1px solid rgba(26,20,16,0.08);
  margin-bottom: 4px;
}

.exp-card {
  background: rgba(249,247,242,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.70);
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 4px 24px rgba(26,20,16,0.07),
    0 16px 48px -12px rgba(26,20,16,0.13);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.exp-card:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 8px 32px rgba(26,20,16,0.10),
    0 24px 56px -12px rgba(26,20,16,0.18);
  transform: translateY(-2px);
}

.exp-project {
  display: flex;
  flex-direction: column;
}
.exp-project-img {
  width: 100%;
  overflow: hidden;
  background: rgba(26,20,16,0.04);
}
.exp-project-img img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(30%) contrast(1.05);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.exp-project:hover .exp-project-img img {
  filter: grayscale(0%) contrast(1.02);
  transform: scale(1.02);
}

.exp-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-role {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: rgba(26,20,16,0.92);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.exp-date {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(26,20,16,0.38);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.exp-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(26,20,16,0.60);
  line-height: 1.7;
}

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

.exp-bullets {
  margin: 0;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exp-bullets li {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: rgba(26,20,16,0.65);
  line-height: 1.6;
}

.exp-links {
  display: flex;
  gap: 18px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(26,20,16,0.06);
}
.exp-links a {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26,20,16,0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}
.exp-links a:hover { color: rgba(139,0,0,0.85); }

/* ── SIDE CARD CONTAINERS ── */
.cp-text {
  position: fixed;
  top: 45%; left: 5%;
  transform: translate(0, -50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  will-change: opacity;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#cp-art {
  top: 0; left: 0;
  transform: none;
  width: 100vw; height: 100vh;
  max-width: none;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  padding: 0 250px;
}
#cp2  { left: 1.5%; gap: 12px; }
#cp2b { left: auto; right: 1.5%; gap: 12px; }
#cp3 {
  left: 1.5%;
  gap: 14px;
}
#cp3b {
  left: auto; right: 1.5%;
  gap: 14px;
}

/* ── ART CAROUSEL ── */
.art-col {
  width: 240px;
  height: 100vh;
  overflow: hidden;
  pointer-events: auto;
  flex-shrink: 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 16%,
    black 84%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 16%,
    black 84%,
    transparent 100%
  );
}
.art-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 6px;
  will-change: transform;
}
@keyframes art-scroll {
  to { transform: translateY(-50%); }
}
.art-track--down { animation: art-scroll 38s linear infinite reverse; }
.art-track--up   { animation: art-scroll 30s linear infinite; }
.art-col:hover .art-track { animation-play-state: paused; }

/* stagger: alternate frames offset inward for a floating, organic feel */
.art-track .art-frame:nth-child(odd)  { margin-left: 14px; }
.art-track .art-frame:nth-child(even) { margin-right: 14px; }

.art-frame {
  width: calc(100% - 14px);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.62);
  padding: 4px;
  background: rgba(249,247,242,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 6px 28px -8px rgba(26,20,16,0.16),
    0 1px 6px rgba(26,20,16,0.07),
    inset 0 1px 0 rgba(255,255,255,0.85);
  cursor: pointer;
  box-sizing: border-box;
  border-radius: 3px;
  position: relative;
  transition:
    transform 0.52s cubic-bezier(0.23,1,0.32,1),
    box-shadow 0.52s ease;
  will-change: transform;
}

/* ink-bleed vignette overlay — revealed on hover */
.art-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: radial-gradient(
    ellipse at center,
    transparent 48%,
    rgba(26,20,16,0.10) 100%
  );
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}

.art-frame:hover {
  transform: translateY(-3px) scale(1.028);
  box-shadow:
    0 14px 44px -10px rgba(26,20,16,0.22),
    0 2px 10px rgba(26,20,16,0.10),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
.art-frame:hover::after { opacity: 1; }

.art-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1px;
  transition: filter 0.58s ease, transform 0.58s ease;
}
.art-frame:hover img {
  filter: brightness(1.06) contrast(1.04) saturate(1.09);
  transform: scale(1.012);
}

/* ── ART CENTER STRIP ── */
.art-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  pointer-events: none;
  user-select: none;
}
.art-center-line {
  width: 1px;
  height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(26,20,16,0.18), transparent);
}
.art-center-label {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: rgba(26,20,16,0.30);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  padding: 22px 0;
}

/* art lightbox */
#modal-overlay.art-mode #modal-card {
  padding: 10px;
  width: auto;
  max-width: 90vw;
  background: rgba(8, 6, 4, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#modal-overlay.art-mode #modal-card::before { display: none; }
#modal-overlay.art-mode #modal-close { color: rgba(249,247,242,0.25); }
#modal-overlay.art-mode #modal-close:hover { color: rgba(249,247,242,0.85); }
#modal-overlay.art-mode #modal-inner img { border-radius: 2px; }

/* ── INDIVIDUAL CLICKABLE EXPERIENCE CARDS ── */
.cp-item {
  position: relative;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 4px;
  box-shadow:
    0 2px 12px rgba(26,20,16,0.06),
    0 8px 32px -8px rgba(26,20,16,0.10),
    inset 0 1px 0 rgba(255,255,255,0.8);
  padding: 18px 20px 18px 20px;
  cursor: pointer;
  transition:
    background 0.45s ease,
    box-shadow 0.45s ease,
    transform 0.45s cubic-bezier(0.23,1,0.32,1);
  pointer-events: auto;
  width: 288px;
  min-width: 288px;
  max-width: 288px;
  overflow: hidden;
}

/* left accent bar */
.cp-item:not(.cp-project)::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(to bottom, transparent, rgba(139,0,0,0.30), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cp-item:hover {
  background: rgba(255,255,255,0.68);
  box-shadow:
    0 4px 20px rgba(26,20,16,0.09),
    0 16px 48px -12px rgba(26,20,16,0.16),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transform: translateY(-2px);
}
.cp-item:hover::before { opacity: 1; }

.cp-item .cp-role {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1410;
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin-bottom: 5px;
}

/* date line on experience cards */
.cp-exp-date {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(26,20,16,0.42);
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* tech pills row on experience cards */
.cp-item:not(.cp-project) .cp-place {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0;
}
.cp-item .cp-detail { display: none; }

/* ── PROJECT CARDS ── */
.cp-project {
  padding: 0;
  width: 292px;
  min-width: 292px;
  max-width: 292px;
  height: auto;
  overflow: hidden;
  background: rgba(255,255,255,0.42) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255,255,255,0.52) !important;
  border-radius: 4px !important;
  box-shadow:
    0 2px 12px rgba(26,20,16,0.06),
    0 8px 32px -8px rgba(26,20,16,0.10),
    inset 0 1px 0 rgba(255,255,255,0.8) !important;
  transition: box-shadow 0.45s ease, background 0.45s ease !important;
}
.cp-project:hover {
  background: rgba(255,255,255,0.68) !important;
  box-shadow:
    0 4px 20px rgba(26,20,16,0.09),
    0 16px 48px -12px rgba(26,20,16,0.16),
    inset 0 1px 0 rgba(255,255,255,0.9) !important;
}
.cp-project .cp-role {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1a1410;
  line-height: 1.3;
}
.cp-project-img {
  width: 100%;
  height: 168px;
  background: rgba(26,20,16,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.28);
  overflow: hidden;
  flex-shrink: 0;
}
.cp-project-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.55s cubic-bezier(0.23,1,0.32,1), filter 0.55s ease;
}
.cp-project:hover .cp-project-img img {
  transform: scale(1.045);
  filter: brightness(1.04) contrast(1.02);
}
.cp-project-body {
  padding: 10px 14px 12px 16px;
}
.cp-project .cp-place {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.cp-lang-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(26,20,16,0.78);
  background: rgba(139,0,0,0.07);
  border: 1px solid rgba(139,0,0,0.18);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  line-height: 1.4;
}
.cp-desc {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 12px;
  color: rgba(26,20,16,0.62);
  line-height: 1.6;
  margin-top: 7px;
  font-style: normal;
}
.cp-modal-img {
  width: 100%;
  height: 220px;
  background: rgba(26,20,16,0.05);
  border: 1px solid rgba(26,20,16,0.1);
  margin-bottom: 22px;
  overflow: hidden;
}
.cp-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── MODAL OVERLAY ── */
#modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,14,8,0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#modal-overlay.open { opacity: 1; pointer-events: auto; }
#modal-card {
  background: rgba(249,247,242,0.97);
  border: 1px solid rgba(26,20,16,0.18);
  box-shadow: 0 32px 80px -20px rgba(26,20,16,0.55);
  padding: 44px 52px;
  max-width: 580px;
  width: 88vw;
  max-height: 78vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(18px) scale(0.96);
  transition: transform 0.38s cubic-bezier(0.22,1,0.36,1);
  font-family: "Georgia", serif;
  color: #1a1410;
}
#modal-overlay.open #modal-card { transform: translateY(0) scale(1); }
#modal-card::before {
  content: "";
  position: absolute;
  left: 0; top: 44px; bottom: 44px;
  width: 2px;
  background: #8B0000;
  opacity: 0.65;
}
#modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none; border: none;
  font-size: 26px;
  color: rgba(26,20,16,0.4);
  cursor: pointer;
  line-height: 1;
  font-family: "Georgia", serif;
  transition: color 0.2s, transform 0.2s;
  padding: 4px 8px;
}
#modal-close:hover { color: #8B0000; transform: scale(1.1); }
#modal-inner h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #1a1410;
  line-height: 1.2;
}
.modal-place {
  font-size: 13px;
  color: rgba(26,20,16,0.58);
  font-style: italic;
  margin-bottom: 22px;
  line-height: 1.55;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(26,20,16,0.1);
}
#modal-inner ul { list-style: none; padding: 0; margin: 0; }
#modal-inner li {
  font-size: 15px;
  line-height: 1.65;
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
  color: #1a1410;
  font-weight: 500;
}
#modal-inner li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 10px; height: 1px;
  background: #8B0000; opacity: 0.65;
}
#modal-inner li.cp-link-li { padding-left: 0; margin-top: 16px; }
#modal-inner li.cp-link-li::before { display: none; }
#modal-inner li.cp-link-li a {
  color: #8B0000;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(139,0,0,0.35);
  padding-bottom: 1px;
  transition: border-bottom-color 0.2s;
}
#modal-inner li.cp-link-li a:hover { border-bottom-color: #8B0000; }
#modal-inner p {
  font-size: 15px;
  line-height: 1.65;
  margin: 8px 0;
  font-weight: 500;
}
#modal-inner .cp-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
#modal-inner .cp-links a {
  color: #1a1410;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid rgba(139,0,0,0.4);
  padding-bottom: 1px;
  transition: color 0.2s, border-bottom-color 0.2s;
}
#modal-inner .cp-links a:hover { color: #8B0000; border-bottom-color: #8B0000; }
#modal-inner .cp-sep { opacity: 0.4; margin: 0 6px; }
.cp-tag {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 9px;
  color: rgba(139,0,0,0.75);
  margin-right: 6px;
}

/* ── PROJECT MODAL ── */
#modal-overlay.project-mode #modal-card {
  max-width: 720px;
  width: 90vw;
  padding: 0;
  overflow-y: auto;
  border-radius: 12px;
}
#modal-overlay.project-mode #modal-card::before { display: none; }
.pm-img {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  background: #1a1a1a;
}
.pm-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.4s ease;
}
.pm-body {
  padding: 32px 36px 36px;
}
#modal-inner .pm-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #1a1209;
  margin: 0 0 14px;
  line-height: 1.15;
}
.pm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.pm-tag {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(139,0,0,0.8);
  background: rgba(139,0,0,0.06);
  border: 1px solid rgba(139,0,0,0.18);
  border-radius: 100px;
  padding: 3px 10px;
}
#modal-inner .pm-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: rgba(26,18,9,0.65);
  margin: 0 0 20px;
  line-height: 1.65;
}
.pm-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#modal-inner .pm-bullets li {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(26,18,9,0.72);
  padding-left: 18px;
  margin: 0;
}
#modal-inner .pm-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(139,0,0,0.45);
  font-size: 11px;
  top: 2px;
  width: auto;
  height: auto;
  background: none;
}
.pm-links {
  display: flex;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(26,18,9,0.1);
}
.pm-link {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8B0000;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.pm-link:hover { border-bottom-color: #8B0000; opacity: 0.75; }

/* ── SCROLL HINT ── */
@keyframes scroll-hint-fade-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes scroll-hint-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

#scroll-hint {
  position: fixed;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  animation: scroll-hint-fade-in 1s cubic-bezier(0.23,1,0.32,1) 1s both;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#scroll-hint.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.97);
}

.scroll-hint-text {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(26,20,16,0.82);
}

.scroll-hint-arrow {
  width: 60px;
  height: 60px;
  color: rgba(26,20,16,0.70);
  animation: scroll-hint-bob 1.8s ease-in-out infinite;
}

/* ── PROGRESS BAR ── */
#progress-bar {
  position: fixed; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  width: 55vw; height: 1px;
  background: rgba(26,20,16,0.18); z-index: 20;
}
#progress-fill {
  position: absolute; left: 0; top: 0;
  height: 100%; width: 0%;
  background: #8B0000;
  opacity: 0.85;
}
.cp-marker {
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(26,20,16,0.30);
  border: 1px solid rgba(249,247,242,0.6);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  pointer-events: auto;
}
.cp-marker:hover, .cp-marker.active {
  background: #8B0000;
  transform: translate(-50%, -50%) scale(1.4);
}
.cp-label {
  position: absolute; left: 50%; bottom: calc(100% + 12px);
  transform: translateX(-50%);
  font-family: 'Inter', 'Helvetica Neue', sans-serif; font-size: 10px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(26,20,16,0.55); white-space: nowrap;
  transition: color 0.3s, opacity 0.3s;
}
.cp-marker.active .cp-label { color: #1a1410; font-weight: 600; }

/* ── MUTE BUTTON ── */

/* ── CONNECT SECTION ── */
#cp-connect-left {
  left: 5%;
  max-width: 300px;
}

#cp-connect {
  left: auto;
  right: 5%;
  width: 400px;
  max-width: 460px;
}

.connect-hero {
  display: flex;
  flex-direction: column;
}

.connect-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(139,0,0,0.65);
  margin-bottom: 16px;
}

.connect-hero-title {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: rgba(26,20,16,0.90);
}

.connect-hero-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(139,0,0,0.75);
}

.connect-hero .connect-links {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.connect-card {
  width: 100%;
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 4px;
  box-shadow:
    0 2px 12px rgba(26,20,16,0.06),
    0 8px 32px -8px rgba(26,20,16,0.10),
    inset 0 1px 0 rgba(255,255,255,0.8);
  padding: 28px 28px 24px;
}

.connect-header { margin-bottom: 22px; }

.connect-title {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(26,20,16,0.90);
  line-height: 1.1;
  margin-bottom: 14px;
}

.connect-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(26,20,16,0.18), rgba(26,20,16,0.04), transparent);
}

/* form fields */
.connect-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.connect-field label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(26,20,16,0.42);
}

.connect-field input,
.connect-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26,20,16,0.18);
  border-radius: 0;
  outline: none;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(26,20,16,0.88);
  padding: 6px 0;
  width: 100%;
  resize: none;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.connect-field input:focus,
.connect-field textarea:focus {
  border-bottom-color: rgba(139,0,0,0.55);
}

.connect-field textarea { line-height: 1.65; }

.connect-field input.invalid,
.connect-field textarea.invalid {
  border-bottom-color: rgba(139,0,0,0.70);
}

.connect-error {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(139,0,0,0.80);
  margin-top: 4px;
}

/* submit button */
.connect-submit {
  position: relative;
  margin-top: 22px;
  width: 100%;
  padding: 11px 24px;
  background: rgba(26,20,16,0.88);
  color: rgba(249,247,242,0.92);
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.25s cubic-bezier(0.23,1,0.32,1);
}

.connect-submit:hover {
  background: rgba(139,0,0,0.88);
  box-shadow: 0 6px 24px -6px rgba(139,0,0,0.38);
  transform: translateY(-1px);
}

.connect-submit-label,
.connect-submit-sending,
.connect-submit-ok {
  display: block;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), opacity 0.4s ease;
}

.connect-submit-sending,
.connect-submit-ok {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(120%);
  opacity: 0;
}

.connect-submit.loading .connect-submit-label {
  transform: translateY(-120%);
  opacity: 0;
}

.connect-submit.loading .connect-submit-sending {
  transform: translateY(0);
  opacity: 1;
}

.connect-submit.sent .connect-submit-label,
.connect-submit.sent .connect-submit-sending {
  transform: translateY(-120%);
  opacity: 0;
}

.connect-submit.sent .connect-submit-ok {
  transform: translateY(0);
  opacity: 1;
}

/* link row */
.connect-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(26,20,16,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.connect-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(26,20,16,0.60);
  text-decoration: none;
  transition: color 0.22s ease;
}

.connect-link:hover { color: rgba(139,0,0,0.85); }

.connect-link-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.65;
}

/* email row with copy button */
.connect-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.connect-copy {
  position: relative;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(26,20,16,0.40);
  transition: color 0.22s ease;
  display: flex;
  align-items: center;
}

.connect-copy:hover { color: rgba(139,0,0,0.75); }

.copy-icon {
  width: 12px;
  height: 12px;
  display: block;
}

.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(26,20,16,0.88);
  color: rgba(249,247,242,0.92);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.connect-copy.copied .copy-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── TWEAKS PANEL ── */
#tweaks-panel {
  position: fixed; top: 24px; right: 24px; z-index: 100;
  width: 280px;
  background: rgba(249,247,242,0.96);
  border: 1px solid rgba(26,20,16,0.18);
  box-shadow: 0 12px 32px -10px rgba(26,20,16,0.35);
  padding: 14px 16px 16px;
  font-family: "Georgia", serif;
  color: #1a1410;
  display: none;
  max-height: 80vh; overflow-y: auto;
  pointer-events: auto;
}
#tweaks-panel.open { display: block; }
#tweaks-panel h3 {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  margin: 0 0 12px; font-weight: normal;
  display: flex; justify-content: space-between; align-items: center;
}
#tweaks-panel h3 button {
  background: none; border: none; font: inherit; color: inherit;
  cursor: pointer; opacity: 0.5; font-size: 16px; line-height: 1;
}
#tweaks-panel h3 button:hover { opacity: 1; }
#tweaks-panel .tw-group {
  border-top: 1px solid rgba(26,20,16,0.12);
  padding: 10px 0 4px;
}
#tweaks-panel .tw-group h4 {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  margin: 0 0 8px; font-weight: 600; color: #8B0000;
}
#tweaks-panel .tw-row {
  display: grid; grid-template-columns: 14px 1fr 36px;
  gap: 8px; align-items: center;
  font-size: 11px; margin-bottom: 6px;
}
#tweaks-panel .tw-row label { opacity: 0.65; }
#tweaks-panel .tw-row input[type="range"] {
  width: 100%; accent-color: #8B0000;
}
#tweaks-panel .tw-row .tw-val {
  font-family: ui-monospace, monospace; font-size: 10px;
  text-align: right; opacity: 0.75;
}
