/* Digital Solomon, the portfolio home (solomon-gallery, 2026-11-29). Loaded on the closed-mode home page only.
   All dark: Ink ground, panels #201D19 with #2E2A24 borders, Parchment text, Sand and Stone secondary, Solomon Gold accent
   (hover #E2C46A), Judgment Blue and Cedar as topic colours. 16px card radius, content up to 1240px, works at 360px.
   Every animation here stops under prefers-reduced-motion and under the site's motion control (site.css). */

.folio { --panel: #201D19; --panel-line: #2E2A24; --gold-hi: #E2C46A; }
.folio .wrap { width: min(1240px, 100% - 2 * var(--s3)); }
@media (min-width: 720px) { .folio .wrap { width: min(1240px, 100% - 2 * var(--s4)); } }

/* ---------- hero: the gold network fades into the Ink ground behind the headline ---------- */
.folio-hero { position: relative; overflow: hidden; isolation: isolate; padding: var(--s5) 0; }
@media (min-width: 860px) { .folio-hero { padding: var(--s6) 0; min-height: 560px; } }
.folio-hero__art { position: absolute; inset: 0 0 0 auto; width: 100%; z-index: -1; opacity: 0.45; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 70%); mask-image: linear-gradient(to right, transparent 0%, #000 70%); }
@media (min-width: 860px) { .folio-hero__art { width: 68%; opacity: 0.9;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%); mask-image: linear-gradient(to right, transparent 0%, #000 55%); } }
.net { display: block; width: 100%; height: 100%; }
.net__l { stroke: var(--ds-gold); stroke-opacity: 0.32; stroke-width: 1; }
.net__l--flow { stroke-opacity: 0.6; stroke-dasharray: 4 9; animation: net-flow 6s linear infinite; }
.net__n { fill: var(--ds-gold); transform-box: fill-box; transform-origin: center; animation: net-pulse 4.2s ease-in-out infinite; }
.net__n--1 { animation-delay: -1.05s; }
.net__n--2 { animation-delay: -2.1s; }
.net__n--3 { animation-delay: -3.15s; }
.net__n--hub { fill: var(--gold-hi); }
.net__drift { animation: net-drift 34s ease-in-out infinite alternate; }
@keyframes net-flow { to { stroke-dashoffset: -26; } }
@keyframes net-pulse { 0%, 100% { opacity: 0.45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.5); } }
@keyframes net-drift { from { transform: translate(0, 0); } to { transform: translate(-28px, 18px); } }

.folio-hero__in { position: relative; }
.folio-hero__eyebrow { font: 400 13px/1.4 var(--ds-font-mono); letter-spacing: 0.04em; color: var(--ds-gold); margin: 0 0 var(--s3); }
.folio-hero h1 { max-width: 15ch; margin-bottom: var(--s3); }
.folio-hero__body { max-width: 58ch; font-size: 18px; line-height: 1.6; color: var(--ds-sand); margin: 0 0 var(--s4); }
.folio-hero__btns { display: flex; flex-wrap: wrap; gap: var(--s2); }
.folio .btn { border-radius: 999px; }
.folio .btn:not(.btn--line) { background: var(--ds-gold); border-color: var(--ds-gold); color: var(--ds-ink); }
.folio .btn:not(.btn--line):hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--ds-ink); }
.folio .btn--line { color: var(--ds-parchment); border-color: var(--panel-line); }
.folio .btn--line:hover { border-color: var(--ds-gold); color: var(--ds-parchment); }

.folio-figs { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s3); grid-template-columns: 1fr; max-width: 760px; }
@media (min-width: 560px) { .folio-figs { grid-template-columns: repeat(3, 1fr); } }
.folio-figs li { border-left: 2px solid var(--ds-gold); padding-left: var(--s2); }
.folio-fig__v { display: block; font: 600 clamp(28px, 3.4vw, 40px)/1.1 var(--ds-font-head); color: var(--ds-parchment); }
.folio-fig__l { display: block; font: 400 13px/1.45 var(--ds-font-mono); color: var(--ds-stone); margin-top: 6px; }

