@charset "UTF-8";

/* ==========================================================================
   The Story of a Panty — stylesheet
   Palette taken from the film: mill haze, workwear green, madder red thread.
   Jost (display, the poster's geometric caps) + Newsreader (reading text).
   ========================================================================== */

@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/jost-latin-var.woff2") format("woff2");
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/newsreader-latin-var.woff2") format("woff2");
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 400 500;
	font-display: swap;
	src: url("../fonts/newsreader-italic-latin-var.woff2") format("woff2");
}

:root {
	/* colour */
	--paper: #f2f4f1;        /* mill haze */
	--paper-2: #e3eae5;      /* green-tinted panel */
	--ink: #1c2a26;          /* deep green-black text */
	--muted: #56635e;
	--green: #2f6b58;        /* workwear green: links */
	--red: #a3263a;          /* madder red: the thread, focus */
	--line: rgba(28, 42, 38, .14);
	--on-ink: #e9eeea;
	--on-ink-muted: #a9b8b1;

	/* type */
	--sans: "Jost", "Futura", "Century Gothic", sans-serif;
	--serif: "Newsreader", "Iowan Old Style", Georgia, serif;
	--step-0: clamp(1.0625rem, .98rem + .3vw, 1.1875rem);
	--step-1: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
	--step-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
	--step-3: clamp(2rem, 1.5rem + 2vw, 3rem);
	--step-hero: clamp(2.6rem, 1rem + 4.6vw, 5.4rem);

	/* layout */
	--wrap: 1240px;
	--gutter: clamp(1rem, 4vw, 3rem);
	--section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
	--header-h: 4rem;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--serif);
	font-size: var(--step-0);
	line-height: 1.6;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

ul,
ol {
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 3px;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.skip-link {
	position: absolute;
	left: var(--gutter);
	top: .75rem;
	transform: translateY(-200%);
	z-index: 100;
	padding: .6rem 1rem;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	text-decoration: none;
}

.skip-link:focus {
	transform: none;
}

/* ---------- shared type ---------- */

.section-title {
	font-family: var(--sans);
	font-weight: 600;
	font-size: var(--step-3);
	line-height: 1.1;
	letter-spacing: -.01em;
	margin-bottom: 2rem;
}

.small-title {
	font-family: var(--sans);
	font-weight: 600;
	font-size: var(--step-1);
	line-height: 1.2;
	margin-bottom: 1.25rem;
}

.prose {
	max-width: 36em;
}

.prose p + p {
	margin-top: 1.1em;
}

.prose .lead {
	font-size: var(--step-1);
	line-height: 1.45;
}

.prose strong {
	font-weight: 600;
}

.prose .pull {
	font-family: var(--sans);
	font-weight: 500;
	font-size: var(--step-2);
	line-height: 1.25;
	letter-spacing: -.005em;
	margin-block: 1.6em;
	max-width: 22em;
}

.prose .signature {
	margin-top: 2em;
	font-style: italic;
	color: var(--muted);
}

.prose .signature::before {
	content: "— ";
}

.section {
	padding-block: var(--section);
}

/* Heading left, text right */
.split {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 2rem clamp(2rem, 5vw, 5rem);
	align-items: start;
}

.split > .section-title {
	position: sticky;
	top: calc(var(--header-h) + 1.5rem);
}

/* ---------- buttons & links ---------- */

.button {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	padding: .75rem 1.4rem;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-weight: 500;
	font-size: 1rem;
	text-decoration: none;
	border-radius: 2px;
	transition: background-color .25s var(--ease);
}

.button:hover {
	background: var(--green);
}

.text-link {
	font-family: var(--sans);
	font-weight: 500;
	font-size: 1rem;
	color: var(--ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .3em;
	transition: color .25s var(--ease);
}

.text-link:hover {
	color: var(--red);
}

/* ---------- header ---------- */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: var(--header-h);
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color .3s var(--ease), border-color .3s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-open {
	background: rgba(242, 244, 241, .94);
	border-bottom-color: var(--line);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 2rem;
	height: 100%;
}

.brand {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 1.05rem;
	text-decoration: none;
	margin-right: auto;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s var(--ease);
}

.site-header.is-scrolled .brand,
.site-header.is-open .brand,
.no-js .brand {
	opacity: 1;
	pointer-events: auto;
}

.nav-list {
	display: flex;
	gap: clamp(1rem, 2.2vw, 2rem);
}

.nav-list a,
.lang-switch {
	font-family: var(--sans);
	font-weight: 500;
	font-size: .98rem;
	text-decoration: none;
	transition: color .2s var(--ease);
}

.nav-list a:hover,
.lang-switch:hover {
	color: var(--green);
}

.lang-switch {
	padding: .3rem .7rem;
	border: 1px solid var(--line);
	border-radius: 2px;
}

.nav-toggle {
	display: none;
}

/* ---------- hero ---------- */

.hero {
	position: relative;
	min-height: min(100svh, 64vw);
	display: flex;
	flex-direction: column;
	isolation: isolate;
}

.hero-media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}

/* Haze over the factory wall so the title reads like on the poster */
.hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(242, 244, 241, .9) 0%, rgba(242, 244, 241, .7) 32%, rgba(242, 244, 241, 0) 58%),
		linear-gradient(180deg, rgba(242, 244, 241, 0) 70%, var(--paper) 100%);
}

