* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--color-ink);
  background: transparent;
  font-size: var(--type-base);
  line-height: 1.55;
  font-family: var(--font-serif);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
main { min-height: 70vh; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  transform: translateY(-140%);
  padding: var(--space-2) var(--space-3);
  background: var(--color-ink);
  color: var(--color-surface);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(18px, 3vw, 40px);
  min-height: clamp(104px, 10vw, 136px);
  padding: clamp(12px, 1.6vw, 18px) var(--page-x) clamp(10px, 1.2vw, 14px);
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  flex: 0 0 auto;
  width: clamp(96px, 7.8vw, 128px);
  background: var(--color-white);
  border: 1px solid var(--color-white);
  transition: border-color .16s ease, background .16s ease;
}
.brand:hover { background: var(--color-white); }
.brand:focus-visible {
  outline: 3px solid var(--color-link);
  outline-offset: 8px;
}
.brand__logo {
  width: 100%;
  height: auto;
}
.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3) clamp(14px, 2vw, 24px);
  align-self: end;
  margin-bottom: 4px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 24px);
  justify-content: flex-end;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--type-nav);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.site-nav a { padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-color: currentColor; }
.social-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-2);
}
.social-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  color: var(--color-text);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.social-nav__link:hover {
  color: var(--color-ink);
  background: var(--color-surface);
  border-color: var(--color-border);
}
.social-nav__link:focus-visible {
  outline: 3px solid var(--color-link);
  outline-offset: 3px;
}
.social-nav__icon {
  width: var(--social-icon-glyph);
  height: var(--social-icon-glyph);
  display: block;
}
.social-nav__icon--stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-nav__icon--fill { fill: currentColor; }
.social-nav__fallback {
  color: var(--color-ink);
  font-size: var(--type-nav);
  font-weight: 800;
  line-height: 1;
}

.hero {
  height: clamp(360px, 54vh, 520px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  align-items: stretch;
  border-bottom: 1px solid var(--color-border);
}
.hero__image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.hero__text {
  align-self: end;
  padding: clamp(24px, 3.4vw, 42px);
  background: var(--color-surface);
}
.eyebrow {
  margin: 0 0 var(--space-4);
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: var(--type-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
}
h1, h2, h3 { font-family: var(--font-sans); font-weight: 800; line-height: 1; letter-spacing: 0; }
h1 { margin: 0; font-size: var(--type-title); }
h2 { margin: 0; font-size: var(--type-section); }
h3 { margin: 0; font-size: var(--type-heading-small); line-height: 1.12; }
.hero h1 { font-size: var(--type-display); }
.hero__text p:not(.eyebrow) { max-width: 30rem; color: var(--color-text); font-size: var(--type-lg); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-ink);
  border-radius: var(--radius);
  background: var(--color-ink);
  color: var(--color-surface);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--type-base);
  font-weight: 700;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.button:hover,
button:hover {
  background: var(--color-text);
}
.button--ghost {
  background: var(--color-surface);
  color: var(--color-ink);
}
.button--ghost:hover { background: var(--color-wash); }
.button--small {
  min-height: var(--control-height-compact);
  padding: 8px 12px;
  font-size: var(--type-sm);
  line-height: 1.1;
}
.button--full { width: 100%; margin-top: 20px; }

.section { padding: var(--section-y) var(--page-x); }
.section--tight { padding-top: clamp(32px, 4vw, 56px); }
.section--first { padding-top: 16px; }
.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.section__head a:not(.button), .richtext a, .backlink { color: var(--color-link); text-decoration: underline; text-underline-offset: 3px; }
.section__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3);
}

.masonry {
  columns: 5 190px;
  column-gap: var(--space-4);
}
.masonry--wide { columns: 5 190px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-4);
}
.grid--compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.featured-artwork-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.featured-artwork-grid .art-card {
  margin: 0;
}
.art-card {
  break-inside: avoid;
  margin: 0 0 var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.art-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: var(--color-wash);
  overflow: hidden;
}
.art-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
  object-position: center center;
}
.art-card__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
  font-size: var(--type-sm);
}
.art-card__meta a { font-weight: 700; }
.art-card__meta span { color: var(--color-muted); }

.statement-band {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 5vw, 68px);
  padding: clamp(42px, 6vw, 82px) var(--page-x);
  background: var(--color-dark-panel);
  color: var(--color-dark-text);
}
.statement-band .richtext { color: var(--color-dark-muted); font-size: var(--type-lg); }
.statement-band .richtext p {
  max-width: 760px;
  margin: 0 0 1.05em;
}
.instagram-section {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.instagram-grid {
  display: flex;
  gap: var(--space-4);
  align-items: start;
  overflow-x: auto;
  padding: 0 0 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.instagram-card {
  flex: 0 0 clamp(300px, 30vw, 390px);
  min-height: 420px;
  padding: var(--space-2);
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
}
.instagram-card--inline {
  break-inside: avoid;
  display: block;
  margin: 0 0 var(--space-4);
  min-height: 360px;
  max-height: 680px;
}
.instagram-card--feed {
  flex: initial;
  min-height: 360px;
  margin: 0;
}
.instagram-card .instagram-media,
.richtext .instagram-media {
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
}
.richtext .instagram-media {
  margin: 24px 0 !important;
}

.page-hero {
  padding: clamp(26px, 3.4vw, 44px) var(--page-x) clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--color-border);
}
.page-hero--compact { padding-block: clamp(28px, 4vw, 48px); }
.page-hero h1 {
  max-width: 980px;
  font-size: var(--type-title);
}
.page-hero .richtext { max-width: var(--richtext-hero-width); margin-top: var(--richtext-hero-offset); }
.page-hero--recent .page-hero__intro {
  max-width: var(--recent-intro-width);
}
.recent-feed {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--embed-card-min), 100%), 1fr));
  gap: var(--space-4);
  align-items: start;
  max-width: var(--wide);
  overflow: hidden;
}
.page-hero--recent .page-hero__intro > p {
  max-width: var(--recent-intro-width);
}
.recent-feed .art-card {
  margin: 0;
}
.recent-feed .instagram-media {
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.page-hero__intro {
  max-width: var(--measure);
  margin-top: var(--space-4);
  color: var(--color-text);
  font-size: var(--type-md);
}
.page-hero__intro p { margin: 0; }
.filterbar {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(180px, 280px) auto;
  gap: var(--space-2);
  max-width: 880px;
  margin-top: var(--space-5);
}
input, select, textarea {
  width: 100%;
  min-height: var(--control-height);
  padding: 11px var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--type-base);
  box-shadow: inset 0 0 0 1px transparent;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:focus, select:focus, textarea:focus, button:focus-visible, .button:focus-visible, a:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 3px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-ink);
  background: var(--color-white);
  box-shadow: inset 0 0 0 1px var(--color-ink);
}

