/* BrizeFix — base: fonts, tokens, reset, type, buttons, shared bits. */

@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/geist-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: "Geist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/geist-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter Tight";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-tight-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 Tight";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-tight-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	/* Colors (Figma variables) */
	--c-dark: #141f1d;
	--c-lime: #dbf290;
	--c-cream: #f7f7f1;
	--c-white: #fff;
	--c-text: #616161;
	--c-body: #555557;
	--c-muted: #c0c0c0;
	--c-border: #e9eef4;
	--c-tag-border: #edede1;
	--line: rgba(0, 0, 0, 0.1);
	--line-dark: rgba(255, 255, 255, 0.1);

	/* Type */
	--f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-alt: "Inter Tight", var(--f-sans);
	--fs-120: clamp(3.5rem, 8.34vw, 7.5rem);
	--fs-108: clamp(3.25rem, 7.5vw, 6.75rem);
	--fs-80: clamp(2.75rem, 5.56vw, 5rem);
	--fs-64: clamp(2.25rem, 4.45vw, 4rem);
	--fs-48: clamp(1.75rem, 3.34vw, 3rem);
	--fs-36: clamp(1.5rem, 2.5vw, 2.25rem);
	--fs-28: clamp(1.375rem, 1.95vw, 1.75rem);
	--fs-22: clamp(1.125rem, 1.53vw, 1.375rem);
	--fs-20: clamp(1.0625rem, 1.39vw, 1.25rem);
	--fs-18: 1.125rem;
	--fs-16: 1rem;

	/* Layout */
	--container: 1300px;
	--gutter: clamp(20px, 4vw, 40px);
	--section-y: clamp(80px, 11.12vw, 160px);
	--radius-lg: 32px;
	--radius-md: 24px;
	--radius-sm: 16px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-dark);
	font-family: var(--f-sans);
	font-size: var(--fs-18);
	line-height: 1.5;
	letter-spacing: -0.02em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
ul,
ol,
dl,
dd {
	margin: 0;
}
ul[class],
ol[class] {
	padding: 0;
	list-style: none;
}
a {
	color: inherit;
	text-decoration: none;
}
button,
input,
select,
textarea {
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
}
button {
	cursor: pointer;
}
address {
	font-style: normal;
}
:focus-visible {
	outline: 2px solid var(--c-lime);
	outline-offset: 3px;
}
.section--cream :focus-visible,
.section:not(.section--dark) :focus-visible {
	outline-color: var(--c-dark);
}
[hidden] {
	display: none !important;
}

/* Decorative icons have fixed sizes; a % max-width would make them count as
   zero width inside auto-sized (max-content) containers such as the marquee. */
img.icon {
	flex: none;
	max-width: none;
}

/* Accessibility helpers -------------------------------------------------- */
.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;
}
.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 12px 20px;
	clip: auto;
	background: var(--c-lime);
	color: var(--c-dark);
	border-radius: 8px;
	font-weight: 600;
}

/* Layout primitives ------------------------------------------------------ */
.container {
	width: min(var(--container), 100% - 2 * var(--gutter));
	margin-inline: auto;
}
.section {
	padding-block: var(--section-y);
}
.section--dark {
	background: var(--c-dark);
	color: var(--c-white);
}
.section--cream {
	background: var(--c-cream);
}

/* Type ------------------------------------------------------------------- */
.h-120,
.h-80,
.h-64,
.h-48,
.h-36,
.h-28 {
	font-weight: 600;
	letter-spacing: -0.02em;
}
.h-80 {
	font-size: var(--fs-80);
	line-height: 1.15;
}
.h-64 {
	font-size: var(--fs-64);
	line-height: 1.2;
}
.h-48 {
	font-size: var(--fs-48);
	line-height: 1.25;
}
.h-36 {
	font-size: var(--fs-36);
	line-height: 1.25;
}
.h-28 {
	font-size: var(--fs-28);
	line-height: 1.25;
}
.text-body {
	color: var(--c-text);
	font-size: var(--fs-18);
	line-height: 1.5;
}

