/*
Theme Name: Copper Forge Studio
Theme URI: https://copperforgestudio.com/
Author: Copper Forge Studio LLC
Author URI: https://copperforgestudio.com/
Description: Studio site for Copper Forge Studio LLC, featuring Solar Overdrive. A block theme: edit every section in Appearance > Editor.
Version: 2.6.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: All rights reserved (theme code and art). Fonts: SIL Open Font License, see assets/fonts.
Text Domain: copper-forge-studio
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: #c35117; color: #fff; }
:where(a, button, input):focus-visible { outline: 3px solid var(--wp--preset--color--cyan); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.cf-main { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Small capital labels above headings ("01 / The game"). */
.cf-eyebrow {
	font-family: var(--wp--preset--font-family--label);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--copper-light);
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 0 0 0.75rem;
}
.cf-eyebrow::before { content: ""; width: 2.25rem; height: 2px; background: currentColor; flex-shrink: 0; }
.cf-eyebrow--gold { color: var(--wp--preset--color--gold); }
.cf-eyebrow--cyan { color: var(--wp--preset--color--cyan); }
.cf-eyebrow--violet { color: #c18bff; }
.cf-eyebrow--copper { color: var(--wp--preset--color--copper-light); }
.cf-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.6; color: var(--wp--preset--color--muted); }
.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; word-wrap: normal !important;
}

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link {
	clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
	box-shadow: 0 0 28px rgba(255, 177, 46, 0.25);
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: rgba(79, 216, 255, 0.08);
	color: var(--wp--preset--color--cyan);
	border: 0;
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--cyan);
	clip-path: none;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(79, 216, 255, 0.2); color: #fff; }

/* ---------- Header ---------- */
.cf-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10, 12, 16, 0.72);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.admin-bar .cf-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.cf-header { padding-top: 0.9rem; padding-bottom: 0.9rem; }
.cf-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--wp--preset--color--text);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--label);
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
}
.cf-brand:hover { color: var(--wp--preset--color--text); }
.cf-brand img { width: 54px; height: auto; display: block; }
.cf-brand b { color: var(--wp--preset--color--copper-light); font-weight: 700; }
.cf-nav {
	font-family: var(--wp--preset--font-family--label);
	font-weight: 600;
	font-size: 1.05rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	gap: 2rem;
}
.cf-nav a { color: #cfd3d8; text-decoration: none; }
.cf-nav a:hover { color: var(--wp--preset--color--gold); }
.cf-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem;
	font-size: 1.6rem;
}
.cf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.4rem; }
@media (max-width: 420px) { .cf-brand span { font-size: 0.92rem; letter-spacing: 0.1em; } .cf-brand img { width: 44px; } }

