/* =========================================================================
   Kuervo Studio — the design system.

   Four colours from the brief and nothing else in the components: everything
   below is a token. The one derived colour is --coral-text: #F26A55 only reaches
   2.9:1 on ivory, enough for a button but not for small type, so links and
   eyebrows use the same hue taken down to 4.7:1. For the same reason a button's
   label is charcoal, not white.

   MOTION. Everything is borrowed from the workshop rather than from a library
   of fades: pictures open like cabinet doors (.cabinet), the hero turns on slats
   (.slats), the services are drawers (.drawer), the process sits on a tape
   measure (.tape), a card hovered shows its dimension lines (.dim), wood grain
   draws itself (.grain), and a page change is a pair of sliding doors.

   All of the entrance states hang off html.moves, which index.php sets before
   first paint unless the visitor asked for less motion. Without it everything
   simply stands where it belongs.
   ========================================================================= */

/* ------------------------------------------------------------------ fonts */
@font-face {
	font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
	src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
	src: url('../fonts/figtree-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap;
	src: url('../fonts/newsreader-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap;
	src: url('../fonts/newsreader-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----------------------------------------------------------------- tokens */
:root {
	--coral: #F26A55;
	--coral-text: #B8402C;
	--ink: #232428;
	--sand: #E7D7C3;
	--ivory: #F7F2EA;

	--text: var(--ink);
	--text-soft: color-mix(in srgb, var(--ink) 74%, var(--ivory));
	--line: color-mix(in srgb, var(--ink) 14%, transparent);
	--sand-soft: color-mix(in srgb, var(--sand) 45%, var(--ivory));
	--paper: color-mix(in srgb, #fff 55%, var(--ivory));
	--wood-a: color-mix(in srgb, var(--sand) 88%, var(--ink));
	--wood-b: color-mix(in srgb, var(--sand) 70%, var(--ink));

	--serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--gutter: clamp(16px, 4vw, 48px);
	--radius: 14px;
	--head-h: 84px;
	--ease: cubic-bezier(.22, .61, .36, 1);
	--ease-door: cubic-bezier(.65, 0, .2, 1);
}

/* ------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--ivory); color: var(--text);
	font: 400 1.0625rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--coral-text); outline-offset: 3px; border-radius: 4px; }
.site-foot :focus-visible, .film-band :focus-visible, .cta-band :focus-visible { outline-color: var(--coral); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.ks-view { outline: none; min-height: 70vh; }
.ks-loading { display: grid; place-items: center; min-height: 60vh; }
.spinner {
	width: 28px; height: 28px; border-radius: 50%;
	border: 2px solid var(--sand); border-top-color: var(--coral);
	animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skip-link {
	position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 14px;
	background: var(--ink); color: var(--ivory); border-radius: 8px;
	transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.noscript { max-width: 640px; margin: 60px auto; padding: 0 16px; }
.muted { color: var(--text-soft); }

.ico {
	width: 20px; height: 20px; flex: none;
	fill: none; stroke: currentColor; stroke-width: 1.7;
	stroke-linecap: round; stroke-linejoin: round;
}
.ico-lg { width: 46px; height: 46px; stroke-width: 1.15; color: var(--coral-text); }

/* ------------------------------------------------------------- typography */
.title {
	font: 400 clamp(2.05rem, 4.4vw, 3.4rem)/1.08 var(--serif);
	letter-spacing: -.018em; text-wrap: balance;
}
.title-xl { font-size: clamp(2.5rem, 6.2vw, 4.9rem); line-height: 1.03; }
.title-lg { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.title-sm { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.title-xs { font-size: 1.45rem; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.55; color: var(--text-soft); }
.eyebrow {
	display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
	font: 600 .76rem/1.3 var(--sans); letter-spacing: .17em; text-transform: uppercase;
	color: var(--coral-text);
}
.eyebrow::before { content: ''; width: 30px; height: 2px; background: var(--coral); flex: none; }
.rule { display: block; width: 72px; height: 3px; background: var(--coral); margin: 20px 0; transform-origin: left; }
.head-center .rule { margin-inline: auto; transform-origin: center; }
.prose h2 { font: 500 1.35rem/1.3 var(--serif); margin: 34px 0 8px; }
.prose { max-width: 760px; }
.prose p { color: var(--text-soft); }

/* WPROM's title effect, as is: blur + beam, on the dictionary string. */
.nw-anim { display: inline; }
.nw-anim-w { white-space: nowrap; }
.nw-anim[data-anim-when*="click"] { cursor: pointer; }
.nw-anim-c { display: inline-block; font-style: inherit; will-change: transform, opacity, filter; }
.nw-anim-blur.is-anim .nw-anim-c { animation: nwBlur var(--anim-dur, .6s) ease-out var(--d, 0s) both; }
@keyframes nwBlur {
	from { filter: blur(8px); opacity: 0; }
	to   { filter: none; opacity: 1; }
}
/* Waiting for its turn, a title is not there yet, rather than there and about
   to vanish. .nw-anim-c exists only once nw_anim has taken the phrase over. */
.moves .nw-anim-blur:not(.is-anim) .nw-anim-c { opacity: 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	padding: 15px 26px; border-radius: 10px;
	background: var(--coral); color: var(--ink);
	font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
	position: relative; overflow: hidden; isolation: isolate;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
/* a plane stroke across the face of the button */
.btn::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: color-mix(in srgb, var(--coral) 72%, #fff);
	transform: translateX(-118%) skewX(-14deg); transform-origin: left;
	transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateX(0) skewX(0); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--coral) 80%, transparent); }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn:hover .ico:first-child:not(:last-child) { transform: none; }
.btn-sm { padding: 11px 18px; font-size: .94rem; gap: 8px; }
.btn-sm .ico { width: 17px; height: 17px; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost::before { background: var(--coral); }
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--coral); }
.btn-full { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.more {
	display: inline-flex; align-items: center; gap: 10px;
	font-weight: 600; font-size: .95rem; color: var(--coral-text); text-decoration: none;
}
.more .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
a:hover > .more .ico, .more:hover .ico { transform: translateX(6px); }

/* ----------------------------------------------------------------- header */
.site-head {
	position: sticky; top: 0; z-index: 50; height: var(--head-h);
	background: color-mix(in srgb, var(--ivory) 90%, transparent);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	transition: height .3s var(--ease), box-shadow .3s var(--ease);
}
.site-head.is-stuck { height: 68px; box-shadow: 0 1px 0 var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { width: auto; height: 46px; transition: height .3s var(--ease), transform .5s var(--ease); }
.is-stuck .brand-mark { height: 38px; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-word { display: grid; line-height: 1; padding-left: 12px; border-left: 1px solid var(--line); }
.brand-word b { font: 700 1.28rem/1 var(--sans); letter-spacing: .05em; }
.brand-word i { font: 500 .66rem/1 var(--sans); letter-spacing: .535em; margin-top: 5px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav a {
	position: relative; padding: 8px 0; font-weight: 500; font-size: .98rem; text-decoration: none;
}
.nav a::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
	background: var(--coral); transform: scaleX(0); transform-origin: left;
	transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.is-on::after { transform: scaleX(1); }
.head-tools { display: flex; align-items: center; gap: 14px; }
.langs { display: flex; gap: 2px; }
.lang {
	padding: 5px 7px; border-radius: 6px; text-decoration: none;
	font-size: .8rem; font-weight: 600; letter-spacing: .05em; color: var(--text-soft);
}
.lang:hover { color: var(--ink); background: var(--sand-soft); }
.lang.is-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--coral); border-radius: 0; }
.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.burger i {
	position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor;
	transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger i:nth-child(1) { top: 17px; }
.burger i:nth-child(2) { top: 26px; }
.nav-open .burger i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .burger i:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ------------------------------------------------------------------- hero */
.hero {
	display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
	min-height: min(calc(100svh - var(--head-h)), 820px); position: relative;
}
.hero-copy {
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	padding: 40px clamp(20px, 4vw, 64px) 56px max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter)));
}
.hero-title { font: 400 clamp(2.7rem, 5.6vw, 5rem)/1.03 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.hero-copy .lead { max-width: 30em; margin-bottom: 30px; }
.moves .hero-in { animation: heroIn .8s var(--ease) var(--d, 0s) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } }
.hero-frame {
	position: relative; overflow: hidden; background: var(--sand);
	border-bottom-left-radius: clamp(60px, 11vw, 170px); min-height: 460px;
}
.moves .hero-frame { animation: frameIn 1.1s var(--ease-door) both; }
@keyframes frameIn { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }

.slats { position: absolute; inset: 0; display: flex; perspective: 1800px; --n: 7; }
.slat { position: relative; flex: 1 1 0; min-width: 0; }
.slat-flip { position: absolute; inset: 0 -.5px; transform-style: preserve-3d; }
.slats.turning .slat-flip {
	transform: rotateY(180deg);
	transition: transform 1s var(--ease-door) calc(var(--i) * 75ms);
}
.face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face-b { transform: rotateY(180deg); }
.face i {
	position: absolute; top: 0; bottom: 0;
	left: calc(var(--i) * -100%); width: calc(var(--n) * 100%);
	background: var(--sand) center / cover no-repeat;
}
.face-a i { background-image: var(--pic-a); }
.face-b i { background-image: var(--pic-b); }
/* the thin edge of each slat while it turns */
.slats.turning .slat-flip::after {
	content: ''; position: absolute; inset: 0; transform: translateZ(0);
	background: linear-gradient(90deg, rgb(0 0 0 / .22), transparent 12%, transparent 88%, rgb(0 0 0 / .22));
	pointer-events: none;
}

.hero-tag {
	position: absolute; right: 88px; bottom: 18px; z-index: 2;
	display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center;
	max-width: calc(100% - 106px); padding: 11px 16px;
	background: color-mix(in srgb, var(--ink) 80%, transparent); color: var(--ivory);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	border-radius: 10px; text-decoration: none;
}
.hero-tag small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
.hero-tag strong { font: 500 1.02rem/1.25 var(--serif); grid-row: 2; }
.hero-tag .ico { grid-row: 1 / 3; grid-column: 2; color: var(--coral); transition: transform .3s var(--ease); }
.hero-tag:hover .ico { transform: translateX(4px); }

/* ----------------------------------------------------------------- values */
.values { background: linear-gradient(90deg, var(--sand-soft), var(--sand)); }
.values-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.value { display: flex; gap: 18px; padding: 30px clamp(14px, 2.4vw, 34px); align-items: flex-start; }
.value + .value { border-left: 1px solid var(--line); }
.value h2 { font: 500 1.28rem/1.25 var(--serif); margin-bottom: 4px; }
.value p { font-size: .94rem; line-height: 1.45; color: var(--text-soft); }

/* --------------------------------------------------------------- sections */
.section { padding-block: clamp(60px, 8vw, 110px); }
.section-tight { padding-block: clamp(24px, 3vw, 44px) clamp(60px, 8vw, 110px); }
.section-sand { background: var(--sand-soft); }
.head { margin-bottom: clamp(30px, 4vw, 52px); }
.head-center { text-align: center; }
.head-center .eyebrow { justify-content: center; }
.head-center .lead { max-width: 38em; margin-inline: auto; }
.head-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px 48px; align-items: end; }
.center-cta { display: flex; justify-content: center; margin-top: clamp(30px, 4vw, 48px); }
.page-head { padding-block: clamp(44px, 6vw, 84px) clamp(20px, 3vw, 36px); }
.page-head .lead { max-width: 40em; margin-top: 18px; }

/* ------------------------------------------------- reveal, and the cabinet */
.moves .reveal { opacity: 0; transform: translateY(26px); }
.moves .reveal.in {
	opacity: 1; transform: none;
	transition: opacity .75s var(--ease) calc(var(--i, 0) * 80ms), transform .75s var(--ease) calc(var(--i, 0) * 80ms);
}
.moves .rule.reveal { opacity: 1; transform: scaleX(0); }
.moves .rule.reveal.in { transform: scaleX(1); }

/* A picture behind two doors. They swing open on their hinges when the card is
   reached, and they are wood-coloured rather than a fade to nothing, so what the
   visitor sees for that moment is a cabinet. */
.cabinet {
	position: relative; display: block; overflow: hidden;
	border-radius: var(--radius); background: var(--sand);
	transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cabinet img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.leaf {
	position: absolute; top: 0; bottom: 0; width: 50.5%; display: none;
	background:
		repeating-linear-gradient(92deg, transparent 0 7px, color-mix(in srgb, var(--ink) 5%, transparent) 7px 8px, transparent 8px 19px),
		linear-gradient(180deg, var(--wood-a), var(--wood-b));
	backface-visibility: hidden;
}
.moves .leaf { display: block; }
.leaf-l { left: 0; transform-origin: left center; box-shadow: inset -1px 0 0 color-mix(in srgb, var(--ink) 30%, transparent); }
.leaf-r { right: 0; transform-origin: right center; box-shadow: inset 1px 0 0 color-mix(in srgb, var(--ink) 30%, transparent); }
.leaf::after {   /* the handle */
	content: ''; position: absolute; top: 50%; width: 3px; height: 38px; margin-top: -19px;
	border-radius: 2px; background: var(--ink); opacity: .55;
}
.leaf-l::after { right: 10px; }
.leaf-r::after { left: 10px; }
.in .leaf {
	transition: transform 1.05s var(--ease-door) calc(var(--i, 0) * 80ms + .12s), opacity .3s linear calc(var(--i, 0) * 80ms + .95s);
	opacity: 0;
}
.in .leaf-l { transform: perspective(900px) rotateY(-108deg); }
.in .leaf-r { transform: perspective(900px) rotateY(108deg); }
.moves .cabinet img { transform: scale(1.09); }
.moves .in .cabinet img { transform: none; transition-delay: calc(var(--i, 0) * 80ms + .1s); }

/* varnish catching the light, following the pointer */
.sheen {
	position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .26), transparent 62%);
}
a:hover > .cabinet .sheen { opacity: 1; }
a:hover > .cabinet { box-shadow: 0 26px 46px -28px rgb(35 36 40 / .65); }
.moves a:hover > .cabinet img { transform: scale(1.045); transition-delay: 0s; }

/* dimension lines, as on a workshop drawing */
.dim { position: absolute; pointer-events: none; color: var(--ivory); filter: drop-shadow(0 1px 1px rgb(0 0 0 / .55)); }
.dim::before { content: ''; position: absolute; background: currentColor; transition: transform .6s var(--ease); }
.dim::after { content: ''; position: absolute; transition: opacity .3s .3s; opacity: 0; }
.dim-x { top: 14px; left: 14px; right: 14px; height: 9px; }
.dim-x::before { left: 0; right: 0; top: 4px; height: 1px; transform: scaleX(0); transform-origin: left; }
.dim-x::after { inset: 0; border-inline: 1px solid currentColor; }
.dim-y { top: 14px; bottom: 14px; left: 14px; width: 9px; }
.dim-y::before { top: 0; bottom: 0; left: 4px; width: 1px; transform: scaleY(0); transform-origin: top; }
.dim-y::after { inset: 0; border-block: 1px solid currentColor; }
.dim b {
	position: absolute; left: 50%; top: 4px; transform: translate(-50%, -50%);
	padding: 2px 8px; border-radius: 4px; background: var(--ink); color: var(--ivory);
	font: 600 .7rem/1.3 var(--sans); letter-spacing: .05em; white-space: nowrap;
	opacity: 0; transition: opacity .3s .25s;
}
a:hover > .cabinet .dim::before { transform: none; }
a:hover > .cabinet .dim::after, a:hover > .cabinet .dim b { opacity: 1; }
@media (hover: none) {
	.in .cabinet .dim::before { transform: none; transition-delay: 1.1s; }
	.in .cabinet .dim::after, .in .cabinet .dim b { opacity: 1; transition-delay: 1.3s; }
}

/* -------------------------------------------------------------- cat cards */
.cat-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.cat-card {
	grid-column: span 3; display: flex; flex-direction: column; text-decoration: none;
	background: var(--paper); border-radius: var(--radius);
}
.cat-card:nth-child(-n+3) { grid-column: span 4; }
.cat-card .cabinet { aspect-ratio: 4 / 3.5; }
.cat-card:nth-child(-n+3) .cabinet { aspect-ratio: 4 / 3.3; }
.cat-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 18px 20px 20px; }
.cat-body strong { font: 500 1.42rem/1.2 var(--serif); }
.cat-lead { font-size: .95rem; line-height: 1.45; color: var(--text-soft); flex: 1; margin-bottom: 8px; }

/* ---------------------------------------------------------- project cards */
.p-card { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.p-body { display: grid; gap: 2px; padding: 14px 4px 4px; }
.p-body small { font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--text-soft); }
.p-body strong { font: 500 1.3rem/1.25 var(--serif); }
.p-card .more { margin-top: 4px; }
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 38px) clamp(16px, 2vw, 26px); }
.p-grid .cabinet { aspect-ratio: 4 / 4.6; }
.p-card[hidden] { display: none; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 30px) clamp(14px, 1.8vw, 22px); }
.bento .cabinet { aspect-ratio: 4 / 3.3; }
.bento .p-card:first-child { grid-row: span 2; }
.bento .p-card:first-child .cabinet { aspect-ratio: auto; flex: 1; min-height: 0; }