.hero-content {
	padding-top: calc(var(--header-h) + clamp(2rem, 8vh, 6rem));
	padding-bottom: 4rem;
}

.emblem {
	width: 4.25rem;
	margin-bottom: 1.75rem;
	fill: none;
	stroke: var(--ink);
	stroke-width: 2;
	stroke-linejoin: round;
}

.hero-title {
	font-family: var(--sans);
	text-transform: uppercase;
}

.hero-title .line {
	display: block;
}

.hero-title-main {
	display: block;
	font-weight: 750;
	font-size: var(--step-hero);
	line-height: .94;
	letter-spacing: .005em;
}

.hero-title-sub {
	display: block;
	margin-top: .9em;
	font-weight: 600;
	font-size: clamp(.95rem, .8rem + .7vw, 1.4rem);
	line-height: 1.3;
	letter-spacing: .08em;
}

.hero-credit {
	margin-top: 1.5rem;
	font-style: italic;
	font-size: var(--step-1);
	max-width: 24em;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	margin-top: 2.25rem;
}

.next-screening {
	margin-top: 1.75rem;
	font-size: 1rem;
	max-width: 30em;
}

.next-label {
	font-family: var(--sans);
	font-weight: 600;
	margin-right: .35em;
}

.next-label::before {
	content: "";
	display: inline-block;
	width: .5em;
	height: .5em;
	margin-right: .5em;
	border-radius: 50%;
	background: var(--red);
	vertical-align: .08em;
}

.next-text {
	text-underline-offset: .25em;
	text-decoration-thickness: 1px;
}

/* ---------- awards ---------- */

.awards {
	padding-block: 1rem clamp(3rem, 6vw, 5rem);
}

.awards-inner {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 2.5rem clamp(2rem, 5vw, 5rem);
	align-items: center;
}

.award-list li + li {
	margin-top: .9rem;
}

.award-list strong {
	display: block;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 1.1rem;
	line-height: 1.3;
}

.award-list span {
	color: var(--muted);
	font-style: italic;
}

.laurels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 2rem;
}

.laurels img {
	width: auto;
	height: clamp(3.4rem, 2.5rem + 2vw, 4.75rem);
	opacity: .78;
	mix-blend-mode: multiply;
}

/* ---------- the chain (red thread) ---------- */

.chain {
	padding-bottom: var(--section);
}

.chain-body {
	position: relative;
	margin-top: 1rem;
}

.thread {
	position: absolute;
	overflow: visible;
	pointer-events: none;
}

.thread path {
	fill: none;
	stroke: var(--red);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
}

.thread--h {
	top: 0;
	left: 0;
	width: 100%;
	height: 2.5rem;
}

.thread--v {
	display: none;
}

.chain-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.5rem;
	position: relative;
	text-align: center;
}

.knot {
	display: block;
	width: 1rem;
	height: 1rem;
	margin: .75rem auto 1.5rem;
	border-radius: 50%;
	background: var(--paper);
	border: 2px solid var(--red);
}

.link-place {
	font-style: italic;
	color: var(--muted);
	font-size: 1rem;
}

.link-name {
	font-family: var(--sans);
	font-weight: 600;
	font-size: var(--step-1);
	line-height: 1.25;
	margin-top: .15rem;
}

.link-role {
	margin: .35rem auto 0;
	max-width: 14em;
	font-size: 1rem;
	line-height: 1.45;
}

/* Drawn once when scrolled into view (enabled by JS, skipped for reduced motion) */
.chain.will-draw .thread path {
	stroke-dashoffset: 1;
}

.chain.will-draw .knot {
	transform: scale(0);
}

.chain.will-draw.is-drawn .thread path {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 2.6s var(--ease);
}

.chain.will-draw.is-drawn .knot {
	transform: scale(1);
	transition: transform .5s var(--ease);
	transition-delay: calc(.35s + var(--i) * .45s);
}

/* ---------- trailer ---------- */

.trailer {
	background: var(--ink);
	color: var(--on-ink);
	padding-block: var(--section);
}

