/* ── Design Tokens ──────────────────────────────────── */
:root {
  --color-bg: #000000;
  --color-green: #70ffc5;
  --color-purple: #635fff;
  --color-muted: #4f505e;
  --color-border: #191919;
  --color-border-dark: #1a1a1a;
  --color-border-case: #2a2a2b;
  --color-white: #ffffff;
  --color-white-50: rgba(255, 255, 255, 0.5);
  --color-white-20: rgba(255, 255, 255, 0.2);
  --color-green-bg: rgba(112, 255, 197, 0.2);

  --grad-main: linear-gradient(153deg, #70ffc5 21%, #b8ffe2 43%, #ffffff 50%, #635fff 81%);
  --grad-alt: linear-gradient(160deg, #70ffc5 21%, #b8ffe2 43%, #ffffff 50%, #635fff 81%);
  --grad-hero: linear-gradient(162deg, #70ffc5 21%, #b8ffe2 43%, #ffffff 50%, #635fff 81%);

  --font-display: 'MuseoModerno', sans-serif;
  --font-body: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;

  --fs-120: clamp(3rem, 8.33vw, 120px);
  --fs-86: clamp(2rem, 5.97vw, 86px);
  --fs-64: clamp(1.8rem, 4.44vw, 64px);
  --fs-54: clamp(1.6rem, 3.75vw, 54px);
  --fs-32: clamp(1.2rem, 2.22vw, 32px);
  --fs-24: clamp(1rem, 1.67vw, 24px);
  --fs-16: 16px;

  --radius-card: 64px;
  --radius-tag: 32px;
  --radius-btn: 32px;

  --sp-160: clamp(60px, 11.11vw, 160px);
  --sp-128: clamp(48px, 8.89vw, 128px);
  --sp-80: clamp(32px, 5.56vw, 80px);
  --sp-48: clamp(24px, 3.33vw, 48px);
  --sp-32: clamp(16px, 2.22vw, 32px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.35;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  margin: 0;
}

ul {
  list-style: none;
}

/* ── Utility ────────────────────────────────────────── */
.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container-1280 {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

.container-1440 {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

/* ── NAV ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.nav__inner {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  padding: 0 32px;
  overflow: hidden;
}

.nav__logo {
  flex-shrink: 0;
  height: 36px;
}

.nav__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav__menu {
  flex: 1;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.nav__menu-item {
  opacity: 0.5;
  font-family: var(--font-display);
  font-size: var(--fs-16);
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .2s;
}

.nav__menu-item:hover {
  opacity: 1;
}

.nav__social {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.nav__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  opacity: 0.7;
  transition: opacity .2s;
}

.nav__social a:hover {
  opacity: 1;
}

.nav__social img {
  object-fit: contain;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav__mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(0, 0, 0, 0.95);
  border-top: 1px solid var(--color-border);
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}

.nav__mobile-menu.is-open {
  max-height: 400px;
}

.nav__mobile-menu a {
  display: block;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: var(--fs-16);
  opacity: 0.7;
  border-bottom: 1px solid var(--color-border);
  transition: opacity .2s;
}

.nav__mobile-menu a:hover {
  opacity: 1;
}

.nav__mobile-social {
  display: flex;
  gap: 16px;
  padding: 16px 32px;
}

.nav__mobile-social img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}


/* ── ENTRY ANIMATIONS ──────────────────────────────────── */
@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }

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

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

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

@keyframes slideLeftFade {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }

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

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.cursor {
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
  color: var(--color-green);
}

.text-anim-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.text-anim-container {
  position: relative;
  width: 100%;
  height: 240px;
  /* Increased height so largest text wrap fits properly */
  overflow: hidden;
  margin-top: -10px;
  /* Tighter spacing below main title */
}

.text-anim-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.text-anim-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.text-anim-slide.is-exiting {
  opacity: 0;
  transform: translateY(-40px);
}

.hero__title {
  animation: slideDownFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero__title-beautifully {
  animation: slideUpFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
  opacity: 0;
}

.hero__photo {
  animation: slideLeftFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
  opacity: 0;
}

/* ── SCROLL ANIMATIONS ─────────────────────────────────── */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-zoom {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-zoom.is-visible {
  opacity: 1;
  transform: scale(1);
}

.scroll-fade-delay {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.scroll-fade-delay.is-visible {
  opacity: 1;
  transform: translateY(0);
}



/* ── HERO ───────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__row {
  display: flex;
  align-items: stretch;
  width: 1280px;
  max-width: 100%;
}

/* Left col */
.hero__left {
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 48px 32px;
  width: 436px;
  flex-shrink: 0;
}

.hero__bg-gif-top {
  margin-bottom: 16px;
}

.hero__bg-gif-top img {
  max-width: 220px;
  border-radius: 20px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-54);
  line-height: 1.2;
  font-weight: 400;
  color: var(--color-white);
  width: 100%;
}

.hero__title strong {
  font-weight: 700;
}

.hero__title-beautifully {
  font-family: var(--font-display);
  font-size: var(--fs-64);
  font-weight: 700;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

/* Mid col */
.hero__mid {
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-end;
  padding-bottom: 32px;
  flex: 1;
  min-width: 0;
}

.hero__bio {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px;
}

.hero__bio-text {
  font-family: var(--font-body);
  font-size: var(--fs-24);
  line-height: 1.15;
  color: var(--color-white);
}

.hero__bio-text .highlight-green {
  color: var(--color-green);
  font-weight: 700;
}

.hero__bio-text .highlight-purple {
  color: var(--color-purple);
}

.hero__bio-text .muted {
  color: var(--color-white-50);
}

.hero__bio-text .bold {
  font-weight: 700;
}

.hero__bio-intro {
  margin-bottom: 16px;
}

.hero__logos {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hero__logos img {
  width: auto;
  object-fit: contain;
  max-width: 140px;
}

/* Right col */
.hero__right {
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-end;
  padding: 32px;
  width: 402px;
  height: 702px;
  position: relative;
  flex-shrink: 0;
  /* overflow: hidden removed */
}

.hero__available {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  position: relative;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-green);
  flex-shrink: 0;
  position: relative;
  animation: pulse 2s infinite;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--color-green);
  opacity: 0.4;
  animation: pulseRing 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .6
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: .4
  }

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

.hero__available-text {
  font-family: var(--font-display);
  font-size: var(--fs-16);
  white-space: nowrap;
}

.hero__photo {
  position: absolute;
  right: -78px;
  top: 32px;
  width: 447px;
  height: 577px;
  border-radius: 64px;
  overflow: hidden;
}

.hero__photo img {
  width: 110%;
  height: 114%;
  object-fit: cover;
  object-position: center top;
}

/* Resume Button */
.hero__resume {
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  width: 1280px;
  max-width: 100%;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero__resume:hover {
  border-color: var(--color-green);
  background: linear-gradient(100deg, rgba(112, 255, 197, 0.6) -10%, #000 40%, #000 60%, rgba(99, 95, 255, 0.6) 110%);
}

.hero__resume-text {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  color: var(--color-white-50);
  letter-spacing: 1.2px;
  transition: color 0.3s ease;
}

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

.hero__resume-icon {
  width: 24px;
  height: 24px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.hero__resume:hover .hero__resume-icon {
  opacity: 1;
}

/* ── PHILOSOPHY ─────────────────────────────────────── */
.philosophy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 1280px;
  max-width: 100%;
}

.philosophy__banner {
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-128) var(--sp-32);
  width: 100%;
}

.philosophy__title-wrap {
  position: relative;
  display: inline-grid;
  place-items: start;
}

.philosophy__union {
  grid-area: 1/1;
  width: 60vw;
  height: 35vw;
  max-width: 850px;
  max-height: 500px;
  object-fit: contain;
}

.philosophy__heading {
  grid-area: 1/1;
  font-family: var(--font-display);
  font-size: var(--fs-54);
  line-height: 1.2;
  text-align: right;
  background: linear-gradient(142deg, #70ffc5 21%, #b8ffe2 43%, #fff 50%, #635fff 81%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: clamp(200px, 25vw, 359px);
  margin-top: clamp(120px, 22vw, 316px);
  z-index: 1;
}

.philosophy__heading strong {
  font-weight: 700;
}


.grid-pos-1 {
  grid-area: 1 / 1 / 2 / 2;
}

.grid-pos-mid {
  grid-area: 1 / 2 / 2 / 3;
}

.grid-pos-3 {
  grid-area: 1 / 3 / 2 / 4;
}

.grid-pos-bl {
  grid-area: 2 / 1 / 3 / 2;
}

.grid-pos-2 {
  grid-area: 2 / 2 / 3 / 3;
}

.grid-pos-br {
  grid-area: 2 / 3 / 3 / 4;
}

/* Cards grid */
.philosophy__grid {
  border: 1px solid var(--color-border);
  border-top: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  overflow: hidden;
  border-radius: 0 0 64px 64px;
  width: 100%;
  background: var(--color-border);
  gap: 1px;
}

.phil-card {
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px;
}

.phil-card__num {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: 700;
  line-height: 1.2;
}

.phil-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-32);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-green);
}

.phil-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.35;
}

.phil-card__body strong {
  font-weight: 700;
}

.phil-card--img {
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.phil-card--img img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.phil-card--img-mid {
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 400px;
}

.phil-card--img-mid img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ── PORTFOLIO ──────────────────────────────────────── */
.portfolio {
  display: flex;
  flex-direction: column;
  gap: var(--sp-80);
  align-items: center;
  padding: var(--sp-160) 0;
  width: 1280px;
  max-width: 100%;
}

.portfolio__heading {
  font-family: var(--font-display);
  font-size: var(--fs-120);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: 100%;
}

/* Case card */
.case {
  background: #000;
  border: 1px solid var(--color-border-case);
  border-radius: var(--radius-card);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
  width: 100%;
}

.case__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: var(--sp-48);
  width: 50%;
  flex-shrink: 0;
}

.case__title {
  font-family: var(--font-display);
  font-size: var(--fs-32);
  font-weight: 700;
  line-height: 1.2;
}

.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
}

.case__tag {
  background: var(--color-green-bg);
  border: 1px solid var(--color-green);
  border-radius: var(--radius-tag);
  padding: 4px 16px;
  font-family: var(--font-body);
  font-size: var(--fs-16);
  color: var(--color-green);
  font-weight: 500;
  white-space: nowrap;
}

.case__divider {
  height: 1px;
  background: var(--color-border);
  width: 100%;
  flex-shrink: 0;
}

.case__details {
  display: flex;
  gap: 24px;
  height: auto;
  align-items: center;
  padding: 16px 0;
}

.case__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100%;
  font-family: var(--font-display);
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--color-muted);
}

.case__col-right {
  flex: 1;
  height: 100%;
  font-family: var(--font-display);
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--color-muted);
  line-height: 1.2;
}

.case__col-right p {
  margin-bottom: 8px;
}

.case__label {
  margin-bottom: 8px;
}

.case__val {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.35;
}

.case__val strong {
  font-weight: 700;
}

.case__impact {
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-16);
  color: var(--color-muted);
  line-height: 1.2;
}

