.vaporwave-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: auto;
  overflow: hidden;
}

body.loading {
  overflow: hidden;
}

.vaporwave-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.grid-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: gridFadeIn 0.3s ease-out 0.2s forwards,
             gridFadeOut 0.5s ease-in 2.2s forwards;
}

.grid-line-vertical {
  position: absolute;
  top: 0;
  height: 100%;
  width: 1px;
  background: #f5f5f5;
  transform-origin: top;
  transform: scaleY(0);
}

.grid-line-horizontal {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: #f5f5f5;
  transform-origin: left;
  transform: scaleX(0);
}

@keyframes gridFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes gridFadeOut {
  to {
    opacity: 0;
  }
}

@keyframes drawVertical {
  to {
    transform: scaleY(1);
  }
}

@keyframes drawHorizontal {
  to {
    transform: scaleX(1);
  }
}

/* Vertical lines - positioned using data-index */
.grid-line-vertical[data-index="0"] {
  left: 0%;
  animation: drawVertical 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.3s forwards;
}

.grid-line-vertical[data-index="1"] {
  left: 8.333%;
  animation: drawVertical 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.35s forwards;
}

.grid-line-vertical[data-index="2"] {
  left: 16.666%;
  animation: drawVertical 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.4s forwards;
}

.grid-line-vertical[data-index="3"] {
  left: 25%;
  animation: drawVertical 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.45s forwards;
}

.grid-line-vertical[data-index="4"] {
  left: 33.333%;
  animation: drawVertical 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.5s forwards;
}

.grid-line-vertical[data-index="5"] {
  left: 41.666%;
  animation: drawVertical 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.55s forwards;
}

.grid-line-vertical[data-index="6"] {
  left: 50%;
  animation: drawVertical 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.6s forwards;
}

.grid-line-vertical[data-index="7"] {
  left: 58.333%;
  animation: drawVertical 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.65s forwards;
}

.grid-line-vertical[data-index="8"] {
  left: 66.666%;
  animation: drawVertical 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.7s forwards;
}

.grid-line-vertical[data-index="9"] {
  left: 75%;
  animation: drawVertical 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.75s forwards;
}

.grid-line-vertical[data-index="10"] {
  left: 83.333%;
  animation: drawVertical 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.8s forwards;
}

.grid-line-vertical[data-index="11"] {
  left: 91.666%;
  animation: drawVertical 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.85s forwards;
}

.grid-line-vertical[data-index="12"] {
  left: 100%;
  animation: drawVertical 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.9s forwards;
}

/* Horizontal lines */
.grid-line-horizontal[data-index="0"] {
  top: 0%;
  animation: drawHorizontal 0.8s cubic-bezier(0.77, 0, 0.175, 1) 0.95s forwards;
}

.grid-line-horizontal[data-index="1"] {
  top: 12.5%;
  animation: drawHorizontal 0.8s cubic-bezier(0.77, 0, 0.175, 1) 1.0s forwards;
}

.grid-line-horizontal[data-index="2"] {
  top: 25%;
  animation: drawHorizontal 0.8s cubic-bezier(0.77, 0, 0.175, 1) 1.05s forwards;
}

.grid-line-horizontal[data-index="3"] {
  top: 37.5%;
  animation: drawHorizontal 0.8s cubic-bezier(0.77, 0, 0.175, 1) 1.1s forwards;
}

.grid-line-horizontal[data-index="4"] {
  top: 50%;
  animation: drawHorizontal 0.8s cubic-bezier(0.77, 0, 0.175, 1) 1.15s forwards;
}

.grid-line-horizontal[data-index="5"] {
  top: 62.5%;
  animation: drawHorizontal 0.8s cubic-bezier(0.77, 0, 0.175, 1) 1.2s forwards;
}

.grid-line-horizontal[data-index="6"] {
  top: 75%;
  animation: drawHorizontal 0.8s cubic-bezier(0.77, 0, 0.175, 1) 1.25s forwards;
}

.grid-line-horizontal[data-index="7"] {
  top: 87.5%;
  animation: drawHorizontal 0.8s cubic-bezier(0.77, 0, 0.175, 1) 1.3s forwards;
}

.grid-line-horizontal[data-index="8"] {
  top: 100%;
  animation: drawHorizontal 0.8s cubic-bezier(0.77, 0, 0.175, 1) 1.35s forwards;
}
@import url("https://fonts.cdnfonts.com/css/crique-grotesk");

