/* AH Portfolio: the portfolio page head and every work as a card. Place it in a full-width container
   with no padding; it draws its own navy head and ivory list. */

.ah-pf { display: block; width: 100%; }
.ah-pf .ah-pf__in { width: 100%; max-width: var(--ah-container); margin-inline: auto; padding-inline: var(--ah-gutter); box-sizing: border-box; }
.ah-pf [hidden] { display: none !important; }

/* ---------- head ---------- */
.ah-pf .ah-pf__head {
	position: relative;
	padding-block: 150px 64px;
	background:
		radial-gradient(70% 90% at 85% 0%, rgba(197, 165, 114, .16), transparent 60%),
		linear-gradient(180deg, var(--ah-deep), var(--ah-navy));
	color: var(--ah-on-navy);
	overflow: hidden;
	isolation: isolate;
}
.ah-pf .ah-pf__head::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(rgba(232, 201, 136, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(232, 201, 136, .06) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: linear-gradient(180deg, #000 30%, transparent);
	-webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.ah-pf .ah-pf__hgrid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.ah-pf .ah-pf__crumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: .82rem; color: var(--ah-on-navy-muted); }
.ah-pf .ah-pf__crumb li + li::before { content: "/"; margin-inline-end: 6px; opacity: .6; }
.ah-pf .ah-pf__crumb a { color: var(--ah-on-navy-muted); text-decoration: none; }
.ah-pf .ah-pf__crumb a:hover { color: var(--ah-gold-hi); }
.ah-pf .ah-pf__kicker.ah-kicker { border-color: rgba(232, 201, 136, .3); background: rgba(232, 201, 136, .1); color: var(--ah-gold-hi); }
.ah-pf .ah-pf__title {
	margin: 16px 0 0;
	font-family: var(--ah-f-display);
	font-weight: 700;
	font-size: clamp(2.1rem, 4.4vw, 3.5rem);
	line-height: 1.18;
	color: var(--ah-on-navy);
	text-wrap: balance;
}
.ah-pf .ah-pf__gold { color: var(--ah-gold-hi); }
.ah-pf .ah-pf__intro { max-width: 60ch; margin: 18px 0 0; font-size: 1.1rem; line-height: 1.85; color: var(--ah-on-navy-muted); }
.ah-pf .ah-pf__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ah-pf .ah-pf__wa.ah-btn.ah-btn--dark { background: transparent; border: 1px solid rgba(232, 201, 136, .35); color: var(--ah-on-navy); box-shadow: none; }
.ah-pf .ah-pf__wa.ah-btn.ah-btn--dark:hover,
.ah-pf .ah-pf__wa.ah-btn.ah-btn--dark:focus-visible { background: rgba(232, 201, 136, .1); color: var(--ah-gold-hi); }

.ah-pf .ah-pf__stats { padding: 24px; border: 1px solid var(--ah-line-navy); border-radius: var(--ah-r-lg); background: rgba(26, 41, 82, .55); box-shadow: var(--ah-shadow-dark); }
.ah-pf .ah-pf__sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.ah-pf .ah-pf__stat { display: flex; flex-direction: column-reverse; gap: 4px; padding: 14px 16px; min-width: 0; }
.ah-pf .ah-pf__stat:nth-child(even) { border-inline-start: 1px solid var(--ah-line-navy); }
.ah-pf .ah-pf__stat:nth-child(n+3) { border-top: 1px solid var(--ah-line-navy); }
.ah-pf .ah-pf__stat dd { margin: 0; font-family: var(--ah-f-display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; color: var(--ah-gold-hi); }
.ah-pf .ah-pf__stat dt { font-size: .9rem; color: var(--ah-on-navy-muted); }
.ah-pf .ah-pf__snote { margin: 12px 4px 0; font-size: .75rem; color: var(--ah-on-navy-muted); opacity: .8; }

/* ---------- work types ---------- */
.ah-pf .ah-pf__body { padding-block: 40px 112px; background: var(--ah-ivory); scroll-margin-top: 90px; }
.ah-pf .ah-pf__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 28px; }
.ah-pf .ah-pf__bar .ah-pf__chips { flex: 1 1 0; width: auto; }
.ah-pf .ah-pf__blabel { font-size: .92rem; font-weight: 600; color: var(--ah-soft); }
/* the chip row never sets the page width (its phone scroller is max-content wide) */
.ah-pf .ah-pf__chips { min-width: 0; max-width: 100%; width: 100%; }
.ah-pf .ah-pf__bar { min-width: 0; }
.ah-pf .ah-pf__chips ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ah-pf .ah-pf__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid var(--ah-card-line);
	border-radius: 999px;
	background: var(--ah-card);
	box-shadow: 0 1px 2px rgba(15, 27, 60, .05);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ah-ink);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ah-ease);
}
.ah-pf .ah-pf__chip:hover { border-color: var(--ah-tint-line); color: var(--ah-ink); transform: translateY(-1px); }
.ah-pf .ah-pf__chip:focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 2px; }
.ah-pf .ah-pf__chip[aria-current="true"] { border-color: var(--ah-navy); background: var(--ah-navy); color: var(--ah-on-navy); }
.ah-pf .ah-pf__n { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding-inline: 6px; border-radius: 999px; background: var(--ah-sand); font-family: var(--ah-f-mono); font-size: .74rem; font-weight: 500; color: var(--ah-soft); }
.ah-pf .ah-pf__chip[aria-current="true"] .ah-pf__n { background: rgba(232, 201, 136, .18); color: var(--ah-gold-hi); }

