/* Approved revision: open lettering, one-column deck, and a clear contact route. */
.identity-lettering, .identity-word { text-shadow: none; }
@keyframes identity-word-reveal {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.card-position { display: none; }
.cards-stage { display: contents; }
.connect-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.connect-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid #b9b3ce88;
  border-radius: 12px;
  background: #111019b3;
  font-size: 17px;
  font-weight: 550;
  line-height: 1.3;
  transition: background-color .18s, border-color .18s;
}
.connect-actions a:hover { background: #24212f; border-color: #e0d9f2; }
.connect-resume { border-top: 1px solid #a5a0bb48; padding-top: 10px; margin-top: 16px; }
.connect-resume a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 5px; font-size: 16px; }
.contact-copy h2 { margin-bottom: 18px; }

@media(max-width:720px) {
  :root { --nav: 96px; --stack: 28px; }
  .site-header { height: auto; min-height: 96px; padding: 8px 6vw; background: linear-gradient(#000 70%,#000e 94%,#0000); }
  .site-header .identity, .site-header .motion-toggle { min-height: 36px; display: inline-flex; align-items: center; }
  .site-header .motion-toggle { justify-content: flex-end; }
  .site-header nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .intro-content { padding-top: calc(var(--nav) + 8px); }
  .connect-actions { flex-direction: column; gap: 12px; }
  .connect-actions a { width: 100%; min-height: 52px; }
  .contact-main { grid-template-columns: minmax(0,1fr); }
  .certificate-link { width: min(100%,260px); display: grid; grid-template-columns: 80px 1fr; gap: 14px; align-items: center; }
  .certificate-link img { height: 65px; }
  .contact-end { padding-top: 36px; gap: 28px; }

  .mobile-stack .project-row, .mobile-stack .final-row { display: contents; }
  .mobile-stack .cards-stage {
    display: flow-root;
  }
  .mobile-stack .row-position { display: none; }
  .mobile-stack .card-position {
    display: flow-root;
    height: 0;
    margin-top: calc(-1 * var(--previous-tail,0px));
    pointer-events: none;
  }
  .mobile-stack .card-holder {
    position: sticky;
    top: calc(var(--measured-nav,96px) + 12px + var(--mobile-index)*var(--stack));
    z-index: calc(10 + var(--mobile-index));
    height: auto;
    padding-bottom: var(--stack-tail,0px);
    margin-bottom: 18px;
    transform: scale(var(--card-scale,1));
    transform-origin: center top;
  }
  .mobile-stack .card-holder::before { height: calc(100% - var(--stack-tail,0px) - var(--clip-bottom,0px)); }
  .mobile-stack .project-card {
    height: auto;
    clip-path: inset(0 0 var(--clip-bottom,0px) 0 round 22px 22px var(--bottom-radius,22px) var(--bottom-radius,22px));
  }
  .mobile-stack .stack-title { display: flex; height: var(--stack); font-size: 13px; }
  .mobile-stack .stack-title a { pointer-events: auto; }
  .mobile-stack .card-surface { height: auto; min-height: 235px; }
  .mobile-stack .contact-end { min-height: 460px; z-index: 30; background: linear-gradient(#0009,#000 20%); }
}
@media(max-width:720px) and (max-height:599px) {
  .intro { height: auto; min-height: 100svh; }
  .intro-pin { height: auto; min-height: 100svh; }
  .intro-content { padding-top: calc(var(--nav) + 30px); padding-bottom: 96px; }
}
@media(prefers-reduced-motion:reduce) {
  .connect-actions a { transition: none; }
}