:root {
  color-scheme: dark;
  --bg: #000000;
  --accent: #f5f5f5;
  --muted: #cbd5f5;
  font-family: "Crique Grotesk", "Archivo", "Helvetica Neue", Helvetica,
    Arial, sans-serif;
}

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

html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--accent);
  height: 100vh;
  overflow: hidden;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}


/* WordPress Admin Bar Fix - Removed, handled in PHP */

main {
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
}

section {
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 0.8vw, 0.65rem);
  padding-right: clamp(1rem, 5vw, 4rem);
  max-width: 100%;
}

@media (max-width: 768px) {
  section {
    padding-right: clamp(0.75rem, 3vw, 2rem);
    padding-left: 0;
  }
  
  section p {
    margin-left: 12px;
  }
}

section:first-of-type {
  margin-top: calc(-1 * clamp(0.35rem, 1vw, 0.9rem));
}

section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}


section + section {
  margin-top: max(0, calc(clamp(1.5rem, 4vw, 2.5rem) - 20px));
}

section.open + section {
  /* Keep spacing consistent whether previous section is open or closed */
  margin-top: max(0, calc(clamp(1.5rem, 4vw, 2.5rem) - 20px));
}

h1,
h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: -0.04em;
}

@media (max-width: 768px) {
  h1,
  h2 {
    margin-left: 0;
    letter-spacing: 0.06em;
  }
}

h1 {
  font-size: clamp(2.5rem, calc(90vw / 13), 9rem);
  line-height: 0.92;
  font-weight: 800;
  max-width: 100%;
  display: block;
  white-space: nowrap;
}

h1 .name-first,
h1 .name-last {
  display: inline;
  white-space: nowrap;
}

@media (max-width: 768px) {
  h1 {
    white-space: normal;
    font-size: clamp(1.75rem, 10.5vw, 9rem);
    line-height: 0.95;
  }
  
  h1 .name-last {
    display: block;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.5rem, 9.5vw, 9rem);
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: clamp(1.25rem, 9vw, 9rem);
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: clamp(1.1rem, 8.5vw, 9rem);
  }
}

.hero-heading {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hero-headshot {
  max-width: clamp(160px, 20vw, 220px);
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.55);
}

.hero-copy {
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  max-width: 90vw;
}

.hero-copy p {
  margin-left: clamp(0.75rem, 2vw, 1.5rem);
  margin-bottom: clamp(0.9rem, 2vw, 1.5rem);
  font-family: "Crique Grotesk", sans-serif;
  letter-spacing: 0.04em;
  display: block;
  width: auto;
}

.hero-copy p:last-of-type {
  margin-bottom: 0;
}

.hero-copy img {
  float: right;
  max-width: clamp(160px, 20vw, 220px);
  height: auto;
  margin-left: 10px;
  margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
  margin-top: 0;
  shape-outside: margin-box;
  border-radius: 8px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.55);
}

.hero-gallery {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(5, 200px);
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 1200px) {
  .hero-gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 200px));
  }
}

@media (max-width: 768px) {
  .hero-gallery {
    grid-template-columns: repeat(auto-fit, minmax(120px, 200px));
  }
}

.hero-gallery img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(1);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-gallery figcaption {
  grid-column: 1 / -1;
  text-align: left;
  margin-left: 12px;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

#expertise {
  padding-right: 0;
}

.expertise-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
  align-items: start;
  padding-right: clamp(0.5rem, 2vw, 1.5rem);
}

.expertise-column {
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 1.8vw, 1rem);
  max-width: 100%;
}

.expertise-column p {
  margin-left: clamp(0.75rem, 2vw, 1.5rem);
  margin-right: clamp(0.75rem, 2vw, 1.5rem);
  font-family: "Crique Grotesk", sans-serif;
  letter-spacing: 0.01em;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .expertise-columns {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }
}

/* Experience Timeline - Horizontal */
.experience-timeline {
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-left: 12px;
  margin-right: clamp(1rem, 3vw, 2rem);
  position: relative;
}

.experience-timeline-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(3rem, 6vw, 6rem);
  position: relative;
  padding-top: 30px;
  padding-bottom: 2rem;
}

.experience-timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 2px;
  background: var(--accent);
  z-index: 0;
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
  text-align: center;
}

