/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

@font-face {
  font-family: 'CxMono';
  src: url('fonts/CxMonoTrial-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Become';
  src: url('fonts/Become-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

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

body {
  background-color: #0d0d0d;
  color: #ffffff;
  padding-top: 64px;
}

/* ===== NAVBAR — ALL PAGES ===== */
#custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}

#custom-navbar ul {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(8px);
  width: 100%;
  border-radius: 0;
}

#custom-navbar ul::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: conic-gradient(
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: btnSpin 4s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

#custom-navbar ul::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 13, 13, 0.95);
  z-index: 0;
  pointer-events: none;
}

#custom-navbar ul li {
  display: inline-block;
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
  height: 100%;
}

#custom-navbar ul li:nth-child(2) {
  flex: 1;
}

#custom-navbar ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 22px 48px;
  font-family: 'CxMono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

#custom-navbar ul li a:hover {
  color: rgba(255, 255, 255, 1);
}

#custom-navbar ul li:nth-child(2) a {
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  padding: 22px 56px;
  border-left: 0.5px solid rgba(255, 255, 255, 0.1);
  border-right: 0.5px solid rgba(255, 255, 255, 0.1);
}

/* ===== NAVBAR — HOMEPAGE PILL OVERRIDE ===== */
body.home #custom-navbar {
  top: 32px;
  justify-content: center;
}

body.home #custom-navbar ul {
  width: auto;
  border-radius: 100px;
  align-items: stretch;
}

body.home #custom-navbar ul::after {
  top: 1.5px;
  left: 1.5px;
  right: 1.5px;
  bottom: 1.5px;
  border-radius: 100px;
}

body.home #custom-navbar ul li {
  height: 100%;
}

body.home #custom-navbar ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 22px 48px;
  box-sizing: border-box;
}

body.home #custom-navbar ul li:nth-child(2) a {
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  padding: 22px 56px;
  border-left: 0.5px solid rgba(255, 255, 255, 0.1);
  border-right: 0.5px solid rgba(255, 255, 255, 0.1);
}

body.home #custom-navbar .nav-center {
  position: relative;
  left: auto;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #custom-navbar ul li a {
    padding: 16px 20px;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  #custom-navbar ul li:nth-child(2) a {
    padding: 16px 24px;
    font-size: 0.65rem;
  }

  body.home #custom-navbar {
    top: 20px;
  }

  body.home #custom-navbar ul li a {
    padding: 16px 20px;
  }

  body.home #custom-navbar ul li:nth-child(2) a {
    padding: 16px 24px;
  }
}

@media (max-width: 480px) {
  #custom-navbar ul li a {
    padding: 14px 12px;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
  }

  #custom-navbar ul li:nth-child(2) a {
    padding: 14px 16px;
    font-size: 0.6rem;
  }
}

/* ===== HOME PAGE NO SCROLL ===== */
body.home {
  overflow: hidden;
  height: 100vh;
}

/* ===== VIEW BUTTONS & ACC-VIEW-BTN ===== */
:root {
  --btn-radius: 100px;
  --btn-border: 1.5px;
  --brand-dark: #0d0d0d;
  --brand-white: #ffffff;
}

#view-btn,
.acc-view-btn,
.acc-view-btn:visited {
  display: inline-block;
  position: relative;
  padding: 14px 36px;
  background: transparent;
  color: #ffffff;
  font-family: 'CxMono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  overflow: hidden;
  animation: btnPulse 2.5s ease-in-out infinite;
  transition: color 0.3s ease;
  z-index: 0;
}

/* spinning conic gradient border */
#view-btn::before,
.acc-view-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  aspect-ratio: 1/1;
  width: 160%;
  height: auto;
  border-radius: 50%;
  background: conic-gradient(
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.08) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: btnSpin 3s linear infinite;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* inner dark fill with blur */
#view-btn::after,
.acc-view-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - var(--btn-border) * 2);
  height: calc(100% - var(--btn-border) * 2);
  background: rgba(13, 13, 13, 0.92);
  transform: translate(-50%, -50%);
  border-radius: var(--btn-radius);
  backdrop-filter: blur(8px);
  z-index: -1;
  transition: background 0.4s ease;
}

