/* 3DKIT homepage — catalog design language: graphite cards, square corners, orange only for actions and markers.
   Order: hero → workshop clips → departments → illustrated studio → ordering → original cat banner. */

.kit-home { padding-bottom: 0; }
.kit-home > section { margin-top: clamp(64px, 8vw, 112px); }
.kit-home > section:first-child { margin-top: clamp(28px, 4vw, 48px); }
.kit-home .section-head { margin-bottom: 22px; }
.kit-home .section-head .label { margin-bottom: 10px; }

/* ---------- hero: old version with the framed viewer, plus trust facts */
.home-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: min(calc(100svh - 120px), 720px); }
.home-hero .hero-copy { display: grid; gap: 22px; justify-items: start; }
.home-hero .hero-copy .lead { margin: 0; }
.home-hero .actions { margin: 0; }
.home-hero-art { aspect-ratio: 1 / 1; max-width: 560px; justify-self: end; border: 1px solid var(--line-2); background: var(--well); }
.home-hero-art .viewer-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 2; }
.home-hero-art .dotcat { inset: 38px 0 0; height: calc(100% - 38px); }
.home-hero-art .hero-art-cap { left: 12px; bottom: 12px; }
/* the scene's progress readout shows made-up print data — not used here */
.home-hero-art .print-readout { display: none; }
@media (hover: none) { .home-hero-art .hero-art-cap { display: none; } }

.home-trust { list-style: none; margin: 6px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 32px; }
.home-trust li { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.home-trust li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--hot); }

/* ---------- workshop clips */
.home-reels-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-reel { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--card-edge); background: var(--card); color: var(--card-ink); cursor: default; }
.home-reel-media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #0d0d0d; }
.home-reel-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-reel-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 30%); }
.home-reel-n { position: absolute; z-index: 1; left: 0; top: 0; padding: 6px 9px; background: var(--hot); color: var(--on-hot); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.home-reel-copy { display: grid; gap: 4px; padding: 12px 14px 14px; }
.home-reel-copy strong { font-family: var(--display); font-weight: 700; font-size: 17px; text-transform: uppercase; }
.home-reel-copy span { font-size: 13px; line-height: 1.4; color: var(--card-mute); }

/* ---------- departments */
.home-depts-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-dept { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 260px; border: 1px solid var(--card-edge); background: var(--card); color: var(--card-ink); cursor: default; }
.home-dept::before { content: ""; position: absolute; z-index: 2; left: -1px; top: -1px; width: 10px; height: 10px; background: var(--hot); clip-path: polygon(0 0, 100% 0, 0 100%); }
.home-dept:hover { border-color: #3c3c3c; }
.home-dept:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }
.home-dept-media { position: relative; overflow: hidden; border-right: 1px solid var(--card-line); background: radial-gradient(ellipse 72% 62% at 50% 50%, #262626 0%, #181818 58%, #121212 100%); }
.home-dept-media img { position: absolute; left: 8%; top: 10%; width: 84%; height: 80%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0,0,0,.7)) drop-shadow(0 2px 3px rgba(0,0,0,.6)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.home-dept:hover .home-dept-media img { transform: translateY(-5px) scale(1.03); }
.home-dept-copy { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2.4vw, 30px); }
.home-dept-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.home-dept-top strong { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 2.6vw, 36px); line-height: 1; text-transform: uppercase; }
.home-dept-top b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--card-mute); white-space: nowrap; }
.home-dept-desc { font-size: 14.5px; line-height: 1.5; color: var(--mute); }
.home-dept-cta { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; align-self: flex-start; min-height: 40px; padding: 0 14px; color: var(--hot); box-shadow: inset 0 0 0 1px var(--hot);
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background .15s, color .15s; }
.home-dept:hover .home-dept-cta { background: var(--hot); color: var(--on-hot); }


