:root {
  --bg: #0D0B0A;
  --surface: #151210;
  --surface-2: #1E1A17;
  --ink: #F3ECE2;
  --ink-soft: #C7BEB3;
  --muted: #93897E;
  --rule: rgba(243, 236, 226, 0.14);
  --accent: #E86A24;
  --accent-soft: #F49756;
}

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

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 65% 42% at 12% 0%, rgba(232, 106, 36, 0.09), transparent 62%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
}

/* =========================================================================
   DARKROOM ASSET PRELOADER
   ========================================================================= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #0D0B0A;
  background-image: radial-gradient(ellipse 55% 45% at 50% 45%, rgba(232, 106, 36, 0.12), transparent 65%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.preloader-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 34px;
  color: var(--ink);
  margin: 0 0 18px;
}
.preloader-track {
  width: 168px;
  height: 2px;
  background: rgba(243, 236, 226, 0.14);
  overflow: hidden;
  border-radius: 999px;
}
.preloader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 0.22s ease-out;
}
.preloader-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 10px 0 0;
}

.font-serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.font-script { font-family: 'Caveat', cursive; }

button { font-family: inherit; background: none; border: none; padding: 0; cursor: pointer; color: inherit; }
a { color: inherit; }
.icon-14 { width: 14px; height: 14px; flex-shrink: 0; }
.icon-16 { width: 16px; height: 16px; flex-shrink: 0; }

/* =========================================================================
   HEADER & NAVIGATION
   ========================================================================= */
header#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

header#site-header.is-home {
  background: linear-gradient(180deg, rgba(8, 6, 5, 0.65) 0%, rgba(8, 6, 5, 0) 100%);
  border-bottom: none;
  color: var(--ink);
}

header#site-header.is-subpage {
  background: rgba(13, 11, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 36px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-btn {
  display: inline-block;
  text-decoration: none;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.brand-btn:hover { opacity: 0.75; }
.brand-italic {
  font-style: italic;
  color: rgba(243, 236, 226, 0.68);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 0;
  color: rgba(243, 236, 226, 0.72);
  transition: color 0.18s ease;
}

.nav-item:hover,
.nav-item.active {
  color: #FFFFFF;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent-soft);
}

.work-label-wrap {
  position: relative;
  display: inline-block;
}
.work-strike-svg {
  pointer-events: none;
  position: absolute;
  left: -6%;
  top: 50%;
  width: 112%;
  height: 13px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.work-play-script {
  pointer-events: none;
  position: absolute;
  top: -17px;
  left: -12px;
  transform: rotate(-12deg);
  font-family: 'Caveat', cursive;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--accent-soft);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.work-nav-item:hover .work-strike-svg,
.work-nav-item:hover .work-play-script { opacity: 1; }
.code-vibe-script {
  left: 50%;
  transform: translateX(-50%) rotate(-9deg);
  white-space: nowrap;
  font-size: 16px;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.mobile-toggle[aria-expanded="true"] {
  background: rgba(232, 106, 36, 0.2);
  border-color: var(--accent-soft);
}

#mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 195;
  background: rgba(5, 4, 4, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#mobile-backdrop.open { display: block; }

#mobile-drawer {
  display: none;
  padding: 8px 20px 18px;
  background: rgba(15, 12, 11, 0.98);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
#mobile-drawer.open { display: block; }
.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-links .nav-item {
  width: 100%;
  min-height: 44px;
  padding: 10px 4px;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.16em;
}
.mobile-links .nav-item.active::after {
  display: none;
}
.mobile-links .nav-item.active {
  color: var(--accent-soft);
}

@media (max-width: 820px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: inline-flex; }
  .header-inner { padding: 0 20px; height: 66px; }
  .brand-btn { font-size: 24px; }
}

/* =========================================================================
   HOME: 16:9 FULL-BLEED STUDIO PORTRAIT + DRAGGABLE CUTOUT CLUSTER
   ========================================================================= */
.home-stage {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background-color: #050404;
}

.home-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 24%;
  user-select: none;
  pointer-events: none;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.home-bg-img.is-ready {
  opacity: 1;
}

.home-portrait-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 56% 42%, rgba(232, 106, 36, 0.08) 0%, rgba(5, 4, 4, 0) 58%),
    linear-gradient(180deg, rgba(5, 4, 4, 0.42) 0%, rgba(5, 4, 4, 0) 18%, rgba(5, 4, 4, 0) 80%, rgba(5, 4, 4, 0.72) 100%);
}

@media (max-aspect-ratio: 1 / 1) {
  .home-bg-img {
    top: auto;
    bottom: 0;
    height: 74svh;
    width: 100%;
    transform: none;
    object-fit: cover;
    object-position: 56% 18%;
  }
  .home-portrait-vignette {
    background:
      linear-gradient(180deg, #050404 0%, #050404 24%, rgba(5, 4, 4, 0) 44%, rgba(5, 4, 4, 0) 84%, rgba(5, 4, 4, 0.55) 100%);
  }
}

#collage-canvas {
  position: absolute;
  inset: 0;
  z-index: 10;
  isolation: isolate;
}
.collage-bounds {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}
@media (max-width: 820px) {
  .collage-bounds { top: 66px; }
}

.cutout-item {
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  cursor: grab;
  transform-origin: center center;
  will-change: transform;
}

.cutout-item img.cutout-png {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.62)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.38));
  transition: filter 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.cutout-item:hover:not(.is-dragging) img.cutout-png {
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.72)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
  transform: scale(1.035);
}