.collection-browser {
  display: grid;
  gap: var(--space-4);
}
.collection-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.collection-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1 1 220px;
  min-height: var(--control-height);
  padding: 0 var(--space-3);
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.collection-search:focus-within {
  border-color: var(--color-ink);
  background: var(--color-white);
  box-shadow: inset 0 0 0 1px var(--color-ink);
}
.collection-search__icon {
  flex: 0 0 auto;
  color: var(--color-muted);
}
.collection-search input {
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.collection-search input:focus {
  background: transparent;
  box-shadow: none;
}
.collection-filterbar select {
  flex: 1 1 var(--collection-select-width);
  min-width: 0;
  max-width: var(--collection-select-width);
}
.collection-clear {
  display: none;
  white-space: nowrap;
}
.collection-clear.is-visible {
  display: inline-flex;
}
.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.collection-results {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--type-sm);
}
.collection-results strong {
  color: var(--color-ink);
}
.collection-toolbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.collection-sort {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-muted);
  font-size: var(--type-sm);
  font-weight: 700;
}
.collection-sort select {
  min-width: var(--collection-select-width);
}
.collection-view-toggle {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.collection-view-btn {
  min-width: var(--control-height-compact);
  min-height: var(--control-height-compact);
  padding: var(--space-2);
  background: transparent;
  color: var(--color-muted);
  border-color: transparent;
}
.collection-view-btn:hover,
.collection-view-btn.is-active {
  background: var(--color-ink);
  color: var(--color-surface);
}
.collection-grid--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--collection-card-min), 1fr));
  gap: var(--space-4);
}
.collection-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.collection-card:hover {
  border-color: var(--color-ink);
}
.collection-card__image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--color-wash);
  overflow: hidden;
}
.collection-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform .2s ease;
}
.collection-card--midnight-star .collection-card__image img,
.collection-card--swim-on-venus-miami-marbles .collection-card__image img {
  object-position: center 35%;
  transform: scale(1.22);
}
.collection-card:hover .collection-card__image img {
  transform: scale(1.03);
}
.collection-card--midnight-star:hover .collection-card__image img,
.collection-card--swim-on-venus-miami-marbles:hover .collection-card__image img {
  transform: scale(1.26);
}
.collection-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: var(--space-4);
  color: var(--color-muted);
  font-size: var(--type-sm);
  text-align: center;
}
.collection-card__body {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3);
}
.collection-card__title {
  min-width: 0;
  overflow: hidden;
  color: var(--color-ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.collection-card__meta {
  min-width: 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--type-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.collection-grid--list {
  display: flex;
  flex-direction: column;
}
.collection-row {
  display: grid;
  grid-template-columns: var(--collection-row-thumb) minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.collection-row:hover {
  background: var(--color-white);
}
.collection-row--header {
  color: var(--color-muted);
  font-size: var(--type-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  border-top: 1px solid var(--color-border);
}
.collection-row--header:hover {
  background: var(--color-surface);
}
.collection-row__thumb {
  width: var(--collection-row-thumb);
  height: var(--collection-row-thumb);
  background: var(--color-wash);
  overflow: hidden;
}
.collection-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection-row__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--color-muted);
  font-size: var(--type-xs);
  font-weight: 800;
}
.collection-row__title,
.collection-row__meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.collection-row__title {
  color: var(--color-ink);
  font-weight: 700;
}
.collection-row__meta {
  color: var(--color-muted);
  font-size: var(--type-sm);
}
.collection-empty {
  display: grid;
  gap: var(--space-3);
  max-width: var(--measure);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.collection-empty[hidden] {
  display: none;
}
.collection-empty p {
  margin: 0;
  color: var(--color-muted);
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(280px, 360px);
  justify-content: center;
  gap: clamp(20px, 3vw, 42px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(18px, 2.6vw, 32px) var(--page-x);
}
.detail__media { display: grid; gap: var(--space-4); }
.detail__media figure {
  display: grid;
  place-items: center;
  margin: 0;
  background: var(--color-wash);
}
.detail__media img {
  width: auto;
  max-width: 100%;
  max-height: min(64vh, 620px);
  height: auto;
  object-fit: contain;
}
.detail__info {
  position: sticky;
  top: 84px;
  align-self: start;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.detail__info h1 { margin-top: var(--space-3); font-size: var(--type-detail-title); }
dl { display: grid; gap: var(--space-2); margin: var(--space-4) 0; font-size: var(--type-meta); }
dl div { display: grid; grid-template-columns: 90px 1fr; gap: var(--space-3); border-top: 1px solid var(--color-border); padding-top: var(--space-2); }
dt { color: var(--color-muted); }
dd { margin: 0; }

.richtext {
  max-width: var(--measure);
  color: var(--color-text);
  overflow-wrap: break-word;
}
.richtext p { margin: 0 0 1em; }
.richtext img { height: auto; margin: var(--space-5) 0; }
.richtext iframe { max-width: 100%; }
.richtext a { overflow-wrap: anywhere; }
.richtext h1, .richtext h2, .richtext h3 { margin: 1.2em 0 .4em; line-height: 1.08; }
.richtext .wp-block-spacer { display: none !important; }
.richtext .wp-block-image,
.richtext figure { margin: var(--space-5) 0; }
.richtext .has-text-align-left,
.richtext .has-text-align-center,
.richtext .has-text-align-right { text-align: left; }
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: var(--space-5) 0;
  background: var(--color-ink);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.content-page.richtext h1 { font-size: var(--type-content-h1); }
.content-page.richtext h2 { font-size: var(--type-content-h2); }
.content-page.richtext h3 { font-size: var(--type-content-h3); }
.content-page.richtext .wp-block-columns {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  max-width: var(--wide);
}
.content-page.richtext .wp-block-column {
  min-width: 0;
}
.content-page--about .wp-block-column:first-child .wp-block-heading {
  margin-top: 0;
}
.content-page--about .wp-block-column:first-child h1.wp-block-heading {
  font-size: var(--type-section);
}
.content-page--about .wp-block-column > :first-child {
  margin-top: 0;
}
.content-page--about .wp-block-column:nth-child(2) > p:first-child {
  min-height: var(--type-section);
  margin: 0 0 var(--space-4);
  color: var(--color-ink);
  font-size: var(--type-base);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.content-page--about .wp-block-column:nth-child(2) > p:first-child strong {
  font-weight: inherit;
}
.content-page--about .wp-block-column:first-child h2.wp-block-heading {
  margin-top: var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  line-height: 1.1;
}
.content-page--about .wp-block-column:first-child h2.wp-block-heading a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--color-ink);
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 800;
  text-decoration: none;
}
.content-page {
  max-width: var(--wide);
  padding: clamp(24px, 3.4vw, 44px) var(--page-x);
  font-size: var(--type-md);
  line-height: 1.65;
}
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: var(--space-4);
  max-width: var(--wide);
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.news-card__media {
  display: block;
  background: var(--color-wash);
  border-bottom: 1px solid var(--color-border);
}
.news-card__media > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.news-card__fallback {
  position: relative;
  display: grid;
  place-items: center;
  gap: var(--space-3);
  aspect-ratio: 16 / 10;
  min-height: 180px;
  padding: var(--space-5);
  background: var(--color-wash);
  overflow: hidden;
}
.news-card__fallback::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: var(--color-accent);
}
.news-card__fallback img {
  position: relative;
  width: 84px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
}
.news-card__fallback span {
  position: relative;
  color: var(--color-muted);
  font-size: var(--type-xs);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.news-card__body {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-4);
}
.news-card__body > span {
  display: block;
  color: var(--color-muted);
  font-size: var(--type-sm);
}
.news-card h2 {
  margin: 0;
  font-size: var(--type-card-title);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.news-card p {
  margin: 0;
  font-size: var(--type-base);
  line-height: 1.55;
  overflow-wrap: break-word;
}
.update-date {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: var(--type-sm);
}
.update-detail__image {
  width: min(100%, 760px);
  max-height: 520px;
  object-fit: contain;
  background: var(--color-wash);
}
.contact-layout {
  max-width: 760px;
  padding: clamp(24px, 3.4vw, 44px) var(--page-x);
  margin: 0 auto;
}
.contact-copy {
  margin-bottom: var(--space-5);
  color: var(--color-text);
  font-size: var(--type-base);
  line-height: 1.6;
}
.contact-copy h2 {
  margin: 0 0 10px;
  font-size: var(--type-panel-title);
}
.contact-copy p {
  margin: 0 0 10px;
}
.contact-copy a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-copy .social-nav {
  margin-top: var(--space-3);
}
.contact-copy .social-nav__link {
  color: var(--color-text);
  text-decoration: none;
}
.contact-form {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius);
}
.contact-form label {
  display: grid;
  gap: var(--space-2);
  color: var(--color-muted);
  font-size: var(--type-xs);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  color: var(--color-ink);
  font-size: var(--type-base);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-status { min-height: 1.3em; color: var(--color-success); }
.empty { color: var(--color-muted); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5) var(--page-x);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: var(--type-sm);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  background: var(--color-white);
  border: 1px solid var(--color-border-subtle);
}
.site-footer strong { display: block; color: var(--color-ink); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}
.footer-links > a {
  padding: var(--space-1) 0;
}

.ds-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: var(--space-7);
  padding: var(--section-y) var(--page-x);
}
.ds-nav {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: var(--space-2);
  color: var(--color-muted);
  font-size: var(--type-sm);
}
.ds-nav a {
  padding: var(--space-1) 0;
  border-bottom: 1px solid transparent;
}
.ds-nav a:hover { color: var(--color-ink); border-color: currentColor; }
.ds-main {
  display: grid;
  gap: var(--space-8);
  min-width: 0;
}
.ds-section {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}
.ds-section > *,
.ds-type > div {
  min-width: 0;
}
.ds-section > h3,
.ds-example h3,
.ds-logo-row h3 {
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.ds-principles,
.ds-component-grid,
.ds-template-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--space-4);
}
.ds-principles article,
.ds-example,
.ds-template-list a,
.ds-note {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.ds-principles h3,
.ds-template-list strong {
  display: block;
  margin: 0 0 var(--space-2);
}
.ds-principles p,
.ds-template-list span,
.ds-note {
  color: var(--color-text);
}
.ds-template-list a {
  display: grid;
  gap: var(--space-3);
  border-top: 4px solid var(--color-ink);
}
.ds-template-list a:hover {
  border-top-color: var(--color-accent);
}
.ds-template-list em {
  color: var(--color-link);
  font-size: var(--type-sm);
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ds-note a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ds-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: var(--space-3);
}
.ds-swatches div {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.ds-swatches span {
  display: block;
  height: 54px;
  border: 1px solid var(--color-border);
}
.ds-swatch--ink { background: var(--color-ink); }
.ds-swatch--paper { background: var(--color-paper); }
.ds-swatch--surface { background: var(--color-surface); }
.ds-swatch--accent { background: var(--color-accent); }
.ds-swatch--link { background: var(--color-link); }
.ds-swatch--sky { background: var(--sky); }
.ds-swatch--star-1 { background: var(--star-accent-1); }
.ds-swatch--star-2 { background: var(--star-accent-2); }
.ds-swatch--star-3 { background: var(--star-accent-3); }
.ds-swatch--link-on-sky { background: var(--link-on-sky); }
.ds-swatch--control-bg { background: var(--control-bg-on-sky); }
.ds-swatch--control-border { border: 1px solid var(--control-border-on-sky); }
.ds-swatches code {
  color: var(--color-muted);
  font-size: var(--type-xs);
}
.ds-spacing {
  display: flex;
  align-items: end;
  gap: var(--space-3);
  min-height: 72px;
}
.ds-spacing span {
  display: grid;
  gap: var(--space-2);
  align-items: end;
}
.ds-spacing i {
  display: block;
  height: 28px;
  background: var(--color-accent);
}
.ds-spacing code {
  color: var(--color-muted);
  font-size: var(--type-xs);
}
.ds-space-step--2 { width: var(--space-2); }
.ds-space-step--3 { width: var(--space-3); }
.ds-space-step--4 { width: var(--space-4); }
.ds-space-step--5 { width: var(--space-5); }
.ds-space-step--6 { width: var(--space-6); }
.ds-space-step--7 { width: var(--space-7); }
.ds-token-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: var(--space-3);
}
.ds-token-list span {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.ds-token-list--examples span {
  align-content: start;
  min-height: 132px;
}
.ds-token-list strong {
  font-family: var(--font-sans);
}
.ds-token-list code {
  color: var(--color-muted);
  font-size: var(--type-xs);
}
.ds-token-list--examples p {
  margin: var(--space-1) 0 var(--space-2);
}
.ds-type {
  display: grid;
  gap: var(--space-5);
}
.ds-type-strategy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--space-4);
}
.ds-type-strategy article {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.ds-type-strategy strong {
  display: block;
  margin-bottom: var(--space-2);
}
.ds-type-strategy span {
  color: var(--color-text);
}
.ds-type span {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--color-muted);
  font-size: var(--type-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.type-display,
.type-title,
.type-section,
.type-content-h1,
.type-card-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1;
  overflow-wrap: break-word;
}
.type-display { font-size: var(--type-display); }
.type-title { font-size: var(--type-title); }
.type-section { font-size: var(--type-section); }
.type-content-h1 { font-size: var(--type-content-h1); }
.type-card-title { font-size: var(--type-card-title); }
.type-body {
  color: var(--color-text);
  font-size: var(--type-base);
  line-height: 1.55;
}
.ds-type-eyebrow {
  margin-bottom: var(--space-2);
}
.ds-type code {
  display: inline-block;
  margin-top: var(--space-2);
  color: var(--color-muted);
  font-size: var(--type-xs);
}
.ds-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.ds-site-nav-preview {
  justify-content: flex-start;
  margin-bottom: var(--space-4);
}
.ds-skip-preview {
  position: static;
  display: inline-flex;
  margin-bottom: var(--space-3);
  transform: none;
}
.ds-footer-preview {
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.ds-page-hero-preview {
  margin: calc(var(--space-4) * -1);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
}
.ds-page-hero-preview h1 {
  font-size: var(--type-title);
}
.ds-page-hero-preview .page-hero__intro {
  margin-top: var(--space-3);
}
.ds-hero-preview {
  max-width: var(--wide);
  height: clamp(360px, 44vw, 480px);
  min-height: 0;
  border: 1px solid var(--color-border);
}
.ds-hero-preview .hero__text {
  padding: var(--space-5);
}
.ds-statement-preview {
  max-width: var(--wide);
  padding: var(--space-5);
}
.ds-statement-preview h2 {
  font-size: var(--type-section);
}
.ds-empty-preview {
  margin-top: var(--space-3);
  padding: var(--space-4);
}
.ds-browser-preview,
.ds-row-preview,
.ds-detail-preview,
.ds-instagram-preview {
  max-width: var(--wide);
}
.ds-detail-preview {
  position: static;
  max-width: 420px;
}
.ds-instagram-preview {
  grid-template-columns: minmax(0, 360px);
}
.ds-instagram-placeholder {
  display: grid;
  min-height: 320px;
  place-items: center;
  background: var(--color-wash);
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: var(--type-xs);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ds-logo-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
}
.ds-logo-row img {
  width: 120px;
  background: var(--color-white);
  border: 1px solid var(--color-white);
}
.ds-rule {
  color: var(--color-muted);
  font-size: var(--type-sm);
}
.ds-card-preview {
  max-width: 760px;
}
.ds-news-preview {
  grid-template-columns: 1fr;
  max-width: var(--component-preview-card-width);
}
.ds-form-preview { max-width: 420px; }
.ds-motion-orbit,
.ds-motion-rake,
.ds-motion-twinkle {
  position: relative;
  min-height: 48px;
  margin: var(--space-2) 0;
}
.ds-motion-orbit::before,
.ds-motion-rake::before,
.ds-motion-twinkle::before {
  content: "";
  position: absolute;
  display: block;
}
.ds-motion-orbit::before {
  inset: auto auto 10px 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--star-accent-2);
  box-shadow: 0 0 18px var(--card-glow);
  animation: ascOrbitExample 2.4s var(--ease-settle) infinite alternate;
}
.ds-motion-rake::before {
  top: 22px;
  left: 0;
  width: 86px;
  height: 3px;
  background: var(--comet-rake-gradient);
  animation: ascRakeExample 2.8s var(--ease-comet) infinite;
}
.ds-motion-twinkle::before {
  top: 14px;
  left: 12px;
  width: 20px;
  height: 20px;
  background:
    linear-gradient(var(--star-accent-1), var(--star-accent-1)) center/100% 12% no-repeat,
    linear-gradient(var(--star-accent-1), var(--star-accent-1)) center/12% 100% no-repeat;
  animation: ascTwinkleExample var(--dur-twinkle) ease-in-out infinite;
}
@keyframes ascOrbitExample {
  from { transform: translateX(0) translateY(8px) scale(.82); opacity: .55; }
  to { transform: translateX(82px) translateY(0) scale(1); opacity: 1; }
}
@keyframes ascRakeExample {
  from { transform: translateX(-12px); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateX(96px); opacity: 0; }
}
@keyframes ascTwinkleExample {
  0%, 100% { transform: rotate(18deg) scale(.75); opacity: .35; }
  50% { transform: rotate(18deg) scale(1.08); opacity: 1; }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 14px;
    min-height: 118px;
  }
  .site-nav {
    gap: 10px 12px;
    justify-content: flex-end;
    font-size: var(--type-nav-compact);
  }
  .site-header__nav { margin-bottom: 0; gap: 8px 12px; }
  .social-nav--header { margin-left: auto; }
  .brand {
    width: clamp(96px, 28vw, 118px);
  }
  .hero, .statement-band, .detail, .news-card { grid-template-columns: 1fr; }
  .hero { height: auto; min-height: 0; }
  .hero__image {
    height: clamp(240px, 62vw, 320px);
    min-height: 0;
    max-height: 320px;
  }
  .detail__info { position: static; }
  .detail__media img { max-height: 72vh; }
  .filterbar { grid-template-columns: 1fr; }
  .featured-artwork-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collection-filterbar {
    align-items: stretch;
  }
  .collection-search {
    flex-basis: 100%;
  }
  .collection-filterbar select {
    flex-basis: calc(50% - var(--space-1));
    max-width: none;
  }
  .collection-clear {
    width: 100%;
  }
  .collection-grid--grid {
    grid-template-columns: repeat(auto-fill, minmax(var(--collection-card-min-tablet), 1fr));
  }
  .collection-row {
    grid-template-columns: var(--collection-row-thumb) minmax(0, 1fr) minmax(0, .55fr);
  }
  .collection-row__meta:nth-child(4),
  .collection-row__meta:nth-child(5) {
    display: none;
  }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .content-page.richtext .wp-block-columns { grid-template-columns: 1fr; }
  .ds-layout { grid-template-columns: 1fr; gap: var(--space-5); }
  .ds-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
  .ds-logo-row { grid-template-columns: 1fr; }
  .instagram-grid {
    margin-right: -18px;
    padding-right: 18px;
  }
  .instagram-card {
    flex-basis: min(650px, calc(100vw - 56px));
    min-height: 360px;
  }
}

@media (max-width: 520px) {
  .featured-artwork-grid {
    grid-template-columns: 1fr;
  }

  .collection-toolbar,
  .collection-toolbar__right {
    align-items: stretch;
    flex-direction: column;
  }
  .collection-sort,
  .collection-sort select {
    width: 100%;
  }
  .collection-grid--grid {
    grid-template-columns: repeat(auto-fill, minmax(var(--collection-card-min-mobile), 1fr));
    gap: var(--space-3);
  }
  .collection-card__title {
    white-space: normal;
  }
  .collection-row {
    grid-template-columns: var(--collection-row-thumb) minmax(0, 1fr);
  }
  .collection-row__meta {
    display: none;
  }
}

html { background: var(--sky); }

/* ── Site-wide starfield (additive; revert = delete this block + restore body bg) ── */
.starfield{
  position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden;
  background:
    radial-gradient(120% 70% at 78% -6%, var(--sky-nebula-1) 0, transparent 46%),
    radial-gradient(90% 60% at 12% 8%, var(--sky-nebula-2) 0, transparent 50%),
    var(--sky);
}
.starfield .star{ position:absolute; border-radius:50%; background:var(--star-base); opacity:.5; }
.site-wrap{ position:relative; z-index:1; }

@media (prefers-reduced-motion: reduce){
  .starfield .star{ animation:none !important; opacity:.32 !important; }
}

/* ── Home cosmic scope (additive; revert = remove theme-cosmic from home.html) ── */
body.theme-cosmic .site-header{ background:transparent; border-bottom-color:transparent; }
body.theme-cosmic .site-header.is-scrolled{
  background:var(--color-header-bg); border-bottom-color:var(--line-on-sky);
  backdrop-filter:blur(14px);
}
body.theme-cosmic .site-nav, body.theme-cosmic .site-nav a{ color:var(--ink-on-sky); }
body.theme-cosmic .site-nav, body.theme-cosmic .hero h1{ font-family:var(--font-display); }

body.theme-cosmic .hero__text{ background:transparent; }
body.theme-cosmic .hero h1{ position:relative; display:inline-block; }
body.theme-cosmic .hero h1 .wm__base{ color:var(--color-paper); }
body.theme-cosmic .hero h1 .wm__rake{
  position:absolute; left:0; top:0; white-space:nowrap; color:transparent;
  background-image:var(--comet-rake-gradient);
  background-repeat:no-repeat; background-size:520% 100%; background-position:128% 0;
  -webkit-background-clip:text; background-clip:text; opacity:0; pointer-events:none;
}
body.theme-cosmic .hero__fx{
  position:absolute; left:0; top:0; width:100%; height:100%;
  pointer-events:none; overflow:visible;
}
body.theme-cosmic .hero__text p{ color:var(--ink-on-sky); }

body.theme-cosmic .statement-band{ /* already dark/self-surfaced — leave as-is */ }
body.theme-cosmic .art-card__meta a{ color:var(--ink-on-sky); }
body.theme-cosmic .art-card__meta span{ color:var(--muted-on-sky); }
body.theme-cosmic .site-footer{ border-top-color:var(--line-on-sky); color:var(--muted-on-sky); }
body.theme-cosmic .site-footer strong{ color:var(--ink-on-sky); }

@media (prefers-reduced-motion: reduce){
  body.theme-cosmic .hero h1 .wm__rake{ display:none !important; }
}

/* ── Inner-page cosmic retone (spec §2a; additive; tokens only) ── */
body.theme-cosmic .page-hero{ background:transparent; }
body.theme-cosmic .page-hero h1{ color:var(--ink-on-sky); }
body.theme-cosmic .page-hero__intro,
body.theme-cosmic .page-hero__intro p{ background:transparent; color:var(--muted-on-sky); }

body.theme-cosmic .content-page,
body.theme-cosmic .richtext,
body.theme-cosmic .richtext p,
body.theme-cosmic .richtext li,
body.theme-cosmic .richtext h1,
body.theme-cosmic .richtext h2,
body.theme-cosmic .richtext h3,
body.theme-cosmic .content-page.richtext h1,
body.theme-cosmic .content-page.richtext h2,
body.theme-cosmic .content-page.richtext h3{ color:var(--ink-on-sky); }

body.theme-cosmic main a,
body.theme-cosmic .richtext a,
body.theme-cosmic .content-page a,
body.theme-cosmic .contact-links a{ color:var(--link-on-sky); }

body.theme-cosmic .contact-copy,
body.theme-cosmic .contact-copy h2,
body.theme-cosmic .contact-copy p,
body.theme-cosmic .contact-form label,
body.theme-cosmic .form-status{ color:var(--ink-on-sky); }

body.theme-cosmic .collection-results,
body.theme-cosmic .collection-sort,
body.theme-cosmic .collection-sort span{ color:var(--muted-on-sky); }
body.theme-cosmic .collection-results strong{ color:var(--ink-on-sky); }

body.theme-cosmic input,
body.theme-cosmic select,
body.theme-cosmic textarea{
  background:var(--control-bg-on-sky);
  color:var(--ink-on-sky);
  border-color:var(--control-border-on-sky);
}
body.theme-cosmic .collection-filterbar{
  background:var(--control-bg-on-sky);
  border-color:var(--control-border-on-sky);
}

/* ── Cosmic surfaces + legibility polish (spec §2a; tokens only) ── */
body.theme-cosmic .detail__info,
body.theme-cosmic .contact-form,
body.theme-cosmic .collection-filterbar,
body.theme-cosmic .collection-card,
body.theme-cosmic .collection-card__placeholder,
body.theme-cosmic .news-card,
body.theme-cosmic .embed-card,
body.theme-cosmic .update-card{
  background: var(--surface-on-sky);
  border-color: var(--control-border-on-sky);
  color: var(--ink-on-sky);
}
body.theme-cosmic .detail__info h1,
body.theme-cosmic .detail__info dd,
body.theme-cosmic .collection-card,
body.theme-cosmic .collection-card a,
body.theme-cosmic .news-card,
body.theme-cosmic .news-card a{ color: var(--ink-on-sky); }
body.theme-cosmic .detail__info dt{ color: var(--muted-on-sky); border-color: var(--line-on-sky); }
body.theme-cosmic .detail__info dd{ border-color: var(--line-on-sky); }
body.theme-cosmic .backlink{ color: var(--link-on-sky); }

body.theme-cosmic input:focus,
body.theme-cosmic select:focus,
body.theme-cosmic textarea:focus{
  background: var(--control-bg-on-sky);
  border-color: var(--ink-on-sky);
  box-shadow: inset 0 0 0 1px var(--control-border-on-sky);
}

body.theme-cosmic .social-nav__link,
body.theme-cosmic .contact-copy .social-nav__link{ color: var(--ink-on-sky); }
body.theme-cosmic .social-nav__link:hover{
  color: var(--ink-on-sky);
  background: var(--control-bg-on-sky);
  border-color: var(--control-border-on-sky);
}

body.theme-cosmic .hero h1,
body.theme-cosmic .hero__text p{ text-shadow: 0 2px 18px var(--shadow-on-sky); }

body.theme-cosmic .site-footer strong{ font-family: var(--font-display); }

body.theme-cosmic .button--ghost{
  background: var(--control-bg-on-sky);
  border-color: var(--control-border-on-sky);
  color: var(--ink-on-sky);
}

/* hero artwork aligns to the same page gutter as logo + featured thumbnails */
body.theme-cosmic .hero{ padding-left: var(--page-x); padding-right: var(--page-x); }

/* home featured cards: glass surface so the light meta text reads */
body.theme-cosmic .art-card,
body.theme-cosmic .featured-artwork-grid .art-card{
  background: var(--surface-on-sky);
  border-color: var(--control-border-on-sky);
}
body.theme-cosmic .art-card__meta a{ color: var(--ink-on-sky); }
body.theme-cosmic .art-card__meta span{ color: var(--muted-on-sky); }

/* ── Lively cosmic card — unified for home (.art-card) + Work (.collection-card) ── */
body.theme-cosmic .art-card,
body.theme-cosmic .collection-card{
  background: var(--surface-on-sky);
  border: 1px solid var(--control-border-on-sky);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease-settle), border-color .35s ease, box-shadow .35s ease;
}
body.theme-cosmic .art-card:hover,
body.theme-cosmic .collection-card:hover{
  transform: translateY(-6px);
  border-color: var(--star-accent-1);
  box-shadow: 0 20px 44px var(--shadow-on-sky), 0 0 26px var(--card-glow);
}
body.theme-cosmic .art-card__image,
body.theme-cosmic .collection-card__image{ position: relative; overflow: hidden; }
body.theme-cosmic .art-card__image img,
body.theme-cosmic .collection-card__image img{
  transition: transform .6s var(--ease-settle);
}
body.theme-cosmic .art-card:hover .art-card__image img,
body.theme-cosmic .collection-card:hover .collection-card__image img{ transform: scale(1.06); }
/* one-pass comet sheen across the image on hover */
body.theme-cosmic .art-card__image::after,
body.theme-cosmic .collection-card__image::after{
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--card-sheen); transform: translateX(-130%);
  transition: transform .7s var(--ease-comet);
}
body.theme-cosmic .art-card:hover .art-card__image::after,
body.theme-cosmic .collection-card:hover .collection-card__image::after{ transform: translateX(130%); }
/* four-point star that twinkles in on hover (Anne's motif) */
body.theme-cosmic .art-card__image::before,
body.theme-cosmic .collection-card__image::before{
  content: ""; position: absolute; top: 10px; right: 10px; width: 16px; height: 16px;
  pointer-events: none; opacity: 0; transform: scale(.4) rotate(0deg);
  background:
    linear-gradient(var(--star-accent-1), var(--star-accent-1)) center/100% 12% no-repeat,
    linear-gradient(var(--star-accent-1), var(--star-accent-1)) center/12% 100% no-repeat;
  transition: opacity .45s ease, transform .6s var(--ease-settle); z-index: 2;
}
body.theme-cosmic .art-card:hover .art-card__image::before,
body.theme-cosmic .collection-card:hover .collection-card__image::before{
  opacity: .9; transform: scale(1) rotate(18deg);
}
/* title in the display face, legible; meta muted */
body.theme-cosmic .art-card__meta a,
body.theme-cosmic .collection-card__body a,
body.theme-cosmic .collection-card__body h3{
  font-family: var(--font-display); color: var(--ink-on-sky); font-size: var(--type-md);
}
body.theme-cosmic .art-card__meta span,
body.theme-cosmic .collection-card__body span,
body.theme-cosmic .collection-card__body p{ color: var(--muted-on-sky); }