.filters {
	display: flex; flex-wrap: wrap; gap: 6px 26px; margin-bottom: clamp(26px, 3vw, 40px);
	border-bottom: 1px solid var(--line); position: relative;
}
.filter {
	position: relative; padding: 10px 0 12px; text-decoration: none;
	font-weight: 500; color: var(--text-soft); transition: color .2s;
}
.filter sup { font-size: .68em; margin-left: 3px; color: var(--coral-text); }
.filter:hover { color: var(--ink); }
.filter::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
	background: var(--coral); transform: scaleX(0); transform-origin: left;
	transition: transform .35s var(--ease);
}
.filter.is-on { color: var(--ink); }
.filter.is-on::after { transform: scaleX(1); }

/* ------------------------------------------------------------------- film */
.film-band { position: relative; overflow: hidden; background: var(--ink); color: var(--ivory); padding-block: clamp(60px, 8vw, 104px); }
.film-band .eyebrow, .cta-band .eyebrow { color: var(--sand); }
.film-band .lead, .cta-band .lead { color: color-mix(in srgb, var(--ivory) 82%, var(--ink)); margin-block: 16px 26px; max-width: 32em; }
.film-row { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.film-frame { max-width: 380px; margin-inline: auto; width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px #000; aspect-ratio: 9 / 15; background: #000; }
.film { width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------------------------------------------- author */
.author { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand-soft); }
.author-pic { min-height: 420px; overflow: hidden; position: relative; border-top-right-radius: clamp(60px, 9vw, 140px); }
.author-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.author-copy {
	display: flex; flex-direction: column; align-items: flex-start; gap: 0; justify-content: center;
	padding: clamp(40px, 6vw, 84px) max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))) clamp(40px, 6vw, 84px) clamp(24px, 5vw, 76px);
}
.author-copy > p:not(.eyebrow) { margin-bottom: 24px; color: var(--text-soft); }
.author-copy strong { color: var(--ink); }

