/* DELSA Diseño y Construcción. One stylesheet for every page. */

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("fonts/archivo.woff2") format("woff2");
}

:root {
	--ground: #f3f3f1;
	--paper: #ffffff;
	--field: #e4e3df;
	--ink: #131313;
	--ink-2: #55565a;
	--red: #8b1f03;          /* the red of the DELSA mark */
	--red-press: #6e1802;
	--grey: #7f8082;         /* the grey of the DELSA mark */
	--dark: #131313;
	--on-dark: #f3f3f1;
	--on-dark-2: #a9aaad;

	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--m: clamp(16px, 4vw, 48px);
	--max: 1440px;
	--gap: clamp(16px, 2vw, 32px);
	--section: clamp(104px, 13vw, 208px);
	--header: 76px;

	--t-hero: clamp(3.4rem, 10.4vw, 10.5rem);
	--t-h1: clamp(3rem, 7.6vw, 7.75rem);
	--t-h2: clamp(2.1rem, 4.4vw, 4.25rem);
	--t-h3: clamp(1.375rem, 1.5vw + .6rem, 1.875rem);
	--t-lead: clamp(1.25rem, 1vw + .9rem, 1.75rem);
	--t-body: 18px;
	--t-small: 15px;

	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--t-body);
	line-height: 1.55;
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; line-height: .95; }
h3 { font-weight: 700; font-stretch: 105%; letter-spacing: -0.015em; line-height: 1.1; }
::selection { background: var(--red); color: var(--on-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip { position: absolute; left: var(--m); top: -100px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--on-dark); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--m); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons and links ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	min-height: 54px;
	padding: 0 28px;
	border: 0;
	border-radius: 0;
	background: var(--red);
	color: var(--on-dark);
	font: 700 17px/1 var(--font);
	font-stretch: 105%;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--red-press); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #fff; }

