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

html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--color-page);
  color: var(--color-primary-foreground);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* ── Main ── */
.main {
  background: var(--color-page);
  padding: var(--page-padding);
  overflow-x: clip;
  padding-bottom: var(--space-mobile-page-y);
}

.container {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  padding-top: 5vw;
  position: relative;
}

/* Background "megan pan" — sits behind all grid content */
.bg-name-group {
  position: absolute;
  top: -48px;
  left: -14px;
  display: flex;
  font-size: clamp(4.5rem, calc(14.18vw + 7.8px), 13.25rem);
  align-items: center;
  gap: 4px;
  opacity: 0.1;
  filter: grayscale(100%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.bg-name {
  position: absolute;
  top: -48px;
  left: -14px;
  font-size: clamp(4.5rem, calc(14.18vw + 7.8px), 13.25rem);
  letter-spacing: -10px;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  line-height: 1;
  color: var(--color-primary-foreground);
  opacity: 0.1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.bg-name-group .bg-name {
  position: static;
  top: auto;
  left: auto;
  font-size: inherit;
  opacity: 1;
  z-index: auto;
}

.name-sticker {
  width: 12vw;
  height: auto;
  max-width: 180px;
  flex-shrink: 0;
  transform: translateY(0.09em);
}

/* ── Sidebar (sticky left, 2/8 cols) ── */
.sidebar {
  grid-column: span 2;
  position: sticky;
  top: 0;
  align-self: start;
  padding: var(--space-8) 0;
  padding-right: var(--space-4);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* tab-item component */
.tab-item {
  display: flex;
  align-items: center;
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-h2);
  line-height: var(--line-height-h2);
  letter-spacing: var(--letter-spacing-h2);
  color: var(--color-primary-foreground);
  text-decoration: none;
  cursor: pointer;
  transition: gap 200ms ease, color 200ms ease;
}

.tab-item:hover {
  gap: var(--space-xs);
  color: var(--color-secondary-foreground);
}

.tab-item--active {
  gap: var(--space-xs);
  color: var(--color-primary-foreground);
}

.tab-item__arrow {
  color: var(--color-secondary-foreground);
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 200ms ease, opacity 200ms ease;
}

.tab-item:hover .tab-item__arrow,
.tab-item--active .tab-item__arrow {
  max-width: 30px;
  opacity: 1;
}

.tab-item__label { flex: 1 0 0; min-width: 0; }

/* Social icon buttons */
.social-buttons {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-2) 0;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-size);
  height: var(--icon-size);
  color: var(--color-primary-foreground);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  overflow: hidden;
  transition: color 200ms ease;
}

.social-btn:hover {
  color: var(--color-secondary-foreground);
}

.social-btn i {
  font-size: var(--icon-size);
  line-height: 1;
}

/* ── Content (scrollable right, 6/8 cols) ── */
.content {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  position: relative;
  z-index: 1;
}

/* Hero text */
.hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
}

.hero__heading {
  font-family: var(--font-sans);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-h1);
  line-height: var(--line-height-h1);
  letter-spacing: var(--letter-spacing-h1);
  color: var(--color-primary-foreground);
  width: 100%;
}

.hero__footnote {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  color: var(--color-muted-foreground);
}

/* Separator */
.separator {
  width: 100%;
  height: 0;
  background: transparent;
  border: none;
  border-top: 1px dashed var(--color-separator);
  flex-shrink: 0;
}

/* Project list */
.project-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: 100%;
}

/* project-item component */
.project-item__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.project-item {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  width: 100%;
  position: relative;
  min-height: 300px;
}

.project-item__thumbnail {
  width: 50%;
  height: 100%; /* matches text column height */
  aspect-ratio: unset; /* remove locked ratio */
  flex-shrink: 0;
  position: relative;
  display: flex;
  overflow: visible;
}

.project-item__sticker {
  position: absolute;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 250ms ease-out, transform 250ms ease-out;
  pointer-events: none;
  z-index: 2;
  width: 124px;
}

.project-item__sticker:nth-child(2) {
  top: 0px;
  left: -45px;
  transform: rotate(20deg);
}

.project-item__sticker:nth-child(3) {
  bottom: 0px;
  right: -45px;
  transform: rotate(340deg);
}

.project-item:hover .project-item__sticker {
  opacity: 1;
  transform: scale(1);
}

.project-item:hover .project-item__sticker:nth-child(2) {
  transform: rotate(25deg);
}

