/* ==========================================================================
   ODXR PORTFOLIO — CORE STYLESHEET
   Colors: White #F8F8F8 | Black #010101 | Gray #484848
   Aesthetic: Swiss Minimalist, High-Conviction, Editorial Mastery
   ========================================================================== */

:root {
  --bg-primary: #F8F8F8;
  --bg-card: #FFFFFF;
  --text-primary: #010101;
  --text-secondary: #484848;
  --text-muted: #767676;
  --border-light: #E2E2E2;
  --border-strong: #010101;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1200px;
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.brand-link {
  /* للإزاحة جهة اليمين قليلاً */
  margin-left: 20px;

  /* أو للإزاحة جهة اليسار */
  margin-left: -20px;
}

/* Subtle Technical Grid Background */
.grid-background {
  position: fixed;
  inset: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at 50% 30%, black 50%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 50%, transparent 95%);
}

/* Header - Completely transparent, borderless, floating fixed on scroll */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  pointer-events: none;
  padding: 1.75rem 0;
  transition: padding 0.3s var(--ease-spring);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  transform: translateX(-85px);
  transition: transform 0.3s var(--ease-spring);
}

.brand-logo {
  width: 32px;
  height: 32px;
  display: block;
}

.brand-text {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.btn-minimal {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  padding: 0.45rem 1.15rem;
  border-radius: 4px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s var(--ease-spring);
}

.btn-minimal:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.header-contact-btn {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  background: transparent;
  border: none;
  padding: 0.35rem 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateX(85px);
  transition: transform 0.3s var(--ease-spring), color 0.2s ease;
  cursor: pointer;
}

.header-contact-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 4px;
  height: 4px;
  background-color: var(--text-primary);
  border-radius: 50%;
  transform: translate(-50%, 5px) scale(0);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}

.header-contact-btn:hover::after {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

/* Hairline Section Divider */
.section-divider {
  height: 1px;
  background-color: var(--border-light);
  margin-top: 3.5rem;
  margin-bottom: 4.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HERO SECTION (Above-the-fold viewport optimized)
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(3.75rem, 8.2vw, 7.8rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  margin-bottom: 3rem;
  max-width: 1100px;
  position: relative;
  top: 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: flex-end;
}

.hero-bio {
  position: relative;
  top: -55px;
}

.bio-primary {
  margin-bottom: 1.25rem;
}

.hero-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}

.hero-roles {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.hero-location {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 580px;
}

/* Huge Hero Mascot Emblem - Shifted right */
.hero-emblem-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
  padding-right: 0;
  margin-right: -1.75rem;
  padding-bottom: 0.5rem;
}

.hero-huge-emblem {
  width: clamp(240px, 25vw, 380px);
  height: auto;
  aspect-ratio: 619 / 537;
  max-height: 340px;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.08));
  transition: filter 0.4s var(--ease-spring);
  user-select: none;
  transform: translate(135px, 0px) scale(1.38);
  transform-origin: center bottom;
  image-rendering: pixelated;
}

.hero-huge-emblem:hover {
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.14));
}

/* ==========================================================================
   SECTION LAYOUT (TWO COLUMNS)
   ========================================================================== */
.content-section {
  position: relative;
  z-index: 1;
}

.section-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
}

.section-left {
  position: sticky;
  top: 6.5rem;
  align-self: start;
}

.section-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.section-heading {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  line-height: 1.12;
}

.section-right {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   SECTION 01: CURRENTLY BUILDING (DIVIDERS & ITEMS)
   ========================================================================== */
.item-stack {
  display: flex;
  flex-direction: column;
}

.stack-item {
  padding: 1.5rem 0;
  transition: transform 0.3s var(--ease-spring);
}

.item-divider {
  height: 1px;
  background-color: var(--border-light);
  width: 100%;
  margin: 1rem 0;
}

.item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.item-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.pill-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-secondary);
  background: #FFFFFF;
}

.item-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

/* ==========================================================================
   SECTION 02: WHY I BUILD
   ========================================================================== */
.manifesto-content .lead-text {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.manifesto-content .body-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2.75rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border-light);
  padding-top: 2.25rem;
}

.pillar-item {
  display: flex;
  flex-direction: column;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   SECTION 03: MY WORK (CASES WITH LONG IMAGES)
   ========================================================================== */
.works-showcase {
  display: flex;
  flex-direction: column;
}

.case-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-light);
}

.case-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.case-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  width: fit-content;
}

.case-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.case-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
}

.case-media-frame {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 38px;
  overflow: hidden;
  background: #0D0E12;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.case-media-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 38px;
}

/* ==========================================================================
   SECTION 04: MY LATEST WORK (TIMELINE)
   ========================================================================== */
.timeline-list {
  display: flex;
  flex-direction: column;
}

.timeline-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.25rem 0;
}

