:root {
  color-scheme: light;
  --paper: #fff;
  --stage: #f5f5f7;
  --stage-raised: #eaeaec;
  --night: #101112;
  --night-muted: #b5b5bc;
  --night-line: #343438;
  --font-display: clamp(2.75rem, 4.99vw, 4.25rem);
  --font-heading: clamp(2rem, 3.25vw, 3rem);
  --display: var(--font-display);
  --heading: var(--font-heading);
  --section-space: clamp(4rem, 7vw, 7rem);
  --heading-space: clamp(2rem, 4vw, 3.5rem);
  --gutter: calc(var(--site-gutter) + var(--content-inset));
  --ink: #151517;
  --muted: #65656b;
  --line: #dedee2;
  --site-gutter: clamp(1.25rem, 3.565vw, 4rem);
  --content-inset: 1.25rem;
  --media-radius: clamp(1.25rem, 2.14vw, 1.75rem);
  --grid-gap: clamp(1.25rem, 2.14vw, 2rem);
  --max-main: 80rem;
  --max-chrome: 82.5rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --chrome-ink: var(--ink);
  --chrome-muted: var(--muted);
  --chrome-line: var(--line);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  background: var(--paper);
  color: var(--ink);
}

.arrow {
  display: inline-block; width: 1.5rem; height: 1.5rem; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("assets/icons/arrow-up-right.svg") center / contain no-repeat;
  mask: url("assets/icons/arrow-up-right.svg") center / contain no-repeat;
  transition: transform 220ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  display: flex;
  min-height: 100svh;
  margin: 0;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { -webkit-tap-highlight-color: transparent; }

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: var(--site-gutter);
  z-index: 2;
  padding: .75rem 1rem;
  transform: translateY(calc(-100% - 2rem));
  border-radius: .5rem;
  background: var(--ink);
  color: var(--paper);
}

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

.site-header,
.site-footer {
  max-width: 82.5rem;
  font-family: inherit;
}

.site-header {
  min-height: 4.25rem;
  padding: 1.625rem 0 0;
  border-bottom: 0;
}

.wordmark { min-height: 2.75rem; }

.wordmark img { width: 5rem; }

.text-link { min-height: 2.75rem; font-size: 1rem; gap: .5rem; }

.text-link .arrow { width: 1.5rem; height: 1.5rem; color: var(--muted); }

.ui-icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.ui-icon-arrow-up-right { --icon: url("assets/icons/arrow-up-right.svg"); }

.ui-icon-arrow-up { --icon: url("assets/icons/arrow-up.svg"); }

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d0d0f;
  --stage: #17171a;
  --stage-raised: #202024;
  --night: #070708;
  --night-muted: #aaaab1;
  --night-line: #2b2b31;
  --ink: #f4f4f1;
  --muted: #aaaab1;
  --line: #2b2b31;
}

[data-theme="dark"] .wordmark img { filter: brightness(0) invert(1); }

.site-footer {
  display: grid;
  grid-template-columns: auto auto 1fr;
  column-gap: .75rem;
  min-height: 5.375rem;
  padding: 1.125rem var(--content-inset);
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -.02em;
}

.footer-brand { min-height: 2.75rem; justify-self: start; }

.footer-copyright { padding: 0; border: 0; color: var(--muted); }

.site-footer a.back-to-top {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .5rem;
  justify-self: end;
  text-decoration: none;
}

.back-to-top .ui-icon { color: var(--muted); transition: transform 220ms ease; }


a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button:focus-visible, video:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.ui-icon-arrow-down-right { --icon: url("assets/icons/arrow-down-right.svg"); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover .arrow { transform: translate(2px, -2px); }
  .back-to-top:hover .ui-icon { transform: translateY(-3px); }
}
@media (max-width: 640px) {
  :root { --site-gutter: 1.25rem; --content-inset: 0rem; --media-radius: 1.25rem; }
  .site-header { padding-top: .75rem; min-height: 3.5rem; }
  .site-footer { grid-template-columns: auto auto 1fr; column-gap: .625rem; row-gap: 0; padding-block: 1rem; font-size: .8125rem; }
  .footer-copyright { grid-column: auto; grid-row: auto; }
  .site-footer > .back-to-top { grid-column: 3; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .back-to-top .ui-icon, .text-link .arrow { transition: none; }
  .back-to-top:hover .ui-icon, .text-link:hover .arrow, .text-link:focus-visible .arrow { transform: none; }
}


.site-header, .site-footer { width: calc(100% - var(--site-gutter) * 2); margin-inline: auto; align-items: center; }
.site-header { display: flex; justify-content: space-between; }
.wordmark, .text-link, .footer-brand { display: inline-flex; align-items: center; }
.wordmark img { display: block; height: auto; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.theme-switcher {
  position: relative;
  display: inline-block;
  width: 2.375rem;
  height: 2.375rem;
  padding: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--stage);
  transition: width 220ms cubic-bezier(.2, .65, .3, 1);
}
.theme-switcher:is(:hover, :focus-within, .is-open):not(.is-collapsed) {
  width: 6.75rem;
}
.theme-option {
  position: absolute;
  top: 2px;
  left: 2px;
  display: grid;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  padding: 0;
  place-items: center;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: left 220ms cubic-bezier(.2, .65, .3, 1), opacity 140ms ease,
    background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.theme-option:hover { color: var(--ink); }
.theme-option[aria-pressed="true"] {
  left: 2px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(21 21 23 / 12%);
  opacity: 1;
  pointer-events: auto;
}
.theme-switcher:is(:hover, :focus-within, .is-open):not(.is-collapsed) .theme-option {
  opacity: 1;
  pointer-events: auto;
}
.theme-switcher:is(:hover, :focus-within, .is-open):not(.is-collapsed) .theme-option:nth-child(1) { left: 2px; }
.theme-switcher:is(:hover, :focus-within, .is-open):not(.is-collapsed) .theme-option:nth-child(2) { left: 36px; }
.theme-switcher:is(:hover, :focus-within, .is-open):not(.is-collapsed) .theme-option:nth-child(3) { left: 70px; }
.theme-switcher.is-collapsed .theme-option:not([aria-pressed="true"]) {
  opacity: 0;
  pointer-events: none;
}
[data-theme="dark"] .theme-option[aria-pressed="true"] {
  background: var(--stage-raised);
  box-shadow: 0 1px 4px rgb(0 0 0 / 28%);
}
.theme-option:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.theme-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: var(--theme-icon) center / contain no-repeat;
  mask: var(--theme-icon) center / contain no-repeat;
}
.theme-icon-auto { --theme-icon: url("/assets/icons/untitled-ui/monitor-01.svg"); }
.theme-icon-light { --theme-icon: url("/assets/icons/untitled-ui/sun.svg"); }
.theme-icon-dark { --theme-icon: url("/assets/icons/untitled-ui/moon-01.svg"); }
.site-footer { border-top: 1px solid var(--line); }

/* A quiet entrance, shared by gallery cards and case-study content. */
.scroll-reveal {
  transition: opacity 850ms cubic-bezier(.33, 0, .67, 1),
    translate 850ms cubic-bezier(.33, 0, .67, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-pending { opacity: 0; translate: 0 24px; }
.page-entrance {
  animation: page-entrance 850ms cubic-bezier(.33, 0, .67, 1) var(--reveal-delay, 0ms) both;
}
@keyframes page-entrance {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce), print {
  .page-entrance { animation: none; }
  .scroll-reveal { transition: none; }
  .reveal-pending { opacity: 1; translate: none; }
}
