/* Reset (Meyer) */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ""; content: none; }
table { border-collapse: collapse; border-spacing: 0; }

html {
  color-scheme: dark;
}

html * { box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --text: #f5f3ef;
  --muted: #8a8a8a;
  --border: #2a2a2a;
  --accent-01: #7ba3c9;
  --accent-02: #f9331d;
  --accent-03: #ef8db5;
  --accent-04: #cfd5db;
  --accent-05: #e6ecc6;
  --accent-06: #ffcb1c;
  --accent-07: #baddee;
  --accent-08: #d4a574;
  --accent-09: #f2efe5;
  --accent-10: #c4b5d4;
  --accent-11: #a8c686;
  --accent-12: #ecd5d6;
}

body {
  font-family: "Switzer", sans-serif;
  color: var(--text);
  background: var(--bg);
  cursor: none;
}

body.has-native-cursor,
body.has-native-cursor * {
  cursor: auto;
}

.container {
  width: min(1600px, 96vw);
  margin: 0 auto;
}

/* Nav */
nav.container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 1rem;
}

body:not(.home-page) nav h1 {
  width: auto;
  font-size: 0.9rem;
  line-height: 1;
  text-transform: uppercase;
}

nav h1 {
  width: 60%;
  font-size: 1.2rem;
  line-height: 120%;
}

nav h1 a {
  text-decoration: none;
  color: var(--text);
  font-family: "Instrument Serif", "Canela", serif;
  font-style: italic;
}

nav h1 a:hover {
  text-decoration: underline;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5rem 2rem;
}

nav ul li a {
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  display: block;
  font-size: 0.9rem;
}

nav ul li a:hover {
  text-decoration: underline;
  text-decoration-color: var(--muted);
}

.current-page {
  text-decoration: underline;
}

.current-page a {
  font-family: "Switzer", sans-serif;
  font-style: normal;
}

/* Type */
h2 {
  font-size: 1.15rem;
  line-height: 120%;
}

h3 {
  font-size: 0.8rem;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 0.9rem;
  line-height: 120%;
  font-family: "Instrument Serif", "Canela", serif;
  font-style: italic;
  text-transform: uppercase;
  text-decoration: underline;
  margin-bottom: 0.5rem;
}

p {
  font-size: 0.9rem;
  line-height: 120%;
}

img, video {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}

/* Selected grid */
.selected {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

.selected figure {
  margin-bottom: 1rem;
}

.selected figure h3 {
  background: transparent;
}

.selected figure a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.selected figure a img,
.selected figure a video {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  height: auto;
  width: 100%;
  display: block;
  border: 1px solid var(--border);
}

.selected figure img:hover,
.selected figure video:hover {
  border-color: var(--project-accent, var(--text));
}

.selected figure figcaption {
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.project-at-glance {
  flex: 1;
  min-width: 0;
}

.project-tag-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.project-tag {
  color: var(--muted);
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--muted);
  margin-bottom: 0.5rem;
}

.selected figure figcaption > p {
  width: 50%;
  flex-shrink: 0;
  text-align: right;
}

.project-01 { --project-accent: var(--accent-01); }
.project-02 { --project-accent: var(--accent-02); }
.project-03 { --project-accent: var(--accent-03); }
.project-04 { --project-accent: var(--accent-04); }
.project-05 { --project-accent: var(--accent-05); }
.project-06 { --project-accent: var(--accent-06); }
.project-07 { --project-accent: var(--accent-07); }
.project-08 { --project-accent: var(--accent-08); }
.project-09 { --project-accent: var(--accent-09); }
.project-10 { --project-accent: var(--accent-10); }
.project-11 { --project-accent: var(--accent-11); }
.project-12 { --project-accent: var(--accent-12); }

/* Other work callout */
.side-work {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(280px, 1fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: clamp(5rem, 10vw, 10rem) auto 4rem;
}

.side-work__images {
  display: grid;
  gap: 1rem;
}

.side-work__images img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
}

.side-work__copy {
  max-width: 32rem;
}

.side-work__copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.side-work__copy p {
  font-size: 1rem;
  line-height: 1.5;
}

.side-work__copy p + p {
  margin-top: 1rem;
}

.side-work__button {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--text);
  border-radius: 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.side-work__button:hover {
  color: var(--bg);
  background: var(--text);
}

/* Experiments */
.experiments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

.experiments-grid a {
  display: block;
}

/* Other work gallery */
.other-work-masthead {
  width: min(32rem, 90%);
  margin: clamp(2.5rem, 5vw, 4rem) auto clamp(3rem, 5vw, 4.5rem);
  text-align: center;
}

.other-work-masthead__title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--text);
  text-align: left;
}

.other-work-masthead__title h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.9;
}

.other-work-masthead__title > span {
  font-size: 1.25rem;
}

.other-work-masthead__title p {
  font-size: 0.9rem;
  line-height: 1.15;
}

.other-work-masthead__subtitle {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.other-work-group {
  margin-bottom: clamp(5rem, 10vw, 9rem);
}

.other-work-group h3 {
  color: var(--text);
  margin-bottom: 1rem;
}

.other-work-group h3 a {
  color: inherit;
  text-decoration: none;
}

.other-work-group h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--muted);
}