.timeline-dot {
  position: absolute;
  left: calc(50% - 9px);
  top: -28px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  z-index: 1;
}

.timeline-content {
  margin-top: 10px;
  width: 100%;
  text-align: center;
}

.timeline-date {
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: block;
}

.timeline-title {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #f5f5f5;
  font-weight: 700;
  margin: 0 0 0.15rem 0;
  line-height: 1.2;
}

.timeline-company {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: #f5f5f5;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.timeline-description {
  color: var(--muted);
  line-height: 1.4;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  text-align: left;
  display: inline-block;
}

.timeline-description p {
  margin: 0 0 0.3rem 0;
  padding-left: 0.85rem;
  position: relative;
  text-align: left;
}

.timeline-description p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 3px;
  height: 3px;
  background: #f5f5f5;
  border-radius: 50%;
}

.timeline-description p:last-child {
  margin-bottom: 0;
}

.timeline-description ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: none;
}

.timeline-description li {
  margin-bottom: 0.3rem;
  position: relative;
  padding-left: 0;
}

.timeline-description li::before {
  content: '';
  position: absolute;
  left: -0.85rem;
  top: 0.6em;
  width: 3px;
  height: 3px;
  background: #f5f5f5;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .experience-timeline {
    margin-left: 12px;
    padding-left: 0;
  }
  
  .experience-timeline::before {
    display: none;
  }
  
  .experience-timeline-wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
    padding: 0;
    padding-left: 35px;
    position: relative;
  }
  
  .experience-timeline-wrapper::before {
    content: '' !important;
    display: block !important;
    position: absolute;
    left: 6px;
    top: 12px;
    bottom: clamp(2rem, 4vw, 3rem);
    width: 3px;
    background: #f5f5f5 !important;
    z-index: 0;
  }
  
  .timeline-item {
    position: relative;
    align-items: flex-start;
    text-align: left;
  }
  
  .timeline-dot {
    position: absolute;
    left: -29px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    transform: none;
    z-index: 1;
  }
  
  .timeline-content {
    margin-top: 0;
    text-align: left;
    width: 100%;
  }
  
  .timeline-date,
  .timeline-title,
  .timeline-company,
  .timeline-description {
    text-align: left;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
  /* Edge-to-edge like before */
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: center;
  text-align: center;
}

.partner-logo-wrapper {
  position: relative;
  display: inline-block;
  width: min(200px, 100%);
  height: 200px;
  margin: 0 auto;
}

.partner-logo-wrapper .project-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.partner-logo-wrapper .partner-logo-default {
  opacity: 1;
}

/* Hover text overlay (Partners / Projects) */
.partner-logo-wrapper .partner-hover-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  font-family: "Crique Grotesk", "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.05;
  color: #ffffff;
  /* Preserve admin line breaks exactly, and prevent line wrapping */
  white-space: pre;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Hover effects only on devices that support hover (desktop) */
@media (hover: hover) {
  .partner-logo-wrapper.has-hover-text:hover .partner-logo-default {
    opacity: 0;
  }

  .partner-logo-wrapper.has-hover-text:hover .partner-hover-text {
    opacity: 1;
  }

  .partner-logo-link:hover {
    transform: scale(1.05);
  }

  .partner-logo-wrapper:not(.has-hover-text) .partner-logo-link:hover {
    opacity: 0.8;
  }

  .project-image-link:hover .project-logo {
    opacity: 0.3;
  }
}

/* Keyboard support: show hover text when link is focused */
.partner-logo-wrapper.has-hover-text:focus-within .partner-logo-default {
  opacity: 0;
}
.partner-logo-wrapper.has-hover-text:focus-within .partner-hover-text {
  opacity: 1;
}

.partner-logo-link {
  display: block;
  border: none;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  transition: transform 0.2s ease;
}

.project-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s ease;
}

.project-description {
  margin-left: 0;
  margin-right: 0;
  font-family: "Crique Grotesk", sans-serif;
  letter-spacing: 0.04em;
  /* Keep project text within the card width */
  width: min(200px, 100%);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: anywhere;
  word-break: normal;
}

.project-description p {
  margin: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
}

