/* ==========================================================================
   Portfolio / Work list page 2026 — Figma "Work - Portfolio list page"
   (node 11142:25892). Loaded after ak-2026-base.css and ak-2026-pages.css.
   Builds the hero (two-column), the project-card grid with the "View
   Project" hover badge, and the mid-page CTA band. The FAQ (talk card +
   accordion), the blog strip and the wordmark footer reuse the shared 2026
   components. Sizes are the Figma 1920-canvas values x0.75.
   ========================================================================== */

.pf2026 { background: var(--ak26-surface); color: var(--ak26-ink); font-family: var(--ak26-font); overflow-x: clip; }

/* Same technique and same source asset as the homepage headline accent
   (.ak2026-hero__line--accent in home-2026.css): the Figma node masks this
   heading with the dark-teal particle-wave texture (imgImage3210, node
   11212:19164), not a flat CSS gradient. Reusing the image as a text fill
   means the copy can change without a new per-heading mask SVG.
   Position/size worked back from the node's own mask math (container
   1164x540.608, image at top:-61.81% height:161.81%, visible mask window at
   1.622,291.596 size 616.583x168.393 — all 1920-canvas units) into the
   fraction of the source image the mask actually reveals: x 0.1%-53.1%,
   y 71.5%-90.8%, i.e. the lower third of the wave, not its bright crest. */
.pf-grad {
  display: inline-block;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  background-image: url("/assets/images/home-2026/hero/headline-gradient-fill.png");
  background-repeat: no-repeat;
  background-size: 115% 118%;
  background-position: 0% 86%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   Hero — eyebrow + gradient heading | divider | paragraph + Let's Talk
   -------------------------------------------------------------------------- */

.pf-hero { padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 48px); }

/* Figma's two columns are not an even split: ~605px for the heading side
   against ~479px for the lede side (measured off the frame), roughly 1.26:1. */
.pf-hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1.26fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
}

.pf-hero__divider { align-self: stretch; width: 1px; background: rgba(0, 0, 0, 0.1); }

.pf-eyebrow {
  display: block;
  margin: 0 0 11px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.27px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.65);
}

.pf-hero__title {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.pf-hero__lede {
  margin: 0 0 32px;
  max-width: 480px;
  font-size: clamp(15px, 1.7vw, 16.5px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.5px;
  color: rgba(0, 0, 0, 0.55);
}

.pf-hero__rule { height: 1px; margin-top: clamp(28px, 4vw, 48px); background: rgba(0, 0, 0, 0.08); }

/* --------------------------------------------------------------------------
   Project grid + card
   -------------------------------------------------------------------------- */

.pf-work { padding-block: clamp(40px, 5vw, 72px); }

/* Figma wraps each row of cards in its own section with ~96px of bottom
   padding (pb-128 on the 1920 canvas), so rows sit noticeably further apart
   than columns do — not the near-even grid gap used here before. */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: clamp(48px, 6vw, 96px);
  column-gap: clamp(20px, 2.2vw, 33px);
}

.pf-card {
  display: flex;
  flex-direction: column;
  gap: 17px;
  color: inherit;
  text-decoration: none;
}

.pf-card__media {
  position: relative;
  display: block;
  aspect-ratio: 556 / 528;
  border-radius: 22px;
  overflow: hidden;
  background: #f2f2f2;
}

.pf-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ak26-ease);
}

.pf-card:hover .pf-card__media img { transform: scale(1.05); }

/* hover tint + centered VIEW PROJECT badge */
.pf-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 20, 24, 0.42);
  opacity: 0;
  transition: opacity 0.35s var(--ak26-ease);
  pointer-events: none;
}

.pf-card:hover .pf-card__media::after,
.pf-card:focus-visible .pf-card__media::after { opacity: 1; }

.pf-card__view {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.85);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.4px;
  background-image: linear-gradient(90deg, #0f4c5c 0%, #2c7a8c 100%);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.14);
  opacity: 0;
  transition: opacity 0.35s var(--ak26-ease), transform 0.35s var(--ak26-ease);
  pointer-events: none;
}

.pf-card:hover .pf-card__view,
.pf-card:focus-visible .pf-card__view { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.pf-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }

.pf-card__tag {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 9px 16px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.65);
  white-space: nowrap;
}

.pf-card__desc {
  margin: 0;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Mid-page CTA band
   -------------------------------------------------------------------------- */

.pf-cta { padding-block: clamp(40px, 5vw, 64px); }

.pf-cta__banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(48px, 7vw, 96px) 24px;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  background-image:
    linear-gradient(171deg, rgba(22, 76, 89, 0.12) 15%, rgba(42, 226, 222, 0.12) 88%),
    linear-gradient(90deg, #082b36 0%, #0d404d 55%, #1c5e6e 100%);
}

/* decorative concentric rings (top-left) + soft glow (top-right) */
.pf-cta__banner::before {
  content: "";
  position: absolute;
  left: -160px;
  top: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 110px rgba(255, 255, 255, 0.04), 0 0 0 230px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.pf-cta__banner::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -200px;
  width: 520px;
  height: 520px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(66, 226, 222, 0.28) 0%, rgba(66, 226, 222, 0) 70%);
  pointer-events: none;
}

.pf-cta__banner > * { position: relative; z-index: 1; }

.pf-cta__title {
  margin: 0;
  max-width: 740px;
  font-size: clamp(28px, 4.4vw, 51px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.pf-cta__sub { margin: 20px 0 0; font-size: clamp(16px, 1.9vw, 18px); color: rgba(255, 255, 255, 0.85); }

.pf-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  height: 61.5px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--ak26-teal-deep);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.33px;
  text-decoration: none;
  box-shadow: 0 12px 15px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s var(--ak26-ease), box-shadow 0.2s var(--ak26-ease);
}

.pf-cta__btn:hover { transform: translateY(-2px); color: var(--ak26-teal-deep); }

.pf-cta__btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  background-image: linear-gradient(90deg, #0f4c5c 0%, #2c7a8c 100%);
}

.pf-cta__note { margin: 20px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.7); }

/* --------------------------------------------------------------------------
   Blog strip (replicates the homepage ak2026-posts look, which lives in
   home-2026.css and is not loaded here)
   -------------------------------------------------------------------------- */

.pf-posts { padding-block: clamp(40px, 5vw, 72px); background: var(--ak26-surface-2); }
.pf-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pf-posts__card { display: flex; flex-direction: column; gap: 10px; color: var(--ak26-ink); text-decoration: none; }
.pf-posts__media { display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--ak26-tint); }
.pf-posts__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease-out; }
.pf-posts__card:hover img { transform: scale(1.04); }
.pf-posts__meta { margin-top: 6px; font-size: 13px; color: var(--ak26-ink-muted); }
.pf-posts__title { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.3px; }
.pf-posts__card:hover .pf-posts__title { color: var(--ak26-teal-deep); }

/* FAQ answer links (this rule otherwise lives in home-2026.css, not loaded here) */
.ak2026-faq-item__a a { color: var(--ak26-teal-deep); font-weight: 600; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Responsive — small laptop, tablet, mobile (incl. landscape)
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}

/* tablet / mobile landscape: hero stacks, divider turns horizontal */
@media (max-width: 991.98px) {
  .pf-hero__row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }
  .pf-hero__divider { width: 100%; height: 1px; }
  .pf-hero__lede { max-width: none; }
  .pf-posts__grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-card__view { width: 84px; height: 84px; }
}
