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

img,
video {
  max-width: 100%;
}

:root {
  --space: clamp(0.75rem, 1.2vw, 1.25rem);
  --circle-size: var(--color-circle-size);
  --color-circle-size: 34px;
  --theme-circle-size: 36px;
  --color-circle-right: calc(var(--space) * 0.5);
  --close-circle-size: var(--color-circle-size);
  --resize-circle-size: calc(var(--color-circle-size) + 4px);
  --resize-control-width: 110px;
  --resize-control-height: 34px;
  --top-button-width: 158px;
  --nav-button-width: 126px;
  --thumb-circle-size: min(19dvh, 160px);
  --thumb-gap: 0.45rem;
  --left-width: 66%;
  --right-width: calc(100% - var(--left-width));
  --about-height: 0dvh;
  --swiper-height: 100dvh;
  --top-height: 80%;
  --bottom-height: 20%;
  --divider-y: 80dvh;
  --page-background: #fff;
  --button-background: #fff;
  --button-text: #000;
  --touch-text-color: #000;
  --project-text-left: clamp(var(--space), calc(var(--left-width) - 0.8rem), calc(100vw - 24rem));
  --project-text-right: var(--space);
  --project-text-max: min(32rem, calc(100vw - var(--project-text-left) - var(--project-text-right)));
  --project-text-bottom: calc(var(--space) - 1rem);
  --project-heading-x: 0rem;
  --project-heading-y: 1rem;
  --project-description-x: 0rem;
  --project-description-y: 0.5rem;
  --project-description-size: 1.05rem;
  --about-reveal-width: 37rem;
  --about-reveal-size: 1rem;
  --about-reveal-style: normal;
  --volunteer-reveal-width: 46rem;
  --volunteer-reveal-max: max(12rem, calc(50vw - 8rem));
  --volunteer-reveal-x: 0px;
  --volunteer-reveal-style: normal;
  --drag-text-weight: 400;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: var(--page-background);
  font-family: Helvetica, Arial, sans-serif;
  color: #000;
}

body.white-background .touched-by-title {
  background-image: linear-gradient(
    90deg,
    #b0008c,
    #005edb,
    #9b7600,
    #007a2f
  ) !important;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

body.white-background .site-title.touched-by-title {
  background-color: #fff;
}

.work-swiper-stage {
  position: fixed;
  top: var(--about-height);
  right: 0;
  bottom: auto;
  left: 0;
  width: 100vw;
  height: var(--swiper-height);
  overflow: hidden;
  z-index: 0;
  background: transparent;
  touch-action: pan-y;
  user-select: none;
}

.work-swiper-stage::after {
  content: "";
  position: absolute;
  top: var(--top-height);
  left: 0;
  width: 100%;
  height: 1px;
  background: #000;
  z-index: 2;
  pointer-events: none;
}

.main-swiper,
.thumb-swiper {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.main-swiper.dragging,
.thumb-swiper.dragging {
  cursor: grabbing;
}

.main-swiper {
  top: 0.75rem;
  height: calc(var(--top-height) - 0.75rem);
}

.artwork-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page-background);
  cursor: zoom-out;
}

