/* KOA Labs — the gallery stylesheet for the home page (T0b, 19-nov-2026).
   Loaded after site.css on the home page only.

   The page is the DARK design (koalabs.ai, rolled back 19-nov): ink bands, periwinkle accent on
   the last word of the h1, Manrope, pill buttons, 24px-radius cards on --panel. This file adds
   the two proof galleries — "Proyectos en marcha" and the services gallery — and the five-second
   hero, WITHOUT changing the rest of the page.

   House rules honoured here: no hardcoded hex outside the brand tokens already in site.css
   (--ink, --panel, --text, --muted, --dim, --line, --accent, --accent-ink, --on-dark,
   --on-dark-muted, --line-dark); no `transition: all`; motion only through the site's
   --motion-short / --motion-medium / --ease-emphasized; every tap target >= 44px; no
   horizontal scroll at 390px; prefers-reduced-motion respected (site.css already zeroes the
   durations, this file adds no animation of its own).

   The screenshots in assets/shots/ are real captures of our own products and sites
   (shots/capture.py). They are ours, so they need no licence credit. */

/* The hero's koala illustration (site.css .hero-art) is wider than the viewport on purpose and
   the hero hides it with overflow:hidden. Without a clip on the root, that overflow extends the
   page's scrollable width when the page gets taller than the hero — which the gallery does.
   `clip` (not `hidden`) does not create a scroll container, so position:sticky keeps working. */
html,body{overflow-x:clip}

/* ─── Hero (a): what we do, one action ─────────────────────────────────────────────── */
/* The hero was already an ink band; this keeps it. The proof (who it is for, the sites we
   already run) moved OUT of the hero into the first section below, because a hero that carries
   three blocks before its actions reads as a page, not as a first screen. */
.hero-proof{
  font-size:15px;color:var(--muted);margin:0 0 10px;
}
.hero-proof strong{color:var(--text);font-weight:500}
/* The proof sites (the ones we already run) are tap targets: min 44px tall (rule #32). They are
   pills, like the family chips above, so the height never breaks the line rhythm. */
.hero-proof ul,
.hero-proof-sites{
  list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px;
}
.hero-proof ul a,
.hero-proof-sites a{
  display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;
  border:1px solid var(--line);font-size:14px;color:var(--text);
  transition:border-color var(--motion-short) var(--ease-emphasized);
}
.hero-proof ul a:hover,
.hero-proof-sites a:hover{border-color:var(--muted)}
.hero-for{
  list-style:none;margin:0 0 18px;padding:0;display:flex;flex-wrap:wrap;gap:8px;
}
.hero-for a{
  display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;
  border:1px solid var(--line);font-size:14px;color:var(--text);transition:border-color var(--motion-short) var(--ease-emphasized);
}
.hero-for a:hover{border-color:var(--muted)}
/* The proof strip sits between the section head and the cards: who it is for, then the sites we
   already run. It is one block, so it reads as one statement. */
.proof-strip{
  margin:0 0 40px;padding:24px 0 0;border-top:1px solid var(--line);
}
.proof-strip .hero-proof{margin-bottom:8px}
.proof-strip .hero-for{margin-bottom:18px}
.hero-shot{margin:0}
.hero-shot .frame{
  border:1px solid var(--line-dark);border-radius:16px;overflow:hidden;background:#0f0f14;
}
.hero-shot img{display:block;width:100%;height:auto}
.hero-shot figcaption{font-size:13.5px;color:var(--on-dark-muted);margin-top:12px}

/* ─── The two galleries ──────────────────────────────────────────────────────────── */
/* Three columns on the desktop, two on the tablet, one on the phone. The project gallery has
   nine cards, so three columns fill three rows exactly — no card left alone on the last row. */
.ggrid{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:minmax(0,1fr);gap:20px;
}
.gcard{
  background:var(--panel);border-radius:24px;padding:16px 16px 24px;
  display:flex;flex-direction:column;min-width:0;
}
.gshot{
  margin:0 0 20px;aspect-ratio:16/10;overflow:hidden;border-radius:14px;background:#e9e8f2;
}
.gshot img{display:block;width:100%;height:100%;object-fit:cover;object-position:top left}
.gcard h3,.gcard h4{font-size:22px;font-weight:400;letter-spacing:-.02em;margin-bottom:8px;min-width:0}
.gcard p{font-size:16px;line-height:1.5;color:var(--muted);margin:0 0 16px;max-width:36ch}
/* The link sits at the bottom of every card, same place in every card (the Floor: one action
   per card, always in the same place). */
.gcard .link{margin-top:auto}
.gcard .gprice{
  font-size:14px;color:var(--muted);margin:auto 0 16px;
  font-family:'Spline Sans Mono',ui-monospace,monospace;
}
/* ─── The portfolio groups (30-nov-2026) ─────────────────────────────────────────────── */
/* One group per honest category (used every day, directories, open-source tools, protocols,
   experiments). The group head is a quiet rule + title + one line, never a banner: the section
   says what state things are in, it does not sell them. The status line sits under the card's
   description in the text colour so it is read, with no badge and no colour of its own. */