.cutout-item.is-dragging {
  cursor: grabbing;
}

.cutout-item.is-dragging img.cutout-png {
  filter: drop-shadow(0 34px 48px rgba(0, 0, 0, 0.82)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  transform: scale(1.05);
}

.cutout-item.is-playing img.cutout-png {
  filter: drop-shadow(0 0 18px rgba(232, 106, 36, 0.85)) drop-shadow(0 16px 26px rgba(0, 0, 0, 0.65));
  animation: tapePulse 0.85s ease-in-out infinite alternate;
}
@keyframes tapePulse {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}

/* Polaroid Object */
.obj-polaroid {
  background: #FCFBF7;
  padding: 7px 7px 24px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55), 0 3px 8px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(28, 25, 23, 0.08);
  transition: transform 0.22s ease;
}
.cutout-item:hover:not(.is-dragging) .obj-polaroid { transform: scale(1.03); }
.cutout-item.is-dragging .obj-polaroid { transform: scale(1.05); }
.obj-polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  pointer-events: none;
}
.obj-polaroid-cap {
  margin-top: 7px;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: #2E2925;
  line-height: 1;
}

/* Harmonized 4-Frame B&W Photo Booth Strip */
.obj-photostrip {
  background: #FAF8F4;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.52), 0 3px 8px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease;
}
.cutout-item:hover:not(.is-dragging) .obj-photostrip { transform: scale(1.03); }
.cutout-item.is-dragging .obj-photostrip { transform: scale(1.05); }
.obj-photostrip img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  pointer-events: none;
}

/* SVG about.txt macOS Document Icon */
.obj-about-txt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}
.cutout-item:hover:not(.is-dragging) .obj-about-txt { transform: scale(1.05); }
.cutout-item.is-dragging .obj-about-txt { transform: scale(1.08); }
.doc-svg {
  width: 68px;
  height: 86px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.5));
  display: block;
}
.doc-pill {
  background: rgba(24, 19, 16, 0.92);
  color: #FBF6E7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

/* Home Bottom Controls */
.home-bottom-left {
  position: absolute;
  left: 36px;
  bottom: 28px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
}

#spread-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: rgba(243, 236, 226, 0.85);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(243, 236, 226, 0.18);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
#spread-btn:hover,
#spread-btn[aria-pressed="true"] {
  color: #FFFFFF;
  background: rgba(232, 106, 36, 0.3);
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}

#reset-btn {
  position: absolute;
  right: 36px;
  bottom: 32px;
  z-index: 30;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 236, 226, 0.84);
  padding: 8px 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}
#reset-btn:hover { color: #FFFFFF; transform: translateY(-1px); }

