/*
 * Keating Group — main stylesheet
 * Shared by the WordPress theme and the static preview (preview/*.html).
 */

/* ---------------------------------------------------------------------------
 * Tokens
 * ------------------------------------------------------------------------- */
:root {
	/* Surfaces */
	--paper: #f3f1ec;
	--paper-2: #ebe8e1;
	--tile: #fbfaf8;

	/* Ink — brand charcoal from the Keating Group logo */
	--ink: #2d2a2a;
	--ink-2: #5d5856;
	--ink-3: #8b8581;
	--rule: rgba(45, 42, 42, 0.14);
	--rule-strong: rgba(45, 42, 42, 0.3);

	/* Accent — brand red from the Keating Group logo */
	--red: #ab0000;

	/* Text on photography */
	--cream: #f3f0ea;

	/* Type */
	--serif: "EB Garamond", "Adobe Garamond Pro", Garamond, "Times New Roman", serif;
	--sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;

	/* Layout */
	--max: 1440px;
	--gutter: clamp(20px, 4.2vw, 64px);
	--col-gap: clamp(16px, 2.2vw, 32px);
	--header-h: 72px;

	/* Motion */
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 900px) {
	:root {
		--header-h: 88px;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

main {
	flex: 1 0 auto;
}

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

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
address,
ol,
ul {
	margin: 0;
	padding: 0;
}

ol,
ul {
	list-style: none;
}

address {
	font-style: normal;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

::selection {
	background: var(--ink);
	color: var(--paper);
}

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

.skip-link {
	position: absolute;
	top: -200px;
	left: var(--gutter);
	z-index: 300;
	padding: 12px 18px;
	background: var(--ink);
	color: var(--paper);
	font-size: 14px;
}

.skip-link:focus {
	top: 12px;
}

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

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

.grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--col-gap);
}

/* Underlined text link */
.text-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 5px;
	border-bottom: 1px solid currentColor;
	font-size: 15px;
	transition: gap 0.4s var(--ease-out);
}

.text-link:hover {
	gap: 15px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 17px 24px 17px 26px;
	background: var(--ink);
	border: 0;
	border-radius: 0;
	color: var(--paper);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background-color 0.35s ease;
}

.btn:hover {
	background: var(--red);
}

.btn__arrow {
	display: inline-block;
	transition: transform 0.45s var(--ease-out);
}

.btn:hover .btn__arrow {
	transform: translateX(4px);
}

.btn:hover .btn__arrow--out {
	transform: translate(3px, -3px);
}

/* ---------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	background: var(--paper);
	transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-scrolled {
	background: rgba(243, 241, 236, 0.92);
	box-shadow: 0 1px 0 var(--rule);
	-webkit-backdrop-filter: saturate(1.3) blur(14px);
	backdrop-filter: saturate(1.3) blur(14px);
}

body.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 100%;
}

.brand {
	display: block;
	flex: none;
}

.brand img {
	width: auto;
	height: 32px;
}

@media (min-width: 900px) {
	.brand img {
		height: 40px;
	}
}

.site-nav {
	transition: opacity 0.9s var(--ease-out) 0.15s;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(18px, 3vw, 44px);
}

.site-nav a {
	position: relative;
	display: inline-block;
	padding-block: 6px;
	color: var(--ink-2);
	font-size: 14px;
	letter-spacing: 0.01em;
	transition: color 0.3s ease;
}

.site-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.5s var(--ease-out);
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav .current-menu-item > a {
	color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after,
.site-nav .current-menu-item > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* On the home page the header sits over the photograph, in cream. */
.site-header--overlay {
	position: absolute;
	left: 0;
	right: 0;
	background: transparent;
}

