/* ==========================================================================
   Digihack — Portfolio
   Only for portfolio/
   ========================================================================== */


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  font: 600 16px/1 "Poppins",sans-serif;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.crumb {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--accent);
}

.crumb b {
  color: var(--ink);
  font-weight: 500;
}

.hero-sub {
  font-size: 19px;
  color: var(--muted);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.feat {
  background: #faf7f5;
}

@media (max-width:640px) {
  .sec {
    padding: 3.5rem 0;
  }

  .ctas .btn {
    flex: 1 1 0;
    padding: 0 12px;
    white-space: nowrap;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
  }
}

.page-hero {
  background: linear-gradient(180deg,var(--tint) 0%,#fff 100%);
  padding: 2.5rem 0 4.5rem;
}

.ph-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ph-copy h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.ph-copy h1 em {
  font-style: normal;
  color: var(--accent);
}

@media (max-width:640px) {
  .page-hero {
    padding: 1.25rem 0 3rem;
  }

  .ph-copy h1 {
    font-size: 32px;
  }
}

.help-band {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 40px;
  align-items: center;
  background: var(--dark);
  border-radius: 24px;
  padding: 48px;
  color: var(--on-dark);
}

.help-band h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
}

.help-band p {
  color: var(--on-dark-muted);
  font-size: 17px;
  margin-top: 10px;
}

.help-band .ctas {
  justify-content: flex-end;
}

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cats button {
  font: 500 14px/1 "Poppins",sans-serif;
  padding: 11px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.cats button.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.more {
  font: 600 15px/1 "Poppins",sans-serif;
  color: var(--accent);
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pager a {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font: 600 15px/1 "Poppins",sans-serif;
  padding: 0 12px;
}

.pager a.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

@media (max-width:1024px) {
  .help-band {
    grid-template-columns: minmax(0,1fr);
  }

  .help-band .ctas {
    justify-content: flex-start;
  }
}

@media (max-width:640px) {
  .help-band {
    padding: 26px 22px;
  }

  .help-band h2 {
    font-size: 24px;
  }
}

.pf-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.pf-feat {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
  gap: 40px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #f3eee9;
  border-bottom: 1px solid var(--line);
}

.frame-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d9cfc7;
  display: block;
}

.frame-bar span {
  margin-left: 8px;
  flex: 1;
  height: 18px;
  border-radius: 9px;
  background: #fff;
  font: 500 11px/18px "Poppins",sans-serif;
  color: var(--muted);
  padding: 0 10px;
  overflow: hidden;
  white-space: nowrap;
}

.frame-shot {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  background: repeating-linear-gradient(135deg,#faf7f5 0 12px,#f6f1ed 12px 24px);
}

.pf-feat-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pf-feat-copy h2 {
  font-size: 30px;
  font-weight: 700;
}

.pf-feat-copy p {
  color: var(--muted);
}

.results {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

.results div {
  padding: 14px;
  border-radius: 12px;
  background: var(--tint);
}

.results b {
  display: block;
  font: 700 22px/1.1 "Poppins",sans-serif;
  color: var(--accent);
}

.results span {
  font-size: 13px;
  color: var(--muted);
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 28px 24px;
}

.pf-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.pf-card:hover h3 {
  color: var(--accent);
}

.pf-card:hover .frame {
  transform: translateY(-4px);
}

.pf-card .frame {
  transition: transform .25s;
}

.pf-cap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pf-cap h3 {
  font-size: 18px;
  font-weight: 600;
}

.pf-cap span {
  font-size: 14px;
  color: var(--muted);
}

.tag {
  font: 500 12px/1 "Poppins",sans-serif;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width:1024px) {
  .pf-feat {
    grid-template-columns: minmax(0,1fr);
  }

  .pf-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px) {
  .pf-feat {
    padding: 18px;
    gap: 20px;
  }

  .pf-feat-copy h2 {
    font-size: 23px;
  }

  .results b {
    font-size: 18px;
  }

  .pf-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (prefers-reduced-motion:reduce) {
  .pf-card .frame {
    transition: none;
  }
}

.page-hero {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 4rem;
}

.page-hero>.wrap {
  width: 100%;
}

@media (max-width:640px) {
  .page-hero {
    min-height: 480px;
    padding: 1.5rem 0 3rem;
    justify-content: flex-start;
  }
}

/* Phones: section headings fill the width (stack_pass.py) */
@media (max-width: 640px) {
  .sec-head {
    max-width: none;
  }

  h2,
  .h2 {
    text-wrap: pretty;
  }

  .h2,
  .cta h2,
  .cx-info h2,
  .sg-head h2,
  .cb-copy h2 {
    font-size: 23px;
    line-height: 1.25;
  }

  .sec-head .lead {
    font-size: 16px;
  }
}