.project-item:hover .project-item__sticker:nth-child(3) {
  transform: rotate(345deg);
}

.project-item__cover {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.project-item__cover--twitch   { background: linear-gradient(180deg, #9146FF 0%, #6826C9 100%); }
.project-item__cover--vagivital { background: linear-gradient(180deg, #FCF3F4 0%, #F0CCD2 100%); }
.project-item__cover--vaulta   { background: linear-gradient(180deg, #CBFFDA 0%, #7AE298 100%); }

.project-item__logo {
  width: 20%;
  max-width: 90px;
  position: absolute;
  transition: transform 250ms ease-out;
  top: 10px;
  left: -2px;
  z-index: 0;
}

.project-item__mockup {
  width: 90%;
  min-width: 530px; /* won't shrink below this — gets cropped instead */
  flex-shrink: 0; /* prevents it from squishing */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 250ms ease-out;
  margin-top: auto;
  padding-top: 40px;
  position: relative;
  z-index: 1;
}

.project-item__mockup--landscape {
  width: 100%;
  min-width: 0;
  padding-top: 40px;
}

.project-item:hover .project-item__thumbnail .project-item__cover .project-item__mockup {
  transform: scale(1.05);
}

.project-item__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  align-self: stretch;
}

.project-item__year {
  font-family: var(--font-sans);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-caption);
  line-height: var(--line-height-caption);
  letter-spacing: var(--letter-spacing-caption);
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-item__title {
  font-family: var(--font-sans);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-h2);
  line-height: var(--line-height-h2);
  letter-spacing: var(--letter-spacing-h2);
  color: var(--color-primary-foreground);
  flex-shrink: 0;
  transition: color 200ms ease;
}

.project-item:hover .project-item__title {
  color: var(--color-secondary-foreground);
}

.project-item__description {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  color: var(--color-foreground-alt);
  flex: 1 0 0;
}

.project-item__tags {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  flex-shrink: 0;
  white-space: nowrap;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.project-item__tag { color: var(--color-primary-foreground); }
.project-item__tag-sep { color: var(--color-muted-foreground); }

/* ── Footer ── */
.footer {
  background: var(--color-page);
  padding: var(--space-2xl) var(--page-padding);
  overflow: hidden;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gap);
}

.footer-content {
  grid-column: 3 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
}

.footer-nav-link {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  color: var(--color-secondary-foreground);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-nav-link:hover {
  color: var(--color-primary-foreground);
}

.separator--dashed {
  height: 0;
  background: transparent;
  border: 0;
  border-top: 1px dashed var(--color-separator);
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-right: 36px;
}

.footer-cta__heading {
  font-family: var(--font-sans);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-h1);
  line-height: var(--line-height-h1);
  letter-spacing: var(--letter-spacing-h1);
  color: var(--color-primary-foreground);
}

.footer-copyright {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  color: var(--color-muted-foreground);
}

/* Footer decorative sticker photos */
.footer-pens {
  position: absolute;
  left: -230px;
  top: -87px;
  pointer-events: none;
  transform: rotate(6.5deg);
}

.footer-pens img {
  width: 400px;
  display: block;
}

.footer-glasses {
  position: absolute;
  left: -122px;
  top: 43px;
  width: 458px;
  height: 398px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.footer-glasses img {
  width: 425px;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-bracelets {
  position: absolute;
  left: 73px;
  top: 264px;
  width: 241px;
  height: 230px;
  pointer-events: none;
  box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.4), 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.footer-bracelets img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Case study page overrides ── */
.bg-name--cs {
  font-size: var(--font-size-bg-cs);
  letter-spacing: var(--letter-spacing-bg-cs);
  top: -15px;
  width: 90vw;
  text-wrap:initial;
}

.sidebar--cs { top: 0; }

.sidebar--cs .tab-item {
  font-size: var(--font-size-caption);
  line-height: var(--line-height-caption);
  letter-spacing: var(--letter-spacing-caption);
  font-weight: var(--font-size-caption);
  text-transform: uppercase;
  color: var(--color-secondary-foreground);
  padding: 4px 0px;
}

.sidebar--cs .tab-item:hover,
.sidebar--cs .tab-item.tab-item--active {
  gap: 0;
  color: var(--color-primary-foreground);
}

.sidebar__back {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-caption);
  letter-spacing: var(--letter-spacing-caption);
  text-transform: uppercase;
  color: var(--color-secondary-foreground);
  white-space: nowrap;
}

.sidebar__back i {
  font-size: var(--icon-size-sm);
  line-height: 1;
  flex-shrink: 0;
}

.sidebar__back:hover {
  color: var(--color-primary-foreground);
}


/* ── Case study content ── */
.content--cs {
  gap: var(--space-12);
  padding-bottom: var(--space-12);
}

/* Hero/overview header block */
.cs-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: 100%;
}

.cs-title {
  font-family: var(--font-sans);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-h1);
  line-height: var(--line-height-h1);
  letter-spacing: var(--letter-spacing-h1);
  color: var(--color-primary-foreground);
  width: 100%;
}

.cs-thumbnail {
  width: 100%;
  aspect-ratio: 1026 / 395;
  background: var(--color-accent-background);
  overflow: hidden;
  flex-shrink: 0;
}

.cs-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.cs-description {
  font-family: var(--font-sans);
  font-size: var(--font-size-body-large);
  font-weight: var(--font-weight-body-large);
  line-height: var(--line-height-body-large);
  letter-spacing: var(--letter-spacing-body-large);
  color: var(--color-primary-foreground);
  width: 100%;
}

/* Metadata row */
.cs-meta {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  width: 100%;
}

.cs-meta__item {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cs-meta__divider {
  width: 1px;
  background: var(--color-separator);
  align-self: stretch;
  flex-shrink: 0;
}

.cs-meta__label {
  font-family: var(--font-sans);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-caption);
  letter-spacing: var(--letter-spacing-caption);
  text-transform: uppercase;
  color: var(--color-secondary-foreground);
  white-space: nowrap;
}

.cs-meta__value {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  color: var(--color-foreground-alt);
}

/* Section */
.cs-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 100%;
}

.cs-section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cs-label {
  font-family: var(--font-sans);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-caption);
  letter-spacing: var(--letter-spacing-caption);
  text-transform: uppercase;
  color: var(--color-secondary-foreground);
  white-space: nowrap;
}

.cs-heading {
  font-family: var(--font-sans);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-h2);
  line-height: var(--line-height-h2);
  letter-spacing: var(--letter-spacing-h2);
  color: var(--color-primary-foreground);
}

/* Body text block — multiple paragraphs with gap */
.cs-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  color: var(--color-foreground-alt);
  width: 100%;
}