.site-header--overlay.is-scrolled {
	background: transparent;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.site-header--overlay .site-nav a {
	color: rgba(243, 240, 234, 0.8);
}

.site-header--overlay .site-nav a:hover,
.site-header--overlay .site-nav a[aria-current="page"],
.site-header--overlay .site-nav .current-menu-item > a {
	color: var(--cream);
}

/* ---------------------------------------------------------------------------
 * Home
 * ------------------------------------------------------------------------- */
.intro {
	display: flex;
	min-height: calc(100vh - var(--header-h));
	min-height: calc(100svh - var(--header-h));
	padding-block: clamp(64px, 12vh, 140px) clamp(32px, 6vh, 72px);
}

.intro > .container {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.intro__title {
	font-family: var(--serif);
	font-size: clamp(3.25rem, 1rem + 8.2vw, 10rem);
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

/* The bar — taken from the rule in the Keating Group logo */
.kg-bar {
	height: 6px;
	margin-top: clamp(32px, 5vw, 64px);
	background: var(--ink);
	transform-origin: left center;
}

.intro__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 24px;
	padding-top: 18px;
	color: var(--ink-2);
	font-size: 15px;
}

.intro--photo {
	position: relative;
	isolation: isolate;
	min-height: 100vh;
	min-height: 100svh;
	padding-top: calc(var(--header-h) + clamp(64px, 12vh, 140px));
	background: var(--ink);
	color: var(--cream);
}

.intro__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}

.intro__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 62%;
	filter: grayscale(1) contrast(1.06) brightness(0.9);
	transform-origin: 50% 60%;
	animation: kg-settle 16s var(--ease-out) both;
}

/* Darkens the top (for the header) and the bottom (for the statement). */
.intro__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(45, 42, 42, 0.62) 0%,
		rgba(45, 42, 42, 0.14) 26%,
		rgba(45, 42, 42, 0.2) 50%,
		rgba(45, 42, 42, 0.9) 100%
	);
}

@keyframes kg-settle {
	from {
		transform: scale(1.08);
	}

	to {
		transform: scale(1);
	}
}

.intro--photo .intro__title {
	filter: drop-shadow(0 1px 18px rgba(20, 18, 18, 0.3));
}

.intro--photo .kg-bar {
	background: var(--cream);
}

.intro--photo .intro__foot {
	color: rgba(243, 240, 234, 0.8);
}

.intro--photo ::selection {
	background: var(--cream);
	color: var(--ink);
}

/* The home page footer continues the dark base of the photograph. */
.home .site-footer {
	background: var(--ink);
	color: rgba(243, 240, 234, 0.6);
}

.home .site-footer__inner {
	border-top-color: rgba(243, 240, 234, 0.14);
}

.home .site-footer a:hover {
	color: var(--cream);
}

/* ---------------------------------------------------------------------------
 * Intro: the logo builds in colour, turns cream and settles into the header
 * ------------------------------------------------------------------------- */
.kg-loader {
	display: none;
}

.kg-intro,
.kg-intro body {
	overflow: hidden;
}

.kg-intro .kg-loader {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	background: var(--paper);
	transition: background-color 0.9s var(--ease-inout);
}

.kg-intro--reveal .kg-loader {
	background-color: rgba(243, 241, 236, 0);
}

.kg-loader__logo {
	position: relative;
	width: min(64vw, 440px);
	aspect-ratio: 1428 / 526;
	transform-origin: 50% 50%;
	transition: transform 0.95s cubic-bezier(0.7, 0, 0.2, 1);
	will-change: transform;
}

.kg-loader__parts,
.kg-loader__part,
.kg-loader__light {
	position: absolute;
	inset: 0;
}

.kg-loader__part img,
.kg-loader__light {
	display: block;
	width: 100%;
	height: 100%;
}

/* KEATING rises from behind the bar. */
.kg-loader__part--top {
	clip-path: inset(0 0 58% 0);
}

.kg-loader__part--top img {
	clip-path: inset(0 0 62% 0);
	transform: translateY(50%);
	animation: kg-rise 1s var(--ease-out) 0.1s forwards;
}

/* The bar draws out from the centre. */
.kg-loader__part--bar {
	clip-path: inset(45% 50% 46% 50%);
	animation: kg-draw 0.9s var(--ease-out) 0.4s forwards;
}

.kg-loader__part--bar img {
	clip-path: inset(45.5% 0 46.5% 0);
}

/* GROUP rises beneath it. */
.kg-loader__part--bottom {
	clip-path: inset(58% 0 0 0);
}

.kg-loader__part--bottom img {
	clip-path: inset(62% 0 0 0);
	transform: translateY(50%);
	animation: kg-rise 1s var(--ease-out) 0.55s forwards;
}

@keyframes kg-rise {
	to {
		transform: translateY(0);
	}
}

