/* 06 Material Index
   Navigate the work by what it is made of. The swatches are flat CSS
   textures (no photos). Images are shown untouched: no filters, no dimming. */

:root {
  --ground: #f6f6f3;
  --paper: #ffffff;
  --ink: #16171b;
  --ink-soft: #4a4c54;      /* 8:1 on the ground */
  --rule: #16171b;
  --hair: #c9cac6;
  --mark: #ffe36e;          /* highlighter on matched material words */
  --focus: #1f4fe0;         /* 5.6:1 on the ground */

  /* material base colors */
  --clay: #ab9e8f;
  --clay-dk: #958778;
  --plaster: #efede6;
  --wood: #d9b98a;
  --wood-grain: rgba(122, 82, 38, 0.22);
  --fabric: #33507a;
  --paperc: #fbfaf5;
  --graphite: #3b3c42;
  --mirror-1: #eef2f5;
  --mirror-2: #95a2ad;
  --led: #fff3c4;
  --motion: #121317;
  --paint-r: #e3392b;
  --paint-y: #f5c443;
  --paint-g: #1f8a5b;
  --paint-b: #2a58c6;
  --paint-p: #ef8db2;
  --tbc-1: #d6d6d1;
  --tbc-2: #eeeeeb;

  --gut: 16px;
  --font: "Archivo", "Helvetica Neue", Helvetica, "Segoe UI", sans-serif;
}

