/* Homepage cold load */
html.local-page-load {
  overflow: hidden !important;
}

.local-page-load main {
  animation: local-load-slide-up 840ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.local-page-load header {
  animation: local-load-nav-fade 840ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes local-load-slide-up {
  from { transform: translate3d(0, 100vh, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes local-load-nav-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Portfolio gallery controls */
main {
  view-transition-name: page-content;
}

header {
  view-transition-name: site-header;
}

::view-transition-group(site-header),
::view-transition-old(site-header),
::view-transition-new(site-header) {
  animation: none !important;
}

::view-transition-group(page-content) {
  animation-duration: 560ms;
  animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

::view-transition-old(page-content) {
  animation: local-page-fade-out 560ms linear both;
}

::view-transition-new(page-content) {
  animation: local-page-slide-up 560ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes local-page-fade-out {
  to { opacity: 0; }
}

@keyframes local-page-slide-up {
  from { transform: translate3d(0, 100%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

html.local-transition-running,
html.local-transition-running body {
  overflow: hidden !important;
}

html.local-transition-running header {
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 1000 !important;
}

main.local-page-incoming {
  position: fixed !important;
  inset: 0 !important;
  z-index: 50 !important;
  width: 100vw !important;
  height: 100svh !important;
  overflow: hidden !important;
  background: #000;
  transform: translate3d(0, 100vh, 0);
  will-change: transform;
}

main.local-page-current {
  animation: local-page-fade-out 560ms linear both !important;
}

main.local-page-incoming.local-page-entering {
  animation: local-page-slide-up 560ms cubic-bezier(0.23, 1, 0.32, 1) both !important;
}

main .sqs-html-content {
  text-wrap: pretty;
}

main .sqs-html-content > :first-child {
  margin-top: 0 !important;
}

main .sqs-html-content > :last-child {
  margin-bottom: 0 !important;
}

main img,
main video {
  display: block;
  border-radius: 4px;
}

main img:not(.grid-item *) {
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
}

/* Squarespace left empty paragraph blocks below some project titles. They
   count toward flex centering and push the visible title group upward. */
body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2))
  .sqs-html-content > p:empty,
body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2))
  .sqs-html-content > p:has(br:only-child),
body.view-item main section:first-child
  .sqs-html-content > p:empty,
body.view-item main section:first-child
  .sqs-html-content > p:has(br:only-child) {
  display: none !important;
}

/* Center the visible title stack itself. Default heading margins otherwise
   leave invisible space below the last line and bias the group upward. */
body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2))
  .sqs-html-content,
body.view-item main section:first-child
  .sqs-html-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(16px, 2vw, 28px) !important;
}

body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2))
  .sqs-html-content > *,
body.view-item main section:first-child
  .sqs-html-content > * {
  margin-block: 0 !important;
}

/* Full-screen section backgrounds should still meet the viewport edges. */
main .section-background img,
main .section-background video {
  border-radius: 0;
}

/* Keep each real hero image/video rendered from the first frame. The media is
   viewport-fixed and clipped by its own section, so there is no lazy swap or
   visibility flash and nothing can leak into later sections or the footer. */
main section.local-fixed-hero {
  position: relative !important;
  overflow: hidden !important;
  clip-path: inset(0) !important;
}

main section.local-fixed-hero .section-background {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100svh !important;
  z-index: 0 !important;
  background: #000 !important;
}

main section.local-fixed-hero .section-background :is(img, video) {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 0.5 !important;
  visibility: visible !important;
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

main section.local-fixed-hero .section-background img[data-gif-video] {
  visibility: hidden !important;
}

main section.local-fixed-hero .section-background-overlay {
  opacity: 0 !important;
}

/* The About reel is intentionally a little brighter than project heroes. */
#collection-64f21d60adba3e3ad38d16a3
  main:not(.local-page-outgoing) section.local-fixed-hero .section-background :is(img, video) {
  opacity: 0.7 !important;
}

.local-transition-capture main section.local-fixed-hero .section-background {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}


main section.local-fixed-hero:first-child {
  box-sizing: border-box !important;
  height: 100svh !important;
  min-height: 100svh !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

main section.local-fixed-hero:first-child > .content-wrapper {
  box-sizing: border-box !important;
  position: relative !important;
  height: 100svh !important;
  min-height: 100svh !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  z-index: 1 !important;
}

#collection-64f21d60adba3e3ad38d16a3 main:not(.local-page-outgoing) section:first-child,
#collection-64f21d60adba3e3ad38d16a3 main:not(.local-page-outgoing) section:first-child > .content-wrapper,
#collection-64f21d60adba3e3ad38d16a3 main:not(.local-page-outgoing) section:first-child .fluid-engine {
  box-sizing: border-box !important;
  height: 100svh !important;
  min-height: 100svh !important;
}

/* Match the footer mark to the header mark at each breakpoint. */
footer .fluid-image-container:has(img[src*="/logo.svg"]),
footer .sqs-image:has(img[src*="/logo.svg"]) {
  overflow: visible !important;
}

header .header-nav-item:not(.header-nav-item--folder) a,
header .header-nav-folder-item a {
  position: relative;
  display: inline-block;
}

header .header-nav-item:not(.header-nav-item--folder) a::after,
header .header-nav-folder-item a::after {
  position: absolute;
  bottom: 0.1em;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 600ms cubic-bezier(0.19, 1, 0.22, 1);
}

header .header-nav-item--active:not(.header-nav-item--folder) a::after,
header .header-nav-item:not(.header-nav-item--folder) a:hover::after,
header .header-nav-folder-item a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

#collection-64f21d60adba3e3ad38d16a3 main .sqs-html-content :is(h1, h2, h3, h4, h5, h6) a {
  position: relative;
  display: inline-block;
  background: none !important;
  animation: none !important;
  text-decoration: none !important;
}

#collection-64f21d60adba3e3ad38d16a3 main .sqs-html-content :is(h1, h2, h3, h4, h5, h6) a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 600ms cubic-bezier(0.19, 1, 0.22, 1);
}

