/* Delexo components: actions, icon buttons, notes, prose, tabs and lists. */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  max-width: 640px;
}

body[data-view="project"] .actions { margin-top: 28px; }

.actions.fresh > * {
  animation: fade 0.45s var(--ease) both;
}

.actions.fresh > :nth-child(2) { animation-delay: 0.04s; }
.actions.fresh > :nth-child(3) { animation-delay: 0.08s; }
.actions.fresh > :nth-child(4) { animation-delay: 0.12s; }
.actions.fresh > :nth-child(5) { animation-delay: 0.16s; }
.actions.fresh > :nth-child(6) { animation-delay: 0.2s; }
.actions.fresh > :nth-child(7) { animation-delay: 0.24s; }
.actions.fresh > :nth-child(8) { animation-delay: 0.28s; }
.actions.fresh > :nth-child(9) { animation-delay: 0.32s; }
.actions.fresh > :nth-child(10) { animation-delay: 0.36s; }

.icon-btn {
  position: relative;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--btn);
  display: grid;
  place-items: center;
  padding: 0;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(20, 20, 20, 0.06), 0 1px 2px rgba(20, 20, 20, 0.04);
  transition: translate 0.35s var(--ease), box-shadow 0.62s cubic-bezier(0.4, 0, 0.2, 1), background 0.62s cubic-bezier(0.4, 0, 0.2, 1), color 0.62s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.62s cubic-bezier(0.4, 0, 0.2, 1), scale 0.2s var(--ease);
}

.icon-btn svg { width: 26px; height: 26px; display: block; }

.icon-btn .github-mark { width: 23px; height: 23px; }

.icon-btn img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.social-row .icon-btn img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
}

.icon-btn:hover {
  translate: 0 -2px;
  box-shadow: 0 14px 28px rgba(20, 20, 20, 0.08);
  color: var(--ink);
}

.icon-btn:active { scale: 0.96; }

.icon-btn.back {
  border-radius: 50%;
  background: #111;
  color: #fff;
  box-shadow: none;
}

.icon-btn.back:hover { background: #000; }

.icon-btn.is-on {
  border-radius: 31px;
  background: #111;
  color: #fff;
}

.tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  translate: -50% 4px;
  background: #111;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), translate 0.2s var(--ease);
}

.icon-btn:hover .tip,
.icon-btn:focus-visible .tip,
.icon-btn.is-copied .tip {
  opacity: 1;
  translate: -50% 0;
}

.note { 
  max-width: 420px;
  margin: 20px 0 0;
  color: #8d8d8d;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
}

.note-kicker {
  display: block;
  font-size: 15px;
  color: #6e6e6e;
}

.note-body {
  margin: 0;
  max-width: 440px;
  font-size: 15px;
  line-height: 1.55;
  color: #8d8d8d;
}

.note-facts {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
}

.note-facts li {
  flex: 0 1 auto;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 20, 20, 0.05);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #5f5f5f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-view="project"] #role {
  display: none;
}

.note.show { animation: rise 0.45s var(--ease) both; }

/* After the project card finishes morphing up, bring in the chrome beneath it. */
body[data-view="project"].is-project-await #title,
body[data-view="project"].is-project-await #note,
body[data-view="project"].is-project-await #actions,
body[data-view="project"].is-project-await #dots,
body[data-view="project"].is-flipping #title,
body[data-view="project"].is-flipping #note,
body[data-view="project"].is-flipping #actions,
body[data-view="project"].is-flipping #dots {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
  animation: none !important;
  transition: none !important;
}

body[data-view="project"].is-project-await #dots .dot,
body[data-view="project"].is-flipping #dots .dot {
  opacity: 0 !important;
  transform: none !important;
  transition: none !important;
}

body[data-view="project"].is-project-await #title.swap,
body[data-view="project"].is-project-await .note.show,
body[data-view="project"].is-flipping #title.swap,
body[data-view="project"].is-flipping .note.show {
  animation: none !important;
}

body[data-view="project"].is-project-reveal #dots,
body[data-view="project"].is-project-reveal #title,
body[data-view="project"].is-project-reveal #note,
body[data-view="project"].is-project-reveal #actions {
  animation: rise 0.48s var(--ease) both;
}

