@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/oswald-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/oswald-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--bg-dark: #1a1a1a;
	--bg-darker: #111111;
	--bg-light: #f4f4f9;
	--white: #ffffff;
	--text-light: #ffffff;
	--text-gray: #a0a0a0;
	--text-dark: #1a1a1a;
	--text-mid: #333333;
	--accent: #e63946;
	--accent-hover: #c92a37;
	--font-display: "Oswald", "Arial Narrow", sans-serif;
	--font-body: "Inter", system-ui, sans-serif;
	--edge: clamp(1.1rem, 4.5vw, 5rem);
	--header: 5.5rem;
	--radius: 8px;
	--wide: 1180px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header);
	color-scheme: dark;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--text-light);
	background: var(--bg-dark);
	overflow-x: clip;
	text-wrap: pretty;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgb(230 57 70 / 24%);
}

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

a {
	color: inherit;
	text-decoration: none;
	touch-action: manipulation;
}

h1, h2, h3, .wordmark__name, .btn, .kicker, .phone-box {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

h1, h2, h3 {
	line-height: 1.15;
	margin: 0 0 0.6em;
	text-wrap: balance;
	font-weight: 700;
}

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

.shell {
	width: min(100% - (2 * var(--edge)), var(--wide));
	margin-inline: auto;
}

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

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 200;
	background: var(--accent);
	color: #fff;
	padding: 0.75rem 1rem;
	font-weight: 600;
}

.skip-link:focus {
	top: 1rem;
}

:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--accent);
}

.band--paper :focus-visible {
	outline-color: var(--bg-dark);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.85rem 1.5rem;
	background: var(--accent);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	border: 0;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
}

.btn--ghost-dark {
	background: transparent;
	color: var(--text-dark);
	border: 1px solid var(--text-dark);
}

.btn--ghost-dark:hover {
	background: var(--text-dark);
	color: #fff;
}

.btn--header {
	font-size: 1rem;
	padding: 0.75rem 1.375rem;
	white-space: nowrap;
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.06em;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bg-darker);
	padding-left: env(safe-area-inset-left);
	padding-right: env(safe-area-inset-right);
}

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

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

.header-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--header);
	padding-block: 1.15rem;
}

.wordmark {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 1px;
	flex-shrink: 0;
}

.wordmark__name {
	border-left: 4px solid var(--accent);
	padding-left: 0.7rem;
	line-height: 1;
}

.wordmark img {
	height: 36px;
	width: auto;
}

.site-nav {
	margin: 0;
}

@media (min-width: 861px) {
	.header-bar {
		position: relative;
	}

	.site-nav {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
	}
}

.nav-list {
	display: flex;
	gap: 2.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-list a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	font-size: 1rem;
	font-weight: 400;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
}

.nav-list a:hover,
.nav-list .current-menu-item a {
	color: var(--accent);
}

.site-nav a:focus {
	outline: none;
	box-shadow: none;
}

.site-nav a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 8px;
	box-shadow: none;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 30px;
	height: 25px;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
	z-index: 110;
	touch-action: manipulation;
}

.nav-toggle span:not(.screen-reader-text) {
	display: block;
	width: 100%;
	height: 3px;
	background: var(--text-light);
	border-radius: 3px;
	transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
	transform-origin: 1px;
}

.nav-toggle.is-open span:nth-child(1) {
	transform: rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
	opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
	transform: rotate(-45deg);
}

/* Hero */
.hero {
	position: relative;
	min-height: calc(100vh - var(--header));
	min-height: calc(100svh - var(--header));
	background-color: var(--bg-darker);
	overflow: hidden;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 32% 42%;
}

@media (max-width: 1100px) {
	.hero__photo {
		object-position: 28% 40%;
	}
}

.hero__veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	background-color: rgba(17, 17, 17, 0.78);
	padding: 0;
}

.hero__copy {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(2.5rem, 7vw, 5rem) 0 1.5rem;
}