@media (prefers-reduced-motion: reduce){
  body.theme-cosmic .art-card,
  body.theme-cosmic .collection-card,
  body.theme-cosmic .art-card__image img,
  body.theme-cosmic .collection-card__image img{ transition: none !important; }
  body.theme-cosmic .art-card:hover,
  body.theme-cosmic .collection-card:hover{ transform: none; }
  body.theme-cosmic .art-card:hover .art-card__image img,
  body.theme-cosmic .collection-card:hover .collection-card__image img{ transform: none; }
  body.theme-cosmic .art-card__image::after,
  body.theme-cosmic .collection-card__image::after,
  body.theme-cosmic .art-card__image::before,
  body.theme-cosmic .collection-card__image::before{ display: none; }
}

/* Instagram embeds: drop the paper frame; let the (3rd-party) embed float on the void */
body.theme-cosmic .instagram-section{ background: transparent; border-bottom-color: transparent; }
body.theme-cosmic .instagram-card{ background: transparent; border-color: transparent; padding: 0; }

/* Card text area: structured + legible (fix Clash overlap, less boring) */
body.theme-cosmic .art-card__meta,
body.theme-cosmic .collection-card__body{
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 6px; padding: var(--space-3);
  border-top: 1px solid var(--control-border-on-sky);
}
body.theme-cosmic .art-card__meta a,
body.theme-cosmic .collection-card__body a,
body.theme-cosmic .collection-card__body h3{
  width: 100%;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--type-md); line-height: 1.18; letter-spacing: .005em;
  color: var(--ink-on-sky);
}
body.theme-cosmic .art-card__meta span,
body.theme-cosmic .collection-card__body span,
body.theme-cosmic .collection-card__body p{
  font-family: var(--font-sans); font-weight: 700;
  font-size: var(--type-xs); text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted-on-sky);
}