/* ---------- sections ---------- */
.folio-sect { padding: var(--s5) 0; border-top: 1px solid var(--panel-line); }
@media (min-width: 860px) { .folio-sect { padding: var(--s6) 0; } }
.folio-sect h2 { margin-bottom: var(--s2); }
.folio-sect__sub { color: var(--ds-stone); max-width: 60ch; margin: 0; }

/* the work: filter chips (hidden until folio.js runs) and cards */
.folio .chips[hidden] { display: none; }
.folio .chip[aria-pressed="true"] { background: var(--ds-gold); color: var(--ds-ink); border-color: var(--ds-gold); }
.wcards { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.wcards > li[hidden] { display: none; }
.wcard { display: flex; flex-direction: column; gap: var(--s1); height: 100%; padding: var(--s3); border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); color: var(--ds-parchment); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
a.wcard:hover, a.wcard:focus-visible { border-color: var(--ds-gold); transform: translateY(-2px); }
.wcard__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s1); flex-wrap: wrap; }
.wcard__kind { font: 400 12px/1.4 var(--ds-font-mono); color: var(--ds-stone); text-transform: uppercase; letter-spacing: 0.06em; }
.wcard__status { font: 500 12px/1 var(--ds-font-body); padding: 6px 10px; border-radius: 999px; border: 1px solid currentColor; }
.wcard__status--oss { color: var(--ds-gold); }
.wcard__status--daily { color: var(--ds-sand); border-color: var(--ds-cedar); background: color-mix(in srgb, var(--ds-cedar) 28%, transparent); }
.wcard__name { font: 600 21px/1.25 var(--ds-font-head); margin-top: var(--s1); overflow-wrap: anywhere; }
.wcard__body { color: var(--ds-sand); line-height: 1.55; }
.wcard__meta { margin-top: auto; padding-top: var(--s1); font: 400 12px/1.4 var(--ds-font-mono); color: var(--ds-stone); }

/* the pattern and the stack line */
.pattern { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pattern li { padding: var(--s3); border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); }
.pattern h3 { color: var(--ds-gold); margin-bottom: var(--s1); }
.pattern p { margin: 0; color: var(--ds-sand); }
.stack { margin: var(--s4) 0 0; font: 400 13px/1.7 var(--ds-font-mono); color: var(--ds-sand); }
.stack__label { color: var(--ds-gold); margin-right: var(--s1); }

/* latest articles */
.arts { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.art { display: flex; flex-direction: column; gap: var(--s1); height: 100%; padding: var(--s3); border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); color: var(--ds-parchment); text-decoration: none; transition: border-color 0.2s; }
.art:hover, .art:focus-visible { border-color: var(--ds-gold); }
.art__topic { font: 400 12px/1.4 var(--ds-font-mono); color: var(--ds-stone); text-transform: uppercase; letter-spacing: 0.06em; }
.art__title { font: 600 19px/1.3 var(--ds-font-head); }
.arts__none { margin: var(--s3) 0 0; color: var(--ds-sand); }
.arts__all { margin: var(--s3) 0 0; }
.arts__all a { color: var(--ds-gold); }
.arts__all a:hover { color: var(--gold-hi); }

/* tech news */
.folio-news { display: grid; gap: var(--s3); align-items: center; padding: var(--s4); border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); }
@media (min-width: 860px) { .folio-news { grid-template-columns: 1fr auto; padding: var(--s5); } }
.folio-news p { margin: var(--s2) 0 0; color: var(--ds-sand); max-width: 62ch; }
.folio-news .btn { justify-self: start; }

/* phones: 360px and up */
@media (max-width: 420px) {
  .folio-hero__btns .btn { flex: 1 1 100%; }
  .folio-news { padding: var(--s3); }
}

/* reduced motion (the system) and the site's motion control (the visitor): the network stands still */
@media (prefers-reduced-motion: reduce) {
  .net__l--flow, .net__n, .net__drift { animation: none; }
  .wcard, .art { transition: none; }
}
html[data-motion="off"] .net__l--flow, html[data-motion="off"] .net__n, html[data-motion="off"] .net__drift { animation: none; }