/* Blockquote */
.cs-blockquote {
  border-left: 2px solid var(--color-separator);
  padding: var(--space-1) 0 var(--space-1) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: 100%;
}

.cs-blockquote__quote {
  font-family: var(--font-sans);
  font-size: var(--font-size-body-large);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body-large);
  letter-spacing: var(--letter-spacing-body-large);
  color: var(--color-primary-foreground);
  width: 100%;
}

.cs-blockquote__attr {
  font-family: var(--font-sans);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  width: 100%;
}

/* Card (HMW, insight callout) */
.cs-card {
  background: var(--color-accent-background);
  padding: var(--space-5);
  width: 100%;
}

.cs-card__text {
  font-family: var(--font-sans);
  font-size: var(--font-size-body-large);
  font-weight: var(--font-weight-body-large);
  line-height: var(--line-height-body-large);
  letter-spacing: var(--letter-spacing-body-large);
  color: var(--color-primary-foreground);
  width: 100%;
}

/* Card variants: title + body (insight/design cards) */
.cs-card__title {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: 600;
  line-height: var(--line-height-body);
  color: var(--color-primary-foreground);
  width: 100%;
}

.cs-card__body {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-foreground-alt);
  width: 100%;
}

/* Single intro paragraph (primary foreground, body size) */
.cs-section-intro {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-primary-foreground);
  width: 100%;
}

/* Research image carousel */
.cs-carousel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  width: 100%;
}

.cs-carousel__image {
  position: relative;
  height: 400px;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.cs-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.cs-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cs-carousel__slide--active {
  opacity: 1;
  pointer-events: auto;
}

.cs-carousel__prev,
.cs-carousel__next {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  color: var(--color-primary-foreground);
  opacity: 0;
  transition: opacity 200ms ease;
  padding: 0 var(--space-4);
}

.cs-carousel__prev { left: 0; justify-content: flex-start; }
.cs-carousel__next { right: 0; justify-content: flex-end; }

.cs-carousel__image:hover .cs-carousel__prev,
.cs-carousel__image:hover .cs-carousel__next { opacity: 1; }

.cs-carousel__prev i,
.cs-carousel__next i { font-size: var(--icon-size); line-height: 1; }

.cs-carousel__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-secondary-foreground);
  padding: 2px var(--space-1);
  z-index: 3;
  pointer-events: none;
}

