/* ==========================================================================
   KARADIGM - components.css
   Reusable UI parts. Theme-agnostic: every colour/size comes from a token in
   tokens.css (dark) or tokens-light.css (light), so this file is shared by
   both themes unchanged.

   HOW THIS FILE IS ORGANISED
   Sections are ordered roughly to follow the page itself (prose → components →
   forms → media → footer). Each section opens with a big banner; sub-parts use
   smaller dashed dividers. Anything that needs JavaScript says so in its banner.

   TABLE OF CONTENTS
     01  SHARED UTILITIES      .section-label .sub-label .stack .btn-row
     02  PROSE                 .lead .dropcap .text-cols-2 .text-cols-3
     03  META ROW              .meta-row
     04  BUTTONS               .btn (+ all modifiers, groups, showcase)
     05  BADGES & TAGS         .badge .tag
     06  CALLOUTS              .callout
     07  ACCORDION             .accordion  (native <details>, no JS)
     08  CARDS                 .card
     09  FORM CONTROLS         .controls .switch  (pure CSS, no JS)
     10  IMAGES                .featured-image .img-link .wrap-*  (Fancybox)
     11  GALLERY · VARIANT A   .gallery       (needs js/main.js)
     12  GALLERY · VARIANT B   .gallery-strip (needs js/main.js)
     13  GALLERY CAPTIONS      .gallery-caption
     14  FOOTER                .form .contact-list .social
     15  ERROR PAGE            .error  (404 / standalone error layout, no JS)
     16  COOKIE CONSENT        .cookie-consent  (optional · needs js/main.js)
   ========================================================================== */


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   01 · SHARED UTILITIES
   Small building blocks reused across many sections.
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */

/* eyebrow over each section - same treatment as the footer "Get in touch" */
.section-label {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--acc);
}
/* quieter secondary label (used inside showcases) */
.sub-label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--fg1);
}
/* layout helpers */
.stack   { display: flex; flex-direction: column; gap: var(--sp-4); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   02 · PROSE
   Decorative reading touches. (Body/headings/lists/etc. live in base.css.)
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */

/* leading paragraph - larger & stronger than body; sets the tone */
.lead {
  font-size: 1.35rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--fg0);
}
/* large decorative initial - put .dropcap on the opening paragraph.
   NOTE: the .dropcap paragraph is exempt from the first-line indent in base.css */
.dropcap::first-letter {
  float: left;
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 4.6em;
  line-height: 0.72;
  padding-top: 0.04em;
  margin: 0 0.1em 0 0;
  color: var(--acc);
}

/* ---- multi-column running text (newspaper style) ----
   Wrap several <p> in .text-cols-2 / .text-cols-3. Columns reflow to fewer
   tracks as the viewport narrows so lines never get too short to read. */
.text-cols-2,
.text-cols-3 { column-gap: var(--sp-12); }
.text-cols-2 { columns: 2; }
.text-cols-3 { columns: 3; column-gap: var(--sp-8); }
.text-cols-2 p,
.text-cols-3 p { text-indent: 0; }            /* flush; paragraphs split by margin */
.text-cols-2 p + p,
.text-cols-3 p + p { margin-top: var(--sp-4); }
/* Two columns stay as columns even on a phone - each track is still wide enough.
   Three columns would get too narrow to read, so they collapse to one below 640px. */
@media (max-width: 640px) { .text-cols-3 { columns: 1; } }

/* ---- pull quote (editorial, borderless - distinct from <blockquote>) ----
   Big set-apart line with an oversized opening quotation mark in the gutter. */
