.portfolio {
  --pf-type: clamp(.97rem, 1.31vw, 1.22rem);
  color: var(--navy);
  font-size: var(--pf-type);
  line-height: 1.45;
  letter-spacing: -.02em;
}
.pf-wrap { width: min(89%, 89rem); margin-inline: auto; }
.portfolio :is(h1,h2,h3) { line-height: 1.08; letter-spacing: -.051em; }
.portfolio .button, .pf-filters button {
  min-height: clamp(2.65rem,3.65vw,3.55rem); border-radius: .45em;
  padding: .67em 1.32em; font-size: clamp(.91rem,1.24vw,1.12rem);
  line-height: 1.2; letter-spacing: -.025em;
}
.pf-types a:hover span { text-decoration: underline; text-underline-offset: .2em; }
.pf-types a + a { border-left: 1px solid #10253635; }
.pf-icon { width: clamp(2.4rem,4.1vw,3.95rem); height: auto; aspect-ratio: 1; object-fit: contain; }
.pf-caption h3 { font-size: clamp(1.03rem,1.44vw,1.38rem); }
.pf-caption p { font-size: clamp(.89rem,1.13vw,1.08rem); margin-top: .4em; }
.pf-gallery { padding-block: 1.45em 1.95em; background-color: #10253607; border-block: 1px solid #10253608; }
.pf-section-title { font-size: clamp(2.05rem,3.15vw,3.05rem); }
.pf-section-title::before { content: ''; display: block; width: 1.02em; height: 3px; margin-bottom: .24em; background: var(--orange); }
.pf-section-title + p { margin-top: .75em; max-width: 82ch; }
.pf-filters { display: flex; flex-wrap: wrap; margin-block: 1.4em clamp(1.8rem,2.85vw,2.75rem); gap: .78em; }
.pf-filters button { min-height: 2.85em; font-weight: 700; border: 1px solid #10253690; background: transparent; color: var(--deep-navy); }
.pf-filters button:hover { background: #1025360a; }
.pf-filters button[aria-pressed="true"] { border-color: var(--orange); color: white; background: var(--orange); }
.pf-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem,1.55vw,1.5rem); }
.pf-card { min-width: 0; }
.pf-open { height: 100%; display: block; border: 1px solid #10253626; border-radius: .52em; overflow: hidden; background: #ffffff40; transition: border-color .2s, box-shadow .2s; }
.pf-open:hover { border-color: #10253660; box-shadow: 0 .25rem .8rem #10253612; }
.pf-picture { position: relative; overflow: hidden; }
.pf-photo { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.pf-badge { position: absolute; top: .8em; left: .85em; background: #fffaf4; color: #a63e00; padding: .29em .8em; border: 1px solid var(--orange); border-radius: .45em; font-size: clamp(.78rem,1.02vw,.98rem); line-height: 1.35; }
.pf-caption { position: relative; padding: 1em 2.8em 1em 1.05em; }
.pf-caption p { margin-top: .25em; }
.pf-caption > span { position: absolute; right: .51em; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 1.8em; line-height: 1; }
.pf-support { padding-block: clamp(3rem,4.5vw,4.5rem) 2.6em; }
.pf-support > p { max-width: 56ch; }
.pf-types { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); margin-top: 1em; }
.pf-types a { display: grid; gap: .5em; align-content: start; justify-items: center; text-align: center; font-size: clamp(1rem,1.35vw,1.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
.pf-types img { width: clamp(2rem,3.65vw,3.55rem); }
.pf-cta { width: min(92%,92rem); margin: 0 auto 1.45em; display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 4%; color: white; background: var(--deep-navy); border-radius: .7em; padding: 1.4em 3%; }
.pf-cta p { max-width: 51ch; }
.pf-cta a { margin-top: 1.15em; }
.pf-cta img { justify-self: end; width: 100%; max-height: 14.7em; object-fit: contain; }
.pf-dialog { border: none; border-radius: .65rem; color: var(--navy); background: var(--paper); width: min(38rem,92vw); max-height: 90dvh; padding: 0; }
.pf-dialog::backdrop { background: #091827bb; }
.pf-dialog form { position: absolute; top: .65rem; right: .65rem; }
.pf-dialog button { width: 2.5rem; height: 2.5rem; border: 0; background: var(--paper); border-radius: 50%; font-size: 1.65rem; }
.pf-dialog > div { padding: 1.35em; }
.pf-dialog h2 { margin: .35em 0; }
.pf-kicker { font-size: .87em; }
.pf-dialog a { display: inline-block; margin-top: 1em; font-weight: bold; text-decoration: underline; text-underline-offset: .2em; }
.portfolio [hidden] { display: none; }
@media (max-width: 930px) {
  .pf-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 730px) {
  .pf-types { grid-template-columns: repeat(3,minmax(0,1fr)); row-gap: 1.35em; }
  .pf-types a:nth-child(4) { border-left: 0; }
  .pf-cta { grid-template-columns: 1fr; gap: 1em; padding: 1.55em; }
  .pf-cta img { justify-self: center; max-width: 30rem; }
}
@media (max-width: 560px) {
  .pf-wrap { width: calc(100% - 2 * var(--gutter)); }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-filters { gap: .5em; }
  .pf-filters button { padding-inline: .9em; }
}
