/* Garage world (index.html, tools.html): Michael's logo on its cutting mat. */

body.garage {
	--ground: #262626;
	--ground-deep: #1d1d1f;
	--panel: #1f1f21;
	/* the cutting-mat grid from behind his logo */
	background-image:
		linear-gradient(rgba(239, 227, 196, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(239, 227, 196, 0.035) 1px, transparent 1px);
	background-size: 28px 28px;
}

.garage .main.style3.primary, .garage .main.style3.secondary { background-color: transparent; }
.garage .main.style3.secondary { background-color: rgba(0, 0, 0, 0.22); }

/* ---------- Hero: the logo, sparks, three doors ---------- */

#intro.hero {
	flex-direction: column;
	padding: 4.5em 2em 2.5em 2em;
	background:
		radial-gradient(ellipse 50% 45% at 50% 38%, rgba(240, 138, 36, 0.10), transparent 70%),
		transparent;
}

#intro.hero > .content { width: 100%; max-width: 100%; }

.logo-stage { position: relative; width: min(22em, 62vw, 38vh); margin: 0 auto; }
.logo-stage img { display: block; width: 100%; height: auto; }
.logo-stage canvas { position: absolute; inset: -40% -40% -10% -40%; width: 180%; height: 150%; pointer-events: none; }

.firm { margin: 0.9em 0 0 0; color: var(--ink-dim); font-size: 0.95em; letter-spacing: 0.04em; }

.doors {
	list-style: none;
	padding: 0;
	margin: 1.6em auto 0 auto;
	display: grid;
	grid-template-columns: repeat(3, auto);
	justify-content: center;
	gap: 0 4.5vw;
	text-align: center;
}

.doors li { padding: 0; }

.doors a {
	display: block;
	text-decoration: none;
	color: var(--ink);
	border: 0;
	outline-offset: 6px;
}

.doors .word {
	display: block;
	font-family: "Big Shoulders Display", sans-serif;
	font-weight: 900;
	font-size: clamp(3.2rem, min(8vw, 13vh), 8rem);
	line-height: 0.9;
	letter-spacing: 0.005em;
	transition: color 0.25s ease, text-shadow 0.25s ease;
}

.doors .what { display: block; margin-top: 0.15em; font-size: 0.9em; color: var(--ink-dim); }