.home-hint {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 30;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(243, 236, 226, 0.55);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.home-hint.is-hidden {
  opacity: 0;
}

@media (max-width: 640px) {
  .home-bottom-left { left: 20px; bottom: 20px; gap: 10px; }
  #reset-btn { right: 20px; bottom: 22px; }
  .home-hint { bottom: 26px; font-size: 9.5px; }
}

/* =========================================================================
   SUBPAGES: DARKROOM TUNGSTEN EDITORIAL LAYOUT
   ========================================================================= */
.subpage-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px 36px 96px;
}
.subpage-wrap.slim { max-width: 860px; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 10px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(44px, 5.8vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.page-note {
  max-width: 360px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  text-align: right;
}

@media (max-width: 720px) {
  .subpage-wrap { padding: 98px 20px 68px; }
  .page-note { text-align: left; }
}

/* Top-level Section Tabs & Filter Row */
.section-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--rule);
  margin-bottom: 28px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.section-tabs::-webkit-scrollbar { display: none; }
.section-tab-btn {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.section-tab-btn:hover { color: var(--ink); }
.section-tab-btn.active {
  background: rgba(232, 106, 36, 0.22);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(244, 151, 86, 0.45);
}
.tab-label-short { display: none; }
@media (max-width: 640px) {
  .section-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    overflow-x: visible;
    margin-bottom: 20px;
  }
  .section-tab-btn {
    padding: 9px 6px;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-align: center;
    border-radius: 8px;
  }
  .tab-label-full { display: none; }
  .tab-label-short { display: inline; }
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-bottom: 40px;
}

.filter-btn {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--muted);
  padding: 6px 2px;
  transition: color 0.18s ease;
}
.filter-btn:hover {
  color: var(--ink);
}
.filter-btn.active {
  color: var(--accent-soft);
}

@media (max-width: 720px) {
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 22px;
    margin-bottom: 28px;
    padding-bottom: 4px;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}

/* =========================================================================
   WORK: STAGGERED 2-COLUMN EDITORIAL GRID
   ========================================================================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px 48px;
}
@media (min-width: 768px) {
  .work-grid > .work-card:nth-child(even) { transform: translateY(44px); }
  .work-grid { padding-bottom: 52px; }
}
@media (max-width: 767px) {
  .work-grid { grid-template-columns: 1fr; gap: 38px; }
}

.work-card { text-align: left; display: block; width: 100%; }

.work-thumb-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid var(--rule);
}
.work-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}
.work-card:hover .work-thumb-box img {
  transform: scale(1.03);
  filter: brightness(0.84);
}

.work-play-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 11, 10, 0.88);
  border: 1px solid rgba(243, 236, 226, 0.25);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.work-card:hover .work-play-pill { opacity: 1; transform: translateY(0); }
@media (hover: none), (pointer: coarse) {
  .work-play-pill {
    opacity: 0.94;
    transform: translateY(0);
    right: 10px;
    bottom: 10px;
    padding: 6px 11px;
  }
}

.work-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.work-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}
.work-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}
.work-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.work-summary {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.code-card { text-decoration: none; }
.code-card .work-thumb-box { background: #141312; }
.code-card .work-thumb-box img { object-position: top center; }
.code-domain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent-soft);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52%;
  text-align: right;
  transition: opacity 0.2s ease;
}
.code-card:hover .code-domain {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work-main { min-width: 0; }

.credits-section {
  margin-top: 72px;
  padding-top: 44px;
  border-top: 1px solid var(--rule);
}
.credits-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 24px;
}
@media (min-width: 1024px) {
  .work-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
  }
  .work-layout .work-grid {
    gap: 40px 28px;
  }
  .work-layout .credits-section {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 236, 226, 0.2) transparent;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 52px;
    border-top: none;
    border-left: 1px solid var(--rule);
    padding-left: 28px;
  }
  .work-layout .credits-section::-webkit-scrollbar { width: 4px; }
  .work-layout .credits-section::-webkit-scrollbar-thumb {
    background: rgba(243, 236, 226, 0.2);
    border-radius: 999px;
  }
  .work-layout .credits-cols {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 18px;
  }
  .work-layout .credit-row {
    padding: 10px 0;
    font-size: 12.5px;
    gap: 12px;
  }
}
@media (max-width: 767px) { .credits-cols { grid-template-columns: 1fr; gap: 32px; } }

.credit-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}
.credit-name { color: var(--ink); }
.credit-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  text-align: right;
  flex-shrink: 0;
}

/* =========================================================================
   DOKUMENTASI & DESIGN: NATURAL-RATIO BALANCED MASONRY
   ========================================================================= */