/* ---------------------------------------------------------- process + tape */
.tape {
	position: relative; height: 34px; margin-bottom: 30px; border-radius: 4px; overflow: hidden;
	background:
		repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 55%, transparent) 0 1px, transparent 1px 12px) 0 0 / 100% 7px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 60px) 0 0 / 100% 15px no-repeat,
		var(--sand);
}
.tape-fill {
	position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0));
	background: var(--coral); mix-blend-mode: multiply; will-change: transform;
}
.calm .tape-fill { transform: none; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 34px); }
.step h3 { font: 500 1.28rem/1.25 var(--serif); margin: 12px 0 4px; }
.step p { font-size: .96rem; line-height: 1.5; color: var(--text-soft); }
.moves .step { opacity: .32; transition: opacity .5s var(--ease), transform .5s var(--ease); transform: translateY(8px); }
.moves .step.on { opacity: 1; transform: none; }

/* -------------------------------------------------------------------- cta */
.cta-band { background: var(--ink); color: var(--ivory); padding-block: clamp(50px, 6vw, 80px); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 30px 60px; flex-wrap: wrap; }
.cta-band .lead { margin-bottom: 0; }

/* ----------------------------------------------------------------- footer */
.site-foot { position: relative; overflow: hidden; background: var(--ink); color: var(--ivory); border-top: 1px solid color-mix(in srgb, var(--ivory) 12%, transparent); }
.foot-grid { position: relative; display: grid; grid-template-columns: 1.1fr .7fr 1.2fr; gap: 30px clamp(30px, 6vw, 80px); padding-block: 54px 30px; }
.foot-brand img { height: 70px; width: auto; }
.foot-word { display: grid; line-height: 1; margin-top: 14px; }
.foot-word b { font: 700 1.5rem/1 var(--sans); letter-spacing: .05em; }
.foot-word i { font: 500 .78rem/1 var(--sans); letter-spacing: .53em; margin-top: 6px; }
.foot-tag { font: italic 400 1.05rem/1.3 var(--serif); color: var(--sand); margin-top: 14px; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col a, .foot-end a { text-decoration: none; transition: color .2s; }
.foot-col a:hover, .foot-end a:hover { color: var(--coral); }
.foot-line { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.foot-line .ico { color: var(--coral); }
.foot-end {
	position: relative; display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap;
	padding-block: 18px 26px; font-size: .86rem; color: color-mix(in srgb, var(--ivory) 72%, var(--ink));
}

.grain { position: absolute; right: 0; bottom: 0; width: min(760px, 90%); height: 100%; pointer-events: none; }
.grain path { fill: none; stroke: var(--coral); stroke-width: 1; opacity: .32; vector-effect: non-scaling-stroke; }
.moves .grain path { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.moves .grain.in path { stroke-dashoffset: 0; transition: stroke-dashoffset 3.4s var(--ease); }
.grain.in .grain-drift { animation: drift 18s ease-in-out infinite alternate; }
.calm .grain-drift { animation: none !important; }
@keyframes drift { to { transform: translate3d(-22px, 8px, 0); } }

[data-draw] { stroke-dasharray: 260; stroke-dashoffset: 0; }
.moves .reveal [data-draw] { stroke-dashoffset: 260; }
.moves .reveal.in [data-draw] { stroke-dashoffset: 0; transition: stroke-dashoffset 1.7s var(--ease) calc(var(--i, 0) * 120ms + .15s); }

/* ---------------------------------------------------------------- project */
.project { padding-block: clamp(28px, 4vw, 56px) clamp(50px, 6vw, 84px); }
.project-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.project-side { position: sticky; top: 92px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: .94rem; font-weight: 500; text-decoration: none; color: var(--text-soft); }
.back:hover { color: var(--coral-text); }
.back .ico { width: 18px; height: 18px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 22px; padding-block: 16px; border-block: 1px solid var(--line); }
.project-meta dt { font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--text-soft); }
.project-meta a { text-decoration: none; color: var(--coral-text); }
.project-meta a:hover { text-decoration: underline; }
.project-want { margin-top: 22px; }
.project-want p { margin-bottom: 14px; color: var(--text-soft); }
.mosaic { columns: 2; column-gap: 16px; }
.thumb { display: block; width: 100%; margin-bottom: 16px; break-inside: avoid; cursor: zoom-in; }
.thumb:first-child { column-span: all; }
.thumb .cabinet img { height: auto; }
.thumb:hover .cabinet img { transform: scale(1.03); transition-delay: 0s; }
.project-film { margin-bottom: 16px; position: relative; border-radius: var(--radius); overflow: hidden; max-width: 420px; margin-inline: auto; background: #000; }
.project-film figcaption {
	position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: 6px;
	background: var(--ink); color: var(--ivory); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.pager { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand-soft); }
.pager-link { display: grid; gap: 2px; padding: clamp(22px, 3vw, 36px) var(--gutter); text-decoration: none; transition: background .25s; }
.pager-link:hover { background: var(--sand); }
.pager-link small { font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--coral-text); }
.pager-link strong { font: 500 clamp(1.15rem, 2vw, 1.5rem)/1.2 var(--serif); }
.pager-next { text-align: right; border-left: 1px solid var(--line); }

/* --------------------------------------------------------------- lightbox */
.lightbox {
	position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
	margin: 0; padding: 0; border: 0; background: color-mix(in srgb, var(--ink) 96%, transparent); color: var(--ivory);
}
.lightbox::backdrop { background: var(--ink); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.lb-count { font-size: .9rem; letter-spacing: .05em; }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 clamp(8px, 7vw, 90px) 20px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; user-select: none; }
.lb-btn {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
	background: color-mix(in srgb, var(--ivory) 12%, transparent); transition: background .2s;
}
.lb-btn:hover { background: var(--coral); color: var(--ink); }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -23px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-btn[hidden] { display: none; }

/* ----------------------------------------------------------- the dresser */
.dresser {
	display: grid; gap: 10px; padding: clamp(10px, 1.4vw, 16px);
	max-width: 1100px; background: color-mix(in srgb, var(--sand) 50%, var(--ink) 18%); border-radius: 18px;
	box-shadow: 0 30px 50px -36px rgb(35 36 40 / .7);
}
.drawer { border-radius: 10px; }
.drawer-front {
	display: grid; grid-template-columns: auto 1fr auto 20px; align-items: center; gap: clamp(12px, 2.4vw, 28px);
	width: 100%; min-height: 92px; padding: 16px clamp(16px, 2.6vw, 30px); text-align: left;
	border-radius: 10px; position: relative; z-index: 1;
	background:
		repeating-linear-gradient(91deg, transparent 0 13px, color-mix(in srgb, var(--ink) 4%, transparent) 13px 14px, transparent 14px 31px),
		linear-gradient(180deg, var(--paper), var(--sand));
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5), 0 2px 0 rgb(35 36 40 / .25);
	transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.drawer-front:hover { transform: translateY(-3px) scale(1.006); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6), 0 12px 22px -12px rgb(35 36 40 / .55); }
.drawer-n { font: 500 .86rem/1 var(--sans); letter-spacing: .1em; color: var(--coral-text); }
.drawer-name { font: 500 clamp(1.3rem, 2.5vw, 1.8rem)/1.15 var(--serif); }
.drawer-pull { width: clamp(50px, 9vw, 110px); height: 8px; border-radius: 5px; background: var(--ink); box-shadow: 0 3px 5px -1px rgb(35 36 40 / .5); transition: width .4s var(--ease), background .3s; }
.drawer-front:hover .drawer-pull, .is-open .drawer-pull { background: var(--coral); }
.drawer-plus { transition: transform .4s var(--ease); }
.is-open .drawer-plus { transform: rotate(135deg); }
.is-open .drawer-front { transform: scale(1.012); box-shadow: 0 16px 26px -14px rgb(35 36 40 / .7); }
.drawer-box { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.is-open .drawer-box { grid-template-rows: 1fr; }
.drawer-in {
	min-height: 0; overflow: hidden; visibility: hidden; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center;
	background: var(--ink); color: var(--ivory); border-radius: 0 0 10px 10px; margin-inline: 12px;
	transition: visibility 0s .55s;
}
.is-open .drawer-in { visibility: visible; transition-delay: 0s; }
.drawer-text { padding: clamp(18px, 3vw, 34px); }
.drawer-text p { margin-bottom: 14px; color: color-mix(in srgb, var(--ivory) 86%, var(--ink)); }
.drawer-text .more { color: var(--coral); }
.drawer-pic { display: block; height: 100%; min-height: 200px; position: relative; }
.drawer-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.included { display: grid; gap: 26px; }
.included-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.included-list li { display: grid; gap: 10px; font: 500 1.14rem/1.3 var(--serif); }

/* ------------------------------------------------------------------ about */
.about-hero { padding-block: clamp(40px, 6vw, 80px); }
.about-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 6vw, 84px); align-items: start; }
.about-role { font: italic 400 1.3rem/1.3 var(--serif); color: var(--coral-text); margin-top: 10px; }
.about-copy > p:not(.eyebrow):not(.about-role) { margin-bottom: 16px; color: var(--text-soft); max-width: 36em; }
.about-card { position: sticky; top: 96px; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: var(--ivory); }
.about-card > img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.about-card figcaption { display: flex; gap: 16px; align-items: center; padding: 22px; }
.about-card figcaption img { height: 48px; width: auto; flex: none; }
.about-card blockquote { font: italic 400 1.34rem/1.3 var(--serif); }
.stats { background: var(--ink); color: var(--ivory); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { display: grid; justify-items: center; text-align: center; padding: 34px 12px; }
.stat + .stat { border-left: 1px solid color-mix(in srgb, var(--ivory) 16%, transparent); }
.stat b { font: 400 clamp(2.4rem, 5vw, 3.6rem)/1 var(--serif); color: var(--coral); }
.stat > span { font-size: .94rem; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); }
.way { padding: 26px; background: var(--paper); border-radius: var(--radius); }
.way h3 { font: 500 1.34rem/1.25 var(--serif); margin: 12px 0 6px; }
.way p { color: var(--text-soft); font-size: .98rem; line-height: 1.5; }
.years { display: grid; border-left: 2px solid var(--coral); margin-left: 8px; }
.year { display: grid; grid-template-columns: 96px 1fr; gap: 10px 22px; padding: 14px 0 14px 22px; position: relative; align-items: baseline; }
.year::before { content: ''; position: absolute; left: -7px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 2px var(--coral); }
.year-n { font: 400 1.8rem/1 var(--serif); }
.year-items { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.year-items a { text-decoration: none; border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.year-items a:hover { color: var(--coral-text); border-color: var(--coral); }

/* ---------------------------------------------------------------- contact */
.contact-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 70px); align-items: start; }
.form-card { background: var(--paper); border-radius: 18px; padding: clamp(20px, 3.4vw, 38px); box-shadow: 0 30px 50px -40px rgb(35 36 40 / .6); }
.field { position: relative; margin-bottom: 16px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-pair .field { margin-bottom: 6px; }
.field input, .field select, .field textarea {
	display: block; width: 100%; padding: 24px 14px 9px; border-radius: 10px;
	background: var(--ivory); border: 1px solid var(--line); outline: none; appearance: none;
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 138px; line-height: 1.5; }
.field label {
	position: absolute; left: 15px; top: 16px; pointer-events: none; color: var(--text-soft);
	transform-origin: left top; transition: transform .2s var(--ease), color .2s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea + label, .field select + label { transform: translateY(-9px) scale(.76); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--coral-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 24%, transparent); }
.field .is-bad, .is-bad { border-color: var(--coral-text); }
.field textarea::placeholder { color: color-mix(in srgb, var(--ink) 50%, var(--ivory)); }
.field-select::after {
	content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -3px;
	border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); pointer-events: none;
}
.field-hint { font-size: .86rem; color: var(--text-soft); margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin-bottom: 16px; font-size: .92rem; line-height: 1.45; color: var(--text-soft); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.check-box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--text-soft); background: var(--ivory); position: relative; transition: background .2s, border-color .2s; }
.check input:checked + .check-box { background: var(--coral); border-color: var(--coral); }
.check input:checked + .check-box::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check input:focus-visible + .check-box { outline: 2px solid var(--coral-text); outline-offset: 2px; }
.check a { color: var(--coral-text); }
.form-error { margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--coral) 16%, var(--ivory)); color: var(--ink); font-size: .95rem; }
.btn[disabled] { opacity: .65; pointer-events: none; }
.form-done { display: grid; justify-items: start; gap: 10px; outline: none; }
.form-done[hidden] { display: none; }
.form-done-wa { margin-top: 12px; color: var(--text-soft); }
.tick { width: 72px; height: 72px; fill: none; stroke: var(--coral); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tick circle { stroke-dasharray: 180; stroke-dashoffset: 180; animation: tick .9s var(--ease) forwards; }
.tick path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: tick .5s var(--ease) .6s forwards; }
.calm .tick circle, .calm .tick path { animation: none; stroke-dashoffset: 0; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.channels { display: grid; gap: 10px; margin-bottom: 26px; }
.channels a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--paper); border-radius: 12px; text-decoration: none; transition: transform .25s var(--ease), background .25s; overflow-wrap: anywhere; }
.channels a:hover { transform: translateX(5px); background: var(--sand-soft); }
.channels .ico { width: 24px; height: 24px; color: var(--coral-text); }
.channels small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.area { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 18px; background: var(--sand-soft); border-radius: 14px; }
.area h2 { margin-bottom: 4px; }
.area p { font-size: .95rem; line-height: 1.45; color: var(--text-soft); }
.area-map svg { width: 100%; height: auto; }
/* each municipality is its own subpath: a stroke in the fill colour closes the
   borders between them, so a subregion reads as one shape */
