/* ==========================================================================
   Shared section bits
   ========================================================================== */

.btn {
	display: inline-block;
	padding: .8rem 1.4rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: .7rem;
	font-weight: 400;
	letter-spacing: .2em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .3s, color .3s, border-color .3s;
}

/* Scroll reveal (only hides when JS is running, so content never stays invisible) */
.js [data-reveal] {
	opacity: 0;
	transition: opacity 1s ease, transform 1s ease;
}
.js [data-reveal="left"]  { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="up"]    { transform: translateY(30px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
	--about-bg: #000;
	--about-fg: #fff;
	--about-muted: rgba(255, 255, 255, .78);
	padding-block: clamp(4rem, 9vw, 7rem);
	background: var(--about-bg);
	color: var(--about-fg);
}
.about--light {
	--about-bg: var(--la-paper);
	--about-fg: var(--la-ink);
	--about-muted: rgba(29, 27, 25, .78);
}

.about .container { width: min(1060px, 100% - 2.5rem); }

.about__big-title {
	margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
	font-family: var(--la-condensed);
	font-size: clamp(2.25rem, 8.5vw, 6.25rem); /* fallback; JS fits it to the width */
	font-weight: 500;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.about__big-title.is-fitted { width: max-content; white-space: nowrap; }

.about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 3rem);
	align-items: start;
}
.about--image-left .about__text { order: 2; }
.about--no-image .about__grid   { grid-template-columns: minmax(0, 46rem); }

.about__heading {
	margin: 0 0 2rem;
	font-family: var(--la-condensed);
	font-size: clamp(1.35rem, 2.3vw, 1.75rem);
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.about__body {
	color: var(--about-muted);
	font-size: .875rem;
	line-height: 1.85;
	text-align: justify;
	hyphens: auto;
}
.about__body p { margin: 0 0 1.1rem; }
.about__body a { color: var(--about-fg); text-decoration: underline; text-underline-offset: 3px; }
.about__body a:hover { color: var(--la-accent); }
.about__body em { color: var(--about-fg); }

.about__signature {
	margin: 1.75rem 0 2.25rem;
	font-family: var(--la-script);
	font-size: clamp(1.6rem, 2.6vw, 2rem);
	line-height: 1.2;
	text-align: right;
}

.about .btn { border-color: rgba(255, 255, 255, .6); }
.about--light .btn { border-color: rgba(29, 27, 25, .5); }
.about .btn:hover,
.about .btn:focus-visible { background: var(--about-fg); color: var(--about-bg); border-color: var(--about-fg); }

.about__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

@media (max-width: 899px) {
	.about__grid { grid-template-columns: 1fr; }
	.about--image-left .about__text { order: 0; }
	.about__body { text-align: left; }
	.about__image { max-width: 520px; }
}

/* ==========================================================================
   SEO text section
   ========================================================================== */

.seo-section {
	padding-block: clamp(4rem, 9vw, 7rem);
	background: var(--la-paper);
	color: var(--la-ink);
}
.seo-section .container { width: min(1400px, 100% - 2.5rem); }

.seo-section__title {
	max-width: 52rem;
	margin: 0 auto clamp(2.5rem, 5vw, 4rem);
	font-family: var(--la-condensed);
	font-size: clamp(1.4rem, 2.5vw, 1.8rem);
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: .12em;
	text-align: center;
	text-transform: uppercase;
}

.seo-section__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}
.seo-section--text-only .seo-section__grid { grid-template-columns: minmax(0, 46rem); justify-content: center; }

.seo-section__block + .seo-section__block { margin-top: 2.25rem; }
.seo-section__block h3 {
	margin: 0 0 .6rem;
	font-family: var(--la-condensed);
	font-size: 1.15rem;
	font-weight: 500;
	letter-spacing: .03em;
}
.seo-section__block p { margin: 0 0 1rem; color: rgba(29, 27, 25, .72); font-size: .95rem; line-height: 1.8; }
.seo-section__block p:last-child { margin-bottom: 0; }
.seo-section__block a { color: var(--la-ink); text-underline-offset: 3px; }

/* Media stays in view while the text scrolls past */
.seo-section__media { position: sticky; top: 6rem; }
.seo-section__frame { display: block; overflow: hidden; background: #e6dfd5; }
.seo-section__video,
.seo-section__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
a.seo-section__frame:hover .seo-section__video,
a.seo-section__frame:hover .seo-section__img { transform: scale(1.03); }
a.seo-section__frame:focus-visible { outline: 1px solid var(--la-ink); outline-offset: 6px; }

@media (max-width: 899px) {
	.seo-section__grid { grid-template-columns: 1fr; }
	.seo-section__media { position: static; order: -1; }
}