.artwork-overlay img,
.artwork-overlay video {
  width: 100vw;
  height: 100dvh;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.artwork-overlay-close {
  top: 0.125rem;
  right: calc(var(--color-circle-right) + var(--color-circle-size) + 2.5rem);
  z-index: 1;
  cursor: grab;
  pointer-events: auto;
}

.main-track,
.thumb-track {
  height: 100%;
  display: flex;
  will-change: transform;
}

.main-track {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-slide {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-slide img,
.main-slide video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

.thumb-swiper {
  top: var(--top-height);
  bottom: 0;
  height: var(--bottom-height);
  z-index: 1;
}

.thumb-track {
  align-items: center;
  gap: var(--thumb-gap);
  padding: 0 50vw;
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.thumb-slide {
  flex: 0 0 auto;
  width: var(--thumb-circle-size);
  height: var(--thumb-circle-size);
  opacity: 0.55;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid transparent;
  transform: scale(1);
  transition: opacity 0.2s ease, border-color 0.2s ease, border-radius 0.24s ease;
  animation: thumb-float var(--thumb-float-duration, 6s) ease-in-out var(--thumb-float-delay, 0s) infinite;
}

.thumb-slide:hover {
  border-radius: 1.35rem;
}

.thumb-slide.active {
  opacity: 1;
  border-color: #000;
  animation-play-state: paused;
  transform: translateY(0);
}

@keyframes thumb-float {
  0%,
  100% {
    transform: translateY(calc(var(--thumb-float-y, 6px) * -1));
  }
  50% {
    transform: translateY(var(--thumb-float-y, 6px));
  }
}

.thumb-slide.video-thumb {
  aspect-ratio: 1;
}

.thumb-slide img,
.thumb-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.thumb-slide.video-thumb video {
  width: 100%;
}

.vertical-layout {
  display: flex;
  flex-direction: column;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  z-index: 5;
  pointer-events: none;
}

/* ================= TOP ================= */
.top-section {
  position: relative;
  height: var(--about-height);
  overflow: hidden;
  background: transparent;
  transition: background 0.3s ease;
}

.top-content {
  padding: 0;
  pointer-events: none;
}

.top-content p {
  padding-top: var(--space);
  width: min(60rem, calc(100vw - (var(--space) * 2)));
  max-width: 100%;
  line-height: 1.3;
  font-size: inherit;
}

.work-header {
  position: fixed;
  top: 0.75rem;
  left: calc(var(--space) * 0.5 + 0.75rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  column-gap: 0.75rem;
  row-gap: 0.75rem;
  z-index: 1000;
  pointer-events: none;
}

.site-title {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  position: relative;
  color: #000;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  cursor: grab;
  pointer-events: auto;

  width: 44px;
  min-width: var(--top-button-width);
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 var(--space);

  border-radius: 999px;
  border: 1px solid #000;

  background: var(--button-background);
  color: var(--button-text);
  transition: transform 0.18s ease;
}

/* ================= ABOUT BUTTON (FIXED STRETCH) ================= */
#about-btn {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  position: relative;
  z-index: 1000;
  
  overflow: hidden;

  white-space: nowrap;
  text-align: center;

  width: var(--nav-button-width);
  min-width: var(--nav-button-width);
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 var(--space);

  border-radius: 999px;
  border: 1px solid #000;

  background: var(--button-background);
  color: var(--button-text);
  cursor: grab;
  pointer-events: auto;

  transition: width 0.15s ease, transform 0.18s ease, margin-left 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* VOLUNTEER BUTTON */
#volunteer-btn {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  position: relative;
  z-index: 1000;

  background: var(--button-background);
  color: var(--button-text);
  border: 1px solid #000;
  width: var(--nav-button-width);
  min-width: var(--nav-button-width);
  height: 34px;
  padding: 0 var(--space);
  border-radius: 999px;
  cursor: grab;
  pointer-events: auto;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: width 0.15s ease, transform 0.18s ease, margin-left 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}

#about-btn:active,
#volunteer-btn:active,
#cv-btn:active,
.site-title:active {
  cursor: grabbing;
}

.close-btn::after,
.color-circle::after,
.resize-square::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  pointer-events: none;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M3 12h18'/%3E%3Cpath d='M12 3l-3 3M12 3l3 3M12 21l-3-3M12 21l3-3M3 12l3-3M3 12l3 3M21 12l-3-3M21 12l-3 3'/%3E%3C/g%3E%3C/svg%3E");
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#about-btn::after,
#volunteer-btn::after,
.site-title::after {
  content: "";
  position: static;
  flex: 0 0 auto;
  width: 0;
  height: 1.1rem;
  margin-left: 0;
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  background: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: opacity 0.15s ease, transform 0.15s ease, width 0.15s ease, margin-left 0.15s ease;
  z-index: 2;
}

#about-btn:hover::after,
#volunteer-btn:hover::after,
.site-title:hover::after {
  width: 1.1rem;
  margin-left: 0.28rem;
  opacity: 1;
  transform: scale(1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2'%3E%3Cpath d='M16 6v10M11 11l5 5 5-5' stroke='%2300a846'/%3E%3C/g%3E%3C/svg%3E");
}

#about-btn.ready-drag-right:hover::after,
#volunteer-btn.ready-drag-right:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2'%3E%3Cpath d='M16 6v10M11 11l5 5 5-5' stroke='%23888888'/%3E%3Cpath d='M16 6h10M21 1l5 5-5 5' stroke='%2300a846'/%3E%3C/g%3E%3C/svg%3E");
}


.close-btn.visible:hover::after,
.color-circle:hover::after,
.resize-square:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


@media (hover: none), (pointer: coarse) {
}




#about-btn.ready-drag-right::after,
#volunteer-btn.ready-drag-right::after,
#about-btn.ready-drag-right:hover::after,
#volunteer-btn.ready-drag-right:hover::after,
#about-btn.ready-drag-right.dragging-reveal::after,
#volunteer-btn.ready-drag-right.dragging-reveal::after {
  opacity: 1;
  width: 1.1rem;
  margin-left: 0.28rem;
  transform: scale(1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2'%3E%3Cpath d='M16 6v10M11 11l5 5 5-5' stroke='%23888888'/%3E%3Cpath d='M16 6h10M21 1l5 5-5 5' stroke='%2300a846'/%3E%3C/g%3E%3C/svg%3E");
}

#about-btn.ready-drag-right:not(.ready-drag-left):not(.ready-drag-up):not(.dragging-reveal)::after,
#volunteer-btn.ready-drag-right:not(.ready-drag-left):not(.ready-drag-up):not(.dragging-reveal)::after {
  animation: drag-right-icon-hint 1.2s ease-in-out infinite;
}

@keyframes drag-right-icon-hint {
  0%, 100% {
    transform: translateX(0) scale(1);
  }
  50% {
    transform: translateX(0.35rem) scale(1);
  }
}




#about-btn.ready-drag-right:not(.ready-drag-left):not(.ready-drag-up):not(.dragging-reveal),
#volunteer-btn.ready-drag-right:not(.ready-drag-left):not(.ready-drag-up):not(.dragging-reveal) {
  overflow: visible;
  animation: none;
}

@keyframes stretch-button-right-hint {
  0%, 18%, 70%, 100% {
    width: var(--nav-button-width);
    min-width: var(--nav-button-width);
    margin-right: 0;
  }
  42% {
    width: calc(var(--nav-button-width) + 18px);
    min-width: calc(var(--nav-button-width) + 18px);
    margin-right: -18px;
  }
}

#about-btn.push-volunteer-hint.ready-drag-right:not(.ready-drag-left):not(.ready-drag-up):not(.dragging-reveal) {
  animation-name: none;
}

@keyframes stretch-button-right-hint-push {
  0%, 18%, 70%, 100% {
    width: var(--nav-button-width);
    min-width: var(--nav-button-width);
    margin-right: 0;
  }
  42% {
    width: calc(var(--nav-button-width) + 18px);
    min-width: calc(var(--nav-button-width) + 18px);
    margin-right: -10px;
  }
}


/* ACTIVE STATE */
.top-nav button.active-negative {
  background: #000;
  color: #fff;
}


/* ================= BOTTOM ================= */
.bottom-section {
  position: relative;
  height: var(--swiper-height);
  transition: background 0.3s ease;
  background: transparent;
}

.work-layout {
  display: grid;
  grid-template-columns: var(--left-width) var(--right-width);
  height: 100%;
}

/* LEFT */
.projects-column {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.single-project-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* RIGHT */
.project-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease;
  pointer-events: none;
}

/* PROJECT INFO */
.project-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--top-height);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.project-info.active {
  opacity: 1;
}