.case__impact-val {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-green);
  margin-top: 8px;
}

.case__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-small {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: var(--fs-16);
  color: var(--color-white-50);
  letter-spacing: 0.8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-small:hover {
  border-color: var(--color-green);
  color: var(--color-white);
  background: linear-gradient(100deg, rgba(112, 255, 197, 0.6) -10%, #000 40%, #000 60%, rgba(99, 95, 255, 0.6) 110%);
}

.btn-small img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.case__image-block {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(153, 153, 153, 0.1));
  width: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.case__image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* More Cases btn */
.btn-mid {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: var(--fs-24);
  color: var(--color-white-50);
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-mid:hover {
  border-color: var(--color-green);
  color: var(--color-white);
  background: linear-gradient(100deg, rgba(112, 255, 197, 0.6) -10%, #000 40%, #000 60%, rgba(99, 95, 255, 0.6) 110%);
}

.btn-mid img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ── TOOLS ──────────────────────────────────────────── */
.tools {
  display: flex;
  flex-direction: column;
  gap: var(--sp-80);
  align-items: center;
  width: 1440px;
  max-width: 100%;
}

.tools__top {
  display: flex;
  align-items: center;
  gap: clamp(40px, 8.4vw, 121px);
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 var(--sp-32);
}

.tools__heading {
  font-family: var(--font-display);
  font-size: var(--fs-120);
  font-weight: 400;
  line-height: 1.2;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 820px;
}

.tools__orb-wrap {
  position: relative;
  width: clamp(200px, 23.6vw, 340px);
  height: clamp(200px, 23.6vw, 340px);
  flex-shrink: 0;
}

.tools__orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 12px;
  background: linear-gradient(135deg, #70ffc5 0%, #000000 49%, #635fff 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: spin 8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tools__orb-inner {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
}

.tools__orb-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tools__rows {
  width: 100%;
}

.tools__row {
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 64px;
  gap: 12px;
  margin-top: -1px;
  transition: background-color 0.3s ease;
  cursor: default;
}

.tools__row-title {
  font-family: var(--font-display);
  font-size: var(--fs-86);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-muted);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.tools__row:hover .tools__row-title {
  color: var(--color-white);
  text-shadow: 0 0 24px rgba(99, 95, 255, 0.8), 0 0 12px rgba(99, 95, 255, 0.4);
}

.tools__row-sub {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s ease;
}

.tools__row:hover .tools__row-sub {
  color: var(--color-green);
}

/* ── BEYOND ─────────────────────────────────────────── */
.beyond {
  display: flex;
  flex-direction: column;
  gap: var(--sp-80);
  align-items: center;
  position: relative;
  width: 1440px;
  max-width: 100%;
}

.beyond__bg-orb {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 270px;
  height: 480px;
  pointer-events: none;
  z-index: 0;
}

.beyond__bg-orb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.beyond__heading {
  font-family: var(--font-display);
  font-size: var(--fs-120);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: 100%;
  padding: 0 var(--sp-32);
  position: relative;
  z-index: 1;
}

.beyond__bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-body);
  font-size: var(--fs-24);
  line-height: 1.15;
  text-align: center;
  width: min(642px, 100%);
  padding: 0 var(--sp-32);
  position: relative;
  z-index: 1;
}

.beyond__bio .accent-purple {
  color: var(--color-purple);
  font-size: 28px;
}

.beyond__bio .accent-green {
  color: var(--color-green);
  font-size: 32px;
}

.beyond__bio strong {
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.beyond__photos {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  /* Full bleed trick */
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background: transparent;
  padding: 20px 0;
}

.beyond__photos-track {
  display: inline-flex;
  gap: 32px;
  padding: 0 16px;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.beyond__photos-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 16px));
  }
}