/* Work card uses JS markup: __title (span) + __meta (spans). Target them correctly
   at high specificity so the title is the Clash display face, not the meta style. */
body.theme-cosmic .collection-card__body .collection-card__title{
  width: 100%;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--type-md); line-height: 1.18; letter-spacing: .005em;
  text-transform: none; color: var(--ink-on-sky);
}
body.theme-cosmic .collection-card__body .collection-card__meta{
  font-family: var(--font-sans); font-weight: 700;
  font-size: var(--type-xs); text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted-on-sky);
}

/* Card meta/title must wrap inside the card (card has overflow:hidden) */
body.theme-cosmic .collection-card__body,
body.theme-cosmic .art-card__meta{ width: 100%; box-sizing: border-box; }
body.theme-cosmic .collection-card__body .collection-card__title,
body.theme-cosmic .collection-card__body .collection-card__meta,
body.theme-cosmic .art-card__meta a,
body.theme-cosmic .art-card__meta span{
  white-space: normal; overflow-wrap: anywhere; max-width: 100%;
}
body.theme-cosmic .collection-card__body .collection-card__meta{ letter-spacing: .1em; }

/* Definitively kill the base nowrap/ellipsis crop on cards under cosmic */
body.theme-cosmic .collection-card__body .collection-card__title,
body.theme-cosmic .collection-card__body .collection-card__meta,
body.theme-cosmic .art-card__meta a,
body.theme-cosmic .art-card__meta span{
  overflow: visible; text-overflow: clip; white-space: normal;
  overflow-wrap: anywhere;
}