@media (min-width: 700px) { :root { --gut: 36px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}

img { max-width: 100%; }

[hidden] { display: none !important; }

h1, h2, h3 { text-wrap: balance; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gut);
  top: -60px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.skip:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* ---------- textures (flat CSS swatches) ---------- */

.tx-clay {
  background-color: var(--clay);
  background-image:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0 3px, rgba(255, 255, 255, 0) 3px 7px, rgba(60, 45, 30, 0.16) 7px 9px, rgba(60, 45, 30, 0) 9px 12px);
}
.tx-plaster {
  background-color: var(--plaster);
  background-image:
    radial-gradient(circle at 30% 40%, rgba(80, 75, 65, 0.22) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 70% 75%, rgba(80, 75, 65, 0.16) 0 1px, transparent 1.6px),
    radial-gradient(circle at 55% 15%, rgba(255, 255, 255, 0.9) 0 1.2px, transparent 2px);
  background-size: 9px 11px, 13px 7px, 17px 19px;
}
.tx-wood {
  background-color: var(--wood);
  background-image:
    repeating-linear-gradient(97deg, var(--wood-grain) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(93deg, rgba(122, 82, 38, 0.12) 0 3px, transparent 3px 23px),
    linear-gradient(90deg, rgba(255, 240, 210, 0.25), rgba(255, 240, 210, 0) 40%, rgba(255, 240, 210, 0.2));
}
.tx-fabric {
  background-color: var(--fabric);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 8px);
}
.tx-paper {
  background-color: var(--paperc);
  background-image:
    repeating-linear-gradient(135deg, rgba(59, 60, 66, 0.62) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(45deg, rgba(59, 60, 66, 0.35) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.05) 0 0.6px, transparent 1px);
  background-size: 58% 52%, 40% 34%, 5px 5px;
  background-position: 100% 100%, 100% 100%, 0 0;
  background-repeat: no-repeat, no-repeat, repeat;
}
.tx-light {
  background-color: var(--mirror-2);
  background-image:
    radial-gradient(circle at 72% 34%, var(--led) 0 5px, rgba(255, 214, 90, 0.75) 7px, rgba(255, 214, 90, 0) 34px),
    linear-gradient(128deg, var(--mirror-1) 0%, var(--mirror-2) 38%, #f7f9fb 52%, #8996a1 70%, #dfe5ea 100%);
}
.tx-motion {
  background-color: var(--motion);
  background-image:
    radial-gradient(circle at 50% 18%, #f4f4f4 0 2.6px, transparent 3.2px),
    radial-gradient(circle at 38% 38%, #f4f4f4 0 2.2px, transparent 2.8px),
    radial-gradient(circle at 62% 36%, #f4f4f4 0 2.2px, transparent 2.8px),
    radial-gradient(circle at 50% 52%, #f4f4f4 0 2.2px, transparent 2.8px),
    radial-gradient(circle at 42% 78%, #f4f4f4 0 2.2px, transparent 2.8px),
    radial-gradient(circle at 60% 80%, #f4f4f4 0 2.2px, transparent 2.8px),
    radial-gradient(circle at 26% 30%, #f4f4f4 0 2px, transparent 2.6px),
    radial-gradient(circle at 76% 26%, #f4f4f4 0 2px, transparent 2.6px),
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0 18%, rgba(255, 255, 255, 0.10) 18% 22%, rgba(255, 255, 255, 0) 22% 80%, rgba(255, 255, 255, 0.07) 80% 83%, rgba(255, 255, 255, 0) 83%);
}
.tx-paint {
  background-color: var(--paint-y);
  background-image: linear-gradient(115deg,
    var(--paint-r) 0 21%, var(--paint-y) 21% 39%, var(--paint-g) 39% 56%,
    var(--paint-b) 56% 76%, var(--paint-p) 76% 100%);
}
.tx-all {
  background-color: var(--ink);
  background-image: linear-gradient(90deg,
    var(--clay) 0 12.5%, var(--plaster) 12.5% 25%, var(--wood) 25% 37.5%, var(--fabric) 37.5% 50%,
    var(--paperc) 50% 62.5%, var(--mirror-2) 62.5% 75%, var(--motion) 75% 87.5%, var(--paint-r) 87.5% 100%);
}
.tx-tbc {
  background-color: var(--tbc-2);
  background-image: repeating-linear-gradient(45deg, var(--tbc-1) 0 6px, var(--tbc-2) 6px 12px);
}

/* ---------- header ---------- */

.head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: 20px;
  padding-bottom: 14px;
}

.brand {
  margin: 0;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: clamp(26px, 5.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand a { text-decoration: none; }

.head ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.head nav a {
  display: inline-block;
  padding: 4px 0;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.head nav a:hover { border-bottom-color: var(--hair); }
.head nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- material chooser ---------- */

.chooser {
  margin: 6px 0 0;
  padding: 16px 0 18px;
  border-top: 3px solid var(--rule);
  border-bottom: 3px solid var(--rule);
}

.chooser fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.chooser legend {
  padding: 0;
  margin-bottom: 12px;
  font-weight: 700;
  font-variation-settings: "wdth" 62;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
}
@media (min-width: 600px) { .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 980px) { .swatches { grid-template-columns: repeat(9, minmax(0, 1fr)); } }

.sw {
  position: relative;
  display: block;
  cursor: pointer;
}
.sw input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.sw .chip {
  display: block;
  height: 54px;
  border: 2px solid rgba(22, 23, 27, 0.18);
}
@media (min-width: 600px) { .sw .chip { height: 84px; } .sw .sw-hint { display: block; } }
@media (min-width: 980px) { .sw .chip { height: 112px; } }

.sw-name {
  display: block;
  margin-top: 7px;
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  font-size: 15px;
  line-height: 1.15;
}
.sw-hint {
  display: none;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-soft);
}
.sw-count {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.sw:hover .chip { border-color: var(--ink); }
.sw input:checked + .chip {
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.sw input:checked ~ .sw-name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.sw input:focus-visible + .chip { outline: 3px dashed var(--focus); outline-offset: 4px; }

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 18px 0 0;
  font-size: 15px;
}
.status b { font-weight: 700; }

.reset {
  padding: 5px 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 600 14px var(--font);
  cursor: pointer;
}
.reset:hover { background: var(--ink); color: var(--paper); }

/* ---------- works ---------- */

.works { margin: 0; padding: 0; list-style: none; }

.work {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "mats" "img" "text";
  gap: 14px;
  padding: 28px 0 34px;
  border-bottom: 3px solid var(--rule);
}

@media (min-width: 860px) {
  .work {
    grid-template-columns: 56px minmax(0, 11fr) minmax(0, 9fr);
    grid-template-areas: "mats img text";
    gap: 32px;
    padding: 36px 0 40px;
  }
}

.work-mats {
  grid-area: mats;
  display: flex;
  height: 16px;
}
@media (min-width: 860px) {
  .work-mats { flex-direction: column; height: auto; min-height: 100%; }
}
.work-mats span {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  transition: flex-grow 0.45s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.work-mats span.is-on { flex-grow: 5; }

.work-img { grid-area: img; margin: 0; }
.work-img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 74vh;
  object-fit: contain;
  object-position: left top;
}

.work-img .hero-cap { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

.work-text { grid-area: text; min-width: 0; max-width: 65ch; }

.work-id {
  margin: 0 0 4px;
  font-weight: 700;
  font-variation-settings: "wdth" 62;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.work h2, .work h3 {
  margin: 0 0 14px;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: clamp(26px, 3.3vw, 42px);
  line-height: 1.03;
  letter-spacing: -0.01em;
}

.tbc {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1.5px dashed var(--ink-soft);
  background: var(--paper);
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  vertical-align: middle;
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 16px;
  margin: 0;
  font-size: 15.5px;
}
.facts dt {
  font-weight: 700;
  font-variation-settings: "wdth" 62;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 3px;
  color: var(--ink-soft);
}
.facts dd { margin: 0; }

mark {
  background: var(--mark);
  color: var(--ink);
  padding: 0 0.12em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 600 13.5px var(--font);
  line-height: 1.2;
}
button.tag { cursor: pointer; }
button.tag:hover { background: var(--ink); color: var(--paper); }
.tag i {
  display: block;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(22, 23, 27, 0.25);
}

.note {
  display: inline-block;
  max-width: 60ch;
  margin: 14px 0 0;
  padding: 5px 10px;
  border: 1.5px dashed var(--ink-soft);
  background: var(--paper);
  font-size: 13px;
  line-height: 1.45;
}

.more { margin-top: 18px; border-top: 1px solid var(--hair); padding-top: 12px; }
.more summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}
.more .st p { margin: 0.9em 0 0; }
.more .k {
  display: block;
  margin: 16px 0 2px;
  font-weight: 700;
  font-variation-settings: "wdth" 62;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.more .inq { margin: 0; font-style: italic; }
.more ol { margin: 4px 0 0; padding-left: 1.4em; }
.more a { font-weight: 700; }

.extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  align-items: start;
}
.extra figure { margin: 0; }
.extra img { display: block; width: 100%; height: auto; }
.extra figcaption { margin-top: 5px; font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.extra .note { margin-top: 6px; font-size: 12px; }

.empty { padding: 28px 0; font-size: 17px; }

/* ---------- earlier page ---------- */

.page-title {
  margin: 26px 0 6px;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.015em;
}

.sec-head {
  margin: 44px 0 0;
  padding: 12px 0;
  border-top: 3px solid var(--rule);
  font-weight: 700;
  font-variation-settings: "wdth" 62;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.earlier-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 6px;
}
.earlier-head .band { min-height: 64px; }

.paintings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  align-items: end;
}
@media (min-width: 600px) { .paintings { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .paintings { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 34px 24px; } }

.paintings figure { margin: 0; }
.paintings img { display: block; width: 100%; height: auto; }
.paintings figcaption {
  margin-top: 8px;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.25;
}
.paintings .work-id { margin: 5px 0 0; line-height: 1.35; }

/* ---------- about ---------- */

.about {
  display: grid;
  gap: 10px 32px;
  margin: 0;
  padding: 36px 0 48px;
}
@media (min-width: 860px) { .about { grid-template-columns: 56px minmax(0, 11fr) minmax(0, 9fr); } }

.about h2 {
  margin: 0;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: clamp(26px, 3.3vw, 42px);
  line-height: 1.03;
}
.about .band { display: none; }
@media (min-width: 860px) { .about .band { display: block; } }
.about-text { max-width: 60ch; }
.about-text p { margin: 0 0 0.75em; font-size: 20px; line-height: 1.5; }
.about-text .note { font-size: 13px; }
.about-contact { font-size: 16px !important; font-weight: 700; margin-top: 16px !important; }

/* ---------- footer ---------- */

.foot {
  padding-top: 16px;
  padding-bottom: 30px;
  border-top: 3px solid var(--rule);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.foot p { margin: 0; max-width: 100ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