.cs-carousel__counter {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-primary-foreground);
  white-space: nowrap;
}

.cs-carousel__caption {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-muted-foreground);
  width: 100%;
  text-align: center;
}

.cs-carousel__dots {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.cs-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 16px;
  background: var(--color-separator);
  flex-shrink: 0;
}

.cs-carousel__dot--active {
  width: 35px;
  background: var(--color-primary-foreground);
}

/* 2-column insight grid */
.cs-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  width: 100%;
}

/* 3-column insight grid */
.cs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  width: 100%;
}

/* Design section layout */
.cs-design-sections {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cs-design-row {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  width: 100%;
}

.cs-design-text {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 600px;
  justify-content: center;
}

.cs-design-label {
  font-family: var(--font-sans);
  font-size: var(--font-size-body-large);
  line-height: var(--line-height-body-large);
  letter-spacing: var(--letter-spacing-body-large);
  color: var(--color-primary-foreground);
}

.cs-design-problem {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: 600;
  line-height: var(--line-height-body);
  color: var(--color-foreground-alt);
}

.cs-design-body {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-foreground-alt);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cs-design-body ul {
  list-style: disc;
  padding-left: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cs-design-body strong {
  font-weight: 700;
  color: var(--color-foreground-alt);
}

/* Type 1 — image/document carousel in a design section */
.cs-media-carousel {
  flex: 1 0 0;
  min-width: 0;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Type 2 — video block in a design section */
.cs-media-video {
  flex: 1 0 0;
  min-width: 0;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.cs-media-video__tabs {
  display: flex;
  gap: var(--space-5);
  align-items: center;
}

.cs-media-video__tab {
  font-family: var(--font-sans);
  font-size: var(--font-size-body-large);
  line-height: var(--line-height-body-large);
  letter-spacing: var(--letter-spacing-body-large);
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 150ms ease;
}

.cs-media-video__tab--active {
  color: var(--color-primary-foreground);
}

.cs-media-video__player {
  position: relative;
  display: inline-flex;
  max-width: 100%;
}

.cs-media-video__video {
  max-height: 600px;
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity 200ms ease;
}

.cs-media-video__video.is-fading {
  opacity: 0;
}

.cs-media-video__pause-indicator {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  width: 28px;
  height: 28px;
  background: var(--color-muted-foreground);
  border-radius: var(--space-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-foreground);
  opacity: 0;
  transition: opacity 150ms ease;
  pointer-events: none;
}

.cs-media-video__pause-indicator.is-visible { opacity: 1; }

.cs-media-video__pause-indicator i { font-size: 16px; line-height: 1; }

/* Figma prototype embed */
.cs-figma-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--color-separator);
}

.cs-figma-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


/* Explore more section */
.cs-explore {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: 100%;
}

.cs-explore__grid {
  display: flex;
  gap: var(--space-6);
  width: 100%;
}

.cs-explore__item {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
}

.cs-explore__thumbnail {
  aspect-ratio: 501 / 282;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-separator);
}

.cs-explore__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 250ms ease-out;
}

.cs-explore__item:hover .cs-explore__thumbnail img {
  transform: scale(1.04);
}

.cs-explore__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cs-explore__year {
  font-family: var(--font-sans);
  font-size: var(--font-size-caption);
  line-height: var(--line-height-caption);
  letter-spacing: var(--letter-spacing-caption);
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.cs-explore__title {
  font-family: var(--font-sans);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-h2);
  line-height: var(--line-height-h2);
  letter-spacing: var(--letter-spacing-h2);
  color: var(--color-primary-foreground);
  transition: color 200ms ease;
}

.cs-explore__item:hover .cs-explore__title {
  color: var(--color-secondary-foreground);
}

.cs-explore__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

