/* ===== NAVIGATION ===== */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  background: transparent;
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  gap: var(--space-md);
}

.nav__link {
  font-size: var(--font-size-label);
  font-weight: 500;
  color: var(--color-gray-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-white);
  transition: width var(--transition-medium);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-white);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-white);
  transition: all var(--transition-medium);
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.mobile-menu__link {
  font-size: var(--font-size-h2);
  font-weight: 300;
  color: var(--color-gray-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }
}

/* ===== VALUE PROP (About) ===== */
.vp {
  padding: var(--space-2xl) 0;
}

.vp__headline {
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-gray-400);
  max-width: 1200px;
  margin-bottom: var(--space-2xl);
}

.vp__headline-white {
  color: var(--color-white);
}

.vp__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.vp__grid--row2 {
  margin-top: var(--space-xl);
}

.vp__col {
  padding-right: 40px;
}

.vp__col:last-child {
  padding-right: 0;
}

.vp__fig-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-gray-400);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.vp__fig-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

.vp__fig-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.vp__fig-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.7);
  transition: filter 0.5s ease;
}

.vp__col:hover .vp__fig-image img {
  filter: grayscale(60%) brightness(0.85);
}

.vp__col-title {
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 8px;
}

.vp__col-desc {
  font-size: var(--font-size-small);
  color: var(--color-gray-400);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .vp__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .vp__col {
    padding-right: 0;
  }
}

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

  .vp__headline {
    margin-bottom: var(--space-xl);
  }
}

/* ===== EXPERIENCE HERO ===== */
#flow-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.xhero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.xhero__spline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
}

.xhero__reveal {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.xhero__reveal a,
.xhero__reveal button {
  pointer-events: auto;
}

.xhero__inner {
  display: flex;
  flex-direction: row;
  padding: 56px var(--container-padding) 56px;
  min-height: 100vh;
  align-items: center;
  gap: 40px;
}

.xhero__left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 48px;
  gap: 60px;
}

/* Badge */
.xhero__badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xhero__pulse {
  position: relative;
  width: 10px;
  height: 10px;
  background: var(--color-white);
  border-radius: 50%;
}

.xhero__pulse-ring {
  position: absolute;
  inset: 0;
  background: var(--color-white);
  border-radius: 50%;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.3;
}

@keyframes ping {
  75%, 100% { transform: scale(2.5); opacity: 0; }
}

.xhero__badge-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Headline */
.xhero__headline-block {
  max-width: 800px;
}

.xhero__title {
  font-size: clamp(3.5rem, 9.5vw, 11.5rem);
  font-weight: 900;
  line-height: 0.87;
  letter-spacing: -0.04em;
  color: var(--color-white);
  text-transform: uppercase;
}

.xhero__title-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--color-white);
}

.xhero__tagline {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  max-width: 380px;
  line-height: 1.8;
}

/* CTA Button */
.xhero__cta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  text-decoration: none;
  will-change: transform;
}

.xhero__cta-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.5s ease, border-color 0.5s ease;
  overflow: hidden;
  color: var(--color-white);
}

.xhero__cta:hover .xhero__cta-circle {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-black);
}

.xhero__cta:hover .xhero__cta-circle svg {
  stroke: var(--color-black);
}

.xhero__cta-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Right Deck */
.xhero__deck {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  z-index: 20;
}

.xhero__card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.xhero__card-id {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 12px;
}

.xhero__card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
}

.xhero__card-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.03em;
}

.xhero__progress-track {
  height: 2px;
  width: 80px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.xhero__progress-bar {
  height: 100%;
  width: 60%;
  background: var(--color-white);
  animation: loadingSlide 2s ease-in-out infinite;
}

@keyframes loadingSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(180%); }
}

.xhero__card-stats {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xhero__stat-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.xhero__stat-divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
}

.xhero__card-desc {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
  line-height: 1.5;
}

.xhero__card-desc em {
  font-style: italic;
  color: var(--color-white);
}

/* Responsive Hero */
@media (max-width: 1024px) {
  .xhero__inner {
    flex-direction: column;
    align-items: stretch;
    padding-top: 120px;
  }

  .xhero__deck {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }

  .xhero__card {
    min-width: 260px;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .xhero__deck {
    flex-direction: column;
  }

  .xhero__card {
    min-width: auto;
  }

  .xhero__left {
    gap: 40px;
  }
}

/* ===== ROLLING LIST (Projects) ===== */
.rolling-list__header {
  font-size: var(--font-size-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gray-400);
  margin-bottom: 32px;
  text-align: center;
}

.rolling-list {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

a.rolling-item {
  text-decoration: none;
  color: inherit;
  display: block;
}

.rolling-item {
  position: relative;
  width: 100%;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.rolling-item__text {
  position: relative;
  overflow: hidden;
  height: 80px;
}

.rolling-item__text-inner {
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.rolling-item:hover .rolling-item__text-inner {
  transform: translateY(-50%);
}

.rolling-item__state {
  height: 80px;
  display: flex;
  align-items: center;
}

.rolling-item__title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1;
}

.rolling-item__title--hover {
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
}

.rolling-item__category {
  position: absolute;
  top: 32px;
  right: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gray-400);
  transition: opacity 0.3s ease;
}

.rolling-item:hover .rolling-item__category {
  opacity: 0;
}

/* Image reveal on hover */
.rolling-item__image {
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 20;
  width: 192px;
  height: 128px;
  transform: translateY(-50%) translateX(16px) scale(0.95) rotate(3deg);
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rolling-item:hover .rolling-item__image {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1) rotate(0deg);
}

.rolling-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.rolling-item:hover .rolling-item__image img {
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .rolling-item__text {
    height: 56px;
  }

  .rolling-item__state {
    height: 56px;
  }

  .rolling-item__category {
    display: none;
  }

  .rolling-item__image {
    display: none;
  }
}

/* ===== CTA SECTION ===== */
.section--cta {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.cta__title {
  font-size: var(--font-size-hero);
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.cta__subtitle {
  font-size: var(--font-size-body);
  color: var(--color-gray-300);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.cta__socials {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.cta__social {
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.cta__social:hover {
  color: var(--color-white);
}

.cta__social svg {
  display: block;
}


/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-overlay-solid);
  border-top: var(--border-subtle);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  display: block;
  margin-bottom: var(--space-xs);
}

.footer__tagline {
  color: var(--color-gray-300);
  font-size: var(--font-size-small);
  margin-bottom: 4px;
}

.footer__founded {
  color: var(--color-gray-400);
  font-size: var(--font-size-label);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__link {
  font-size: var(--font-size-small);
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__socials {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.footer__socials a {
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.footer__socials a:hover {
  color: var(--color-white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: var(--border-subtle);
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  color: var(--color-gray-400);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-xs);
  }
}