.beyond__photo {
  background: #fff;
  width: clamp(160px, 22.2vw, 320px);
  height: clamp(270px, 37.5vw, 540px);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.beyond__photo img {
  position: absolute;
  width: 130%;
  height: 115%;
  object-fit: cover;
}

.beyond__photo--tl {
  border-radius: 128px 0 128px 0;
}

.beyond__photo--tr {
  border-radius: 0 128px 0 128px;
}

.beyond__photo--tl2 {
  border-radius: 128px 0 128px 0;
}

.beyond__photo--tr2 {
  border-radius: 0 128px 0 128px;
}

.beyond__caption {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-body);
  font-size: var(--fs-24);
  line-height: 1.15;
  text-align: center;
  width: min(640px, 100%);
  padding: 0 var(--sp-32);
  color: var(--color-muted);
}

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

/* ── CTA ────────────────────────────────────────────── */
.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1440px;
  max-width: 100%;
  padding-bottom: 40px;
}

.cta__heading {
  font-family: var(--font-display);
  font-size: var(--fs-120);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  background: var(--grad-alt);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: 100%;
  padding: 0 var(--sp-32);
}

.cta__anim {
  width: auto;
  height: auto;
  overflow: hidden;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta__anim img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cta__btn {
  margin-top: 24px;
}

.cta__copy {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: min(644px, 100%);
  text-align: center;
  padding: 0 var(--sp-32);
}

.cta__copy-text {
  font-family: var(--font-body);
  font-size: var(--fs-24);
  line-height: 1.15;
}

.cta__copy-text .green {
  color: var(--color-green);
  font-weight: 800;
}

.cta__social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cta__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  opacity: 0.7;
  transition: opacity .2s;
}

