/* ==========================================================================
   Anastasia Borodina — cold ground / warm subject
   ========================================================================== */

:root {
	--paper: #DFE2DF;
	--paper-lift: #E9EBE8;
	--ink: #14181A;
	--field: #171B1D;
	--frost: #A9B5B4;
	--white: #FFFFFF;
	/* Muted ink for secondary text on light grounds — a fixed value rather
	   than ink-at-opacity, so contrast against --paper/--paper-lift stays
	   comfortably above WCAG AA (measured ~7:1) regardless of how a browser
	   composites alpha blending. */
	--ink-muted: #45494A;

	--font-serif: 'Newsreader Variable', Georgia, 'Times New Roman', serif;
	--font-sans: 'Archivo Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

	--max-width: 1560px;
	--side-margin: max(20px, 4.5vw);
	--gutter: 24px;
	--unit: 8px;
	--section-pad: 96px;
}

@media (min-width: 768px) {
	:root { --section-pad: 144px; }
}
@media (min-width: 1024px) {
	:root { --section-pad: 200px; }
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}
.ab-video-module--dark :focus-visible,
.ab-contact :focus-visible {
	outline-color: var(--paper);
}

.ab-container {
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: var(--side-margin);
}

.ab-skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	background: var(--ink);
	color: var(--paper);
	padding: 12px 20px;
	z-index: 1000;
	font-family: var(--font-sans);
	font-weight: 500;
}
.ab-skip-link:focus {
	left: var(--side-margin);
	top: 12px;
}

.ab-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0; padding: 0; margin: -1px;
}

/* ==========================================================================
   Typography primitives
   ========================================================================== */

.ab-heading {
	font-family: var(--font-serif);
	font-weight: 400;
	font-optical-sizing: auto;
	font-size: clamp(1.75rem, 3.6vw, 2.75rem);
	letter-spacing: -0.015em;
	line-height: 1.1;
}

.ab-label {
	font-family: var(--font-sans);
	font-weight: 500;
	font-variation-settings: 'wdth' 92;
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	color: var(--ink-muted);
}

.ab-value {
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: 1rem;
}

.ab-nav-type {
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: 0.875rem;
	letter-spacing: 0.01em;
}

/* ==========================================================================
   Buttons / links
   ========================================================================== */

.ab-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: 0.875rem;
	letter-spacing: 0.01em;
	padding: 15px 30px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	transition: transform 0.2s ease, opacity 0.2s ease;
	white-space: nowrap;
}
.ab-btn:hover { opacity: 0.85; }
.ab-btn:active { transform: scale(0.98); }
.ab-btn--light {
	background: var(--paper);
	color: var(--ink);
}

.ab-imdb-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: 0.875rem;
	letter-spacing: 0.01em;
	padding-block: 15px;
}
.ab-imdb-link__arrow { font-size: 0.9em; }

/* ==========================================================================
   Nav
   ========================================================================== */

.ab-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--paper);
}
.ab-nav .ab-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 20px;
}
.ab-nav__name {
	font-family: var(--font-serif);
	font-size: 1.125rem;
	font-weight: 400;
	flex: 0 0 auto;
}
.ab-nav__menu {
	display: none;
	align-items: center;
	gap: 32px;
	flex: 1;
}
.ab-nav__menu a:hover { opacity: 0.65; }
.ab-nav__actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 0 0 auto;
}
.ab-nav__cv { display: none; }
.ab-nav__cv-mobile {
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: 0.875rem;
}
.ab-nav__toggle {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 8px 4px;
}
.ab-nav__toggle span {
	display: block;
	width: 22px;
	height: 1.5px;
	background: var(--ink);
}
.ab-nav__mobile-panel {
	display: none;
	flex-direction: column;
	gap: 4px;
	padding: 0 var(--side-margin) 24px;
	background: var(--paper);
}
.ab-nav__mobile-panel a {
	font-family: var(--font-serif);
	font-size: 1.5rem;
	padding-block: 10px;
	border-bottom: 1px solid rgba(20, 24, 26, 0.12);
}
.ab-nav.is-open .ab-nav__mobile-panel { display: flex; }

