/* Caden Martin — portfolio
   Theme matched to the original Framer site: near-black, white, grey, Inter, tight uppercase headings. */

:root {
  --bg: #0f0f0f;
  --bg-raised: #161616;
  --line: #262626;
  --text: #ffffff;
  --muted: #a6a6a6;
  --pad: clamp(16px, 3vw, 40px);
  --max: 1400px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }

.caps { text-transform: uppercase; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Menu (matches Framer: small MENU toggle, full-screen overlay) ---------- */
.menu-toggle {
  position: fixed; top: 20px; left: var(--pad); z-index: 60;
  font-size: 16px; text-transform: uppercase; letter-spacing: -0.04em;
  mix-blend-mode: difference;
}
.menu-toggle .close { display: none; }
body.menu-open .menu-toggle .open { display: none; }
body.menu-open .menu-toggle .close { display: inline; }
body.menu-open { overflow: hidden; }

.menu {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg);
  padding: 72px var(--pad) var(--pad);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
body.menu-open .menu { opacity: 1; visibility: visible; }
.menu a {
  font-size: clamp(40px, 6vw, 72px); font-weight: 500; line-height: 1.05;
  text-transform: uppercase; letter-spacing: -0.06em;
  transform: translateY(16px); opacity: 0;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s, color .2s;
  width: fit-content;
}
body.menu-open .menu a { transform: none; opacity: 1; }
body.menu-open .menu a:nth-child(2) { transition-delay: .04s; }
body.menu-open .menu a:nth-child(3) { transition-delay: .08s; }
.menu a:hover { color: var(--muted); }

/* ---------- Headings ---------- */
h1, h2, h3 { font-weight: 500; text-transform: uppercase; }
h1 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.06em; line-height: .95; }
h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.06em; line-height: 1; }
h3 { font-size: 18px; letter-spacing: -0.06em; line-height: 1.15; }
.label { font-size: 14px; text-transform: uppercase; color: var(--muted); letter-spacing: -0.04em; }

