/*
 * WorkingPrint — base styles (typography, colours, decorative shapes, buttons).
 * Positions of every element live in layout.css (generated from Figma).
 */

:root {
	--c-black: var(--wp--preset--color--black, #000);
	--c-white: var(--wp--preset--color--white, #fff);
	--c-purple: var(--wp--preset--color--purple, #6237ff);
	--c-pink: var(--wp--preset--color--pink, #ea005e);
	--c-yellow: var(--wp--preset--color--yellow, #ffd037);
	--f-dirty: var(--wp--preset--font-family--dirtyline);
	--f-gothic: var(--wp--preset--font-family--league-gothic);
	--f-body: var(--wp--preset--font-family--roboto-condensed);
}

body { margin: 0; overflow-x: hidden; }
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block: 0 !important; }
.wp-site-blocks a { color: inherit; text-decoration: none; }
figure.wp-block-image { margin: 0; }
figure.wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure.wp-block-image.is-contain img { object-fit: contain; }

/* ---------- type ---------- */
.f-dirty { font-family: var(--f-dirty); font-weight: 400; line-height: .77; white-space: nowrap; }
.f-gothic { font-family: var(--f-gothic); font-weight: 400; line-height: .77; text-transform: uppercase; white-space: nowrap; }
.f-body { font-family: var(--f-body); font-weight: 400; line-height: 1.75; }
.f-body.is-tight { line-height: 1.5; }
.c-white { color: var(--c-white); }
.c-black { color: var(--c-black); }
h1.f-dirty, h2.f-dirty, h1.f-gothic, h2.f-gothic, h3.f-gothic { margin: 0; }

/* ---------- buttons (btn/1 component) ---------- */
.wp-btn .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: space-between; gap: 80px;
	box-sizing: border-box; height: var(--btn-h, max(56px, calc(90 * var(--px))));
	padding: 0 24px; border-radius: 0;
	font-family: var(--f-body); font-size: max(15px, calc(24 * var(--px))); line-height: 1;
	text-transform: uppercase; white-space: nowrap; color: var(--c-white); background: var(--c-pink);
	transition: filter .2s ease, transform .2s ease;
}
.wp-btn .wp-block-button__link::after {
	content: ""; width: 74.5px; height: 15.05px; flex: none;
	background: url("../img/arrow.svg") center / contain no-repeat;
}
.wp-btn.is-purple .wp-block-button__link { background: var(--c-purple); }
.wp-btn .wp-block-button__link:hover { filter: brightness(1.12); transform: translateX(4px); }
.wp-block-buttons { margin: 0; }
.wp-block-buttons .wp-btn, .wp-block-buttons .wp-btn .wp-block-button__link { width: 100%; }

/* ---------- header (nav- dt - 1) ---------- */
.wp-hdr {
	position: relative; z-index: 20; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center; padding: 28px 24px; border-bottom: 1px solid var(--c-black);
	background: var(--c-white); color: var(--c-black);
}
.home .wp-hdr { background: transparent; }
.wp-hdr > * { margin: 0 !important; }
.wp-hdr__tag { justify-self: start; font-family: var(--f-gothic); font-size: 15px; line-height: .77; text-transform: uppercase; }
.home .wp-hdr__tag { color: #fff; mix-blend-mode: difference; }
.wp-hdr__title { justify-self: center; font-family: var(--f-dirty); font-size: 24px; letter-spacing: 3.84px; line-height: .77; }
.wp-hdr__nav { justify-self: end; }
.wp-hdr__nav .wp-block-navigation__responsive-container-open {
	width: 59px; height: 27.36px; padding: 0; border: 0; background: url("../img/ham.svg") center / contain no-repeat; cursor: pointer;
}
.wp-hdr__nav .wp-block-navigation__responsive-container-open svg { visibility: hidden; }
.wp-hdr--dark { background: var(--c-black); color: var(--c-white); border-bottom-color: var(--c-white); }
.wp-hdr--dark .wp-hdr__nav .wp-block-navigation__responsive-container-open { filter: invert(1); }
.wp-hdr__nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--c-black) !important; color: var(--c-white) !important; padding: 40px;
}
.wp-hdr__nav .is-menu-open .wp-block-navigation-item__content {
	font-family: var(--f-dirty); font-size: clamp(40px, 7vw, 110px); letter-spacing: 5px; line-height: 1.1;
}
.wp-hdr__nav .is-menu-open .wp-block-navigation-item__content:hover { color: var(--c-yellow); }
@media (max-width: 767px) {
	.wp-hdr { padding: 14px 8px; }
	.wp-hdr__tag { display: none; }
	.wp-hdr__title { justify-self: start; grid-column: 1 / 3; font-size: 13px; letter-spacing: 2px; }
	.wp-hdr__nav .wp-block-navigation__responsive-container-open { width: 31px; height: 14.4px; }
}

/* ---------- home: hero ---------- */
.hm-hero::before { /* black block + vertical rule at x=351 */
	content: ""; position: absolute; left: 0; bottom: 0; z-index: 0;
	width: calc(680 * var(--px)); height: calc(1281 * var(--px));
	background: linear-gradient(90deg, transparent calc(351 * var(--px)), rgba(255,255,255,.6) 0 calc(351 * var(--px) + 1px), transparent 0), var(--c-black);
}
.hm-hero__purple { background: var(--c-purple); }
.hm-hero__collage, .hm-hero__purple { pointer-events: none; }
.hm-hero__vision a:hover, .hm-hero__peep a:hover { opacity: .7; }

/* ---------- home: shopify / design ---------- */
.hm-design { z-index: 2; background: var(--c-white); }
.hm-design::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(557 * var(--px)); width: calc(474 * var(--px)); background: var(--c-yellow); }
.hm-design::after { content: ""; position: absolute; left: calc(1321 * var(--px)); top: calc(636 * var(--px)); width: calc(599 * var(--px)); height: calc(320 * var(--px)); background: var(--c-black); }
.hm-design > * { z-index: 1; }

/* ---------- home: featured project ---------- */
.hm-latest { z-index: 3; background: var(--c-black); }

/* ---------- home: more work ---------- */
.hm-more { z-index: 4; background: linear-gradient(var(--c-black) 0 calc(522 * var(--px)), var(--c-white) 0); }

/* ---------- footer ---------- */
.wp-ftr { z-index: 5; background: var(--c-black); color: var(--c-white); }
.wp-ftr::after { content: ""; position: absolute; left: 0; right: 0; top: calc(690 * var(--px)); height: 1px; background: rgba(255,255,255,.5); }
.wp-ftr__logo {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	box-sizing: border-box; padding: calc(50 * var(--px)); background: var(--c-purple); text-align: center;
}
.wp-ftr__logo > * { margin: 0 !important; }
.wp-ftr__mark { font-size: calc(170 * var(--px)); }
.wp-ftr__blurb { font-size: max(12px, calc(20 * var(--px))); }
.wp-ftr__nav-l, .wp-ftr__nav-r { display: flex; flex-direction: column; gap: calc(50 * var(--px)); letter-spacing: 5px; }
.wp-ftr__nav-l > *, .wp-ftr__nav-r > * { margin: 0 !important; font-size: inherit; }
.wp-ftr a:hover { color: var(--c-yellow); }
.wp-ftr__copy, .wp-ftr__legal { text-transform: uppercase; white-space: nowrap; }
@media (max-width: 767px) {
	.wp-ftr::after { top: calc(640 * var(--px)); }
	.wp-ftr__mark { font-size: calc(100 * var(--px)); }
	.wp-ftr__blurb { font-size: calc(14 * var(--px)); }
	.hm-more { background: var(--c-white); }
	.hm-hero::before { width: 100%; height: calc(368 * var(--px)); top: 0; bottom: auto; background: var(--c-black); }
	.hm-design::before { left: calc(145 * var(--px)); width: calc(154 * var(--px)); height: calc(628 * var(--px)); bottom: auto; }
	.hm-design::after { left: 0; top: calc(627.63 * var(--px)); width: 100%; height: calc(238 * var(--px)); }
}

/* ---------- portfolio ---------- */
.pf-hero { z-index: 1; }
.pf-hero::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: calc(800 * var(--px)); background: var(--c-black); }
.pf-hero::after { /* vertical rule, inverts over black/white */
	content: ""; position: absolute; z-index: 3; left: calc(351 * var(--px)); top: 0; width: 1px; height: calc(1440 * var(--px));
	background: #fff; mix-blend-mode: difference; pointer-events: none;
}
.pf-featured { display: flex; flex-direction: column; gap: calc(100 * var(--px)); background: var(--c-white); position: relative; z-index: 2; }
.pf-featured > * { margin: 0 !important; }
.pf-f2__box { background: var(--c-black); }
.pf-f2__box > * { position: absolute; margin: 0 !important; }
.pf-f2__name { left: calc(77 * var(--px)); top: calc(70 * var(--px)); font-size: calc(76 * var(--px)); }
.pf-f2__text { left: calc(271 * var(--px)); top: calc(70 * var(--px)); width: calc(206 * var(--px)); font-size: max(11px, calc(12 * var(--px))); }
.pf-grid-wrap { position: relative; z-index: 2; background: var(--c-white); padding: calc(80 * var(--px)) 0; }