/* hover — fill with white */
#view-btn:hover::after,
.acc-view-btn:hover::after {
  background: rgba(255, 255, 255, 0.95);
}

#view-btn:hover,
.acc-view-btn:hover {
  color: #0d0d0d;
}

/* click — squeeze in then expand */
#view-btn:active,
.acc-view-btn:active {
  animation: btnSqueeze 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

/* view btn opacity for homepage */
#view-btn {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease,
              transform 0.6s ease,
              color 0.3s ease;
  animation: none;
}

#view-btn.visible {
  opacity: 1;
  transform: translateY(0);
  animation: btnPulse 2.5s ease-in-out infinite 1s;
}

.acc-view-btn {
  align-self: flex-start;
  width: auto !important;
}

/* ===== BUTTON ANIMATIONS ===== */
@keyframes btnSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes btnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes btnSqueeze {
  0% { transform: scale(1); }
  40% { transform: scale(0.88); }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ===== HERO ===== */
#hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100vh;
  padding: 80px 20px;
  gap: 40px;
  position: relative;
  z-index: 1;
}

#hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

#hero-name {
  font-family: 'CxMono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#hero-name.visible {
  opacity: 1;
}

#hero-heading.visible {
  opacity: 1;
  transform: scale(1);
}

#hero-sub {
  font-family: 'CxMono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.18);
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#hero-sub.visible {
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #hero-container {
    padding: 40px 32px;
    gap: 32px;
    justify-content: center;
  }

  #hero-heading {
    font-size: 4rem;
  }

  #hero-name {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
  }

  #hero-sub {
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) {
  #hero-heading {
    font-size: 3rem;
  }

  body {
    padding-top: 56px;
  }
}

#typing-container {
  font-family: 'CxMono', monospace;
  font-size: 1rem;
  color: #aaaaaa;
  letter-spacing: 0.1em;
  min-height: 1.5em;
}

#cursor {
  display: inline-block;
  font-weight: 300;
  margin-left: 2px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

#hero-heading {
  font-family: 'Become', sans-serif;
  font-size: 8rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1;
}

/* ===== CUSTOM CURSOR ===== */

#cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #cc0000;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
}

#cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 0.5px solid rgba(255, 255, 255, 1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

body.cursor-hover #cursor-ring {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 1);
}

body.cursor-heading #cursor-ring {
  width: 80px;
  height: 32px;
  border-color: rgba(255, 255, 255, 1);
}

/* ===== DOT GRID ===== */
#dot-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== HOME METADATA ===== */
#home-meta {
  position: fixed;
  bottom: 32px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'CxMono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  z-index: 1;
  pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #custom-navbar {
    padding: 0 24px;
    height: 56px;
  }

  #custom-navbar a {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
  }

  #hero-container {
    padding: 40px 32px;
    gap: 16px;
    justify-content: flex-start;
    padding-top: 48px;
  }

  #typing-container {
    font-size: 0.75rem;
    white-space: normal;
    text-align: center;
    width: 100%;
    padding: 0 8px;
    line-height: 1.8;
    margin-bottom: 16px;
  }

  #hero-heading {
    font-size: 4rem;
    margin-top: 8px;
  }

  #cursor-dot,
  #cursor-ring,
  #dot-grid {
    display: none;
  }

  #home-meta {
    bottom: 20px;
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) {
  #custom-navbar {
    padding: 0 12px;
    height: 56px;
  }

  #custom-navbar .nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
  }

  #custom-navbar .nav-left,
  #custom-navbar .nav-right {
    font-size: 0.6rem;
    letter-spacing: 0.03em;
  }

  #hero-container {
    padding: 32px 24px;
    padding-top: 40px;
    gap: 12px;
    justify-content: flex-start;
  }

  #typing-container {
    font-size: 0.7rem;
    white-space: normal;
    text-align: center;
    width: 100%;
    padding: 0 4px;
    line-height: 1.9;
    margin-bottom: 20px;
  }

  #hero-heading {
    font-size: 3rem;
    margin-top: 4px;
  }

  body {
    padding-top: 56px;
  }
}

/* ===== PROJECT PAGE ===== */
.project-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 80px 20px;
}

.project-title {
  font-family: 'Become', sans-serif;
  font-size: 6rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
}