@media (min-width: 1024px) {
	.ab-nav__menu { display: flex; }
	.ab-nav__cv { display: inline-flex; }
	.ab-nav__cv-mobile,
	.ab-nav__toggle { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.ab-hero {
	display: flex;
	flex-direction: column;
}
.ab-hero__media {
	width: 100%;
}
.ab-hero__media .ab-photo {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 34%;
}
.ab-hero__content {
	padding: 40px var(--side-margin) 56px;
}
.ab-hero__name {
	font-family: var(--font-serif);
	font-weight: 400;
	font-optical-sizing: auto;
	font-size: clamp(3rem, 12vw, 5.5rem);
	line-height: 0.98;
	letter-spacing: -0.02em;
	margin: 0 0 20px;
}
.ab-hero__role {
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: 0.9375rem;
	margin-bottom: 6px;
}
.ab-hero__meta {
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	color: var(--ink-muted);
	line-height: 1.6;
	margin-bottom: 28px;
}
.ab-hero__actions {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.ab-hero__media {
	overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
	.ab-hero__media .ab-photo {
		animation: ab-hero-scale-in 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
	}
	.ab-hero__name {
		animation: ab-hero-rise-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms both;
	}
}
@keyframes ab-hero-scale-in {
	from { transform: scale(1.04); }
	to { transform: scale(1); }
}
@keyframes ab-hero-rise-in {
	from { opacity: 0; transform: translateY(0.35em); }
	to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1024px) {
	.ab-hero {
		flex-direction: row;
		align-items: stretch;
		min-height: 86vh;
		min-height: 86dvh;
		/* Visible breathing room between the portrait and the name column —
		   the image keeps its own 48% width; the content column simply
		   absorbs the gap, so the photo itself is untouched. */
		gap: clamp(48px, 5vw, 80px);
		/* Real outer gutter so the portrait never touches the viewport's
		   top or left edge — the whole row (image + text) shifts as one
		   unit, so the eye-line / name alignment is unaffected. */
		padding-left: clamp(48px, 4.5vw, 80px);
		padding-top: clamp(32px, 4vh, 64px);
	}
	.ab-hero__media {
		flex: 0 0 48%;
		max-width: 48%;
		height: 86vh;
		height: 86dvh;
	}
	.ab-hero__media .ab-photo {
		height: 100%;
		width: 100%;
	}
	/* The gallery-trigger button wrapping the hero photo needs an explicit
	   height too, or the image's height:100% has no containing block to
	   resolve against (an auto-height parent can't satisfy a % height). */
	.ab-hero__media .ab-gallery-trigger {
		height: 100%;
	}
	.ab-hero__content {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		padding: clamp(120px, 29vh, 340px) 5vw 0;
	}
	.ab-hero__name {
		font-size: clamp(4rem, 7.2vw, 8.5rem);
	}
}

/* ==========================================================================
   Headshots
   ========================================================================== */

.ab-headshots {
	padding-block: var(--section-pad);
}
.ab-headshots h2 {
	margin-bottom: 48px;
}
.ab-headshots figure { margin: 0; }
.ab-headshots .ab-photo {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

/* ---- Range, not hierarchy: a balanced 2 + 3 editorial composition ----
   All five photographs render at the same width (and therefore, since every
   portrait shares the 4:5 ratio, the same visual area) — five casting
   possibilities read as equally important, not one hero shot plus four
   supporting stills. Row 1 (#6 + #2) intentionally stops short of the full
   grid width rather than stretching to match row 2's 3-across span, which
   is what keeps it from reading as a generic uniform card grid. */
.ab-headshots__grid {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.ab-headshots__grid figure { width: 100%; }

@media (min-width: 768px) {
	.ab-headshots__grid {
		display: grid;
		grid-template-columns: repeat(12, 1fr);
		gap: var(--gutter) var(--gutter);
		row-gap: 32px;
		/* Without this, grid's default stretch would inflate every figure to
		   the row's tallest margin-box (secondary/quaternary's +32px offset),
		   leaving invisible empty space under the other three photographs —
		   the images themselves must size purely from their own aspect-ratio. */
		align-items: start;
	}
	.ab-headshots__grid figure { width: auto; }

	/* Row 1 — #6, #2: two portraits, each exactly the width of a row-2
	   portrait, left-aligned with the grid and stopping at column 9 of 12. */
	.ab-headshots__primary   { grid-column: 1 / 5; grid-row: 1; }
	.ab-headshots__secondary { grid-column: 5 / 9; grid-row: 1; }

	/* Row 2 — #3, #5, #4: three portraits sharing the same 4-column unit,
	   spanning the full grid width. */
	.ab-headshots__tertiary   { grid-column: 1 / 5; grid-row: 2; }
	.ab-headshots__quaternary { grid-column: 5 / 9; grid-row: 2; }
	.ab-headshots__quinary    { grid-column: 9 / 13; grid-row: 2; }

	/* Same width, same area throughout — the offset is the only thing that
	   keeps the middle column from reading as a rigid, uniform card grid.
	   (Specificity matches the earlier `.ab-headshots figure{margin:0}`
	   reset so these actually take effect.) */
	figure.ab-headshots__secondary,
	figure.ab-headshots__quaternary {
		margin-top: 32px;
	}
}

/* ==========================================================================
   Video modules (dormant in V1 — styled for when content exists)
   ========================================================================== */

.ab-video-module {
	padding-block: var(--section-pad);
}
.ab-video-module--dark {
	background: var(--field);
	color: var(--paper);
}
.ab-video-module__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--field);
	overflow: hidden;
}
.ab-video-module__frame--portrait { aspect-ratio: 4 / 5; max-width: 480px; }
.ab-video-module__frame img,
.ab-video-module__frame iframe,
.ab-video-module__frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ==========================================================================
   Profile
   ========================================================================== */

.ab-profile {
	background: var(--paper-lift);
	padding-block: var(--section-pad);
}
.ab-profile h2 {
	margin-bottom: 48px;
}
.ab-profile__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 56px;
}
.ab-profile__data dl {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	max-width: 420px;
	padding: 20px 0;
	border-bottom: 1px solid rgba(169, 181, 180, 0.28);
}
.ab-profile__data dt { flex: 0 0 auto; }
.ab-profile__data dd { flex: 0 0 auto; font-weight: 500; }

/* Languages reads as a lighter, separate block — not a continuation of the
   details table above: tighter rows, no ruled dividers, narrower measure. */
.ab-profile__languages {
	margin-top: 56px;
}
.ab-profile__languages dl {
	max-width: 320px;
	padding: 10px 0;
	border-bottom: none;
}
.ab-profile__languages dd { font-weight: 400; }

.ab-profile__languages h3,
.ab-profile__available h3,
.ab-profile__skills h3 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	margin-bottom: 20px;
}
.ab-profile__available { margin-top: 40px; }
.ab-profile__available p {
	font-family: var(--font-sans);
	font-size: 0.9375rem;
}
.ab-profile__skills p {
	font-family: var(--font-serif);
	font-weight: 300;
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	line-height: 1.55;
	margin-bottom: 30px;
}
.ab-profile__skills p:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
	.ab-profile__grid {
		grid-template-columns: 1.65fr 1fr;
		gap: clamp(72px, 6vw, 96px);
	}
	.ab-profile__skills {
		padding-top: 8px;
	}
}