body[data-view="project"].is-project-reveal #dots { animation-delay: 0.02s; }
body[data-view="project"].is-project-reveal #title { animation-delay: 0.08s; }
body[data-view="project"].is-project-reveal #note { animation-delay: 0.14s; }
body[data-view="project"].is-project-reveal #actions { animation-delay: 0.2s; }

body[data-view="project"].is-project-reveal #title.swap,
body[data-view="project"].is-project-reveal .note.show {
  animation: rise 0.48s var(--ease) both;
}

body[data-view="project"].is-project-reveal #title.swap { animation-delay: 0.08s; }
body[data-view="project"].is-project-reveal .note.show { animation-delay: 0.14s; }

.lower { margin-top: auto; }

body[data-view="profile"] .lower,
body[data-view="skills"] .lower,
body[data-view="certs"] .lower,
body[data-view="stack"] .lower {
  margin-top: 88px;
  text-align: left;
}

.lower.fresh { animation: infoUp 0.55s var(--ease) both; }

@media (min-width: 981px) {
  .lower.is-out .prose p,
  .more.is-out .branch {
    animation: sink 0.4s var(--ease) both;
  }

  .lower.is-out .prose p:nth-child(2) { animation-delay: 0.04s; }
  .more.is-out .branch:nth-child(1) { animation-delay: 0.06s; }
  .more.is-out .branch:nth-child(2) { animation-delay: 0.1s; }
  .more.is-out .branch:nth-child(3) { animation-delay: 0.14s; }
  .more.is-out .branch:nth-child(4) { animation-delay: 0.18s; }

  .more.is-swap-in .branch {
    animation: fade 0.35s var(--ease) both;
  }

  .more.is-swap-in .branch:nth-child(1) { animation-delay: 0.02s; }
  .more.is-swap-in .branch:nth-child(2) { animation-delay: 0.05s; }
  .more.is-swap-in .branch:nth-child(3) { animation-delay: 0.08s; }
  .more.is-swap-in .branch:nth-child(4) { animation-delay: 0.11s; }

  /* Speed up exits during Profile <-> Links swaps only — never crush the Links entrance. */
  body.is-cluster-swapping .social-row.is-out > *,
  body.is-cluster-swapping .lower.is-out .prose p,
  body.is-cluster-swapping .more.is-out .branch {
    animation-duration: 0.22s;
    animation-delay: 0s !important;
  }
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  max-width: 420px;
}

.social-row[hidden] { display: none !important; }

/* Never let Links render outside the Links view (prevents floating icon leftovers). */
body:not([data-view="socials"]) #social-row {
  display: none !important;
}

.social-row.is-in > * {
  animation: rise 0.38s var(--ease) both;
}

.social-row.is-in > :nth-child(2) { animation-delay: 0.03s; }
.social-row.is-in > :nth-child(3) { animation-delay: 0.06s; }
.social-row.is-in > :nth-child(4) { animation-delay: 0.09s; }
.social-row.is-in > :nth-child(5) { animation-delay: 0.12s; }
.social-row.is-in > :nth-child(6) { animation-delay: 0.15s; }
.social-row.is-in > :nth-child(7) { animation-delay: 0.18s; }
.social-row.is-in > :nth-child(8) { animation-delay: 0.21s; }
.social-row.is-in > :nth-child(9) { animation-delay: 0.24s; }