.project-content {
  padding: 80px 20px;
}

.project-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.project-block h2 {
  font-family: 'CxMono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #aaaaaa;
  margin-bottom: 16px;
}

.project-block p {
  font-family: 'CxMono', monospace;
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .project-title {
    font-size: 3.5rem;
  }
}

/* ===== EXPLORE PAGE ===== */
body.explore-page {
  overflow: hidden;
  height: 100vh;
}

#explore-split {
  position: fixed;
  inset: 0;
  top: 64px;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.split-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.4s ease,
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
  background: transparent;
}

.split-panel:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.split-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-panel:hover .split-content {
  transform: scale(1.04);
}

.split-icon {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-panel:hover .split-icon {
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-4px);
}

.split-title {
  font-family: 'Become', sans-serif;
  font-size: 5rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  margin: 0;
}

.split-panel:hover .split-title {
  font-size: 5rem;
}

.split-sub {
  font-family: 'CxMono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.split-panel:hover .split-sub {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MIDDLE DIVIDER — NEVER MOVES ===== */
#split-middle {
  flex: 0 0 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  overflow: visible;
}


#home-btn {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0d0d0d;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 11;
}

#home-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: scale(1.15);
}

/* mobile */
@media (max-width: 768px) {
  .split-panel:hover {
    transform: translateY(-4px);
  }

  .split-title {
    font-size: 3.5rem;
  }

  .split-icon {
    font-size: 24px;
  }
}

/* ===== ACCORDION CARDS ===== */
#accordion-container {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 64px);
  width: 100%;
  overflow: hidden;
}

.acc-card {
  position: relative;
  flex: 0 0 72px;
  background: transparent;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-card.active {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.acc-card:last-child {
  border-right: none;
}

.acc-collapsed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.acc-card.active .acc-collapsed {
  opacity: 0;
  pointer-events: none;
}

.acc-title-sideways {
  font-family: 'Become', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  letter-spacing: 0.05em;
}

.acc-number {
  position: absolute;
  bottom: -40px;
  right: -10px;
  font-family: 'Become', sans-serif;
  font-size: 22rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
}

.acc-card.active .acc-number {
  opacity: 1;
}

.acc-expanded {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
  pointer-events: none;
  z-index: 3;
}

.acc-card.active .acc-expanded {
  opacity: 1;
  pointer-events: all;
}

.acc-content {
  position: absolute;
  bottom: 48px;
  left: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.acc-title {
  font-family: 'Become', sans-serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  margin: 0;
}

.acc-desc {
  font-family: 'CxMono', monospace;
  font-size: 0.75rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  max-width: 380px;
}


@media (max-width: 768px) {
  #accordion-container {
    flex-direction: column;
    height: calc(100vh - 56px);
  }

  .acc-card {
    flex: 1;
    min-height: 0;
  }

  .acc-card.active {
    flex: 5;
  }

  .acc-number {
    font-size: 8rem;
    bottom: auto;
    top: 35px;
    right: 12px;
  }

  .acc-title-sideways {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.1rem;
  }

  .acc-collapsed {
    justify-content: flex-start;
    padding-left: 24px;
  }

  .acc-content {
    bottom: 24px;
    left: 24px;
  }

  .acc-title {
    font-size: 2.5rem;
  }
}

/* ===== PROFILE PAGE ===== */
#profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px 120px;
  gap: 40px;
  max-width: 680px;
  margin: 0 auto;
}

.profile-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.profile-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

#profile-heading {
  font-family: 'Become', sans-serif;
  font-size: 3rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  margin: 0;
  margin-top: 40px;
}

#profile-image-wrap {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
}

#profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#profile-typing-wrap {
  font-family: 'CxMono', monospace;
  font-size: 1rem;
  color: #aaaaaa;
  letter-spacing: 0.08em;
  min-height: 1.5em;
}

#profile-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s infinite;
}

#profile-bio {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bio-para {
  font-family: 'CxMono', monospace;
  font-size: 0.8rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin: 0;
}

#profile-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Space Mono', monospace !important;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item:hover {
  color: #ffffff;
}

.contact-item i {
  font-size: 16px;
  opacity: 0.6;
  font-family: 'tabler-icons' !important;
}

.contact-item span {
  font-family: 'Space Mono', monospace !important;
}