.pullquote {
  position: relative;
  margin: 0;
  padding-left: var(--sp-12);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  color: var(--fg0);
  text-wrap: balance;
}
.pullquote::before {
  content: "\201C";                 /* oversized opening quote */
  position: absolute;
  left: 0;
  top: -0.22em;
  font-size: 3.2em;
  line-height: 1;
  color: var(--acc);
  opacity: 0.45;
}
.pullquote cite {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--font-text);
  font-size: var(--fs-small);
  font-weight: 400;
  font-style: normal;
  color: var(--fg1);
  opacity: 0.8;
}


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   03 · META ROW
   Small icon + text pairs (date, read time, author, category…).
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-6);
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--fg1);
}
.meta-row span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.meta-row svg { width: 16px; height: 16px; color: var(--acc); flex: none; }


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   04 · BUTTONS
   Base .btn + every modifier, the segmented group, and the showcase grid.
   No JS. (.btn-group .btn.is-active is set in the demo markup; wire a click
   handler if you want it interactive.)
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */

/* ---- base ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  padding: var(--sp-4) var(--sp-8);
  border: none;
  border-radius: var(--radius);
  /* soft filled plate instead of a hard outline */
  background-color: color-mix(in srgb, var(--acc) 16%, transparent);
  color: var(--fg0);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
}
.btn:hover {
  background-color: color-mix(in srgb, var(--acc) 30%, transparent);
  color: var(--fg0);
}
.btn .icon { width: 16px; height: 16px; }
.btn:disabled,
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ---- variants ---- */
/* muted / secondary (e.g. Clear) - neutral, no accent */
.btn--muted {
  background-color: color-mix(in srgb, var(--fg0) 6%, transparent);
  color: var(--fg1);
}
.btn--muted:hover {
  background-color: color-mix(in srgb, var(--fg0) 11%, transparent);
  color: var(--fg0);
}
/* ghost - text only until hover */
.btn--ghost {
  background-color: transparent;
  color: var(--fg1);
}
.btn--ghost:hover {
  background-color: color-mix(in srgb, var(--fg0) 6%, transparent);
  color: var(--fg0);
}
/* outline - soft accent border, fills lightly on hover */
.btn--outline {
  background-color: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 55%, transparent);
}
.btn--outline:hover {
  background-color: color-mix(in srgb, var(--acc) 14%, transparent);
  box-shadow: inset 0 0 0 1px var(--acc);
}
/* semantic - just swap the local accent token */
.btn--info    { --acc: var(--acc-blue); }
.btn--success { --acc: var(--acc-green); }
.btn--danger  { --acc: var(--acc-red); }

/* ---- sizes ---- */
.btn--sm    { padding: var(--sp-2) var(--sp-4);  font-size: 0.85rem; }
.btn--lg    { padding: var(--sp-4) var(--sp-12); font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }
.btn--icon  { padding: var(--sp-3); }          /* square, icon-only */

/* ---- segmented group ---- */
.btn-group {
  display: inline-flex;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: color-mix(in srgb, var(--fg0) 5%, transparent);
}
.btn-group .btn {
  border-radius: 0;
  background-color: transparent;
  color: var(--fg1);
}
.btn-group .btn:hover { color: var(--fg0); background-color: color-mix(in srgb, var(--fg0) 6%, transparent); }
.btn-group .btn.is-active { background-color: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--fg0); }

/* ---- showcase grid (label | controls) ---- */
.btn-showcase {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--sp-6) var(--sp-8);
  align-items: center;
}
.btn-showcase > .sub-label { margin: 0; }
@media (max-width: 640px) {
  .btn-showcase { grid-template-columns: 1fr; gap: var(--sp-3); }
  .btn-showcase > .sub-label { margin-top: var(--sp-4); }
}


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   05 · BADGES & TAGS
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius);
  background-color: color-mix(in srgb, var(--acc) 16%, transparent);
  color: var(--fg0);
}
.badge--blue  { --acc: var(--acc-blue); }
.badge--green { --acc: var(--acc-green); }
.badge--red   { --acc: var(--acc-red); }
.badge--muted { background-color: color-mix(in srgb, var(--fg0) 8%, transparent); color: var(--fg1); }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--acc);
  background-color: color-mix(in srgb, var(--acc) 12%, transparent);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.tag:hover {
  background-color: color-mix(in srgb, var(--acc) 22%, transparent);
  color: var(--acc);
}
.tag-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---- stats (key figures at a glance) ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--sp-4);
}
.stat {
  padding: var(--sp-4);
  border-radius: var(--radius);
  background-color: color-mix(in srgb, var(--fg0) 4%, transparent);
}
.stat__num {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--fg0);
}
.stat__num span { color: var(--acc); }    /* unit / suffix */
.stat__label {
  margin-top: var(--sp-2);
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg1);
}