#collection-64f21d60adba3e3ad38d16a3 main .sqs-html-content :is(h1, h2, h3, h4, h5, h6) a:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

main .sqs-html-content p a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 100% 0.5px;
  transition: background-size 300ms cubic-bezier(0.19, 1, 0.22, 1);
}

main .sqs-html-content p a:hover {
  background-size: 100% 1px;
}

a:focus-visible {
  outline: none !important;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a.sqs-block-image-link:focus-visible {
  text-decoration: none;
}

a.sqs-block-image-link:focus-visible img {
  opacity: 0.65 !important;
}

#collection-64f21d60adba3e3ad38d16a3 footer section:first-child > .content-wrapper {
  padding-top: clamp(56px, 5vw, 88px) !important;
}

header img[src*="/logo.svg"],
footer img[src*="/logo.svg"] {
  position: relative !important;
  left: 50% !important;
  width: 60.6px !important;
  height: 60.6px !important;
  max-width: none !important;
  transform: translateX(-50%) !important;
  object-fit: contain !important;
}

/* Keep the logo centered between the viewport top and Projects grid. */
@media (min-width: 768px) {
  header .header-announcement-bar-wrapper {
    padding-block: 5.73vw !important;
  }

  header .header-inner {
    min-height: 88px !important;
  }

  main section.collection-type-portfolio-grid-overlay #gridThumbs {
    padding-top: 0 !important;
  }
}

footer .fe-block:has(img[src*="/logo.svg"]) {
  transform: none !important;
}

/* Preserve the portfolio's deliberate hover treatment while all scroll-based
   entrance motion stays disabled. */
.grid-item .grid-image-inner-wrapper {
  overflow: hidden !important;
  border-radius: 4px;
}

.grid-item img {
  transition: transform 560ms cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  transform: scale(1) !important;
}

.grid-item .portfolio-overlay,
.grid-item .portfolio-text {
  transition: opacity 260ms ease-out !important;
}

.grid-item:hover img {
  transform: scale(1.035) !important;
}

.grid-item:hover .portfolio-overlay {
  opacity: 0.12 !important;
}

.grid-item:hover .portfolio-text {
  opacity: 1 !important;
}

.gallery-strips-item-wrapper {
  position: relative !important;
  overflow: hidden !important;
}