/* ---------- grid and cards ---------- */
.ah-pf .ah-pf__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ah-pf .ah-pf__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--ah-card-line);
	border-radius: var(--ah-r-card);
	background: var(--ah-card);
	box-shadow: var(--ah-shadow);
	transition: transform .4s var(--ah-ease), box-shadow .4s var(--ah-ease), border-color .3s;
}
.ah-pf .ah-pf__card:hover { transform: translateY(-4px); border-color: var(--ah-tint-line); box-shadow: var(--ah-shadow-hi); }
.ah-pf .ah-pf__card:focus-within { border-color: var(--ah-gold); box-shadow: 0 0 0 3px rgba(197, 165, 114, .35), var(--ah-shadow-hi); }
.ah-pf .ah-pf__card--feat { border-top: 3px solid var(--ah-gold); }
.ah-pf .ah-pf__card.is-in { animation: ah-pf-in .45s var(--ah-ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes ah-pf-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.ah-pf .ah-pf__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ah-sand); }
.ah-pf .ah-pf__pic { position: absolute; inset: 0; }
.ah-pf .ah-pf__pic .ah-pf__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.1s var(--ah-ease); }
.ah-pf .ah-pf__card:hover .ah-pf__pic .ah-pf__img { transform: scale(1.04); }
.ah-pf .ah-pf__card--contain .ah-pf__media { background: var(--ah-tint) var(--ah-grain); }
.ah-pf .ah-pf__card--contain .ah-pf__pic { inset: 14px 14px 44px; }
.ah-pf .ah-pf__card--contain .ah-pf__pic .ah-pf__img { object-fit: contain; filter: drop-shadow(0 12px 18px rgba(15, 27, 60, .22)); }
.ah-pf .ah-pf__pic--none { display: grid; place-items: center; background: var(--ah-navy); }
.ah-pf .ah-pf__pic--none svg { width: 64px; height: auto; opacity: .6; }