/* ---------- Sections ---------- */
.cf-section {
	position: relative;
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cf-section__head { margin-bottom: var(--wp--preset--spacing--50); }
.cf-section__head h2 { margin-top: 0; }

/* ---------- Hero ---------- */
.cf-hero {
	position: relative;
	min-height: min(88vh, 900px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: clamp(2.5rem, 6vw, 5rem);
	padding-bottom: clamp(3rem, 7vw, 6rem);
	background:
		linear-gradient(180deg, rgba(10, 12, 16, 0.25) 0%, rgba(10, 12, 16, 0.55) 55%, var(--wp--preset--color--ink) 100%),
		linear-gradient(90deg, rgba(10, 12, 16, 0.92) 0%, rgba(10, 12, 16, 0.55) 55%, rgba(10, 12, 16, 0.2) 100%),
		url(assets/images/orivara-base-wide.webp) center 30% / cover no-repeat;
	overflow: hidden;
}
.cf-hero::after { /* sun flare from the game's menu art */
	content: "";
	position: absolute;
	right: -10%;
	bottom: -30%;
	width: 70vw;
	height: 70vw;
	background: radial-gradient(circle, rgba(255, 160, 50, 0.14) 0%, rgba(79, 216, 255, 0.06) 35%, transparent 65%);
	pointer-events: none;
}
.cf-hero__cols { position: relative; z-index: 1; gap: clamp(2rem, 5vw, 4.5rem); }
.cf-hero__title { margin: 0.25rem 0 0; line-height: 0; }
.cf-hero__logo { width: min(640px, 100%); height: auto; filter: drop-shadow(0 0 30px rgba(79, 216, 255, 0.25)); }
.cf-hero__quote {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	color: #d9f6ff;
	margin-top: 0.5rem;
}
.cf-hero .cf-lead { color: #c3c8ce; max-width: 36rem; }
.cf-hero__buttons { margin-top: 2rem; gap: 1rem; }
.cf-status {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin-top: 2rem;
	font-family: var(--wp--preset--font-family--label);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.cf-status::before {
	content: "";
	flex-shrink: 0;
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--wp--preset--color--gold);
	box-shadow: 0 0 12px var(--wp--preset--color--gold);
	animation: cf-pulse 2.4s ease-in-out infinite;
}
@keyframes cf-pulse { 50% { opacity: 0.35; } }
.cf-hero__device { display: flex; justify-content: center; }

/* ---------- Phone frames (screenshots) ---------- */
.cf-phone {
	position: relative;
	margin: 0;
	padding: 10px;
	border-radius: 34px;
	background: linear-gradient(160deg, #2b313a, #0d1014 45%, #1b2028);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(79, 216, 255, 0.10);
}
.cf-phone img {
	display: block;
	width: 100%;
	aspect-ratio: 1080 / 2340; /* the Pixel 7 Pro's whole screen, HUD to bomb button (v2.4.0) */
	object-fit: cover;
	object-position: top;
	border-radius: 25px;
}
.cf-phone--hero { width: min(330px, 78vw); transform: rotate(2.5deg); }
.cf-phone--hero::before { /* glow behind the hero phone */
	content: "";
	position: absolute;
	inset: -18%;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(79, 216, 255, 0.28), transparent);
}
.cf-phone .wp-element-caption {
	position: absolute;
	left: 0; right: 0; bottom: -2.9rem;
	text-align: center;
	font-family: var(--wp--preset--font-family--label);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin: 0;
}
/* The hero's gameplay clip (v2.5.0): plays silently on a loop in the phone frame. Under reduced motion
   the still frame shows instead. */
.cf-phone .cf-phone__video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1080 / 2340;
	object-fit: cover;
	border-radius: 25px;
	background: #0d1014;
}
.cf-phone .cf-phone__still { display: none; }
@media (prefers-reduced-motion: reduce) {
	.cf-phone .cf-phone__video { display: none; }
	.cf-phone .cf-phone__still { display: block; }
}

/* ---------- The game: feature cards ---------- */
.cf-game { background: radial-gradient(60% 50% at 85% 0%, rgba(195, 81, 23, 0.10), transparent 70%); }
.cf-features { gap: 1.25rem; }
/* Five feature cards in one row on wide screens (WordPress's auto-fill left one alone on a second row; v2.4.0). */
@media (min-width: 1180px) { .cf-game .cf-features { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }
.cf-card {
	height: 100%;
	padding: 1.75rem 1.6rem 1.5rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
	border: 1px solid var(--wp--preset--color--line);
	border-top: 2px solid var(--wp--preset--color--copper);
	clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.cf-card h3 { margin: 0.4rem 0 0.6rem; }
.cf-card p { margin: 0; color: var(--wp--preset--color--muted); font-size: 1rem; }
.cf-card .cf-card__icon { font-size: 1.6rem; line-height: 1; color: var(--wp--preset--color--gold); }
.cf-fair {
	margin-top: 2.5rem !important;
	padding: 1.3rem 1.6rem;
	border-left: 3px solid var(--wp--preset--color--gold);
	background: rgba(255, 177, 46, 0.06);
}
.cf-fair p { margin: 0; color: #d6d2ca; }
.cf-fair strong { color: var(--wp--preset--color--gold); }

/* ---------- Google Play badge (v2.6.0) ---------- */
/* Google's badge as it comes, at button height; the flex gap keeps a quarter of its height clear around it. */
.cf-play-badge { display: inline-block; line-height: 0; border-radius: 8px; }
.cf-play-badge img { display: block; width: auto; height: 56px; }
.cf-play-badge--section { margin-top: 1.75rem; }
.cf-play-badge--section img { height: 60px; }
.cf-store-row { gap: 1.25rem; }
.cf-store-row .wp-block-buttons { margin: 0; }
@media (hover: hover) and (pointer: fine) {
	.cf-play-badge { transition: translate 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.15s; }
	.cf-play-badge:hover { translate: 0 -1px; filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.18)); }
}
/* The status light turns green once the game is out. */
.cf-status--live::before { background: #5ef08f; box-shadow: 0 0 12px rgba(94, 240, 143, 0.8); }

/* ---------- Out now (release status; v2.4.0 "Almost ready", v2.6.0 "Out now") ---------- */
.cf-release {
	background:
		radial-gradient(55% 70% at 100% 0%, rgba(255, 177, 46, 0.12), transparent 70%),
		linear-gradient(180deg, #0c0e12, var(--wp--preset--color--ink));
	border-top: 2px solid var(--wp--preset--color--gold);
}
/* Three cards: three equal columns to the right edge (the grid's own auto-fill left a gap), one on phones. */
.cf-checklist { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 781px) { .cf-checklist { grid-template-columns: minmax(0, 1fr) !important; } }
.cf-checklist .cf-card { border-top-color: var(--wp--preset--color--gold); }
.cf-checklist .cf-card--done .cf-card__icon { color: #5ef08f; text-shadow: 0 0 14px rgba(94, 240, 143, 0.45); }
.cf-checklist .cf-card--now { border-top-color: var(--wp--preset--color--cyan); background: linear-gradient(180deg, rgba(79, 216, 255, 0.08), rgba(255, 255, 255, 0.01)); }
.cf-checklist .cf-card--now .cf-card__icon { color: var(--wp--preset--color--cyan); animation: cf-pulse 2.4s ease-in-out infinite; }

/* ---------- Story ---------- */
.cf-story {
	background:
		radial-gradient(50% 60% at 78% 35%, rgba(163, 91, 255, 0.20), transparent 70%),
		radial-gradient(40% 40% at 10% 90%, rgba(163, 91, 255, 0.08), transparent 70%);
}
.cf-story__cols { gap: clamp(2rem, 5vw, 5rem); }
.cf-story p { color: #c9cdd2; }
.cf-story strong { color: var(--wp--preset--color--text); }
.cf-epigraph {
	margin: 1.75rem 0 2rem;
	padding: 0 0 0 1.4rem;
	border-left: 3px solid var(--wp--preset--color--violet);
}
.cf-epigraph p {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(1.2rem, 2.2vw, 1.55rem);
	line-height: 1.45;
	color: #e7d9ff !important;
}
.cf-callout {
	padding: 1.25rem 1.4rem;
	border: 1px solid rgba(79, 216, 255, 0.35);
	background: rgba(79, 216, 255, 0.06);
}
.cf-callout strong { color: var(--wp--preset--color--cyan) !important; }
.cf-kicker {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--wp--preset--color--text) !important;
}
.cf-story__art { display: flex; align-items: center; justify-content: center; }
.cf-float { margin: 0; text-align: center; }
.cf-float img {
	width: min(460px, 100%);
	filter: drop-shadow(0 0 40px rgba(163, 91, 255, 0.45));
	animation: cf-hover 7s ease-in-out infinite;
}
.cf-float .wp-element-caption {
	font-family: var(--wp--preset--font-family--label);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #c18bff;
}
@keyframes cf-hover { 50% { transform: translateY(-14px); } }

/* ---------- Missions ---------- */
.cf-missions {
	background:
		linear-gradient(180deg, var(--wp--preset--color--ink) 0%, rgba(10, 12, 16, 0.65) 30%, rgba(10, 12, 16, 0.65) 70%, var(--wp--preset--color--ink) 100%),
		url(assets/images/space-planet-tall.webp) center bottom / cover no-repeat;
}
.cf-route { gap: 1.25rem; counter-reset: mission; }
.cf-mission {
	position: relative;
	padding: 1.6rem 1.5rem 1.4rem 6rem;
	min-height: 9.5rem;
	background: rgba(8, 18, 26, 0.72);
	border: 1px solid rgba(79, 216, 255, 0.35);
	box-shadow: inset 0 0 30px rgba(79, 216, 255, 0.06);
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.cf-mission h3 {
	margin: 0;
	text-transform: uppercase;
	color: #e6fbff;
	text-shadow: 0 0 18px rgba(79, 216, 255, 0.35);
}
.cf-mission p { margin: 0.35rem 0 0; color: #b8c3cc; font-size: 0.98rem; }
.cf-place {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 500;
	color: var(--wp--preset--color--cyan) !important;
	font-size: 1rem !important;
}
.cf-hex {
	position: absolute;
	left: 1.25rem;
	top: 1.5rem;
	width: 3.6rem;
	height: 4.1rem;
	margin: 0 !important;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 800;
	font-size: 1.7rem !important;
	color: #fff !important;
	background: var(--wp--preset--color--cyan);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.cf-hex::before { /* dark inside of the hexagon, leaving a bright rim */
	content: "";
	position: absolute;
	inset: 3px;
	z-index: -1;
	background: #0b1a24;
	clip-path: inherit;
}
.cf-hex { isolation: isolate; }
.cf-mission:first-child { border-color: rgba(255, 177, 46, 0.6); }
.cf-mission:first-child .cf-hex { background: var(--wp--preset--color--gold); }
.cf-mission:first-child .cf-hex::before { background: #3a2306; }
.cf-mission--final { border-color: rgba(163, 91, 255, 0.7); box-shadow: inset 0 0 40px rgba(163, 91, 255, 0.18); }
.cf-mission--final .cf-hex { background: var(--wp--preset--color--violet); }
.cf-mission--final .cf-hex::before { background: #1e0f33; }
.cf-mission--final .cf-place { color: #c18bff !important; }

/* ---------- Craft ---------- */
.cf-craft-grid { gap: 1.25rem; }
.cf-craft {
	height: 100%;
	padding: 1.25rem 1.4rem 1.5rem;
	background: linear-gradient(180deg, rgba(163, 91, 255, 0.10), rgba(255, 255, 255, 0.015) 55%);
	border: 1px solid var(--wp--preset--color--line);
	text-align: center;
}
.cf-craft h3 { margin: 0.5rem 0 0; }
.cf-craft p { margin: 0.3rem 0 0; color: var(--wp--preset--color--muted); font-size: 0.98rem; }
.cf-craft .cf-place { color: #c18bff !important; }
.cf-craft__img { margin: 0 auto; height: 11rem; display: flex; align-items: center; justify-content: center; }
.cf-craft__img img { max-height: 100%; width: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6)); transition: transform 0.35s; }
.cf-craft--ally { background: linear-gradient(180deg, rgba(79, 216, 255, 0.12), rgba(255, 255, 255, 0.015) 55%); border-color: rgba(79, 216, 255, 0.35); }
.cf-craft--ally .cf-place { color: var(--wp--preset--color--cyan) !important; }
.cf-craft--ally .cf-craft__img img { filter: drop-shadow(0 0 24px rgba(79, 216, 255, 0.35)); }
.cf-craft--boss { border-color: rgba(163, 91, 255, 0.6); }
@media (min-width: 1180px) { /* six craft: three across, two rows (v2.4.0) */
	.cf-craft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.cf-craft--ally { display: flex; flex-direction: column; justify-content: flex-start; }
	.cf-craft--ally .cf-craft__img { height: 13rem; }
}

/* ---------- Boss fights (v2.5.0) ---------- */
.cf-bosses {
	background:
		radial-gradient(55% 60% at 50% 0%, rgba(163, 91, 255, 0.16), transparent 70%),
		linear-gradient(180deg, #0c0b12, var(--wp--preset--color--ink));
}
.cf-boss-grid { gap: 1.5rem; }
@media (min-width: 900px) { .cf-boss-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.cf-boss {
	height: 100%;
	padding: 1.5rem 1.4rem 1.6rem;
	background: linear-gradient(180deg, rgba(163, 91, 255, 0.10), rgba(255, 255, 255, 0.015) 60%);
	border: 1px solid rgba(163, 91, 255, 0.35);
	text-align: center;
}
.cf-boss .cf-boss__shot { width: min(250px, 100%); margin: 0 auto 1.25rem !important; }
.cf-boss h3 { margin: 0.25rem 0 0; }
.cf-boss .cf-place { color: #c18bff !important; margin: 0.25rem 0 0; }
.cf-boss p { color: var(--wp--preset--color--muted); font-size: 0.98rem; margin: 0.4rem 0 0; }

/* ---------- Gallery ---------- */
.cf-gallery { background: radial-gradient(60% 50% at 50% 100%, rgba(79, 216, 255, 0.08), transparent 70%); }
.cf-shots {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(170px, 1fr);
	gap: 1.5rem;
	overflow-x: auto;
	padding: 0.5rem 0.25rem 4rem;
	scroll-snap-type: x mandatory;
	scrollbar-color: var(--wp--preset--color--line) transparent;
}
.cf-shots > .cf-phone { scroll-snap-align: start; margin: 0 !important; }

/* ---------- Studio ---------- */
.cf-studio {
	background:
		radial-gradient(45% 70% at 15% 50%, rgba(195, 81, 23, 0.18), transparent 70%),
		linear-gradient(180deg, #0d0f12, #0a0c10);
	border-top: 2px solid var(--wp--preset--color--copper);
}
.cf-studio .wp-block-columns { gap: clamp(2rem, 6vw, 6rem); }
.cf-studio__logo figure { margin: 0; }
.cf-studio__logo img { width: min(440px, 100%); }
.cf-studio p { color: #c9c3ba; }

/* ---------- Footer ---------- */
.cf-footer {
	padding-top: 2.25rem;
	padding-bottom: 2.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	background: #07080b;
}
.cf-footer__inner { gap: 1.5rem; }
.cf-footer__logo { margin: 0; }
.cf-footer__text { gap: 0.2rem; align-items: flex-end; }
.cf-footer__text p { margin: 0; text-align: right; }
.cf-footer__tagline {
	font-family: var(--wp--preset--font-family--label);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--copper-light);
}
.cf-footer__legal { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.cf-footer__legal a { color: var(--wp--preset--color--muted); }
.cf-footer__legal a:hover { color: var(--wp--preset--color--gold); }

/* ---------- Plain pages, posts, 404 ---------- */
.cf-page { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); min-height: 60vh; }
/* Privacy policy and terms of service (templates/page-privacy-policy.html, page-terms-of-service.html). */
.cf-policy h2 { font-size: 1.75rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.cf-policy li { margin-bottom: 0.6rem; line-height: 1.6; }
.cf-policy__date { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.cf-post-item { padding: 1.5rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.cf-post-item h2 { font-size: var(--wp--preset--font-size--large); margin: 0.25rem 0; }
.cf-post-item h2 a { color: var(--wp--preset--color--text); text-decoration: none; }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.cf-hero { min-height: 0; background-position: 70% 0; }
	.cf-hero__cols { text-align: left; }
	.cf-phone--hero { width: min(270px, 72vw); margin-top: 1rem; }
	.cf-mission { padding-left: 5.4rem; }
	.cf-footer__inner { flex-direction: column; align-items: flex-start !important; }
	.cf-footer__text { align-items: flex-start; }
	.cf-footer__text p { text-align: left; }
	.cf-studio__logo img { width: min(300px, 80%); }
	.cf-craft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.75rem; }
	.cf-craft { padding: 1rem 0.8rem 1.1rem; }
	.cf-craft__img { height: 7.5rem; }
	.cf-craft h3 { font-size: 1.15rem; }
	.cf-craft p { font-size: 0.9rem; line-height: 1.5; }
}

/* ---------- Motion (v2.4.0; timings and distances from tasteskill's motion rules) ---------- */
/* Hero entrance, once on load: the lines rise in turn, then the phone settles. CSS only, so the text
   is there without script; individual translate/scale properties keep the phone's own rotate. */
@keyframes cf-rise { from { opacity: 0; translate: 0 14px; } }
@keyframes cf-settle { from { opacity: 0; scale: 0.98; } }
.cf-hero .cf-eyebrow, .cf-hero__title, .cf-hero__quote, .cf-hero .cf-lead, .cf-hero__buttons, .cf-hero .cf-status {
	animation: cf-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cf-hero__title { animation-delay: 0.06s; }
.cf-hero__quote { animation-delay: 0.14s; }
.cf-hero .cf-lead { animation-delay: 0.2s; }
.cf-hero__buttons { animation-delay: 0.26s; }
.cf-hero .cf-status { animation-delay: 0.32s; }
.cf-phone--hero { animation: cf-settle 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.cf-hero .cf-status::before { animation: cf-pulse 2.4s ease-in-out infinite; }

/* Hover and press, for a mouse or trackpad only (keyboard focus keeps its ring). */
@media (hover: hover) and (pointer: fine) {
	.wp-block-button__link {
		transition: background-color 0.15s, color 0.15s, box-shadow 0.15s, translate 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), scale 0.09s;
	}
	.wp-block-button__link:hover { translate: 0 -1px; }
	.wp-block-button__link:active { translate: 0 1px; scale: 0.985; transition-duration: 0.09s; }
	/* Nav words draw a 1px line under themselves, left to right. */
	.cf-nav a {
		background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
		padding-bottom: 4px;
		transition: color 0.15s, background-size 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
	}
	.cf-nav a:hover { background-size: 100% 1px; }
	/* A gallery phone opens a bigger view, so it answers like a linked card: lifts 2px. */
	.cf-shots > .cf-phone, .cf-boss .cf-boss__shot { transition: translate 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s; }
	.cf-shots > .cf-phone:hover, .cf-boss .cf-boss__shot:hover {
		translate: 0 -2px;
		box-shadow: 0 0 0 1px rgba(79, 216, 255, 0.28), 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(79, 216, 255, 0.16);
	}
	.cf-craft:hover .cf-craft__img img { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.cf-status::before, .cf-float img, .cf-checklist .cf-card__icon, .cf-hero .cf-status::before { animation: none; }
	.cf-hero .cf-eyebrow, .cf-hero__title, .cf-hero__quote, .cf-hero .cf-lead, .cf-hero__buttons, .cf-hero .cf-status, .cf-phone--hero { animation: none; }
	.cf-craft__img img, .wp-block-button__link, .cf-nav a, .cf-shots > .cf-phone, .cf-boss .cf-boss__shot { transition: none; }
	.cf-craft:hover .cf-craft__img img, .wp-block-button__link:hover, .wp-block-button__link:active, .cf-shots > .cf-phone:hover { transform: none; translate: none; scale: none; }
}