/* ---- labelled bar row (wraps a native <progress>/<meter>) ---- */
.bar { display: grid; gap: var(--sp-2); }
.bar > .bar__label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--fg1);
}

/* ---- swatches (palette chips - render the live theme tokens) ----
   Modifier classes pull straight from the tokens, so the swatches re-skin with
   the theme (dark ↔ light) automatically. */
.swatches { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--fg1);
}
.swatch__chip {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.swatch__chip--bg      { background-color: var(--bg0); }
.swatch__chip--surface { background-color: var(--bg1); }
.swatch__chip--fg      { background-color: var(--fg0); }
.swatch__chip--neutral { background-color: var(--acc-neutral); }
.swatch__chip--blue    { background-color: var(--acc-blue); }
.swatch__chip--green   { background-color: var(--acc-green); }
.swatch__chip--red     { background-color: var(--acc-red); }


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   06 · CALLOUTS / ADMONITIONS
   Variant = which accent token is in play (note/info=blue, tip/success=green,
   warning/danger=red, important/quote=neutral).
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */
.callout {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  border-left: 3px solid var(--acc);
  border-radius: var(--radius);
  background-color: color-mix(in srgb, var(--acc) 6%, transparent);
}
.callout--note      { --acc: var(--acc-blue); }
.callout--info      { --acc: var(--acc-blue); }
.callout--tip       { --acc: var(--acc-green); }
.callout--success   { --acc: var(--acc-green); }
.callout--warning   { --acc: var(--acc-red); }
.callout--danger    { --acc: var(--acc-red); }
.callout--important { --acc: var(--acc-neutral); }
.callout--quote     { --acc: var(--acc-neutral); }
.callout__icon { flex: none; width: 20px; height: 20px; color: var(--acc); margin-top: 2px; }
.callout__title {
  font-family: var(--font-ui);
  font-weight: 700;
  margin-bottom: var(--sp-1);
  color: var(--fg0);
}
.callout__body { color: var(--fg1); }


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   07 · ACCORDION
   Native <details>/<summary> - NO JavaScript. The +/− marker flips on [open].
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */
.accordion details {
  background-color: color-mix(in srgb, var(--fg0) 4%, transparent);
  border-radius: var(--radius);
  padding: 0 var(--sp-4);
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  font-family: var(--font-ui);
  font-weight: 600;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  color: var(--acc);
  font-size: 1.3em;
  line-height: 1;
}
.accordion details[open] summary::after { content: "\2212"; }   /* minus */
.accordion .accordion__body {
  padding-bottom: var(--sp-4);
  color: var(--fg1);
}


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   08 · CARDS
   Auto-fitting grid (minmax handles the collapse - no breakpoint needed).
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
}
.card {
  display: flex;
  flex-direction: column;
  background-color: color-mix(in srgb, var(--fg0) 4%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background-color var(--transition);
}
.card:hover { background-color: color-mix(in srgb, var(--fg0) 7%, transparent); }
.card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  flex: 1;
}
.card__title { font-family: var(--font-ui); font-weight: 700; }
.card__text { color: var(--fg1); font-size: var(--fs-small); }
.card__body .btn { margin-top: var(--sp-2); align-self: flex-start; }


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   09 · FORM CONTROLS  (showcase, scoped to .controls)
   Custom-styled checkbox / radio / switch / range / select / file. Pure CSS,
   NO JavaScript - native inputs drive every state.
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */
.controls { display: flex; flex-direction: column; gap: var(--sp-6); }
.controls .field { display: flex; flex-direction: column; gap: var(--sp-2); }
.controls .field > label:not(.check):not(.switch) {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--fg1);
}