@keyframes kg-draw {
	to {
		clip-path: inset(45% 0 46% 0);
	}
}

/* Colour logo gives way to the cream logo as the photograph appears. */
.kg-loader__parts {
	transition: opacity 0.7s ease;
}

.kg-loader__light {
	opacity: 0;
	transition: opacity 0.7s ease;
}

.kg-intro--reveal .kg-loader__parts {
	opacity: 0;
}

.kg-intro--reveal .kg-loader__light {
	opacity: 1;
}

/* Header waits until the logo lands in it. */
.kg-intro .site-header .brand,
.kg-intro .site-nav {
	opacity: 0;
}

/* ---------------------------------------------------------------------------
 * Page heading (inner pages)
 * ------------------------------------------------------------------------- */
.page-head {
	padding-top: clamp(56px, 9vw, 140px);
	padding-bottom: clamp(48px, 7vw, 104px);
}

.page-title {
	font-family: var(--serif);
	font-size: clamp(3.25rem, 1.4rem + 6vw, 8rem);
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: -0.035em;
}

.page-lead {
	max-width: 28ch;
	margin-top: clamp(28px, 3.5vw, 48px);
	font-family: var(--serif);
	font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.4rem);
	font-weight: 400;
	line-height: 1.18;
	letter-spacing: -0.012em;
	text-wrap: pretty;
}

.page-lead p + p {
	margin-top: 0.6em;
}

/* Title on the left, lead line on the right (Holdings). */
@media (min-width: 900px) {
	.page-head--split {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: var(--col-gap);
		align-items: end;
		padding-bottom: clamp(48px, 5vw, 80px);
	}

	.page-head--split .page-title {
		grid-column: 1 / span 6;
	}

	.page-head--split .page-lead {
		grid-column: 7 / span 6;
		margin-top: 0;
		padding-bottom: 0.3em;
	}
}

/* ---------------------------------------------------------------------------
 * Holdings
 * ------------------------------------------------------------------------- */
.holdings {
	padding-bottom: clamp(88px, 11vw, 168px);
}

.holding {
	align-items: center;
	row-gap: 40px;
	padding-top: clamp(40px, 5vw, 72px);
	border-top: 1px solid var(--rule-strong);
}

.holding + .holding {
	margin-top: clamp(56px, 7vw, 104px);
}

.holding__text {
	grid-column: 1 / -1;
}

.holding__label {
	color: var(--ink-2);
	font-size: 14px;
	letter-spacing: 0.01em;
}

.holding__name {
	margin-top: 14px;
	font-family: var(--serif);
	font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4.25rem);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.holding__desc {
	max-width: 36ch;
	margin-top: clamp(20px, 2vw, 28px);
	color: var(--ink-2);
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	line-height: 1.55;
	text-wrap: pretty;
}

.holding__action {
	margin-top: 32px;
}

/* Brand tile for the holding's logo */
.holding__visual {
	position: relative;
	grid-column: 1 / -1;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--tile-bg, #fff);
	color: var(--ink-2);
	box-shadow: inset 0 0 0 1px var(--rule);
}

.holding__visual--dark {
	background:
		radial-gradient(120% 110% at 18% 0%, rgba(255, 255, 255, 0.09), transparent 58%),
		var(--tile-bg);
	color: rgba(255, 255, 255, 0.72);
	box-shadow: none;
}

.holding__visual img {
	width: min(46%, 380px);
	transition: transform 1.2s var(--ease-out);
}

.holding__domain {
	position: absolute;
	left: clamp(18px, 2vw, 28px);
	right: clamp(18px, 2vw, 28px);
	bottom: clamp(16px, 1.8vw, 24px);
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	letter-spacing: 0.01em;
	transition: color 0.3s ease;
}

.holding__visual--dark:hover .holding__domain {
	color: #fff;
}

@media (min-width: 900px) {
	.holding__text {
		grid-column: 1 / span 5;
	}

	.holding__visual {
		grid-column: 7 / span 6;
	}
}

/* ---------------------------------------------------------------------------
 * Principal
 * ------------------------------------------------------------------------- */
.profile {
	row-gap: 48px;
	padding-top: clamp(40px, 6vw, 96px);
	padding-bottom: clamp(88px, 11vw, 168px);
}

.profile__portrait {
	grid-column: 1 / -1;
	align-self: start;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--paper-2);
}