.hero h1 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	font-size: clamp(1.9rem, 6.2vw, 4.4rem);
	max-width: none;
	margin-bottom: 0.45em;
	line-height: 1.12;
}

.hero .btn {
	width: auto;
	max-width: none;
	align-self: flex-start;
	padding: 0.95rem 1.85rem;
	margin-top: 0.55rem;
}

.hero__lead {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: none;
	margin-bottom: 3.25rem;
	font-family: var(--font-body);
	font-size: clamp(1.1rem, 1.8vw, 1.375rem);
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0;
	text-transform: none;
	color: var(--text-gray);
}

.hero__line {
	display: block;
	white-space: nowrap;
}

.hero__scroll {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0 auto 1.5rem;
	color: #fff;
	opacity: 0.85;
}

.hero__scroll:hover {
	opacity: 1;
	color: var(--accent);
}

.hero__scroll-icon {
	display: block;
	animation: sportman-scroll 1.7s ease-in-out infinite;
}

@keyframes sportman-scroll {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(7px); }
}

.kicker {
	color: #ff7a82;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	margin: 0 0 0.9rem;
	line-height: 1.4;
}

.kicker--dark {
	color: #c41e2a;
}

/* Bands */
.band {
	padding: clamp(3.2rem, 7vw, 6.5rem) 0;
}

.band--paper {
	background: var(--bg-light);
	color: var(--text-dark);
}

.band--ink {
	background: var(--bg-darker);
}

.band--dark {
	background: var(--bg-dark);
}

.section-head {
	margin-bottom: clamp(2.1rem, 4.2vw, 3.4rem);
}

.section-head h1,
.section-head h2 {
	font-size: clamp(2rem, 4.2vw, 3.4rem);
	margin-bottom: 0;
}

.section-head p,
.card p,
.note p {
	color: var(--text-mid);
}

.section-head--light p {
	color: var(--text-gray);
}

/* Services */
.cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.cards > .reveal {
	display: flex;
	height: 100%;
}

.card {
	background: #fff;
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: 0 10px 30px rgb(0 0 0 / 6%);
	width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	.card {
		transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
	}

	.card:hover,
	.card:focus-within {
		transform: translateY(-6px);
		box-shadow: 0 14px 28px rgb(0 0 0 / 14%);
	}
}

.card__media {
	margin: -1.5rem -1.5rem 1.2rem;
	height: 15rem;
	overflow: hidden;
	border-radius: var(--radius) var(--radius) 0 0;
	background: #ddd;
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card--fade .card__media img {
	object-position: center top;
}

.card h3 {
	font-size: 1.7rem;
}

/* Mosaic */
.mosaic {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.mosaic__item {
	margin: 0;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--radius);
	background: #2a2a2a;
}

.mosaic__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(0.15) contrast(1.05);
	transition: transform 0.4s ease;
}

.mosaic__item:hover img {
	transform: scale(1.04);
	filter: grayscale(0) contrast(1.08);
}

.essence {
	display: grid;
	grid-template-columns: minmax(14rem, 0.82fr) minmax(0, 1.18fr);
	column-gap: clamp(2rem, 5vw, 5rem);
	row-gap: 1.6rem;
	align-items: start;
	text-align: left;
}

.essence__title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0;
	border-left: 4px solid var(--accent);
	padding-left: 0.85rem;
	font-size: clamp(2.7rem, 5.4vw, 4.55rem);
	line-height: 0.92;
	letter-spacing: 0.01em;
	gap: 0.18em;
}

.essence__line {
	display: block;
	white-space: nowrap;
}

.essence__copy {
	padding-top: 0.2rem;
	max-width: 38rem;
}

.essence__copy p {
	margin: 0 0 1em;
	font-size: 1.08rem;
	line-height: 1.65;
	color: var(--text-mid);
}

.essence__copy p:first-child {
	font-size: clamp(1.28rem, 2.05vw, 1.55rem);
	font-weight: 500;
	line-height: 1.42;
	color: var(--text-dark);
	margin-bottom: 1.15em;
}