/* text-like inputs + select */
.controls input[type="text"],
.controls input[type="email"],
.controls select,
.controls textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  color: var(--fg0);
  background-color: color-mix(in srgb, var(--fg0) 5%, transparent);
  border: none;
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
}
.controls input:focus,
.controls select:focus,
.controls textarea:focus {
  outline: none;
  background-color: color-mix(in srgb, var(--fg0) 8%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent);
}

/* select: custom chevron */
.controls select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 18px;
  padding-right: var(--sp-12);
}

/* checkbox + radio */
.controls .check { display: flex; align-items: center; gap: var(--sp-3); cursor: pointer; }
.controls input[type="checkbox"],
.controls input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  background-color: transparent;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}
.controls input[type="checkbox"] { border-radius: var(--radius-sm); }
.controls input[type="radio"] { border-radius: 50%; }
.controls input[type="checkbox"]:checked,
.controls input[type="radio"]:checked {
  background-color: var(--acc);
  border-color: var(--acc);
}
.controls input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7e7e7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 72%;
}
.controls input[type="radio"]:checked { box-shadow: inset 0 0 0 4px var(--bg0); }

/* toggle / switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: var(--sp-3); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--fg0) 12%, transparent);
  transition: background-color var(--transition);
  flex: none;
}
.switch .slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--fg0);
  transition: transform var(--transition);
}
.switch input:checked + .slider { background-color: var(--acc); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* range slider */
.controls input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--fg0) 12%, transparent);
}
.controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--acc);
  cursor: pointer;
}
.controls input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background-color: var(--acc);
  cursor: pointer;
}

/* file input */
.controls input[type="file"] {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--fg1);
}
.controls input[type="file"]::file-selector-button {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 700;
  margin-right: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  border: none;
  border-radius: var(--radius);
  background-color: color-mix(in srgb, var(--fg0) 6%, transparent);
  color: var(--fg0);
  cursor: pointer;
  transition: background-color var(--transition);
}
.controls input[type="file"]::file-selector-button:hover {
  background-color: color-mix(in srgb, var(--fg0) 11%, transparent);
}


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   10 · IMAGES  (featured / in-text zoom / text-wrap)
   JS: featured + .img-link images open full-size via the [data-fancybox] bind
   in js/main.js (group "content"). Text-wrap floats are pure CSS.
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */

/* featured (lead) image - cropped to a banner so tall sources don't dominate */
.featured-image { margin-top: var(--sp-8); }
.featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* zoomable in-text image - click opens the full size in Fancybox */
.img-link {
  display: block;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}
.img-link:hover { background: none; }       /* cancel the global link-invert hover */
.img-link img { transition: transform 0.4s ease, filter 0.3s ease; }
.img-link:hover img { transform: scale(1.03); filter: brightness(1.05); }

/* text wrap (float) */
.wrap-left,
.wrap-right { width: 280px; max-width: 45%; }
.wrap-right { float: right; margin: var(--sp-1) 0 var(--sp-4) var(--sp-6); }
.wrap-left  { float: left;  margin: var(--sp-1) var(--sp-6) var(--sp-4) 0; }
.clear { clear: both; }
/* once the column gets narrow, floats go full-width */
@media (max-width: 560px) {
  .wrap-left,
  .wrap-right { float: none; width: 100%; max-width: 100%; margin: var(--sp-4) 0; }
}


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   11 · GALLERY · VARIANT A  (side-list slider)
   A scrolling list of labelled thumbnails (left) + a big stage image (right)
   with overlaid title/description. A faint "previous" image bleeds behind the
   list; a sliver of the "next" image peeks on the right.

   ⚙ NEEDS js/main.js → ".gallery" block:
     • clicking a .gallery__item toggles .is-active and swaps .gallery__stage-img
     • fills .gallery__overlay-title / -desc from the item's data-* attributes
     • sets .gallery__aside-bg (previous) & .gallery__peek (next) backgrounds
     • stage / .gallery__expand → Fancybox carousel
   The list height is capped by .gallery's fixed height → it scrolls inside.
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */
.gallery {
  display: flex;
  align-items: stretch;
  max-width: var(--content-width);
  height: clamp(420px, 52vh, 560px);   /* fixed frame → the list scrolls inside */
  margin-inline: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 50%, transparent);
}

