@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-extra-light.ttf") format("truetype");
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../work/sunny-side-cafe/fonts/dmsans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: light;
  --text: #171717;
  --muted: #727272;
  font: 17px/1.25 Georgia, "Times New Roman", serif;
  color: var(--text);
  background: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 1px solid #555; outline-offset: 3px; }
.shell { margin-inline: clamp(20px, 2.2vw, 40px); }
.skip { position: fixed; top: -100px; z-index: 5; padding: 12px; background: white; }
.skip:focus { top: 0; }
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 24px; min-height: 42px; padding-block: 12px; }
.wordmark { font-size: 20px; font-weight: 400; letter-spacing: -.035em; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
nav a, footer a { display: inline-flex; align-items: center; min-height: 40px; }
nav a { color: var(--muted); }
nav a:hover, nav a[aria-current] { color: var(--text); }
.contact { font-style: italic; }
.collection-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 20px; padding-block: 28px 42px; }
.page-title { margin: 0; font: inherit; color: var(--muted); }
.controls { display: flex; align-items: start; gap: 22px; position: relative; z-index: 2; }
.controls details { position: relative; }
.controls summary { min-height: 36px; display: flex; align-items: center; list-style: none; }
.controls summary::-webkit-details-marker { display: none; }
.controls summary::after { content: "+"; margin-left: 8px; color: var(--muted); }
.controls details[open] summary::after { content: "−"; }
.controls details > label { position: absolute; top: 36px; right: 0; padding: 16px; width: min(290px, calc(100vw - 28px)); background: white; border: 1px solid #ccc; font-size: 15px; }
.controls input, .controls select { display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 8px; background: white; border: 1px solid #aaa; border-radius: 0; }
.controls fieldset { display: flex; gap: 14px; border: 0; margin: 0 0 0 12px; padding: 0; }
.controls legend, .results { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.controls button { padding: 0; min-height: 36px; border: 0; background: transparent; color: var(--muted); }
.controls button[aria-pressed="true"] { color: var(--text); }
.controls button:hover { text-decoration: underline; text-underline-offset: 4px; }
.results.is-empty { position: static; width: auto; height: auto; clip-path: none; padding-block: 20px; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 88px 56px; list-style: none; margin: 0; padding: 0; }
.projects > li { min-width: 0; }
.project { display: block; position: relative; }
.media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eee; filter: grayscale(1); transition: filter .25s ease; }
.media img, .media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-top img { object-position: top; }
.project:is(:hover, :focus-visible) .media { filter: grayscale(0); }
.media video { position: absolute; inset: 0; opacity: 0; }
.media video.is-playing { opacity: 1; }
.caption { position: static; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 12px 0 0; font-family: "DM Sans", sans-serif; }
.caption h2 { margin: 0; font: 300 13px/1.45 "DM Sans", sans-serif; letter-spacing: .01em; }
.caption p { grid-column: 1; margin: 0; font-size: 12px; font-weight: 200; line-height: 1.6; letter-spacing: .025em; color: #737373; }
.caption > span { grid-column: 2; grid-row: 1 / 3; font-size: 13px; color: #727272; }
.projects.is-list { grid-template-columns: 1fr; gap: 0; }
.is-list .supplemental, .is-list .media { display: none; }
.is-list .caption { position: static; opacity: 1; grid-template-columns: 1fr 1fr auto; align-items: center; padding: 14px 0; border-bottom: 1px solid #ddd; }
.is-list .caption h2 { font-size: 14px; }
.is-list .caption p { font-size: 12px; }
.is-list .caption p { grid-column: 2; }
.is-list .caption > span { grid-column: 3; grid-row: 1; }
.detail-header { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-block: 8px 14px; }
.detail-header h1 { margin: 0; font-size: 25px; font-weight: 400; letter-spacing: -.025em; }
.detail-header nav { gap: 24px; }
.detail-media { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 6px; }
.detail-media a { display: block; min-width: 0; }
.detail-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #eee; }
.page-caption { display: block; padding-block: 6px 12px; font-size: 13px; color: var(--muted); text-transform: capitalize; }
.website-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.website-gallery img { aspect-ratio: auto; height: auto; }
footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 80px; padding-block: 20px; border-top: 1px solid #ddd; color: var(--muted); font-size: 14px; }
@media (max-width: 700px) {
  .shell { margin-inline: 16px; }
  .site-header { gap: 0 18px; }
  nav { gap: 14px; font-size: 15px; }
  .collection-head { gap: 8px 20px; padding-block: 20px 32px; }
  .page-title { font-size: 15px; }
  .controls { gap: 16px; font-size: 15px; }
  .controls fieldset { margin-left: 4px; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 28px; }
  .detail-media, .website-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-head { align-items: start; flex-direction: column; }
  .controls details > label { left: 0; right: auto; }
  .filter-control > label { left: -75px !important; }
  .detail-header nav { gap: 16px; }
  .website-gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

body.project-open { overflow: hidden; }
#project-detail {
  position: fixed;
  inset: 0;
  width: calc(100% - 32px);
  max-width: 1680px;
  height: calc(100% - 48px);
  max-height: none;
  margin: auto;
  padding: 0 16px 20px;
  border: 1px solid #dedede;
  background: white;
  color: var(--text);
  overscroll-behavior: contain;
}
#project-detail::backdrop { background: #ffffffdf; }
.detail-header { position: sticky; top: 0; z-index: 1; padding-block: 8px; background: white; }
.detail-header button { border: 0; padding: 6px 0; min-height: 40px; background: none; font: inherit; cursor: pointer; }
.detail-preview { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: zoom-in; }
.detail-media .detail-preview img { aspect-ratio: 16 / 10; object-position: top; }
.detail-media.is-zoomed { display: block; }
.detail-media.is-zoomed .detail-preview:not(.is-enlarged) { display: none; }
.detail-media .is-enlarged { max-width: 1200px; margin-inline: auto; cursor: zoom-out; }
.detail-media .is-enlarged img { height: auto; aspect-ratio: auto; }
@media (max-width: 560px) {
  #project-detail { width: calc(100% - 12px); height: calc(100% - 20px); padding-inline: 10px; }
  .detail-header h1 { font-size: 20px; }
  .detail-header nav { font-size: 15px; gap: 18px; }
}
@media (max-width: 700px) {
  .collection-head .controls { width: 100%; }
  .controls fieldset { margin-left: auto; }
  .controls details > label { left: 0; right: auto; }
  .filter-control > label { left: -75px; }
}

.projects .media { aspect-ratio: 16 / 9; }
#project-detail { background: #fafaf8; }
#project-detail .detail-header { background: #fafaf8; }
.detail-media, .detail-media.website-gallery {
  display: block;
  position: relative;
  width: min(800px, 72vw, calc((100dvh - 240px) * 1.6));
  aspect-ratio: 16 / 10;
  margin: clamp(30px, 7vh, 90px) auto 40px;
  isolation: isolate;
}
.detail-media .detail-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(10px, 1.2vw, 18px);
  border: 1px solid #d8d8d2;
  background: #fff;
  box-shadow: 0 18px 40px #00000012;
  transform-origin: 50% 85%;
  transition: transform .5s cubic-bezier(.22,.7,.25,1), box-shadow .5s;
}
.detail-media .detail-preview img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; object-position: center; }
.detail-preview[data-depth="0"] { z-index: 3; transform: none; }
.detail-preview[data-depth="1"] { z-index: 2; transform: translate(5%, 3%) rotate(3deg) scale(.97); }
.detail-preview[data-depth="2"] { z-index: 1; transform: translate(10%, 6%) rotate(6deg) scale(.94); }
.detail-preview:disabled { opacity: 1; cursor: default; }
.image-navigation { display: flex; justify-content: center; align-items: center; gap: 24px; padding-block: 14px 24px; position: relative; }
.image-navigation button { padding: 8px; min-width: 44px; min-height: 44px; border: 0; background: none; }
.image-navigation button:disabled { color: #b5b5b0; cursor: default; }
#image-counter { font-size: 14px; min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; color: #666; }
#image-expand { margin-left: 16px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.detail-media.is-zoomed {
  width: min(1150px, 100%);
  aspect-ratio: auto;
  margin-block: 20px;
}
.detail-media.is-zoomed .is-enlarged {
  display: block;
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  transform: none;
  cursor: zoom-out;
}
.detail-media.is-zoomed .is-enlarged img { height: auto; object-fit: contain; }
@media (max-width: 560px) {
  .detail-media, .detail-media.website-gallery { width: calc(100vw - 100px); margin-top: 50px; margin-bottom: 30px; }
  .detail-media.is-zoomed { width: 100%; margin-top: 16px; }
  .image-navigation { gap: 10px; }
  #image-expand { margin-left: 4px; }
  .detail-header nav { gap: 14px; }
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-300.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-300-italic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
.wordmark { font: 500 27px/1.1 "Cormorant Garamond", serif; letter-spacing: -.035em; }
.site-header nav, .controls, .page-title {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .025em;
}
.collection-head { padding-block: 34px 48px; }
.projects {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 72px 40px;
}
#about-us { max-width: 390px; scroll-margin-top: 28px; }
#about-title {
  margin: -5px 0 24px;
  font: italic 300 36px/1.1 "Cormorant Garamond", serif;
  letter-spacing: -.025em;
}
.studio-statement {
  margin: 0;
  font: 300 clamp(25px, 2.2vw, 34px)/1.22 "Cormorant Garamond", serif;
  letter-spacing: -.015em;
}
.studio-description {
  max-width: 32ch;
  margin: 22px 0 0;
  font: 300 13px/1.9 "DM Sans", sans-serif;
  color: #66655f;
}
.projects.is-list { grid-template-columns: 1fr; }
@media (max-width: 1000px) {
  .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; }
  #about-us { max-width: 650px; }
  .studio-statement { font-size: 32px; }
  .studio-description { max-width: 52ch; }
}
@media (max-width: 560px) {
  .wordmark { font-size: 25px; }
  .site-header nav { font-size: 12px; }
  .collection-head { padding-block: 24px 32px; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 24px; }
  #about-title { font-size: 32px; margin-bottom: 18px; }
  .studio-statement { font-size: 29px; }
  .studio-description { font-size: 13px; margin-top: 16px; }
}

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, .35fr) minmax(0, .65fr);
  align-items: start;
  gap: 64px;
}
.studio-intro { padding-top: 120px; }
#work { min-width: 0; }
#work .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 32px; }
#work .projects.is-list { grid-template-columns: 1fr; }
@media (max-width: 1100px) {
  .portfolio-layout { gap: 40px; }
  #work .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 28px; }
  #work .projects.is-list { grid-template-columns: 1fr; }
  .studio-statement { font-size: 29px; }
}
@media (max-width: 700px) {
  .portfolio-layout { grid-template-columns: minmax(0, .35fr) minmax(0, .65fr); gap: 24px; }
  .studio-intro { padding-top: 88px; }
  #about-title { font-size: 28px; margin-bottom: 16px; }
  .studio-statement { font-size: 23px; line-height: 1.3; }
  .studio-description { font-size: 12px; line-height: 1.8; }
  .portfolio-layout .collection-head { padding-block: 24px; }
  .portfolio-layout .controls { flex-wrap: wrap; gap: 8px 16px; }
  .portfolio-layout .controls fieldset { margin-left: 0; }
  #work .projects { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 700px) {
  .portfolio-layout .controls details > label { width: min(290px, calc(65vw - 38px)); }
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-200.ttf") format("truetype");
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-300.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
#about-title {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-size: 27px;
  font-weight: 300;
  letter-spacing: -.035em;
}
.studio-statement {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(21px, 1.8vw, 27px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -.025em;
}
.studio-description {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.9;
}
@media (max-width: 700px) {
  #about-title { font-size: 20px; }
  .studio-statement { font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
  .studio-description { font-size: 11px; overflow-wrap: anywhere; }
}


.portfolio-layout {
  grid-template-columns: repeat(20, minmax(0, 1fr));
  column-gap: 0;
  row-gap: 0;
}
.portfolio-layout > .collection-head {
  grid-column: 8 / -1;
  grid-row: 2;
  padding-block: 28px 36px;
}
.studio-intro {
  grid-column: 1 / span 13;
  grid-row: 1;
  padding: 88px 32px 36px;
  min-width: 0;
}
#about-us { width: 100%; max-width: none; }
#about-title { margin-top: 0; }
.studio-statement, .studio-description { max-width: none; text-align: left; }
#work { grid-column: 8 / -1; grid-row: 3; }
@media (max-width: 700px) {
  .studio-intro { padding: 56px 4px 24px; }
  .portfolio-layout > .collection-head { padding-block: 24px; }
}
