/* Atharva footer — Figma 219:12376 + name reveal */

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

.demo-page {
  --footer-reveal-gap: -230px;
  --footer-inset: 20px;
  --footer-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
  color: #fdfdfd;
  font-family: "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Inset card on site pages. footer.html stays edge-to-edge. */
html:not(.footer-demo) .demo-page {
  width: calc(100% - (var(--footer-inset) * 2));
  margin: 0 var(--footer-inset) var(--footer-inset);
  border-radius: var(--footer-radius);
  overflow: hidden;
  background: #000;
}

html.footer-demo,
html.footer-demo body {
  min-height: 100%;
  margin: 0;
  background: #010101;
}

/* ——— Upper panel (Figma footer) ——— */

.footer-panel {
  position: relative;
  isolation: isolate;
  z-index: 2;
  flex: 0 0 auto;
  margin-bottom: var(--footer-reveal-gap);
  background: #000;
  padding: 84px clamp(20px, 2.5vw, 32px) 0;
  overflow: visible;
}

.footer-panel__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 74px;
}

.footer-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 48px);
  padding-inline: clamp(0px, 2.5vw, 44px);
}

.footer-panel__hero {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.6vh, 36px);
  max-width: 661px;
}

.footer-panel__headline {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.footer-panel__headline-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12.882px;
  overflow: visible;
  font-family: "Geist", system-ui, sans-serif;
  font-size: clamp(32px, 3.17vw, 54.748px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.044em;
  text-transform: uppercase;
  color: #fff;
}

.footer-panel__headline-line:last-child {
  letter-spacing: -0.06em;
}

.footer-panel__folder-wrap {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  align-self: flex-end;
  width: clamp(52px, 4.54vw, 78.335px);
  min-width: 52px;
  min-height: 48px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  vertical-align: bottom;
  overflow: visible;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.footer-panel__folder-wrap:focus-visible {
  outline: 2px solid rgba(253, 253, 253, 0.85);
  outline-offset: 6px;
  border-radius: 10px;
}

.footer-panel__folder-scene {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 78.335 / 61.2;
  min-height: 48px;
  transform-origin: 50% 88%;
  transition:
    transform 520ms cubic-bezier(0.22, 1.15, 0.32, 1),
    filter 520ms cubic-bezier(0.22, 1.15, 0.32, 1);
}

.footer-panel__folder-wrap:hover .footer-panel__folder-scene,
.footer-panel__folder-wrap:focus-visible .footer-panel__folder-scene,
.footer-panel__folder-wrap.is-open .footer-panel__folder-scene {
  transform: translateY(-3px) scale(1.04) rotate(-2deg);
  filter: drop-shadow(0 10px 18px rgba(52, 89, 254, 0.35));
}

.footer-panel__folder-back,
.footer-panel__folder-front,
.footer-panel__folder-mark {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.footer-panel__folder-back {
  top: 0;
  z-index: 1;
  width: 100%;
  height: auto;
}

.footer-panel__folder-front {
  top: 17%;
  z-index: 3;
}

.footer-panel__folder-mark {
  left: 50%;
  top: 58%;
  z-index: 4;
  width: 23.7%;
  transform: translate(-50%, -50%);
}

.footer-panel__folder-burst {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.footer-panel__tool {
  position: absolute;
  display: block;
  width: 26.8%;
  opacity: 0;
  transform: translate(-50%, 0) scale(0.12) rotate(0deg);
  transform-origin: 50% 100%;
  transition:
    opacity 520ms cubic-bezier(0.22, 1.15, 0.32, 1),
    left 520ms cubic-bezier(0.22, 1.15, 0.32, 1),
    top 520ms cubic-bezier(0.22, 1.15, 0.32, 1),
    transform 520ms cubic-bezier(0.22, 1.15, 0.32, 1),
    width 520ms cubic-bezier(0.22, 1.15, 0.32, 1);
  left: 50%;
  top: 24%;
}

.footer-panel__tool--claude {
  transition-delay: 180ms;
}

.footer-panel__tool--cursor {
  transition-delay: 110ms;
}

.footer-panel__tool.footer-panel__tool--codex {
  width: 26.8%;
  transition-delay: 40ms;
}

.footer-panel__tool img,
.footer-panel__tool-tile {
  display: block;
  width: 100%;
  height: auto;
}

.footer-panel__tool-tile--codex {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 16.5%;
  background: #fff;
}

.footer-panel__tool-tile--codex img {
  width: 59%;
  height: auto;
}

.footer-panel__folder-wrap:hover .footer-panel__tool--claude,
.footer-panel__folder-wrap:focus-visible .footer-panel__tool--claude,
.footer-panel__folder-wrap.is-open .footer-panel__tool--claude {
  opacity: 1;
  left: 2.5%;
  top: -11.6%;
  transform: translate(0, 0) scale(1) rotate(-13.17deg);
  transition-delay: 40ms;
}

.footer-panel__folder-wrap:hover .footer-panel__tool--cursor,
.footer-panel__folder-wrap:focus-visible .footer-panel__tool--cursor,
.footer-panel__folder-wrap.is-open .footer-panel__tool--cursor {
  opacity: 1;
  left: 34%;
  top: -14.1%;
  transform: translate(0, 0) scale(1) rotate(0deg);
  transition-delay: 110ms;
}

.footer-panel__folder-wrap:hover .footer-panel__tool--codex,
.footer-panel__folder-wrap:focus-visible .footer-panel__tool--codex,
.footer-panel__folder-wrap.is-open .footer-panel__tool--codex {
  opacity: 1;
  left: 60.1%;
  top: -13.5%;
  width: 32.4%;
  transform: translate(0, 0) scale(1) rotate(13.95deg);
  transition-delay: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  .footer-panel__folder-scene,
  .footer-panel__tool,
  .footer-panel__copy-icon svg,
  .footer-panel__check-glyph path,
  .footer-panel__btn-label-default,
  .footer-panel__btn-label-success {
    transition: none;
  }

  .footer-panel__btn--email.is-copied .footer-panel__copy-icon::after {
    animation: none;
  }

  .footer-panel__folder-wrap:hover .footer-panel__tool,
  .footer-panel__folder-wrap:focus-visible .footer-panel__tool,
  .footer-panel__folder-wrap.is-open .footer-panel__tool {
    opacity: 1;
    left: 34%;
    top: -13%;
    transform: translate(0, 0) scale(1);
  }
}

.footer-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 64px;
  padding: 8px 16px;
  border: 0;
  border-radius: 9999px;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.footer-panel__btn:hover {
  transform: translateY(-1px);
}

.footer-panel__btn-arrow {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  transform: rotate(180deg);
}

.footer-panel__btn--email {
  background: #fff;
  color: #202020;
  box-shadow:
    0 -0.5px 0 rgba(0, 0, 0, 0.07),
    0 0 0 rgba(0, 0, 0, 0.06),
    0 1px 1px rgba(0, 0, 0, 0.06),
    0 2px 2px rgba(0, 0, 0, 0.04);
  transition:
    transform 220ms ease,
    color 380ms ease,
    background-color 380ms ease,
    box-shadow 380ms ease;
}

.footer-panel__btn--email.is-copied {
  color: #087a35;
  background: #effbf3;
  box-shadow:
    0 0 0 1px rgba(8, 122, 53, 0.1),
    0 4px 12px rgba(8, 122, 53, 0.12);
}

.footer-panel__btn-label {
  display: grid;
  overflow: hidden;
  text-align: left;
}

.footer-panel__btn-label-default,
.footer-panel__btn-label-success {
  grid-area: 1 / 1;
  justify-self: start;
  transition:
    opacity 300ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-panel__btn-label-default {
  opacity: 1;
  transform: translateY(0);
}

.footer-panel__btn-label-success {
  opacity: 0;
  transform: translateY(70%);
}

.footer-panel__btn--email.is-copied .footer-panel__btn-label-default {
  opacity: 0;
  transform: translateY(-70%);
}

.footer-panel__btn--email.is-copied .footer-panel__btn-label-success {
  opacity: 1;
  transform: translateY(0);
}

.footer-panel__copy-icon {
  position: relative;
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.footer-panel__copy-icon svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transition:
    opacity 320ms ease,
    transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-panel__check-glyph {
  opacity: 0;
  transform: scale(0.72) rotate(-8deg);
}

.footer-panel__check-glyph path {
  stroke-dasharray: 15;
  stroke-dashoffset: 15;
  transition: stroke-dashoffset 380ms ease;
}

.footer-panel__copy-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  color: #20a75a;
  opacity: 0;
  pointer-events: none;
  box-shadow:
    0 -11px currentColor,
    10px -5px currentColor,
    10px 6px currentColor,
    0 11px currentColor,
    -10px 6px currentColor,
    -10px -5px currentColor;
}

.footer-panel__btn--email.is-copied .footer-panel__copy-glyph {
  opacity: 0;
  transform: scale(0.78) rotate(7deg);
}

.footer-panel__btn--email.is-copied .footer-panel__check-glyph {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.footer-panel__btn--email.is-copied .footer-panel__check-glyph path {
  stroke-dashoffset: 0;
  transition-delay: 80ms;
}

.footer-panel__btn--email.is-copied .footer-panel__copy-icon::after {
  animation: footer-copy-spark 500ms ease-out;
}

@keyframes footer-copy-spark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(0);
  }
  35% { opacity: 0.9; }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.35) rotate(20deg);
  }
}

.footer-panel__btn--resume {
  position: relative;
  isolation: isolate;
  color: #fcfcfc;
  background: #004df4;
  box-shadow:
    0 1.5px 2px rgba(0, 0, 0, 0.1),
    inset 0 0 1px rgba(255, 255, 255, 0.06);
}

.footer-panel__links {
  display: flex;
  flex-direction: column;
  width: min(100%, 445px);
  flex: 0 0 auto;
}

.footer-panel__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(253, 253, 253, 0.16);
  color: #fdfdfd;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.footer-panel__link:hover {
  opacity: 0.82;
}

.footer-panel__link-main {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.footer-panel__link-label {
  font-family: "Geist", system-ui, sans-serif;
  font-size: clamp(16px, 1.18vw, 20.387px);
  font-weight: 400;
  letter-spacing: -0.3186px;
  line-height: 1.2;
}

.footer-panel__link-arrow {
  flex: 0 0 auto;
  font-size: 16.31px;
  line-height: 1;
  color: rgba(253, 253, 253, 0.5);
}

.footer-panel__icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  border-radius: 7px;
  overflow: hidden;
}

.footer-panel__icon img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.footer-panel__icon--white {
  background: #fff;
}

.footer-panel__icon--linkedin {
  background: #0a66c2;
}

.footer-panel__icon--twitter {
  padding: 0;
  background: transparent;
}

.footer-panel__icon--twitter img {
  width: 45px;
  height: 45px;
  max-width: none;
  max-height: none;
}

.footer-panel__icon--behance {
  background: #0556fe;
}

.footer-panel__divider {
  width: 100%;
  line-height: 0;
}

.footer-panel__divider img {
  display: block;
  width: 100%;
  height: auto;
}

/* ——— Name reveal (unchanged) ——— */

.name-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 0 0 auto;
  height: max(220px, calc(100vw * 835.296 / 1919.404));
  overflow: clip;
  background: #010101;
}