/* Two-tone centered title: "Selected / Completed Projects". */
.title-duo {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-wrap: balance;
}
.title-duo__muted {
	opacity: 0.3;
}

/* Title placed in the right column of a 1300px row (starts at 528px). */
.split__title {
	margin-top: clamp(40px, 4.9vw, 71px);
	margin-left: auto;
	width: min(772px, 100%);
}

/* Section label: "ABOUT BRIZEFIX" over a thin rule. */
.sec-label {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
	font-size: var(--fs-18);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: uppercase;
}
.sec-label--dark {
	border-bottom-color: var(--line-dark);
	color: var(--c-white);
}

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 32px;
	padding: 4px 4px 4px 40px;
	border: 0;
	border-radius: 40px;
	background: var(--c-lime);
	color: var(--c-dark);
	font-family: var(--f-sans);
	font-size: var(--fs-20);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: -0.02em;
	white-space: nowrap;
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn__label {
	transition: transform 0.35s var(--ease);
}
.btn__tile {
	position: relative;
	display: grid;
	place-items: center;
	flex: none;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--c-dark);
	overflow: hidden;
	transition: transform 0.35s var(--ease);
}
.btn__arrow {
	width: 20px;
	height: 20px;
	transition: transform 0.4s var(--ease);
}
/* Hover: the arrow flies out to the top right while a second one flies in. */
.btn__tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../icons/arrow-up-right.svg") no-repeat center / 20px 20px;
	transform: translate(-130%, 130%);
	transition: transform 0.4s var(--ease);
}
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
	transform: translate(130%, -130%);
}
.btn:hover .btn__tile::after,
.btn:focus-visible .btn__tile::after {
	transform: none;
}
.btn:hover .btn__label,
.btn:focus-visible .btn__label {
	transform: translateX(4px);
}
.btn:hover {
	background: #e7f8ae;
	box-shadow: 0 10px 28px rgba(219, 242, 144, 0.28);
}
.btn:active .btn__tile {
	transform: scale(0.94);
}
@media (prefers-reduced-motion: reduce) {
	.btn__tile::after {
		display: none;
	}
	.btn:hover .btn__arrow,
	.btn:hover .btn__label {
		transform: none;
	}
}
.btn--white {
	background: var(--c-white);
}
.btn--white:hover {
	background: var(--c-lime);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.btn--sm {
	gap: 24px;
	padding-left: 24px;
	font-family: var(--f-alt);
	font-size: var(--fs-18);
	letter-spacing: 0.01em;
}
.btn--sm .btn__tile {
	width: 48px;
	height: 48px;
}
.btn--sm .btn__arrow {
	width: 16px;
	height: 16px;
}
.btn--sm .btn__tile::after {
	background-size: 16px 16px;
}
button.btn:disabled {
	opacity: 0.6;
	cursor: progress;
}

/* Tag pills -------------------------------------------------------------- */
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.tag {
	padding: 4px 16px;
	border: 1px solid var(--c-tag-border);
	border-radius: 24px;
	background: var(--c-white);
	color: rgba(20, 31, 29, 0.7);
	font-size: var(--fs-16);
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
}
.tags--dark .tag {
	border: 0;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.7);
}

/* Rounded photo frame ---------------------------------------------------- */
.media-card {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: #d9d9d9;
}
.media-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Stars ------------------------------------------------------------------ */
.stars {
	display: flex;
	gap: 2px;
}
.stars__star {
	width: 24px;
	height: 24px;
}

/* Forms (shared) --------------------------------------------------------- */
.hp-field {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.form-status:empty {
	display: none;
}
.form-status {
	margin-top: 12px;
	font-size: var(--fs-16);
}
.form-status.is-error {
	color: #ffb4a8;
}

/* Scroll reveal (only when JS is on and motion is OK) -------------------- */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal {
		opacity: 0;
		transform: translateY(28px);
		transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
	}
	.js .reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}