.gcat{margin:56px 0 0}
.gcat:first-of-type{margin-top:8px}
.gcat>h3{font-size:26px;font-weight:400;letter-spacing:-.02em;margin:0 0 8px;padding-top:24px;border-top:1px solid var(--line)}
.gcat-lead{font-size:16px;line-height:1.5;color:var(--muted);margin:0 0 24px;max-width:60ch}
.gcard .gstatus{font-size:15px;line-height:1.45;color:var(--text);margin:-8px 0 16px;max-width:36ch}
.gcat-row{display:grid;grid-template-columns:minmax(0,1fr);gap:0 20px;margin-top:56px}
.gcat-row .gcat{margin-top:0}
.gcat-row .ggrid{grid-template-columns:minmax(0,1fr)}
.gcat-row .gcat:not(:first-child){margin-top:48px}
@media (min-width:1024px){
  .gcat-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .gcat-row .gcat:not(:first-child){margin-top:0}
}
.gcat-row .gcat-lead{min-height:3em}
.gchecked{font-size:14px;color:var(--muted);margin:40px 0 0}
/* The last service card takes the whole row (seven cards in three columns would leave one
   alone). Its shot sits on the left and the text on the right, so the row reads as one statement
   instead of a card with a hole next to it. */
.gcard--wide{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.gcard--wide .gshot{margin-bottom:20px}
@media (min-width:1024px){
  .gcard--wide{grid-template-columns:minmax(320px,1fr) minmax(0,1.1fr);gap:0 36px;align-items:start}
  .gcard--wide .gshot{margin-bottom:0;aspect-ratio:16/10}
  .gcard--wide h3{grid-column:2}
  .gcard--wide p{grid-column:2}
  .gcard--wide .gprice{grid-column:2}
  .gcard--wide .after-cards{grid-column:2}
  .gcard--wide .btn{grid-column:2;justify-self:start}
}
/* The "locks" of the footprint service: the do-not-publish list, as a checklist with a square
   marker (the accent, not an emoji). */
.locks{list-style:none;margin:0 0 16px;padding:0;font-size:15px;line-height:1.45;color:var(--text)}
.locks li{position:relative;padding-left:22px;margin:0 0 6px}
.locks li::before{
  content:'';position:absolute;left:0;top:.42em;width:9px;height:9px;
  border:2px solid var(--accent-ink);border-radius:2px;
}
/* A shot that comes from a mock says so, in the open: a drawing is not a screenshot of work we
   already run, and the visitor must not read it as one. */
.gexample{
  font-size:13.5px;color:var(--muted);margin:0 0 16px;padding-left:22px;position:relative;
  font-family:'Spline Sans Mono',ui-monospace,monospace;
}
.gexample::before{
  content:'';position:absolute;left:0;top:.42em;width:9px;height:9px;
  border:2px solid var(--muted);border-radius:2px;
}
.gall{margin:32px 0 0}

/* ─── Section spacing for the two gallery sections ───────────────────────────────── */
/* The gallery sections follow the site's rhythm (128px desktop) but the head is tighter,
   because the cards below carry the weight. */
#projects .head,#services .head{margin-bottom:48px}
#projects .lead-ink,#services .lead-ink{font-size:18px;color:var(--muted);max-width:52ch}

/* ─── Responsive ────────────────────────────────────────────────────────────────── */
/* Mobile first: one column of cards, 16px radius-free spacing, tap targets >= 44px. */
@media (min-width:640px){
  .ggrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .gcard{padding:14px 14px 20px;border-radius:20px}
  .gshot{margin-bottom:16px;border-radius:12px}
  .gcard h3,.gcard h4{font-size:20px}
}
@media (min-width:1024px){
  .ggrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  .gcard{padding:16px 16px 24px;border-radius:24px}
  .gshot{margin-bottom:20px;border-radius:14px}
  .gcard h3,.gcard h4{font-size:22px}
}
@media (max-width:639px){
  #projects .head,#services .head{margin-bottom:36px}
  .proof-strip{margin-bottom:28px}
  .hero-proof{font-size:14px}
  .hero-for a{min-height:44px;padding:0 16px;font-size:13.5px}
  .hero-proof ul a,.hero-proof-sites a{min-height:44px;padding:0 16px;font-size:13.5px}
}

/* 30-nov-2026 narrative: kinds index, problem block, three-step row, plan list on a light band, closing call */
.kinds{margin:8px 0 8px}
.kinds ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.kinds .chip-link{display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border-radius:999px;border:1px solid var(--line);font-size:16px;color:var(--text);text-decoration:none}
.kinds .chip-link:hover,.kinds .chip-link:focus-visible{border-color:var(--text)}
.problem{margin:56px auto 0;max-width:68ch;padding-top:28px;border-top:1px solid var(--line)}
.problem h3{font-size:15px;font-weight:600;letter-spacing:.02em;margin:0 0 10px}
.problem p{font-size:20px;line-height:1.5;margin:0}
.steps--3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.steps--3{grid-template-columns:minmax(0,1fr);row-gap:40px}}
.own-h{font-size:22px;font-weight:400;letter-spacing:-.02em;margin:96px 0 0}
.own-h+.own{margin-top:24px;border-top:1px solid var(--line)}
.tint .own strong{color:var(--text)}
.tint .own span{color:var(--muted)}
.next{padding:96px 0}
.next .label{margin-bottom:12px}
.next h2{margin-bottom:16px}
.next .lead-ink{max-width:56ch;margin-bottom:32px}
.gcat .gcard .btn{margin-top:auto;align-self:flex-start}