.profile__portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
	filter: grayscale(1) contrast(1.06) brightness(1.02);
}

.profile__text {
	grid-column: 1 / -1;
}

.profile__name {
	font-family: var(--serif);
	font-size: clamp(3.25rem, 1.4rem + 5vw, 7rem);
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: -0.035em;
}

.profile__role {
	margin-top: 18px;
	color: var(--ink-2);
	font-size: 15px;
}

.profile__bio {
	max-width: 36em;
	margin-top: clamp(36px, 4vw, 56px);
	padding-top: clamp(28px, 3vw, 40px);
	border-top: 1px solid var(--rule-strong);
	font-size: 17px;
	line-height: 1.65;
}

.profile__bio > * + * {
	margin-top: 1em;
}

.profile__bio > p:first-child {
	font-family: var(--serif);
	font-size: clamp(1.45rem, 1.15rem + 0.8vw, 1.9rem);
	line-height: 1.25;
	letter-spacing: -0.01em;
}

@media (min-width: 900px) {
	.profile__portrait {
		position: sticky;
		top: calc(var(--header-h) + 24px);
		grid-column: 1 / span 5;
	}

	.profile__text {
		grid-column: 7 / span 6;
	}

	body.admin-bar .profile__portrait {
		top: calc(var(--header-h) + 56px);
	}
}

/* ---------------------------------------------------------------------------
 * Contact
 * ------------------------------------------------------------------------- */
.contact {
	row-gap: 64px;
	padding-bottom: clamp(88px, 11vw, 168px);
}

.contact__intro {
	grid-column: 1 / -1;
	max-width: 36em;
	margin-bottom: 8px;
	color: var(--ink-2);
	font-size: 17px;
}

.enquiry {
	grid-column: 1 / -1;
	scroll-margin-top: calc(var(--header-h) + 32px);
}

.contact__aside {
	grid-column: 1 / -1;
}

@media (min-width: 900px) {
	.enquiry {
		grid-column: 1 / span 6;
	}

	.contact__aside {
		grid-column: 8 / span 5;
	}
}

.field {
	display: block;
}

.enquiry__fields {
	display: grid;
	gap: 30px;
}

.enquiry__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px var(--col-gap);
}

@media (min-width: 640px) {
	.enquiry__row {
		grid-template-columns: 1fr 1fr;
	}
}

.field__label {
	display: block;
	color: var(--ink-2);
	font-size: 14px;
}

.field__input {
	display: block;
	width: 100%;
	padding: 10px 0 12px;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--rule-strong);
	border-radius: 0;
	color: var(--ink);
	font-size: 18px;
	line-height: 1.4;
	transition: border-color 0.3s ease;
	-webkit-appearance: none;
	appearance: none;
}

.field__input:hover {
	border-bottom-color: var(--ink-3);
}

.field__input:focus {
	outline: none;
	border-bottom-color: var(--ink);
	box-shadow: 0 1px 0 0 var(--ink);
}

textarea.field__input {
	min-height: 140px;
	resize: vertical;
}

.field--trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.enquiry__captcha {
	min-height: 78px;
	margin-top: 36px;
}

.enquiry__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 28px;
	margin-top: 40px;
}

.enquiry__note {
	max-width: 30ch;
	color: var(--ink-3);
	font-size: 13px;
	line-height: 1.5;
}

.enquiry__status {
	margin-bottom: 32px;
	padding: 14px 18px;
	border-left: 2px solid var(--ink);
	background: var(--tile);
	font-size: 15px;
}

.enquiry__status[hidden] {
	display: none;
}

.enquiry__status--error {
	border-left-color: var(--red);
}

.map {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--paper-2);
}

.map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(1) contrast(1.02);
}

.addresses {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px var(--col-gap);
	margin-top: 32px;
}

.address__label {
	margin-bottom: 8px;
	color: var(--ink-3);
	font-size: 14px;
}

.address__lines {
	font-size: 16px;
	line-height: 1.5;
}

.address__lines span {
	display: block;
}

.address__lines a {
	border-bottom: 1px solid var(--rule-strong);
	transition: border-color 0.3s;
}

.address__lines a:hover {
	border-bottom-color: var(--ink);
}

.address--wide {
	grid-column: 1 / -1;
}

