@font-face {
  font-family: "TeX Gyre Heros";
  src: url("assets/fonts/texgyreheros-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TeX Gyre Heros";
  src: url("assets/fonts/texgyreheros-italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "TeX Gyre Heros";
  src: url("assets/fonts/texgyreheros-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TeX Gyre Heros";
  src: url("assets/fonts/texgyreheros-bolditalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #FFFDFA;
  --ink: #000000;
  --muted: #000000;
  --accent: #000000;
  --rule: #cbc8bd;
  --gutter: clamp(1.25rem, 5vw, 4.75rem);
  --body: "TeX Gyre Heros", Arial, sans-serif;
  --display: var(--body);
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.55 var(--body);
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p, h1, h2, h3 { margin: 0; }
section[id] { scroll-margin-top: 2rem; }

.wrap {
  width: min(100%, 90rem);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  transform: translateY(-200%);
  padding: .5rem 1rem;
  color: var(--ink);
  background: var(--paper);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 5.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}

.wordmark {
  font: 400 1rem/1.55 var(--body);
  letter-spacing: -.025em;
  text-decoration: none;
}



.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.8rem, 3vw, 2rem);
  font-size: .875rem;
}

.site-nav a, .site-footer a, .back-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .5rem;
  text-underline-offset: .28em;
}

.site-nav a:not(:hover), .site-footer a:not(:hover), .back-link:not(:hover) {
  text-decoration: none;
}

.hero {
  padding-block: clamp(3rem, 7vw, 7rem) clamp(3.5rem, 8vw, 7.5rem);
}

.kicker {
  color: var(--accent);
  font-size: .74rem;
  font-weight: 670;
  letter-spacing: .095em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1, .case-heading h1 {
  margin-block: 1.1rem 1.4rem;
  font: 400 clamp(3rem, 8.8vw, 9rem)/.94 var(--display);
  letter-spacing: -.065em;
}

.hero h1 em { color: var(--accent); }

.hero-description, .case-heading > p:last-child {
  max-width: 39ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.page-section {
  padding-block: 1.5rem clamp(4rem, 8vw, 7rem);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-bottom: 1.65rem;
}

.section-heading h2, .case-body h2 {
  font: 400 clamp(1.9rem, 3.6vw, 3rem)/1.08 var(--display);
  letter-spacing: -.04em;
}

.section-heading p, .project p, .studio-description > p:last-child {
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(1rem, 2vw, 2rem);
}

.project-link { display: block; text-decoration: none; }

.project-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: .9rem;
  margin-bottom: .25rem;
}

.project-heading h3, .studio-description h3 {
  font: 400 clamp(1.6rem, 3vw, 2.55rem)/1.1 var(--display);
  letter-spacing: -.04em;
}

.project-link:hover h3 { text-decoration: underline; text-underline-offset: .16em; }

.arrow { font-size: 1.35rem; color: var(--accent); }

.cover, .studio-art {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  aspect-ratio: 1.55;
}

.cover-caption {
  position: absolute;
  left: 1rem;
  bottom: .8rem;
  font: 600 .72rem/1.5 var(--body);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cover-loom {
  color: #000000;
  background: radial-gradient(ellipse at 50% 44%, #f7efff 10%, #d0bbef 62%, #b297e7 100%);
}

.orbit {
  position: absolute;
  width: 80%;
  aspect-ratio: 2.75;
  border: 1px solid #7255a8;
  border-radius: 50%;
}

.orbit-outer { transform: rotate(-21deg); }
.orbit-inner { width: 69%; transform: rotate(24deg); }

.record-symbol {
  position: relative;
  display: grid;
  width: 23%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #fff9ff;
  border-radius: 50%;
  background: linear-gradient(153deg, #fffaff 25%, #e5d3fc 90%);
  box-shadow: 0 .8rem 2rem #6945a648, inset 0 -2px 2px #7255a838;
}

.record-symbol span {
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fe998d, #ba392d 76%);
  box-shadow: 0 1px 3px #6b152a54;
}

.cover-poshmark {
  color: #000000;
  background: radial-gradient(ellipse at 53% 40%, #fbe5dc, #efb2b5 75%, #e49ca9);
}

.stream-window {
  position: absolute;
  width: 29%;
  aspect-ratio: .86;
  border-radius: 10%;
}

.stream-back {
  background: #7d2f50;
  border: 1px solid #512035;
  transform: translateX(-36%) rotate(-13deg);
  box-shadow: 0 .8rem 1.65rem #5b1d4343;
}

.stream-front {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7%;
  background: linear-gradient(157deg, #fff5ef, #fdd3c6);
  border: 1px solid #fff5ee;
  transform: translateX(32%) rotate(13deg);
  box-shadow: 0 .8rem 1.65rem #5b1d4343;
}

.stream-front span {
  width: 6%;
  height: 20%;
  border-radius: 999px;
  background: #9a3552;
}

.stream-front span:nth-child(2), .stream-front span:nth-child(4) { height: 32%; }
.stream-front span:nth-child(3) { height: 46%; }

.studio-project {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem clamp(1.5rem, 5vw, 5rem);
  background: #edeae0;
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

.studio-art {
  aspect-ratio: 1.85;
  background: radial-gradient(ellipse at 44% 49%, #e9edf8 16%, #c9d1e9 75%, #b6c0d7);
}

.studio-orb {
  position: absolute;
  width: 33%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(156deg, #fcffff, #bfc8dc 39%, #525e77 54%, #d6ddeb 83%, #fafbff);
  box-shadow: .75rem 1.25rem 2rem #3847664a;
}

.studio-art > span {
  position: relative;
  padding-bottom: .09em;
  color: #000000;
  font: 400 clamp(3rem, 10vw, 9rem)/1 var(--display);
  letter-spacing: -.105em;
}

.studio-description h3 { margin-top: .45rem; margin-bottom: .55rem; }
.studio-description > p:last-child { max-width: 35ch; }

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem clamp(1rem, 3vw, 2rem);
}

.about-copy, .case-body p { max-width: 59ch; color: var(--muted); }
.about-copy p + p { margin-top: 1rem; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 1rem;
  padding-block: 1rem 1.5rem;
  color: var(--muted);
  font-size: .875rem;
}


.case-study { padding-block: 1rem clamp(3rem, 6vw, 6rem); }
.back-link { color: var(--accent); font-size: .875rem; }
.case-heading { padding-block: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 3.5rem); }
.case-heading h1 { font-size: clamp(2.8rem, 7.5vw, 7rem); }
.case-cover { aspect-ratio: 2.65; }
.case-cover .orbit { width: 60%; aspect-ratio: 3.8; }
.case-cover .orbit-inner { width: 50%; }
.case-cover .record-symbol { width: 17%; }
.case-cover .stream-window { width: 19%; }
.case-body { display: grid; gap: 1.75rem; margin-top: clamp(2rem, 6vw, 4rem); }

.case-body section {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr);
  gap: .6rem 1rem;
}

@media (max-width: 42rem) {
  .site-header { min-height: 4.5rem; }
  .hero-break { display: none; }
  .hero h1 { max-width: 11ch; }
  .project-grid, .studio-project, .about, .case-body section { grid-template-columns: 1fr; }
  .studio-project { gap: 0; padding-right: 0; }
  .studio-description { padding: 1.25rem; }
  .about .section-heading { margin-bottom: 0; }
  .case-cover { aspect-ratio: 1.65; }
  .case-cover .stream-window { width: 25%; }
}

/* Illustrative covers for upcoming projects. */
.cover-viewer { background: #dfe5f6; color: #000000; }
.viewer-window { width: 58%; aspect-ratio: 1.6; background: #f6f4ff; border: 1px solid #a4aed2; border-radius: .7rem; display: grid; place-items: center; box-shadow: .7rem .9rem 0 #bdc9e8; transform: rotate(-5deg); }
.viewer-window > span { font-size: clamp(2rem, 5vw, 4rem); color: #000000; }
.viewer-window > div { width: 80%; height: 3px; background: linear-gradient(to right, #7360ae 38%, #d9d5e9 38%); margin-bottom: 1rem; }
.cover-consignment { background: #e5e7d5; color: #000000; }
.consignment-tag { width: 30%; aspect-ratio: .8; background: #f8f4e7; border: 1px solid #a8af91; border-radius: 25% 25% 4% 4%; transform: rotate(14deg); display: grid; place-items: center; font: 400 clamp(3rem, 7vw, 6rem)/1 var(--display); box-shadow: .7rem .8rem 0 #bbc3a4; }
.consignment-tag span { font: 1.5rem var(--body); }
.cover-bingo { background: #e5b343; color: #000000; }
.zine { width: 44%; aspect-ratio: .76; padding: 8% 3% 4%; background: #d9cce0; color: #000000; box-shadow: .6rem .7rem 0 #a17a30; transform: rotate(-8deg); display: flex; flex-direction: column; justify-content: space-between; }
.zine > span { font: 700 clamp(1.8rem, 4vw, 4rem)/1 var(--display); letter-spacing: -.06em; }
.zine small { font-size: clamp(.5rem, 1vw, .75rem); letter-spacing: .15em; }
.cover-quilts { background: #e8d8ca; color: #000000; }
.quilt-patchwork { width: 53%; aspect-ratio: 1.2; transform: rotate(7deg); background: repeating-conic-gradient(#883c37 0% 25%, #e9bd86 0% 50%, #616e59 0% 75%, #f5e9d5 0%) 0 0 / 25% 33.333%; border: .5rem solid #eee3d2; box-shadow: .5rem .6rem .8rem #59443c25; }

/* Static greeting with grain and uneven risograph ink coverage. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero .welcome-heading { max-width: 61rem; margin-block: 1.4rem 2rem; line-height: 1; letter-spacing: normal; }
.stitched-word { display: block; width: 100%; height: auto; overflow: visible; color: #1F31E3; }
/* Printable characters sampled from the artist's glitched PNG data. */
.code-word { overflow: hidden; }
.code-word text { font-family: var(--body); font-size: 7px; font-weight: 600; text-anchor: middle; dominant-baseline: central; fill: currentColor; }
.code-stitch { opacity: 1; }

/* Objects sit directly on the page, like pieces laid out in the studio. */
.studio-shelf { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2rem, 5vw, 4.5rem) 1rem; }
.studio-piece { min-width: 0; }
.studio-object { display: flex; align-items: center; justify-content: center; height: clamp(14rem, 27vw, 24rem); text-decoration: none; }
.studio-object img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 240ms ease; }
.studio-piece-zine img { width: 112%; max-width: 112%; height: 112%; transform: rotate(-7deg); }
.studio-piece-quilt img { width: 88%; height: 88%; transform: rotate(3deg); }
.studio-piece-painting img {
  height: auto;
  max-height: 85%;
  border-radius: 2px;
  transform: rotate(-5deg);
}
.studio-object:hover img, .studio-object:focus-visible img { transform: rotate(0deg) translateY(-5px); }
.studio-caption { margin-top: 2rem; text-align: center; }
.studio-caption h3 { font: 400 1.05rem/1.4 var(--body); letter-spacing: -.015em; }
.studio-caption p { margin-top: .3rem; font-size: .85rem; }
@media (max-width: 42rem) {
  .studio-shelf { grid-template-columns: 1fr; gap: 3rem; padding-block: 1.5rem; }
  .studio-object { height: 19rem; max-width: 22rem; margin-inline: auto; }
  .studio-caption { margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-object img { transition: none; }
  .studio-object:hover img, .studio-object:focus-visible img { transform: none; }
}

/* Two text styles across the site; the stitched greeting is artwork. */
:root {
  --type-text: 400 1rem/1.55 var(--body);
  --type-heading: 400 1.75rem/1.2 var(--body);
}
body, .wordmark, .site-nav, .kicker, .hero-description,
.case-heading > p:last-child, .site-footer, .back-link, .cover-caption,
.studio-caption p, .arrow {
  font: var(--type-text);
  letter-spacing: normal;
  text-transform: none;
}
.section-heading h2, .case-body h2, .project-heading h3,
.studio-description h3, .studio-caption h3, .case-heading h1 {
  font: var(--type-heading);
  letter-spacing: normal;
}
.about-copy em, .case-body em, .project p em { font-style: normal; }

.hero-description { max-width: none; }
.hero-description > span { display: block; }

/* Solid lettering with fine ink grain, like a single-color risograph impression. */
.printed-word { display: block; width: 75%; height: auto; overflow: visible; }

/* Four discrete frames: coarse, medium, fine, then the finished print. */
.intro-pixels, .intro-print { animation-duration: 1.2s; animation-timing-function: steps(1, end); animation-fill-mode: both; }
.intro-pixels-1 { animation-name: welcome-coarse; }
.intro-pixels-2 { animation-name: welcome-medium; }
.intro-pixels-3 { animation-name: welcome-fine; }
.intro-print { animation-name: welcome-focus; }
@keyframes welcome-coarse { 0% { opacity: 1; } 33.333%, 100% { opacity: 0; } }
@keyframes welcome-medium { 0% { opacity: 0; } 33.333% { opacity: 1; } 66.667%, 100% { opacity: 0; } }
@keyframes welcome-fine { 0%, 33.333% { opacity: 0; } 66.667% { opacity: 1; } 100% { opacity: 0; } }
@keyframes welcome-focus { 0% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .intro-pixels { animation: none; opacity: 0; }
  .intro-print { animation: none; opacity: 1; }
}

/* Hover moves from sharp to coarse and back without jumping between extremes. */
.printed-word.is-settled .intro-pixels { animation: none; opacity: 0; }
.printed-word.is-settled .intro-print { animation: none; opacity: 1; }
.printed-word.is-looping .intro-pixels,
.printed-word.is-looping .intro-print { animation-duration: 1.8s; animation-timing-function: steps(1, end); animation-iteration-count: infinite; animation-fill-mode: both; }
.printed-word.is-looping .intro-pixels-1 { animation-name: hover-coarse; }
.printed-word.is-looping .intro-pixels-2 { animation-name: hover-medium; }
.printed-word.is-looping .intro-pixels-3 { animation-name: hover-fine; }
.printed-word.is-looping .intro-print { animation-name: hover-focus; }
@keyframes hover-coarse { 0% { opacity: 0; } 50% { opacity: 1; } 66.667%, 100% { opacity: 0; } }
@keyframes hover-medium { 0% { opacity: 0; } 33.333% { opacity: 1; } 50% { opacity: 0; } 66.667% { opacity: 1; } 83.333%, 100% { opacity: 0; } }
@keyframes hover-fine { 0% { opacity: 0; } 16.667% { opacity: 1; } 33.333% { opacity: 0; } 83.333% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hover-focus { 0% { opacity: 1; } 16.667%, 83.333% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .printed-word.is-looping .intro-pixels { animation: none; opacity: 0; }
  .printed-word.is-looping .intro-print { animation: none; opacity: 1; }
}

.about { align-items: start; gap: 2rem clamp(2rem, 5vw, 5rem); }
.about-portrait img { display: block; width: 78%; max-width: 25rem; height: auto; margin: 2rem auto 0; }
.about-copy { padding-top: .35rem; }
@media (max-width: 42rem) {
  .about-portrait img { max-width: 25rem; margin-top: 1.5rem; }
}

/* A swallowtail cursor that beats its wings on clicks. */
.butterfly-cursor { position: fixed; left: 0; top: 0; width: 36px; height: 36px; z-index: 10000; pointer-events: none; visibility: hidden; will-change: transform; }
.butterfly-cursor.is-visible { visibility: visible; }
.butterfly-cursor span { position: absolute; inset: 0; background-image: var(--butterfly-image); background-size: contain; background-repeat: no-repeat; pointer-events: none; transform-origin: 50% 42%; }
.butterfly-left { clip-path: inset(0 50% 0 0);  }
.butterfly-right { clip-path: inset(0 0 0 50%);  }
.butterfly-body { clip-path: inset(22% 47% 42% 47%); }
@keyframes butterfly-beat {
  0%, 78%, 88%, 98%, 100% { transform: scaleX(1); }
  83%, 93% { transform: scaleX(.28); }
}
@media (hover: hover) and (pointer: fine) {
  html.butterfly-active, html.butterfly-active * { cursor: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .butterfly-left, .butterfly-right { animation: none; }
}
@media (forced-colors: active) {
  .butterfly-cursor { display: none; }
  html.butterfly-active, html.butterfly-active * { cursor: auto !important; }
}

.butterfly-cursor.is-flapping .butterfly-left,
.butterfly-cursor.is-flapping .butterfly-right { animation: butterfly-click-beat 500ms ease-in-out; }
@keyframes butterfly-click-beat {
  0%, 50%, 100% { transform: scaleX(1); }
  25%, 75% { transform: scaleX(.28); }
}
@media (prefers-reduced-motion: reduce) {
  .butterfly-cursor.is-flapping .butterfly-left,
  .butterfly-cursor.is-flapping .butterfly-right { animation: none; }
}

#work .cover-placeholder { background: #E5E5E5; border-radius: clamp(18px, 2.5vw, 32px); }

#work .project-heading h3 { font: 700 1rem/1.55 var(--body); letter-spacing: normal; }

#work .project-grid {
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: clamp(3rem, 6vw, 5rem);
  padding-top: 1rem;
}
#work .project-heading { padding-top: 1.5rem; }

/* Simple footer on the page background. */
.site-footer { padding-block: 2rem; background: var(--paper); color: var(--ink); }

.studio-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.studio-piece-orange img { width: 74%; height: 78%; transform: rotate(4deg); }
@media (min-width: 42.01rem) and (max-width: 58rem) {
  .studio-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
}
@media (max-width: 42rem) {
  .studio-shelf { grid-template-columns: 1fr; gap: 3rem; }
}

/* Slightly smaller objects keep more open space in the Studio row. */
.studio-object img { scale: .88; }
.studio-modal { width: min(90vw, 64rem); max-width: calc(100% - 2rem); max-height: 90dvh; padding: 1rem; border: 0; border-radius: 8px; background: var(--paper); color: #000; }
.studio-modal::backdrop { background: #0009; }
.modal-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.modal-heading h2 { font: var(--type-text); }
.modal-close { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem .75rem; border: 1px solid #d6d3ce; border-radius: 4px; background: transparent; color: #000; font: var(--type-text); }
.modal-close:focus-visible { outline: 2px solid #1F31E3; outline-offset: 3px; }
.modal-artwork { display: block; width: 100%; height: auto; max-height: calc(90dvh - 6rem); object-fit: contain; }
html.studio-modal-open { overflow: hidden; }
html.studio-modal-open .butterfly-cursor { visibility: hidden; }
html.butterfly-active .studio-modal, html.butterfly-active .studio-modal * { cursor: auto !important; }
html.butterfly-active .studio-modal button { cursor: pointer !important; }

.modal-heading { justify-content: flex-end; }
.modal-close { border: 0; padding: .5rem; width: 44px; justify-content: center; font-size: 1.5rem; }

/* Preserve the photo cutout while stepping through four pixel resolutions. */
.portrait-pixels { position: relative; width: 68.25%; max-width: 21.875rem; margin: 2rem auto 0; }
.about-portrait .portrait-pixels img { width: 100%; max-width: none; margin: 0; }
.portrait-pixels canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.portrait-pixels.is-pixelated img { opacity: 0; }
@media (max-width: 42rem) { .portrait-pixels { margin-top: 1.5rem; } }

.butterfly-cursor.is-departing .butterfly-left,
.butterfly-cursor.is-departing .butterfly-right { animation: butterfly-flight-beat 180ms ease-in-out infinite; }
@keyframes butterfly-flight-beat { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.22); } }
@media (prefers-reduced-motion: reduce) {
  .butterfly-cursor.is-departing span { animation: none; }
}

/* Motion preferences also cover active animations and native cursor visibility. */
@media (prefers-reduced-motion: reduce) {
  .butterfly-cursor { display: none !important; }
  .butterfly-cursor span { animation: none !important; }
  html.butterfly-active, html.butterfly-active * { cursor: revert !important; }
  .portrait-pixels canvas { display: none !important; }
  .portrait-pixels.is-pixelated img { opacity: 1; }
  .studio-object img { transition: none !important; }
}

.preview-toggle { position: absolute; right: .75rem; bottom: .75rem; min-width: 64px; min-height: 44px; padding: .5rem .75rem; border: 1px solid #0003; border-radius: 6px; background: #FFFDFA; color: #000; font: var(--type-text); cursor: pointer; }
.preview-toggle[hidden] { display: none; }
.preview-toggle:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

/* Keep playback controls discoverable for touch and keyboard users. */
@media (hover: hover) and (pointer: fine) {
  :is(.viewer-preview, .desktop-preview) .preview-toggle { opacity: 0; pointer-events: none; }
  :is(.viewer-preview, .desktop-preview):hover .preview-toggle,
  :is(.viewer-preview, .desktop-preview):focus-within .preview-toggle { opacity: 1; pointer-events: auto; }
}

.viewer-preview > img { transform: scale(1.15); }
.preview-toggle { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; padding: 10px; border: 0; border-radius: 50%; background: transparent; color: rgb(255 255 255 / 80%); filter: drop-shadow(0 1px 3px #0009); }
.preview-toggle svg { display: block; width: 44px; height: 44px; fill: currentColor; }
.preview-toggle .preview-pause { display: none; }
.preview-toggle[data-playing="true"] .preview-play { display: none; }
.preview-toggle[data-playing="true"] .preview-pause { display: block; }
.preview-toggle:focus-visible { outline: 2px solid white; outline-offset: 3px; box-shadow: 0 0 0 5px #000; }

#work .desktop-preview { background: url("assets/work/loom-desktop-background.png") center / cover no-repeat; }
.desktop-window { width: 72%; border-radius: clamp(6px, 1vw, 12px); overflow: hidden; box-shadow: 0 8px 24px #132e6440; }
.desktop-window img { display: block; width: 100%; height: auto; }