.more {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	color: var(--red);
	font-weight: 700;
	text-decoration: none;
}
.more::after { content: "→"; transition: transform .25s var(--ease); }
.more:hover::after, .more:focus-visible::after { transform: translateX(5px); }
.on-dark .more { color: var(--on-dark); }

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ground);
}
.site-header .wrap {
	display: flex;
	align-items: center;
	gap: 32px;
	height: var(--header);
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
	color: var(--red);
	text-decoration: none;
	line-height: 1;
}
.brand svg { width: 26px; height: 42px; flex: none; }
.brand b { display: block; font-size: 26px; font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em; }
.brand small { display: block; margin-top: 3px; color: var(--grey); font-size: 11px; font-weight: 600; letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a, .nav button.nav-sub {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	border: 0;
	background: none;
	color: var(--ink);
	font: 500 16px/1 var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: color .2s var(--ease);
}
.nav a:hover, .nav button.nav-sub:hover, .nav [aria-current="page"] { color: var(--red); }
.nav [aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav li { position: relative; }
.nav-sub svg { width: 10px; height: 10px; transition: transform .2s var(--ease); }
.nav-sub[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 260px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: var(--paper);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav li:hover > .nav-panel,
.nav li:focus-within > .nav-panel,
.nav-sub[aria-expanded="true"] + .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-panel a { display: flex; padding: 12px 20px; width: 100%; }
.nav-panel a:hover { background: var(--ground); }
.nav .btn { margin-left: 12px; min-height: 46px; padding: 0 22px; background: var(--red); color: var(--on-dark); font-weight: 700; }
.nav .btn:hover { background: var(--red-press); color: var(--on-dark); }

.menu-btn {
	display: none;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 4px 0 14px;
	border: 0;
	background: none;
	color: var(--ink);
	font: 700 17px/1 var(--font);
	cursor: pointer;
}
.menu-btn i { position: relative; width: 26px; height: 2px; background: currentColor; transition: background-color .2s; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 26px; height: 2px; background: currentColor; transition: transform .25s var(--ease); }
.menu-btn i::before { top: -8px; }
.menu-btn i::after { top: 8px; }
.menu-open .menu-btn i { background: transparent; }
.menu-open .menu-btn i::before { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn i::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Page openings ---------- */

.hero {
	position: relative;
	min-height: calc(100svh - var(--header));
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--dark);
	color: var(--on-dark);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .05) 80%);
}
.hero .wrap { position: relative; padding-top: 18vh; padding-bottom: clamp(32px, 5vw, 64px); }
.hero h1 { font-size: var(--t-hero); max-width: 11ch; }
.hero__foot {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px 48px;
	align-items: end;
	margin-top: clamp(28px, 3vw, 44px);
}
.hero__foot p { max-width: 46ch; margin: 0; font-size: var(--t-lead); line-height: 1.38; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.hero__actions .call { color: var(--on-dark); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hero__actions .call:hover { color: #ffb4a3; }

.page-head { padding: clamp(56px, 8vw, 128px) 0 clamp(48px, 6vw, 96px); }
.page-head .wrap {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 40px var(--gap);
	align-items: end;
}
.page-head h1 { grid-column: 1 / -1; font-size: var(--t-h1); }
.page-head .lead { grid-column: 1 / span 7; margin: 0; font-size: var(--t-lead); line-height: 1.38; }
.page-head .spec { grid-column: 9 / -1; }

/* The work sheet: client, method, place. */
.spec {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 28px;
	background: var(--paper);
}
.spec div { display: grid; gap: 2px; }
.spec dt { color: var(--ink-2); font-size: var(--t-small); }
.spec dd { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.on-dark .spec, .spec--dark { background: rgba(255, 255, 255, .07); }
.on-dark .spec dt, .spec--dark dt { color: var(--on-dark-2); }

.page-head h1, .page-head .lead, .page-head .spec { animation: rise .7s var(--ease) both; }
.page-head .lead { animation-delay: .08s; }
.page-head .spec { animation-delay: .16s; }

.bleed { position: relative; margin: 0; overflow: hidden; background: var(--dark); }
.bleed img { width: 100%; height: clamp(320px, 52vw, 760px); object-fit: cover; }
.bleed figcaption { position: absolute; left: 0; bottom: 0; padding: 12px var(--m); background: var(--ink); color: var(--on-dark); font-size: var(--t-small); }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0 0; }
.section--last { padding-bottom: var(--section); }
.on-dark { background: var(--dark); color: var(--on-dark); }
.on-red { background: var(--red); color: var(--on-dark); }
.on-paper { background: var(--paper); }
.on-dark.section, .on-red.section, .on-paper.section { padding-bottom: var(--section); margin-top: var(--section); }
.on-dark.section + .on-dark.section, .on-red.section + .section.on-dark { margin-top: 0; }
.section h2 { font-size: var(--t-h2); max-width: 15ch; }

/* Heading on the left, text on the right. */
.split {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 40px var(--gap);
	align-items: start;
}
.split > :first-child { grid-column: 1 / span 5; position: sticky; top: calc(var(--header) + 32px); }
.split > :last-child { grid-column: 7 / -1; }
.prose { max-width: 64ch; }
.prose p, .prose li { font-size: var(--t-body); }
.prose h3 { margin: 2.2em 0 .6em; font-size: var(--t-h3); }
.prose h3:first-child { margin-top: 0; }

.ticks { display: grid; gap: 14px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 11px; height: 11px; background: var(--red); }
.on-dark .ticks li::before, .on-red .ticks li::before { background: var(--on-dark); }
.ticks--two { grid-template-columns: 1fr 1fr; gap: 14px var(--gap); }

.statement { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.25rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; max-width: 30ch; margin: 0; }

/* ---------- Home: what do you need to build ---------- */

.picker {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 40px var(--gap);
	margin-top: clamp(40px, 5vw, 72px);
}
.picker__tabs { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 4px; }
.picker__tab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 16px 0;
	border: 0;
	background: none;
	color: var(--on-dark-2);
	font: 700 clamp(1.5rem, 1.8vw + .8rem, 2.5rem)/1.05 var(--font);
	font-stretch: 110%;
	letter-spacing: -0.025em;
	text-align: left;
	cursor: pointer;
	transition: color .2s var(--ease);
}
.picker__tab::after { content: "→"; font-weight: 500; opacity: 0; transform: translateX(-10px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.picker__tab:hover { color: var(--on-dark); }
.picker__tab[aria-selected="true"] { color: var(--on-dark); }
.picker__tab[aria-selected="true"]::after { opacity: 1; transform: none; color: #ff8c6e; }
.picker__panels { grid-column: 7 / -1; }
.picker__panel figure { margin: 0 0 28px; overflow: hidden; background: #000; }
.picker__panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.picker__panel h3 { margin-bottom: 14px; font-size: var(--t-h3); }
.picker__panel p { max-width: 48ch; color: var(--on-dark); }
.js .picker__panel[hidden] { display: none; }
.js .picker__panel.is-in img { animation: picker-in .7s var(--ease) both; }
.js .picker__panel.is-in .picker__text { animation: rise .5s .1s var(--ease) both; }
@keyframes picker-in { from { opacity: .2; transform: scale(1.05); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* Without script every service shows, one under the other. */
html:not(.js) .picker__tabs { display: none; }
html:not(.js) .picker__panels { grid-column: 1 / -1; display: grid; gap: 56px; }

/* ---------- Featured project ---------- */

.feature {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 40px var(--gap);
	align-items: start;
}
.feature__media { grid-column: 1 / span 7; margin: 0; overflow: hidden; }
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature__body { grid-column: 8 / -1; padding-top: 8px; }
.feature__body h2 { margin-bottom: 28px; font-size: clamp(2rem, 3.2vw, 3.25rem); }
h2.minor { margin-bottom: 18px; font-size: var(--t-h3); font-stretch: 105%; letter-spacing: -0.015em; }
.feature__body .spec { margin-top: 32px; }

/* ---------- Project list ---------- */

.projects { margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.projects li {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px var(--gap);
	padding: clamp(24px, 3vw, 40px);
	background: var(--paper);
}
.projects h3 { grid-column: 1 / span 4; font-size: var(--t-h3); }
.projects p { grid-column: 5 / span 5; margin: 0; }
.projects .where { grid-column: 10 / -1; margin: 0; color: var(--ink-2); font-size: 16px; text-align: right; }

/* ---------- Clients ---------- */

.logos { margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.logos li { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: clamp(18px, 3vw, 40px); background: var(--paper); }
.logos img { max-height: 72px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.logos li:hover img { filter: none; opacity: 1; }

/* ---------- Services index ---------- */

.service-rows { display: grid; gap: clamp(64px, 8vw, 128px); margin: 0; padding: 0; list-style: none; }
.service-row {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 32px var(--gap);
	align-items: center;
	text-decoration: none;
}
.service-row figure { grid-column: 1 / span 7; margin: 0; overflow: hidden; background: var(--dark); }
.service-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease); }
.service-row:hover img, .service-row:focus-visible img { transform: scale(1.04); }
.service-row div { grid-column: 9 / -1; }
.service-rows li:nth-child(even) .service-row figure { grid-column: 6 / -1; order: 2; }
.service-rows li:nth-child(even) .service-row div { grid-column: 1 / span 4; }
.service-row h2 { margin-bottom: 18px; font-size: clamp(2rem, 3.2vw, 3.25rem); }
.service-row p { margin-bottom: 18px; }

/* ---------- Gallery and lightbox ---------- */

.gallery { columns: 3 320px; column-gap: 8px; margin-top: clamp(40px, 5vw, 64px); }
.gallery a { display: block; margin: 0 0 8px; overflow: hidden; background: var(--dark); break-inside: avoid; cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .7s var(--ease), opacity .3s var(--ease); }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.035); opacity: .92; }
.gallery--docs { columns: 3 260px; }
.gallery--docs a { background: var(--paper); padding: 10px; }

.lightbox {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(10, 10, 10, .96);
	color: var(--on-dark);
}
.lightbox::backdrop { background: rgba(10, 10, 10, .96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--m); }
.lightbox__count { font-size: var(--t-small); color: var(--on-dark-2); }
.lightbox figure { margin: 0; display: grid; place-items: center; min-height: 0; padding: 0 var(--m); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; }
.lightbox figcaption { padding: 14px var(--m) 20px; text-align: center; font-size: var(--t-small); color: var(--on-dark-2); }
.lightbox button {
	min-width: 48px;
	min-height: 48px;
	padding: 0 14px;
	border: 0;
	background: none;
	color: var(--on-dark);
	font: 600 17px/1 var(--font);
	cursor: pointer;
}
.lightbox button:hover { color: #ff8c6e; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 34px !important; }
.lightbox__prev { left: 4px; }
.lightbox__next { right: 4px; }

/* ---------- Next service ---------- */

.next { display: block; padding: clamp(56px, 7vw, 112px) 0; background: var(--red); color: var(--on-dark); text-decoration: none; margin-top: var(--section); }
.next .wrap { display: block; }
.next small { display: block; margin-bottom: 14px; font-size: 17px; color: #f2c9bd; }
.next strong { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; font-size: clamp(2.5rem, 7.6vw, 7.75rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.035em; line-height: .95; }
.next strong::after { content: "→"; font-weight: 500; transition: transform .35s var(--ease); }
.next:hover strong::after, .next:focus-visible strong::after { transform: translateX(14px); }

/* ---------- Video and interview ---------- */

.video { margin: 0; background: var(--dark); }
.video video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s var(--ease), transform .7s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.02); }
.yt span {
	position: absolute;
	left: 50%;
	top: 50%;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 18px 28px;
	transform: translate(-50%, -50%);
	background: var(--red);
	color: var(--on-dark);
	font: 700 18px/1 var(--font);
}
.yt iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: clamp(40px, 5vw, 64px); }
.contact-grid > div { padding: clamp(24px, 3vw, 40px); background: var(--paper); }
.contact-grid h2 { margin-bottom: 16px; font-size: var(--t-h3); font-stretch: 105%; letter-spacing: -0.015em; }
.contact-grid p { margin: 0 0 6px; font-size: 20px; }
.contact-grid a { text-decoration-thickness: 2px; text-underline-offset: 5px; }
.contact-grid a:hover { color: var(--red); }
.map { margin-top: 8px; background: var(--field); }
.map iframe { width: 100%; height: clamp(320px, 40vw, 520px); border: 0; filter: grayscale(.4); }

/* ---------- Footer ---------- */

.site-footer { padding: var(--section) 0 32px; background: var(--dark); color: var(--on-dark); }
.footer-cta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gap); align-items: end; }
.footer-cta h2 { grid-column: 1 / span 7; font-size: var(--t-h2); }
.footer-cta p { grid-column: 8 / -1; margin: 0 0 20px; color: var(--on-dark); font-size: 19px; }
.footer-cta .btn { grid-column: 8 / -1; justify-self: start; }
.footer-data { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); margin-top: clamp(64px, 8vw, 120px); }
.footer-data > div { grid-column: span 3; }
.footer-data h3 { margin-bottom: 12px; color: var(--on-dark-2); font-size: var(--t-small); font-weight: 500; font-stretch: 100%; letter-spacing: 0; }
.footer-data p, .footer-data li { margin: 0 0 6px; font-size: 17px; }
.footer-data ul { margin: 0; padding: 0; list-style: none; }
.footer-data a { text-decoration: none; }
.footer-data a:hover { color: #ff8c6e; text-decoration: underline; text-underline-offset: 4px; }
.footer-name { display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 32px); margin-top: clamp(64px, 8vw, 120px); color: var(--on-dark); overflow: hidden; }
.footer-name svg { width: clamp(44px, 9vw, 150px); height: auto; flex: none; }
.footer-name span { font-size: clamp(3.5rem, 18vw, 19rem); font-weight: 800; font-stretch: 120%; letter-spacing: -0.05em; line-height: .76; }
.credit { margin: 32px 0 0; color: var(--on-dark-2); font-size: var(--t-small); }
.credit a { color: inherit; }

.wa {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
	transition: transform .2s var(--ease);
}
.wa:hover { transform: scale(1.06); }
.wa svg { width: 32px; height: 32px; }

/* ---------- Motion ---------- */

.hero__media img { animation: drift 24s var(--ease) both; }
@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero h1, .hero__foot { animation: rise .8s var(--ease) both; }
.hero__foot { animation-delay: .15s; }

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1080px) {
	.nav > ul, .nav .btn { display: none; }
	.menu-btn { display: inline-flex; }
	.nav {
		position: fixed;
		inset: var(--header) 0 0 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		overflow-y: auto;
		padding: 24px var(--m) 48px;
		background: var(--dark);
	}
	.menu-open .nav { display: flex; }
	.menu-open .nav > ul { display: flex; flex-direction: column; gap: 0; }
	.menu-open .nav .btn { display: inline-flex; margin: 32px 0 0; }
	.menu-open { overflow: hidden; }
	.nav a, .nav button.nav-sub { padding: 14px 0; color: var(--on-dark); font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 700; font-stretch: 110%; letter-spacing: -0.02em; }
	.nav [aria-current="page"] { color: #ff8c6e; }
	.nav-sub svg { width: 16px; height: 16px; }
	.nav-panel { position: static; display: none; min-width: 0; padding: 0 0 12px 18px; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.nav li:hover > .nav-panel, .nav li:focus-within > .nav-panel { display: none; }
	.nav-sub[aria-expanded="true"] + .nav-panel { display: block; }
	.nav-panel a { padding: 10px 0; font-size: 20px !important; font-weight: 500 !important; color: var(--on-dark-2) !important; }
	.nav-panel a:hover { background: none; color: var(--on-dark) !important; }

	.page-head .lead { grid-column: 1 / -1; }
	.page-head .spec { grid-column: 1 / -1; }
	.split > :first-child, .split > :last-child { grid-column: 1 / -1; position: static; }
	.feature__media, .feature__body { grid-column: 1 / -1; }
	.feature__media img { aspect-ratio: 4 / 3; }
	.picker__tabs, .picker__panels { grid-column: 1 / -1; }
	.picker__tabs { flex-direction: row; flex-wrap: wrap; gap: 8px; }
	.picker__tab { width: auto; padding: 12px 16px; background: rgba(255, 255, 255, .07); font-size: 17px; letter-spacing: 0; }
	.picker__tab::after { display: none; }
	.picker__tab[aria-selected="true"] { background: var(--on-dark); color: var(--ink); }
	.projects h3, .projects p, .projects .where { grid-column: 1 / -1; text-align: left; }
	.service-row figure, .service-row div,
	.service-rows li:nth-child(even) .service-row figure,
	.service-rows li:nth-child(even) .service-row div { grid-column: 1 / -1; order: 0; }
	.footer-cta h2, .footer-cta p, .footer-cta .btn { grid-column: 1 / -1; }
	.footer-data > div { grid-column: span 6; }
	.contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */

@media (max-width: 640px) {
	:root { --header: 68px; }
	.brand b { font-size: 22px; }
	.brand svg { width: 22px; height: 36px; }
	.brand small { font-size: 10px; }
	.hero .wrap { padding-top: 12vh; }
	.hero h1 { font-size: 12.2vw; font-stretch: 104%; }
	.next strong { font-size: 9.6vw; font-stretch: 104%; }
	.hero__foot { grid-template-columns: 1fr; }
	.hero__actions .btn { width: 100%; }
	.hero__media img { object-position: 60% 50%; }
	.ticks--two { grid-template-columns: 1fr; }
	.logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-data > div { grid-column: 1 / -1; }
	.gallery { columns: 2 140px; }
	.spec { padding: 22px; }
	.wa { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
