/* HD Team — About page story + team grid, front-page medallions. Tokens follow the brand guide. */
@font-face { /* Lexend (brand lead candidate), self-hosted under its own name so nothing else on the page changes */
	font-family: "HD Lexend";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url(lexend-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.hdt {
	--hdt-navy: #001b44;
	--hdt-blue: #136fa5;
	--hdt-action: #105378;
	--hdt-sky: #03a9f4;
	--hdt-ice: #b3e0f2;
	--hdt-teal: #127f86;
	--hdt-aqua: #3ecfb2;
	--hdt-coral: #ff6b4a;
	--hdt-ink: #323643;
	--hdt-slate: #5a6172;
	--hdt-mist: #f3f7fa;
	--hdt-panel: #eaf3f8;
	--hdt-line: #dde6ec;
	--hdt-font: "HD Lexend", "Lexend", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hdt-ease: cubic-bezier(.22, .8, .24, 1);
	box-sizing: border-box;
	font-family: var(--hdt-font);
	color: var(--hdt-ink);
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 40px);
}
.hdt *, .hdt *::before, .hdt *::after { box-sizing: inherit; }
.hdt [hidden] { display: none !important; }
.hdt-eyebrow {
	margin: 0 0 .7rem;
	font: 600 13px/1.3 "Montserrat", var(--hdt-font);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--hdt-teal);
}
.hdt h2, .hdt h3 { font-family: var(--hdt-font) !important; color: var(--hdt-navy) !important; text-wrap: balance; margin: 0; text-transform: none; }