/* CLOSE BUTTON */
.close-btn {
  touch-action: none;
  position: fixed;
  top: 0.125rem;
  right: calc(var(--color-circle-right) + var(--color-circle-size) + 2.5rem);

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;

  opacity: 0;
  width: var(--close-circle-size);
  min-width: var(--close-circle-size);
  height: var(--close-circle-size);
  min-height: var(--close-circle-size);

  border-radius: 999px;
  border: 1.25px solid #111;
  background: white;

  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  color: #000;

  cursor: grab;
  pointer-events: none;
  overflow: hidden;
  z-index: 1002;
  transition: opacity 0.2s ease, height 0.15s ease, transform 0.15s ease;
}

.close-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.close-btn:active {
  cursor: grabbing;
}

.close-btn.visible:hover {
  transform: translateY(2px);
}

.close-btn svg {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
}

.close-btn line {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.9px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.close-btn::after {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 0.65rem;
  height: 0.65rem;
  transform: translate(-50%, -50%) scale(0.85);
}

.close-btn.visible:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* COLOR CIRCLE */
#portfolio-btn {
  touch-action: none;
  position: fixed;
  top: calc(0.125rem + 8px);
  right: calc(var(--color-circle-right) + var(--color-circle-size) + 5rem + var(--nav-button-width));
  width: var(--nav-button-width);
  height: 34px;
  padding: 0 var(--space);
  border: 1.25px solid #000;
  border-radius: 999px;
  background: var(--button-background);
  color: var(--button-text);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: auto;
  transition: translate 0.18s ease;
}