.contact-left-column {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-links {
  line-height: 1.4;
}

.contact-links p {
  margin-left: clamp(0.75rem, 2vw, 1.5rem);
  margin-right: 0;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  font-family: "Crique Grotesk", sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: block;
  line-height: 1.4;
  height: auto;
}

.contact-links p br {
  display: none !important;
}

.contact-left-column p {
  margin-left: clamp(0.75rem, 2vw, 1.5rem) !important;
  margin-right: clamp(0.75rem, 2vw, 1.5rem) !important;
}

.contact-map {
  margin-left: 0;
  margin-right: clamp(0.75rem, 2vw, 1.5rem);
}

.contact-map iframe {
  width: 100%;
  height: 300px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .contact-map {
    display: none;
  }
  
  .contact-links > p {
    white-space: normal;
  }
  
  .contact-links p br {
    display: block !important;
  }
}

.contact-links a {
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-decoration: underline !important;
  text-underline-offset: 2px;
  border-bottom: none !important;
  border: none !important;
  white-space: nowrap;
  display: inline !important;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-input {
  width: 100%;
  padding: clamp(1.5rem, 4vw, 3rem);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-family: "Crique Grotesk", sans-serif;
  background: transparent;
  border: 2px solid var(--accent);
  color: #ffffff;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease;
  text-transform: uppercase;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.contact-input::placeholder {
  color: #ffffff;
  opacity: 1;
  text-transform: uppercase !important;
}

.contact-input::-webkit-input-placeholder {
  color: #ffffff;
  opacity: 1;
  text-transform: uppercase !important;
}

.contact-input::-moz-placeholder {
  color: #ffffff;
  opacity: 1;
  text-transform: uppercase !important;
}

.contact-input:-ms-input-placeholder {
  color: #ffffff;
  opacity: 1;
  text-transform: uppercase !important;
}

.contact-input:focus {
  border-color: var(--muted);
}

.contact-submit {
  padding: clamp(1.5rem, 4vw, 3rem);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-family: "Crique Grotesk", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  align-self: flex-end;
}

.contact-submit:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

h2 {
  font-size: clamp(2rem, 10vw, 5rem);
  line-height: 1;
}

p,
li,
a {
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  line-height: 1.6;
  color: var(--accent);
  margin: 0;
}

section p {
  margin-left: clamp(0.75rem, 2vw, 1.5rem);
}

ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

ul li::before {
  content: "— ";
  color: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

section[data-collapsible] h2 {
  cursor: pointer;
  user-select: none;
}

section .accordion-panel {
  margin-top: clamp(-0.5rem, -1vw, -0.1rem);
}

section > h2 + .accordion-panel,
section > .hero-heading + .accordion-panel {
  margin-top: clamp(-1.25rem, -2.5vw, -0.5rem);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 0.7;
}

@media (pointer: fine) {
  * {
    cursor: none !important;
  }
}

#customCursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10001;
  opacity: 1;
  will-change: transform;
  transform: translate(-9999px, -9999px);
}

#cursorArrow,
#cursorHand {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  pointer-events: none;
}

#customCursor[data-state="auto"] #cursorArrow {
  display: block;
}

#customCursor[data-state="pointer"] #cursorHand {
  display: block;
}

#customCursor.clicking {
  transition: transform 0.05s ease-out;
}

@media (pointer: coarse) {
  #customCursor {
    display: none !important;
  }

  * {
    cursor: auto !important;
  }
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  margin-bottom: 0;
  padding-bottom: 0;
}

section[data-collapsible].open .accordion-panel {
  max-height: 5000px;
  opacity: 1;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (hover: hover) {
  a:hover {
    color: var(--accent);
  }

  section[data-collapsible] h2:hover {
    color: var(--accent);
  }
}

.contact-message {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.contact-message.success {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #4caf50;
}

.contact-message.error {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #f44336;
}

/* Contact Success/Error Lightbox */
.contact-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.contact-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.contact-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.contact-lightbox-content {
  position: relative;
  background: var(--bg);
  border: 2px solid var(--accent);
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 90%;
  width: 100%;
  max-width: 600px;
  text-align: center;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  font-family: "Crique Grotesk", "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.contact-lightbox-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 1.5rem 0;
  color: var(--accent);
  font-weight: 400;
  line-height: 1.2;
}

.contact-lightbox-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--accent);
  margin: 0;
  line-height: 1.6;
}

.contact-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.contact-lightbox-close:hover {
  opacity: 0.7;
}

.contact-lightbox-close:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