/* ---------- studio capabilities in the card language */
.kit-home .caps { gap: 12px; }
.kit-home .cap { position: relative; background: var(--card); border-color: var(--card-edge); }
.kit-home .cap::before { content: ""; position: absolute; left: -1px; top: -1px; width: 10px; height: 10px; background: var(--hot); clip-path: polygon(0 0, 100% 0, 0 100%); }
.kit-home .cap:hover { border-color: #3c3c3c; }

/* Owner-supplied studio artwork: real separate assets, not CSS background placeholders. */
.home-studio .cap { display: flex; flex-direction: column; gap: 12px; padding-top: 0; }
.home-studio .cap-n { position: absolute; z-index: 1; left: 18px; top: 15px; font-family: var(--mono); font-size: 12px; }
.home-studio .cap-media { display: block; position: relative; flex: none; aspect-ratio: 5 / 4; margin: 0 -20px 6px; border-bottom: 1px solid var(--card-line); overflow: hidden; }
.home-studio .cap-illustration { display: block; position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; transition: transform .25s ease; }
.home-studio .cap h3 { font-size: 16px; line-height: 1.3; }
.home-studio .cap p { margin: 0; line-height: 1.55; }
.home-studio .cap-cta { padding-top: 8px; min-height: 44px; }
.home-studio .cap:hover .cap-illustration { transform: translateY(-3px); }
.home-studio .cap:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }
@media (max-width: 1100px) and (min-width: 681px) { .home-studio .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .home-studio .cap-illustration { transition: none; } }

/* ---------- ordering and original wide cat banner */
.home-order { padding: 28px 32px; border: 1px solid var(--card-edge); background: var(--card); }
.home-order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.home-order-head h2 { margin: 0; font-size: 12px; }
.home-order-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-order-steps li, .home-order-steps li:first-child { border-top: 0; padding: 0; grid-template-columns: 28px minmax(0, 1fr); }
.home-order-steps strong { font-size: 16px; }
.kit-home > .home-custom { margin-top: clamp(64px, 8vw, 112px); }
.home-custom-poster { min-height: 322px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.home-custom-poster .poster-copy { gap: 16px; padding: 42px 48px; }
.home-custom-poster .poster-copy h2 { font-size: clamp(32px, 3.8vw, 52px); white-space: nowrap; }
.home-custom-poster .poster-copy .actions { margin-top: 0; }
.home-custom-poster .poster-art { width: 100%; max-width: 500px; }

/* Graphite surfaces use their own text tokens in both page themes. */
.home-studio .cap { color: var(--card-ink); }
.app .home-studio .cap h3 { color: var(--card-ink); }
.home-studio .cap p { color: #b8b5af; }
.home-studio .cap-cta { color: var(--card-ink); }
.app .home-order h2, .home-order .text-link, .home-order-steps strong { color: var(--card-ink); }
.home-order-steps em { color: #b8b5af; }
.home-order-steps li:not(:first-child) { border-color: var(--card-line); }

/* ---------- footer CTA duplicates the restored banner */
body.home .footer-cta { display: none; }

/* ---------- responsive */
@media (max-width: 1100px) {

  .home-dept { grid-template-columns: 1fr; }
  .home-dept-media { aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--card-line); }
}
@media (max-width: 960px) {
  .home-custom-poster .poster-copy { padding: 30px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .home-hero-art { justify-self: stretch; max-width: none; aspect-ratio: 16 / 11; margin-top: 8px; }
}
@media (max-width: 767px) {
  .home-order { padding: 24px; }
  .home-order-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-order-steps li:not(:first-child) { border-top: 1px solid var(--card-line); padding-top: 16px; }
  .home-custom-poster { grid-template-columns: minmax(0, 1fr); }
  .home-custom-poster .poster-copy { padding: 28px 24px; }
  .home-custom-poster .poster-copy h2 { white-space: normal; font-size: clamp(30px, 7vw, 48px); }
  .home-custom-poster .poster-art { justify-self: end; width: min(100%, 440px); margin-top: 6px; }
  .home-hero .hero-copy { gap: 16px; }
  .home-hero .actions { width: 100%; }
  .home-hero .actions .btn { flex: 1 1 auto; }
  .home-trust { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .home-trust li { font-size: 10px; align-items: flex-start; }
  .home-trust li::before { margin-top: 3px; }
  .home-hero-art { aspect-ratio: 4 / 3; }
  .kit-home .section-head { flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; }
  /* clips: swipeable strip */
  .home-reels-row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
  .home-reels-row::-webkit-scrollbar { display: none; }
  .home-reel { flex: 0 0 62%; scroll-snap-align: start; }
  .home-reel-copy strong { font-size: 15px; }
  .home-reel-copy span { font-size: 12px; }
  .home-depts-row { grid-template-columns: 1fr; gap: 8px; }
  .home-dept-media { aspect-ratio: 16 / 9; }

}