/* ==========================================================================
   Contact / footer
   ========================================================================== */

.ab-contact {
	background: var(--field);
	color: var(--paper);
	padding-block: 64px;
}
.ab-contact__label {
	font-family: var(--font-serif);
	font-size: clamp(1.25rem, 2.4vw, 1.75rem);
	color: var(--frost);
	margin-bottom: 16px;
}
.ab-contact__email {
	display: block;
	font-family: var(--font-serif);
	font-size: clamp(1.375rem, 3.4vw, 2.25rem);
	letter-spacing: -0.01em;
	word-break: break-word;
	margin-bottom: 10px;
}
.ab-contact__email:hover { opacity: 0.85; }
.ab-contact__phone {
	display: block;
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	color: var(--frost);
	margin-bottom: 28px;
}
.ab-contact__phone:hover { opacity: 0.85; }
.ab-contact__actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}
.ab-contact .ab-btn {
	padding: 12px 24px;
	font-size: 0.8125rem;
}
.ab-contact .ab-imdb-link { color: var(--paper); }
.ab-contact__meta {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	color: var(--frost);
	padding-top: 20px;
	border-top: 1px solid rgba(169, 181, 180, 0.25);
}

@media (min-width: 768px) {
	.ab-contact { padding-block: 96px; }
}
@media (min-width: 1024px) {
	.ab-contact { padding-block: 128px; }
}

/* ==========================================================================
   Gallery trigger — every published photograph opens the lightbox
   ========================================================================== */

.ab-gallery-trigger {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.ab-gallery-trigger .ab-photo {
	transition: opacity 0.2s ease;
}
.ab-gallery-trigger:hover .ab-photo {
	opacity: 0.9;
}

/* ==========================================================================
   Lightbox gallery — built once, on first open, by assets/js/lightbox.js
   ========================================================================== */

.ab-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--field);
	opacity: 0;
}
.ab-lightbox[hidden] { display: none; }
.ab-lightbox.is-visible { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	.ab-lightbox { transition: opacity 0.25s ease; }
}
html.ab-lightbox-open,
html.ab-lightbox-open body {
	overflow: hidden;
}

.ab-lightbox__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 64px var(--side-margin);
}
.ab-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: calc(100dvh - 128px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.ab-lightbox__close,
.ab-lightbox__nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	color: var(--paper);
	cursor: pointer;
	padding: 12px;
	line-height: 1;
	transition: opacity 0.2s ease;
}
.ab-lightbox__close:hover,
.ab-lightbox__nav:hover {
	opacity: 0.7;
}
.ab-lightbox__close {
	top: 12px;
	right: 12px;
	font-size: 2rem;
	width: 48px;
	height: 48px;
}
.ab-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	font-size: 2.5rem;
	width: 56px;
	height: 56px;
}
.ab-lightbox__nav--prev { left: 4px; }
.ab-lightbox__nav--next { right: 4px; }

.ab-lightbox__counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--font-sans);
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	color: var(--frost);
}

@media (min-width: 640px) {
	.ab-lightbox__close { top: 24px; right: 24px; }
	.ab-lightbox__nav--prev { left: 16px; }
	.ab-lightbox__nav--next { right: 16px; }
}

/* ==========================================================================
   Utility: section anchors sit clear of the sticky nav
   ========================================================================== */
#headshots, #profile, #contact { scroll-margin-top: 88px; }