/* ---------- Home hero + mouse trail ---------- */
.hero {
  position: relative; z-index: 1; background: var(--bg); height: 100vh; height: 100svh; min-height: 520px;
  display: grid; place-items: center; text-align: center;
  overflow: hidden; isolation: isolate;
}
.hero-text { position: relative; z-index: 2; pointer-events: none; padding: 0 var(--pad); }
.hero-text p { margin-top: 18px; font-size: 16px; text-transform: uppercase; }
.hero-text h1, .hero-text p { text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.contact-lines .email { text-transform: none; }
.trail { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.trail img {
  position: absolute; left: 0; top: 0;
  width: clamp(110px, 11vw, 170px); height: auto;
  border-radius: 2px;
  transform: translate(-50%, -50%) scale(.6);
  opacity: 0;
  animation: trail-pop .9s linear forwards;
  will-change: transform, opacity;
}
@keyframes trail-pop {
  0%      { opacity: 0; transform: translate(-50%, -50%) scale(.6); }   /* 0.0s: start fade in */
  33.333% { opacity: 1; transform: translate(-50%, -50%) scale(1); }    /* 0.3s: fully visible */
  66.667% { opacity: 1; transform: translate(-50%, -50%) scale(1); }    /* 0.6s: start fade out */
  100%    { opacity: 0; transform: translate(-50%, -50%) scale(.92); }  /* 0.9s: gone */
}
@font-face {
  font-family: "Permanent Marker";
  src: url("../fonts/permanent-marker.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* Hand-drawn "Works" with a marker arrow, a little crooked on purpose */
.scroll-cue {
  position: absolute; bottom: clamp(14px, 3vh, 28px); left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #f2f2f2; text-transform: none;
}
.cue-word {
  font-family: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
  font-size: clamp(39px, 3.9vw, 54px); line-height: 1; letter-spacing: 0.01em;
  transform: rotate(-7deg) translateX(-6px);
  transition: transform .3s ease;
}
.cue-arrow {
  width: clamp(28px, 2.6vw, 38px); height: auto; overflow: visible;
  transform: rotate(6deg) translateX(8px);
  animation: cue-bob 1.8s ease-in-out infinite;
}
.cue-arrow path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.scroll-cue:hover .cue-word, .scroll-cue:focus-visible .cue-word { transform: rotate(-10deg) translateX(-6px) scale(1.05); }
@keyframes cue-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 6px; }
}
@media (prefers-reduced-motion: reduce) { .cue-arrow { animation: none; } }

/* ---------- Works list ---------- */
.section { padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(64px, 10vw, 140px); }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; gap: 16px; }
.works { display: grid; gap: clamp(48px, 7vw, 96px); }
.work-card { display: block; }
.work-card .media {
  aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-raised);
}
.work-card .media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.work-card:hover .media img { transform: scale(1.03); }
.work-card .meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; align-items: baseline; }
.work-card .meta p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.work-card .year { font-size: 12px; color: var(--muted); white-space: nowrap; }
.coming-soon .media { display: grid; place-items: center; border: 1px dashed var(--line); background: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer h2 { margin-bottom: 24px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; text-transform: uppercase; }
.footer-links a:hover { color: var(--muted); }
.footer small { display: block; margin-top: 40px; font-size: 12px; color: var(--muted); }

/* ---------- Project page ---------- */
.project-head { padding-top: 96px; padding-bottom: 24px; }
.project-head p.sub { margin-top: 12px; font-size: 16px; color: var(--muted); letter-spacing: -0.03em; }

.viewer {
  position: relative; width: 100%;
  height: min(78vh, 860px); min-height: 380px;
  background: var(--bg);
  overflow: hidden; touch-action: none; user-select: none;
}
.viewer canvas { display: block; width: 100%; height: 100%; outline: none; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer-loading {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-size: 12px; text-transform: uppercase; color: var(--muted); pointer-events: none;
  transition: opacity .4s;
}
.viewer-loading .bar { width: 220px; height: 2px; background: var(--line); margin: 12px auto 0; overflow: hidden; }
.viewer-loading .bar i { display: block; height: 100%; width: 0; background: var(--text); transition: width .2s; }
.viewer.ready .viewer-loading { opacity: 0; }
.viewer-ui {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px var(--pad);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 12px; text-transform: uppercase; pointer-events: none;
}
.viewer-ui .hint { color: var(--muted); }
.viewer-ui .tools { display: flex; gap: 6px; pointer-events: auto; }
.viewer-ui button {
  padding: 8px 12px; border: 1px solid var(--line); background: rgba(15,15,15,.7);
  backdrop-filter: blur(6px); text-transform: uppercase; font-size: 12px;
  transition: border-color .2s, background .2s;
}
.viewer-ui button:hover, .viewer-ui button[aria-pressed="true"] { border-color: var(--text); }
.viewer:fullscreen { height: 100vh; }

.project-body {
  display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px);
}
.facts { display: grid; gap: 22px; align-content: start; }
.facts div p { margin-top: 4px; font-size: 14px; }
.writeup h2 { margin-bottom: 20px; }
.writeup p { font-size: 16px; line-height: 1.6; letter-spacing: -0.02em; color: #e6e6e6; max-width: 70ch; }
.writeup p + p { margin-top: 1em; }
.writeup ul { margin: 1em 0 0 1.1em; color: #e6e6e6; font-size: 16px; line-height: 1.6; letter-spacing: -0.02em; }
.writeup .result { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.writeup .result strong { display: block; font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.05em; text-transform: uppercase; }

/* Gallery (masonry via CSS columns) */
.gallery { display: block; }
.gallery .g-row { display: flex; gap: 10px; margin-bottom: 10px; }
.gallery button { display: block; height: 100%; flex: none; overflow: hidden; background: var(--bg-raised); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.gallery button:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: #080808;
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox .lb-top, .lightbox .lb-bottom {
  display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad);
  font-size: 12px; text-transform: uppercase;
}
.lightbox .lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--pad); }
.lightbox .lb-stage img { max-width: 100%; max-height: calc(100vh - 130px); max-height: calc(100svh - 130px); width: auto; height: auto; object-fit: contain; }
.lightbox .lb-nav { position: absolute; top: 0; bottom: 0; width: 30%; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.lightbox .lb-prev { left: 0; text-align: left; padding-left: var(--pad); }
.lightbox .lb-next { right: 0; text-align: right; padding-right: var(--pad); }
.lightbox .lb-nav:hover { color: var(--text); }

/* Downloads */
.downloads { display: grid; border-top: 1px solid var(--line); }
.download {
  display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.download .name { font-size: 16px; text-transform: uppercase; letter-spacing: -0.05em; }
.download .desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.download .size { font-size: 12px; color: var(--muted); }
.download .get { font-size: 12px; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.download:hover .get { color: var(--muted); }

.next-project { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.next-project a h2 { transition: color .2s; }
.next-project a:hover h2 { color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-hero { padding-top: 120px; padding-bottom: clamp(48px, 7vw, 96px); }
.contact-lines { margin-top: 36px; display: grid; gap: 6px; }
.contact-lines a { font-size: clamp(22px, 3vw, 40px); font-weight: 500; letter-spacing: -0.06em; text-transform: uppercase; width: fit-content; }
.contact-lines a .sub { color: var(--muted); font-size: 12px; letter-spacing: -0.03em; margin-left: 10px; vertical-align: middle; }
.contact-lines a:hover { color: var(--muted); }
.bio { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.bio-portrait { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-raised); }
.bio-portrait img { width: 100%; height: 100%; object-fit: cover; }
.bio-blocks { display: grid; gap: 32px; }
.bio-blocks p { font-size: 16px; line-height: 1.6; letter-spacing: -0.02em; margin-top: 8px; max-width: 60ch; }
.timeline { display: grid; gap: 10px; margin-top: 10px; }
.timeline div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; font-size: 16px; letter-spacing: -0.03em; }
.timeline span { color: var(--muted); }
.btn {
  display: inline-block; margin-top: 8px; padding: 12px 18px; border: 1px solid var(--text);
  font-size: 12px; text-transform: uppercase; transition: background .2s, color .2s;
}
.btn:hover { background: var(--text); color: var(--bg); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .project-body, .bio { grid-template-columns: 1fr; }
  .viewer { height: 62vh; }
  .viewer-ui .hint { display: none; }
  .download { grid-template-columns: 1fr auto; }
  .download .size { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Viewer parts panel + part name tag ---------- */
.viewer-parts {
  position: absolute; top: 16px; right: var(--pad); bottom: 64px; width: 260px;
  overflow-y: auto; overscroll-behavior: contain;
  background: rgba(15,15,15,.82); backdrop-filter: blur(8px);
  border: 1px solid var(--line); padding: 12px 14px; font-size: 12px; z-index: 3;
}
.viewer-parts[hidden] { display: none; }
.vp-head { display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.vp-head button, .vp-only { font-size: 11px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid currentColor; }
.vp-head button:hover, .vp-only:hover { color: var(--text); }
.vp-group { padding: 8px 0; border-bottom: 1px solid var(--line); }
.vp-group:last-child { border-bottom: 0; }
.vp-ghead, .vp-row { display: flex; align-items: center; gap: 8px; cursor: pointer; letter-spacing: -0.02em; }
.vp-ghead { text-transform: uppercase; font-weight: 500; padding: 2px 0 4px; }
.vp-ghead .vp-only { margin-left: auto; font-weight: 400; }
.vp-row { padding: 3px 0 3px 22px; color: #d0d0d0; }
.vp-row:hover { color: var(--text); }
.viewer-parts input[type="checkbox"] {
  appearance: none; width: 12px; height: 12px; flex: none; border: 1px solid #777; display: grid; place-items: center; cursor: pointer;
}
.viewer-parts input[type="checkbox"]:checked { background: var(--text); border-color: var(--text); }
.viewer-parts input[type="checkbox"]:indeterminate { background: linear-gradient(var(--text), var(--text)) center / 6px 2px no-repeat; border-color: var(--text); }
.viewer-tag {
  position: absolute; z-index: 4; pointer-events: none;
  background: rgba(15,15,15,.9); border: 1px solid var(--line); padding: 6px 10px;
  font-size: 12px; text-transform: uppercase; display: grid; gap: 2px;
}
.viewer-tag .muted { font-size: 10px; }
.viewer-tag[hidden] { display: none; }
@media (max-width: 760px) {
  .viewer-parts { top: 8px; left: 8px; right: 8px; bottom: 56px; width: auto; }
}

/* Sectioned photo galleries */
.photo-section + .photo-section { margin-top: clamp(40px, 5vw, 72px); }
.photo-section-head { display: flex; justify-content: space-between; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.photo-section-head span { color: var(--muted); }

.viewer-tag .vt-copy { width: min(560px, 80vw); background: #000; color: var(--text); border: 1px solid var(--line); padding: 6px 8px; font: 12px ui-monospace, Menlo, Consolas, monospace; text-transform: none; }

/* Project video */
.video-wrap { display: flex; justify-content: center; background: var(--bg-raised); margin-bottom: 10px; }
.video-wrap video { display: block; max-width: 100%; max-height: 80vh; max-height: 80svh; width: auto; height: auto; background: #000; }


/* ---------- Home: hero + full-screen works slider, snapping between the two ---------- */
html.snap { scroll-snap-type: y mandatory; }
html.snap .hero, html.snap .works { scroll-snap-align: start; scroll-snap-stop: always; }
.works-slider {
  position: relative; height: 100vh; height: 100svh; min-height: 480px;
  overflow: hidden; background: #000;
}
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 6s ease; }
.slide.is-active img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.25) 100%); }
.slide-text { position: absolute; left: var(--pad); right: calc(var(--pad) + 80px); bottom: clamp(40px, 8vh, 80px); z-index: 2; }
.slide-text .label { color: rgba(255,255,255,.75); margin-bottom: 10px; }
.slide-text h2 { font-size: clamp(44px, 8vw, 120px); line-height: .92; letter-spacing: -0.06em; }
.slide-text h2 a { display: inline-flex; align-items: baseline; gap: .25em; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.slide-text .go { font-size: .45em; transition: transform .3s ease; }
.slide-text h2 a:hover .go, .slide-text h2 a:focus-visible .go { transform: translateX(.3em); }
.slide-text h2 a:hover { color: #fff; opacity: .85; }
.slide-next {
  position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 3;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor: pointer; transition: background .25s ease, transform .25s ease;
}
.slide-next:hover, .slide-next:focus-visible { background: rgba(255,255,255,.15); transform: translateY(-50%) translateX(3px); }
.slide-count { position: absolute; right: var(--pad); bottom: clamp(40px, 8vh, 80px); z-index: 3; color: rgba(255,255,255,.75); }
@media (max-width: 640px) {
  .slide-next { width: 52px; height: 52px; }
  .slide-text { right: var(--pad); bottom: 72px; }
  .slide-count { bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html.snap { scroll-behavior: auto; }
  .slide, .slide.is-active, .slide img { transition: none; }
}

/* ---------- Home: 3D garage (shown instead of the slider once it is running) ---------- */
.works { position: relative; }
.garage { display: none; }
.garage [hidden] { display: none !important; }
.works.has-garage .garage { display: block; }
.works.has-garage .works-slider { display: none; }
.garage {
  position: relative; height: 100vh; height: 100svh; min-height: 480px;
  overflow: hidden; background: var(--bg);
}
.garage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; outline: none; }
/* The 3D view stays pinned to the screen behind the name screen, so scrolling down reads as dropping into the room
   while the name screen lifts away and fades. */
.works.has-garage .garage-canvas { position: fixed; z-index: 0; height: 100vh; height: 100svh; }
.garage.is-inspecting .garage-canvas { touch-action: none; }
.garage-loading {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--bg); z-index: 5; transition: opacity .6s ease, visibility 0s .6s;
}
.garage.is-ready .garage-loading { opacity: 0; visibility: hidden; }
.garage-bar { width: 180px; height: 2px; background: var(--line); overflow: hidden; }
.garage-bar span { display: block; height: 100%; width: 0; background: var(--text); transition: width .2s linear; }
.garage-bar.is-indeterminate span { width: 35%; animation: garage-bar 1.1s ease-in-out infinite; }
@keyframes garage-bar { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

.garage-hint {
  position: absolute; left: 50%; bottom: clamp(70px, 10vh, 100px); transform: translateX(-50%);
  z-index: 3; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(0,0,0,.55); color: #fff; pointer-events: none; transition: opacity .4s ease;
}
.garage.is-inspecting .garage-hint, .garage.has-interacted .garage-hint { opacity: 0; }
/* hint and project buttons appear once the drop has landed */
.garage-hint, .garage-list { transition: opacity .5s ease .15s; }
.garage:not(.is-landed) .garage-hint, .garage:not(.is-landed) .garage-list { opacity: 0; pointer-events: none; }

.garage-tip {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  padding: 6px 10px; border-radius: 4px; background: rgba(0,0,0,.75); color: #fff;
  font-size: 13px; white-space: nowrap; opacity: 0; transition: opacity .15s ease;
}
.garage-tip.is-on { opacity: 1; }

.garage-panel {
  position: absolute; left: var(--pad); bottom: clamp(40px, 8vh, 80px); z-index: 4; max-width: min(560px, 80vw);
  opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease;
}
.garage-panel.is-on { opacity: 1; transform: none; }
.garage-panel .label { color: rgba(255,255,255,.75); margin-bottom: 8px; }
.garage-panel h2 { font-size: clamp(36px, 6vw, 88px); line-height: .95; letter-spacing: -0.06em; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.garage-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px 20px;
  border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: rgba(0,0,0,.4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 15px; transition: background .25s ease, color .25s ease;
}
.garage-more:hover, .garage-more:focus-visible { background: #fff; color: #000; }
.garage-soon { margin-top: 18px; }

.garage-back {
  position: absolute; left: var(--pad); top: 72px; z-index: 4;
  padding: 10px 16px; border-radius: 999px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.4);
  transition: background .25s ease;
}
.garage-back:hover, .garage-back:focus-visible { background: rgba(255,255,255,.15); }

.garage-list {
  position: absolute; right: var(--pad); bottom: clamp(40px, 8vh, 80px); z-index: 3;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 50vw;
}
.garage-list button {
  padding: 7px 12px; border-radius: 999px; font-size: 12px; text-transform: uppercase; letter-spacing: 0;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85);
  transition: background .2s ease, border-color .2s ease;
}
.garage-list button:hover, .garage-list button:focus-visible, .garage-list button[aria-current="true"] { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }
@media (max-width: 640px) {
  .garage-list { left: var(--pad); right: var(--pad); bottom: 22px; max-width: none; justify-content: center; }
  .garage-panel { bottom: 76px; }
  .garage-hint { bottom: 76px; }
}

/* The name screen reads as a solid layer of ground above the garage: a deep shadow falls from its bottom edge. */
.hero { box-shadow: 0 30px 70px 10px rgba(0,0,0,var(--ground-shadow, .85)); }
