:root {
  --bg: #ffffff;
  --text: #111111;
  --text-muted: #666666;
  --placeholder: #eaeaea;
  --border: rgba(0, 0, 0, 0.12);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --view-fade: 800ms;
  --gutter: clamp(1rem, 3vw, 2rem);
  --header-height: calc(3.5rem + 20px);
  --image-top-offset: 50px;
  --full-image-scale: 0.8;
  --transition: 200ms ease;
}

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

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 20px var(--gutter) 0;
  background: var(--bg);
}

.logo {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.site-nav {
  display: none;
  gap: 0.875rem;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 400;
  transition: color var(--transition), opacity var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  opacity: 1;
}

.site-nav a.is-active {
  color: var(--text);
  font-weight: 700;
  opacity: 1;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 1px;
  margin-inline: auto;
  background: currentColor;
  transition: transform var(--transition);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 1rem 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 400;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--text);
  opacity: 1;
}

.mobile-nav a.is-active {
  color: var(--text);
  font-weight: 700;
  opacity: 1;
}

main {
  padding-top: var(--header-height);
  min-height: calc(100svh - var(--header-height));
}

.view[hidden] {
  display: none !important;
}

.view {
  opacity: 0;
  transition: opacity var(--view-fade) ease;
  will-change: opacity;
}

.view.is-visible {
  opacity: 1;
}

.featured {
  position: relative;
  height: calc(100svh - var(--header-height));
  min-height: 24rem;
  background: var(--bg);
}

.featured-media {
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
}

.featured-slides {
  position: absolute;
  inset: 0;
}

.featured-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--view-fade) ease;
  background: var(--bg);
}

.featured-slide.is-active {
  opacity: 1;
}

.featured-slide img,
.featured-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.featured-slide video {
  background: var(--bg);
}

.featured-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}

.featured-dots[hidden] {
  display: none;
}

.featured-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: background var(--transition);
}

.featured-dot.is-active {
  background: var(--text);
}

.featured-dot:hover,
.featured-dot:focus-visible {
  background: var(--text);
  outline: none;
}

.project-gallery {
  position: relative;
  height: calc(100svh - var(--header-height));
  min-height: 24rem;
  background: var(--bg);
}

.gallery-slides {
  position: absolute;
  inset: 0;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transition: opacity 400ms ease;
  background: var(--bg);
}

.gallery-slide.is-active {
  opacity: 1;
}

.gallery-slide img,
.gallery-slide video {
  width: calc(100% * var(--full-image-scale));
  height: calc(100% * var(--full-image-scale));
  max-width: calc(100% * var(--full-image-scale));
  max-height: calc(100% * var(--full-image-scale));
  object-fit: contain;
  object-position: top center;
}

.gallery-slide--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
}

.gallery-nav {
  position: absolute;
  top: 0;
  bottom: 4.5rem;
  width: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.gallery-nav--prev {
  left: 0;
}

.gallery-nav--next {
  right: 0;
}

.gallery-ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 2rem var(--gutter);
  pointer-events: none;
}

.gallery-back {
  grid-column: 1;
  justify-self: start;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: flex-end;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  pointer-events: auto;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: opacity var(--transition);
}

.gallery-back:hover,
.gallery-back:focus-visible {
  opacity: 0.55;
}

.gallery-link[hidden] {
  display: none !important;
}

.gallery-link {
  grid-column: 2;
  justify-self: center;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: flex-end;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  pointer-events: auto;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: opacity var(--transition);
}

.gallery-link:hover,
.gallery-link:focus-visible {
  opacity: 0.55;
  color: var(--text);
}

.gallery-counter {
  grid-column: 3;
  justify-self: end;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: flex-end;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.5rem 0;
  pointer-events: auto;
  font-size: 13px;
  letter-spacing: 0.04em;
}

#works,
#category {
  padding: 3rem var(--gutter) 4rem;
}

#category-grid-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-height) - 7rem);
}

.category-ui {
  margin-top: auto;
  padding-top: 2rem;
}

#category.category--slideshow {
  padding: 0;
  height: calc(100svh - var(--header-height));
  overflow: hidden;
}

#category.category--slideshow #category-grid-wrap {
  display: none !important;
}

.category-slideshow {
  height: 100%;
  min-height: 0;
  background: var(--bg);
}

.category-slideshow .featured-slide img,
.category-slideshow .featured-slide video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  flex: 0 0 auto;
  align-self: flex-start;
  object-fit: contain;
  object-position: top center;
}

.works-label {
  margin: 0 0 2rem;
  font-size: 13px;
  color: var(--text-muted);
}

.works-label span {
  color: var(--text);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.25rem;
}

.project-item {
  display: block;
  transition: opacity var(--transition);
}

.project-item:hover,
.project-item:focus-visible {
  opacity: 0.65;
}

.project-thumb {
  aspect-ratio: 1 / 1;
  margin-bottom: 0.75rem;
  background: transparent;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.project-thumb:has(img[src*="LOGOS/"]) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb img[src*="SWOOSH"] {
  width: 75%;
  height: 75%;
}

.project-thumb img[src*="Apple_logo_black"] {
  width: 37.5%;
  height: 37.5%;
}

.project-thumb img[src*="ATV-J42.jpg"] {
  width: 150%;
  height: 150%;
}

.project-thumb:has(img[src*="WATCH023.png"]) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb img[src*="WATCH023.png"] {
  width: 150%;
  height: 150%;
}

.project-thumb img[src*="4_WINE.png"] {
  width: 120%;
  height: 120%;
}

.project-thumb--multi {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb-logos {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

.project-thumb-logos img {
  width: auto;
  height: 42%;
  max-width: 42%;
  object-fit: contain;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  padding-bottom: 0;
  border-bottom: 0.25pt solid rgba(0, 0, 0, 0.5);
  font-size: 13px;
}

.project-name {
  font-weight: 700;
}

.project-category {
  color: var(--text-muted);
}

.project-count {
  margin-left: auto;
  color: var(--text-muted);
}

#about {
  width: 100%;
  padding: 4rem var(--gutter) 5rem;
}

.about-inner {
  width: 100%;
  max-width: 32rem;
  margin-left: auto;
  text-align: left;
}

.about-bio {
  margin: 0 0 3rem;
  max-width: none;
  font-size: clamp(calc(1rem - 2px), calc(2vw - 2px), calc(1.15rem - 2px));
  line-height: 1.45;
  text-align: left;
}

.about-contact {
  margin: 0;
  display: grid;
  gap: 1.75rem;
  justify-items: start;
  max-width: 32rem;
}

.about-contact div {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  text-align: left;
}

.about-contact dt {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.about-contact dd {
  margin: 0;
  font-size: 13px;
}

.about-contact a {
  display: inline-block;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.4);
  transition: color var(--transition);
}

.about-contact a:hover,
.about-contact a:focus-visible {
  color: var(--text);
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .project-grid {
    grid-template-columns: repeat(4, minmax(0, 334px));
    gap: 1.25rem;
  }

  .project-item {
    max-width: 334px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view {
    transition: none;
  }
}