@media (min-width: 981px) {
  body[data-view="socials"] .social-row {
    margin-top: 20px;
    gap: 14px;
  }

  body[data-view="socials"] .social-row.is-in > * {
    animation: rise 0.42s var(--ease) both;
  }

  body[data-view="socials"] .social-row.is-in > :nth-child(1) { animation-delay: 0.2s; }
  body[data-view="socials"] .social-row.is-in > :nth-child(2) { animation-delay: 0.26s; }
  body[data-view="socials"] .social-row.is-in > :nth-child(3) { animation-delay: 0.32s; }
  body[data-view="socials"] .social-row.is-in > :nth-child(4) { animation-delay: 0.38s; }
  body[data-view="socials"] .social-row.is-in > :nth-child(5) { animation-delay: 0.44s; }
  body[data-view="socials"] .social-row.is-in > :nth-child(6) { animation-delay: 0.5s; }
  body[data-view="socials"] .social-row.is-in > :nth-child(7) { animation-delay: 0.56s; }
  body[data-view="socials"] .social-row.is-in > :nth-child(8) { animation-delay: 0.62s; }
  body[data-view="socials"] .social-row.is-in > :nth-child(9) { animation-delay: 0.68s; }

  body[data-view="socials"] .social-row.is-out > * {
    animation: sink 0.4s var(--ease) both;
  }

  body[data-view="socials"] .social-row.is-out > :nth-last-child(1) { animation-delay: 0s; }
  body[data-view="socials"] .social-row.is-out > :nth-last-child(2) { animation-delay: 0.04s; }
  body[data-view="socials"] .social-row.is-out > :nth-last-child(3) { animation-delay: 0.08s; }
  body[data-view="socials"] .social-row.is-out > :nth-last-child(4) { animation-delay: 0.12s; }
  body[data-view="socials"] .social-row.is-out > :nth-last-child(5) { animation-delay: 0.16s; }
  body[data-view="socials"] .social-row.is-out > :nth-last-child(6) { animation-delay: 0.2s; }
  body[data-view="socials"] .social-row.is-out > :nth-last-child(7) { animation-delay: 0.24s; }
  body[data-view="socials"] .social-row.is-out > :nth-last-child(8) { animation-delay: 0.28s; }
  body[data-view="socials"] .social-row.is-out > :nth-last-child(9) { animation-delay: 0.32s; }
}

.social-row.is-out > * {
  animation: sink 0.22s var(--ease) both;
}

.social-row.is-out > :nth-last-child(1) { animation-delay: 0s; }
.social-row.is-out > :nth-last-child(2) { animation-delay: 0.03s; }
.social-row.is-out > :nth-last-child(3) { animation-delay: 0.06s; }
.social-row.is-out > :nth-last-child(4) { animation-delay: 0.09s; }
.social-row.is-out > :nth-last-child(5) { animation-delay: 0.12s; }
.social-row.is-out > :nth-last-child(6) { animation-delay: 0.15s; }
.social-row.is-out > :nth-last-child(7) { animation-delay: 0.18s; }
.social-row.is-out > :nth-last-child(8) { animation-delay: 0.21s; }
.social-row.is-out > :nth-last-child(9) { animation-delay: 0.24s; }

.prose {
  text-align: left;
}

.prose p {
  margin: 0 0 22px;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.32;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--prose);
  text-align: left;
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.prose-link {
  position: relative;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 3px;
  transition: background-size 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}

.prose-link:hover,
.prose-link:focus-visible {
  background-size: 100% 3px;
}

.prose-link--csusm:hover,
.prose-link--csusm:focus-visible {
  color: #0090d4;
}

.prose-link--crimson:hover,
.prose-link--crimson:focus-visible {
  color: #a51c30;
}

.prose-link .tip { display: none; }

.prose-link:focus-visible .tip {
  display: block;
  opacity: 1;
  translate: -50% 0;
}

.branches {
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  margin-top: 18px;
}

.branch {
  border-bottom: 1px solid rgba(20, 20, 20, 0.07);
}

.branches .branch:last-child {
  border-bottom: 1px solid rgba(20, 20, 20, 0.07);
}

.profile-meta {
  width: min(520px, 100%);
  margin: 28px 0 0;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-meta__line {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #9a9a9a;
  line-height: 1.35;
}

a.profile-meta__link {
  color: #9a9a9a;
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s ease;
}

a.profile-meta__link:hover,
a.profile-meta__link:focus-visible {
  color: var(--ink);
}

.branch summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  list-style: none;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.015em;
  color: #7a7a7a;
  transition: color 0.25s ease;
}

.branch summary::-webkit-details-marker { display: none; }

.branch summary::marker { content: ""; }

.branch summary:hover,
.branch.is-expanded > summary {
  color: var(--ink);
}

.branch-chevron {
  position: relative;
  width: 12px;
  height: 12px;
  flex: none;
  color: inherit;
}

.branch-chevron::before,
.branch-chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.branch-chevron::before {
  width: 12px;
  height: 1.5px;
  translate: -50% -50%;
}

.branch-chevron::after {
  width: 1.5px;
  height: 12px;
  translate: -50% -50%;
}

.branch.is-expanded > summary .branch-chevron::after {
  transform: rotate(90deg);
  opacity: 0;
}