.doc-masonry {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.doc-masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.masonry-item {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  text-align: left;
  padding: 0;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface-2);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.masonry-item:hover img { transform: scale(1.03); }

.collage-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 16px 12px;
  background: linear-gradient(180deg, rgba(13, 11, 10, 0) 0%, rgba(13, 11, 10, 0.85) 100%);
  color: #F3ECE2;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.masonry-item:hover .collage-caption { opacity: 1; }
.collage-caption span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .collage-caption { opacity: 1; }
}

/* =========================================================================
   SERTIFIKAT & DESIGN GALLERIES
   ========================================================================= */
.cert-grid,
.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}
.cv-cert-grid {
  gap: 20px;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 24px;
}
@media (max-width: 820px) {
  .cert-grid, .poster-grid, .logo-grid { grid-template-columns: 1fr; }
}

.gallery-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
}

.gallery-frame {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.gallery-frame img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-card:hover .gallery-frame img { transform: scale(1.025); }

.gallery-frame.cert-frame {
  width: 100%;
  aspect-ratio: 509 / 720;
  padding: 10px;
  background: var(--surface-2);
}
.gallery-frame.cert-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-frame.poster-frame {
  aspect-ratio: 2 / 3;
  background: #100E0D;
  padding: 10px;
}
.gallery-frame.poster-frame img { object-fit: contain; }

.gallery-frame.logo-frame {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  padding: 20px;
}
.gallery-frame.logo-frame img { object-fit: contain; }

.gallery-frame.cert-frame-auto {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 12px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-frame.cert-frame-auto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-card-wrap {
  display: flex;
  flex-direction: column;
}
.cert-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.cert-ext-link:hover {
  color: var(--ink);
  border-bottom-color: var(--accent-soft);
}

/* =========================================================================
   PROJECT HUB: MINIMAL NAVIGATION & CONTINUOUS VERTICAL YEAR TIMELINE
   ========================================================================= */
.project-simple-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-bottom: 18px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.project-role-filter-row {
  margin-bottom: 0;
  gap: 10px 24px;
}
.project-role-select-mobile {
  display: none;
  height: 34px;
  padding: 0 26px 0 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}
.project-role-select-mobile:focus {
  border-color: var(--accent-soft);
}
.year-jump-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.year-jump-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.year-jump-btn:hover {
  color: var(--accent-soft);
  background: rgba(232, 106, 36, 0.12);
}

.project-reset-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  padding: 6px 12px;
  border: 1px solid rgba(244, 151, 86, 0.35);
  border-radius: 6px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.project-reset-btn:hover {
  background: rgba(232, 106, 36, 0.2);
  color: var(--ink);
}

.project-year-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.project-year-group {
  position: relative;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 0 36px;
  padding: 0 0 52px;
  align-items: stretch;
  scroll-margin-top: 96px;
}
.project-year-group:last-child {
  padding-bottom: 24px;
}
.project-year-group::before {
  content: "";
  position: absolute;
  left: 126px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(243, 236, 226, 0.18);
  pointer-events: none;
}
.project-year-group:first-child::before {
  top: 22px;
}
.project-year-group:last-child::before {
  background: linear-gradient(
    180deg,
    rgba(243, 236, 226, 0.18) 0%,
    rgba(243, 236, 226, 0.12) 72%,
    rgba(243, 236, 226, 0) 100%
  );
}

.project-year-rail {
  position: relative;
  min-width: 0;
}
.project-year-group:not(:first-child) .project-year-rail {
  padding-top: 34px;
}
.project-year-group:not(:first-child) .project-grid-timeline {
  padding-top: 34px;
  border-top: 1px solid rgba(243, 236, 226, 0.08);
}

.project-year-sticky {
  position: sticky;
  top: 98px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-right: 24px;
  gap: 4px;
}
.project-year-node {
  position: absolute;
  right: -5px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(244, 151, 86, 0.32);
  pointer-events: none;
}
.project-year-node::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 18px;
  height: 1px;
  background: rgba(244, 151, 86, 0.4);
  transform: translateY(-50%);
}
.project-year-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 46px;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.project-year-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 24px;
}
.project-grid-timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 22px;
}
@media (max-width: 1120px) {
  .project-grid-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 22px; }
}
@media (max-width: 820px) {
  .project-simple-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    padding-bottom: 14px;
    margin-bottom: 24px;
  }
  .project-role-filter-row {
    display: none;
  }
  .project-role-select-mobile {
    display: inline-block;
  }
  .year-jump-bar {
    gap: 2px;
    flex-wrap: wrap;
  }
  .year-jump-btn {
    font-size: 10.5px;
    padding: 4px 6px;
  }
  .project-year-group {
    display: block;
    padding: 0 0 40px 26px;
    scroll-margin-top: 82px;
  }
  .project-year-group::before {
    left: 5px;
  }
  .project-year-group:first-child::before {
    top: 18px;
  }
  .project-year-group:not(:first-child) .project-year-rail {
    padding-top: 26px;
    border-top: 1px solid rgba(243, 236, 226, 0.08);
  }
  .project-year-group:not(:first-child) .project-grid-timeline {
    padding-top: 0;
    border-top: none;
  }
  .project-year-sticky {
    position: relative;
    top: auto;
    flex-direction: row;
    align-items: baseline;
    text-align: left;
    padding-right: 0;
    margin-bottom: 18px;
    gap: 10px;
  }
  .project-year-node {
    right: auto;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
  }
  .project-year-node::after {
    width: 12px;
  }
  .project-year-heading { font-size: 36px; }
}
@media (max-width: 639px) {
  .project-grid,
  .project-grid-timeline { grid-template-columns: 1fr; gap: 30px; }
}