.cta__social a:hover {
  opacity: 1;
}

.cta__social img {
  object-fit: contain;
}

.cta__location {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.15;
  text-align: center;
}

.cta__location-label {
  font-family: var(--font-display);
  color: var(--color-muted);
  margin-bottom: 8px;
}

.cta__location-city {
  color: var(--color-white);
}

.cta__location-remote {
  color: var(--color-green);
}

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  border: 1px solid var(--color-border-dark);
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  padding: 32px;
  width: 1440px;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  border-bottom: 0px;
  border-radius: 32px 32px 0 0;
}

.footer__menu {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__menu-item {
  font-family: var(--font-display);
  font-size: var(--fs-16);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity .2s;
}

.footer__menu-item:hover {
  opacity: 1;
}

.footer__logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.footer__logo-union {
  height: 80px;
  object-fit: contain;
}

.footer__monogram {
  width: 44px;
  height: 20px;
  object-fit: contain;
}

.footer__copy {
  font-family: var(--font-display);
  font-size: var(--fs-16);
  line-height: 1.15;
  text-align: center;
  margin-top: 8px;
}

.footer__glow-left,
.footer__glow-right {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: exclusion;
}

.footer__glow-left {
  width: clamp(400px, 77vw, 1111px);
  height: auto;
  left: -80px;
  top: 60px;
  opacity: 0.4;
}

.footer__glow-right {
  width: clamp(400px, 77vw, 1111px);
  height: auto;
  right: -80px;
  top: 60px;
  opacity: 0.4;
}

/* ── SECTION WRAPPER ────────────────────────────────── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--sp-160);
  align-items: center;
  overflow: hidden;
}

.page-wrapper--case {
  gap: 0;
}

.section-1280 {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── ICON HELPERS ───────────────────────────────────── */
.icon-eye,
.icon-human,
.icon-write {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-eye svg,
.icon-human svg,
.icon-write svg {
  width: 100%;
  height: 100%;
}

/* ── SVG INLINE ICONS ───────────────────────────────── */
.svg-icon {
  flex-shrink: 0;
}

/* ── SKILL TREE ─────────────────────────────────────── */
:root {
  --st-gap: 40px;
}

.skill-tree-section {
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.st-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 1440px;
  position: relative;
}

.st-center {
  position: relative;
  margin: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.st-center::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -40px;
  right: -40px;
  height: 2px;
  background: var(--color-border);
  z-index: -1;
}

.st-orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 30px rgba(112, 255, 197, 0.1);
}

.st-orb::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--grad-main);
  z-index: -1;
  opacity: 0.6;
  animation: stPulse 3s infinite alternate;
}

@keyframes stPulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
    box-shadow: 0 0 20px rgba(112, 255, 197, 0.2);
  }

  100% {
    transform: scale(1.05);
    opacity: 0.8;
    box-shadow: 0 0 40px rgba(112, 255, 197, 0.5);
  }
}

.st-orb-inner {
  font-family: var(--font-display);
  font-size: var(--fs-32);
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  line-height: 1.2;
}

.st-orb-inner span {
  color: var(--color-green);
}

.st-side {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 80px;
  flex: 1;
  padding: 40px 0;
  position: relative;
}

.st-side--left {
  border-right: 2px solid var(--color-border);
  padding-right: 40px;
}

.st-side--right {
  border-left: 2px solid var(--color-border);
  padding-left: 40px;
}

.st-side--left::before,
.st-side--left::after {
  content: '';
  position: absolute;
  right: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
}

.st-side--left::before {
  top: 0;
}

.st-side--left::after {
  bottom: 0;
}

.st-side--right::before,
.st-side--right::after {
  content: '';
  position: absolute;
  left: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-purple);
}

.st-side--right::before {
  top: 0;
}

.st-side--right::after {
  bottom: 0;
}

.st-group {
  display: flex;
  align-items: stretch;
  position: relative;
}

.st-group-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.st-side--left .st-group-inner {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.st-side--right .st-group-inner {
  flex-direction: row;
  justify-content: flex-start;
}

.st-side--left .st-group-inner::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -40px;
  width: 40px;
  height: 2px;
  background: var(--color-border);
  z-index: -1;
}

.st-side--right .st-group-inner::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -40px;
  width: 40px;
  height: 2px;
  background: var(--color-border);
  z-index: -1;
}

.st-node {
  background: var(--color-border-dark);
  border: 2px solid var(--color-border);
  padding: 16px 24px;
  border-radius: var(--radius-tag);
  font-family: var(--font-display);
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  transition: all 0.3s;
  cursor: default;
}

.st-node:hover {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}

.st-side--left .st-node {
  color: var(--color-green);
  border-color: rgba(112, 255, 197, 0.3);
}

