/* About page — Resumx-inspired layout (profile | intro + stack | marquee) */

:root {
  --about-gutter: max(24px, calc((100vw - 1200px) / 2));
  --about-marquee-col: 56px;
  --about-profile-col: minmax(300px, 340px);
  --about-content-col: minmax(480px, 580px);
  --about-content-max: 580px;
  --about-top-offset: 88px;
  --about-edge-top-inset: 24px;
  --about-stack-bottom-inset: 24px;
  --about-column-gap-min: clamp(40px, 5vw, 80px);
  --about-label: rgba(255, 255, 255, 0.42);
  --about-text: rgba(255, 255, 255, 0.88);
  --about-text-muted: rgba(255, 255, 255, 0.62);
  --about-border: rgba(255, 255, 255, 0.1);
  --about-pill-bg: rgba(255, 255, 255, 0.04);
}

@media (min-width: 1200px) {
  html:has(#about-profile-sidebar),
  html:has(#about-profile-sidebar) body {
    overflow: hidden;
    height: 100%;
  }

  html:has(#about-profile-sidebar) #main {
    max-height: 100vh;
    overflow: hidden;
  }
}

#about-profile-sidebar {
  display: none;
}

@media (min-width: 1200px) {
  .framer-U4W3a.framer-denm5y {
    display: grid !important;
    grid-template-columns:
      var(--about-profile-col)
      minmax(var(--about-column-gap-min), 1fr)
      var(--about-content-col)
      minmax(var(--about-column-gap-min), 1fr)
      var(--about-marquee-col);
    column-gap: 0;
    width: 100% !important;
    max-width: none !important;
    height: 100vh !important;
    min-height: 0 !important;
    max-height: 100vh !important;
    padding: 0 var(--about-gutter) var(--about-stack-bottom-inset) !important;
    margin: 0 !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #about-profile-sidebar {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    gap: 16px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding-top: var(--about-edge-top-inset);
    padding-right: 0;
    overflow: visible;
  }

  #about-content-column {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    max-width: var(--about-content-max);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: stretch;
    min-height: 0;
    overflow: hidden;
    padding-top: calc(var(--about-top-offset) + 16px);
    padding-right: 0;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  .about-intro-block {
    flex: 0 0 auto;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    max-width: var(--about-content-max);
  }

  .about-stack-block {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    width: 100%;
    max-width: var(--about-content-max);
    padding-top: 0;
    padding-bottom: 0;
    background: none;
  }

  #about-stack-tags {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    height: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  #about-stack-tags.about-stack-tag-pit {
    padding: 0;
    overflow: hidden;
    background: #000000;
  }

  .about-stack-tag-pit__layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
  }

  .about-stack-tag--physics {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px 7px 11px;
    border: 1px solid #4192f0;
    border-radius: 999px;
    background: #000000;
    box-shadow: 0 0 0 1px rgba(65, 146, 240, 0.15);
    transform-origin: center center;
    user-select: none;
    white-space: nowrap;
    position: absolute;
    top: 0;
    left: 0;
  }

  .about-stack-tag--physics .about-stack-tag__icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
  }

  .about-stack-tag--physics .about-stack-tag__label {
    font-family: "Inclusive Sans", "Inter", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #ffffff;
  }

  .about-stack-tag-pit__icon {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
  }

  .framer-U4W3a .framer-190jxo4 {
    display: none !important;
  }

  .framer-U4W3a .framer-1ja41fk {
    grid-column: 5;
    grid-row: 1;
    width: var(--about-marquee-col) !important;
    min-width: var(--about-marquee-col) !important;
    max-width: var(--about-marquee-col) !important;
    align-self: stretch !important;
    height: calc(100vh - var(--about-stack-bottom-inset)) !important;
    min-height: 0 !important;
    max-height: calc(100vh - var(--about-stack-bottom-inset)) !important;
    position: relative !important;
    top: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: unset !important;
  }

  .framer-U4W3a .framer-1t8nl67-container {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .framer-U4W3a .framer-1t8nl67-container section {
    height: 100% !important;
    min-height: 0 !important;
    opacity: 1 !important;
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 0,
      rgba(0, 0, 0, 1) calc(100% - 20px),
      rgba(0, 0, 0, 0) 100%
    ) !important;
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 0,
      rgba(0, 0, 0, 1) calc(100% - 20px),
      rgba(0, 0, 0, 0) 100%
    ) !important;
  }
}