/* Work list view → cosmic glass (match the card language) */
body.theme-cosmic .collection-grid--list{ background: transparent; }
body.theme-cosmic .collection-row{
  background: var(--surface-on-sky);
  border-bottom-color: var(--line-on-sky);
}
body.theme-cosmic .collection-row:hover{ background: var(--control-bg-on-sky); }
body.theme-cosmic .collection-row--header{
  color: var(--muted-on-sky); border-top-color: var(--line-on-sky);
  border-bottom-color: var(--line-on-sky);
}
body.theme-cosmic .collection-row--header,
body.theme-cosmic .collection-row--header:hover{ background: transparent; }
body.theme-cosmic .collection-row__thumb{ background: var(--control-bg-on-sky); }
body.theme-cosmic .collection-row__placeholder{ color: var(--muted-on-sky); }
body.theme-cosmic .collection-row__title{
  color: var(--ink-on-sky); font-family: var(--font-display); font-weight: 600;
}
body.theme-cosmic .collection-row__meta{ color: var(--muted-on-sky); }

/* List-row hover — cosmic analog of the card hover (subtle) */
body.theme-cosmic .collection-row{
  transition: transform .28s var(--ease-settle), background .28s ease, box-shadow .28s ease;
}
body.theme-cosmic .collection-row__thumb{ overflow: hidden; }
body.theme-cosmic .collection-row__thumb img{
  transition: transform .5s var(--ease-settle);
}
body.theme-cosmic .collection-row:not(.collection-row--header):hover{
  transform: translateX(5px);
  box-shadow: inset 3px 0 0 0 var(--star-accent-1), 0 8px 24px var(--card-glow);
}
body.theme-cosmic .collection-row:not(.collection-row--header):hover .collection-row__thumb img{
  transform: scale(1.06);
}
body.theme-cosmic .collection-row:not(.collection-row--header):hover .collection-row__title{
  color: var(--star-accent-1);
}
@media (prefers-reduced-motion: reduce){
  body.theme-cosmic .collection-row,
  body.theme-cosmic .collection-row__thumb img{ transition: none !important; }
  body.theme-cosmic .collection-row:not(.collection-row--header):hover{ transform: none; }
  body.theme-cosmic .collection-row:not(.collection-row--header):hover .collection-row__thumb img{ transform: none; }
}