.other-work-coming-soon {
  color: var(--muted);
}

.other-work-grid {
  columns: 4;
  column-gap: 0.5rem;
}

.other-work-grid figure {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

.other-work-grid img {
  width: 100%;
  height: auto;
}

.other-work-grid--rows {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  columns: auto;
  align-items: stretch;
}

.other-work-grid--rows figure {
  grid-column: span 3;
  margin-bottom: 0;
}

.other-work-grid--rows figure:nth-last-child(3):nth-child(4n + 1),
.other-work-grid--rows figure:nth-last-child(3):nth-child(4n + 1) ~ figure {
  grid-column: span 4;
}

.other-work-grid--rows img {
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 0;
}

.other-work-grid--portrait img {
  aspect-ratio: 3 / 4;
}

.other-work-grid--natural {
  display: block;
  columns: 4;
  column-gap: 0;
}

.other-work-grid--natural figure {
  margin: 0;
}

.other-work-grid--natural img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

/* About / info */
.about {
  margin-top: 4rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.about-page-text {
  width: min(40%, 520px);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-page-text a {
  text-decoration: none;
  color: var(--text);
}

.about-page-text a:hover {
  text-decoration: underline;
}

.about-melissa,
.about-amy {
  margin-bottom: 0;
}

.about-page-text p + p {
  margin-top: 1rem;
}

.about-page-images {
  width: min(33%, 420px);
  margin-left: auto;
}

.about-page-images img {
  margin-bottom: 0.5rem;
}

.about-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-block p {
  line-height: 140%;
}

/* Project case study */
.project-header {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 2rem;
  gap: 1rem;
  align-items: baseline;
}

.project-header h3 {
  background: transparent;
}

.hero-image {
  margin-bottom: 1rem;
}

.hero-image + .project-takeaway {
  margin-top: 2rem;
}

.project-header + .other-work-grid,
.hero-image + .other-work-grid {
  margin: 2rem 0;
}

.hero-image img,
.hero-image video,
.hero-image iframe {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
}

.hero-image iframe {
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border: 0;
}

.project-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.media-supporting-text {
  max-width: 62rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.5;
}

.project-overview {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 4rem;
}

.project-overview .description {
  grid-column: 1 / 3;
}

.project-overview .description p + p {
  margin-top: 1rem;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-overview--stacked {
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

.project-overview--stacked .description {
  grid-column: auto;
}

.project-overview--stacked .project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.project-takeaway {
  max-width: 62rem;
  margin: -1rem 0 4rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.project-takeaway > p:last-child {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.35;
}

.project-media-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.project-media-stack .media-unit {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.project-media-stack .media-caption {
  font-size: 0.9rem;
}

.project-media-stack iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.project-next-row {
  display: flex;
  justify-content: flex-end;
  margin: 2rem 0 1rem;
}

.project-next-row a {
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}

.project-next-row a:hover {
  text-decoration: underline;
  text-decoration-color: var(--muted);
}

/* Footer */
footer.container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

footer p {
  font-size: 0.9rem;
  text-transform: uppercase;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

footer ul li a {
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  display: block;
  font-size: 0.9rem;
}

footer ul li a:hover {
  text-decoration: underline;
  text-decoration-color: var(--muted);
}

footer .site-note {
  width: 100%;
  color: var(--muted);
  text-transform: none;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 15px;
  height: 15px;
  border: 1px solid var(--text);
  border-radius: 50%;
  background: var(--bg);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  left: -100px;
  top: -100px;
  transition:
    width 0.2s ease,
    height 0.2s ease,
    border-color 0.2s ease;
}

.cursor-hover {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor { display: none; }

  nav.container {
    flex-direction: column;
    gap: 2rem;
  }

  body:not(.home-page) nav.container {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }

  nav h1 { width: 100%; }

  .selected {
    grid-template-columns: 1fr;
  }

  .selected figure figcaption {
    flex-direction: column;
  }

  .selected figure figcaption > p {
    width: 100%;
  }

  .side-work {
    grid-template-columns: 1fr;
  }

  .side-work__copy {
    max-width: none;
  }

  .other-work-grid {
    columns: 2;
  }

  .other-work-grid--rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    columns: auto;
  }

  .other-work-grid--rows figure,
  .other-work-grid--rows figure:nth-last-child(3):nth-child(4n + 1),
  .other-work-grid--rows figure:nth-last-child(3):nth-child(4n + 1) ~ figure {
    grid-column: auto;
  }

  .other-work-grid--natural {
    display: block;
    columns: 2;
  }

  .experiments-grid {
    grid-template-columns: 1fr;
  }

  .about-page-text,
  .about-page-images {
    width: 100%;
  }

  .project-overview {
    grid-template-columns: 1fr;
  }

  .project-overview .description {
    grid-column: auto;
  }

  .project-header {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor { display: none; }
}

@media (max-width: 520px) {
  .project-overview--stacked .project-meta {
    grid-template-columns: 1fr;
  }

  .other-work-grid {
    columns: 1;
  }

  .other-work-grid--rows {
    grid-template-columns: 1fr;
    columns: auto;
  }

  .other-work-grid--natural {
    display: block;
    columns: 1;
  }
}