.project-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
}
.project-card .work-thumb-box {
  margin-bottom: 12px;
  border-radius: 4px;
}
.project-card:hover .work-thumb-box img {
  transform: scale(1.03);
  filter: brightness(0.94);
}

.project-thumb-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}
.thumb-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(13, 11, 10, 0.82);
  border: 1px solid rgba(243, 236, 226, 0.18);
  color: var(--ink);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.thumb-badge-time {
  color: var(--accent-soft);
  border-color: rgba(244, 151, 86, 0.4);
}

.project-card .work-title {
  font-size: 22px;
}
.project-role-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 4px 0 6px;
}
.project-role-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(232, 106, 36, 0.14);
  border: 1px solid rgba(244, 151, 86, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}
.project-channel {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-empty {
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--rule);
  border-radius: 10px;
  background: var(--surface);
}
.project-empty p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.credits-bottom {
  margin-top: 64px;
  padding-top: 38px;
  border-top: 1px solid var(--rule);
}

.design-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 32px;
}
.design-toolbar-row .filter-row {
  margin-bottom: 0;
}

.modal-source-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 22px;
  background: #191614;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-source-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.modal-source-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--rule);
  color: var(--muted);
  transition: all 0.18s ease;
}
.modal-source-btn:hover { color: var(--ink); }
.modal-source-btn.active {
  background: rgba(232, 106, 36, 0.24);
  border-color: var(--accent-soft);
  color: #FFFFFF;
}

/* =========================================================================
   CV: EDITORIAL ASYMMETRIC LAYOUT
   ========================================================================= */
.cv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
}
@media (max-width: 680px) {
  .cv-header { flex-direction: column; }
}

.cv-sub {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 10px 0 0;
  line-height: 1.6;
}
.cv-sub a { text-decoration: underline; text-underline-offset: 3px; }

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 12px 24px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cv-download-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.cv-section { margin-bottom: 44px; }
.cv-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  margin: 0 0 24px;
}

.cv-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 10px 28px;
  margin-bottom: 28px;
}
@media (max-width: 640px) { .cv-row { grid-template-columns: 1fr; } }