.gallery-strips-item-wrapper > :is(img, video) {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

@media (min-width: 768px) {
  .gallery-strips-wrapper {
    display: block !important;
    column-count: 3;
    column-gap: 10px;
  }

  .gallery-strips-item {
    display: inline-block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 10px !important;
    break-inside: avoid;
    transform: none !important;
  }
}

.gallery-reel-control-btn {
  background: transparent !important;
  color: #fff !important;
  opacity: 1 !important;
}

.gallery-reel-control-btn::before {
  background: transparent !important;
}

.gallery-reel-control-btn svg path {
  stroke: #fff !important;
}

.gallery-fullscreen-slideshow-list:has(> .gallery-fullscreen-slideshow-item:only-child)
  ~ :is(.gallery-fullscreen-slideshow-controls, .gallery-fullscreen-slideshow-bullet-nav) {
  display: none !important;
}

/* Page transitions are the only entrance motion. Neutralize both the hidden
   and revealed Squarespace scroll states, without touching project-card hover. */
.preFade:not(.grid-item):not(.grid-item *),
.fadeIn:not(.grid-item):not(.grid-item *),
.preFlex:not(.grid-item):not(.grid-item *),
.flexIn:not(.grid-item):not(.grid-item *) {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* Detailed Squarespace text motion uses nested segment wrappers rather than
   the preFade/preFlex classes. Keep all of those segments permanently shown. */
.animation-segment-parent-hidden,
.animation-segment-parent,
.animation-segment {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* Squarespace can recreate animation wrappers after load. These selectors
   keep all editorial text visible even when that runtime mutates the DOM. */
main :is(h1, h2, h3, h4, h5, h6, p, li, .sqs-block-html, .sqs-html-content):not(.grid-item *),
main :is(h1, h2, h3, h4, h5, h6, p, li, .sqs-block-html, .sqs-html-content):not(.grid-item *) {
  opacity: 1 !important;
  transform: none !important;
  translate: none !important;
  filter: none !important;
  clip-path: none !important;
  animation: none !important;
}

/* Keep the title-to-role spacing compact and identical in every About résumé
   row, instead of inheriting stacked heading and paragraph margins. */
#collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5)
  .fe-block:has(h2) .sqs-html-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

#collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5)
  .fe-block:has(h2) .sqs-html-content > * {
  margin-block: 0 !important;
}

/* Newest Microsites entry, using the same media/caption rhythm as the legacy rows. */
.buttermax-microsite > .content-wrapper {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  padding: clamp(48px, 6vw, 96px) 4vw !important;
}

.buttermax-microsite__inner {
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 15fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  max-width: 1500px;
  margin: auto;
}

.buttermax-microsite__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
}

.buttermax-microsite__media :is(img, video) {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.buttermax-microsite__copy {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.buttermax-microsite__copy > * {
  margin-block: 0 !important;
}

@media (max-width: 767px) {
  .buttermax-microsite > .content-wrapper {
    padding: 0 !important;
  }

  .buttermax-microsite__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .buttermax-microsite__copy {
    padding: 28px 24px 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.local-page-load {
    overflow: auto !important;
  }

  .local-page-load :is(header, main),
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

@media (min-width: 768px) {
  #collection-64f21d60adba3e3ad38d16a3 .gallery-reel {
    height: 36vh !important;
  }
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }

  header .header-announcement-bar-wrapper {
    padding-top: calc(env(safe-area-inset-top) + 9vw + 13px) !important;
    padding-bottom: calc(9vw + 13px) !important;
  }

  .header-display-mobile {
    position: relative !important;
    min-height: 52.3px !important;
  }

  .header-display-mobile .header-title {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    box-sizing: border-box !important;
    width: 52.3px !important;
    height: 52.3px !important;
    padding: 0 !important;
    transform: translate(-50%, -50%) !important;
  }

  .header-display-mobile .header-title a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
  }

  .header-display-mobile .header-title img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  main section.collection-type-portfolio-grid-overlay #gridThumbs {
    padding-top: 0 !important;
  }

  .header-display-mobile .header-burger-btn {
    position: fixed !important;
    top: calc(env(safe-area-inset-top) + 9vw + 20.65px) !important;
    right: 6vw !important;
    z-index: 1001 !important;
  }

  .header-burger-btn .burger-inner {
    transform: scale(0.8);
    transform-origin: center;
  }

  .header-menu.local-menu-open {
    visibility: visible !important;
    opacity: 1 !important;
  }

  html.local-menu-navigating .header-menu {
    transition: none !important;
  }

  .header-menu-nav-item a {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    padding-bottom: 0.08em;
    border-bottom: 1px solid currentColor;
    font-family: "Inter Tight" !important;
    font-size: 2.5rem !important;
    font-weight: 300 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
  }

  .header-menu-nav-item-content {
    font-size: inherit !important;
    line-height: inherit !important;
  }

  .header-menu-nav-item-content::after {
    margin-left: 0.35em;
    content: "→";
  }

  main video {
    display: block;
  }

  main :is(video, .video-block, .intrinsic, .embed-block-wrapper, .sqs-native-video, .native-video-player) {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 main:not(.local-page-outgoing) section:first-child,
  #collection-64f21d60adba3e3ad38d16a3 main:not(.local-page-outgoing) section:first-child > .content-wrapper,
  #collection-64f21d60adba3e3ad38d16a3 main:not(.local-page-outgoing) section:first-child .fluid-engine {
    width: 100vw !important;
    height: 140vw !important;
    min-height: 140vw !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 main section:first-child .section-background {
    position: absolute !important;
    width: 100vw !important;
    height: 140vw !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 main section:first-child video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  section[data-section-id="67a2db643918630a0ef0c8df"] {
    margin-top: 64px !important;
  }

  section[data-section-id="67a2db643918630a0ef0c8df"] .fluid-engine {
    display: flex !important;
    flex-direction: column;
    gap: 48px;
    padding-inline: 6vw;
  }

  section[data-section-id="67a2db643918630a0ef0c8df"] .fluid-engine > .fe-block {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    inset: auto !important;
  }

  main section[data-section-id="67a2db643918630a0ef0c8df"] .sqs-html-content h2 {
    font-size: 1.75rem !important;
    line-height: 1.08 !important;
  }

  main section[data-section-id="67a2db643918630a0ef0c8df"] .sqs-html-content h3 {
    font-size: 1.5rem !important;
    line-height: 1.15 !important;
  }

  section[data-section-id="67a2db643918630a0ef0c8df"] .sqsrte-small {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 main section:first-child .sqs-html-content h2 {
    font-size: 1.75rem !important;
    line-height: 1.1 !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 section[data-section-id="64f21d60adba3e3ad38d16a9"] {
    margin-top: 64px !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 section[data-section-id="64f21d60adba3e3ad38d16a9"] .fluid-engine {
    display: flex !important;
    flex-direction: column;
    gap: 32px;
    padding-inline: 6vw;
  }

  #collection-64f21d60adba3e3ad38d16a3 .fe-block-yui_3_17_2_1_1743801739585_6347 {
    position: relative !important;
    width: 30vw !important;
    height: auto !important;
    aspect-ratio: 1;
    inset: auto !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 .fe-block-yui_3_17_2_1_1743801739585_6347 :is(.sqs-block, .sqs-block-content, .fluid-image-component-root, .fluid-image-animation-wrapper, .fluid-image-container, img) {
    width: 100% !important;
    height: 100% !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 .fe-block-yui_3_17_2_1_1743801739585_6347 img {
    object-fit: cover !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 .fe-block-2bbfc5627ee58409e2ea {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    inset: auto !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 .fe-block-2bbfc5627ee58409e2ea p + p {
    margin-top: 2rem !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 .fe-block-7b0a2956956be9c08c07 h1 {
    text-align: left !important;
    font-size: 2.5rem !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 section[data-section-id="64f21d60adba3e3ad38d16ac"] {
    margin-top: 64px !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 section[data-section-id="64f21d60adba3e3ad38d16ac"] .fluid-engine {
    display: flex !important;
    flex-direction: column;
    padding-inline: 6vw;
  }

  #collection-64f21d60adba3e3ad38d16a3 section[data-section-id="64f21d60adba3e3ad38d16ac"] .fluid-engine > .fe-block {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    inset: auto !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 section[data-section-id="64f21d60adba3e3ad38d16ac"] :is(.fe-block-61d034d070ef0460206e, .fe-block-bf8a66ad50bbd6661e5f, .fe-block-58bb8c4611ac284ee0d0, .fe-block-55ec7c6228dadcd284a1, .fe-block-3d0940925dd105a6ae80) {
    margin-top: 96px !important;
    margin-bottom: 28px !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 section[data-section-id="64f21d60adba3e3ad38d16ac"] .fe-block-61d034d070ef0460206e {
    margin-top: 0 !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 section[data-section-id="64f21d60adba3e3ad38d16ac"] .fe-block-3d0940925dd105a6ae80 {
    order: 1;
  }

  #collection-64f21d60adba3e3ad38d16a3 section[data-section-id="64f21d60adba3e3ad38d16ac"] .fe-block-1359e327d4fb7e20b65f {
    order: 2;
  }

  #collection-64f21d60adba3e3ad38d16a3 section[data-section-id="64f21d60adba3e3ad38d16ac"] h2 {
    font-size: 2rem !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 section[data-section-id="67a664088a14dc1edd428272"] {
    margin-top: 96px !important;
  }

  header img[src*="/logo.svg"],
  footer img[src*="/logo.svg"] {
    width: 52.3px !important;
    height: 52.3px !important;
  }

  body:not(#collection-64f21d60adba3e3ad38d16a3)
    main section.local-fixed-hero:first-child,
  body:not(#collection-64f21d60adba3e3ad38d16a3)
    main section.local-fixed-hero:first-child > .content-wrapper {
    height: 600px !important;
    min-height: 600px !important;
  }

  body:not(#collection-64f21d60adba3e3ad38d16a3)
    main section.local-fixed-hero:first-child .section-background {
    width: 100% !important;
    height: 600px !important;
  }

  body:not(#collection-64f21d60adba3e3ad38d16a3)
    main section.local-fixed-hero:first-child .fluid-engine {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 600px !important;
    min-height: 600px !important;
  }

  body:not(#collection-64f21d60adba3e3ad38d16a3)
    main section.local-fixed-hero:first-child .fluid-engine > .fe-block:has(.sqs-block-html) {
    position: relative !important;
    inset: auto !important;
    width: min(88%, 520px) !important;
    height: auto !important;
    grid-area: auto !important;
  }

  main .sqs-html-content > * {
    margin-block: 0 !important;
  }

  main .sqs-html-content > * + * {
    margin-top: 0.75rem !important;
  }

  main .sqs-html-content,
  main .sqs-html-content > * {
    text-align: left !important;
  }

  main .sqs-html-content h1 {
    font-size: 2rem !important;
    line-height: 1.08 !important;
    text-align: center !important;
  }

  main .sqs-html-content h2 {
    font-size: 1.5rem !important;
    line-height: 1.15 !important;
  }

  main .sqs-html-content h3 {
    font-size: 1.125rem !important;
    line-height: 1.25 !important;
  }

  main .sqs-html-content h4 {
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
  }

  main .sqs-html-content p,
  main .sqs-html-content li {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }

  /* Every project hero uses one mobile title treatment. */
  body:not(#collection-64f21d60adba3e3ad38d16a3)
    main section.local-fixed-hero:first-child .sqs-html-content,
  body:not(#collection-64f21d60adba3e3ad38d16a3)
    main section.local-fixed-hero:first-child .sqs-html-content > * {
    text-align: center !important;
  }

  body:not(#collection-64f21d60adba3e3ad38d16a3)
    main section.local-fixed-hero:first-child .sqs-html-content :is(h1, h2) {
    width: 100% !important;
    font-size: 2rem !important;
    line-height: 1.08 !important;
  }

  body:not(#collection-64f21d60adba3e3ad38d16a3)
    main section.local-fixed-hero:first-child .sqs-html-content h4 {
    width: 100% !important;
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
  }

  /* Full-background project/chapter titles share one mobile treatment. */
  body.view-item main section.has-background:has(.sqs-html-content > h2)
    .sqs-html-content h2 {
    font-size: 2rem !important;
    line-height: 1.08 !important;
    text-align: center !important;
  }

  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2))
    .sqs-html-content h4 {
    text-align: center !important;
  }

  /* Some projects contain several chapter heroes. Keep every one the same size
     and center its title, without touching ordinary media/text sections. */
  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2)),
  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2)) > .content-wrapper,
  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2)) .fluid-engine {
    box-sizing: border-box !important;
    height: 600px !important;
    min-height: 600px !important;
  }

  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2)) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2)) > .content-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2)) .fluid-engine {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2))
    .fluid-engine > .fe-block:has(.sqs-block-html) {
    position: relative !important;
    inset: auto !important;
    box-sizing: border-box !important;
    width: min(88%, 520px) !important;
    height: auto !important;
    grid-area: auto !important;
  }

  /* Squarespace video captions live outside its text blocks, so give them the
     same readable mobile gutter and rhythm as the rest of the project copy. */
  body.view-item main .video-caption-wrapper {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 24px 24px 48px !important;
  }

  body.view-item main .video-caption,
  body.view-item main .video-caption p {
    margin: 0 !important;
    text-align: left !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }

  body.view-item main .fluid-engine > .fe-block:has(.video-block),
  body.view-item main .fluid-engine > .fe-block:has(.image-block),
  body.view-item main .fluid-engine > .fe-block:has(.sqs-block-image),
  body.view-item main .fluid-engine > .fe-block:has(.gallery-reel) {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc((100% - 100vw) / 2) !important;
  }

  main .gallery-masonry {
    padding-inline: 0 !important;
  }

  /* Every mobile gallery uses the same one-column margins and spacing. */
  main .gallery-strips {
    box-sizing: border-box !important;
    position: relative !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    padding: 16px !important;
  }

  main .gallery-strips-item {
    width: 100% !important;
    max-width: none !important;
    margin-bottom: 16px !important;
  }

  main .gallery-strips-item:last-child {
    margin-bottom: 0 !important;
  }

  /* Collapse desktop grid rows around media-only sections on mobile. */
  body.view-item main section:has(.video-block):not(:has(.sqs-block-html)),
  body.view-item main section:has(.video-block):not(:has(.sqs-block-html)) > .content-wrapper {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.view-item main section:has(.video-block):not(:has(.sqs-block-html)) .fluid-engine {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body.view-item main section:has(.video-block):not(:has(.sqs-block-html)) .fe-block:has(.video-block) {
    position: relative !important;
    inset: auto !important;
    grid-area: auto !important;
    margin: 0 !important;
    height: auto !important;
  }

  body.view-item main section:has(.video-block):not(:has(.sqs-block-html)) :is(.video-block, .sqs-block-content, .intrinsic) {
    height: auto !important;
    min-height: 0 !important;
  }

  /* Location/project title sections are a simple title + media pair. Replace
     Squarespace's overlapping grid coordinates with a centered title band. */
  body.view-item main section:has(.video-block):has(.sqs-html-content > h1:only-child),
  body.view-item main section:has(.video-block):has(.sqs-html-content > h2:only-child),
  body.view-item main section:has(.video-block):has(.sqs-html-content > h1:only-child) > .content-wrapper,
  body.view-item main section:has(.video-block):has(.sqs-html-content > h2:only-child) > .content-wrapper,
  body.view-item main section:has(.video-block):has(.sqs-html-content > h1:only-child) .fluid-engine,
  body.view-item main section:has(.video-block):has(.sqs-html-content > h2:only-child) .fluid-engine {
    height: auto !important;
    min-height: 0 !important;
  }

  body.view-item main section:has(.video-block):has(.sqs-html-content > h1:only-child) > .content-wrapper,
  body.view-item main section:has(.video-block):has(.sqs-html-content > h2:only-child) > .content-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.view-item main section:has(.video-block):has(.sqs-html-content > h1:only-child) .fluid-engine,
  body.view-item main section:has(.video-block):has(.sqs-html-content > h2:only-child) .fluid-engine {
    display: flex !important;
    flex-direction: column !important;
  }

  body.view-item main section:has(.video-block):has(.sqs-html-content > h1:only-child)
    .fe-block:has(.sqs-html-content > h1:only-child),
  body.view-item main section:has(.video-block):has(.sqs-html-content > h2:only-child)
    .fe-block:has(.sqs-html-content > h2:only-child) {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 150px !important;
    padding: 36px 24px !important;
    grid-area: auto !important;
    order: 0 !important;
  }

  body.view-item main section:has(.video-block):has(.sqs-html-content > h1:only-child)
    .fe-block:has(.video-block),
  body.view-item main section:has(.video-block):has(.sqs-html-content > h2:only-child)
    .fe-block:has(.video-block) {
    order: 1 !important;
    height: auto !important;
  }

  body.view-item main section:has(.video-block):has(.sqs-html-content > h1:only-child)
    .fe-block:has(.sqs-html-content > h1:only-child) .sqs-block,
  body.view-item main section:has(.video-block):has(.sqs-html-content > h2:only-child)
    .fe-block:has(.sqs-html-content > h2:only-child) .sqs-block {
    width: 100% !important;
    height: 100% !important;
    justify-content: center !important;
  }

  body.view-item main section:has(.video-block):has(.sqs-html-content > h1:only-child)
    .sqs-html-content,
  body.view-item main section:has(.video-block):has(.sqs-html-content > h1:only-child)
    .sqs-html-content h1,
  body.view-item main section:has(.video-block):has(.sqs-html-content > h2:only-child)
    .sqs-html-content,
  body.view-item main section:has(.video-block):has(.sqs-html-content > h2:only-child)
    .sqs-html-content h2 {
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
  }

  body.view-item main section:has(.video-block):has(.sqs-html-content > h2:only-child)
    .sqs-html-content h2 {
    font-size: 2rem !important;
    line-height: 1.08 !important;
  }

  body:not(#collection-64f21d60adba3e3ad38d16a3) .gallery-reel,
  body:not(#collection-64f21d60adba3e3ad38d16a3) .gallery-reel-list {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body:not(#collection-64f21d60adba3e3ad38d16a3) .gallery-reel-list {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    flex-direction: column !important;
    gap: 12px !important;
    transform: none !important;
    cursor: default !important;
  }

  body:not(#collection-64f21d60adba3e3ad38d16a3) .gallery-reel-item {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }

  body:not(#collection-64f21d60adba3e3ad38d16a3) .gallery-reel-item-wrapper {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    z-index: 0 !important;
  }

  body:not(#collection-64f21d60adba3e3ad38d16a3) .gallery-reel-item-src,
  body:not(#collection-64f21d60adba3e3ad38d16a3) .gallery-reel-item-src img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
  }

  body:not(#collection-64f21d60adba3e3ad38d16a3) .gallery-reel-controls,
  body:not(#collection-64f21d60adba3e3ad38d16a3) .gallery-reel-item.local-mobile-gallery-duplicate {
    display: none !important;
  }

  #item-67a3b10b0cef717c0a2275aa section:has(.sqs-block-video) .fluid-engine {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
  }

  #item-67a3b10b0cef717c0a2275aa section:has(.sqs-block-video) > .content-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #item-67a3b10b0cef717c0a2275aa section:has(.sqs-block-video)
    .fluid-engine > .fe-block {
    grid-area: auto !important;
    width: 100%;
  }

  #item-67a3b10b0cef717c0a2275aa section:has(.sqs-block-video)
    .fe-block:has(.sqs-block-html) {
    box-sizing: border-box;
    padding: 28px 24px 80px;
  }
}

/* Microsites: keep every caption centered against its paired video and use
   one consistent vertical rhythm inside each caption. */
#item-67a3b10b0cef717c0a2275aa section:has(.sqs-block-video)
  .fe-block:has(.sqs-block-html) .sqs-html-content {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

#item-67a3b10b0cef717c0a2275aa section:has(.sqs-block-video)
  .fe-block:has(.sqs-block-html) .sqs-html-content > * {
  margin-block: 0 !important;
}

@media (min-width: 768px) {
  /* Desktop project headers are true viewport covers. */
  body.view-item main:not(.local-page-outgoing) section:first-child,
  body.view-item main:not(.local-page-outgoing) section:first-child > .content-wrapper,
  body.view-item main:not(.local-page-outgoing) section:first-child .fluid-engine {
    box-sizing: border-box !important;
    height: 100vh !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.view-item main:not(.local-page-outgoing) section:first-child,
  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2)) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.view-item main:not(.local-page-outgoing) section:first-child > .content-wrapper,
  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2)) > .content-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.view-item main:not(.local-page-outgoing) section:first-child .fluid-engine > .fe-block:has(.sqs-block-html) {
    position: relative !important;
    inset: auto !important;
    box-sizing: border-box !important;
    width: min(88%, 1200px) !important;
    height: auto !important;
    grid-area: auto !important;
  }

  body.view-item main:not(.local-page-outgoing) section:first-child .sqs-html-content,
  body.view-item main:not(.local-page-outgoing) section:first-child .sqs-html-content > :is(h1, h2, h3, h4) {
    text-align: center !important;
  }

  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2)),
  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2)) > .content-wrapper,
  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2)) .fluid-engine {
    box-sizing: border-box !important;
    height: 100vh !important;
    min-height: 100vh !important;
  }

  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2))
    .fluid-engine {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2))
    .fluid-engine > .fe-block:has(.sqs-block-html) {
    position: relative !important;
    inset: auto !important;
    box-sizing: border-box !important;
    width: min(88%, 1200px) !important;
    height: auto !important;
    grid-area: auto !important;
  }

  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2))
    .sqs-html-content,
  body.view-item main section.has-background:has(.sqs-html-content > :is(h1, h2))
    .sqs-html-content > :is(h1, h2, h3, h4) {
    text-align: center !important;
  }

  /* When copy and video share a section, center the copy inside its grid area. */
  body.view-item main section:has(.video-block):has(.sqs-block-html)
    .fe-block:has(.sqs-block-html) .sqs-block {
    height: 100% !important;
    justify-content: center !important;
  }

  /* About résumé rows: replace Squarespace's hand-positioned blocks with one
     clean two-column grid. Role headings center against their prose rows. */
  #collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5),
  #collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5) > .content-wrapper {
    height: auto !important;
    min-height: 0 !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5) .fluid-engine {
    display: grid !important;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) !important;
    grid-template-rows: repeat(5, auto) !important;
    column-gap: clamp(64px, 8vw, 150px) !important;
    row-gap: clamp(108px, 9vw, 156px) !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 0 !important;
    padding: clamp(80px, 8vw, 150px) 8vw !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5)
    .fluid-engine > .fe-block {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    grid-area: auto !important;
  }

  #collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5)
    .fluid-engine > .fe-block:nth-child(1) { grid-area: 1 / 1 !important; }
  #collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5)
    .fluid-engine > .fe-block:nth-child(2) { grid-area: 1 / 2 !important; }
  #collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5)
    .fluid-engine > .fe-block:nth-child(3) { grid-area: 2 / 1 !important; }
  #collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5)
    .fluid-engine > .fe-block:nth-child(4) { grid-area: 2 / 2 !important; }
  #collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5)
    .fluid-engine > .fe-block:nth-child(5) { grid-area: 3 / 1 !important; }
  #collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5)
    .fluid-engine > .fe-block:nth-child(6) { grid-area: 3 / 2 !important; }
  #collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5)
    .fluid-engine > .fe-block:nth-child(7) { grid-area: 4 / 1 !important; }
  #collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5)
    .fluid-engine > .fe-block:nth-child(8) { grid-area: 4 / 2 !important; }
  #collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5)
    .fluid-engine > .fe-block:nth-child(9) { grid-area: 5 / 2 !important; }
  #collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5)
    .fluid-engine > .fe-block:nth-child(10) { grid-area: 5 / 1 !important; }

  #collection-64f21d60adba3e3ad38d16a3 main section:nth-of-type(5)
    .fluid-engine > .fe-block {
    align-self: start !important;
  }

  /* Google Chrome Experiments: two reliable media/text rows. */
  #item-67a1aa97f1bcd70c3daa4af1 main section:nth-of-type(7),
  #item-67a1aa97f1bcd70c3daa4af1 main section:nth-of-type(7) > .content-wrapper {
    height: auto !important;
    min-height: 0 !important;
  }

  #item-67a1aa97f1bcd70c3daa4af1 main section:nth-of-type(7) .fluid-engine {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, auto) !important;
    gap: clamp(48px, 5vw, 88px) clamp(48px, 5vw, 88px) !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 0 !important;
    padding: clamp(64px, 6vw, 110px) 4vw !important;
  }

  #item-67a1aa97f1bcd70c3daa4af1 main section:nth-of-type(7)
    .fluid-engine > .fe-block {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    grid-area: auto !important;
  }

  #item-67a1aa97f1bcd70c3daa4af1 main section:nth-of-type(7)
    .fluid-engine > .fe-block:nth-child(1) { grid-area: 1 / 1 !important; }
  #item-67a1aa97f1bcd70c3daa4af1 main section:nth-of-type(7)
    .fluid-engine > .fe-block:nth-child(2) { grid-area: 1 / 2 !important; align-self: center !important; }
  #item-67a1aa97f1bcd70c3daa4af1 main section:nth-of-type(7)
    .fluid-engine > .fe-block:nth-child(3) { grid-area: 2 / 2 !important; }
  #item-67a1aa97f1bcd70c3daa4af1 main section:nth-of-type(7)
    .fluid-engine > .fe-block:nth-child(4) { grid-area: 2 / 1 !important; align-self: center !important; }

  #item-67a3b10b0cef717c0a2275aa section:has(.sqs-block-video) .fluid-engine {
    grid-template-rows: auto auto !important;
    row-gap: clamp(48px, 6vw, 96px) !important;
  }

  #item-67a3b10b0cef717c0a2275aa section:has(.sqs-block-video)
    .fluid-engine > .fe-block:nth-child(1) {
    grid-area: 1 / 2 / 2 / 17 !important;
  }

  #item-67a3b10b0cef717c0a2275aa section:has(.sqs-block-video)
    .fluid-engine > .fe-block:nth-child(2) {
    grid-area: 1 / 18 / 2 / 24 !important;
  }

  #item-67a3b10b0cef717c0a2275aa section:has(.sqs-block-video)
    .fluid-engine > .fe-block:nth-child(3) {
    grid-area: 2 / 11 / 3 / 26 !important;
  }

  #item-67a3b10b0cef717c0a2275aa section:has(.sqs-block-video)
    .fluid-engine > .fe-block:nth-child(4) {
    grid-area: 2 / 3 / 3 / 9 !important;
  }

  #item-67a3b10b0cef717c0a2275aa section:has(.sqs-block-video)
    .fe-block:has(.sqs-block-html) .sqs-block {
    height: 100%;
    justify-content: center !important;
  }
}