@media (max-width: 479px) {
	.addresses {
		grid-template-columns: 1fr;
	}
}

.address__link {
	display: inline-block;
	margin-top: 12px;
	color: var(--ink-2);
	font-size: 14px;
	border-bottom: 1px solid var(--rule-strong);
	transition: color 0.3s, border-color 0.3s;
}

.address__link:hover {
	color: var(--ink);
	border-bottom-color: var(--ink);
}

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------- */
.site-footer {
	flex: none;
	color: var(--ink-2);
	font-size: 14px;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding-block: 28px 32px;
	border-top: 1px solid var(--rule);
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
}

.site-footer a:hover {
	color: var(--ink);
}

/* ---------------------------------------------------------------------------
 * Generic pages (WordPress)
 * ------------------------------------------------------------------------- */
.entry-content {
	max-width: 68ch;
	padding-bottom: clamp(88px, 11vw, 168px);
	font-size: 17px;
	line-height: 1.65;
}

.entry-content > * + * {
	margin-top: 1.1em;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 2em;
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.entry-content h2 {
	font-size: 2rem;
}

.entry-content h3 {
	font-size: 1.5rem;
}

.entry-content a {
	border-bottom: 1px solid currentColor;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.2em;
}

.entry-content ul {
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

/* ---------------------------------------------------------------------------
 * Motion
 * data-reveal            fade up
 * data-reveal="line"     draw from the left
 * data-reveal="words"    words rise into place (split by main.js)
 * data-reveal="image"    wipe up with a slow settle
 * data-reveal="stagger"  children fade up one after another
 * ------------------------------------------------------------------------- */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
	transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-in {
	opacity: 1;
	transform: none;
}

.js [data-reveal="line"] {
	opacity: 1;
	transform: scaleX(0);
	transition: transform 1.6s var(--ease-out);
	transition-delay: var(--delay, 0s);
}

.js [data-reveal="line"].is-in {
	transform: scaleX(1);
}

.js [data-reveal="words"] {
	opacity: 1;
	transform: none;
}

.word {
	display: inline-block;
	overflow: hidden;
	padding: 0.1em 0.06em 0.2em;
	margin: -0.1em -0.06em -0.2em;
	vertical-align: top;
}

.word__inner {
	display: inline-block;
	transform: translateY(115%);
	transition: transform 1.25s var(--ease-out);
	transition-delay: calc(var(--delay, 0s) + var(--i, 0) * 75ms);
}

.is-in .word__inner {
	transform: none;
}

.js [data-reveal="image"] {
	opacity: 1;
	transform: none;
	clip-path: inset(100% 0 0 0);
	transition: clip-path 1.3s var(--ease-inout);
	transition-delay: var(--delay, 0s);
}

.js [data-reveal="image"] > img,
.js [data-reveal="image"] > iframe {
	transform: scale(1.12);
	transition: transform 1.8s var(--ease-out);
	transition-delay: var(--delay, 0s);
}

.js [data-reveal="image"].is-in {
	clip-path: inset(0 0 0 0);
}

.js [data-reveal="image"].is-in > img,
.js [data-reveal="image"].is-in > iframe {
	transform: none;
}

.js .holding__visual.is-in:hover > img,
.holding__visual:hover > img {
	transform: scale(1.04);
	transition-duration: 1.2s;
	transition-delay: 0s;
}

.js [data-reveal="stagger"] {
	opacity: 1;
	transform: none;
}

.js [data-reveal="stagger"] > * {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
	transition-delay: calc(var(--delay, 0s) + var(--i, 0) * 90ms);
}

.js [data-reveal="stagger"].is-in > * {
	opacity: 1;
	transform: none;
}

/* If the script never runs, show everything. */
.kg-failsafe [data-reveal],
.kg-failsafe [data-reveal] * {
	opacity: 1 !important;
	transform: none !important;
	clip-path: none !important;
}

/* Soft cross-fade between pages in browsers that support it. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.5s;
	animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-reduced-motion: reduce) {
	.js [data-reveal],
	.js [data-reveal] > *,
	.js [data-reveal] .word__inner {
		opacity: 1 !important;
		transform: none !important;
		clip-path: none !important;
		transition: none !important;
	}

	.intro__media img {
		animation: none;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}