.branch-body {
  overflow: hidden;
}

.branch-panel {
  padding: 0 0 18px;
}

.branch-body .cert-list li {
  font-size: clamp(17px, 1.8vw, 22px);
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 2px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.app-row:hover,
.app-row:focus-visible {
  background: rgba(255, 255, 255, 0.55);
}

.app-row__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  overflow: hidden;
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.04);
}

.app-row__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.app-row__copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding-right: 4px;
}

.app-row__name {
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
}

.app-row__id {
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #8f8f8f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.branch-body .stack {
  margin-top: 4px;
}

.text-back {
  border: 0;
  background: none;
  padding: 0;
  margin: 0 0 18px;
  color: #b0b0b0;
  font-size: 14px;
}

.text-back:hover { color: var(--ink); }

.skill-list,
.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 460px;
}

.skill-list li {
  padding: 11px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 20, 20, 0.05);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 550;
  color: var(--ink);
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert-list { gap: 18px; }

.cert-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
}

.cert-list .cert-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.cert-list .cert-link span {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 3px;
  transition: background-size 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cert-list .cert-link:hover span,
.cert-list .cert-link:focus-visible span {
  background-size: 100% 3px;
}

.cert-list img {
  width: 22px;
  height: 22px;
  flex: none;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 16px;
  max-width: 440px;
  margin-top: 36px;
  align-items: flex-start;
}

.stack img,
.stack svg {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.more {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  margin: 88px 0 120px;
  padding: 0 24px;
  background: var(--paper);
}

.more[hidden] { display: none; }

@media (min-width: 981px) {
  body:is([data-view="profile"], [data-view="skills"], [data-view="certs"], [data-view="stack"]) .more {
    align-items: flex-start;
    align-self: stretch;
    width: 100%;
    max-width: 700px;
    margin: 40px 0 0;
    padding: 0;
    text-align: left;
  }

  body:is([data-view="profile"], [data-view="skills"], [data-view="certs"], [data-view="stack"]) .more .branches {
    width: 100%;
    max-width: none;
    margin-top: 8px;
  }

  body:is([data-view="profile"], [data-view="skills"], [data-view="certs"], [data-view="stack"]) .more .profile-meta {
    width: 100%;
    max-width: none;
    align-items: flex-start;
    text-align: left;
    margin-top: 36px;
    margin-bottom: 48px;
  }

  body:is([data-view="profile"], [data-view="skills"], [data-view="certs"], [data-view="stack"]) .more .skill-list {
    justify-content: flex-start;
    max-width: none;
  }

  body:is([data-view="profile"], [data-view="skills"], [data-view="certs"], [data-view="stack"]) .more .cert-list {
    align-items: flex-start;
  }

  body:is([data-view="profile"], [data-view="skills"], [data-view="certs"], [data-view="stack"]) .more .cert-list li {
    justify-content: flex-start;
  }

  body:is([data-view="profile"], [data-view="skills"], [data-view="certs"], [data-view="stack"]) .more .stack {
    justify-content: flex-start;
    max-width: none;
  }
}

.more .branches {
  width: min(560px, 100%);
  margin-top: 12px;
  text-align: left;
}

.more .skill-list {
  justify-content: flex-start;
  max-width: 520px;
}

.more .cert-list { align-items: flex-start; }

.more .cert-list li { justify-content: flex-start; }

.more .stack {
  justify-content: flex-start;
  max-width: 560px;
  margin-top: 4px;
  align-items: flex-start;
}

.more .stack .stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 88px;
  margin: 0;
}

.more .stack .stack-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
}

.more .stack .stack-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Optical size tweaks — some Simple Icons artwork reads bigger/smaller in the same box. */
.more .stack .stack-item--python .stack-icon img {
  width: 20px;
  height: 20px;
}

.more .stack .stack-item--kalilinux .stack-icon img,
.more .stack .stack-item--prompt .stack-icon img {
  width: 26px;
  height: 26px;
}

.more .stack .stack-item--react .stack-icon img {
  width: 24px;
  height: 24px;
}

.more .stack .stack-item--forensics .stack-icon img {
  width: 23px;
  height: 23px;
  translate: -0.5px 0;
}

.more .stack figcaption {
  width: 100%;
  min-height: 2.5em;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
  color: #6e6e6e;
}