.st-side--right .st-node {
  color: var(--color-purple);
  border-color: rgba(99, 95, 255, 0.3);
}

.st-leaves {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  position: relative;
  padding-top: 20px;
  padding-bottom: 20px;
}

.st-side--left .st-leaves {
  align-items: flex-end;
  border-right: 2px solid var(--color-border);
  padding-right: 24px;
}

.st-side--right .st-leaves {
  align-items: flex-start;
  border-left: 2px solid var(--color-border);
  padding-left: 24px;
}

.st-side--left .st-leaves::before,
.st-side--left .st-leaves::after {
  content: '';
  position: absolute;
  right: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  opacity: 0.5;
}

.st-side--left .st-leaves::before {
  top: 0;
}

.st-side--left .st-leaves::after {
  bottom: 0;
}

.st-side--right .st-leaves::before,
.st-side--right .st-leaves::after {
  content: '';
  position: absolute;
  left: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-purple);
  opacity: 0.5;
}

.st-side--right .st-leaves::before {
  top: 0;
}

.st-side--right .st-leaves::after {
  bottom: 0;
}

.st-leaf {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-white-50);
  position: relative;
  transition: all 0.3s;
  cursor: default;
  white-space: nowrap;
}

.st-leaf:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}

.st-side--left .st-leaf:hover {
  border-color: var(--color-green);
  transform: translateX(-5px);
}

.st-side--right .st-leaf:hover {
  border-color: var(--color-purple);
  transform: translateX(5px);
}

.st-side--left .st-leaf::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -24px;
  width: 24px;
  height: 1px;
  background: var(--color-border);
  z-index: -1;
}

.st-side--right .st-leaf::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -24px;
  width: 24px;
  height: 1px;
  background: var(--color-border);
  z-index: -1;
}

.st-side--left .st-node::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -26px;
  width: 24px;
  height: 2px;
  background: var(--color-border);
  z-index: -1;
}

.st-side--right .st-node::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -26px;
  width: 24px;
  height: 2px;
  background: var(--color-border);
  z-index: -1;
}

@media (max-width: 1024px) {
  .skill-tree-section {
    padding: 64px 16px;
  }

  .st-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .st-center {
    margin: 0 0 64px 0;
    order: -1;
  }

  .st-center::before {
    display: none;
  }

  .st-center::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 64px;
    background: linear-gradient(180deg, var(--color-border), transparent);
    z-index: -1;
  }

  .st-orb {
    width: 120px;
    height: 120px;
  }

  .st-orb-inner {
    font-size: var(--fs-24);
  }

  .st-side {
    width: 100%;
    gap: 64px;
    padding: 0;
    border: none;
  }

  .st-side--left::before,
  .st-side--left::after,
  .st-side--right::before,
  .st-side--right::after {
    display: none;
  }

  .st-group {
    width: 100%;
  }

  .st-group-inner {
    flex-direction: column !important;
    gap: 24px;
    align-items: center;
  }

  .st-group-inner::after {
    display: none !important;
  }

  .st-node {
    width: 100%;
    max-width: 320px;
    white-space: normal;
  }

  .st-node::before {
    display: none !important;
  }

  .st-leaves {
    align-items: stretch !important;
    border: none !important;
    padding: 0 0 0 24px !important;
    width: 100%;
    max-width: 320px;
  }

  .st-side--right .st-leaves {
    padding: 0 0 0 24px !important;
  }

  .st-leaves::before {
    content: '';
    position: absolute;
    top: -12px;
    bottom: 24px;
    left: 0 !important;
    right: auto !important;
    width: 2px;
    background: var(--color-border);
    border-radius: 0;
    opacity: 1 !important;
  }

  .st-leaves::after {
    display: none !important;
  }

  .st-leaf {
    width: 100%;
    text-align: left;
    white-space: normal;
  }

  .st-leaf::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -24px !important;
    right: auto !important;
    width: 24px !important;
    height: 1px;
    background: var(--color-border);
    z-index: -1;
  }

  .st-leaf:hover {
    transform: translateY(-2px) !important;
  }
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1400px) {

  .container-1440,
  .tools,
  .beyond,
  .cta,
  .footer {
    max-width: 100vw;
  }

  .tools__row {
    padding: 64px var(--sp-32);
  }

  .footer__glow-left,
  .footer__glow-right {
    display: none;
  }
}

@media (max-width: 1300px) {
  .hero__row {
    width: 100%;
  }

  .hero__resume {
    width: 100%;
  }

  .philosophy {
    width: 100%;
  }

  .portfolio {
    width: 100%;
    padding: var(--sp-160) var(--sp-32);
  }
}