/* ── Contact page design run (cosmic console) ── */
body.theme-cosmic .contact-copy{
  border-bottom: 1px solid var(--line-on-sky);
  padding-bottom: var(--space-5);
}
body.theme-cosmic .contact-copy h2{
  position: relative; display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--type-title); color: var(--ink-on-sky);
}
body.theme-cosmic .contact-copy h2::after{
  content: ""; position: absolute; top: -.35em; right: -1.1em;
  width: 14px; height: 14px; opacity: .9;
  background:
    linear-gradient(var(--star-accent-1), var(--star-accent-1)) center/100% 12% no-repeat,
    linear-gradient(var(--star-accent-1), var(--star-accent-1)) center/12% 100% no-repeat;
  transform: rotate(16deg);
  animation: ascContactStar 4.2s ease-in-out infinite;
}
@keyframes ascContactStar{ 0%,100%{ opacity:.25; transform:rotate(16deg) scale(.85); } 50%{ opacity:.95; transform:rotate(16deg) scale(1.05); } }

body.theme-cosmic .contact-form{
  position: relative; overflow: hidden;
  border: 1px solid var(--control-border-on-sky);
  border-top: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px var(--shadow-on-sky);
}
body.theme-cosmic .contact-form::before{
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--comet-rake-gradient); background-size: 220% 100%;
}
body.theme-cosmic .contact-form label{
  color: var(--link-on-sky);
  font-size: var(--type-xs); letter-spacing: .18em;
}
body.theme-cosmic .contact-form input:focus,
body.theme-cosmic .contact-form textarea:focus{
  border-color: var(--star-accent-1);
  box-shadow: 0 0 0 3px var(--card-glow);
  background: var(--control-bg-on-sky);
}
body.theme-cosmic .contact-form button[type="submit"]{
  position: relative; overflow: hidden; width: 100%;
  margin-top: var(--space-2);
  background: var(--control-bg-on-sky);
  color: var(--ink-on-sky);
  border: 1px solid var(--star-accent-1);
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--type-base); letter-spacing: .04em;
  transition: background .3s ease, color .3s ease, transform .3s var(--ease-settle), box-shadow .3s ease;
}
body.theme-cosmic .contact-form button[type="submit"]::after{
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--card-sheen); transform: translateX(-130%);
  transition: transform .7s var(--ease-comet);
}
body.theme-cosmic .contact-form button[type="submit"]:hover{
  background: var(--star-accent-1); color: var(--sky);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px var(--card-glow);
}
body.theme-cosmic .contact-form button[type="submit"]:hover::after{ transform: translateX(130%); }

