/*
Theme Name: RoarBack Studio
Description: Thème personnalisé RoarBack Studio pour le développement local.
Version: 0.1.0
Requires PHP: 8.2
Text Domain: roarback-studio
*/

:root {
	--rb-background: #0c1010;
	--rb-ivory: #e8e4db;
	--rb-muted: #a19f94;
	--rb-copper: #b35133;
	--rb-header-height: 68px;
	--rb-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
/* Native anchor navigation preserves hashes, history and keyboard behavior.
 * The site header scrolls with the page; only the fixed WP admin bar needs clearance.
 */
html { scroll-behavior: smooth; }
body.admin-bar :is(#projects, #music, #services, #about, #contact) { scroll-margin-top: 32px; }
@media (max-width: 782px) {
	body.admin-bar :is(#projects, #music, #services, #about, #contact) { scroll-margin-top: 46px; }
}
@media (max-width: 600px) {
	body.admin-bar :is(#projects, #music, #services, #about, #contact) { scroll-margin-top: 0; }
}
body { margin: 0; background: var(--rb-background); color: var(--rb-ivory); font-family: var(--rb-sans); }
::selection { background: var(--rb-copper); color: var(--rb-ivory); }
::-moz-selection { background: var(--rb-copper); color: var(--rb-ivory); }
/* Transparent selection is scoped to the title to preserve other text contrasts. */
.hero-title::selection,
.hero-title span::selection { background: transparent; color: #d16d46; }
.hero-title::-moz-selection,
.hero-title span::-moz-selection { background: transparent; color: #d16d46; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--rb-ivory); outline-offset: 6px; }
/* Suppress only focus outlines after pointer interaction; retain design borders/shadows.
 * Native :focus-visible remains the keyboard fallback when JavaScript is unavailable.
 */
:where(a[href], button, input[type="range"]):focus:not(:focus-visible),
html[data-rb-input="pointer"] :is(a[href], button, input[type="range"]):focus { outline: none; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 10; padding: 12px; background: var(--rb-background); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--rb-header-height);
	padding-inline: 5%;
	border-bottom: 1px solid rgba(232, 228, 219, .16);
	background: linear-gradient(100deg, #090d0d, #101616 65%, #0d1212);
}
.site-navigation ul { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-navigation a { color: #b8b7ae; font-size: 10px; letter-spacing: 1.2px; text-decoration: none; text-transform: uppercase; transition: color 180ms ease; }
.site-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; width: 120px; }
.site-logo img { display: block; width: 100%; height: auto; }

.hero {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	min-height: calc(100vh - var(--rb-header-height));
	min-height: calc(100svh - var(--rb-header-height));
	padding: 100px 24px 110px;
	overflow: hidden;
	background: radial-gradient(ellipse at 64% 52%, #121a19, #090d0d 80%);
}
.hero-content::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(100%, 960px);
	height: calc(100% + 160px);
	transform: translate(-50%, -50%);
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(ellipse at center, rgba(146, 69, 42, .23), transparent 80%);
	opacity: .7;
	animation: hero-halo-breathe 19s cubic-bezier(.45, 0, .55, 1) -7s infinite;
}
@keyframes hero-halo-breathe {
	0%, 100% { opacity: .65; }
	38% { opacity: 1; }
	76% { opacity: .5; }
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px); }
.hero-signal {
	position: absolute;
	z-index: -1;
	left: 50%;
	top: 0;
	width: min(100%, clamp(260px, 40vw, 760px));
	height: calc(100% + 32px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	transform: translateX(-50%);
	opacity: .65;
	pointer-events: none;
}
.hero-signal span {
	position: relative;
	flex: 0 0 calc((100% - 1px) / 14);
	height: var(--line-height);
	opacity: var(--line-opacity);
}
.hero-signal span:last-child { flex-basis: 1px; }
.hero-signal span::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 1px;
	background: linear-gradient(to bottom, transparent, rgba(179, 81, 51, .55) 35%, rgba(179, 81, 51, .55) 65%, transparent);
	transform-origin: center;
	animation: hero-signal-breathe var(--line-duration) cubic-bezier(.45, 0, .55, 1) var(--line-delay) infinite;
}
/* A tapered envelope stays intact as the individual lines breathe. */
.hero-signal span:nth-child(1) { --line-height: 24%; --line-opacity: .25; --line-duration: 10.8s; --line-delay: -4s; }
.hero-signal span:nth-child(2) { --line-height: 34%; --line-opacity: .35; --line-duration: 10s; --line-delay: -7s; }
.hero-signal span:nth-child(3) { --line-height: 43%; --line-opacity: .5; --line-duration: 11.4s; --line-delay: -2s; }
.hero-signal span:nth-child(4) { --line-height: 58%; --line-opacity: .65; --line-duration: 11s; --line-delay: -8s; }
.hero-signal span:nth-child(5) { --line-height: 72%; --line-opacity: .8; --line-duration: 11.8s; --line-delay: -6s; }
.hero-signal span:nth-child(6) { --line-height: 85%; --line-opacity: .9; --line-duration: 9s; --line-delay: -3s; }
.hero-signal span:nth-child(7) { --line-height: 94%; --line-opacity: .95; --line-duration: 12s; --line-delay: -9s; }
.hero-signal span:nth-child(8) { --line-height: 100%; --line-opacity: 1; --line-duration: 11.6s; --line-delay: -5s; }
.hero-signal span:nth-child(9) { --line-height: 92%; --line-opacity: .95; --line-duration: 10.5s; --line-delay: -8s; }
.hero-signal span:nth-child(10) { --line-height: 83%; --line-opacity: .9; --line-duration: 10.9s; --line-delay: -11s; }
.hero-signal span:nth-child(11) { --line-height: 70%; --line-opacity: .8; --line-duration: 8.5s; --line-delay: -1s; }
.hero-signal span:nth-child(12) { --line-height: 57%; --line-opacity: .65; --line-duration: 10.2s; --line-delay: -7s; }
.hero-signal span:nth-child(13) { --line-height: 44%; --line-opacity: .5; --line-duration: 11.9s; --line-delay: -10s; }
.hero-signal span:nth-child(14) { --line-height: 32%; --line-opacity: .35; --line-duration: 9.5s; --line-delay: -6s; }
.hero-signal span:nth-child(15) { --line-height: 23%; --line-opacity: .25; --line-duration: 11.5s; --line-delay: -3s; }
.hero-signal span:nth-child(3n)::before { animation-direction: reverse; }
.hero-signal span:nth-child(4n + 1) { --scale-low: .65; --scale-high: 1.16; }
.hero-signal span:nth-child(4n + 2) { --scale-low: .82; --scale-high: 1.08; }
.hero-signal span:nth-child(4n + 3) { --scale-low: .73; --scale-high: 1.2; }
/* Each interstitial line has its own timing, independent of its parent bar. */
.hero-signal span:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: .65px;
	height: var(--minor-height, 46%);
	opacity: .75;
	background: linear-gradient(to bottom, transparent, rgba(193, 100, 64, .7) 30%, rgba(193, 100, 64, .7) 70%, transparent);
	transform: translateY(-50%);
	transform-origin: center;
	animation: hero-signal-minor var(--minor-duration, 12.7s) cubic-bezier(.45, 0, .55, 1) var(--minor-delay, -4.3s) infinite;
}
.hero-signal span:nth-child(3n + 1)::after { --minor-duration: 9.7s; --minor-delay: -6.1s; --minor-height: 40%; --minor-low: .58; --minor-high: 1.3; }
.hero-signal span:nth-child(3n + 2)::after { --minor-duration: 14.3s; --minor-delay: -2.8s; --minor-height: 54%; --minor-low: .88; --minor-high: 1.07; }
.hero-signal span:nth-child(3n)::after { --minor-duration: 11.3s; --minor-delay: -8.6s; --minor-height: 36%; --minor-low: .66; --minor-high: 1.24; }
.hero-signal span:nth-child(4n)::after { --minor-duration: 13.1s; --minor-delay: -5.4s; animation-direction: reverse; }
.hero-signal span:nth-child(5n)::after { --minor-duration: 10.6s; --minor-delay: -9.2s; }
/* Extra fine lines preserve density across the wider artwork. */
.hero-signal span i {
	position: absolute;
	left: 25%;
	top: 50%;
	width: .5px;
	height: var(--fine-height, 28%);
	opacity: .5;
	background: linear-gradient(to bottom, transparent, rgba(193, 100, 64, .7) 35%, rgba(193, 100, 64, .7) 65%, transparent);
	transform: translateY(-50%);
	transform-origin: center;
	--minor-low: .72;
	--minor-high: 1.16;
	animation: hero-signal-minor var(--fine-duration, 13.7s) cubic-bezier(.45, 0, .55, 1) var(--fine-delay, -3.7s) infinite;
}
.hero-signal span:nth-child(3n + 1) i { --fine-height: 34%; --fine-duration: 11.7s; --fine-delay: -8.3s; --minor-low: .64; --minor-high: 1.23; }
.hero-signal span:nth-child(3n + 2) i { --fine-height: 22%; --fine-duration: 15.1s; --fine-delay: -5.2s; --minor-low: .9; --minor-high: 1.06; }
.hero-signal span:nth-child(4n) i { --fine-duration: 12.3s; --fine-delay: -10.1s; animation-direction: reverse; }
@keyframes hero-signal-breathe {
	0%, 100% { transform: scaleY(.9); }
	25% { transform: scaleY(var(--scale-high, 1.12)); }
	60% { transform: scaleY(var(--scale-low, .70)); }
	82% { transform: scaleY(.98); }
}
@keyframes hero-signal-minor {
	0%, 100% { transform: translateY(-50%) scaleY(.96); }
	32% { transform: translateY(-50%) scaleY(var(--minor-low, .7)); }
	71% { transform: translateY(-50%) scaleY(var(--minor-high, 1.18)); }
}
.hero-content { position: relative; isolation: isolate; width: 100%; text-align: center; }
.hero-title { margin: 0; font-family: var(--rb-sans); font-size: clamp(64px, 5.9vw, 112px); font-weight: 700; line-height: .9; letter-spacing: -.065em; }
.hero-title span { display: block; }
.hero-title-muted { color: var(--rb-muted); }
.hero-description { color: #c4bfb4; max-width: 480px; margin: 26px auto 0; font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 34px; }
.hero-actions a { font-size: 8px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.button-primary { display: inline-flex; justify-content: center; align-items: center; min-width: 180px; min-height: 40px; padding: 14px 24px; background: var(--rb-copper); color: #fff; transition: background-color 240ms ease, box-shadow 240ms ease, transform 240ms ease; }
.link-secondary { padding-block: 10px; border-bottom: 1px solid rgba(232, 228, 219, .4); transition: color 220ms ease, border-color 220ms ease, transform 220ms ease; }
.site-navigation a:focus-visible { color: #fff; }
.hero-actions .button-primary:focus-visible { background-color: #c15d3c; box-shadow: 0 4px 28px rgba(179, 81, 51, .38); }
.hero-actions .link-secondary:focus-visible { color: var(--rb-copper); border-bottom-color: var(--rb-copper); }
@media (hover: hover) and (pointer: fine) {
	.site-navigation a:hover { color: #fff; }
	.hero-actions .button-primary:hover { background-color: #c15d3c; box-shadow: 0 4px 28px rgba(179, 81, 51, .38); transform: translateY(-2px); }
	.hero-actions .link-secondary:hover { color: var(--rb-copper); border-bottom-color: var(--rb-copper); transform: translateY(-2px); }
}
.hero-credentials { position: absolute; bottom: 32px; left: 24px; right: 24px; display: flex; justify-content: center; gap: 28px; color: #8a9088; }
.hero-credentials p { margin: 0; font-size: 7px; line-height: 1.5; letter-spacing: 1px; text-transform: uppercase; }
body.admin-bar .hero { min-height: calc(100svh - var(--rb-header-height) - 32px); }

/* Desktop proportions calibrated against the paired 100% reference captures.
 * Pixel bounds in screenshots guide these values; they are not original CSS.
 */
@media (min-width: 901px) {
	:root { --rb-header-height: 84px; }
	.site-logo { width: 150px; }
	.site-navigation ul { gap: clamp(22px, 2vw, 38px); }
	.site-navigation a { font-size: clamp(10px, .66vw, 12.5px); letter-spacing: 1.65px; }
	.hero { padding-block: 120px 100px; }
	.hero-title { font-size: clamp(64px, 7.35vw, 140px); }
	.hero-description { max-width: 570px; margin-top: 32px; font-size: 19px; }
	.hero-actions { gap: 36px; margin-top: 43px; }
	.hero-actions a { font-size: 10px; letter-spacing: 1.5px; }
	.hero-actions .button-primary { min-width: 225px; min-height: 50px; padding: 17px 30px; }
	.hero-actions .link-secondary { padding-block: 12px; }
	.hero-credentials { bottom: 40px; gap: 35px; }
	.hero-credentials p { font-size: 9px; letter-spacing: 1.25px; }
}

/* Provisional overflow protection; mobile art direction awaits references. */
@media (max-width: 900px) {
	.site-header { padding-block: 12px; flex-direction: column; gap: 16px; }
	.site-logo { position: static; transform: none; order: -1; }
	.site-navigation ul { gap: 22px; }
	.hero { min-height: calc(100svh - 110px); }
	.hero-signal { width: min(100%, clamp(260px, 54vw, 490px)); opacity: .3; }
	.hero-title { font-size: clamp(38px, 8vw, 72px); }
	.hero-actions { flex-wrap: wrap; gap: 20px; }
	.hero-credentials { flex-wrap: wrap; gap: 8px 24px; }
}

@media (hover: none) and (pointer: coarse) {
 .site-navigation a:active { color: #fff; }
 .hero-actions .button-primary:active { background-color: #c15d3c; box-shadow: 0 4px 28px rgba(179, 81, 51, .38); transform: translateY(-2px); }
 .hero-actions .link-secondary:active { color: var(--rb-copper); border-bottom-color: var(--rb-copper); transform: translateY(-2px); }
}
@media (hover: none) and (pointer: coarse) and (prefers-reduced-motion: reduce) {
 .hero-actions .button-primary:active, .hero-actions .link-secondary:active { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-content::before,
	.hero-signal span,
	.hero-signal span::before,
	.hero-signal span::after,
	.hero-signal span i { animation: none; }
	.site-navigation a,
	.hero-actions .button-primary,
	.hero-actions .link-secondary { transition: none; }
	.hero-actions .button-primary:hover,
	.hero-actions .link-secondary:hover { transform: none; }
}