#portfolio-btn:hover,
#cv-btn:hover {
  translate: 0 10px;
}

#portfolio-btn:active,
#cv-btn:active {
  translate: 0;
}

#cv-btn {
  touch-action: none;
  position: fixed;
  top: calc(0.125rem + 8px);
  right: calc(var(--color-circle-right) + var(--color-circle-size) + 4.25rem);
  width: var(--nav-button-width);
  height: 34px;
  padding: 0 var(--space);
  border-radius: 999px;
  border: 1.25px solid #000;
  background: var(--button-background);
  color: var(--button-text);
  cursor: grab;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: auto;
  transition: translate 0.18s ease;
}

#cv-btn .cv-label {
  display: inline-block;
  transform: none;
}

#cv-download-message {
  position: fixed;
  top: calc(0.125rem + 116px);
  right: calc(var(--color-circle-right) + var(--color-circle-size) + 0.5rem);
  width: min(34rem, calc(100vw - (var(--space) * 2)));
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #000;
  white-space: nowrap;
  text-align: right;
  opacity: 0;
  transform: translateY(-0.35rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  z-index: 9998;
}

#cv-download-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.color-circle {
  touch-action: none;
  padding: 0;
  border-radius: 999px;
  border: 1.25px solid #111;
  position: fixed;
  height: var(--color-circle-size);
  width: var(--color-circle-size);
  top: calc(0.125rem + 8px);
  right: calc(var(--color-circle-right) + 0.5rem);
  cursor: grab;
  z-index: 9999;
  pointer-events: auto;

  background: conic-gradient(
    from 0deg,
    #00e5ff,
    #ff3df2,
    #ffe600,
    #d9d9d9,
    #00e5ff
  );
}

/* THEME TOGGLE (white / gray / black) */
.theme-toggle {
  position: fixed;
  top: calc(0.125rem + 8px);
  right: calc(var(--color-circle-right) + var(--color-circle-size) + 1.1rem);
  width: var(--theme-circle-size);
  height: var(--theme-circle-size);
  border-radius: 999px;
  border: 1.25px solid #111;
  padding: 4px;
  background: linear-gradient(to bottom, #fff, #000);
  z-index: 9999;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  cursor: grab;
  overflow: hidden;
  transform-origin: top center;
}

.theme-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.theme-knob {
  width: 0;
  height: 0;
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
  touch-action: none;
  transform: none;
  transition: transform 0.12s cubic-bezier(.2,.9,.2,1), background 0.12s ease;
  pointer-events: none;
}

/* Body theme classes */
body.white-theme {
  background: #fff;
  color: #000;
  --button-background: #fff;
  --button-text: #000;
}

body.gray-theme {
  background: #bfbfbf;
  color: #000;
  --button-background: #fff;
  --button-text: #000;
}

body.black-theme {
  background: #000;
  color: #fff;
  --button-background: #000;
  --button-text: #fff;
}

body.black-theme .site-title,
body.black-theme #about-btn,
body.black-theme #volunteer-btn,
body.black-theme #portfolio-btn,
body.black-theme #cv-btn,
body.black-theme #cv-download-message,
body.black-theme #project-title,
body.black-theme #project-date,
body.black-theme #project-description,
body.black-theme #about-reveal,
body.black-theme #volunteer-reveal {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.black-theme .site-title,
body.black-theme #about-btn,
body.black-theme #volunteer-btn,
body.black-theme #portfolio-btn,
body.black-theme #cv-btn,
body.black-theme .theme-toggle,
body.black-theme .color-circle,
body.black-theme .resize-square,
body.black-theme .arrow {
  border-color: #fff;
}

body.black-theme .work-swiper-stage::after {
  background: #fff;
}

/* ARROWS */
.arrow {
  position: fixed;
  bottom: var(--space);
  width: var(--circle-size);
  height: var(--circle-size);
  border: 1.25px solid #000;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  z-index: 30;
  pointer-events: auto;
  color: #000;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.arrow:hover {
  transform: scale(1.12);
}

.arrow svg {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  overflow: visible;
}

.arrow polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow.left {
  left: var(--space);
}

.arrow.right {
  right: var(--space);
}

/* RESIZE SQUARE */
.resize-square {
  --resize-arrow-rotation: 0deg;
  touch-action: none;
  width: var(--resize-control-width);
  height: var(--resize-control-height);
  border-radius: 999px;
  border: 1.25px solid #000;
  background: #fff;
  position: fixed;
  top: calc(var(--divider-y) - (var(--resize-control-height) / 2));
  left: calc(100vw - var(--space) - (var(--resize-control-width) / 2));
  cursor: grab;
  z-index: 1000;
  pointer-events: auto;
  transform: translateX(-50%);
}

.resize-square::after {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 1.1rem;
  height: 1.1rem;
  opacity: 1;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M3 12h18'/%3E%3Cpath d='M12 3l-3 3M12 3l3 3M12 21l-3-3M12 21l3-3M3 12l3-3M3 12l3 3M21 12l-3-3M21 12l-3 3'/%3E%3C/g%3E%3C/svg%3E");
  transform: translate(-50%, -50%) scale(0.9);
}

.resize-square:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.resize-square:active {
  cursor: grabbing;
}

/* PROJECT TEXT */
.project-text {
  position: absolute;
  left: var(--project-text-left);
  right: var(--project-text-right);
  bottom: var(--project-text-bottom);
  width: var(--project-text-max);
  max-width: var(--project-text-max);
  transform: translateY(6px);
}

.project-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space);
  padding-top: 0.75rem;
  margin-bottom: var(--space);
  transform: translate(var(--project-heading-x), var(--project-heading-y));
}