.video {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #0f1815;
}

.video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-facade {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 1rem;
	color: var(--on-ink);
	text-decoration: none;
	overflow: hidden;
}

.video-facade img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.8);
	transition: filter .4s var(--ease);
}

.video-facade::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(15, 24, 21, .45);
	transition: background-color .4s var(--ease);
}

.video-facade:hover::after {
	background: rgba(15, 24, 21, .3);
}

.video-facade:hover img {
	filter: saturate(1);
}

.video-facade:focus-visible {
	outline-color: var(--on-ink);
	outline-offset: -6px;
}

.play {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 5.5rem;
	height: 5.5rem;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	transition: background-color .3s var(--ease), transform .3s var(--ease);
}

.play svg {
	width: 2rem;
	margin-left: .2rem;
	fill: currentColor;
}

.video-facade:hover .play {
	background: rgba(233, 238, 234, .14);
	transform: scale(1.04);
}

.play-label {
	position: relative;
	z-index: 1;
	font-family: var(--sans);
	font-weight: 500;
}

/* ---------- gallery ---------- */

.gallery {
	padding-top: var(--section);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(.75rem, 1.5vw, 1.25rem);
}

.still img {
	width: 100%;
}

.still--1 { grid-column: 1 / span 7; }
.still--2 { grid-column: 8 / span 5; align-self: end; }
.still--3 { grid-column: 1 / span 5; }
.still--4 { grid-column: 6 / span 7; }

/* ---------- team ---------- */

.team {
	padding-top: 0;
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 3rem clamp(2rem, 4vw, 4rem);
}

.person img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.person-name {
	margin-top: 1.4rem;
	font-family: var(--sans);
	font-weight: 600;
	font-size: var(--step-1);
	line-height: 1.25;
}

.person-role {
	margin-top: .2rem;
	font-style: italic;
	color: var(--muted);
}

.person-bio {
	margin-top: .9rem;
	max-width: 34em;
}

/* ---------- screenings ---------- */

.screenings {
	border-top: 1px solid var(--line);
}

.screenings-body {
	max-width: 44rem;
}

.summary {
	font-size: var(--step-1);
	line-height: 1.45;
	margin-bottom: 2.5rem;
}

.release,
.upcoming {
	margin-bottom: 2.5rem;
	padding: 1.25rem 1.5rem;
	border-radius: 3px;
}

.release {
	background: var(--paper-2);
}

.upcoming {
	border: 1px solid var(--red);
}

.release h3,
.upcoming h3 {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 1.1rem;
	margin-bottom: .35rem;
}

.upcoming .screening-list {
	padding-bottom: 0;
}

.upcoming .screening-list li:last-child {
	border-bottom: 0;
}

.year {
	border-top: 1px solid var(--line);
}

.year:last-of-type {
	border-bottom: 1px solid var(--line);
}

.year summary {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	padding-block: 1.1rem;
	cursor: pointer;
	list-style: none;
}

.year summary::-webkit-details-marker {
	display: none;
}

.year summary::after {
	content: "";
	width: .6rem;
	height: .6rem;
	margin-left: auto;
	align-self: center;
	border-right: 1.5px solid var(--ink);
	border-bottom: 1.5px solid var(--ink);
	transform: translateY(-25%) rotate(45deg);
	transition: transform .25s var(--ease);
}

.year[open] summary::after {
	transform: translateY(25%) rotate(-135deg);
}

.year summary:hover .year-num {
	color: var(--green);
}

.year-num {
	font-family: var(--sans);
	font-weight: 600;
	font-size: var(--step-1);
	font-variant-numeric: tabular-nums;
	transition: color .2s var(--ease);
}

.year-count {
	color: var(--muted);
	font-style: italic;
	font-size: 1rem;
}

.screening-list {
	padding-bottom: 1rem;
}

.screening-list li {
	display: grid;
	grid-template-columns: 10.5rem minmax(0, 1fr);
	column-gap: 1.5rem;
	padding-block: .6rem;
	border-bottom: 1px solid rgba(28, 42, 38, .07);
	font-size: 1rem;
	line-height: 1.45;
}

.screening-list time {
	grid-row: span 2;
	font-family: var(--sans);
	font-size: .95rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	padding-top: .08rem;
}

.screening-list .place {
	font-style: italic;
	color: var(--muted);
}

/* ---------- credits ---------- */

.credits {
	background: var(--paper-2);
	padding-block: var(--section);
}

.credits-inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 3rem clamp(2rem, 5vw, 5rem);
	align-items: center;
}

.credits-poster img {
	width: 100%;
	max-width: 400px;
	margin-inline: auto;
	outline: 1px solid var(--line);
}