.essence__copy p:last-child:not(:first-child) {
	margin: 1.5rem 0 0;
	padding-top: 1.15rem;
	border-top: 1px solid rgb(26 26 26 / 14%);
	font-weight: 600;
	font-size: 1.12rem;
	line-height: 1.45;
	color: var(--text-dark);
}

/* Contact */
.contact {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: stretch;
}

.contact h2 {
	font-size: clamp(2rem, 4vw, 3rem);
}

.phone-box {
	display: inline-flex;
	flex-direction: column;
	gap: 0.15rem;
	background: var(--accent);
	color: #fff;
	padding: 1.1rem 1.35rem;
	border-radius: 10px;
	margin: 0.4rem 0 1.4rem;
	min-width: min(100%, 18rem);
}

.phone-box span {
	font-size: 0.95rem;
	opacity: 0.9;
}

.phone-box strong {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	letter-spacing: 0.04em;
}

.contact-details {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	margin: 0.2rem 0 1.4rem;
}

.contact-details p {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.55;
	color: var(--text-gray);
}

.contact-details strong {
	display: inline-block;
	margin-bottom: 0.1rem;
	color: #fff;
	font-weight: 600;
	font-family: var(--font-body);
	text-transform: none;
	letter-spacing: 0;
}

.contact__info p {
	color: var(--text-gray);
	margin-bottom: 1rem;
}

.contact__info strong {
	color: #fff;
	font-weight: 600;
	font-family: var(--font-body);
	text-transform: none;
	letter-spacing: 0;
}

.text-link {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

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

.contact__map {
	min-height: 22rem;
	border-radius: 12px;
	overflow: hidden;
	background: #222;
}

.contact__map iframe {
	width: 100%;
	height: 100%;
	min-height: 22rem;
	border: 0;
	filter: grayscale(0.2) contrast(1.05);
}

/* Blog notes */
.notes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.4rem;
}

.notes--stack {
	grid-template-columns: 1fr;
	max-width: 46rem;
}

.note {
	background: #fff;
	padding: 1.4rem;
	border-radius: var(--radius);
}

.note__date {
	color: #c41e2a;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
}

.note h2,
.note h3 {
	font-size: 1.45rem;
}

.note h2 a:hover,
.note h3 a:hover {
	color: var(--accent);
}

.notes__more {
	margin-top: 2rem;
}

/* Pages / posts */
.page-main {
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.reading {
	max-width: 46rem;
}

.entry__head h1 {
	font-size: clamp(2.1rem, 4vw, 3.2rem);
	color: var(--text-dark);
}

.entry__hero {
	margin: 1.5rem 0 2rem;
	border-radius: var(--radius);
	overflow: hidden;
}

.entry__body {
	color: var(--text-mid);
	font-size: 1.08rem;
}

.entry__body h2,
.entry__body h3 {
	color: var(--text-dark);
	margin-top: 1.4em;
}

.entry__body a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.entry-nav {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid #ddd;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.pagination {
	margin-top: 2.5rem;
}

.pagination .nav-links {
	justify-content: center;
	gap: 0.6rem;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 0.9rem;
	background: #fff;
	border-radius: 6px;
	color: var(--text-dark);
}

.pagination a:hover {
	background: var(--text-dark);
	color: #fff;
}

.pagination .current {
	background: var(--accent);
	color: #fff;
}

/* Footer */
.site-footer {
	background: #000;
	padding: 1.6rem 0;
	color: var(--text-gray);
	font-size: 0.92rem;
}

.footer-bar {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	flex-wrap: wrap;
}

.footer-links {
	display: flex;
	gap: 1.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
}

.footer-links a:hover {
	color: #fff;
}

/* Mobile */
@media (max-width: 860px) {
	.nav-toggle {
		display: flex;
	}

	.btn--header {
		display: none;
	}

	.site-nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 250px;
		height: 100%;
		height: 100dvh;
		margin: 0;
		padding: 0;
		background: var(--bg-darker);
		z-index: 101;
		box-shadow: -5px 0 15px rgb(0 0 0 / 50%);
		transition: right 0.4s ease-in-out;
		pointer-events: none;
	}

	.admin-bar .site-nav {
		top: 32px;
		height: calc(100dvh - 32px);
	}

	@media (max-width: 782px) {
		.admin-bar .site-nav {
			top: 46px;
			height: calc(100dvh - 46px);
		}
	}

	.site-nav.is-open {
		right: 0;
		pointer-events: auto;
	}

	.nav-list {
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 3.125rem;
		min-height: 100%;
		padding: 4rem 1.5rem 2rem;
	}

	.nav-list a {
		font-size: 1.25rem;
		min-height: auto;
	}

	.cards,
	.contact,
	.notes,
	.mosaic,
	.essence {
		grid-template-columns: 1fr;
	}

	.essence {
		row-gap: 2.25rem;
	}

	.mosaic {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero {
		min-height: calc(100svh - var(--header));
	}

	.hero__photo {
		object-position: 30% 38%;
	}

	.hero__veil {
		background-color: rgba(17, 17, 17, 0.72);
	}

	.hero__copy {
		justify-content: center;
		padding-bottom: 1rem;
	}

	.card__media {
		height: 12.5rem;
	}
}

/* iPad Mini / tablet portrait: same visual weight as desktop, not vw of the short side */
@media (max-width: 860px) and (min-width: 641px) {
	.hero h1 {
		font-size: clamp(3.2rem, 10vw, 4.4rem);
	}

	.hero__lead {
		font-size: 1.5rem;
		margin-bottom: 4.85rem;
	}

	#nosotros {
		padding-block: 6rem;
	}
}