/* ── Mobile-only elements: hidden on desktop ── */
.mobile-header { display: none; }
/* .footer-sep--mobile removed */
.nav-overlay { display: none; }
.project-section-heading { display: none; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .bg-name { display: none; }

  /* Mobile header — Figma node 212-4214: 51px name, -2.55px tracking, 30% opacity */
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    padding-top: var(--space-mobile-page-y);
  }

  .mobile-header__name {
    font-family: var(--font-sans);
    font-size: var(--font-size-mobile-name);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--letter-spacing-mobile-name);
    line-height: 1;
    color: var(--color-primary-foreground);
    opacity: 0.3;
    text-transform: lowercase;
    white-space: nowrap;
    text-decoration: none;
  }

  .mobile-header__name:active {
    color: #000;
    opacity: 1;
  }

  .mobile-header__menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: var(--space-xs);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary-foreground);
    flex-shrink: 0;
  }

  .mobile-header__menu-btn i {
    font-size: var(--font-size-body-large);
    line-height: 1;
  }

  /* Container: single column */
  .container {
    display: flex;
    flex-direction: column;
    padding-top: 0;
  }

  .content { padding: 0; }

  /* Project cards */
  .project-item { flex-direction: column; }

  .project-item__thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .project-item__mockup {
  width: 90%;
  min-width: 320px;
  }

  .project-item__body {
    width: 100%;
    gap: var(--space-2);
    padding: 0;
  }

  .project-item__tags { flex-wrap: wrap; }

  /* Section heading (mobile-only "Work" label) */
  .project-section-heading {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-h1);
    line-height: var(--line-height-h1);
    letter-spacing: var(--letter-spacing-h1);
    color: var(--color-primary-foreground);
  }

  /* Footer: restack as single column */
  .footer { padding: var(--space-mobile-page-y) var(--space-4); }

  .footer-container {
    display: flex;
    flex-direction: column;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
  }

  .footer-nav { gap: var(--space-4); }

  /* Footer decorative images: repositioned to right side on mobile */
  .footer-glasses {
    top: 120px;
    left: calc(100% - 240px);
    width: 366px;
    height: 290px;
  }

  .footer-glasses img {
    width: 304px;
    height: auto;
    transform: rotate(70deg);
    object-fit: contain;
  }

  .footer-bracelets {
    left: 60%;
    bottom: 10px;
    width: 100px;
    overflow: visible;
    box-shadow: none;
  }

  .footer-bracelets img {
    object-fit: cover;
    transform: rotate(-18.95deg);
    box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.4), 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
  }

  .footer-pens {
    left: 83%;
    top: calc(50% - 80px);
    transform: rotate(-9.86deg);
  }

  /* Nav overlay */
  .nav-overlay {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    position: fixed;
    inset: 0;
    background: var(--color-page);
    padding: var(--space-mobile-page-y) var(--space-4) var(--space-6);
    z-index: 100;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-overlay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-shrink: 0;
  }

  .nav-overlay__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: var(--space-xs);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary-foreground);
    flex-shrink: 0;
  }

  .nav-overlay__close i {
    font-size: var(--font-size-body-large);
    line-height: 1;
  }

  .nav-overlay__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }

  .nav-overlay__link {
    font-family: var(--font-sans);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-h2);
    letter-spacing: var(--letter-spacing-h2);
    color: var(--color-primary-foreground);
    text-decoration: none;
  }

  /* ── Case study page: mobile ── */

  /* Reduce content gap from 48px to 32px */
  .content--cs { gap: var(--space-8); }

  /* Back link hidden on mobile — sidebar is hidden */
  .sidebar--cs { display: none; }

  /* Meta: 2-col grid, hide vertical dividers */
  .cs-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }
  .cs-meta__divider { display: none; }

  /* Sections: tighter gap */
  .cs-section { gap: var(--space-4); }

  .cs-design-sections {
    gap: var(--space-5);
  }

  /* Design rows: stack vertically */
  .cs-design-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }
  .cs-design-text {
    flex: 0 0 auto;
    min-height: 0;
    justify-content: flex-start;
    order: 1;
  }

  /* Media components: reset min-height, fill width, normal flow */
  .cs-media-video,
  .cs-media-carousel {
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
    order: 2;
  }
  .cs-media-video__video {
    max-width: 100%;
    max-height: 400px;
  }

  /* Insight / reflection grid: single column */
  .cs-grid-2,
  .cs-grid-3 {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Explore more: single column */
  .cs-explore__grid { flex-direction: column; }

  /* Carousel: keep height, let it be full width */
  .cs-carousel__image { height: 300px; }

  /* About page: mobile */
  .content--about { gap: var(--space-4); }
  .desk-container {
    padding-top: 20px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    width: calc(100vw);
  }

  /* Desk objects: hide tooltip action on mobile, tap shows tooltip */
  .cursor-tooltip__action { display: none; }

  /* Desk modal: mobile */
  .desk-modal__panel {
    overflow: hidden;
    width: calc(100vw - 32px);
    padding: var(--space-5) !important;
  }

  .desk-modal__body {
    gap: var(--space-4) !important;
  }

  .desk-modal__image-wrap {
    height: auto !important;
    width: 100%;
    border-top-left-radius: var(--space-4);
    border-top-right-radius: var(--space-4);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .desk-modal__img {
    height: auto;
  }

}

@media (max-width: 768px) {
  /* Desk: edge-to-edge, min 600px wide, centered+cropped. Fixed object sizes from 425px render. */
  .desk-container{
    padding: var(--space-8) 0 0 0 !important;
  }

  .desk-image-container {
    position: relative;
    width: 100vw;
    min-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    min-height: 600px;
  }

  .desk-image-container::before {
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .desk-drawer {
    width: 100%;
    min-width: 600px;
    transform: translateX(-50%) translateY(80%) !important;
  }


  .desk-object.desk-object--laptop-group {
    left: 50%;
    top: 16%;
    width: 420px;
  }

  .desk-object.desk-object--drink {
    right: -20%;
    top: 44%;
    width: 210px;
  }

  .desk-object.desk-object--food {
    left: 78%;
    top: 82%;
    width: 298px;
  }

  .desk-object.desk-object--photo {
    left: 14%;
    top: 49%;
    width: 255px;
  }

  .desk-object.desk-object--phone {
    left: 23%;
    bottom: 7%;
    width: 200px;
  }

  .desk-object.desk-object--nails {
    left: 48%;
    top: 52%;
    width: 160px;
  }

  .desk-static.desk-static--chopsticks {
    left: 82%;
    top: 65%;
    width: 276px;
  }

  .desk-static.desk-static--nailpolish {
    left: 47%;
    top: 75%;
    width: 128px;
  }
}

/* ── Custom cursor ── */
.has-custom-cursor,
.has-custom-cursor * {
  cursor: none !important;
}

@media (hover: none) {
  #custom-cursor { display: none; }
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: left, top;
  opacity: 0;
}

.cursor-img {
  width: 32px;
  height: auto;
  display: block;
  transform: rotate(-8.22deg);
}

.cursor-tooltip {
  position: absolute;
  left: 35px;
  top: -1px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #5d5d5d;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 17px;
  padding: var(--space-2) 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  max-width: 200px;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.cursor-tooltip.is-visible { opacity: 1; }

.cursor-tooltip--flipped {
  left: auto;
  right: 35px;
}

.cursor-tooltip__text {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  text-transform: lowercase;
}

.cursor-tooltip__action {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  text-decoration: underline;
  text-transform: lowercase;
}

.cursor-tooltip__action:empty { display: none; }

/* ── About page ── */
.content--about {
  gap: var(--space-6);
  padding-bottom: var(--space-8);
}

.about-heading {
  font-family: var(--font-sans);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-h1);
  letter-spacing: var(--letter-spacing-h1);
  color: var(--color-primary-foreground);
}

.desk-container {
  padding: var(--space-6) 0 0 0;
  width: 100%;
}

.desk-image-container {
  position: relative;
  width: 100%;
  /* Maintains proportions (654/1160) as placeholder until desk PNG loads */
  aspect-ratio: 1160 / 600;
}

.desk-image-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid #e2e2e2;
  background: var(--general-accent-background, #F2F2F2);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.25);
  z-index: 2;
  pointer-events: none;
}

.desk-drawer {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 75%; /* 620px / 1160px desk width */
  max-width: 650px;
  transform: translateX(-50%) translateY(45%);
  z-index: 1;
  transition: transform 300ms ease-out;
  display: block;
  text-decoration: none;
}

.desk-drawer img {
  width: 100%;
  height: auto;
  display: block;
}

.desk-drawer:hover {
  transform: translateX(-50%) translateY(60%);
}

.desk-drawer-spacer {
  height: 64px;
  flex-shrink: 0;
  pointer-events: none;
}

.desk-bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* ── Desk objects ── */
.desk-object {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: top 400ms ease-in-out, left 400ms ease-in-out, transform 200ms ease-out;
}

.desk-object img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/*
  All positions are center-based: left/top = center of object as % of container.
  Derived from Figma at reference desk 1160×654px.

  Figma base rotations to apply if exporting PNGs upright (not rotated):
    --drink:  rotate(-17.48deg)
    --food:   rotate(-91.79deg)
    --photo:  rotate(10.97deg)
    --phone:  rotate(-48.66deg)
    --nails:  rotate(-21.79deg)
*/

.desk-object--laptop-group {
  left: 50%;
  top: 22%;
  width: 52%;
  z-index: 3;
}
.desk-object--laptop-group:hover {
  transform: translate(-50%, -50%) scale(1.04) rotate(2deg);
}

/* Stickers: positioned within the group (% of group width/height) */
.desk-object--ny-sticker,
.desk-object--bham-sticker {
  position: absolute;
  transform: translate(-50%, -50%);
}

.desk-object--ny-sticker {
  left: 26.23%;
  bottom: 12.5%;
  width: 16.21%;
  z-index: 3;
}

.desk-object--bham-sticker {
  right: 14.5%;
  bottom: 17%;
  width: 12.25%;
  z-index: 3;
}

.desk-object--drink {
  right: -10%;
  top: 21.41%;
  width: 25%;
  z-index: 3;
}
.desk-object--drink:hover {
  transform: translate(-50%, -50%) scale(1.05) rotate(-2deg);
}

.desk-object--food {
  right: -20%;
  bottom: -40%;
  width: 38%;
  z-index: 3;
}
.desk-object--food:hover {
  transform: translate(-50%, -50%) scale(1.05) rotate(2deg);
}

.desk-object--photo {
  left: 14%;
  top: 27%;
  width: 28%;
  z-index: 3;
}
.desk-object--photo:hover {
  transform: translate(-50%, -50%) scale(1.05) rotate(-2deg);
}

.desk-object--phone {
  left: 17%;
  top: 72%;
  width: 25%;
  z-index: 3;
}
.desk-object--phone:hover {
  transform: translate(-50%, -50%) scale(1.05) rotate(2deg);
}

.desk-object--nails {
  left: 40%;
  top: 73%;
  width: 20%;
  z-index: 3;
}
.desk-object--nails:hover {
  transform: translate(-50%, -50%) scale(1.05) rotate(-2deg);
}

/* ── Static (non-interactive) desk objects ── */
.desk-static {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.desk-static img {
  display: block;
  width: 100%;
  height: auto;
}

/* Chopsticks: Figma center left=84.54%, top=56.03%, width=27.16% */
.desk-static--chopsticks {
  left: 84.54%;
  top: 56.03%;
  width: 36%;
  z-index: 3;
}

/* Nail polish: Figma center left=55.73%, top=83.56%, width=12.81% */
.desk-static--nailpolish {
  left: 57%;
  top: 83%;
  width: 15%;
  z-index: 3;
}


/* ── Desk modal ── */
.desk-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.desk-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.desk-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.desk-modal__panel {
  position: relative;
  background: var(--color-page);
  padding: var(--space-6);
  width: 860px;
  max-width: calc(100vw - var(--space-8));
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  z-index: 1;
}

.desk-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 23px;
  background: var(--color-accent-background);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  z-index: 2;
  flex-shrink: 0;
}

.desk-modal__close i {
  font-size: 32px;
  line-height: 1;
  color: var(--color-primary-foreground);
}

.desk-modal__close:hover {
  background: #f2f2f28b;
}

.desk-modal__body {
  display: none;
  flex-direction: column;
  gap: var(--space-6);
}

.desk-modal__body.is-active {
  display: flex;
}

.desk-modal__image-wrap {
  position: relative;
  height: 510px;
  overflow: hidden;
  border-radius: var(--space-2);
}

.desk-modal__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* ── Past Work page ── */
.pw-project-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: 100%;
}

.pw-project {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
}

.pw-project__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  width: 100%;
}