#project-title,
#project-date,
#project-description {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #000;
  margin: 0;
  text-align: left;
  font-weight: var(--drag-text-weight);
}

#project-title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0;
}

#project-date {
  display: none;
  flex: 0 0 auto;
  font-size: 1.05rem;
  font-style: italic;
  white-space: nowrap;
  margin-right: var(--space);
}

#project-description {
  font-size: var(--project-description-size);
  font-weight: 400;
  transform: translate(var(--project-description-x), var(--project-description-y));
}

/* CONTACT */
.contact-section {
  margin-top: var(--space);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #111;
  max-width: 600px;
}

.contact-section p {
  margin: 0;
  font-size: 1.2rem;
}

.contact-section h2 {
  font-size: 20rem;
  font-weight: normal;
  margin-top: var(--space);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* NAME ANIMATION */
.name-animate span {
  display: inline-block;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* ABOUT PANEL (optional future use) */
.about-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 0%;
  overflow: hidden;
  background: white;
  transition: width 0.4s ease;
  z-index: 1000;
}

.about-content {
  padding: 0;
  position: static;
  max-width: 800px;
}

#about-text {
  padding-bottom: var(--space);
  position: absolute;
  top: 0.09rem;
  font-size: 1.3rem;
}

.reveal-columns {
  position: fixed;
  top: calc(var(--space) + 34px);
  left: var(--space);
  right: var(--space);

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: var(--space);

  width: calc(100vw - (var(--space) * 2));
  max-width: none;
  z-index: 999;

  pointer-events: none;
  max-height: max(0px, calc(var(--about-height) - (var(--space) + 34px)));
  overflow: hidden;
}

/* IMPORTANT: reset reveal text */
#about-reveal,
#volunteer-reveal {
  position: relative;   /* NOT fixed */
  top: auto;
  left: auto;
  right: auto;

  width: min(42rem, 100%);
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  line-height: 1.25;
  font-size: 1.05rem;
  font-weight: var(--drag-text-weight);
}

#about-reveal {
  justify-self: start;
  width: min(var(--about-reveal-width), calc(100vw - (var(--space) * 2)));
  font-size: var(--about-reveal-size);
  font-style: var(--about-reveal-style);
}

#volunteer-reveal {
  justify-self: start;
  width: min(var(--volunteer-reveal-width), var(--volunteer-reveal-max));
  padding-left: 0;
  box-sizing: border-box;
  transform: translateX(var(--volunteer-reveal-x));
  transition: transform 0.25s ease;
  font-style: var(--volunteer-reveal-style);
  overflow-wrap: break-word;
}

.touched-by-title {
  background-image: none !important;
  color: var(--touch-text-color) !important;
  -webkit-text-fill-color: var(--touch-text-color) !important;
}

