/* Contact slide */

.slide--contact .blob {
  left: 860px;
  top: 140px;
  width: 560px;
  height: 600px;
  filter: blur(120px);
}

.c-strip {
  left: 820px;
  top: 0;
  width: 560px;
  height: 900px;
  clip-path: polygon(230px 0, 450px 0, 350px 400px, 560px 400px, 560px 900px, 30px 900px);
  background: var(--strip);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.c-strip .strip-glow {
  background: radial-gradient(circle at 60% 30%, rgba(30, 111, 255, 0.55), transparent 62%);
}

.c-strip .dots {
  background-image: radial-gradient(rgba(143, 192, 255, 0.22) 1px, transparent 1.3px);
}

/* On desktop the scroll wrapper has no box of its own */
.ct-scroll {
  display: contents;
}

.ct-intro {
  position: absolute;
  left: 84px;
  top: 132px;
  width: 700px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ct-intro-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.ct-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: var(--ct-head, 92px);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.ct-heading > span {
  display: block;
  position: relative;
  white-space: nowrap;
}

.ct-outline {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--outline);
}

.ct-solid {
  color: var(--name);
  text-shadow: 3px 0 0 var(--split), -3px 0 0 rgba(0, 200, 255, 0.6);
}

.ct-lead {
  max-width: 600px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
}

.ct-cards {
  position: absolute;
  left: 84px;
  top: 478px;
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.ct-card-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--rule);
  clip-path: var(--cut-14);
}

.ct-email {
  width: 320px;
}

.ct-wa {
  width: 364px;
}

.ct-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ct-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  clip-path: var(--octagon);
}

.ct-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-badge-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.ct-mail {
  font-size: 17px;
  font-weight: 500;
  color: var(--name);
  word-break: break-all;
}