.pw-project__title {
  font-family: var(--font-sans);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-h2);
  letter-spacing: var(--letter-spacing-h2);
  color: var(--color-primary-foreground);
}

.pw-project__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
}

.pw-project__header .project-item__tags {
  flex: 1 0 0;
  gap: 2px var(--space-3);
}

.cs-carousel__dot {
  cursor: pointer;
  border: none;
  padding: 0;
  transition: width 200ms ease, background-color 200ms ease;
}

/* Past-work horizontal scroll carousel */
.pw-carousel {
  position: relative;
  width: 100%;
}

.pw-carousel__track {
  display: flex;
  flex-direction: row;
  gap: var(--space-4);
  height: 280px;
  overflow-x: auto;
  overflow-y: clip;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.pw-carousel__track::-webkit-scrollbar {
  display: none;
}

.pw-carousel__img {
  width: auto;
  height: 100%;
  flex-shrink: 0;
  border: 1px solid #f1f1f1;
  object-fit: contain;
  scroll-snap-align: start;
}

.pw-carousel__prev,
.pw-carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary-foreground);
  opacity: 0;
  transition: opacity 200ms ease;
  padding: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-carousel__prev { left: var(--space-2); }
.pw-carousel__next { right: var(--space-2); }

.pw-carousel:hover .pw-carousel__prev:not([hidden]),
.pw-carousel:hover .pw-carousel__next:not([hidden]) { opacity: 1; }