/* ---------- About: story ---------- */
.hdt-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
	padding-block: clamp(56px, 8vw, 110px) clamp(40px, 6vw, 80px);
}
.hdt .hdt-intro__h { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.16; font-weight: 600; letter-spacing: -.01em; margin-bottom: 1.4rem; }
.hdt-intro__body p { font-size: 17px; line-height: 1.75; color: var(--hdt-slate); margin: 0 0 1.05em; max-width: 62ch; }
.hdt-intro__body p:last-child { margin-bottom: 0; }
.hdt-intro__photo {
	margin: 0;
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	max-width: 100%;
	box-shadow: 0 30px 60px -30px rgba(0, 27, 68, .45);
}
.hdt-intro__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; transform: scale(1.02); transition: transform 1.6s var(--hdt-ease); }
.hdt-intro__photo:hover img { transform: scale(1.07); }
.hdt-intro__photo figcaption {
	position: absolute; z-index: 1; left: 16px; bottom: 16px; padding: 7px 14px; border-radius: 999px;
	background: rgba(255, 255, 255, .9); color: var(--hdt-navy); font-size: 13px; line-height: 1.3;
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hdt-intro__photo::after { /* stipple grain along the lower edge ties the photo to the portraits */
	content: ""; position: absolute; inset: auto 0 0 0; height: 38%;
	background: radial-gradient(circle, rgba(0, 27, 68, .5) 1px, transparent 1.4px) 0 0 / 7px 7px;
	-webkit-mask-image: linear-gradient(to top, #000, transparent);
	mask-image: linear-gradient(to top, #000, transparent);
	pointer-events: none;
}
.hdt-facts {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: clamp(8px, 2vw, 24px) 0 0;
	border-top: 1px solid var(--hdt-line);
}
.hdt-fact { padding: 22px 20px 4px 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.hdt-fact + .hdt-fact { padding-left: 22px; border-left: 1px solid var(--hdt-line); }
.hdt-fact dt { font-size: 13px; letter-spacing: .04em; color: var(--hdt-slate); }
.hdt-fact dd { margin: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; font-weight: 600; color: var(--hdt-navy); font-variant-numeric: tabular-nums; }
.hdt-fact dd a { color: inherit; text-decoration: none; background: linear-gradient(var(--hdt-aqua), var(--hdt-aqua)) 0 100% / 100% 3px no-repeat; }
.hdt-fact dd a:hover { color: var(--hdt-teal); }
.hdt-fact--text dd { font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--hdt-ink); }

/* ---------- About: team grid ---------- */
.hdt.hdt-team { max-width: 1480px; }
.hdt-team { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 120px); }
/* full-width band behind the team, with contour lines like a topo map of the mountains behind town */
.hdt-band { background: #f3f7fa url(topo.svg) center top / 600px 600px repeat; border-top: 1px solid #dde6ec; }
.hdt-team__head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.hdt .hdt-team__h { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.hdt .hdt-team__intro { margin: 1rem auto 0; font-size: 17px; line-height: 1.65; color: var(--hdt-slate); max-width: 56ch; }
.hdt-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(18px, 2.2vw, 30px);
}
.hdt-card { grid-column: span 2; margin: 0; padding: 0; }
.hdt-card:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; } /* 5 cards: centre the second row */
.hdt-card:nth-child(4):last-child { grid-column: 3 / span 2; }
.hdt-card__open {
	all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; width: 100%; height: 100%;
	border-radius: 20px; background: #fff; overflow: hidden;
	box-shadow: 0 1px 0 var(--hdt-line), 0 18px 40px -28px rgba(0, 27, 68, .35);
	transition: transform .5s var(--hdt-ease), box-shadow .5s var(--hdt-ease);
}
.hdt-card__open:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--hdt-line), 0 34px 60px -30px rgba(0, 27, 68, .45); }
.hdt-card__open:focus-visible { outline: 3px solid var(--hdt-sky); outline-offset: 4px; }
.hdt-card__art {
	position: relative; display: block; aspect-ratio: 3 / 4; max-width: 100%;
	background: radial-gradient(120% 90% at 50% 35%, #fff 0%, var(--hdt-panel) 70%, #dcebf3 100%);
	overflow: hidden;
}
.hdt-card__art::after { /* soft vignette so the torso melts into the card */
	content: ""; position: absolute; inset: auto 0 0; height: 22%;
	background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
	pointer-events: none;
}
.hdt-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.hdt-card__note {
	position: absolute; z-index: 1; left: 50%; bottom: 14px; transform: translateX(-50%);
	font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
	color: var(--hdt-teal); background: rgba(255, 255, 255, .85); padding: 5px 12px; border-radius: 999px;
}
.hdt-card__meta { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; flex: 1; }
.hdt-card__role { font: 600 12px/1.3 "Montserrat", var(--hdt-font); letter-spacing: .14em; text-transform: uppercase; color: var(--hdt-teal); }
.hdt-card__name { font-size: 22px; line-height: 1.2; font-weight: 600; color: var(--hdt-navy); }
.hdt-card__line { font-size: 15px; line-height: 1.55; color: var(--hdt-slate); }
.hdt-card__more {
	margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px;
	font-size: 14px; font-weight: 500; color: var(--hdt-action);
}
.hdt-card__more svg { transition: transform .4s var(--hdt-ease); }
.hdt-card__open:hover .hdt-card__more svg { transform: translateX(5px); }
.hdt-art--initials {
	display: grid; place-items: center; width: 100%; height: 100%;
	font-size: clamp(40px, 6vw, 72px); font-weight: 600; color: var(--hdt-navy); letter-spacing: .04em;
}

/* ---------- Detail dialog ---------- */
.hdt-dialog {
	width: min(1040px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
	padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--hdt-ink);
	box-shadow: 0 40px 120px -30px rgba(0, 27, 68, .6); overflow: hidden;
	font-family: var(--hdt-font);
}
.hdt-dialog::backdrop { background: rgba(0, 20, 50, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hdt-dialog[open] { animation: hdt-pop .45s var(--hdt-ease); }
.hdt-dialog[open]::backdrop { animation: hdt-fade .35s ease; }
@keyframes hdt-pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes hdt-fade { from { opacity: 0; } }
.hdt-dialog__inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); max-height: calc(100dvh - 32px); }
.hdt-dialog__art { position: relative; background: radial-gradient(120% 90% at 50% 35%, #fff 0%, var(--hdt-panel) 72%, #d6e8f1 100%); aspect-ratio: 3 / 4; max-width: 100%; align-self: stretch; }
.hdt-dialog__art .hdt-canvas { position: absolute; inset: 0; }
.hdt-dialog__body { padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px) 104px; overflow-y: auto; }
.hdt .hdt-dialog__name { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 600; margin: 0 0 1.2rem; color: var(--hdt-navy) !important; }
.hdt-dialog__content { font-size: 16px; line-height: 1.75; color: var(--hdt-slate); }
.hdt .hdt-dialog__content p, .hdt .hdt-tags li { font-family: var(--hdt-font); }
.hdt-dialog__content p { margin: 0 0 1em; }
.hdt .hdt-quote { margin: 0 0 1.4rem !important; padding: 0 0 0 20px !important; border: 0 !important; border-left: 3px solid var(--hdt-aqua) !important; background: none !important; box-shadow: none !important; font-style: normal !important; }
.hdt .hdt-quote p { margin: 0; font-family: var(--hdt-font) !important; font-size: 18px !important; line-height: 1.6 !important; color: var(--hdt-navy) !important; font-style: normal !important; }
.hdt-quote p::before { content: "\201C"; } .hdt-quote p::after { content: "\201D"; }
.hdt-tags { margin-top: 1.6rem; }
.hdt-tags__label { display: block; font: 600 12px/1.3 "Montserrat", var(--hdt-font); letter-spacing: .14em; text-transform: uppercase; color: var(--hdt-teal); margin-bottom: .6rem; }
.hdt-tags ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hdt-tags li { margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--hdt-mist); border: 1px solid var(--hdt-line); font-size: 14px; color: var(--hdt-ink); }
.hdt-dialog__close, .hdt-dialog__btn {
	all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center;
	width: 44px; height: 44px; border-radius: 50%; color: var(--hdt-navy); background: #fff;
	box-shadow: 0 0 0 1px var(--hdt-line); transition: background .3s, color .3s, transform .3s var(--hdt-ease);
}
.hdt-dialog__close:hover, .hdt-dialog__btn:hover { background: var(--hdt-navy); color: #fff; }
.hdt-dialog__close:focus-visible, .hdt-dialog__btn:focus-visible { outline: 3px solid var(--hdt-sky); outline-offset: 2px; }
.hdt-dialog__close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.hdt-dialog__nav { /* footer bar over the bio column; the text scrolls under its fade */
	position: absolute; left: calc(5 / 11 * 100%); right: 0; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 10px;
	padding: 28px clamp(24px, 4vw, 56px) 22px; background: linear-gradient(to top, #fff 62%, rgba(255, 255, 255, 0)); pointer-events: none;
}
.hdt-dialog__nav .hdt-dialog__btn { pointer-events: auto; }

/* ---------- Front page: medallions ---------- */
.hdt-teaser {
	display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center;
	padding-block: clamp(56px, 8vw, 110px);
}
.hdt .hdt-teaser__h { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.hdt .hdt-teaser__text { margin: 1.1rem 0 1.8rem; font-size: 17px; line-height: 1.7; color: var(--hdt-slate); max-width: 46ch; }
.hdt-btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 25px;
	background: var(--hdt-action); color: #fff !important; text-decoration: none !important;
	font: 500 14px/1 "Montserrat", var(--hdt-font); letter-spacing: .14em; text-transform: uppercase;
	transition: background .3s, transform .3s var(--hdt-ease), box-shadow .3s;
}
.hdt-btn:hover { background: var(--hdt-blue); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(19, 111, 165, .8); }
.hdt-btn:focus-visible { outline: 3px solid var(--hdt-sky); outline-offset: 3px; }
.hdt-medals {
	list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: calc(var(--cols, 6) * 128px);
	display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); column-gap: clamp(8px, 1.1vw, 16px);
}
.hdt-medal { position: relative; margin: 0; padding: 0; z-index: 1; min-width: 0; }
.hdt-medal--lower { margin-top: -11%; } /* rows nest like a honeycomb */
.hdt-medal:hover, .hdt-medal:focus-within { z-index: 5; }
.hdt-medal__link { position: relative; display: block; text-decoration: none !important; outline: none; border-radius: 50%; }
.hdt-medal__art {
	display: block; width: 100%; aspect-ratio: 1; max-width: 100%; border-radius: 50%; overflow: hidden;
	background: radial-gradient(circle at 50% 38%, #fff 0%, var(--hdt-panel) 70%, #d6e8f1 100%);
	box-shadow: 0 0 0 5px #fff, 0 22px 40px -22px rgba(0, 27, 68, .55);
	transition: transform .55s var(--hdt-ease), box-shadow .55s var(--hdt-ease);
}
.hdt-medal__link:hover .hdt-medal__art, .hdt-medal__link:focus-visible .hdt-medal__art { transform: scale(1.06); box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--hdt-aqua), 0 30px 50px -24px rgba(0, 27, 68, .6); }
.hdt-medal__tag {
	position: absolute; left: 50%; bottom: 4%; transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
	display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 16px; border-radius: 14px;
	background: var(--hdt-navy); color: #fff; text-align: center; white-space: nowrap;
	box-shadow: 0 12px 24px -12px rgba(0, 27, 68, .7);
	transition: opacity .3s, transform .45s var(--hdt-ease);
}
.hdt-medal__name { font-size: 15px; font-weight: 600; line-height: 1.2; }
.hdt-medal__role { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--hdt-aqua); }
.hdt-medal__link:hover .hdt-medal__tag, .hdt-medal__link:focus-visible .hdt-medal__tag { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.hdt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hdt-card, .hdt-card:nth-child(4):nth-last-child(2), .hdt-card:nth-child(4):last-child { grid-column: auto; }
	.hdt-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
	.hdt-teaser { grid-template-columns: 1fr; }
	.hdt-medals { margin: 0; }
}
@media (max-width: 900px) {
	.hdt-intro { grid-template-columns: 1fr; }
	.hdt-intro__photo { aspect-ratio: 16 / 10; }
	.hdt-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hdt-fact:nth-child(3) { padding-left: 0; border-left: 0; }
	.hdt-fact:nth-child(n+3) { border-top: 1px solid var(--hdt-line); }
	.hdt-dialog__inner { grid-template-columns: 1fr; overflow-y: auto; }
	.hdt-dialog__art { aspect-ratio: auto; height: min(52vh, 440px); }
	.hdt-dialog__body { overflow: visible; padding-bottom: 32px; }
	.hdt-dialog__nav { position: static; padding: 0 24px 24px; justify-content: flex-end; background: none; }
}
@media (max-width: 600px) {
	.hdt-grid { grid-template-columns: 1fr; }
	.hdt-card:last-child:nth-child(odd) { width: 100%; }
	.hdt-card__open { flex-direction: row; align-items: stretch; }
	.hdt-card__art { width: 42%; flex: none; aspect-ratio: 3 / 4; }
	.hdt-card__art::after { display: none; }
	.hdt-card__meta { padding: 16px; }
	.hdt-card__name { font-size: 19px; }
	.hdt-card__line { font-size: 14px; }
	.hdt-card__note { font-size: 10px; bottom: 8px; padding: 4px 8px; }
	.hdt-medals { margin: 0 auto; column-gap: 8px; }
	.hdt-medal__art { box-shadow: 0 0 0 3px #fff, 0 14px 24px -16px rgba(0, 27, 68, .55); }
	.hdt-medal__tag { display: none; }
	.hdt-facts { grid-template-columns: 1fr 1fr; }
	.hdt-fact dd { font-size: 24px; }
	.hdt-fact--text dd { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.hdt *, .hdt-dialog, .hdt-dialog::backdrop { animation: none !important; transition: none !important; }
}