html:not(.footer-demo) .name-footer {
  height: max(220px, calc((100vw - (var(--footer-inset) * 2)) * 835.296 / 1919.404));
}

.name-footer__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: none;
}

.name-footer__stage.is-idle {
  cursor: default;
}

.name-footer__media {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1920 / 1080;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  visibility: hidden;
}

.name-footer__media.is-ready {
  visibility: visible;
}

.name-footer__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.name-footer__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.name-footer__cursor {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 1.5px solid rgba(253, 253, 253, 0.85);
  border-radius: 50%;
  background: rgba(253, 253, 253, 0.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  mix-blend-mode: difference;
}

.name-footer__cursor.is-active {
  opacity: 1;
}

.name-footer__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #010101;
  color: rgba(253, 253, 253, 0.72);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.name-footer__fallback[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .name-footer__stage {
    cursor: default;
  }

  .name-footer__cursor {
    display: none;
  }
}

@media (max-width: 960px) {
  .footer-panel__row {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 0;
  }

  .footer-panel__hero,
  .footer-panel__links {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .footer-panel {
    padding-top: 84px;
  }

  .footer-panel__inner {
    gap: 48px;
  }

  .footer-panel__headline-line {
    font-size: clamp(28px, 8.5vw, 40px);
  }

  .footer-panel__btn {
    font-size: 14px;
    padding: 8px 14px;
  }

  .footer-panel__link-label {
    font-size: 16px;
  }
}

@media (max-height: 700px) and (min-width: 721px) {
  .footer-panel__hero {
    gap: 24px;
  }

  .footer-panel__headline-line {
    font-size: clamp(28px, 3vw, 44px);
  }
}