/* project tiles (pib_item) */
.wp-grid.wp-block-post-template { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 !important; margin: 0; padding: 0; list-style: none; }
.wp-grid > li { position: relative; margin: 0 !important; overflow: hidden; background: #c4c4c4; }
.wp-tile { margin: 0 !important; aspect-ratio: 4 / 3; }
.wp-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.wp-grid > li:hover .wp-tile img { transform: scale(1.04); }
.wp-tile__title {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important; padding: 18px 24px;
	font-family: var(--f-gothic); font-size: clamp(20px, 2vw, 40px); line-height: .9; text-transform: uppercase;
	color: var(--c-white); background: linear-gradient(transparent, rgba(0,0,0,.75));
	opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.wp-grid > li:hover .wp-tile__title, .wp-grid > li:focus-within .wp-tile__title { opacity: 1; transform: none; }
@media (max-width: 767px) {
	.wp-grid.wp-block-post-template { grid-template-columns: 1fr; }
	.wp-tile__title { opacity: 1; transform: none; }
	.pf-hero__text, .pf-f3__text, .pf-f4__text, .pf-f2__text { display: none; }
}

/* ---------- single project ---------- */
.pj { z-index: 1; background: var(--c-white); }
.pj:not(:has(.pj-show)) { aspect-ratio: auto !important; padding: calc(700 * var(--px)) calc(125 * var(--px)) calc(120 * var(--px)); }
.pj__excerpt { border-top: 1px solid var(--c-black); padding-top: calc(16 * var(--px)); }
.pj__excerpt p { margin: 0; }
.pj__giant { overflow: hidden; height: calc(770 * var(--px)); width: calc(870 * var(--px)); line-height: .77 !important; color: transparent !important; pointer-events: none; user-select: none; }
.pj__giant::first-letter { color: var(--c-black); }
.pj__body { position: static; margin: 0 !important; }
.pj__body > *:not(.pj-show) { max-width: 1100px; margin-inline: auto; }
.pj-show { position: absolute !important; inset: 0; aspect-ratio: auto !important; margin: 0 !important; }
.pj-show__copy > * { margin: 0 0 .4em !important; }
.pj-show__copy .f-dirty { white-space: normal; text-transform: uppercase; }
.pj-show__copy p { line-height: 1.15; }
.pj-details { background: var(--c-black); color: var(--c-white); aspect-ratio: auto !important; }
.pj-more { z-index: 2; background: var(--c-white); }
@media (max-width: 767px) { .pj__excerpt, .pj-details__text { display: none; } }

/* ---------- plain pages (about / contact / blog) ---------- */
.wp-page { padding: clamp(40px, 8vw, 140px) 24px; max-width: 1100px; margin: 0 auto; }
.wp-page .wp-block-post-title { font-family: var(--f-dirty); font-size: clamp(56px, 9vw, 149px); line-height: .77; margin: 0 0 .5em; }
.wp-page .wp-block-post-content { font-family: var(--f-body); font-size: 20px; line-height: 1.75; }

/* motion preference */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