@media (max-width: 768px) {
  #profile-heading {
    font-size: 2.5rem;
  }

  #profile-image-wrap {
    width: 200px;
    height: 200px;
  }

  .bio-para {
    font-size: 0.75rem;
  }

  #profile-typing-wrap {
    font-size: 0.85rem;
    white-space: normal;
    line-height: 1.8;
  }
}

/* ===== CATEGORY PAGE ===== */
#category-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 64px 64px;
  height: 40vh;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#category-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 64px;
  right: 64px;
  height: 0.5px;
  background: rgba(255, 255, 255, 0.1);
}

.category-tag {
  font-family: 'Space Mono', monospace !important;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.category-tag.visible {
  opacity: 1;
  transform: translateY(0);
}

.category-title {
  font-family: 'Become', sans-serif;
  font-size: 6rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 0.9;
  margin: 0 0 20px;
  overflow: hidden;
}

.category-title-inner {
  display: block;
  transform: translateY(100%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-title-inner.visible {
  transform: translateY(0);
}

.category-desc {
  font-family: 'CxMono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
  max-width: 480px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.category-desc.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PROJECT GRID ===== */
#project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
  padding: 2px 0 0;
  position: relative;
  z-index: 1;
}

.project-card {
  position: relative;
  height: 380px;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5),
              0 8px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.project-card:first-child {
  grid-column: 1 / 3;
  height: 480px;
}

.project-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-inner {
  transform: scale(1.02);
}

.project-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-bg {
  transform: scale(1.04);
}

.project-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.12;
  font-family: 'Become', sans-serif;
  font-size: 12rem;
  color: #ffffff;
  font-weight: 400;
  pointer-events: none;
  user-select: none;
}

.project-meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-tag {
  font-family: 'Space Mono', monospace !important;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

.project-name {
  font-family: 'Become', sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
}

.project-year {
  font-family: 'Space Mono', monospace !important;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.25);
}

.project-arrow {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  z-index: 2;
}

.project-card:hover .project-arrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: rotate(45deg);
}

/* ===== PROJECT OVERLAY ===== */
#project-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

#project-overlay.active {
  pointer-events: all;
}

#overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s ease;
  cursor: pointer;
}

#project-overlay.active #overlay-backdrop {
  background: rgba(0, 0, 0, 0.7);
}

#overlay-panel {
  position: relative;
  width: 100%;
  max-height: 90vh;
  background: #111111;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 1;
  box-shadow: 0 -40px 80px rgba(0, 0, 0, 0.6),
              0 -2px 0 rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

#overlay-panel::-webkit-scrollbar {
  width: 4px;
}

#overlay-panel::-webkit-scrollbar-track {
  background: transparent;
}

#overlay-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

#project-overlay.active #overlay-panel {
  transform: translateY(0);
}

#overlay-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 48px 64px 32px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

#overlay-close {
  width: 40px;
  height: 40px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background: transparent;
}

#overlay-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

#overlay-title {
  font-family: 'Become', sans-serif;
  font-size: 4rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  margin: 0;
}

#overlay-subtitle {
  font-family: 'Space Mono', monospace !important;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  margin-top: 8px;
}

#overlay-body {
  padding: 48px 64px 64px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.overlay-desc {
  font-family: 'CxMono', monospace;
  font-size: 0.8rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.5);
  max-width: 640px;
}

.overlay-section-title {
  font-family: 'CxMono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 16px;
}

.overlay-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.overlay-image-slot {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'CxMono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.overlay-image-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.02) 0%,
    transparent 50%,
    rgba(255,255,255,0.01) 100%);
}

.overlay-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.overlay-detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overlay-detail-label {
  font-family: 'CxMono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.overlay-detail-value {
  font-family: 'Space Mono', monospace !important;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== SCROLL REVEAL ===== */
.scroll-hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE CATEGORY PAGE ===== */
@media (max-width: 768px) {
  #category-hero {
    padding: 0 24px 40px;
    height: 35vh;
  }

  #category-hero::after {
    left: 24px;
    right: 24px;
  }

  .category-title {
    font-size: 3.5rem;
  }

  #project-grid {
    grid-template-columns: 1fr;
  }

  .project-card:first-child {
    grid-column: 1;
    height: 360px;
  }

  .project-card {
    height: 300px;
  }

  .project-card:hover {
    transform: none;
    box-shadow: none;
  }

  .project-name {
    font-size: 1.8rem;
  }

  #overlay-header {
    padding: 32px 24px 24px;
  }

  #overlay-title {
    font-size: 2.5rem;
  }

  #overlay-body {
    padding: 32px 24px 48px;
  }

  .overlay-image-grid {
    grid-template-columns: 1fr;
  }

  .overlay-details {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}