.pw-carousel__prev[hidden],
.pw-carousel__next[hidden] { display: none; }

.pw-carousel__prev i,
.pw-carousel__next i { font-size: var(--icon-size); line-height: 1; }

.pw-carousel__img { cursor: zoom-in; }

.pw-carousel__dots {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
  padding-top: var(--space-4);
}

.cs-media-carousel .pw-carousel__img {
  max-height: none;
  cursor: default;
}

.pw-carousel--single .pw-carousel__track {
  height: auto;
  gap: 0;
}

.pw-carousel--single .pw-carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.pw-carousel--single .pw-carousel__img {
  width: 100%;
  height: auto;
  flex: none;
  scroll-snap-align: none;
  max-height: none;
  cursor: default;
}


/* Past-work image lightbox */
.pw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.pw-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pw-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.pw-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: calc(100vw - var(--space-8));
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.pw-lightbox__close {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 44px;
  height: 44px;
  border-radius: 23px;
  background: var(--color-accent-background);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  z-index: 2;
  flex-shrink: 0;
}

.pw-lightbox__close i {
  font-size: 32px;
  line-height: 1;
  color: var(--color-primary-foreground);
}

.pw-lightbox__close:hover { background: #f2f2f28b; }

@media (max-width: 768px) {
  .pw-carousel__track { height: 280px; }
}


.desk-modal__location {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  white-space: nowrap;
}

.desk-modal__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.desk-modal__stars {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.desk-modal__star {
  display: block;
  width: 48px;
  height: 48px;
}

.desk-modal__caption {
  font-family: var(--font-sans);
  font-size: var(--font-size-body-large);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body-large);
  letter-spacing: var(--letter-spacing-body-large);
  color: var(--color-primary-foreground);
  text-align: center;
}

/* ── Resume page ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-separator);
  background-color: var(--color-page);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  color: var(--color-primary-foreground);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}

.btn:hover {
  background-color: var(--color-accent-background);
  border-color: var(--color-primary-foreground);
}

.floating-btn {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 50;
}

.proto-btn {
  flex-shrink: 0;
}

.scroll-top-btn {
  padding: var(--space-2);
  width: 36px;
  height: 36px;
  opacity: 0;
  pointer-events: none;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.resume-bio {
  font-family: var(--font-sans);
  font-size: var(--font-size-body-large);
  font-weight: var(--font-weight-body-large);
  line-height: var(--line-height-body-large);
  letter-spacing: var(--letter-spacing-body-large);
  color: var(--color-primary-foreground);
}

.resume-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 100%;
}

.resume-entry {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.resume-entry__title {
  font-family: var(--font-sans);
  font-size: var(--font-size-body-large);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body-large);
  letter-spacing: var(--letter-spacing-body-large);
  color: var(--color-primary-foreground);
}

.resume-entry__meta {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  color: var(--color-primary-foreground);
}

.resume-entry__duration {
  color: var(--color-secondary-foreground);
}

.resume-entry__bullets {
  list-style: disc;
  padding-left: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.resume-entry__bullets li {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  color: var(--color-foreground-alt);
}

.resume-entry__degree {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  color: var(--color-foreground-alt);
}

.resume-skills-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.resume-skills-row__list {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  color: var(--color-foreground-alt);
}

/* ── First-load name reveal (index.html only) ── */
.first-load-active .container {
  padding-top: 10vw;
}

.first-load-active .bg-name-group {
  position: fixed;
  top: -16px;
  left: calc(var(--page-padding) - 14px);
  opacity: 1;
  filter: grayscale(0%);
  z-index: 0;
}

@media (max-width: 768px) {
  .first-load-active .container { padding-top: 0; }
  .first-load-active .bg-name-group {
    position: absolute;
    top: -48px;
    left: -14px;
    opacity: 0.1;
    filter: grayscale(100%);
  }
}
