/* ─────────────────────────────────────────
   Shared layout — footer & more-work grids
───────────────────────────────────────── */

html {
  overflow-x: clip;
}

body {
  max-width: 100%;
  overflow-x: clip;
}

main {
  overflow-x: clip;
}

/* Copy-email button */
.copy-email-btn {
  gap: 0.55rem;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}

.copy-email-btn.is-copied {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
  transform: scale(1.05);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 24px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.contact-link.copy-email-btn.is-copied {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: scale(1.02);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.25);
}

.contact-link.copy-email-btn.is-copied .contact-link__value {
  color: rgba(255, 255, 255, 0.9);
}

.copy-email-btn__check {
  flex-shrink: 0;
  animation: copy-email-check-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.copy-email-btn__check path {
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  animation: copy-email-check-draw 0.35s ease 0.12s forwards;
}

.copy-email-btn__text {
  display: inline-block;
  animation: copy-email-text-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes copy-email-check-pop {
  0% { opacity: 0; transform: scale(0.4) rotate(-12deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes copy-email-check-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes copy-email-text-in {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.footer__brand {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
}

.footer__copy {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.25rem;
}

.footer__nav,
.footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.footer__nav {
  justify-content: center;
}

.footer__social {
  justify-content: flex-end;
}

.footer__nav a,
.footer__social a {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
}

.footer__nav a:hover,
.footer__social a:hover {
  color: #fff;
}

.more-work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.more-work__card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: opacity 0.2s;
  text-decoration: none;
  color: inherit;
}

.more-work__card:hover {
  opacity: 0.85;
}

.more-work__meta {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.more-work__title {
  font-size: clamp(1.35rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.more-work__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 1rem;
}

.more-work__cta {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__nav,
  .footer__social {
    justify-content: flex-start;
  }

  .more-work__grid {
    grid-template-columns: 1fr;
  }

  .more-work__card {
    padding: 2rem 1.5rem;
    min-height: 180px;
  }
}

@media (max-width: 480px) {
  .overview-bar__grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 360px) {
  .overview-bar__grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─────────────────────────────────────────
   Resume modal
───────────────────────────────────────── */

body.resume-modal-open {
  overflow: hidden;
}

.resume-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.resume-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.resume-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.resume-modal__panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 24px 80px rgba(0, 0, 0, 0.65);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.resume-modal.is-open .resume-modal__panel {
  transform: translateY(0) scale(1);
}

.resume-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-modal__eyebrow {
  display: block;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-bottom: 0.35rem;
}

.resume-modal__title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}

.resume-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

.resume-modal__close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

.resume-modal__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
}

.resume-modal__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.resume-modal__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.resume-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.resume-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  text-transform: lowercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.resume-modal__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.resume-modal__btn--primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.resume-modal__btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

.resume-modal__btn--ghost {
  margin-left: auto;
}

.resume-modal__viewer {
  flex: 1;
  min-height: 0;
  background: #111;
}

.resume-modal__iframe {
  width: 100%;
  height: 100%;
  min-height: min(68vh, 720px);
  border: 0;
  display: block;
  background: #1a1a1a;
}

@media (max-width: 768px) {
  .resume-modal {
    padding: 0;
    align-items: flex-end;
  }

  .resume-modal__panel {
    width: 100%;
    max-height: 94vh;
    border-radius: 12px 12px 0 0;
  }

  .resume-modal__btn--ghost {
    margin-left: 0;
    width: 100%;
  }

  .resume-modal__iframe {
    min-height: 52vh;
  }
}
