
@font-face {
  font-family: Geist Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-cyrillic-ext-wght-normal.1o60yhwqd7ueg.woff2") format("woff2-variations");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-cyrillic-wght-normal.0n0q_nh7u2mrm.woff2") format("woff2-variations");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Geist Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-vietnamese-wght-normal.0nt7ek_nfk5a4.woff2") format("woff2-variations");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Geist Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-latin-ext-wght-normal.39q78sztp1ci5.woff2") format("woff2-variations");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-latin-wght-normal.20f3xrkj613ah.woff2") format("woff2-variations");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


@font-face {
  font-family: IBM Plex Mono;
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/ibm-plex-mono-latin-400-normal.3xdfs0-p_zi4c.woff2") format("woff2"), url("fonts/ibm-plex-mono-latin-400-normal.2lhng2ntocry9.woff") format("woff");
}


@font-face {
  font-family: IBM Plex Mono;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("fonts/ibm-plex-mono-latin-500-normal.11q3guvgd1r20.woff2") format("woff2"), url("fonts/ibm-plex-mono-latin-500-normal.1fgk-kmy-32_a.woff") format("woff");
}


@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: "Geist Variable", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", "Courier New", monospace;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: "Geist Variable", Arial, sans-serif;
    --default-mono-font-family: "IBM Plex Mono", "Courier New", monospace;
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

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

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .visible {
    visibility: visible;
  }

  .sr-only {
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .absolute {
    position: absolute;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .block {
    display: block;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  @media (min-width: 40rem) {
    .sm\:block {
      display: block;
    }
  }

  @media (min-width: 48rem) {
    .md\:grid-cols-\[1\.13fr_1fr\] {
      grid-template-columns: 1.13fr 1fr;
    }
  }
}

:root {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --background: #141414;
  --site-grain: url("media/grain.png") repeat;
  --foreground: #f2f1ed;
  --muted: #b4b2ad;
  --line: #f2f1ed29;
  --gutter: clamp(1.2rem, 5.5vw, 5.6rem);
  --wide-shell: min(100% - 2 * var(--gutter), 1430px);
}

html {
  scroll-behavior: smooth;
}

@media (hover: none) and (pointer: coarse) {
  html {
    scroll-behavior: auto;
  }
}

:root[data-tw-font-fallback~="sans"] {
  --font-sans: Arial, sans-serif;
  --default-font-family: var(--font-sans);
}

:root[data-tw-font-fallback~="mono"] {
  --font-mono: "Courier New", monospace;
  --default-mono-font-family: var(--font-mono);
}

body {
  background: var(--site-grain), var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

::selection {
  color: var(--background);
  background: var(--foreground);
}

:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 5px;
}

section[id], footer[id] {
  scroll-margin-top: 2rem;
}

button {
  cursor: pointer;
}

.shell {
  width: var(--wide-shell);
  margin-inline: auto;
}

body:has([data-home-layout]) :is(.header-inner, .hero, .footer).shell {
  width: calc(var(--wide-shell) * var(--narrow-shell-ratio, .8));
}

@media (max-width: 799px) {
  body:has([data-home-layout]) {
    --narrow-shell-ratio: .94;
  }
}

@media (max-width: 639px) {
  body:has([data-home-layout]) {
    --narrow-shell-ratio: .98;
  }
}

.skip-link {
  z-index: 10;
  background: var(--foreground);
  color: var(--background);
  padding: .65rem 1rem;
  position: fixed;
  top: .75rem;
  left: .75rem;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.header-inner {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 6.2rem;
  display: flex;
}

.wordmark {
  flex: none;
  align-items: center;
  display: inline-flex;
}

.wordmark img {
  width: 100%;
  height: auto;
  display: block;
}

.wordmark-header {
  width: clamp(8.75rem, 12vw, 10.25rem);
}

.wordmark-footer {
  width: 10.5rem;
}

@media (hover: hover) {
  .wordmark-header img {
    transition: opacity .3s ease-in-out;
  }

  .wordmark-header:hover img {
    opacity: .4;
  }
}

.header-nav {
  font: 400 .84rem/1 var(--font-mono);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.7rem);
  display: flex;
}

.header-nav a {
  color: #fff;
  transition: color .3s ease-in-out;
}

.header-nav a[aria-current] {
  color: #ff6a00;
}

@starting-style {
  .header-nav a[aria-current] {
    color: #fff;
  }
}

html[data-site-preloader]:not(:has([data-site-preloader-overlay])) body {
  background: #000;
  isolation: auto;
}
.header-contact {
  border: 1px solid var(--line);
  border-radius: .3rem;
  padding: .72rem 1rem;
  transition: color .3s ease-in-out, background .2s, border-color .2s;
}

@media (hover: hover) {
  .header-contact:not([aria-current]):hover {
    color: var(--background);
    background: var(--foreground);
    border-color: var(--foreground);
  }
}

.hero {
  padding-top: clamp(3rem, 6.9vw, 7rem);
}

.hero-intro {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1rem, 4.4vw, 6rem);
  padding-bottom: clamp(2.2rem, 5vw, 4.35rem);
  display: grid;
}

.hero h1 {
  font: 500 clamp(2.2rem, 4.15vw, 4.35rem)/1.06 var(--font-mono);
  letter-spacing: -.075em;
}

.hero h1 > span {
  color: #c6c4bf;
  margin-top: .16em;
  display: block;
}

.hero-description {
  max-width: 30ch;
  color: var(--muted);
  padding-bottom: .16rem;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.5;
}

.hero-media {
  isolation: isolate;
  aspect-ratio: 2.08;
  background: #151b1b;
  border-radius: .65rem;
  place-items: center;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px #f2f1ed14;
}

.hero-media img, .hero-media video, .hero-media:after {
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hero-media img, .hero-media video {
  object-fit: cover;
  object-position: center 57%;
}

.hero-media:after {
  content: "";
  z-index: 1;
  background: linear-gradient(#0000 50%, #00000054), #0000000d;
}

.hero-bottom, .hero-controls {
  align-items: center;
  gap: .75rem;
  display: flex;
}

.hero-bottom {
  justify-content: space-between;
  min-height: 3.3rem;
}

.scroll-link, .reel-caption, .text-link, .demo-note, .card-info, .eyebrow {
  font: 400 .83rem/1.5 var(--font-mono);
}

.scroll-link, .text-link {
  text-underline-offset: .28em;
}

.scroll-link:hover, .text-link:hover {
  text-decoration: underline;
}

.reel-caption, .demo-note, .eyebrow {
  color: var(--muted);
}

.ambient-toggle {
  border: 1px solid var(--line);
  border-radius: .3rem;
  place-items: center;
  min-width: 2.1rem;
  min-height: 2.1rem;
  transition: border-color .2s;
  display: grid;
}

.ambient-toggle:hover {
  border-color: var(--foreground);
}

.ambient-toggle svg {
  width: .93rem;
  height: .93rem;
}

.pause-icon {
  border-inline: 1px solid;
  width: .43rem;
  height: .55rem;
}

.work-section {
  padding-block: clamp(4.2rem, 8.5vw, 8.5rem) clamp(4rem, 7vw, 7rem);
}

.section-heading {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding-bottom: 1.35rem;
  display: flex;
}

.section-heading h2, .archive-heading h1, .about-section h2, .project-heading h1, .missing-page h1 {
  font: 500 clamp(2rem, 3.8vw, 4rem)/1.1 var(--font-mono);
  letter-spacing: -.07em;
  overflow-wrap: anywhere;
}

.section-heading .text-link {
  white-space: nowrap;
}

.work-index {
  padding-block: clamp(3rem, 7vw, 7rem);
}

.archive-heading {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1.13fr 1fr;
  align-items: end;
  gap: clamp(1rem, 5vw, 5.4rem);
  padding-bottom: 1.75rem;
  display: grid;
}

.archive-heading p {
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.grid-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem clamp(1.5rem, 3.5vw, 2.95rem);
  display: flex;
}

.filter-list {
  flex-wrap: wrap;
  gap: .32rem clamp(.5rem, 1.2vw, 1.1rem);
  display: flex;
}

.filter-list button {
  min-height: 2.5rem;
  color: var(--muted);
  font: 400 .82rem/1.3 var(--font-mono);
  border-bottom: 1px solid #0000;
  padding: .35rem .1rem;
  transition: color .2s, border-color .2s;
}

.filter-list button:hover, .filter-list button[aria-pressed="true"] {
  color: var(--foreground);
  border-bottom-color: currentColor;
}

.demo-note {
  white-space: nowrap;
}

.project-grid {
  align-items: start;
  gap: clamp(2rem, 6vw, 5.45rem) clamp(1.5rem, 5vw, 5.4rem);
}

.project-card {
  display: block;
}

.card-media {
  aspect-ratio: 16 / 9;
  background: #252525;
  border-radius: .45rem;
  position: relative;
  overflow: hidden;
}

.card-media img, .card-media video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.card-media img {
  transition: transform .4s;
}

.card-media video {
  position: absolute;
  inset: 0;
}

.project-card:hover img {
  transform: scale(1.035);
}

.card-info > div {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: baseline;
  gap: .7rem;
  padding-block: .6rem;
  display: flex;
}

.card-title h3 {
  color: var(--foreground);
  font-size: 1.05rem;
  font-weight: 500;
}

.card-title > span, .card-meta, .empty-work {
  color: var(--muted);
}

.card-meta > span:last-child {
  text-align: right;
  margin-left: auto;
}

.project-card:hover h3, .project-card:focus-visible h3 {
  text-underline-offset: .25em;
  text-decoration: underline;
}

.about-section {
  border-block: 1px solid var(--line);
  grid-template-columns: 1.13fr 1fr;
  align-items: start;
  gap: clamp(1.5rem, 5vw, 5.4rem);
  padding-block: clamp(2.75rem, 6vw, 5rem);
  display: grid;
}

.about-copy {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.footer {
  padding-block: clamp(3.5rem, 8vw, 8rem) clamp(3rem, 6vw, 6.5rem);
}

.contact-panel {
  isolation: isolate;
  aspect-ratio: 2.3;
  text-align: center;
  background: #13191d;
  border-radius: .6rem;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  min-height: 17rem;
  padding: clamp(2rem, 5.5vw, 5rem) 1.25rem;
  display: flex;
  position: relative;
  overflow: hidden;
}

.contact-image, .contact-panel:after {
  z-index: -1;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.contact-image {
  object-fit: cover;
  object-position: center 49%;
  filter: brightness(.72) saturate(.68);
}

.contact-panel:after {
  content: "";
  background: linear-gradient(#080c109e, #0000 43%, #070c1047 67%, #04080bb8);
}

.contact-panel h2, .contact-button, .footer-nav {
  font: 500 .88rem/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .055em;
}

.contact-button {
  background: var(--foreground);
  min-height: 3.35rem;
  color: var(--background);
  border-radius: .38rem;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  padding: .8rem 1.25rem;
  transition: background-color .2s;
  display: inline-flex;
}

.contact-button:hover {
  background-color: #fff;
}

.contact-button svg {
  width: 1.2rem;
  height: 1.2rem;
}

.contact-button:focus-visible, .footer-social a:focus-visible {
  outline-offset: 6px;
}

.footer-social {
  border-block: 1px solid var(--line);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem clamp(1.1rem, 4vw, 3.5rem);
  min-height: clamp(8rem, 13vw, 13rem);
  margin-top: clamp(3rem, 8vw, 7rem);
  display: flex;
}

.footer-social a {
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  display: inline-flex;
}

.footer-social svg {
  width: 1.3rem;
  height: 1.3rem;
}

.footer-bottom {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 3rem;
  padding-top: clamp(2.75rem, 6vw, 5.75rem);
  display: flex;
}

.footer-identity, .footer-nav {
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(.85rem, 2.7vw, 2.8rem);
  display: flex;
}

.footer-divider {
  background: var(--line);
  width: clamp(1.2rem, 3vw, 2.6rem);
  height: 1px;
}

.footer-email {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.film-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  color: var(--foreground);
  background: none;
  border: 0;
  margin: 0;
  padding: 1rem;
  position: fixed;
  inset: 0;
  overflow: auto;
}

.film-dialog[open] {
  place-items: center;
  display: grid;
}

.film-dialog::backdrop {
  background: #080808f2;
}

body:has(.film-dialog[open]) {
  overflow: hidden;
}

.film-dialog-inner {
  width: min(100%, 1120px);
}

.film-dialog-bar {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .65rem;
  display: flex;
}

.film-dialog-bar h2 {
  font: 400 .87rem/1.3 var(--font-mono);
}

.film-dialog-bar button {
  border: 1px solid var(--line);
  border-radius: .3rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.7rem;
  line-height: 1;
}

.film-dialog-bar button:hover {
  border-color: var(--foreground);
}

.film-player {
  aspect-ratio: 16 / 9;
  background: #000;
  width: 100%;
  display: block;
}

.film-dialog .film-player {
  max-height: 78svh;
}

.showreel-button {
  background: var(--foreground);
  color: var(--background);
  font: 500 .86rem/1.4 var(--font-mono);
  border-radius: .3rem;
  padding: .65rem .85rem;
  display: inline-flex;
}

.project-page {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.6rem, 5vw, 5.3rem);
}

article.project-page {
  max-width: 60rem;
  padding-block-start: clamp(1.6rem, 3.1vw, 3rem);
}

.breadcrumb {
  color: var(--muted);
  align-items: center;
  gap: .5rem;
  display: inline-flex;
}

.breadcrumb svg {
  width: 1rem;
  height: 1rem;
}

.project-heading {
  text-align: center;
  gap: clamp(.9rem, 2vw, 2rem);
  padding-block: clamp(1.2rem, 2.2vw, 2.75rem) clamp(1.15rem, 2.65vw, 3.1rem);
  display: grid;
}

.project-meta {
  text-align: center;
  overflow-wrap: anywhere;
  justify-content: center;
  align-items: baseline;
  gap: clamp(.55rem, 1.5vw, 2rem);
  display: flex;
}

.project-meta bdi {
  min-width: 0;
}

.project-client {
  flex-shrink: 0;
  max-width: 44%;
}

.project-year {
  white-space: nowrap;
  flex-shrink: 0;
}

.project-screen {
  border-radius: .5rem;
  overflow: hidden;
}

.project-screen img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  display: block;
}

.project-summary {
  overflow-wrap: anywhere;
  width: 80%;
  margin-inline: auto;
  padding-block: clamp(2rem, 4vw, 4rem) clamp(2.5rem, 5vw, 5rem);
}

.project-description {
  color: var(--muted);
  text-align: start;
  white-space: pre-line;
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  line-height: 1.6;
}

.project-role:not(:first-child) {
  margin-block-start: 1rem;
}

.project-role bdi {
  margin-inline-start: .45rem;
}

.project-credits:not(:first-child) {
  margin-block-start: clamp(1.65rem, 3.5vw, 3rem);
}

.next-project {
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  display: block;
}

.next-project h2 {
  font: 500 clamp(1.5rem, 2.6vw, 2.6rem)/1.15 var(--font-mono);
  letter-spacing: -.05em;
  margin-top: .35rem;
}

.next-project:hover h2 {
  text-underline-offset: .25em;
  text-decoration: underline;
}

.missing-page {
  min-height: 52svh;
}

.missing-page h1 {
  margin-top: .7rem;
}

.missing-page .breadcrumb, .missing-page .showreel-button {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .project-grid > article:nth-child(2n) {
    margin-top: clamp(1.25rem, 6.5vw, 5.75rem);
  }
}

@media (max-width: 767px) {
  .archive-heading, .about-section {
    grid-template-columns: 1fr;
  }

  .archive-heading {
    gap: .65rem;
  }
}

@media (max-width: 639px) {
  body:has([data-pixel-life]) {
    --pixel-life-gutter: calc(clamp(30px, 8.4vw, 36px) + env(safe-area-inset-right, 0px));
    padding-right: var(--pixel-life-gutter);
  }

  body:has([data-pixel-life]) :is(.film-dialog, .photo-dialog) {
    width: calc(100% - var(--pixel-life-gutter));
  }

  body:has([data-pixel-life]) :is(.film-dialog, .photo-dialog)::backdrop {
    right: var(--pixel-life-gutter, calc(clamp(30px, 8.4vw, 36px) + env(safe-area-inset-right, 0px)));
  }

  .header-inner {
    min-height: 4.6rem;
  }

  .wordmark-header {
    width: 8.5rem;
  }

  .header-nav {
    gap: .8rem;
    font-size: .8rem;
  }

  .header-contact {
    padding: .6rem .55rem;
  }

  .hero-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7.8vw, 2.9rem);
  }

  .hero-media {
    aspect-ratio: 4 / 3;
  }

  .hero-media img, .hero-media video {
    object-position: 60% center;
  }

  .grid-toolbar {
    flex-direction: column;
    align-items: start;
    gap: .6rem;
  }

  .project-meta {
    font-size: .75rem;
  }

  .contact-panel {
    aspect-ratio: 1.21;
    width: 100%;
    padding-block: 1.65rem;
  }

  .contact-image {
    object-position: 42% center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: start;
  }

  .footer-identity {
    grid-template-columns: auto 1fr;
    gap: .75rem .95rem;
    display: grid;
  }

  .footer-email {
    grid-column: 1 / -1;
  }

  .footer-nav {
    gap: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}


:root {
  --motion-out: cubic-bezier(.22, 1, .36, 1);
}

.hero h1 .intro-name {
  color: inherit;
  margin: 0;
}

.intro-word {
  display: inline-block;
}

.reel-play {
  isolation: isolate;
  z-index: 2;
  color: #fff;
  place-items: center;
  display: grid;
}

.reel-play-icon {
  aspect-ratio: 1;
  place-items: center;
  width: clamp(6.25rem, 10.5vw, 9rem);
  display: grid;
  position: relative;
}

.reel-play-icon > .reel-play-ring {
  opacity: .87;
  width: 100%;
  height: 100%;
  transition: opacity .25s;
  position: absolute;
  inset: 0;
}

.reel-play-ring text {
  fill: currentColor;
  font: 500 8.45px var(--font-mono);
}

.reel-play-icon > .reel-play-triangle {
  width: 1.4rem;
  height: 1.4rem;
}

.reel-play:hover .reel-play-ring, .reel-play:focus-visible .reel-play-ring {
  opacity: 1;
}

[data-reel-open] .reel-play {
  opacity: 0;
  pointer-events: none;
}

.card-media video {
  opacity: 0;
  transition: opacity .26s;
}

.card-media video[data-preview-visible] {
  opacity: 1;
}

.menu-toggle {
  display: none;
}

@media (max-width: 639px) {
  .site-header {
    z-index: 4;
    position: relative;
  }

  .header-inner {
    position: relative;
  }

  .menu-toggle {
    min-height: 2.75rem;
    font: 400 .85rem/1 var(--font-mono);
    align-items: center;
    gap: .6rem;
    display: flex;
  }

  .menu-icon {
    grid-template-rows: repeat(3, 1px);
    gap: 4px;
    width: 1rem;
    display: grid;
  }

  .menu-icon i {
    transition: transform .24s var(--motion-out), opacity .16s ease;
    background: currentColor;
    display: block;
  }

  [data-menu-open] .menu-icon i:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  [data-menu-open] .menu-icon i:nth-child(2) {
    opacity: 0;
  }

  [data-menu-open] .menu-icon i:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .header-menu .header-nav {
    border: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .28s var(--motion-out), visibility 0s linear .28s;
    background: #191919;
    border-radius: .4rem;
    gap: .2rem;
    padding: .55rem;
    display: grid;
    position: absolute;
    inset: calc(100% + .4rem) 0 auto;
    transform: translateY(-.45rem);
    box-shadow: 0 .5rem 1.8rem #00000042;
  }

  .header-menu[data-menu-open] .header-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
    transform: none;
  }

  .header-menu .header-nav a {
    align-items: center;
    min-height: 2.75rem;
    padding: .65rem .75rem;
    display: flex;
  }
}

@media (prefers-reduced-motion: no-preference) {
  body {
    isolation: isolate;
    background: var(--background);
  }

  body:before, [data-project-curtain]:before {
    content: "";
    z-index: -1;
    pointer-events: none;
    background: var(--site-grain);
    will-change: transform;
    animation: .66s step-end infinite film-grain;
    position: fixed;
    inset: -2rem;
  }

  body:has(.film-dialog[open]):before {
    animation-play-state: paused;
  }

  @media (hover: none) and (pointer: coarse) {
    body:before, [data-project-curtain]:before {
      /* Keep the same grain layer when the address bar expands or collapses. */
      bottom: auto;
      height: calc(100vh + 4rem);
      height: calc(100lvh + 4rem);
    }
  }

  .reel-play-ring {
    animation: 15s linear infinite reel-turn;
  }

  [data-reel-open] .reel-play-ring {
    animation-play-state: paused;
  }

  .intro-word {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(5px);
  }

  [data-intro-ready] .intro-word {
    animation-name: intro-word-in;
    animation-duration: 1.8s;
    animation-timing-function: cubic-bezier(.36, .04, .24, 1);
    animation-fill-mode: both;
  }

  .hero-description, [data-page-entrance]:not(:where([data-project-curtain-entered] *)) {
    animation: typography-in .86s var(--motion-out) both;
  }

  .hero-description {
    animation-delay: .39s;
  }

  .hero-media {
    animation: screen-in .87s .24s var(--motion-out) both;
  }

  [data-scroll-reveal] {
    transition: opacity .56s ease, transform .75s var(--motion-out);
  }

  [data-reveal-pending]:not(:focus-within) {
    opacity: 0;
    transform: translateY(1.15rem);
  }

  [data-scroll-reveal="media"] .card-media {
    transition: clip-path .73s var(--motion-out);
  }

  [data-reveal-pending]:not(:focus-within) .card-media {
    clip-path: inset(0 0 13% round .45rem);
  }

  [data-scroll-reveal="media"] .card-media {
    clip-path: inset(0 round .45rem);
  }

  .film-dialog[open] {
    animation: .3s both reel-dialog-enter;
  }

  .film-dialog[open] .film-dialog-inner {
    animation: reel-player-enter .4s var(--motion-out) both;
  }

  .film-dialog[open]::backdrop {
    animation: .3s both reel-dialog-enter;
  }

  .film-dialog[open][data-closing], .film-dialog[open][data-closing]::backdrop {
    animation: .22s both reel-dialog-exit;
  }

  .film-dialog[open][data-closing] .film-dialog-inner {
    animation: .22s both reel-player-exit;
  }

  html:active-view-transition-type(portfolio-route)::view-transition-old(root) {
    animation: .2s both route-film-out;
  }

  html:active-view-transition-type(portfolio-route)::view-transition-new(root) {
    animation: .36s var(--motion-out) both route-film-in;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel-play-ring, .header-menu .header-nav, .menu-icon i, .card-media video {
    transition: none !important;
  }
}

@keyframes film-grain {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }

  12.5% {
    transform: translate3d(-13px, 9px, 0);
  }

  25% {
    transform: translate3d(8px, -17px, 0);
  }

  37.5% {
    transform: translate3d(-20px, -5px, 0);
  }

  50% {
    transform: translate3d(17px, 11px, 0);
  }

  62.5% {
    transform: translate3d(-7px, 18px, 0);
  }

  75% {
    transform: translate3d(12px, -9px, 0);
  }

  87.5% {
    transform: translate3d(-17px, 5px, 0);
  }
}

@keyframes reel-turn {
  to {
    transform: rotate(1turn);
  }
}

@keyframes intro-word-in {
  from {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    filter: blur();
    transform: translateY(0);
  }
}

@keyframes typography-in {
  from {
    opacity: .13;
    filter: blur(4px);
    transform: translateY(.43rem);
  }

  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@keyframes screen-in {
  from {
    opacity: .25;
    transform: translateY(.75rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes reel-dialog-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes reel-dialog-exit {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes reel-player-enter {
  from {
    transform: translateY(.6rem) scale(.987);
  }

  to {
    transform: none;
  }
}

@keyframes reel-player-exit {
  from {
    transform: none;
  }

  to {
    transform: translateY(.35rem) scale(.99);
  }
}

@keyframes route-film-out {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: translateY(-.4rem);
  }
}

@keyframes route-film-in {
  from {
    opacity: 0;
    transform: translateY(.53rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}


.project-transition-module__Glb2cW__layer {
  z-index: 110;
  background: var(--background);
  touch-action: none;
  transition-property: none;
  position: fixed;
  inset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .project-transition-module__Glb2cW__layer {
    background: var(--site-grain), var(--background);
    background-position: 0 var(--grain-origin, 0px), 0 0;
  }
}


.pixel-life-module__N07kAq__rail {
  --rail-top: max(12px, env(safe-area-inset-top, 0px));
  --rail-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  --rail-right: max(5px, calc(env(safe-area-inset-right, 0px) + 4px));
  --rail-width: 42px;
  --unit-height: 47px;
  --marker-center: 18px;
  z-index: 3;
  top: calc(var(--viewport-top, 0px) + var(--rail-top));
  bottom: var(--rail-bottom);
  left: calc(var(--viewport-right, 100%) - var(--rail-right) - var(--rail-width));
  width: var(--rail-width);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  position: fixed;
}

.pixel-life-module__N07kAq__rail:before {
  content: "";
  inset-block: var(--marker-center) calc(var(--unit-height) - var(--marker-center));
  background: #f2f1ed4f;
  width: 1px;
  position: absolute;
  inset-inline-end: 2px;
}

.pixel-life-module__N07kAq__rider {
  height: var(--unit-height);
  will-change: transform;
  position: absolute;
  inset: 0 0 auto;
}

.pixel-life-module__N07kAq__figure {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1px;
  width: 31px;
  display: grid;
  position: absolute;
  inset: 0 9px auto auto;
}

.pixel-life-module__N07kAq__figure canvas {
  width: 31px;
  height: 36px;
  image-rendering: pixelated;
  display: block;
}

.pixel-life-module__N07kAq__age {
  font: 400 8px / 10px var(--font-mono);
  color: #c2c2c2;
  text-align: center;
  white-space: nowrap;
}

.pixel-life-module__N07kAq__marker {
  background: #fff;
  width: 5px;
  height: 5px;
  position: absolute;
  inset-block-start: calc(var(--marker-center) - 2.5px);
  inset-inline-end: 0;
}

@supports (height: 100dvh) {
  .pixel-life-module__N07kAq__rail {
    height: max(0px, calc(var(--viewport-height, 100dvh) - var(--rail-top) - var(--rail-bottom)));
    bottom: auto;
  }
}

@media (hover: none) and (pointer: coarse) {
  .pixel-life-module__N07kAq__rail {
    top: var(--rail-top);
    left: auto;
    right: var(--rail-right);
    bottom: auto;
    height: calc(100vh - var(--rail-top) - var(--rail-bottom));
    height: calc(100svh - var(--rail-top) - var(--rail-bottom));
  }
}

@media (max-width: 639px) {
  .pixel-life-module__N07kAq__rail {
    --rail-right: calc(env(safe-area-inset-right, 0px) + 1px);
    --rail-width: calc(var(--pixel-life-gutter) - var(--rail-right));
    --figure-width: calc(var(--rail-width) - 6px);
    --figure-height: calc(var(--figure-width) * 36 / 31);
    --unit-height: calc(var(--figure-height) + 10px);
    --marker-center: calc(var(--figure-height) / 2);
    left: auto;
    right: var(--rail-right);
  }

  .pixel-life-module__N07kAq__figure {
    width: var(--figure-width);
    right: 6px;
  }

  .pixel-life-module__N07kAq__figure canvas {
    width: 100%;
    height: auto;
  }

  .pixel-life-module__N07kAq__age {
    font-size: calc(var(--figure-width) / 4.2);
    line-height: 9px;
  }
}

@media (max-height: 72px) {
  .pixel-life-module__N07kAq__rail {
    display: none;
  }
}


.site-preloader-module__YqY1ba__overlay {
  z-index: 100;
  touch-action: none;
  background: #000;
  place-items: center;
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1);
  display: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.site-preloader-module__YqY1ba__video {
  --logo-width: 80px;
  width: calc(var(--logo-width) * 1080 / 366);
  aspect-ratio: 1;
  object-fit: contain;
  pointer-events: none;
  background: #000;
  display: block;
  transform: translate(2.13%, 1.16%);
}

@media (max-width: 639px) {
  .site-preloader-module__YqY1ba__video {
    --logo-width: 60px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-site-preloader] .site-preloader-module__YqY1ba__overlay:not([data-mobile-preloader]),
  html[data-site-preloader][data-site-preloader-mobile] [data-mobile-preloader] {
    display: grid;
  }

  html[data-site-preloader-mobile] .site-preloader-module__YqY1ba__overlay:not([data-mobile-preloader]) {
    display: none;
  }

  html[data-site-preloader="leaving"] .site-preloader-module__YqY1ba__overlay {
    opacity: 0;
  }

  html[data-site-preloader="playing"] .site-preloader-module__YqY1ba__overlay ~ main .hero :is(.intro-word, .hero-description, .hero-media) {
    animation-play-state: paused;
  }
}

[data-mobile-preloader] .site-preloader-module__YqY1ba__video {
  grid-area: 1 / 1;
}

[data-mobile-preloader] .site-mobile-intro-animation,
[data-mobile-preloader][data-animated-fallback] video {
  display: none;
}

[data-mobile-preloader][data-animated-fallback] .site-mobile-intro-animation {
  display: block;
}


.photo-page {
  padding-block: clamp(1.25rem, 3vw, 2.7rem) clamp(2.75rem, 6vw, 5.5rem);
}

.photo-empty {
  color: var(--muted);
  font: 400 .85rem/1.5 var(--font-mono);
  margin-top: .7rem;
}

.photo-carousel {
  --photo-card-width: min(49vw, 61svh, 36.25rem);
  --photo-depth: clamp(3.5rem, 8vw, 6.4rem);
  justify-items: center;
  display: grid;
  overflow-x: clip;
}

.photo-carousel-stage {
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
  width: min(100%, 69rem);
  height: clamp(22rem, 66svh, 45rem);
  position: relative;
}

.photo-carousel-stage[data-dragging], .photo-carousel-stage[data-dragging] .photo-open {
  cursor: grabbing;
}

.photo-carousel-stack {
  perspective: clamp(45rem, 103vw, 92rem);
  transform-style: preserve-3d;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.photo-card {
  width: var(--photo-card-width);
  aspect-ratio: 4 / 3;
  transform: translate3d(-50%, calc(-50% - var(--photo-layer) * 12%), calc(var(--photo-layer) * var(--photo-depth) * -1));
  --photo-shade: clamp(0, calc(var(--photo-layer) * .22), .53);
  pointer-events: auto;
  position: absolute;
  top: 53%;
  left: 50%;
}

.photo-card:nth-child(n+4) {
  visibility: hidden;
}

:is(.photo-open, .photo-card-title, .photo-album-open) {
  --photo-notch: 5px;
  clip-path: polygon(0 var(--photo-notch), var(--photo-notch) var(--photo-notch), var(--photo-notch) 0,
    calc(100% - var(--photo-notch)) 0, calc(100% - var(--photo-notch)) var(--photo-notch), 100% var(--photo-notch),
    100% calc(100% - var(--photo-notch)), calc(100% - var(--photo-notch)) calc(100% - var(--photo-notch)), calc(100% - var(--photo-notch)) 100%,
    var(--photo-notch) 100%, var(--photo-notch) calc(100% - var(--photo-notch)), 0 calc(100% - var(--photo-notch)));
}

.photo-open {
  cursor: default;
  background: #1b1b1b;
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 .9rem 2.7rem #0000004a;
}

.photo-card:has(.photo-open:focus-visible) {
  outline: 1px dashed var(--foreground);
  outline-offset: 4px;
}

.photo-open img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.photo-open:after {
  opacity: var(--photo-shade);
  pointer-events: none;
  content: "";
  background: #101010;
  position: absolute;
  inset: 0;
}

.photo-card-title {
  border: 1px solid var(--line);
  --photo-notch: 3px;
  background: var(--background);
  max-width: 90%;
  color: var(--foreground);
  font: 400 .75rem/1.35 var(--font-mono);
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  padding: .35rem .65rem;
  transition: opacity .15s, transform .2s;
  position: absolute;
  bottom: calc(100% + .72rem);
  left: 50%;
  overflow: hidden;
  transform: translate(-50%, .2rem);
}

.photo-card[data-hovered] .photo-card-title, .photo-open:focus-visible + .photo-card-title {
  opacity: 1;
  transform: translate(-50%);
}

.photo-carousel-controls {
  font-variant-numeric: tabular-nums;
  grid-template-columns: 2.8rem minmax(0, auto) 2.8rem;
  justify-content: center;
  align-items: center;
  gap: .3rem clamp(.65rem, 1.6vw, 1.35rem);
  max-width: 100%;
  display: grid;
}

.photo-carousel-controls .photo-count {
  text-align: center;
  letter-spacing: .14em;
}

.photo-carousel-arrow {
  width: 2.8rem;
  height: 2.8rem;
  color: var(--muted);
  place-items: center;
  transition: color .16s;
  display: grid;
}

.photo-carousel-arrow:hover:not([aria-disabled="true"]) {
  color: var(--foreground);
}

.photo-carousel-arrow[aria-disabled="true"] {
  opacity: .38;
  cursor: default;
}

.photo-carousel-arrow > span {
  clip-path: polygon(50% 0, 61% 0, 61% 14%, 72% 14%, 72% 28%, 83% 28%, 83% 42%, 100% 42%, 100% 58%, 83% 58%, 83% 72%, 72% 72%, 72% 86%, 61% 86%, 61% 100%, 50% 100%, 50% 86%, 61% 86%, 61% 72%, 72% 72%, 72% 58%, 0 58%, 0 42%, 72% 42%, 72% 28%, 61% 28%, 61% 14%, 50% 14%);
  background: currentColor;
  width: 18px;
  height: 14px;
}

.photo-carousel-arrow:first-child > span {
  transform: scaleX(-1);
}

.photo-position {
  flex-wrap: wrap;
  grid-column: 1 / -1;
  justify-content: center;
  justify-self: center;
  gap: 4px;
  max-width: min(100%, 22rem);
  display: flex;
}

.photo-position i {
  background: #4a4a4a;
  width: 4px;
  height: 4px;
}

.photo-position i[data-current] {
  background: #fff;
}

.photo-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  color: var(--foreground);
  background: none;
  margin: 0;
  padding: clamp(.8rem, 3vw, 2.5rem);
  position: fixed;
  inset: 0;
  overflow: auto;
}

.photo-dialog[open] {
  place-items: safe center;
  display: grid;
}

.photo-dialog::backdrop {
  background: #080808f5;
}

body:has(.photo-dialog[open]) {
  overflow: hidden;
}

.photo-viewer {
  gap: .85rem;
  width: min(100%, 1210px);
  margin: auto;
  display: grid;
}

.photo-viewer-bar, .photo-viewer-controls {
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  display: flex;
}

.photo-count, .photo-viewer-figure figcaption {
  color: var(--muted);
  font: 400 .84rem/1.45 var(--font-mono);
}

.photo-viewer-figure {
  text-align: center;
  min-width: 0;
  margin: 0;
}

.photo-viewer-figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 72svh;
  margin-inline: auto;
  display: block;
}

.photo-viewer-figure figcaption {
  gap: .3rem;
  margin-top: .8rem;
  display: grid;
}

.photo-viewer-figure figcaption > span:first-child {
  color: var(--foreground);
}

.photo-viewer-button {
  border: 1px solid var(--line);
  min-width: 2.85rem;
  min-height: 2.85rem;
  font: 400 .84rem/1.4 var(--font-mono);
  border-radius: .35rem;
  place-items: center;
  padding: 0 .7rem;
  display: inline-grid;
}

.photo-viewer-button:hover {
  border-color: var(--muted);
}

.photo-viewer-button svg {
  width: 1.14rem;
  height: 1.14rem;
}

@media (max-width: 639px) {
  .photo-carousel {
    --photo-card-width: min(62%, 48svh, 25rem);
    --photo-depth: clamp(2rem, 15vw, 6rem);
  }

  .photo-carousel-stage {
    height: clamp(16rem, 51svh, 28rem);
  }

  .photo-carousel-stack {
    perspective: 40rem;
  }

  .photo-carousel-stack > .photo-card {
    transform: var(--photo-rest-transform);
    visibility: var(--photo-rest-visibility);
    --photo-shade: var(--photo-rest-shade);
  }

  .photo-viewer-figure img {
    max-height: 67svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-card-title, .photo-carousel-arrow {
    transition: none;
  }
}


[data-photo-scene], [data-photo-slot]:not([hidden]) {
  display: contents;
}

.photo-album {
  --album-gap: 9px;
  padding-block: clamp(2.5rem, 5vw, 4.2rem) clamp(2.75rem, 6vw, 5.5rem);
}

.photo-album-heading {
  justify-items: start;
  gap: .8rem;
  margin-bottom: clamp(1.4rem, 3.5vw, 3rem);
  display: grid;
}

.photo-album-heading h1 {
  font: 500 clamp(2rem, 4vw, 4rem)/1.1 var(--font-mono);
  letter-spacing: -.06em;
  overflow-wrap: anywhere;
}

.photo-album-heading p {
  max-width: 55ch;
  color: var(--muted);
  line-height: 1.55;
}

.photo-album-rows, .photo-album-row {
  gap: var(--album-gap);
  display: grid;
}

.photo-album-row {
  grid-template-columns: var(--album-columns);
  align-items: start;
}

.photo-album-row[data-single] {
  justify-self: center;
  width: min(100%, 850px);
}

.photo-album-row[data-cover-row] {
  --album-lead-width: 1016px;
  width: min(100%, var(--album-lead-width));
}

.photo-album-row[data-cover-row][data-portrait] {
  --album-lead-width: 640px;
}

.photo-album-rows[data-has-companions] .photo-album-row[data-cover-row] {
  width: min(100%, var(--album-lead-width), calc(54svh * var(--album-lead-ratio)));
}

.photo-album-image {
  min-width: 0;
  margin: 0;
}

.photo-album-open {
  cursor: zoom-in;
  background: #161616;
  width: 100%;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
}

.photo-album-open:focus-visible {
  outline-offset: -4px;
}

.photo-album-open img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-album-image figcaption {
  color: var(--muted);
  margin: .35rem 0 .2rem;
  font-size: .75rem;
  line-height: 1.4;
}

@media (max-width: 639px) {
  .photo-album {
    --album-gap: 6px;
  }

  .photo-album-row[data-wide-pair] {
    grid-template-columns: minmax(0, 1fr);
  }
}

@property --photo-dissolve {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@media (prefers-reduced-motion: no-preference) {
  :root:active-view-transition-type(photo-collection) :is(.photo-open, .photo-album-open) {
    view-transition-name: var(--photo-transition-name, none);
    view-transition-class: photo-album-cover;
  }

  :root:active-view-transition-type(photo-collection)::view-transition {
    background: #141414;
  }

  :root:active-view-transition-type(photo-collection)::view-transition-group(*) {
    animation-duration: .7s;
    animation-timing-function: cubic-bezier(.22, .76, .2, 1);
  }

  :root:active-view-transition-type(photo-collection):has([data-photo-scene="album"])::view-transition-group(*.photo-album-cover) {
    animation-delay: 65ms;
  }

  :root:active-view-transition-type(photo-collection)::view-transition-image-pair(*.photo-album-cover) {
    clip-path: polygon(0 0, 18% 0, 18% var(--photo-dissolve), 22% var(--photo-dissolve), 22% 0, 100% 0,
      100% 35%, calc(100% - var(--photo-dissolve)) 35%, calc(100% - var(--photo-dissolve)) 39%, 100% 39%, 100% 100%,
      72% 100%, 72% calc(100% - var(--photo-dissolve)), 68% calc(100% - var(--photo-dissolve)), 68% 100%, 0 100%,
      0 65%, var(--photo-dissolve) 65%, var(--photo-dissolve) 61%, 0 61%);
    animation: .76s ease-in-out reverse both album-cover-lift, .76s steps(3, end) both photo-edge-dissolve;
    overflow: clip;
  }

  :root:active-view-transition-type(photo-collection)::view-transition-old(*.photo-album-cover) {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  :root:active-view-transition-type(photo-collection)::view-transition-new(*.photo-album-cover) {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  :root:active-view-transition-type(photo-collection):has([data-photo-scene="album"])::view-transition-image-pair(*.photo-album-cover) {
    animation-direction: normal;
  }

  :root:active-view-transition-type(photo-collection)::view-transition-old(root) {
    animation: .54s both album-background-out;
  }

  :root:active-view-transition-type(photo-collection)::view-transition-new(root) {
    animation: .68s ease-out both album-background-in;
  }

  .photo-album-image:not([data-lead]) {
    animation: album-image-reveal .54s var(--motion-out, ease-out) backwards;
    animation-delay: calc(var(--album-reveal-index) * 55ms);
  }

  .photo-album-open[data-pixel-revealed]:after {
    content: "";
    pointer-events: none;
    background: conic-gradient(#141414 25%, transparent 0 50%, #141414 0 75%, transparent 0) 0 0 / 8px 8px;
    animation: .36s steps(5, end) both pixel-album-reveal;
    position: absolute;
    inset: 0;
  }

  @keyframes photo-edge-dissolve {
    0%, 100% {
      --photo-dissolve: 0px;
    }

    40% {
      --photo-dissolve: 7px;
    }
  }

  @keyframes pixel-album-reveal {
    from {
      opacity: .27;
      clip-path: inset(0);
    }

    to {
      opacity: 0;
      clip-path: inset(100% 0 0);
    }
  }

  @keyframes album-cover-lift {
    0%, 100% {
      scale: 1;
    }

    12% {
      scale: 1.1;
    }
  }

  @keyframes album-background-out {
    from {
      opacity: 1;
      filter: blur();
    }

    to {
      opacity: 0;
      filter: blur(9px);
    }
  }

  @keyframes album-background-in {
    from {
      opacity: 0;
      filter: blur(5px);
    }

    to {
      opacity: 1;
      filter: blur();
    }
  }

  @keyframes album-image-reveal {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}