/* ===== AVAILABILITY BADGE ===== */
#availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-family: 'CxMono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.6s ease;
  margin-bottom: 8px;
}

#availability-badge.visible {
  opacity: 1;
}

#availability-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ===== HAMBURGER PILL — MOBILE ONLY ===== */
#hamburger-pill {
  display: none;
}

@media (max-width: 768px) {
  /* hide desktop navbar on mobile homepage */
  body.home #custom-navbar {
    display: none;
  }

  /* show dot grid on mobile */
  body.home #dot-grid {
    display: block !important;
  }

  #hamburger-pill {
    display: block;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
  }

  #hamburger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 100px;
    overflow: hidden;
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(8px);
    cursor: pointer;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    transition: color 0.3s ease;
  }

  /* spinning border on hamburger */
  #hamburger-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: conic-gradient(
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 35%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 65%,
      rgba(255, 255, 255, 0) 100%
    );
    animation: btnSpin 3s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 0;
  }

  #hamburger-icon::after {
    content: '';
    position: absolute;
    top: 1.5px;
    left: 1.5px;
    right: 1.5px;
    bottom: 1.5px;
    background: rgba(13, 13, 13, 0.95);
    border-radius: 100px;
    z-index: 0;
  }

  #hamburger-icon i {
    position: relative;
    z-index: 1;
  }

  #hamburger-icon:hover {
    color: #ffffff;
  }

  #hamburger-dropdown {
    position: absolute;
    top: 56px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(13, 13, 13, 0.96);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    min-width: 160px;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.3s ease,
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  #hamburger-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
  }

  #hamburger-dropdown a {
    display: block;
    padding: 16px 24px;
    font-family: 'CxMono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  }

  #hamburger-dropdown a:last-child {
    border-bottom: none;
  }

  #hamburger-dropdown a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
  }

  /* mobile hero adjustments */
  body.home #hero-container {
    padding: 32px 28px;
    justify-content: center;
    gap: 28px;
  }

  body.home #hero-heading {
    font-size: 3.2rem;
  }

  body.home #hero-name {
    font-size: 0.6rem;
  }

  body.home #hero-sub {
    font-size: 0.5rem;
  }
}

/* ===== BACK PILL ===== */
#back-pill {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-family: 'CxMono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s ease;
  border: none;
  white-space: nowrap;
}

#back-pill::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: conic-gradient(
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: btnSpin 4s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

#back-pill::after {
  content: '';
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  right: 1.5px;
  bottom: 1.5px;
  background: rgba(13, 13, 13, 0.95);
  border-radius: 100px;
  z-index: 0;
}

#back-pill i,
#back-pill span {
  position: relative;
  z-index: 1;
}

#back-pill i {
  font-size: 14px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#back-pill:hover {
  color: rgba(255, 255, 255, 0.9);
}

#back-pill:hover i {
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  #back-pill {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 18px;
    font-size: 0.6rem;
  }
}

/* ===== BUTTON FILL PULSE ===== */
.btn-pulse-active::after {
  background: rgba(255, 255, 255, 0.95) !important;
  transition: background 0.05s ease !important;
}

.btn-pulse-active {
  color: #0d0d0d !important;
  transition: color 0.05s ease !important;
}

/* ===== BOERCORP SEAL ===== */
.boercorp-seal {
  height: 240px;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.4s ease;
  cursor: pointer;
  filter: drop-shadow(0 0 0px rgba(255,255,255,0));
}

.boercorp-seal:hover {
  transform@media (max-width: 768px) {
  .project-placeholder {
    font-size: 2rem !important;
  }
}
    : scale(1.12);
  filter: drop-shadow(0 8px 32px rgba(235, 231, 228, 0.15));
}