.area-map path { fill: var(--wood-a); stroke: var(--wood-a); stroke-width: 1.5; }
.area-map path[data-zone="Oriente"], .area-map path[data-zone^="Valle"] { fill: var(--coral); stroke: var(--coral); }

.notfound { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 80px 16px; }
.notfound img { height: 110px; width: auto; transform: rotate(-14deg); }

/* ------------------------------------------------------------- the doors */
.doors-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: none; }
.moves .doors-layer { display: block; }
.slide-door {
	position: absolute; top: 0; bottom: 0; width: 50.5%;
	background:
		repeating-linear-gradient(90deg, transparent 0 22px, color-mix(in srgb, var(--ink) 4%, transparent) 22px 23px, transparent 23px 61px),
		linear-gradient(180deg, var(--sand), var(--wood-a));
	transition: transform .42s var(--ease-door);
}
.slide-door-l { left: 0; transform: translateX(-101%); }
.slide-door-r { right: 0; transform: translateX(101%); }
.doors-layer.shut .slide-door { transform: none; transition-duration: .26s; }
.doors-mark {
	position: absolute; left: 50%; top: 50%; width: 60px; height: auto; margin: -36px 0 0 -30px;
	opacity: 0; transform: scale(.8); transition: opacity .16s, transform .26s var(--ease);
}
.doors-layer.shut .doors-mark { opacity: 1; transform: none; }