/* weld bead under the word on hover */
.doors .word:after {
	content: "";
	display: block;
	height: 4px;
	margin: 0.18em auto 0 auto;
	width: 0;
	background: linear-gradient(90deg, var(--accent), var(--accent-hot), var(--accent));
	box-shadow: 0 0 14px rgba(255, 200, 97, 0.8);
	transition: width 0.35s ease;
}
.doors a:hover .word, .doors a:focus-visible .word { color: #fff3d6; }
.doors a:hover .word:after, .doors a:focus-visible .word:after { width: 100%; }

/* Create belongs to the other world: it glows violet, never orange */
.doors a.to-studio:hover .word, .doors a.to-studio:focus-visible .word {
	color: #f4ecff;
	text-shadow: 0 0 12px rgba(160, 110, 255, 0.85), 0 0 40px rgba(139, 92, 255, 0.6);
}
.doors a.to-studio .word:after { background: linear-gradient(90deg, #8b5cff, #ff4fd8); box-shadow: 0 0 14px rgba(139, 92, 255, 0.9); }

@media screen and (max-width: 736px) {
	#intro.hero { padding: 4.5em 1em 3em 1em; }
	.doors { grid-template-columns: 1fr; gap: 1.4em; margin-top: 2em; }
	.doors .what { margin-top: 0.3em; }
}

/* ---------- Slides ---------- */

#fix { background-image: url("images/overlay.png"), url("../../images/graded/g-engine-head-inline6.jpg"); }
#fabricate { background-image: url("images/overlay.png"), url("../../images/graded/g-fab-bus-deck.jpg"); background-position: top left, center 60%; }
#honcho { background-image: url("images/overlay.png"), url("../../images/graded/g-truck-bed-led.jpg"); }

.garage .box h2 { font-size: 5em; }
.quote { font-size: 1.2em; line-height: 1.5; color: var(--ink) !important; margin-bottom: 0.4em; }
.services { color: var(--ink-dim); }

/* Head Honcho slide: the portrait rolls in with the box */
#honcho .content.box { width: 44em; }
.honcho-box { display: grid; grid-template-columns: 11em 1fr; gap: 0 1.8em; align-items: start; }
.honcho-box img { width: 11em; height: 14em; object-fit: cover; object-position: 50% 16%; grid-row: span 4; }
.honcho-box h2 { font-size: 4em !important; margin-bottom: 0.1em !important; }
.honcho-box .title { color: var(--accent); font-weight: 700; margin: 0 0 1em 0; }
.honcho-box blockquote { border-left: 3px solid var(--accent); font-style: normal; font-size: 1.2em; margin: 0 0 0.6em 0; padding-left: 0.8em; color: var(--ink); }
.honcho-box .actions { grid-column: 2; }
@media screen and (max-width: 736px) {
	.honcho-box { grid-template-columns: 1fr; text-align: left; }
	.honcho-box img { width: 100%; height: 16em; grid-row: auto; margin-bottom: 1.2em; }
	.honcho-box .actions { grid-column: 1; }
}

/* ---------- Work gallery ---------- */

.garage #work .gallery { width: 60em; }

/* ---------- Doorway to the Studio: the only violet on the garage page ---------- */

#studio-door {
	background:
		radial-gradient(ellipse 60% 55% at 50% 50%, rgba(139, 92, 255, 0.28), transparent 70%),
		linear-gradient(180deg, rgba(7, 6, 11, 0.55), rgba(7, 6, 11, 0.92)),
		url("../../images/graded/s-horse-rainbow-wings.jpg") center 35% / cover no-repeat;
	border-top: 1px solid rgba(139, 92, 255, 0.35);
	border-bottom: 1px solid rgba(139, 92, 255, 0.35);
}

#studio-door h2 {
	font-size: clamp(4rem, 10vw, 9rem);
	color: #f4ecff;
	text-shadow: 0 0 14px rgba(160, 110, 255, 0.8), 0 0 50px rgba(139, 92, 255, 0.55);
}

#studio-door p { color: rgba(244, 236, 255, 0.85); font-size: 1.15em; }

#studio-door .button {
	background: transparent;
	border: 2px solid #b68cff;
	color: #f4ecff !important;
	box-shadow: 0 0 20px rgba(139, 92, 255, 0.45), inset 0 0 12px rgba(139, 92, 255, 0.25);
}
#studio-door .button:hover { background: rgba(139, 92, 255, 0.2); }

@media (prefers-reduced-motion: reduce) {
	.doors .word:after { transition: none; }
}

/* ---------- What he does: the list in each slide ---------- */
.does { list-style: none; padding: 0; margin: 0 0 1.4em 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.6em; }
.does li { padding: 0.45em 0 0.45em 1.1em; border-top: 1px solid var(--line); position: relative; color: var(--ink); line-height: 1.35; }
.does li:before { content: ""; position: absolute; left: 0; top: 0.95em; width: 0.45em; height: 0.45em; background: var(--accent); transform: rotate(45deg); }
.garage .box .quote { font-size: 1em; color: var(--ink-dim) !important; font-style: italic; border-left: 2px solid var(--line); padding-left: 0.9em; }
.garage .main.style2 .content.box { width: 40em; }
@media screen and (max-width: 736px) { .does { grid-template-columns: 1fr; } }

