/* The home, R2 (B-DESIGN-R2): the hero slot, "what it solves" rows and the two-layer diagram. Tokens only; no inline CSS; logical properties. The default state is the finished drawing;
   every motion is CSS inside prefers-reduced-motion: no-preference (scroll-driven where the browser supports animation-timeline, otherwise it simply is). */

/* the hero: text and an empty slot for the Vitruvian-Man motion piece (session 0104). The slot shows only its crop marks. */
#hero .hero-sheet { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--vit-space-6); align-items: center; min-height: 340px; }
#hero h1 { margin: 0 0 var(--vit-space-4); font-size: clamp(36px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.02em; }
#hero .lead { margin: 0 0 var(--vit-space-6); font-size: clamp(20px, 2.4vw, 28px); color: var(--vit-ink-2); }
#hero .zone-ctas { display: flex; flex-wrap: wrap; gap: var(--vit-space-5); align-items: center; margin: 0; }
@media (max-width: 820px) { #hero .hero-sheet { grid-template-columns: 1fr; min-height: 0; } .hero-slot { order: -1; } }

/* the tools: the groups and cards (kit.css) under an open heading */
#grid .fg-title { font-size: 15px; font-weight: 700; margin-bottom: var(--vit-space-4); }
#grid .featuregrid { gap: var(--vit-space-7); }

/* what it solves: one row per tool, a hairline between rows */
.solve { list-style: none; margin: 0; padding: 0; }
.solve-row { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: var(--vit-space-6); max-width: none; padding-block: var(--vit-space-5); border-bottom: 1px solid var(--vit-line-default); }
.solve-row:first-child { padding-top: 0; }
.sr-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--vit-space-2) var(--vit-space-3); align-content: start; }
.sr-tool { margin: 0; font-size: 22px; line-height: 1.2; }
.sr-tool a { color: var(--vit-ink); text-decoration: none; background: linear-gradient(var(--vit-clay), var(--vit-clay)) 0 100% / 0 2px no-repeat; transition: background-size .25s ease; }
.sr-tool a:hover { background-size: 100% 2px; }
.sr-tag { font-size: 12px; color: var(--vit-ink-2); border: 1px solid var(--vit-line-strong); padding: 0 var(--vit-space-2); }
.sr-problem { margin: 0 0 var(--vit-space-2); font-size: 18px; font-weight: 500; color: var(--vit-ink); }
.sr-text { margin: 0; color: var(--vit-ink-2); max-width: 62ch; }
.sr-body .gplate { margin-top: var(--vit-space-5); }
@media (max-width: 760px) { .solve-row { grid-template-columns: 1fr; gap: var(--vit-space-2); } }

/* the two layers: base = an ink sheet; AI = an offset tracing-paper overlay with a clay dimension line between the two */
.layers { display: grid; gap: var(--vit-space-4); }
.ly-head, .ly-row { display: grid; grid-template-columns: minmax(150px, 200px) minmax(0, 1fr) 56px minmax(0, 1fr); align-items: stretch; column-gap: 0; }
.ly-head { align-items: end; font-weight: 700; font-size: 14px; padding-bottom: var(--vit-space-1); }
.ly-head span { display: flex; align-items: baseline; gap: var(--vit-space-2); }
.ly-head .ly-h-ai { grid-column: 4; }
.ly-head .ly-h-base { grid-column: 2; }
.ly-head em { font-style: normal; font-size: 10.5px; color: var(--vit-ink-3); }
.ly-tool { align-self: center; margin: 0; padding-inline-end: var(--vit-space-4); font-size: 18px; }
.ly-base, .ly-ai { margin: 0; padding: var(--vit-space-3) var(--vit-space-4); font-size: 15px; line-height: 1.45; }
.ly-base { grid-column: 2; border: 1.5px solid var(--vit-ink); background: var(--vit-paper); }
.ly-ai { grid-column: 4; position: relative; border: 1px dashed var(--vit-clay-ink); background: color-mix(in srgb, var(--vit-paper-2) 70%, transparent); transform: translate(-6px, -6px); box-shadow: 6px 6px 0 -5px var(--vit-clay); color: var(--vit-ink-2); }
html[dir="ltr"] .ly-ai { transform: translate(6px, -6px); box-shadow: -6px 6px 0 -5px var(--vit-clay); }
.ly-dim { grid-column: 3; align-self: center; height: 11px; margin-inline: var(--vit-space-1); direction: ltr; transform-origin: left center;
  background: linear-gradient(var(--vit-clay-ink), var(--vit-clay-ink)) center / 100% 1px no-repeat, linear-gradient(var(--vit-clay-ink), var(--vit-clay-ink)) left center / 1px 100% no-repeat, linear-gradient(var(--vit-clay-ink), var(--vit-clay-ink)) right center / 1px 100% no-repeat; }
.ly-lab { display: none; }
.layers-note { margin: var(--vit-space-5) 0 0; font-size: 15px; color: var(--vit-ink-2); }
@media (max-width: 760px) {
  .ly-head { grid-template-columns: 1fr 1fr; column-gap: var(--vit-space-4); padding-bottom: 0; }
  .ly-head .ly-h-base, .ly-head .ly-h-ai { grid-column: auto; }
  .ly-head em { display: none; }
  .ly-row { grid-template-columns: 1fr 1fr; column-gap: var(--vit-space-4); row-gap: var(--vit-space-2); padding-block: var(--vit-space-3); border-top: 1px solid var(--vit-line-default); }
  .ly-tool { grid-column: 1 / -1; padding: 0; }
  .ly-base { grid-column: 1; } .ly-ai { grid-column: 2; transform: none; box-shadow: none; }
  .ly-dim { display: none; }
  .ly-lab { display: block; margin-bottom: var(--vit-space-1); font: 500 10.5px/1 var(--vit-f-mono); letter-spacing: .06em; color: var(--vit-ink-3); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ly-ai { animation: ly-slide linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
    .ly-dim { animation: ly-grow linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
  }
}
@keyframes ly-slide { from { opacity: .2; transform: translateY(-26px); } }   /* review 13: vertical only; a sideways start offset put the AI boxes outside the column (and past the viewport on phones) */
@keyframes ly-grow { from { transform: scaleX(0); } }