/* ---------------------------------------------------------- whatsapp float */
.wa-float {
	position: fixed; right: 18px; bottom: 18px; z-index: 40;
	display: flex; align-items: center; gap: 0; height: 56px; padding: 0 16px; border-radius: 28px;
	background: var(--coral); color: var(--ink); text-decoration: none;
	box-shadow: 0 12px 26px -10px rgb(35 36 40 / .7);
	transition: transform .3s var(--ease), background .3s;
}
.wa-float .ico { width: 24px; height: 24px; }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: .95rem; transition: max-width .4s var(--ease), margin .4s var(--ease); }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 110px; margin-left: 10px; }
.wa-float:hover { transform: translateY(-3px); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
	.head-cta { display: none; }
	.bento { grid-template-columns: repeat(2, 1fr); }
	.bento .p-card:first-child { grid-column: span 2; grid-row: auto; }
	.bento .p-card:first-child .cabinet { aspect-ratio: 16 / 10; flex: none; }
	.p-grid { grid-template-columns: repeat(2, 1fr); }
	.cat-card:nth-child(n) { grid-column: span 6; }
	.cat-card:last-child { grid-column: span 12; }
	.cat-card:last-child .cabinet { aspect-ratio: 16 / 7.4; }
	.included-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
	:root { --head-h: 70px; }
	.burger { display: block; }
	.nav {
		position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 12px;
		background: var(--ivory); visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s;
	}
	.nav a { font: 400 2.1rem/1.2 var(--serif); padding: 6px 0; opacity: 0; transform: translateY(12px); }
	.nav-open .nav { visibility: visible; opacity: 1; transition-delay: 0s; }
	.nav-open .nav a { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
	.nav-open .nav a:nth-child(2) { transition-delay: .05s; }
	.nav-open .nav a:nth-child(3) { transition-delay: .1s; }
	.nav-open .nav a:nth-child(4) { transition-delay: .15s; }
	.nav-open .nav a:nth-child(5) { transition-delay: .2s; }
	.nav-open { overflow: hidden; }
	.site-head { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ivory); }
	.brand, .head-tools { position: relative; z-index: 2; }
	.brand-mark, .is-stuck .brand-mark { height: 40px; }

	.hero { grid-template-columns: 1fr; min-height: 0; }
	.hero-copy { padding: 26px var(--gutter) 30px; }
	.hero-frame { min-height: 0; height: 104vw; max-height: 620px; border-bottom-left-radius: 70px; }
	.slats { --n: 5; }
	.values-row { grid-template-columns: 1fr; }
	.value { padding: 20px 4px; }
	.value + .value { border-left: 0; border-top: 1px solid var(--line); }
	.head-split { grid-template-columns: 1fr; }
	.film-row { grid-template-columns: 1fr; }
	.film-frame { max-width: 320px; }
	.author { grid-template-columns: 1fr; }
	.author-pic { min-height: 74vw; border-top-right-radius: 70px; }
	.author-copy { padding: 34px var(--gutter) 46px; }
	.steps { grid-template-columns: 1fr 1fr; }
	.tape { height: 26px; }
	.project-row, .about-row, .contact-row { grid-template-columns: 1fr; }
	.project-side, .about-card { position: static; }
	.ways { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.foot-brand { grid-column: 1 / -1; }
	.drawer-in { grid-template-columns: 1fr; }
	.drawer-pic { min-height: 180px; height: 180px; }
}
@media (max-width: 560px) {
	.p-grid { grid-template-columns: 1fr; }
	.p-grid .cabinet { aspect-ratio: 4 / 3.8; }
	/* on a phone the categories are a compact index, not seven full cards */
	.cat-card .cabinet, .cat-card:nth-child(-n+3) .cabinet { aspect-ratio: 1 / .92; }
	.cat-lead { display: none; }
	.cat-body { padding: 12px 12px 14px; }
	.cat-body strong { font-size: 1.16rem; margin-bottom: 4px; }
	.bento { grid-template-columns: 1fr; }
	.bento .p-card:first-child { grid-column: auto; }
	.bento .cabinet, .bento .p-card:first-child .cabinet { aspect-ratio: 4 / 3.5; }
	.field-pair { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
	.mosaic { columns: 1; }
	.included-list { grid-template-columns: 1fr 1fr; }
	.foot-grid { grid-template-columns: 1fr; }
	.stats-row { grid-template-columns: 1fr; }
	.stat + .stat { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--ivory) 16%, transparent); }
	.year { grid-template-columns: 1fr; }
	.area { grid-template-columns: 96px 1fr; }
	.brand-word b { font-size: 1.1rem; }
	.brand-word i { font-size: .58rem; }
	.lang { padding: 5px 4px; }
	.drawer-pull { display: none; }
	.drawer-front { grid-template-columns: auto 1fr 20px; }
	.wa-float { right: 12px; bottom: 12px; }
}

/* Someone who asked for less motion gets the words and none of the movement. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.nw-anim-c { opacity: 1 !important; }
}