/* ---- left aside: thumbnail list over a "previous image" bleed ---- */
.gallery__aside {
  position: relative;
  flex: 0 0 clamp(230px, 32%, 360px);
  overflow: hidden;
  background-color: var(--bg1);
}
.gallery__aside-bg {            /* JS sets background-image = previous slide */
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
}
.gallery__aside-bg::after {
  /* scrim fades to the right: strong behind the text, light over the exposed
     strip so the image reads clearly and bleeds past the thumbnails */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--bg1) 78%, transparent) 0%,
    color-mix(in srgb, var(--bg1) 74%, transparent) 52%,
    color-mix(in srgb, var(--bg1) 28%, transparent) 100%
  );
}

/* ---- list (scrolls; scrollbar hidden) ---- */
.gallery__list {
  position: relative;
  z-index: 1;                /* above the bleed */
  height: 100%;
  list-style: none;
  margin: 0;
  /* right padding leaves a strip where only the image shows (ends past the thumbs) */
  padding: 0 clamp(28px, 5%, 56px) 0 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: transparent;
  /* scrollable, but hide the scrollbar */
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* legacy Edge */
}
.gallery__list::-webkit-scrollbar { width: 0; height: 0; display: none; }   /* WebKit */
.gallery__list li { margin: 0; padding: 0; }
.gallery__list li::before { content: none; display: none; }   /* kill global list bullet */

/* ---- list item (button) ---- */
.gallery__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  flex: 0 0 auto;             /* fixed-height rows → list scrolls past them */
  min-height: 72px;
  padding: var(--sp-3) var(--sp-4);
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 16%, transparent);
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--fg1);
  transition: background-color var(--transition), color var(--transition);
}
.gallery__item:last-child { border-bottom: none; }
.gallery__item:hover { background-color: color-mix(in srgb, var(--fg0) 6%, transparent); }
.gallery__item-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  opacity: 0.88;
  filter: grayscale(0.3);
  transition: opacity var(--transition), filter var(--transition);
}
.gallery__item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gallery__item-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg1);
  opacity: 0.65;
}
.gallery__item-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* active item (.is-active toggled by JS): lighter panel + accent edge */
.gallery__item.is-active {
  background-color: color-mix(in srgb, var(--fg0) 9%, transparent);
  color: var(--fg0);
}
.gallery__item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--acc);
}
.gallery__item.is-active .gallery__item-thumb { filter: grayscale(0); opacity: 1; }
.gallery__item:hover .gallery__item-thumb { opacity: 1; }