@media (max-width: 1024px) {

  /* Hamburger nav */
  .nav__menu {
    display: none;
  }

  .nav__social {
    display: none;
  }

  .nav__hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav__mobile-menu {
    display: flex;
  }

  .hero__row {
    flex-direction: column;
  }

  .hero__left {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid var(--color-border);
  }

  .text-anim-container {
    height: 140px;
    margin-top: 0;
  }

  .hero__title {
    font-size: var(--fs-48);
  }

  .hero__title-beautifully {
    font-size: var(--fs-32);
  }

  .hero__mid {
    border-left: none;
    border-right: none;
  }

  .hero__right {
    width: 100%;
    height: 400px;
    border-right: none;
    border-top: 1px solid var(--color-border);
    /* overflow: hidden removed */
  }

  .hero__photo {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .hero__available {
    position: relative;
    z-index: 2;
  }

  .philosophy__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .grid-pos-1,
  .grid-pos-mid,
  .grid-pos-3,
  .grid-pos-bl,
  .grid-pos-2,
  .grid-pos-br {
    grid-area: auto;
  }

  .grid-pos-1 {
    order: 1;
  }

  .grid-pos-2 {
    order: 2;
  }

  .grid-pos-3 {
    order: 3;
  }

  .grid-pos-mid {
    order: 4;
  }

  .grid-pos-bl {
    order: 5;
  }

  .grid-pos-br {
    order: 6;
  }

  .phil-card--img-mid {
    height: auto;
    min-height: 200px;
  }

  .case {
    flex-direction: column;
  }

  .case__content {
    width: 100%;
  }

  .case__image-block {
    width: 100%;
    height: 400px;
  }

  .case__details {
    flex-direction: column;
    height: auto;
  }

  .case__col,
  .case__col-right {
    width: 100%;
  }

  .philosophy__heading {
    margin-top: clamp(60px, 12vw, 160px);
  }
}

@media (max-width: 768px) {
  :root {
    --sp-160: 60px;
    --sp-128: 48px;
    --sp-80: 40px;
  }

  .nav__inner {
    padding: 0 16px;
  }

  .hero__left {
    padding: 32px 16px;
  }

  .text-anim-container {
    height: 120px;
  }

  .hero__title {
    font-size: clamp(40px, 14vw, 80px);
  }

  .hero__title-beautifully {
    font-size: clamp(32px, 11vw, 60px);
    margin-top: -8px;
  }

  .hero__bg-gif-top img {
    max-width: 160px;
  }

  .hero__bio {
    padding: 24px 16px;
  }

  .hero__logos {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero__logos img {
    max-width: 80px;
  }

  .philosophy__grid {
    grid-template-columns: 1fr;
  }

  .phil-card--img,
  .phil-card--img-mid {
    display: none;
  }

  .portfolio {
    padding: var(--sp-80) 16px;
    gap: 40px;
  }

  .case__content {
    padding: 24px 16px;
  }

  .case__tags {
    flex-wrap: wrap;
  }

  .case__details {
    height: auto;
  }

  .case__image-block {
    height: 280px;
  }

  .tools__top {
    flex-direction: column;
    padding: 0 16px;
    gap: 32px;
  }

  .tools__heading {
    font-size: clamp(2.5rem, 12vw, 6rem);
  }

  .tools__row {
    padding: 40px 16px;
  }

  .tools__row-title {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }

  .tools__row-sub {
    font-size: 14px;
  }

  .beyond__photos {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Full bleed trick */
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: transparent;
    padding: 20px 0;
  }

  .beyond__photos-track {
    display: inline-flex;
    gap: 32px;
    padding: 0 16px;
    width: max-content;
    animation: marquee 20s linear infinite;
  }

  .beyond__photos-track:hover {
    animation-play-state: paused;
  }

  .beyond__photo--tr {
    border-radius: 0 64px 0 64px;
  }

  .beyond__photo--tl {
    border-radius: 64px 0 64px 0;
  }

  .beyond__photo--tr2 {
    border-radius: 0 64px 0 64px;
  }

  .beyond__photo--tl2 {
    border-radius: 64px 0 64px 0;
  }

  .case {
    border-radius: 32px;
  }

  .case__image-block {
    border-radius: 32px;
  }

  @keyframes marquee {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-50% - 16px));
    }
  }
}

/* ── ADDITIONAL ANIMATIONS ──────────────────────────── */
.scroll-slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-slide-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── CASE 2 PAGE STYLES ───────────────────────────── */
.case-page {
  gap: var(--sp-128);
}

.case-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  gap: 40px;
  padding: 120px 5vw;
  min-height: 400px;
  overflow: hidden;
}

.case-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.case-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-video-preview {
  margin-top: 40px;
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-video-preview:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  border-color: var(--color-green);
}

.hero-video-preview__vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-video-preview__header {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  gap: 12px;
}

.hero-video-preview__title {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.hero-video-preview:hover .hero-video-preview__title {
  transform: translateY(-5px);
}

.hero-video-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: background 0.3s ease;
}

.hero-video-preview:hover::after {
  background: rgba(0, 0, 0, 0.2);
}

.hero-video-preview__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.hero-video-preview:hover .hero-video-preview__play-icon {
  transform: scale(1.1);
}

.hero-video-preview__play-icon path {
  transition: fill 0.3s ease;
}

.hero-video-preview:hover .hero-video-preview__play-icon path {
  fill: var(--color-green);
}

/* Lightbox Modal */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(10px);
}

.video-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.video-lightbox__close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: white;
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.video-lightbox__close:hover {
  color: var(--color-green);
  transform: scale(1.1) rotate(90deg);
}

.video-lightbox__content {
  width: 90%;
  max-width: 1400px;
  aspect-ratio: 16/9;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.video-lightbox.is-open .video-lightbox__content {
  transform: translateY(0) scale(1);
}

.video-lightbox__content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  outline: none;
}

.case-hero__content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.case-hero__subtitle {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  color: var(--color-green);
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.case-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-64);
  line-height: 1.1;
  margin-bottom: 32px;
}