/* Profile sidebar */
.about-profile__top {
  padding-top: 0;
}

.about-profile__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}

.about-profile__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-profile__name {
  margin: 34px 0 0;
  font-family: "Inclusive Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  cursor: default;
  width: fit-content;
}

.about-profile__name.shuffle-parent {
  white-space: nowrap;
}

.about-profile__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-profile__top + .about-profile__block {
  margin-top: 20px;
}

.about-profile__block + .about-profile__block {
  margin-top: 24px;
}

.about-profile__label {
  margin: 0;
  font-family: "Inclusive Sans", "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--about-label);
}

.about-profile__text {
  margin: 0;
  font-family: "Inclusive Sans", "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--about-text-muted);
}

.about-profile__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-profile__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inclusive Sans", "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--about-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.about-profile__contact a:hover {
  color: #4192f0;
}

.about-profile__contact svg {
  flex-shrink: 0;
  opacity: 0.55;
}

.about-profile__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-profile__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--about-border);
  border-radius: 999px;
  background: var(--about-pill-bg);
  font-family: "Inclusive Sans", "Inter", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1;
  color: var(--about-text);
  white-space: nowrap;
}

.about-profile__pill-flag {
  font-size: 14px;
  line-height: 1;
}

/* Content column */
#about-content-column {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.about-section-label {
  margin: 0 0 10px;
  font-family: "Inclusive Sans", "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--about-label);
}

.about-intro-block .framer-lq542c,
.about-stack-block .framer-8w7x4d {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.about-intro-block .framer-lq542c p {
  font-family: "Inclusive Sans", "Inter", system-ui, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--about-text) !important;
  margin-bottom: 0.75em !important;
}

.about-intro-block .framer-lq542c p:last-child {
  margin-bottom: 0 !important;
}

.about-intro-block .framer-lq542c a {
  color: #4192f0 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-stack-block .framer-qyy59j h3 {
  display: none !important;
}

.about-stack-block .about-section-label {
  margin-bottom: 6px;
  flex: 0 0 auto;
}

.about-stack-block .framer-8w7x4d {
  display: none !important;
}

#about-stack-tags {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

#about-stack-tags.about-stack-tag-pit {
  padding: 0;
  overflow: hidden;
  background: #000000;
}

.about-stack-tag-pit__layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.about-stack-tag--physics {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 11px;
  border: 1px solid #4192f0;
  border-radius: 999px;
  background: #000000;
  box-shadow: 0 0 0 1px rgba(65, 146, 240, 0.15);
  transform-origin: center center;
  user-select: none;
  white-space: nowrap;
  position: absolute;
  top: 0;
  left: 0;
}

.about-stack-tag--physics .about-stack-tag__icon {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

.about-stack-tag--physics .about-stack-tag__label {
  font-family: "Inclusive Sans", "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.about-stack-tag-pit__icon {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* Hide duplicate header (avatar/name moved to sidebar) */
.framer-U4W3a .framer-emjdbp {
  display: none !important;
}

.framer-U4W3a .framer-uucwd {
  width: 100% !important;
  max-width: none !important;
  gap: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

.framer-U4W3a .framer-190jxo4 {
  align-items: flex-start !important;
  height: auto !important;
  overflow: visible !important;
}

/* Tablet / mobile */
@media (max-width: 1199.98px) {
  .framer-U4W3a[data-framer-root] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .framer-U4W3a.framer-denm5y,
  .framer-U4W3a.framer-6ehqpa {
    padding: 100px 24px 60px !important;
    justify-content: center !important;
  }

  #about-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 40px;
  }

  #about-content-column {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .framer-U4W3a .framer-190jxo4 {
    display: none !important;
  }

  .framer-U4W3a .framer-1ja41fk {
    display: none !important;
  }
}

@media (max-width: 809.98px) {
  .framer-U4W3a.framer-denm5y,
  .framer-U4W3a.framer-6ehqpa,
  .framer-U4W3a.framer-183oi0r {
    padding-top: 88px !important;
  }
}