/* ---- right stage (the big image) ---- */
.gallery__stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  background-color: var(--bg2);
  cursor: zoom-in;
}
.gallery__stage-img {           /* JS swaps src on select */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__stage:hover .gallery__stage-img { transform: scale(1.03); }

/* title + description overlaid on a soft bottom gradient (JS fills the text) */
.gallery__overlay {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--sp-24) var(--sp-8) var(--sp-6);
  pointer-events: none;
  color: #fff;
  background: linear-gradient(0deg, color-mix(in srgb, #000 72%, transparent), transparent);
}
.gallery__overlay-title {
  display: block;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.gallery__overlay-desc {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 54ch;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* expand button (bottom-right) - bubbles its click up to the stage → Fancybox */
.gallery__expand {
  position: absolute;
  z-index: 3;
  right: var(--sp-4);
  bottom: var(--sp-4);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  background-color: color-mix(in srgb, #000 35%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity var(--transition), background-color var(--transition);
}
.gallery__expand:hover { opacity: 1; background-color: color-mix(in srgb, #000 55%, transparent); }
.gallery__expand svg { width: 20px; height: 20px; }

/* ---- right peek: sliver of the NEXT image (JS sets bg; click advances) ---- */
.gallery__peek {
  flex: 0 0 clamp(26px, 5%, 72px);
  position: relative;
  padding: 0;
  border: none;
  background-color: var(--bg2);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  filter: brightness(0.7);
  transition: filter var(--transition), flex-basis var(--transition);
}
.gallery__peek:hover { filter: brightness(0.95); }
.gallery__peek::before {          /* soft shadow on its left edge → reads as "behind" */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent);
}

/* phone: stack - stage on top, list below (capped height, scrolls in itself) */
@media (max-width: 700px) {
  .gallery { flex-direction: column; height: auto; }
  .gallery__stage { order: -1; aspect-ratio: 16 / 9; flex: none; }
  .gallery__aside { flex-basis: auto; }
  .gallery__list {
    max-height: 260px;          /* don't run miles down the screen */
    overflow-y: auto;
  }
  .gallery__peek { display: none; }   /* no room for a side sliver when stacked */
}


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   12 · GALLERY · VARIANT B  (strip)
   Big stage + centered thumbnail row, with tall side arrows in the gutters.
   Fully namespaced (.gallery-strip__*) so it coexists with Variant A.

   ⚙ NEEDS js/main.js → ".gallery-strip" block:
     • clicking a .gallery-strip__thumb toggles .is-active + swaps the stage img
     • fills .gallery-strip__caption / __count
     • .gallery-strip__nav--prev / --next step the selection
     • stage → Fancybox carousel
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */
.gallery-strip {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 960px;
  margin-inline: auto;
}
.gallery-strip__viewer {
  display: flex;
  align-items: stretch;
  gap: var(--sp-2);
}
.gallery-strip__stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 55%, transparent);
}
.gallery-strip__main {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  padding: 0;
  background: none;
  cursor: zoom-in;
}
.gallery-strip__main:hover { background: none; }
.gallery-strip__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-strip__main:hover .gallery-strip__main-img { transform: scale(1.03); filter: brightness(1.05); }

/* ---- tall slim side arrows (in the gutters) ---- */
.gallery-strip__nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(32px, 5vw, 64px);
  padding: 0;
  border: none;
  background: none;
  color: var(--fg0);
  cursor: pointer;
  opacity: 0.22;
  transition: opacity var(--transition);
}
.gallery-strip__nav:hover { opacity: 0.6; }
.gallery-strip__nav svg { width: auto; height: clamp(100px, 42%, 220px); }

/* ---- caption + counter overlay ---- */
.gallery-strip__bar {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-16) var(--sp-6) var(--sp-4);
  pointer-events: none;
  color: #fff;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  background: linear-gradient(0deg, color-mix(in srgb, #000 62%, transparent), transparent);
}
.gallery-strip__caption {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.gallery-strip__count {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.gallery-strip__count b { color: #fff; font-weight: 700; }

/* ---- expand hint (top-right) ---- */
.gallery-strip__zoom {
  position: absolute;
  z-index: 4;
  right: var(--sp-3);
  top: var(--sp-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: #fff;
  background-color: color-mix(in srgb, #000 45%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
}
.gallery-strip__main:hover .gallery-strip__zoom,
.gallery-strip__main:focus-visible .gallery-strip__zoom { opacity: 1; transform: translateY(0); }
.gallery-strip__zoom svg { width: 20px; height: 20px; }

/* ---- centered thumbnail row ---- */
.gallery-strip__thumbs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}
.gallery-strip__thumbs li { margin: 0; padding: 0; }
/* .site-main prefix → beats the global list-bullet rule's specificity */
.site-main .gallery-strip__thumbs li::before { content: none; display: none; }
.gallery-strip__thumb {
  display: block;
  width: 78px;
  padding: 0;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  opacity: 0.45;
  filter: grayscale(0.35);
  box-shadow: inset 0 0 0 0 var(--acc);
  transition: opacity var(--transition), filter var(--transition), box-shadow var(--transition);
}
.gallery-strip__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-strip__thumb:hover { opacity: 0.8; filter: grayscale(0); }
.gallery-strip__thumb.is-active {       /* .is-active toggled by JS */
  opacity: 1;
  filter: grayscale(0);
  box-shadow: inset 0 0 0 2px var(--acc);
}
@media (max-width: 640px) {
  .gallery-strip__thumb { width: 60px; }
  .gallery-strip__zoom { opacity: 1; transform: none; }   /* touch: always visible */
}


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   12c · GALLERY · VARIANT C  (carousel)   ⚙ js/main.js → 12 (prev/next/dots
   slide .carousel__track). One slide at a time, soft transform, gentle autoplay.
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */
.carousel { position: relative; max-width: 820px; margin-inline: auto; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius); }
.carousel__track { display: flex; transition: transform 0.5s ease; }
.carousel__slide { flex: 0 0 100%; }
.carousel__slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.carousel__cap { padding: var(--sp-8); text-align: center; background-color: var(--bg1); }
.carousel__cap h3 { margin-bottom: var(--sp-2); }
.carousel__cap p { color: var(--fg1); }
.carousel__nav {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--fg0);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity var(--transition);
}
.carousel__nav:hover { opacity: 1; }
.carousel__nav svg { width: 28px; height: 64px; }
.carousel__nav--prev { left: calc(-1 * var(--sp-16)); }
.carousel__nav--next { right: calc(-1 * var(--sp-16)); }
.carousel__dots { display: flex; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-6); }
.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background-color: color-mix(in srgb, var(--fg0) 25%, transparent);
}
.carousel__dot.is-active { background-color: var(--acc); }
/* on narrow screens pull the arrows inside the frame */
@media (max-width: 960px) {
  .carousel__nav--prev { left: var(--sp-1); }
  .carousel__nav--next { right: var(--sp-1); }
  .carousel__nav { background-color: color-mix(in srgb, var(--bg0) 55%, transparent); border-radius: var(--radius-sm); }
}


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   13 · GALLERY CAPTIONS
   Caption under each gallery variant: tight to its own gallery, big gap before
   the next variant (adjacent-sibling rule).
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */
.gallery-caption {
  margin-top: var(--sp-4);
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-style: italic;
  text-align: center;
  color: var(--fg1);
  opacity: 0.8;
}
.gallery-caption + .gallery,
.gallery-caption + .gallery-strip { margin-top: var(--section-gap); }

/* the gallery variants stack vertically, each with its own caption.
   min-width:0 lets the grid items shrink below their content's intrinsic
   width - without it the galleries refuse to narrow on small screens. */
.gallery-pair { display: grid; gap: var(--section-gap); }
.gallery-pair > * { min-width: 0; }


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   14 · FOOTER  (contact form / contact list / social)
   Markup lives in each page's <footer>. The form is a static demo - no submit
   handler is wired. Layout of the footer grid itself is in layout.css.
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */

/* ---- contact form ---- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  height: 100%;
}
/* textarea fills the remaining height → form matches the info column */
.form textarea { flex: 1 1 auto; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}
.form input,
.form textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  color: var(--fg0);
  /* borderless: soft filled field, no hard outline */
  background-color: color-mix(in srgb, var(--fg0) 5%, transparent);
  border: none;
  border-radius: var(--radius);
  padding: var(--sp-4);
  transition: background-color var(--transition), box-shadow var(--transition);
}
.form input { min-height: var(--field-height); }
.form textarea {
  min-height: 200px;
  resize: none;          /* hide the drag handle - cleaner */
}
.form input::placeholder,
.form textarea::placeholder {
  color: var(--fg1);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  background-color: color-mix(in srgb, var(--fg0) 8%, transparent);
  /* faint, soft accent ring (low opacity → reads as a glow, not a hard line) */
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent);
}
/* action row: mirrors the top two fields (2 columns, same width & height) */
.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}
.form-actions .btn {
  width: 100%;
  min-height: var(--field-height);
  justify-content: center;
}
/* footer buttons go uppercase to match the footer's eyebrow treatment */
.site-footer .btn { text-transform: uppercase; letter-spacing: 0.1em; }
@media (max-width: 560px) {
  .form-row,
  .form-actions { grid-template-columns: 1fr; }
}