/* the browser frame for website and store work */
.ah-pf .ah-pf__card--site .ah-pf__media { background: linear-gradient(160deg, var(--ah-tint), var(--ah-sand)); }
.ah-pf .ah-pf__frame {
	position: absolute;
	inset: 18px 18px 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(15, 27, 60, .12);
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	background: #fff;
	box-shadow: 0 18px 34px -18px rgba(15, 27, 60, .45);
	transition: transform .5s var(--ah-ease);
}
.ah-pf .ah-pf__card--site:hover .ah-pf__frame { transform: translateY(-3px); }
.ah-pf .ah-pf__chrome { display: flex; align-items: center; gap: 10px; flex: none; height: 26px; padding-inline: 10px; border-bottom: 1px solid rgba(15, 27, 60, .08); background: #F6F5F1; direction: ltr; }
.ah-pf .ah-pf__dots { display: flex; gap: 5px; }
.ah-pf .ah-pf__dots i { width: 8px; height: 8px; border-radius: 50%; background: #D9D5CA; }
.ah-pf .ah-pf__dots i:first-child { background: #E8B4A6; }
.ah-pf .ah-pf__dots i:nth-child(2) { background: #EBD49A; }
.ah-pf .ah-pf__dots i:last-child { background: #B5D3B0; }
.ah-pf .ah-pf__url { flex: 1; min-width: 0; max-width: 60%; margin-inline: auto; padding: 2px 10px; overflow: hidden; border-radius: 999px; background: #fff; font-family: var(--ah-f-mono); font-size: .66rem; line-height: 1.5; color: var(--ah-soft); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.ah-pf .ah-pf__url:empty { visibility: hidden; }
.ah-pf .ah-pf__view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.ah-pf .ah-pf__view .ah-pf__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; transition: object-position 3.2s cubic-bezier(.45, 0, .2, 1); }
/* a slow look down the page on hover, like scrolling the site */
.ah-pf .ah-pf__card--site:hover .ah-pf__view .ah-pf__img { object-position: 50% 45%; }

/* labels on the picture */
.ah-pf .ah-pf__type {
	position: absolute;
	inset-block-start: 12px;
	inset-inline-start: 12px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 4px 12px -6px rgba(15, 27, 60, .35);
	font-size: .76rem;
	font-weight: 700;
	line-height: 1.6;
	color: var(--ah-navy);
}
.ah-pf .ah-pf__card--site .ah-pf__type { inset-block-start: auto; inset-block-end: 10px; inset-inline-start: auto; inset-inline-end: 10px; }
.ah-pf .ah-pf__type::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ah-gold); }
.ah-pf [data-g^="store"] .ah-pf__type::before { background: #3F8F86; }
.ah-pf [data-g^="web"] .ah-pf__type::before { background: #4A6FB5; }
.ah-pf [data-g^="events"] .ah-pf__type::before { background: #C46A4E; }
.ah-pf [data-g^="volunteer"] .ah-pf__type::before { background: #8B8577; }
.ah-pf .ah-pf__big {
	position: absolute;
	inset-block-end: 12px;
	inset-inline-start: 12px;
	z-index: 1;
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	max-width: calc(100% - 24px);
	padding: 6px 12px;
	border-radius: 12px;
	background: var(--ah-navy);
	box-shadow: 0 10px 22px -12px rgba(9, 18, 42, .8);
	color: var(--ah-on-navy);
}
.ah-pf .ah-pf__big b { font-family: var(--ah-f-display); font-size: 1.25rem; font-weight: 700; line-height: 1.2; color: var(--ah-gold-hi); white-space: nowrap; }
.ah-pf .ah-pf__big small { overflow: hidden; font-size: .72rem; line-height: 1.4; color: var(--ah-on-navy-muted); text-overflow: ellipsis; white-space: nowrap; }
.ah-pf .ah-pf__card--site .ah-pf__big { inset-block-end: 10px; max-width: calc(100% - 150px); }
.ah-pf .ah-pf__big { unicode-bidi: isolate; }

/* text */
.ah-pf .ah-pf__cbody { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 18px; }
.ah-pf .ah-pf__meta { margin: 0; font-size: .8rem; line-height: 1.6; color: var(--ah-soft); }
.ah-pf .ah-pf__ct { margin: 0; font-family: var(--ah-f-display); font-size: var(--ah-fs-card); font-weight: 700; line-height: 1.45; color: var(--ah-navy); }
.ah-pf .ah-pf__card--feat .ah-pf__ct { font-size: 1.3rem; }
.ah-pf .ah-pf__link.ah-pf__link { color: inherit; text-decoration: none; }
.ah-pf .ah-pf__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.ah-pf .ah-pf__link:focus-visible { outline: none; }
.ah-pf .ah-pf__lead { display: -webkit-box; margin: 0; overflow: hidden; font-size: .95rem; line-height: 1.75; color: var(--ah-muted); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ah-pf .ah-pf__k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; padding: 12px; border-radius: var(--ah-r-sm); background: var(--ah-tint); }
.ah-pf .ah-pf__k div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ah-pf .ah-pf__k dd { margin: 0; font-family: var(--ah-f-display); font-size: 1.1rem; font-weight: 700; line-height: 1.25; color: var(--ah-ink-gold); }
.ah-pf .ah-pf__k dt { font-size: .72rem; line-height: 1.45; color: var(--ah-soft); }
.ah-pf .ah-pf__acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ah-card-line); }
.ah-pf .ah-pf__go { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 700; color: var(--ah-ink-gold); }
.ah-pf .ah-pf__go svg { width: 16px; height: 16px; transition: transform .3s var(--ah-ease); }
.ah-pf .ah-pf__card:hover .ah-pf__go svg { transform: translateX(-4px); }
[dir="ltr"] .ah-pf .ah-pf__card:hover .ah-pf__go svg { transform: translateX(4px); }
.ah-pf .ah-pf__go--soon { font-weight: 600; color: var(--ah-soft); }
.ah-pf .ah-pf__visit {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--ah-card-line);
	border-radius: 999px;
	background: var(--ah-ivory);
	font-size: .82rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ah-navy);
	text-decoration: none;
	transition: background-color .25s, border-color .25s, color .25s;
}
.ah-pf .ah-pf__visit:hover { border-color: var(--ah-navy); background: var(--ah-navy); color: var(--ah-on-navy); }
.ah-pf .ah-pf__visit:focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 2px; }
.ah-pf .ah-pf__visit svg { flex: none; }
[dir="rtl"] .ah-pf .ah-pf__visit svg { transform: scaleX(-1); }

/* the card that asks for the next project */
.ah-pf .ah-pf__cta {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	min-height: 100%;
	padding: 32px 28px;
	overflow: hidden;
	border-radius: var(--ah-r-card);
	background: radial-gradient(90% 70% at 100% 0%, rgba(197, 165, 114, .22), transparent 60%), var(--ah-navy);
	box-shadow: var(--ah-shadow-dark);
	color: var(--ah-on-navy);
	box-sizing: border-box;
}
.ah-pf .ah-pf__cnote.ah-hand { color: var(--ah-gold-hi); font-size: 1.35rem; }
.ah-pf .ah-pf__ctt { margin: 0; font-family: var(--ah-f-display); font-size: 1.55rem; font-weight: 700; line-height: 1.35; color: var(--ah-on-navy); }
.ah-pf .ah-pf__ctx { margin: 0; font-size: .98rem; line-height: 1.8; color: var(--ah-on-navy-muted); }
.ah-pf .ah-pf__cta .ah-btn { align-self: flex-start; margin-top: 8px; }

/* ---------- as a section of another page (home): the section draws the ground and the heading ---------- */
.ah-pf--section .ah-pf__body { padding: 0; background: none; scroll-margin-top: 0; }
.ah-pf--section .ah-pf__in { max-width: none; padding-inline: 0; }
.ah-pf--section .ah-pf__bar { justify-content: center; }
.ah-pf--section .ah-pf__bar .ah-pf__chips { flex: 0 1 auto; }
.ah-pf--section .ah-pf__chips ul { justify-content: center; }
.ah-pf--section .ah-pf__card--feat .ah-pf__ct { font-size: var(--ah-fs-card); }
.ah-pf .ah-pf__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; margin-top: 36px; text-align: center; }
.ah-pf .ah-pf__mhint { margin: 0; max-width: 46ch; font-size: .95rem; line-height: 1.75; color: var(--ah-muted); }
.ah-pf .ah-pf__all .ah-pf__n { background: rgba(232, 201, 136, .18); color: var(--ah-gold-hi); }

/* ---------- screens ---------- */
@media (max-width: 1200px) {
	.ah-pf .ah-pf__hgrid { gap: 32px; }
}
@media (max-width: 1024px) {
	.ah-pf .ah-pf__head { padding-block: 128px 48px; }
	.ah-pf .ah-pf__hgrid { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.ah-pf .ah-pf__sgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ah-pf .ah-pf__stat:nth-child(n+3) { border-top: 0; }
	.ah-pf .ah-pf__stat + .ah-pf__stat { border-inline-start: 1px solid var(--ah-line-navy); }
	.ah-pf .ah-pf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 767px) {
	.ah-pf .ah-pf__head { padding-block: 112px 40px; }
	.ah-pf .ah-pf__intro { font-size: 1rem; }
	.ah-pf .ah-pf__btns .ah-btn { flex: 1 1 100%; justify-content: center; }
	.ah-pf .ah-pf__stats { padding: 12px; }
	.ah-pf .ah-pf__sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ah-pf .ah-pf__stat { padding: 10px 12px; }
	.ah-pf .ah-pf__stat + .ah-pf__stat { border-inline-start: 0; }
	.ah-pf .ah-pf__stat:nth-child(even) { border-inline-start: 1px solid var(--ah-line-navy); }
	.ah-pf .ah-pf__stat:nth-child(n+3) { border-top: 1px solid var(--ah-line-navy); }
	.ah-pf .ah-pf__body { padding-block: 28px 80px; }
	.ah-pf .ah-pf__bar { flex-direction: column; align-items: stretch; gap: 10px; margin-inline: calc(var(--ah-gutter) * -1); }
	.ah-pf .ah-pf__blabel { padding-inline: var(--ah-gutter); }
	.ah-pf .ah-pf__bar .ah-pf__chips { flex: none; width: 100%; }
	.ah-pf .ah-pf__chips { overflow-x: auto; overscroll-behavior-x: contain; scroll-padding-inline: var(--ah-gutter); scrollbar-width: none; }
	.ah-pf .ah-pf__chips::-webkit-scrollbar { display: none; }
	.ah-pf .ah-pf__chips ul { flex-wrap: nowrap; width: max-content; padding-inline: var(--ah-gutter); padding-block: 2px 6px; }
	.ah-pf .ah-pf__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.ah-pf .ah-pf__frame { inset: 14px 14px 0; }
	.ah-pf .ah-pf__k { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px; }
	/* inside a section the container sets the edges: the chip row scrolls within it */
	.ah-pf--section .ah-pf__bar { margin-inline: 0; }
	.ah-pf--section .ah-pf__blabel { padding-inline: 0; text-align: center; }
	.ah-pf--section .ah-pf__chips ul { justify-content: flex-start; padding-inline: 0; }
	.ah-pf--section .ah-pf__more { margin-top: 28px; }
	.ah-pf--section .ah-pf__all { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.ah-pf .ah-pf__card,
	.ah-pf .ah-pf__frame,
	.ah-pf .ah-pf__chip,
	.ah-pf .ah-pf__img { transition: none !important; }
	.ah-pf .ah-pf__card:hover,
	.ah-pf .ah-pf__card--site:hover .ah-pf__frame { transform: none; }
	.ah-pf .ah-pf__card:hover .ah-pf__pic .ah-pf__img { transform: none; }
	.ah-pf .ah-pf__card--site:hover .ah-pf__view .ah-pf__img { object-position: 50% 0; }
	.ah-pf .ah-pf__card.is-in { animation: none; }
}