.case-hero__tags {
  margin-top: 16px;
}

.case-hero__image {
  flex: 1;
  max-width: 50%;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.case-hero__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.case-overview {
  width: 100%;
  padding: 0 var(--sp-32);
}

.case-overview__grid {
  display: flex;
  gap: 80px;
  border-top: 1px solid var(--color-border);
  padding-top: 48px;
  align-items: flex-start;
}

.case-overview__image {
  flex: 0 0 30%;
  max-width: 400px;
}

.case-overview__image img {
  width: 100%;
  height: auto;
  display: block;
}

.case-overview__content {
  display: flex;
  flex-direction: column;
  gap: 64px;
  flex: 1;
}

.case-overview__label {
  font-family: var(--font-display);
  font-size: var(--fs-32);
  color: var(--color-muted);
  margin-bottom: 16px;
}

.case-overview__text {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.5;
  color: var(--color-white);
}



/* ── PROJECT SUMMARY ───────────────────────────────────── */
.case-summary {
  width: 100%;
}

.case-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.summary-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-case);
  border-radius: 40px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
  min-height: 240px;
}

.summary-card:hover {
  transform: translateY(-8px);
  border-color: rgba(112, 255, 197, 0.4);
}

.summary-card__number {
  font-family: var(--font-display);
  font-size: var(--fs-64);
  font-weight: 700;
  line-height: 1;
}

.summary-card__text {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  color: var(--color-white-50);
  line-height: 1.4;
  max-width: 200px;
}

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

@media (max-width: 600px) {
  .case-summary__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .summary-card {
    padding: 32px 24px;
    min-height: auto;
  }
}

.case-matrix {
  width: 100%;
  padding: 0 var(--sp-32);
}

.case-matrix__heading {
  font-family: var(--font-display);
  font-size: var(--fs-86);
  line-height: 1.1;
  text-align: center;
  margin-bottom: 80px;
}

.case-matrix__heading-sub {
  font-size: var(--fs-32);
  color: var(--color-muted);
}

/* ── BENTO GRID ───────────────────────────────────── */
.case-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

.bento-card {
  background: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(162deg, #70ffc5, #635fff);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card--large {
  grid-column: span 2;
}

.bento-card__content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  flex: 1;
}

.bento-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-40);
  line-height: 1.1;
  color: var(--color-white);
}

.bento-card__desc {
  font-family: var(--font-body);
  font-size: var(--fs-18);
  line-height: 1.4;
  color: var(--color-muted);
  transition: color 0.3s ease;
}

.bento-card:hover .bento-card__desc {
  color: var(--color-white);
}

.bento-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-border);
  overflow: hidden;
}

.bento-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.bento-card:hover .bento-card__image img {
  transform: scale(1.05);
}

/* Specific alignments for split cards */
.bento-card--horizontal {
  flex-direction: row;
}

.bento-card--horizontal .bento-card__content {
  width: 50%;
}

.bento-card--horizontal .bento-card__image {
  width: 50%;
  aspect-ratio: unset;
}

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

  .bento-card--large {
    grid-column: span 1;
  }

  .bento-card--horizontal {
    flex-direction: column;
  }

  .bento-card--horizontal .bento-card__content,
  .bento-card--horizontal .bento-card__image {
    width: 100%;
  }
}

/* ── NEW VERTICAL MATRIX SEQUENCE ─────────────────────────────── */

.case-matrix-seq {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.matrix-seq__text-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.matrix-seq__title {
  font-family: var(--font-display);
  font-size: var(--fs-54);
  font-weight: 700;
  line-height: 1.1;
}

.matrix-seq__title-sub {
  color: var(--color-green);
  font-size: var(--fs-32);
}

.matrix-seq__desc {
  font-family: var(--font-body);
  font-size: var(--fs-24);
  line-height: 1.3;
  color: var(--color-muted);
}

.matrix-seq__metric {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  line-height: 1.3;
  color: var(--color-green);
  text-align: center;
  margin-top: 16px;
  padding: 24px 32px;
  border-radius: 12px;

  /* Initial state: solid border */
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);

  /* Set up for gradient border overlay on hover */
  position: relative;
}

.matrix-seq__metric::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  /* border thickness */
  background: linear-gradient(162deg, #70ffc5, #635fff);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.matrix-seq__metric:hover::before {
  opacity: 1;
}

.matrix-seq__metric:hover {
  /* Hide the static border when the gradient pseudo-element is visible */
  border-color: transparent;
}

.matrix-seq__image {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  justify-content: center;
  background: var(--color-border);
  /* Placeholder background if image is slow */
}

.matrix-seq__image img {
  width: 100%;
  height: auto;
  display: block;
}

.matrix-seq__slider {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Stack the images tightly together */
}

.matrix-card__icon {
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
}

.matrix-card__icon img {
  width: 100%;
  object-fit: cover;
}

.impact-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  padding: 80px var(--sp-32);
}