.ct-note {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.ct-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.ct-btn {
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.ct-btn:hover {
  transform: translateY(-2px);
}

.ct-send {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  background: var(--name);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ct-send:hover {
  color: var(--bg);
}

.ct-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.ct-copy:hover {
  border-color: var(--accent);
}

.ct-copy svg {
  width: 15px;
  height: 15px;
}

.ct-wa-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: start;
}

.ct-wa-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ct-phone {
  font-size: 19px;
  font-weight: 500;
  color: var(--name);
  white-space: nowrap;
}

.ct-phone-intl {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ct-wa-text .ct-note {
  margin-top: 6px;
}

.ct-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ct-qr-box {
  width: 120px;
  height: 120px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--rule);
}

.ct-qr-box img {
  width: 106px;
  height: 106px;
  image-rendering: pixelated;
}

.ct-qr-cap {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.ct-open {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border: 1.5px solid var(--accent);
  color: var(--name);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ct-open svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Resume card: a paper preview on the stripe */
.ct-resume {
  left: 930px;
  top: 150px;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.paper {
  position: relative;
  height: 470px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  box-shadow: 0 30px 60px rgba(4, 10, 30, 0.35);
  clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 46px, 100% 100%, 0 100%);
}

.paper-fold {
  position: absolute;
  right: 0;
  top: 0;
  width: 46px;
  height: 46px;
  background: var(--paper-fold);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.paper-name {
  font-family: var(--font-display);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: #0b1430;
}

.paper-role {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.paper-bar {
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.paper-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.paper-lines i {
  display: block;
  height: 6px;
  background: #d5dbe6;
}

.paper-lines i.dim {
  background: #b9c4d8;
}

.paper-lines i.gap {
  margin-top: 6px;
}

.paper-head {
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: #5f697c;
}

.paper-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.paper-chips i {
  display: block;
  height: 14px;
  background: #e6e9ef;
}

.paper-chips i.on {
  background: #dfe7ff;
}

.ct-resume-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--lens-fill);
}

.ct-resume-meta span:last-child {
  color: var(--lens-line);
}

.ct-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  clip-path: var(--cut-12);
  transition: filter 0.2s ease, transform 0.15s ease;
}

.ct-dl:hover {
  color: #ffffff;
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.ct-dl:focus-visible,
.ct-send:focus-visible,
.ct-open:focus-visible {
  outline-offset: -5px;
}

.ct-dl svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-foot {
  left: 84px;
  bottom: 50px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.ct-cols-m {
  display: none;
}

/* Phone and tablet ------------------------------------------------------- */

@media (max-width: 1023.98px) {
  .slide--contact .blob {
    left: auto;
    right: -140px;
    top: 160px;
    width: var(--blob-w, 360px);
    height: var(--blob-w, 360px);
    filter: blur(100px);
  }

  .c-strip,
  .ct-wa,
  .ct-resume,
  .ct-foot,
  .ct-lead,
  .ct-intro-row .sec-meta,
  .ct-note {
    display: none;
  }

  .ct-scroll {
    display: flex;
    flex-direction: column;
    gap: var(--ct-gap);
    left: var(--pad-x);
    right: var(--pad-x);
    top: var(--content-top);
    bottom: var(--bottom-safe);
    padding-bottom: 12px;
  }

  .ct-intro,
  .ct-cards {
    position: static;
    width: auto;
  }

  .ct-intro {
    gap: var(--ct-gap);
  }

  .ct-cards {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--ct-gap);
  }

  .ct-outline {
    -webkit-text-stroke-width: 1.2px;
  }

  .ct-solid {
    text-shadow: 2px 0 0 var(--split), -2px 0 0 rgba(0, 200, 255, 0.6);
  }

  .ct-card-box {
    padding: 18px;
    gap: 12px;
    clip-path: var(--cut-12);
  }

  .ct-email {
    width: auto;
  }

  .ct-badge {
    width: 32px;
    height: 32px;
  }

  .ct-badge svg {
    width: 15px;
    height: 15px;
  }

  .ct-badge-label {
    font-size: 10.5px;
  }

  .ct-mail {
    font-size: 15.5px;
  }

  .ct-send {
    height: 44px;
    font-size: 11.5px;
  }

  .ct-copy {
    height: 44px;
    padding: 0 12px;
    font-size: 10.5px;
  }

  .ct-copy svg {
    display: none;
  }

  .ct-cols-m {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }

  .ct-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
  }

  .m-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--glass);
    border: 1px solid var(--rule);
    clip-path: var(--cut-12);
  }

  .m-tile-head {
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .m-tile-head .ct-badge {
    width: 26px;
    height: 26px;
  }

  .m-tile-head .ct-badge svg {
    width: 13px;
    height: 13px;
  }

  .m-tile-head span:last-child {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--muted);
  }

  .qr-frame {
    position: relative;
    padding: 10px;
  }

  .qr-frame > i {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 0 solid var(--accent);
  }

  .qr-frame .tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
  .qr-frame .tr { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
  .qr-frame .bl { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
  .qr-frame .br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }

  .qr-scan {
    position: absolute;
    left: 4px;
    right: 4px;
    top: 50%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px 2px rgba(30, 111, 255, 0.55);
    z-index: 2;
    pointer-events: none;
  }

  .qr-link {
    display: block;
    width: var(--qr);
    height: var(--qr);
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--rule);
  }

  .qr-link img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
  }

  .m-cap {
    font-size: 9.5px;
    letter-spacing: 0.18em;
    color: var(--muted);
  }

  .fill {
    position: relative;
    height: var(--fill-h);
    overflow: hidden;
    background: var(--glass);
    border: 1px solid var(--rule);
    clip-path: var(--cut-12);
  }

  .fill .dots {
    background-image: radial-gradient(var(--faint) 1px, transparent 1.4px);
    background-size: 12px 12px;
    opacity: 0.6;
  }

  .fill-oct {
    position: absolute;
    right: -22px;
    top: 50%;
    width: var(--fill-oct);
    height: var(--fill-oct);
    margin-top: calc(var(--fill-oct) / -2);
    clip-path: var(--octagon);
    background: var(--accent);
  }

  .fill-oct::before,
  .fill-oct::after {
    content: "";
    position: absolute;
    clip-path: var(--octagon);
  }

  .fill-oct::before {
    inset: 2px;
    background: var(--bg);
  }

  .fill-oct::after {
    inset: 22%;
    background: var(--accent);
    opacity: 0.85;
  }

  .fill-text {
    position: absolute;
    left: 14px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .fill-text span:first-child {
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--muted);
  }

  .fill-text span:last-child {
    font-family: var(--font-display);
    font-style: italic;
    font-stretch: 125%;
    font-weight: 900;
    font-size: var(--fill-tag);
    color: var(--name);
  }

  .social-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .social-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--fill-h);
    overflow: hidden;
    color: #ffffff;
    clip-path: var(--cut-10);
  }

  .social-tile:hover {
    color: #ffffff;
  }

  .social-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      -55deg,
      rgba(255, 255, 255, 0.07) 0px,
      rgba(255, 255, 255, 0.07) 2px,
      transparent 2px,
      transparent 12px
    );
  }

  .social-tile--gh {
    background: var(--gh-bg);
  }

  .social-tile--in {
    background: #0a66c2;
  }

  .social-tile .ico-wrap {
    position: relative;
    width: var(--social-icon);
    height: var(--social-icon);
  }

  .social-tile span {
    position: relative;
    font-size: var(--cta-sub);
    letter-spacing: 0.14em;
  }

  .m-tile--resume {
    background: var(--strip);
    border: 0;
  }

  .m-tile--resume .m-tile-head span:last-child,
  .m-tile--resume .m-cap {
    color: #c9d7f5;
  }

  .resume-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--qr);
    height: var(--qr);
  }

  .resume-link > i {
    position: absolute;
    display: block;
  }

  .resume-link .rp-paper {
    left: 14%;
    right: 14%;
    top: 0;
    bottom: 0;
    background: var(--paper);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  }

  .resume-link .rp-1 { left: 22%; right: 30%; top: 16%; height: 4px; background: #0b1430; }
  .resume-link .rp-2 { left: 22%; right: 40%; top: 25%; height: 3px; background: #1e6fff; }
  .resume-link .rp-3 { left: 22%; right: 24%; top: 34%; height: 3px; background: #d5dbe6; }

  .resume-link .rp-btn {
    position: relative;
    top: 14%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent);
    clip-path: var(--octagon);
  }

  .resume-link .rp-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qr-scan {
    display: none;
  }
}
