/* ===== HOMEPAGE V5 STYLES ===== */

/* Hero Intro Section */
.hero-intro {
  display: block;
  padding: 14px 20px 16px;
  border-bottom: 0.5px solid #b5b5b5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr 3fr;
  gap: 0;
  align-items: start;
}

.hero-col {
  min-width: 0;
  padding: 0 9px;
}

/* Status Bar */
.status-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.availability-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dot-grid animation — 4×4 grid, wave pulse then forms icon */
.dot-grid {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 3px);
  gap: 2.5px;
  width: fit-content;
}

.dot-grid .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: #22c55e;
  opacity: 0.15;
  animation: dot-bg 4s ease-in-out infinite;
}

/* Checkmark icon dots: 8, 9, 11, 14
   Grid layout:
   .  .  .  .
   .  .  .  ●
   ●  .  ●  .
   .  ●  .  .
*/
.dot-grid .dot:nth-child(8),
.dot-grid .dot:nth-child(9),
.dot-grid .dot:nth-child(11),
.dot-grid .dot:nth-child(14) {
  animation-name: dot-icon;
}

/* Stagger the icon dots for a drawing effect */
.dot-grid .dot:nth-child(14)  { animation-delay: 0s; }
.dot-grid .dot:nth-child(9)   { animation-delay: 0.06s; }
.dot-grid .dot:nth-child(11)  { animation-delay: 0.12s; }
.dot-grid .dot:nth-child(8)   { animation-delay: 0.18s; }

/* Background dot wave delays */
.dot-grid .dot:nth-child(6),
.dot-grid .dot:nth-child(7),
.dot-grid .dot:nth-child(10)  { animation-delay: 0s; }

.dot-grid .dot:nth-child(2),
.dot-grid .dot:nth-child(3),
.dot-grid .dot:nth-child(5),
.dot-grid .dot:nth-child(12),
.dot-grid .dot:nth-child(15)  { animation-delay: 0.1s; }

.dot-grid .dot:nth-child(1),
.dot-grid .dot:nth-child(4),
.dot-grid .dot:nth-child(13),
.dot-grid .dot:nth-child(16)  { animation-delay: 0.2s; }

/* Not available — red + X icon
   X dots: 1, 4, 6, 7, 10, 11, 13, 16
   ●  .  .  ●
   .  ●  ●  .
   .  ●  ●  .
   ●  .  .  ●
*/
.availability-indicator.not-available .dot-grid .dot {
  background-color: #ef4444;
  animation-name: dot-bg;
}

.availability-indicator.not-available .dot-grid .dot:nth-child(1),
.availability-indicator.not-available .dot-grid .dot:nth-child(4),
.availability-indicator.not-available .dot-grid .dot:nth-child(6),
.availability-indicator.not-available .dot-grid .dot:nth-child(7),
.availability-indicator.not-available .dot-grid .dot:nth-child(10),
.availability-indicator.not-available .dot-grid .dot:nth-child(11),
.availability-indicator.not-available .dot-grid .dot:nth-child(13),
.availability-indicator.not-available .dot-grid .dot:nth-child(16) {
  animation-name: dot-icon;
}

/* Background dots: pulse gently, dim during icon phase */
@keyframes dot-bg {
  0%, 40% {
    opacity: 0.15;
    transform: scale(0.85);
  }
  20% {
    opacity: 0.6;
    transform: scale(1);
  }
  /* Dim during icon reveal */
  55%, 75% {
    opacity: 0.08;
    transform: scale(0.7);
  }
  90%, 100% {
    opacity: 0.15;
    transform: scale(0.85);
  }
}

/* Icon dots: pulse then brighten to form the shape */
@keyframes dot-icon {
  0%, 40% {
    opacity: 0.15;
    transform: scale(0.85);
  }
  20% {
    opacity: 0.6;
    transform: scale(1);
  }
  /* Icon reveal */
  55% {
    opacity: 1;
    transform: scale(1.3);
  }
  65%, 75% {
    opacity: 1;
    transform: scale(1.1);
  }
  90%, 100% {
    opacity: 0.15;
    transform: scale(0.85);
  }
}