.impact-bento__card {
  background: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.impact-bento__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(162deg, #70ffc5, #635fff);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.impact-bento__card:hover {
  transform: translateY(-5px);
  border-color: transparent;
}

.impact-bento__card:hover::before {
  opacity: 1;
}

.impact-bento__card--number {
  align-items: center;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.impact-bento__card--image {
  padding: 0;
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.impact-bento__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.impact-bento__card--text {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  justify-content: flex-start;
}

.case-impact__huge-number {
  font-family: var(--font-display);
  font-size: clamp(60px, 12vw, 150px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.case-impact__huge-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-impact__huge-title {
  font-family: var(--font-display);
  font-size: var(--fs-54);
  line-height: 1.1;
  color: var(--color-white);
}

.case-impact__huge-text {
  font-family: var(--font-body);
  font-size: var(--fs-24);
  line-height: 1.5;
  color: var(--color-muted);
  transition: color 0.3s ease;
}

.impact-bento__card:hover .case-impact__huge-text {
  color: var(--color-white);
}

.case-carousel-section {
  width: 100%;
  padding-bottom: 40px;
}

/* ── NEW FULL VIDEOS SECTION ──────────────────────── */
.case-video-split {
  margin: 120px 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: var(--color-bg);
  padding: 80px 5vw;
}

.case-video-split__block {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.case-video-split__heading {
  font-family: var(--font-display);
  font-size: var(--fs-54);
  text-align: center;
}

.case-video-split__player {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.case-video-split__player video {
  width: 100%;
  height: auto;
  display: block;
}

/* ── BEYOND THE SHOWCASE ──────────────────────────── */
.case-beyond {
  padding: 80px var(--sp-32);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.case-beyond__heading {
  text-align: center;
}

.case-beyond__sub {
  font-size: clamp(24px, 4vw, var(--fs-32));
  color: var(--color-green);
  display: block;
  margin-top: 8px;
}

.case-beyond__avatar-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 2px solid var(--color-border);
}

.case-beyond__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-beyond__content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.case-beyond__block {
  width: 100%;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
}

.case-beyond__block::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(162deg, #70ffc5, #635fff);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.case-beyond__text {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-white);
  text-align: center;
}

.case-beyond__text--hover {
  color: var(--color-muted);
  transition: color 0.4s ease;
}

.case-beyond__block:hover .case-beyond__text--hover {
  color: var(--color-white);
}

@keyframes fadeToGray {
  0% {
    color: var(--color-white);
  }

  50% {
    color: var(--color-white);
  }

  100% {
    color: var(--color-muted);
  }
}

.fade-gray-char {
  animation: fadeToGray 2.5s forwards;
}

.case-beyond__divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: 16px 0;
}

.case-bottom-nav {
  display: flex;
  justify-content: center;
  padding: 80px 0;
}

@media (max-width: 1024px) {
  .case-hero {
    flex-direction: column;
  }

  .case-hero__content,
  .case-hero__image {
    max-width: 100%;
    width: 100%;
  }

  .case-overview__grid {
    flex-direction: column;
    gap: 48px;
  }

  .case-overview__image {
    max-width: 100%;
    margin: 0 auto;
  }

  .case-matrix__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-impact__huge {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
}

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

  .span-col-2 {
    grid-column: span 1;
  }
}

/* Visibility tweaks for Tools and Skill Tree */
@media (min-width: 769px) {
  .tools__rows {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .skill-tree-section {
    display: none !important;
  }
}

/* Added for Case 3 Timeline Animation */
@keyframes progressAnim {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }

  50% {
    transform: scaleX(1);
    transform-origin: left;
  }

  50.001% {
    transform: scaleX(1);
    transform-origin: right;
  }

  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

/* ---- Animated Venn Diagram ---- */
.venn-wrapper {
  position: relative;
  width: 600px;
  height: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.venn-circle {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: var(--pb-font-text);
  color: #fff;
  mix-blend-mode: screen;
  backdrop-filter: blur(8px);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease;
  opacity: 0;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5) inset;
}

.venn-circle__title {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.venn-circle__desc {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.8;
}

.venn-circle--business {
  border: 2px solid rgba(112, 255, 197, 0.6);
  background: rgba(112, 255, 197, 0.05);
  transform: translate(-100px, -100px);
}

.venn-circle--analytics {
  border: 2px solid rgba(99, 95, 255, 0.6);
  background: rgba(99, 95, 255, 0.05);
  transform: translate(100px, -100px);
}

.venn-circle--design {
  border: 2px solid rgba(255, 95, 160, 0.6);
  background: rgba(255, 95, 160, 0.05);
  transform: translate(-100px, 100px);
}

.venn-circle--engineering {
  border: 2px solid rgba(157, 95, 255, 0.6);
  background: rgba(157, 95, 255, 0.05);
  transform: translate(100px, 100px);
}

/* Animations Triggered by parent's .is-visible */
.is-visible .venn-circle--business {
  transform: translate(-60px, -60px);
  opacity: 1;
}

.is-visible .venn-circle--analytics {
  transform: translate(60px, -60px);
  opacity: 1;
}

.is-visible .venn-circle--design {
  transform: translate(-60px, 60px);
  opacity: 1;
}

.is-visible .venn-circle--engineering {
  transform: translate(60px, 60px);
  opacity: 1;
}

.venn-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  text-align: center;
  font-family: var(--pb-font-head);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: #fff;
  width: 250px;
  z-index: 10;
  opacity: 0;
  transition: opacity 1s ease 1s, transform 1s cubic-bezier(0.22, 1, 0.36, 1) 1s;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
}

.is-visible .venn-center {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.venn-center-text {
  background-image: linear-gradient(90deg, #70ffc5, #635fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .venn-wrapper {
    width: 100%;
    height: 400px;
    transform: scale(0.6);
  }
}