.credit-list div {
	display: grid;
	grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr);
	gap: 1rem;
	padding-block: .7rem;
	border-bottom: 1px solid var(--line);
}

.credit-list div:first-child {
	border-top: 1px solid var(--line);
}

.credit-list dt {
	font-family: var(--sans);
	font-size: .95rem;
	color: var(--muted);
	padding-top: .1rem;
}

/* ---------- footer ---------- */

.site-footer {
	background: var(--ink);
	color: var(--on-ink);
	padding-top: var(--section);
	padding-bottom: 2rem;
}

.footer-inner {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: 3rem;
}

.contact-intro {
	max-width: 30em;
	color: var(--on-ink-muted);
}

.contact-person {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-top: 2rem;
}

.contact-photo {
	width: 6rem;
	height: 6rem;
	border-radius: 50%;
}

.contact-name {
	font-family: var(--sans);
	font-weight: 600;
	font-size: var(--step-1);
	line-height: 1.2;
}

.contact-role {
	font-style: italic;
	color: var(--on-ink-muted);
}

.contact-mail {
	display: inline-block;
	margin-top: .5rem;
	font-family: var(--sans);
	font-size: 1.1rem;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .3em;
	transition: color .2s var(--ease);
}

.contact-mail:hover,
.footer-link:hover {
	color: #fff;
	text-decoration-color: var(--red);
}

.footer-side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 2rem;
}

.footer-link {
	font-family: var(--sans);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .3em;
}

.lea-logo img {
	width: 11rem;
}

.footer-bottom {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5rem 2rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(233, 238, 234, .15);
	font-size: .9rem;
	color: var(--on-ink-muted);
}

.site-footer :focus-visible {
	outline-color: var(--on-ink);
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
	.awards-inner,
	.credits-inner {
		grid-template-columns: 1fr;
	}

	.chain-list {
		grid-template-columns: 1fr;
		gap: 2rem;
		text-align: left;
		padding-left: 2.5rem;
	}

	.thread--h {
		display: none;
	}

	.thread--v {
		display: block;
		top: .8rem;
		left: .5rem;
		width: 2px;
		height: calc(100% - 1.6rem);
	}

	.link {
		position: relative;
	}

	.knot {
		position: absolute;
		left: -2.5rem;
		top: .3rem;
		margin: 0;
	}

	.link-role {
		margin-left: 0;
	}
}

@media (max-width: 760px) {
	:root {
		--header-h: 3.5rem;
	}

	.split,
	.team-grid,
	.footer-inner {
		grid-template-columns: 1fr;
	}

	.split > .section-title {
		position: static;
		margin-bottom: 0;
	}

	.brand {
		font-size: .95rem;
	}

	.header-inner {
		gap: .75rem;
	}

	/* Collapsible menu (JS). Without JS the header is static and links wrap. */
	.js .nav-toggle {
		display: inline-flex;
		align-items: center;
		min-height: 2.75rem;
		padding: 0 .9rem;
		background: none;
		border: 1px solid var(--line);
		border-radius: 2px;
		font: 500 .95rem var(--sans);
		color: var(--ink);
		cursor: pointer;
	}

	.js .nav-list {
		display: none;
		position: absolute;
		top: var(--header-h);
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		padding: .5rem var(--gutter) 1.25rem;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
	}

	.js .nav-toggle[aria-expanded="true"] + .nav-list {
		display: flex;
	}

	.js .nav-list a {
		display: flex;
		align-items: center;
		min-height: 3rem;
		font-size: 1.15rem;
		border-bottom: 1px solid var(--line);
	}

	.lang-switch {
		display: inline-flex;
		align-items: center;
		min-height: 2.75rem;
	}

	.no-js .site-header {
		position: static;
		height: auto;
		padding-block: .75rem;
	}

	.no-js .header-inner {
		flex-wrap: wrap;
		gap: .5rem 1rem;
	}

	.hero {
		min-height: 0;
	}

	.hero-media {
		position: relative;
		z-index: 0;
	}

	.hero-media img {
		aspect-ratio: 4 / 3;
		height: auto;
		object-position: 60% 50%;
	}

	.hero-media::after {
		background: linear-gradient(180deg, var(--paper) 0%, rgba(242, 244, 241, 0) 22%);
	}

	.hero-content {
		padding-bottom: 2rem;
	}

	.hero-title-main {
		font-size: clamp(2.3rem, 11vw, 3.4rem);
	}

	.still--1,
	.still--2,
	.still--3,
	.still--4 {
		grid-column: 1 / -1;
	}

	.screening-list li {
		grid-template-columns: 1fr;
	}

	.screening-list time {
		grid-row: auto;
	}

	.credit-list div {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
	}
}