@media (prefers-reduced-motion: reduce){
  body.theme-cosmic .contact-copy h2::after{ animation: none; opacity: .7; }
  body.theme-cosmic .contact-form button[type="submit"]{ transition: none; }
  body.theme-cosmic .contact-form button[type="submit"]:hover{ transform: none; }
  body.theme-cosmic .contact-form button[type="submit"]::after{ display: none; }
}

/* ── Contact: two-column (text left / form right), reference vibe ── */
body.theme-cosmic .contact-layout{
  max-width: var(--wide);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
body.theme-cosmic .contact-copy{
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
  align-self: center;
}
body.theme-cosmic .contact-copy h2{
  font-size: var(--type-display);
  line-height: 1.05;
}
body.theme-cosmic .contact-copy p{
  font-size: var(--type-lg);
  max-width: 38ch;
}
@media (max-width: 860px){
  body.theme-cosmic .contact-layout{ grid-template-columns: 1fr; gap: clamp(22px,6vw,40px); }
  body.theme-cosmic .contact-copy{ align-self: start; }
}
/* nebula submit (echoes the reference gradient, in Anne's star palette) */
body.theme-cosmic .contact-form button[type="submit"]{
  background: var(--cta-gradient);
  color: var(--star-base);
  border: 0;
}
body.theme-cosmic .contact-form button[type="submit"]:hover{
  background: var(--cta-gradient-hover);
  color: var(--star-base);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px var(--card-glow);
}

/* Contact form: tighter whitespace + rounded form & fields */
body.theme-cosmic .contact-form{
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-cosmic);
}
body.theme-cosmic .contact-form label{ gap: var(--space-1); }
body.theme-cosmic .contact-form input,
body.theme-cosmic .contact-form select,
body.theme-cosmic .contact-form textarea,
body.theme-cosmic .contact-form button[type="submit"]{
  border-radius: var(--radius-field);
}