@media (max-width: 640px) {
	.hero__copy {
		align-items: center;
		justify-content: center;
		text-align: center;
		padding: clamp(2rem, 8vw, 3.2rem) 0 1.4rem;
	}

	.hero__photo {
		object-position: 36% 36%;
	}

	.hero h1 {
		align-items: center;
		font-size: clamp(1.95rem, 9vw, 2.7rem);
	}

	.hero .btn {
		align-self: center;
		min-height: 2.5rem;
		padding: 0.5rem 1.15rem;
		font-size: 0.8125rem;
		letter-spacing: 0.04em;
		margin-top: 0.45rem;
	}

	.hero__lead {
		align-items: center;
		margin-bottom: 2.65rem;
		font-size: 1.14rem;
	}

	.hero__scroll {
		margin-bottom: 0.85rem;
	}

	#nosotros {
		padding-block: 5.25rem;
	}

	.essence {
		grid-template-columns: 1fr;
	}

	.essence__title {
		font-size: clamp(2.35rem, 11vw, 3.2rem);
	}

	.essence__copy {
		max-width: none;
	}
}

@media (max-width: 480px) {
	.kicker {
		letter-spacing: 0.08em;
		font-size: 0.78rem;
	}

	.btn--header {
		display: none;
	}

	.mosaic {
		grid-template-columns: 1fr;
	}

	.footer-bar {
		flex-direction: column;
		text-align: center;
	}
}

/* Scroll reveals: fade + rise. Hover lift lives on .card, not here. */
.has-reveal .reveal {
	opacity: 0;
	translate: 0 2.6rem;
	transition:
		opacity 1.35s cubic-bezier(0.16, 0.72, 0.22, 1) var(--stagger, 0ms),
		translate 1.35s cubic-bezier(0.16, 0.72, 0.22, 1) var(--stagger, 0ms);
}

.has-reveal .reveal.is-in {
	opacity: 1;
	translate: 0 0;
}

.has-reveal .mosaic .reveal {
	transition-duration: 1.2s;
}

.has-reveal .mosaic .reveal:not(.is-in) {
	translate: 0 2.2rem;
}

.has-reveal .essence .reveal {
	transition-duration: 1.5s;
}

.has-reveal .essence .reveal:not(.is-in) {
	translate: 0 2.8rem;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}

	.has-reveal .reveal {
		opacity: 1;
		translate: none;
	}
}
