/* Home, solutions and about: vignette cards, development table, foundations, founder and places.
   Builds on site.css tokens; loaded only by the pages that use it. */

/* Vignette cards: a small animated isometric scene above a title and a short text. */
.vg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.vg {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.vg:hover { transform: translateY(-4px); border-color: rgba(8, 128, 90, 0.35); box-shadow: 0 22px 44px -26px rgba(7, 18, 15, 0.45); }
.vg-media { position: relative; aspect-ratio: 8 / 5; overflow: hidden; background: radial-gradient(80% 90% at 70% 10%, rgba(66, 211, 156, 0.16), rgba(66, 211, 156, 0) 60%), radial-gradient(60% 70% at 20% 100%, rgba(255, 90, 142, 0.12), rgba(255, 90, 142, 0) 60%), var(--ink-1); }
.vg-media .anim-pic { position: absolute; inset: 0; height: 100%; }
.vg-media::after { content: ''; position: absolute; inset: auto 0 0; height: 28%; background: linear-gradient(to top, rgba(7, 18, 15, 0.35), rgba(7, 18, 15, 0)); pointer-events: none; }
/* Fallback while a scene is not drawn yet: the line icon, lit. */
.vg-media.is-icon { display: grid; place-items: center; }
.vg-media.is-icon svg { width: 76px; height: 76px; color: var(--brand-mint); stroke-width: 1.1; filter: drop-shadow(0 0 18px rgba(66, 211, 156, 0.45)); }
.vg-media.is-icon::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(66, 211, 156, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(66, 211, 156, 0.08) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(circle at 50% 55%, #000 0, transparent 70%); }
.vg-body { display: grid; gap: 8px; padding: 22px 24px 26px; }
.vg-n { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--brand); }
.vg-body h3 { margin: 0; }
.vg-body p { margin: 0; color: var(--fg-2); font-size: 0.95rem; line-height: 1.55; }
.section.paper .vg { background: #fff; }
.section.surface .vg { background: var(--ink-2); }
.section.surface .vg-n { color: var(--brand-mint); }
@media (max-width: 980px) { .vg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .vg-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .vg, .vg:hover { transition: none; transform: none; } }

/* Development: status, purpose, status tag. */
.dev-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.dev-table th, .dev-table td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.dev-table tr:last-child th, .dev-table tr:last-child td { border-bottom: 0; }
.dev-table thead th { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); background: var(--bg-2); position: static; }
.dev-table tbody th { font-weight: 650; font-size: 1.02rem; color: var(--fg); width: 32%; position: static; text-transform: none; letter-spacing: 0; }
.dev-table td { color: var(--fg-2); }
.dev-table td.st { width: 1%; white-space: nowrap; }
@media (max-width: 720px) {
  .dev-table thead { display: none; }
  .dev-table, .dev-table tbody, .dev-table tr, .dev-table th, .dev-table td { display: block; width: auto; }
  .dev-table tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .dev-table tr:last-child { border-bottom: 0; }
  .dev-table th, .dev-table td { padding: 0; border: 0; }
  .dev-table td { margin-top: 6px; }
  .dev-table td.st { margin-top: 10px; }
}

/* About: foundations. */
.found { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); counter-reset: found; }
.found li { position: relative; padding: 28px 26px 8px 0; counter-increment: found; }
.found li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.found li::before { content: counter(found, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 0.8rem; color: var(--brand); margin-bottom: 18px; }
.found h3 { margin: 0 0 8px; }
.found p { margin: 0; color: var(--fg-2); font-size: 0.95rem; }
@media (max-width: 980px) { .found { grid-template-columns: repeat(2, minmax(0, 1fr)); } .found li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 620px) { .found { grid-template-columns: 1fr; } .found li, .found li + li { padding: 22px 0 4px; border-left: 0; border-top: 1px solid var(--line); } .found li:first-child { border-top: 0; } }

/* About: founder block. */
.founder { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); }
.founder .mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; background: var(--ink-1); color: var(--brand-mint); }
.founder .mark svg { width: 30px; height: 30px; }
@media (max-width: 820px) { .founder { grid-template-columns: 1fr; } }

/* About: places. */
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.places figure { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 620px) { .places { grid-template-columns: 1fr; } }

/* Home: home-growing picture with a soft frame. */
.hg-figure .media { border-radius: var(--r-xl); }

/* consent checkbox: box and text on one line (overrides the stacked field label and the 48 px input height) */
.field label.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; margin-bottom: 0; }
.field label.check input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; flex: none; }