/* Unify corner rounding across the cosmic theme (match the filter-control feel).
   Redefining --radius on the scope cascades to every `border-radius: var(--radius)`. */
body.theme-cosmic{ --radius: 10px; }

/* ── Design system on the approved cosmic site ── */
body.theme-cosmic .ds-layout{
  max-width: 1320px;
  margin: 0 auto;
}
body.theme-cosmic .ds-main,
body.theme-cosmic .ds-section,
body.theme-cosmic .ds-type,
body.theme-cosmic .ds-type-strategy{
  color: var(--ink-on-sky);
}
body.theme-cosmic .ds-section > .section__head{
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line-on-sky);
}
body.theme-cosmic .ds-section > .section__head h2,
body.theme-cosmic .ds-section > h3,
body.theme-cosmic .ds-example h3,
body.theme-cosmic .ds-logo-row h3{
  color: var(--ink-on-sky);
}
body.theme-cosmic .ds-nav{
  padding: var(--space-4);
  background: var(--surface-on-sky);
  border: 1px solid var(--control-border-on-sky);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px var(--shadow-on-sky);
}
body.theme-cosmic .ds-nav a{
  color: var(--link-on-sky);
}
body.theme-cosmic .ds-nav a:hover{
  color: var(--ink-on-sky);
  border-color: var(--star-accent-1);
}
body.theme-cosmic .ds-principles article,
body.theme-cosmic .ds-example,
body.theme-cosmic .ds-template-list a,
body.theme-cosmic .ds-note,
body.theme-cosmic .ds-swatches div,
body.theme-cosmic .ds-token-list span,
body.theme-cosmic .ds-type-strategy article{
  background: var(--surface-on-sky);
  border-color: var(--control-border-on-sky);
  color: var(--ink-on-sky);
  box-shadow: 0 18px 40px var(--shadow-on-sky);
}
body.theme-cosmic .ds-principles p,
body.theme-cosmic .ds-template-list span,
body.theme-cosmic .ds-note,
body.theme-cosmic .ds-type-strategy span,
body.theme-cosmic .ds-rule,
body.theme-cosmic .ds-type span,
body.theme-cosmic .ds-token-list code,
body.theme-cosmic .ds-swatches code,
body.theme-cosmic .ds-spacing code,
body.theme-cosmic .ds-type code{
  color: var(--muted-on-sky);
}
body.theme-cosmic .ds-note strong,
body.theme-cosmic .ds-principles h3,
body.theme-cosmic .ds-token-list strong,
body.theme-cosmic .ds-template-list strong,
body.theme-cosmic .ds-type-strategy strong{
  color: var(--ink-on-sky);
}
body.theme-cosmic .ds-note a,
body.theme-cosmic .ds-template-list em{
  color: var(--link-on-sky);
}
body.theme-cosmic .ds-template-list a{
  border-top-color: var(--star-accent-1);
}
body.theme-cosmic .ds-template-list a:hover{
  transform: translateY(-3px);
  border-top-color: var(--star-accent-2);
  box-shadow: 0 22px 48px var(--shadow-on-sky), 0 0 22px var(--card-glow);
}
body.theme-cosmic .ds-swatches span{
  border-color: var(--control-border-on-sky);
}
body.theme-cosmic .ds-spacing i{
  background: var(--star-accent-1);
  box-shadow: 0 0 18px var(--card-glow);
}
body.theme-cosmic .ds-page-hero-preview,
body.theme-cosmic .ds-hero-preview,
body.theme-cosmic .ds-statement-preview{
  border-color: var(--control-border-on-sky);
}
body.theme-cosmic .ds-page-hero-preview{
  background: var(--surface-on-sky);
}
body.theme-cosmic .ds-footer-preview{
  border-top-color: var(--line-on-sky);
}
body.theme-cosmic .ds-instagram-placeholder{
  background: var(--surface-on-sky);
  color: var(--muted-on-sky);
}

@media (prefers-reduced-motion: reduce){
  body.theme-cosmic .ds-template-list a{ transition: none; }
  body.theme-cosmic .ds-template-list a:hover{ transform: none; }
  .ds-motion-orbit::before,
  .ds-motion-rake::before,
  .ds-motion-twinkle::before{ animation: none; }
}