.cv-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  padding-top: 5px;
}
.cv-org {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  margin: 0 0 3px;
  line-height: 1.15;
  color: var(--ink);
}
.cv-role {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 10px;
}
.cv-bullets {
  margin: 0;
  padding-left: 17px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.cv-bullets li { margin-bottom: 5px; }

.cv-skills-table {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px 36px;
}
.cv-skills-col-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}
.cv-skills-tech-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}
@media (max-width: 680px) {
  .cv-skills-table { grid-template-columns: 1fr; gap: 22px; }
  .cv-skills-tech-cols { grid-template-columns: 1fr; }
}

/* =========================================================================
   CONTACT: SERENE CENTERED EDITORIAL LAYOUT (EMAIL + INSTAGRAM ONLY)
   ========================================================================= */
.contact-stage {
  max-width: 680px;
  margin: 0 auto;
  padding: 150px 24px 120px;
  min-height: calc(100svh - 65px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(50px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--ink);
}

.contact-copy {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 460px;
  margin: 0 0 36px;
}

.contact-email-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-email {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px, 4vw, 36px);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: opacity 0.2s ease;
}
.contact-email:hover { opacity: 0.72; }

.copy-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.copy-icon-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--surface-2);
}

.contact-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.contact-ig-link:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}

.strip-modal-stage {
  position: relative;
  width: min(720px, 92vw);
  height: min(640px, 84vh);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.strip-close-btn {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 2;
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(21, 18, 16, 0.85);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.strip-close-btn:hover {
  border-color: var(--accent-soft);
  transform: scale(1.06);
}

.strip-3d-viewport {
  width: 100%;
  height: 100%;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
.strip-3d-viewport:active {
  cursor: grabbing;
}
.strip-3d-viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

/* =========================================================================
   MODALS: APPLE NOTES ABOUT & VIDEO PLAYER
   ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 5, 4, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overscroll-behavior: contain;
  animation: fadeIn 0.18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.notes-window {
  width: 100%;
  max-width: 540px;
  max-height: 86vh;
  background: #1E1D1B;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 76px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
}

.notes-titlebar {
  height: 38px;
  background: #282623;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
}

.mac-dots { display: flex; align-items: center; gap: 7px; }
.mac-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mac-dot.red { background: #FF5F56; cursor: pointer; }
.mac-dot.yellow { background: #FFBD2E; }
.mac-dot.green { background: #27C93F; }

.notes-bar-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(245, 242, 235, 0.58);
  font-weight: 500;
}
.notes-folder-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #F5B82E;
  display: inline-block;
}
.notes-body {
  padding: 24px 28px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.notes-h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #F5F2EB;
}
.notes-p {
  font-size: 14px;
  line-height: 1.68;
  color: rgba(245, 242, 235, 0.8);
  margin: 0 0 12px;
}
.notes-p strong {
  color: #F5F2EB;
  font-weight: 600;
}
.notes-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 16px 0 14px;
}
.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notes-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(245, 242, 235, 0.78);
}
.notes-list li strong {
  color: #F5F2EB;
  font-weight: 500;
}
.notes-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #F5B82E;
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* PhotoSwipe Caption Override */
.pswp {
  z-index: 10000 !important;
}
.pswp__custom-caption {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(640px, calc(100vw - 32px));
  padding: 9px 20px;
  border-radius: 10px;
  background: rgba(13, 11, 10, 0.45);
  border: 1px solid rgba(243, 236, 226, 0.14);
  color: #F3ECE2;
  text-align: center;
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pswp-cap-title {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #F3ECE2;
}
.pswp-cap-meta {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-top: 3px;
}

/* =========================================================================
   FOOTER & TOAST & PRINT
   ========================================================================= */
footer#site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10020;
  background: var(--ink);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 9px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
#toast.show { opacity: 1; }

.print-only { display: none; }

@media print {
  header, footer, .no-print, #modal-root, #toast, #preloader { display: none !important; }
  .print-only { display: block !important; }
  html, body { background: #fff !important; background-image: none !important; color: #111 !important; }
  .page-title, .cv-org, .cv-sub, .cv-bullets, .cv-section-label, .cv-date, .cv-role, .cv-skills-col-title { color: #111 !important; }
  .cv-skills-table { grid-template-columns: 2fr 1fr !important; }
  .cv-skills-tech-cols { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .subpage-wrap { padding: 0 !important; max-width: 100% !important; }
}