.timeline-index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-role {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.timeline-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ==========================================================================
   SECTION 05: CTA / CONTACT
   ========================================================================== */
.cta-section {
  padding-top: 3rem;
  padding-bottom: 7rem;
  position: relative;
  z-index: 1;
}

.cta-huge-title {
  font-size: clamp(3.5rem, 8.5vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.0;
  color: var(--text-primary);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 1050px;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.75;
  margin-bottom: 3.5rem;
}

.contact-box {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-channel-item {
  position: relative;
}

.channel-label,
.email-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.channel-separator {
  height: 1px;
  background-color: var(--border-light);
  width: 100%;
}

.channel-action-row,
.email-action-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.email-link,
.discord-channel-link {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--text-primary);
  transition: all 0.25s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.email-link:hover,
.discord-channel-link:hover {
  color: var(--text-secondary);
  border-bottom-color: var(--text-secondary);
}

.contact-svg-icon {
  width: clamp(1.2rem, 2.2vw, 1.6rem);
  height: clamp(1.2rem, 2.2vw, 1.6rem);
  flex-shrink: 0;
  margin-top: -1px;
  transition: transform 0.25s ease;
}

.email-link:hover .contact-svg-icon,
.discord-channel-link:hover .contact-svg-icon {
  transform: scale(1.08);
}

.copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.copy-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 4px;
  height: 4px;
  background-color: var(--text-primary);
  border-radius: 50%;
  transform: translate(-50%, 5px) scale(0);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}

.copy-btn:hover::after {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

.copy-btn svg {
  display: inline-block;
  vertical-align: middle;
}

.copy-toast {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #010101;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.quick-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 1px solid var(--border-light);
  padding-left: 2.5rem;
}

.meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.meta-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0;
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.footer-logo {
  width: 28px;
  height: 28px;
}

.footer-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.footer-links-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-link .footer-icon {
  flex-shrink: 0;
}

.footer-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ULTRA-SMOOTH SCROLL REVEAL ANIMATIONS (DEEP SLOW & CINEMATIC)
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1), transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 960px) {
  .brand-link {
    transform: translateX(0);
  }

  .header-contact-btn {
    transform: translateX(0);
  }

  .hero-bio {
    top: 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: 6.5rem;
    padding-bottom: 3rem;
  }

  .hero-emblem-wrapper {
    justify-content: center;
    margin-right: 0;
  }

  .hero-huge-emblem {
    transform: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .section-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-left {
    position: static;
  }

  .contact-box {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }

  .quick-meta {
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding-left: 0;
    padding-top: 1.75rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-right {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-section {
    padding-top: 3.5rem;
  }

  .section-divider {
    margin-top: 4rem;
    margin-bottom: 4rem;
  }

  .timeline-row {
    grid-template-columns: 32px 1fr;
    gap: 0.75rem;
  }

  .timeline-period {
    grid-column: 2 / -1;
    margin-top: 0.25rem;
  }

  .header-meta .live-status {
    display: none;
  }
}

/* ==========================================================================
   CUSTOM MINIMALIST MAGNETIC CURSOR
   ========================================================================== */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: #010101;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
  will-change: left, top;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(1, 1, 1, 0.45);
  background-color: rgba(1, 1, 1, 0.03);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999998;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background-color 0.2s ease;
  will-change: left, top;
}

/* Active Custom Cursor (When mouse moves on desktop) */
html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}

html.has-custom-cursor .custom-cursor-dot,
html.has-custom-cursor .custom-cursor-ring {
  opacity: 1;
}

/* Hover state on interactive elements (Keep size constant) */
html.has-custom-cursor.cursor-hover .custom-cursor-ring {
  border-color: rgba(1, 1, 1, 0.7);
  background-color: rgba(1, 1, 1, 0.05);
}

/* Active Click state (Shrink on click) */
html.has-custom-cursor.cursor-active .custom-cursor-ring {
  width: 20px;
  height: 20px;
  border-color: rgba(1, 1, 1, 0.9);
  background-color: rgba(1, 1, 1, 0.15);
  transition: width 0.1s cubic-bezier(0.2, 0, 0, 1), height 0.1s cubic-bezier(0.2, 0, 0, 1), border-color 0.1s ease, background-color 0.1s ease;
}

html.has-custom-cursor.cursor-active .custom-cursor-dot {
  width: 4px;
  height: 4px;
  transition: width 0.1s cubic-bezier(0.2, 0, 0, 1), height 0.1s cubic-bezier(0.2, 0, 0, 1);
}

/* ==========================================================================
   Luxury Curtain Intro Screen
   ========================================================================== */

body.curtain-locked {
  overflow: hidden !important;
}

.intro-curtain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #FFFFFF;
  border-bottom: 2px solid var(--text-primary, #010101);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 99999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: transform 1.25s cubic-bezier(0.85, 0, 0.15, 1);
  will-change: transform;
}

.curtain-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  animation: curtain-content-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

@keyframes curtain-content-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.curtain-logo {
  width: clamp(90px, 14vw, 170px);
  height: auto;
  display: block;
  image-rendering: pixelated;
}

.curtain-title {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.18em;
  margin-right: -0.18em;
  line-height: 1;
  text-align: center;
  user-select: none;
}

.intro-curtain.curtain-lift {
  transform: translateY(-100%);
  pointer-events: none;
}

.intro-curtain.curtain-done {
  display: none !important;
}