/* ---------- Before you drive in ---------- */
.main > .content.wide { width: 68em; max-width: calc(100% - 2em); }
#before .content > header p { max-width: 36em; margin-left: auto; margin-right: auto; }
.tricks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: left; }
.trick { display: grid; grid-template-rows: auto auto 1fr; gap: 0.4em; padding: 2em 2.2em 2.2em 2.2em; background: var(--panel); color: var(--ink); text-decoration: none; border: 0; border-top: 3px solid transparent; transition: border-color 0.25s ease, background 0.25s ease; }
.trick:hover, .trick:focus-visible { border-top-color: var(--accent); background: #262628; color: var(--ink); }
.trick-art svg { width: 9em; height: 4.5em; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.trick-name { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 2.4em; line-height: 1; }
.trick-what { color: var(--ink-dim); }
@media screen and (max-width: 736px) { .tricks { grid-template-columns: 1fr; } .trick { padding: 1.5em; } }

/* ---------- Booking intake ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.intake { text-align: left; padding: 2.4em 2.6em; }
#contact .content > header p { color: var(--ink-dim); }
.intake form { margin: 0; }
.step { border: 0; margin: 0 0 2.2em 0; padding: 0; min-width: 0; }
.step legend { display: flex; align-items: center; gap: 0.6em; font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 2em; line-height: 1; margin-bottom: 0.7em; color: var(--ink); padding: 0; }
.step .n { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--accent); color: #1b1b1d; font-size: 0.75em; }
.row { display: grid; gap: 1em; }
.row.three { grid-template-columns: 1fr 1fr 1.4fr; }
.fld { display: flex; flex-direction: column; gap: 0.35em; margin: 0 0 1em 0; font-weight: 400; min-width: 0; }
.row .fld { margin: 0; }
.fld > span { font-size: 0.85em; font-weight: 600; color: var(--ink-dim); }
.fld textarea { min-height: 7em; }

.capture { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cap-btn {
	display: flex !important; align-items: center; justify-content: center; gap: 0.7em; margin: 0;
	height: auto !important; line-height: 1.2 !important; padding: 1.1em 1em !important;
	background: #29292c !important; color: var(--ink) !important; border: 1px dashed rgba(239, 227, 196, 0.25) !important; border-radius: 0 !important;
	font-weight: 700; font-size: 1em; cursor: pointer; white-space: normal !important; text-align: center;
}
.cap-btn:hover { border-color: var(--accent) !important; background: #2f2f33 !important; }
.cap-btn svg { width: 1.6em; height: 1.6em; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
input.visually-hidden:focus-visible + .cap-btn, .cap-btn:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 2px; }

.recorder { margin-top: 6px; background: #151516; padding: 0.8em 1em; }
.recorder canvas { display: block; width: 100%; height: 4em; }
.rec-bar { display: flex; align-items: center; gap: 0.8em; flex-wrap: wrap; }
.rec-dot { width: 0.7em; height: 0.7em; border-radius: 50%; background: #e5484d; animation: rec 1s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.3; } }
#rec-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.rec-hint { color: var(--ink-dim); font-size: 0.85em; flex: 1; min-width: 12em; }

.attachments { list-style: none; padding: 0; margin: 0.8em 0 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.att.photo img { display: block; width: 5.5em; height: 5.5em; object-fit: cover; }
.att.sound { display: flex; align-items: center; gap: 0.8em; flex-wrap: wrap; background: #151516; padding: 0.5em 0.8em; width: 100%; }
.att.sound audio { height: 2.4em; max-width: 100%; }
.att-del { background: none !important; color: var(--ink-dim) !important; text-decoration: underline; height: auto !important; line-height: 1.4 !important; padding: 0 !important; font-weight: 400; }

.triage { margin-top: 1em; padding: 1.1em 1.3em; background: #151516; border-left: 4px solid var(--line); }
.triage p { margin: 0 0 0.5em 0; color: var(--ink); }
.triage p:last-child { margin: 0; color: var(--ink-dim); }
.tri-head { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 1.6em; line-height: 1.1; }
.triage.diy { border-left-color: #4caf6a; } .triage.diy .tri-head { color: #8fdca6; }
.triage.ok { border-left-color: #4caf6a; } .triage.ok .tri-head { color: #8fdca6; }
.triage.soon { border-left-color: #f0b429; } .triage.soon .tri-head { color: #ffd36b; }
.triage.stop { border-left-color: #e5484d; } .triage.stop .tri-head { color: #ff9a9d; }

.helper { margin-top: 1em; border-top: 1px solid var(--line); padding-top: 0.9em; }
.helper summary { cursor: pointer; font-weight: 700; color: var(--accent); list-style: none; }
.helper summary::-webkit-details-marker { display: none; }
.helper summary:before { content: "+"; display: inline-block; width: 1.2em; font-weight: 800; }
.helper[open] summary:before { content: "\2212"; }
.helper .noise-app { margin-top: 1em; background: #151516; padding: 1.5em; }
.diy-first { background: rgba(76, 175, 106, 0.12); border-left: 3px solid #4caf6a; padding: 0.8em 1em; }
.diy-first strong { display: block; color: #8fdca6; font-size: 0.85em; }
.urgency.diy { background: rgba(76, 175, 106, 0.18); color: #8fdca6; }

.cal { max-width: 34em; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head span { text-align: center; font-size: 0.75em; font-weight: 700; color: var(--ink-dim); padding-bottom: 0.3em; }
.day {
	height: 3em !important; line-height: 3em !important; padding: 0 !important; border-radius: 0 !important;
	background: #29292c !important; color: var(--ink) !important; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.9em;
}
.day:hover { background: #333337 !important; }
.day.closed { background: transparent !important; color: rgba(239, 227, 196, 0.22) !important; cursor: default; }
.day.today { box-shadow: inset 0 -2px 0 rgba(239, 227, 196, 0.35); }
.day.on { background: var(--accent) !important; color: #1b1b1d !important; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 1em; }
.slots-label { font-weight: 700; margin-right: 0.6em; }
.slot { height: 2.6em !important; line-height: 2.6em !important; padding: 0 1.1em !important; border-radius: 0 !important; background: #29292c !important; color: var(--ink) !important; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot.on { background: var(--accent) !important; color: #1b1b1d !important; }
.cal-note { color: var(--ink-dim); font-size: 0.85em; margin: 0.8em 0 0 0; }

.intake-send { display: flex; align-items: center; gap: 1.2em; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.4em; }
.intake-summary { margin: 0; flex: 1; min-width: 14em; }
.intake-error { margin: 0; width: 100%; color: #ff9a9d; font-weight: 600; order: 3; }

@media screen and (max-width: 736px) {
	.intake { padding: 1.5em 1.2em; }
	.row.three, .capture { grid-template-columns: 1fr; }
	.day { height: 2.6em !important; line-height: 2.6em !important; }
}

/* ---------- Before you drive in: noise checker first, plugs second ---------- */
.before-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 6px; text-align: left; align-items: start; }
.noise-main { background: var(--panel); padding: 0 0 2em 0; }
.noise-main h3, .plug-card .trick-name { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 2.6em; line-height: 1; margin: 0.6em 1.1rem 0.25em 1.1rem; padding: 0 0.4em; }
.noise-main .lede-sm { color: var(--ink-dim); margin: 0 1.5rem 1.2em 1.5rem; max-width: 40em; }
.noise-main .noise-app { margin: 0 1.5rem; background: #29292c; padding: 1.5em; }
.noise-main .noise-q { font-size: 1.5em; }
.before-photo { margin: 0; height: 13em; overflow: hidden; }
.before-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plug-card { display: flex; flex-direction: column; background: var(--panel); color: var(--ink); text-decoration: none; border: 0; padding-bottom: 1.6em; border-top: 3px solid transparent; transition: border-color 0.25s ease; }
.plug-card:hover { border-top-color: var(--accent); color: var(--ink); }
.plug-card .trick-name { font-size: 2em; margin-top: 0.7em; }
.plug-card .trick-what { color: var(--ink-dim); margin: 0 1.5rem; }
.plug-card .go { margin: 1em 1.5rem 0 1.5rem; color: var(--accent); font-weight: 700; }
@media screen and (max-width: 900px) { .before-grid { grid-template-columns: 1fr; } .noise-main .noise-app { margin: 0 0.8rem; padding: 1em; } }