body.black-theme #project-title.touched-by-title,
body.black-theme #project-date.touched-by-title,
body.black-theme #project-description.touched-by-title,
body.black-theme #about-reveal.touched-by-title,
body.black-theme #volunteer-reveal.touched-by-title {
  background-image: linear-gradient(
    90deg,
    #ff5edb,
    #62b6ff,
    #ffe45c,
    #55e88b
  ) !important;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.volunteer-section p {
  margin: 0 0 var(--space) 0;
  line-height: 1.5;
}

.volunteer-section strong {
  display: block;
  margin-bottom: var(--space);
}

@media (min-width: 1500px) {
  :root {
    --left-width: 68%;
  }
}

@media (max-width: 1100px) {
  :root {
    --left-width: 62%;
    --project-text-left: clamp(var(--space), calc(var(--left-width) - 0.4rem), calc(100vw - 22rem));
    --project-text-max: min(30rem, calc(100vw - var(--project-text-left) - var(--project-text-right)));
  }

  .reveal-columns {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.8fr);
  }
}

@media (max-width: 900px) {
  :root {
    --left-width: 58%;
    --project-text-left: clamp(var(--space), 54vw, calc(100vw - 20rem));
    --project-text-max: min(26rem, calc(100vw - var(--project-text-left) - var(--project-text-right)));
  }
}

@media (max-width: 760px) {
  :root {
    --top-button-width: 140px;
    --nav-button-width: 110px;
    --left-width: 100%;
    --right-width: 0%;
    --project-text-left: var(--space);
    --project-text-right: var(--space);
    --project-text-max: calc(100vw - (var(--space) * 2));
  }

  .work-header {
    top: 0.125rem;
    left: calc(var(--space) * 0.5 + 0.75rem);
    right: calc(var(--color-circle-right) + var(--color-circle-size) + 3.25rem);
    gap: 0.75rem;
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    flex-wrap: wrap;
  }

  .main-swiper {
    top: 0.125rem;
    height: calc(var(--top-height) - 0.125rem);
  }

  .site-title,
  #about-btn,
  #volunteer-btn {
    touch-action: none;
    height: 34px;
    min-width: 0;
    padding: 0 var(--space);
    font-size: 0.85rem;
  }

  .site-title {
    touch-action: none;
    width: 42px;
  }

  #about-btn,
  #volunteer-btn {
    touch-action: none;
    width: var(--nav-button-width);
  }

  .color-circle {
    touch-action: none;
    top: calc(0.125rem + 8px);
    right: calc(var(--space) + 0.5rem);
    width: var(--color-circle-size);
    height: var(--color-circle-size);
    padding: 0;
  }

  #cv-btn {
    top: calc(0.75rem + 8px);
    right: calc(var(--color-circle-right) + var(--color-circle-size) + 4.25rem);
    width: var(--nav-button-width);
    height: 34px;
    padding: 0 var(--space);
    font-size: 0.85rem;
  }

  #portfolio-btn {
    top: calc(0.75rem + 8px);
    right: calc(var(--color-circle-right) + var(--color-circle-size) + 5rem + var(--nav-button-width));
    width: var(--nav-button-width);
    font-size: 0.85rem;
  }

  #cv-download-message {
    top: calc(0.125rem + 116px);
    right: calc(var(--color-circle-right) + var(--color-circle-size) + 0.5rem);
    font-size: 0.85rem;
  }

  .reveal-columns {
    top: calc(var(--space) + 64px);
    left: var(--space);
    right: var(--space);
    width: calc(100vw - (var(--space) * 2));
    max-height: max(0px, calc(var(--about-height) - (var(--space) + 64px)));
    grid-template-columns: 1fr;
    gap: var(--space);
  }

  .work-layout {
    grid-template-columns: 1fr;
  }

  .project-text {
    left: var(--space);
    right: var(--space);
    max-width: none;
  }

  .resize-square {
    left: calc(100vw - var(--space) - (var(--resize-control-width) / 2));
  }

  #about-reveal,
  #volunteer-reveal {
    width: 100%;
    font-size: 0.9rem;
    line-height: 1.3;
  }

  #volunteer-reveal {
    justify-self: stretch;
    padding-left: 0;
    transform: none;
  }

  #project-title {
    right: var(--space);
    bottom: var(--space);
    width: 100%;
    font-size: 0.85rem;
  }

  #project-description {
    right: var(--space);
    bottom: var(--space);
    width: 100%;
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .arrow {
    width: var(--circle-size);
    height: var(--circle-size);
  }

  .arrow svg {
    height: 1.45rem;
  }
}