.availability-text,
.timestamp,
.hero-contact-label {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #000;
  margin: 0;
}

/* Timestamp digit animation */
.timestamp {
  display: inline-flex;
  overflow: hidden;
}

.time-char {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
              opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.time-char-out {
  transform: translateY(-100%);
  opacity: 0;
}

.time-char-in {
  animation: char-slide-in 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes char-slide-in {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-contact-label {
  margin-bottom: 7px;
}

/* Connect Links */
.connect-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.connect-links a {
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #2b2b2b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  opacity: 0.92;
  transition:
    opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.connect-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Bio Text */
.hero-bio-text p {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 16px;
  max-width: 500px;
  line-height: 1.18;
  margin: 0;
}

.bio-primary {
  color: #000;
}

.bio-secondary {
  color: #736b66;
}

/* Hero Divider */
.hero-divider {
  width: 100%;
  height: 0.5px;
  background-color: #b5b5b5;
  margin: 0;
}

/* ===== WORK SECTION — 3-COLUMN GRID ===== */
.work-section {
  display: grid;
  grid-template-columns: 3fr 2fr 3fr;
  gap: 30px 0;
  padding: 14px 20px;
  align-items: start;
}

.work-overview .work-links {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.work-link,
.work-link:hover,
.work-link:active,
.work-link:focus {
  text-decoration: none;
}

.work-link {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #09090b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 0.5px solid #e5e5e5;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease,
              border-color 0.15s ease,
              box-shadow 0.15s ease,
              transform 0.1s ease;
}

.work-link:hover {
  background-color: #f5f5f5;
  border-color: #d4d4d4;
}

.work-link:active {
  transform: scale(0.97);
  background-color: #efefef;
}

.work-link:focus-visible {
  outline: 2px solid #2b2b2b;
  outline-offset: 2px;
}

.work-link .link-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.work-link:hover .link-arrow {
  transform: translateX(2px);
}
/* Work Directory (Column 1, sticky) */
.work-directory {
  grid-column: 1;
  grid-row: 1 / 3;
  position: sticky;
  top: 14px;
  align-self: start;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: fit-content;
  max-width: 200px;
}

.directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 0.5px solid #767676;
  cursor: default;
}

.directory-header span,
.directory-heading {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #2b2b2b;
  line-height: normal;
  margin: 0;
}

.directory-toggle-icon {
  display: none;
  width: 12px;
  height: 14px;
  color: #2b2b2b;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.directory-toggle-icon .icon-line {
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.25s ease;
}

/* Work List — always visible on desktop */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
}

/* Expanded state - rotate to X */
.work-directory.expanded .directory-toggle-icon {
  transform: rotate(45deg);
}

/* Optional: Scale effect on hover for better feedback */
.directory-header:hover .directory-toggle-icon {
  transform: scale(1.1);
}

.work-directory.expanded .directory-header:hover .directory-toggle-icon {
  transform: rotate(45deg) scale(1.1);
}

/* ===== TABLET BREAKPOINT (960px) ===== */
@media (max-width: 960px) {
  .content-area {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    position: relative;
    align-items: stretch !important;
  }

  /* Work Directory - Positioned above work display */
  .work-directory {
    position: relative !important;
    width: 100% !important;
    z-index: 10;
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
    display: block !important;
    top: auto !important;
    flex-shrink: 0 !important;
  }

  /* Directory header - shadcn trigger style */
  .directory-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer;
    width: fit-content;
    padding: 6px 0;
    border: none;
    border-bottom: 0.5px solid #767676;
    border-radius: 0;
    background-color: transparent;
    transition: opacity 0.15s ease;
  }

  .directory-header:hover {
    opacity: 0.7 !important;
  }

  .directory-header span,
  .directory-heading {
    display: inline !important;
    font-size: 14px;
    font-weight: 500;
    color: #09090b;
  }

  /* Work List - shadcn popover style */
  .work-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    transform-origin: top left;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: opacity 0.15s ease, transform 0.15s ease, max-height 0.2s ease;
    padding: 0;
    z-index: 100;
  }

  .work-directory.expanded .work-list {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    max-height: 400px;
    padding: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.25s ease;
  }

  /* Individual work titles - shadcn command item style */
  .work-title {
    padding: 8px 12px;
    border-radius: 6px;
    opacity: 1;
    transform: none;
    transition: background-color 0.1s ease;
  }

  .work-title:hover {
    background-color: #f5f5f5;
  }

  .work-title .active-indicator {
    display: none;
  }

  .work-title.active {
    background-color: #f5f5f5;
  }

  .work-title .title-text {
    font-size: 14px;
    font-weight: 400;
    color: #71717a;
    transition: color 0.1s ease;
  }

  .work-title.active .title-text {
    color: #09090b;
    font-weight: 500;
  }

  .work-title:hover .title-text {
    color: #09090b;
  }

  /* Work Display Container - Tablet */
  .work-display-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .connect-links {
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
  }

  .connect-links-text { 
    font-size: 14px;
  }
  .hero-bio-text p {
    font-size: 16px;
  }
  .hero-curation {
    font-size: 16px;
  }
}

/* ===== MOBILE BREAKPOINT (768px) ===== */
@media (max-width: 768px) {
  .hero-intro {
    padding-top: 20px;
    padding-bottom: 15px;
    max-width: 100%;
    margin: 0;
    gap: 5px;
  }

  .hero-bio-text p,
  .hero-curation {
    font-size: 14px;
  }

  .status-bar {
    gap: 12px;
  }

  .timestamp {
    font-size: 11px;
  }

  .availability-text {
    font-size: 13px;
  }

  .availability-icon {
    width: 12px;
    height: 12px;
  }

  .availability-icon svg {
    width: 12px;
    height: 12px;
  }

  .hero-divider {
    margin-bottom: 20px;
  }

  /* Work Display Container - Mobile */
  .work-display-container {
    max-width: 100%;
    margin: 0;
  }

  .work-image {
    aspect-ratio: 291 / 197;
  }

  /* Work Info Panel - Mobile */
  .work-info-panel {
    max-width: 100%;
  }

  .work-title-row h2 {
    font-size: 18px;
    line-height: 1.4;
  }

  .work-crumbs-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .crumbs-left {
    flex-wrap: wrap;
  }

  .crumb,
  .work-info-panel .work-date {
    font-size: 12px;
    padding: 2px 0;
  }

  .work-description {
    padding: 5px 0;
  }

  .work-description p {
    font-size: 13px;
    line-height: 1.4;
  }

  .work-links-row {
    padding: 5px 0;
  }

  .work-links-row a {
    font-size: 13px;
    padding: 0 5px 0 0;
  }

  .connect-links {
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
  }

  .connect-links-text {
    font-size: 13px;
  }

  .connect-links a {
    font-size: 13px;
  }

  .connect-links-separator {
    font-size: 13px;
  }
}

/* ===== SMALL MOBILE BREAKPOINT (480px) ===== */
@media (max-width: 480px) {
  .hero-intro {
    max-width: 100%;
    gap: 5px;
  }

  .hero-bio-text p,
  .hero-curation {
    font-size: 13px;
  }

  .work-display-container {
    max-width: 100%;
    margin: 0;
  }

  .work-title .title-text {
    font-size: 12px;
  }

  .connect-links {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
  }

  .connect-links-text,
  .connect-links a,
  .connect-links-separator {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .index-link,
  .index-link::after,
  .work-links-row a,
  .work-links-row a::after,
  .connect-links a,
  .connect-links a::after {
    transition: none !important;
  }
}

/* ===== FIGMA HOMEPAGE V2 OVERRIDES ===== */
/* Same width + padding so hero and work section grids align column-for-column */
.hero-intro,
.work-section {
  --col3-padding: 9px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.hero-intro {
  display: block;
  padding: 14px 20px 16px;
  border-bottom: 0.5px solid #b5b5b5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr 3fr;
  gap: 30px 0;
  align-items: start;
}

.hero-col {
  min-width: 0;
}

/* Symmetrical left edge: bio and work overview use same inner padding */
.hero-intro .hero-col.hero-col-bio,
.work-section .work-entry > .work-overview {
  padding-left: var(--col3-padding);
  padding-right: var(--col3-padding);
}

.status-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.work-title {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color 0.1s ease;
}

.work-title:hover {
  background-color: #f5f5f5;
}

.work-title.active {
  background-color: #f5f5f5;
}

.work-title .active-indicator {
  display: none;
}

.work-title .title-text {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #71717a;
  line-height: 1.3;
  transition: color 0.1s ease;
}

.work-title.active .title-text {
  color: #09090b;
  font-weight: 500;
}

.work-title:hover .title-text {
  color: #09090b;
}

/* Button reset for work-title */
button.work-title {
  background: none;
  border: none;
  font: inherit;
  text-align: left;
  width: 100%;
}

/* Focus-visible styles for all interactive elements */
.connect-links a:focus-visible,
.work-title:focus-visible,
.directory-header:focus-visible,
.work-visual-main a:focus-visible {
  outline: 2px solid #2b2b2b;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Lightbox close button focus */
.lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Work Entry — display:contents lets children join parent grid */
.work-entry {
  display: none;
}

.work-entry.active,
.work-entry.fading-out {
  display: contents;
}

/* Work entry children — crossfade with pure opacity */
.work-entry > .work-meta,
.work-entry > .work-overview,
.work-entry > .work-visuals {
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.work-entry.active > .work-meta,
.work-entry.active > .work-overview,
.work-entry.active > .work-visuals {
  opacity: 1;
}

/* Stagger the fade-in for a fluid feel */
.work-entry.active > .work-meta {
  transition-delay: 0.03s;
}

.work-entry.active > .work-overview {
  transition-delay: 0.06s;
}

.work-entry.active > .work-visuals {
  transition-delay: 0.1s;
}

/* Fading out — no delay, slightly faster */
.work-entry.fading-out > .work-meta,
.work-entry.fading-out > .work-overview,
.work-entry.fading-out > .work-visuals {
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  transition-delay: 0s;
}

/* Work Meta (Column 2, Row 1) */
.work-entry > .work-meta {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 var(--col3-padding, 9px);
}

.meta-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meta-label {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #6b6b6b;
  line-height: normal;
}

.meta-value {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #2b2b2b;
  line-height: normal;
}

/* Work Overview (Column 3, Row 1) — same padding as .hero-col-bio for alignment */
.work-entry > .work-overview {
  grid-column: 3;
  grid-row: 1;
  padding-left: var(--col3-padding, 15px);
  padding-right: var(--col3-padding, 15px);
}

.work-overview p {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 16px;
  max-width: 470px;
  color: #2b2b2b;
  line-height: normal;
  margin: 0;
}

/* Work Visuals (Full width, Row 2) */
.work-entry > .work-visuals {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 40px;
}

.work-visual-main {
  flex: 0 0 65%;
  overflow: hidden;
  background-color: #f5f5f5;
}

.work-visual-main img,
.work-visual-main video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.work-visual-main.bg-light {
  background-color: #ffffff;
}

.work-visual-main.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.work-visual-main.centered .logo-image {
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* .work-visual-side — sizing from Figma node 1688-316 (Size Filter Feature) */
.work-visual-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.visual-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

/* Image block: compact height, full width, object-cover */
.visual-item img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.visual-item img:hover {
  opacity: 0.85;
}

/* ===== IMAGE LIGHTBOX OVERLAY ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: opacity 0.2s ease;
}

.lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-close:hover::before,
.lightbox-close:hover::after {
  opacity: 0.6;
}

/* Show full image without cropping (e.g. Campaigns & IG Posts) */
.visual-item--contain img {
  object-fit: contain;
  background-color: #ffffff;
}

.visual-item figcaption {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: 12px;
  color: #887f7a;
  line-height: normal;
}

/* When no side visuals, main takes full width */
.work-visuals:not(:has(.work-visual-side)) .work-visual-main,
.work-visual-main:only-child {
  flex: 1;
}

/* ===== RESPONSIVE — TABLET (1120px) ===== */
@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .hero-col-bio {
    grid-column: 1 / -1;
  }

  .work-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 14px 20px;
  }

  .work-directory {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }

  .directory-header {
    cursor: pointer;
    width: fit-content;
    padding: 5px 10px 5px 0;
    transition: opacity 0.2s ease;
  }

  .directory-header:hover {
    opacity: 0.7;
  }

  .directory-toggle-icon {
    display: block;
  }

  .work-directory.expanded .directory-toggle-icon {
    transform: rotate(45deg);
  }

  .directory-header:hover .directory-toggle-icon {
    transform: scale(1.1);
  }

  .work-directory.expanded .directory-header:hover .directory-toggle-icon {
    transform: rotate(45deg) scale(1.1);
  }

  .work-list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.28s cubic-bezier(0.25, 0.1, 0.25, 1),
                opacity 0.22s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 0.5px solid rgba(43, 43, 43, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
  }

  .work-directory.expanded .work-list {
    max-height: 350px;
    opacity: 1;
    pointer-events: auto;
    padding: 12px 10px 10px 10px;
  }

  .work-title {
    padding: 8px 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .work-directory.expanded .work-title:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.02s; }
  .work-directory.expanded .work-title:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.04s; }
  .work-directory.expanded .work-title:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.06s; }
  .work-directory.expanded .work-title:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 0.08s; }
  .work-directory.expanded .work-title:nth-child(5) { opacity: 1; transform: translateX(0); transition-delay: 0.10s; }
  .work-directory.expanded .work-title:nth-child(6) { opacity: 1; transform: translateX(0); transition-delay: 0.12s; }

  /* Work entry children stack vertically on tablet */
  .work-entry.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .work-entry > .work-meta {
    padding: 0;
  }

  .work-entry > .work-overview {
    padding: 0;
  }

  .work-entry > .work-visuals {
    margin-top: 0;
  }

  .work-visuals {
    flex-direction: column;
  }

  .work-visual-main {
    flex: none;
    width: 100%;
  }

  .work-visual-side {
    flex-direction: row;
    gap: 10px;
  }

  .visual-item {
    flex: 1;
    min-width: 0;
  }

  .visual-item img {
    height: 160px;
  }
}

/* ===== RESPONSIVE — MOBILE (768px) ===== */
@media (max-width: 768px) {
  /* Slight horizontal padding on mobile (10–15px) */
  main.new-homepage {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-intro {
    padding: 10px 0 14px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-col,
  .hero-intro .hero-col.hero-col-bio,
  .work-section .work-entry > .work-overview {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-col-bio {
    grid-column: auto;
  }

  .availability-text,
  .timestamp,
  .hero-contact-label,
  .hero-bio-text p {
    font-size: 14px;
  }

  .work-section {
    padding: 14px 0;
    gap: 16px;
  }

  .work-entry > .work-meta {
    padding-left: 0;
    padding-right: 0;
  }

  .work-title .title-text {
    font-size: 13px;
  }

  .directory-header span,
  .directory-heading {
    font-size: 15px;
  }

  .meta-label,
  .meta-value {
    font-size: 12px;
    gap: 0px;
  }

  .work-overview p {
    font-size: 14px;
    line-height: 1.4;
  }

  .work-visual-side {
    display: none;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .dot-grid .dot {
    animation: none !important;
    opacity: 0.7 !important;
  }

  .connect-links a,
  .work-title .title-text,
  .directory-toggle-icon,
  .directory-toggle-icon .icon-line {
    transition: none !important;
  }

  .work-entry > .work-meta,
  .work-entry > .work-overview,
  .work-entry > .work-visuals {
    transition-duration: 0.01s !important;
    transition-delay: 0s !important;
  }
}