/* ---- contact list ---- */
.contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: 1.05rem;
  color: var(--fg1);
}
.contact-item a { color: inherit; text-decoration: none; padding: 0; }
.contact-item a:hover { background: none; color: var(--fg0); }
.contact-item .icon { width: 20px; height: 20px; color: var(--acc); flex: none; }

/* ---- social icons ---- */
.social {
  display: flex;
  gap: var(--sp-4);
  margin-top: auto;        /* sticks social to the bottom → no empty space */
  padding-top: var(--sp-12);
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg1);
  padding: 0;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.social a:hover {
  background-color: var(--fg0);
  border-color: var(--fg0);
  color: var(--bg0);
}
.social .icon { width: 20px; height: 20px; }


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   15 · ERROR PAGE  (404 and friends)
   Standalone <main class="error"> - sits OUTSIDE .site-main on purpose, so it
   skips the justified-prose rules and centres a short message instead. Pure
   CSS, no JS. The big code number reuses the tri-accent gradient-text recipe
   (same as the landing hero rotator) - the Karadigm signature.
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */
.error {
  flex: 1;                       /* fill the gap between header and footer */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--block-pad) var(--gutter);
}
.error__inner { max-width: 56ch; }

/* ---- the code number: tri-accent gradient text ---- */
.error__code {
  font-family: var(--font-ui);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  font-size: clamp(5rem, 18vw, 11rem);
  background: linear-gradient(90deg, var(--acc-blue), var(--acc-green), var(--acc-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- title + message ---- */
.error__title {
  margin-top: var(--sp-4);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.error__text {
  margin-top: var(--sp-4);
  margin-inline: auto;
  max-width: 48ch;
  color: var(--fg1);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ---- actions + popular links ---- */
.error__actions {
  margin-top: var(--sp-8);
  justify-content: center;       /* .btn-row is a flex row; centre it here */
}
.error__links {
  margin-top: var(--sp-12);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2) var(--sp-6);
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}


/* ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   16 · COOKIE CONSENT  (optional)        ⚙ js/main.js → block 27
   A self-contained bottom banner. OPTIONAL on purpose: it ships hidden and
   never auto-pops here. Add data-cookie-auto to show it on first visit; on the
   demo (generic) page it stays out of the way and only appears when a
   [data-cookie-show] button asks for it, so it previews on demand instead of
   nagging. Sits below the cart drawer (z 120 < 200) so it never traps it.
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ */
.cookie-consent {
  position: fixed;
  inset-inline: var(--gutter);
  bottom: var(--gutter);
  z-index: 120;
  max-width: 46rem;
  margin-inline: auto;
  padding: var(--sp-6);
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  /* slides up when .is-in is added by the script */
  transform: translateY(calc(100% + var(--gutter)));
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-consent.is-in { transform: none; opacity: 1; }
.cookie-consent[hidden] { display: none; }   /* override fixed-position display */

.cookie-consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-6);
}
.cookie-consent__text {
  margin: 0;
  max-width: 60ch;
  color: var(--fg1);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.cookie-consent__actions {
  display: flex;
  flex-shrink: 0;
  gap: var(--sp-3);
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent { transition: none; }
}


/* ──────────────────────────────────────────────────────────────────────────
   Karadigm - design system & templates crafted by Luko Karavan
   https://lukokaravan.com
   ────────────────────────────────────────────────────────────────────────── */
