@import url('https://use.typekit.net/fgh2jsp.css?display=swap');

:root {
  --primary: black;
  --secondary: white;
  --grey: #8C8C8C;
  /* --lighter-grey: #CCC; */
  --bg-color: #F2F2F2;
  --mark-color: #FFF;
  --lighter-grey: #999;
  /* --grey5: #141414; */
  --greydarker: #F2F2F2;
  --grey1: #F2F2F2;
  --grey2: #D9D9D9;
  --grey3: #999;
  --grey4: #808080;
  /* --grey5: #1F1F1F; */
  --grey5: #141414;
  --hr: #00000030;

  --shader: #FFF;
  /* --slate: #8A9899; */
  --slate: #72858B;
  --red: #F0512E;
  --orange: #ED6C32;
  --blue: #2AACE2;
  --green: #31B67B;
  --pink: #FFC5C6;
  --neon: #E3FF73;
  --select: #31B67B;
  --focus: #333333;
  --backdrop: #00000020;
  --divtab: #FFFFFF80;
  /* --border: #B3B3B3; */
  --border: #00000030;


  --gradient-light-down: linear-gradient(to top, #f2f2f2, transparent 100%);
  --gradient-light-up: linear-gradient(to bottom, #f2f2f2, transparent 100%);
  --gradient-dark-down: linear-gradient(to top, #141414, #000000 100%);
  --gradient-dark-up: linear-gradient(to bottom, #141414, #000000 100%);

  --imp-hit: 3px;
  --imp-arrow-offset: 2px;
  --imp-line-gap: 4px;
  --imp-line-delay: .2s;
  --imp-stroke-width: 1.5px;

  --social-gap: 7px;

  --wt-inset: 20px;
  --wt-bracket: 7px;


  --columns: 8;
  --gap: 15px;
  --clear-gap: -15px;
  /* --clear-gap: -120px; */
  --space-xsmall: 40px;
  --space-small: 60px;
  /* --space-medium: 120px;
  --space-large: 240px;
  --space-xlarge: 360px;
  --space-xxlarge: 480px; */
  --space-medium: 120px;
  --space-large: 240px;
  --space-xlarge: 360px;
  --space-xxlarge: 420px;

  --twoxl-size: min(40svh, 25vw);


  /* --column-gap: calc((100% - ((var(--columns) - 87.4) * var(--gap))) / var(--columns)); */
  /* --column-gap: calc((100% - ((var(--columns) - 10) * var(--gap))) / var(--columns)); */

  /* --column-gap: calc((100% - (var(--columns) - 1) * var(--gap)) / var(--columns) + 15px); */


  /* --column-gap: calc(((100% - (9 * var(--gap))) / 10 * 5) + (5.6 * var(--gap))); */

  --easing: .3, .9, .4, 1;
  /* --easing: .785, .135, .150, .860; */
  --easing1: .5, .2, .1, 1;
  --easing2: .87, 0, .1, 1;
  --easing3: .3, 0, 0, 1;


  --timing: .35s;
  --timing2: .5s
}

[data-theme="light"] {
  color-scheme: light;

  --primary: black;
  --secondary: white;
  --lighter-grey: #999;
  --greydarker: #F2F2F2;
  --hr: #00000030;
  /* --shader: #FFF; */

  --select: #32B67A;
  --focus: #333333;
  --backdrop: #00000020;
  --divtab: #FFFFFF80;
  --border: #00000030;
  --framebg: #F2F2F2;

  --gradient-light-down: linear-gradient(to top, #f2f2f2, transparent 100%);
  --gradient-light-up: linear-gradient(to bottom, #f2f2f2, transparent 100%);

  --view: url(../img/svg/view.svg);
  --no-view: url(../img/svg/no_view.svg);
}

[data-theme="dark"] {
  color-scheme: dark;

  --primary: white;
  --secondary: black;
  --hr: #FFFFFF30;
  /* --lighter-grey: #333333; */
  /* --lighter-grey: #1F1F1F; */
  --bg-color: #141414;
  --mark-color: #666;
  /* --lighter-grey: #666666; */
  --lighter-grey: #808080;
  --greydarker: #666666;
  --grey3: #808080;
  /* --lighter-grey: #F2F2F2; */
  /* --shader: #000; */

  --select: #72858B;
  --focus: #D9D9D9;
  --backdrop: #00000090;
  --divtab: #00000080;
  --border: #FFFFFF30;
  --framebg: #141414;

  --gradient-dark-down: linear-gradient(to top, #141414, #000000 100%);
  --gradient-dark-up: linear-gradient(to bottom, #141414, #000000 100%);

  --view: url(../img/svg/view_grey.svg);
  --no-view: url(../img/svg/no_view_grey.svg);
}


* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  /* min-width: 950px; */
  height: 100%;
  background-color: var(--primary);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scrollbar-color: var(--grey3) var(--secondary);
  /* scroll-behavior: smooth; */
}


.error {
  background-color: var(--secondary);
}

/* body {
  background-color: black;
} */

*::selection {
  background-color: transparent;
  color: var(--select);
  background-color: var(--primary);
  color: var(--secondary);
}

nav *::selection {
  background-color: transparent;
  color: var(--select);
  background-color: var(--secondary);
  color: var(--primary);
}


#scroll-indicator::selection {
  background-color: transparent;
  color: var(--grey3);
}

img::selection {
  background-color: transparent;
  color: none;
}


/* html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
} */



.clipped,
.clipped2,
.clipped3,
.list-nav li,
.list-small li,
.list-med li,
.list-large li {
  position: relative;
  width: fit-content;
  height: fit-content;
  overflow: hidden;
  clip-path: polygon(0 -10%, 100% -10%, 100% 100%, 0% 100%);
}

.clipped2 {
  clip-path: polygon(0 -20%, 120% -20%, 120% 120%, 0% 120%);
}

.clipped3 {
  /* clip-path: polygon(0 0, 125% 0, 125% 100%, 0% 100%); */
  overflow: visible;
  clip-path: polygon(-5px -5px, 125% -5px, 125% calc(100% + 5px), -5px calc(100% + 5px));
}
.clipped.imp-clip {
  width: calc(100% + var(--imp-hit) * 2);
  margin: calc(var(--imp-hit) * -1);
  padding: var(--imp-hit);
}


.line-wrapper {
  display: block;
  overflow: hidden;
}

.line {
  display: block;
}






#page-overlay,
#page-overlay2 {
  position: fixed;
  z-index: 2000;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 0dvh;
  background-color: black;
  transition: height .9s cubic-bezier(var(--easing2));
  overflow: hidden;
}

#page-overlay2 {
  height: 100dvh;
  animation: overlays .9s cubic-bezier(var(--easing2)) both;
  transform-origin: bottom;
}








p,
/* .list-med, */
.project-item::after,
.list-small,
.list-med li,
.project-label,
dt,
dd,
.xl sup,
.project-title::after {
  margin: 0;
  padding: 0;
  font: 500 14px / 1 neue-haas-grotesk-text, sans-serif;
  font-feature-settings: 'salt', 'liga', 'calt';
  -webkit-font-feature-settings: 'salt', 'liga', 'calt';
  letter-spacing: -.15px;
  list-style: none;
  font-kerning: normal;
}

p,
.list-small li,
dt,
dd {
  line-height: 1.25;
}

p {
  color: var(--primary);
}



h1 {
  margin: 0;
  font: 700 6vw / 1 neue-haas-grotesk-display, sans-serif;
  /* font-size: max(6vw, calc(950px * 0.0525)); */
  /* font-size: max(5.5vw, calc(950px * 0.0525)); */
  /* font-size: max(5.5vw, calc(950px * 0.05)); */
  /* font-size: max(5.8vw, calc(950px * 0.05)); */
  /* font-size: max(6vw, calc(950px * 0.05)); */

  /* font-size: max(8vw, calc(950px * 0.05)); */
  font-size: max(6vw, calc(950px * 0.05));
  font-feature-settings: 'salt', 'liga', 'calt';
  -webkit-font-feature-settings: 'salt', 'liga', 'calt';
  letter-spacing: -2%;
  word-spacing: 1px;
  text-decoration: none;
  font-kerning: normal;
  color: var(--primary);
}

.xl,
.xl * {
  font: 800 8.75vw / .85 neue-haas-grotesk-display, sans-serif;
  /* font-size: max(5em, calc(320px * 0.5)); */
  /* font-size: calc(15rem + 15cqw); */
  /* font-size: clamp(15em, calc(15rem + (2 - 1) * ((100% - 320px) / (1200 - 320))), 2rem); */
  /* font-size: 125px; */
  font-feature-settings: 'salt', 'liga', 'calt' !important;
  -webkit-font-feature-settings: 'salt', 'liga', 'calt';
  letter-spacing: -3%;
  word-spacing: 10px;
  text-transform: uppercase;
}

.xl sup {
  position: relative;
  top: -34px;
  left: 15px;
}
.twoxl,
.twoxl * {
  font: 800 var(--twoxl-size) / .85 neue-haas-grotesk-display, sans-serif;
  /* font-size: max(5em, calc(320px * 0.5)); */
  /* font-size: calc(15rem + 15cqw); */
  /* font-size: clamp(15em, calc(15rem + (2 - 1) * ((100% - 320px) / (1200 - 320))), 2rem); */
  /* font-size: 125px; */
  /* font-size: 40vh; */
  font-feature-settings: 'salt', 'liga', 'calt' !important;
  -webkit-font-feature-settings: 'salt', 'liga', 'calt';
  letter-spacing: -3%;
  word-spacing: 10px;
  text-transform: uppercase;
}

.bleed {
  filter: url("#bleed");
}

h2,
.list-nav li,
.list-large li {
  margin: 0;
  font: 600 42px / 1 neue-haas-grotesk-display, sans-serif;
  /* font-size: max(4vw, calc(950px * 0.05)); */
  /* font-size: max(4vw, calc(950px * 0.045)); */
  /* font-size: 6vw; */
  /* font-size: 4.4vw; */
  /* font-size: 3.8vw; */
  font-size: 4vw;
  /* font-size: max(4vw, calc(950px * 0.065)); */
  /* font-size: max(2em, 64px); */
  font-feature-settings: 'salt', 'liga', 'calt';
  -webkit-font-feature-settings: 'salt', 'liga', 'calt';
  /* letter-spacing: -1.5px; */
  /* letter-spacing: -2.0675px; */
  letter-spacing: -.1rem;
  /* word-spacing: -1px; */
  /* word-spacing: .25rem; */
  text-decoration: none;
  font-kerning: none;
  color: var(--primary);
}

h3 {
  margin: 0;
  font: 600 42px / 1 neue-haas-grotesk-display, sans-serif;
  /* font-size: calc(1em + 1vw); */
  font-size: 36px;
  font-feature-settings: 'salt', 'liga', 'calt';
  -webkit-font-feature-settings: 'salt', 'liga', 'calt';
  letter-spacing: -.25px;
  text-decoration: none;
  font-kerning: none;
  color: var(--primary);
}

h4 {
  margin: 0;
  font: 500 28px / 1.1 neue-haas-grotesk-display, sans-serif;
  /* font-size: calc(.4em + 1.5vw); */
  /* font-size: 20px; */
  font-feature-settings: 'salt', 'liga', 'calt';
  -webkit-font-feature-settings: 'salt', 'liga', 'calt';
  letter-spacing: -.25px;
  text-decoration: none;
  font-kerning: none;
  color: var(--primary);
}
h5,
.nav-list-med li .link-roll {
  margin: 0;
  font: 500 28px / .95 neue-haas-grotesk-display, sans-serif;
  /* font-size: calc(.4em + 1.5vw); */
  /* font-size: 20px; */
  font-feature-settings: 'salt', 'liga', 'calt';
  -webkit-font-feature-settings: 'salt', 'liga', 'calt';
  letter-spacing: -.35px;
  text-decoration: none;
  font-kerning: none;
  color: var(--primary);
}

h6, .list-xsmall li {
  position: relative;
  margin: 0;
  height: fit-content;
  /* font: 500 11.5px / 1.25 neue-haas-grotesk-text, sans-serif; */
  font: 500 14px / .95 degular-mono, sans-serif;
  /* font-feature-settings: 'salt', 'liga', 'calt';
  -webkit-font-feature-settings: 'salt', 'liga', 'calt'; */
  letter-spacing: 2%;
  text-transform: uppercase;
  text-decoration: none;
  font-kerning: none;
  color: var(--grey3);
}

/* h7 {
  width: fit-content;
  margin: 0;
  padding: 7px;
  display: inline-block;
  font: 500 12px / 1 neue-haas-grotesk-text, sans-serif;
  -webkit-font-feature-settings: 'salt', 'liga', 'calt';
  font-feature-settings: 'salt', 'liga', 'calt';
  letter-spacing: .5px;
  text-align: center;
  text-transform: uppercase;
  color: var(--grey3);
  border: 1px solid var(--grey3);
  border-radius: 10px;
  pointer-events: none;
} */




ul {
  padding: 0;
  margin: 0;
  list-style: none;
}


.list-large,
.list-med {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
  counter-reset: figure;
  overflow: hidden;
}

.list-large li,
.list-med li {
  position: relative;
  width: 100%;
  /* line-height: 1.1; */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  counter-increment: figure;
}

.service {
  position: relative;
  width: 100%;
}

.list-large li .num {
  position: absolute;
  right: 0;
}

.list-med li::after {
  color: var(--primary);
}

.list-large .num-single {
  color: var(--primary);
}

/* .list-large li .num {
  opacity: 0;
} */
.list-large li .num::before,
.list-med li::after {
  content: counter(figure, decimal-leading-zero);
}

.list-med li::after {
  color: var(--grey3);
}

.list-med li {
  padding: 5px 0;
  /* padding: 0; */
  border-bottom: 1px solid var(--border);
  color: var(--grey3);
}

.list-med .link-roll {
  display: block;
  overflow: hidden;
  width: 100%;
}


.list-small {
  position: relative;
  /* margin-bottom: var(--gap); */
  padding: 0;
  width: fit-content;
  list-style: none;
  overflow: hidden;
}

.list-small li {
  /* line-height: 1.1; */
  color: var(--primary);
}

.list-small > li:first-child,
.list-small >  :first-child li {
  color: var(--grey3);
}




.list-xsmall li {
  position: relative;
  width: 100%;
  /* line-height: 1.1; */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  counter-increment: figure;
}
.list-xsmall li::after {
  color: var(--primary);
}
.list-large li .num::before,
.list-xsmall li::after {
  content: counter(figure, decimal-leading-zero);
}
.list-xsmall li::after {
  color: var(--grey3);
}
.list-xsmall li {
  padding: 2px 0;
  /* padding: 0; */
  border: none;
  color: var(--grey3);
}
.list-xsmall .link-roll {
  display: block;
  overflow: hidden;
  width: 100%;
}













/* .copyright * {
  color: var(--grey3);
} */
.heavy {
  /* font-weight: 700 !important; */
  font: 700 15px / 1.025 neue-haas-grotesk-display, sans-serif;
  font-feature-settings: 'salt', 'liga', 'calt';
  -webkit-font-feature-settings: 'salt', 'liga', 'calt';
  text-transform: uppercase;
}

.bigger {
  font-size: 1.04em;
  margin-right: -2px;
}

.upper {
  text-transform: uppercase;
}

.under {
  text-decoration: underline;
}

.highlight {
  color: var(--grey3);
}

.kern {
  letter-spacing: -10px;
}

.indent {
  width: var(--column-gap);
}




hr {
  margin: 0;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--primary);
  transform-origin: left;
  opacity: .2;
}






a {
  text-decoration: none;
  width: fit-content;
  /* height: fit-content; */
  color: var(--primary);
}






dt,
.nav-list li,
.link-roll:not(#contacts a, .list-nav .link-roll, .list-med .link-roll, .nav-list-med .link-roll, h1 .link-roll, h2 .link-roll, h4 .link-roll) {
  display: inline-block;
  overflow: hidden;
  font: 600 15px / 1 neue-haas-grotesk-display, sans-serif;
  /* font: 500 14px / 1 neue-haas-grotesk-text, sans-serif; */
  font-feature-settings: 'salt', 'liga', 'calt';
  -webkit-font-feature-settings: 'salt', 'liga', 'calt';
  /* font: 500 16px / 1 neue-haas-grotesk-text, sans-serif; */
  letter-spacing: -.25px;
}

.link-med {
  font-size: calc(1em + 1.5vw) !important;
}

h1 .link-roll,
h2 .link-roll,
h3 .link-roll,
h4 .link-roll {
  display: block;
  overflow: hidden;
  font: inherit;
}


.link-roll span {
  position: relative;
  display: inline-block;
  padding: 1px 0;
  transition: transform var(--timing2) cubic-bezier(var(--easing));
  /* color: var(--grey3); */
  /* transition: transform var(--timing2) cubic-bezier(var(--easing)), color var(--timing2) ease-in-out,background-color var(--timing2) ease-in-out; */
}

.link-roll span::before,
.link-roll span::after {
  position: absolute;
  top: 100%;
  content: attr(data-title);
  transition: transform var(--timing2) cubic-bezier(var(--easing));
  /* transition-delay: .1s; */
  white-space: nowrap;
}

.link-roll span::after {
  top: 200%;
  left: 0;
}

.link-roll:hover span,
.project:hover .link-roll span {
  transform: translateY(-100%);
}

.copy-mail {
  /* width: 55px; */
  overflow: hidden;
  cursor: copy;
}

.copy-mail:not(button).copied span {
  transform: translateY(-200%);
}

.link-roll span::after {
  content: attr(data-copied);
  top: 200%;
}

/* .copy-mail--left {
  width: 56px;
} */
/* .copy-mail--large {
  width: 100px;
} */
.copy-mail--right {
  text-align: right;
  width: 56px;
}

.copy-mail--right span::before,
.copy-mail--right span::after {
  right: 0;
  left: auto;
}



.link-important {
  position: relative;
  display: block;
  width: calc(100% + var(--imp-hit) * 2);
  margin: calc(var(--imp-hit) * -1);
  padding: var(--imp-hit);
  overflow: hidden;
  color: var(--primary);
  visibility: hidden;
}

.imp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--gap);
}


/* Text */
.imp-text,
/* .link-read-more .link-roll, */
.project-title .link-roll,
.project-title::after {
  display: block;
  min-width: 0;
  overflow: hidden;
  font: 700 15px / 1 neue-haas-grotesk-display, sans-serif !important;
  font-feature-settings: 'salt', 'liga', 'calt';
  -webkit-font-feature-settings: 'salt', 'liga', 'calt';
  letter-spacing: -.15px;
  text-transform: uppercase;
  white-space: nowrap;
}

.imp-text-reveal {
  display: block;
}

.imp-text-roll {
  position: relative;
  display: inline-block;
  padding: 1px 0;
  transition: transform var(--timing2) cubic-bezier(var(--easing));
}

.imp-text-roll::before {
  position: absolute;
  top: 100%;
  left: 0;
  content: attr(data-title);
  white-space: nowrap;
}

.link-important.is-hover .imp-text-roll {
  transform: translateY(-100%);
}

/* Hide the roll copy while the text slides in from above */
.link-important.is-revealing .imp-text-roll::before {
  visibility: hidden;
}


/* Arrow */
.imp-arrow {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: var(--imp-arrow-offset);
  overflow: hidden;
}

.imp-arrow svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--imp-stroke-width);
  stroke-linejoin: miter;
  stroke-linecap: butt;
  transition: transform var(--timing2) cubic-bezier(var(--easing));
}

.imp-arrow-in {
  transform: translate(-100%, 100%);
}

.link-important.is-hover .imp-arrow-out {
  transform: translate(100%, -100%);
}

.link-important.is-hover .imp-arrow-in {
  transform: translate(0, 0);
}


/* Line */
/* Line */
.imp-line {
  position: relative;
  display: block;
  width: 100%;
  height: var(--imp-stroke-width);
  margin-top: var(--imp-line-gap);
  transform-origin: left center;
}

.imp-line-fill,
.imp-line-next {
  position: absolute;
  inset: 0;
  display: block;
  background-color: currentColor;
  transition: transform .2s cubic-bezier(var(--easing));
}

.imp-line-fill {
  transform-origin: right center;
  transition-delay: var(--imp-line-delay);
}

.imp-line-next {
  transform: scaleX(0);
  transform-origin: left center;
  transition-delay: 0s;
}

.link-important.is-hover .imp-line-fill {
  transform: scaleX(0);
  transition-delay: 0s;
}

.link-important.is-hover .imp-line-next {
  transform: scaleX(1);
  transition-delay: var(--imp-line-delay);
}

/* Line out: stay */
.link-important[data-line-out="stay"]:not(.is-hover) .imp-line-fill,
.link-important[data-line-out="stay"]:not(.is-hover) .imp-line-next {
  transition: none;
}

/* Line out: sweep */
.link-important[data-line-out="sweep"]:not(.is-hover) .imp-line-fill {
  transform-origin: left center;
}

.link-important[data-line-out="sweep"]:not(.is-hover) .imp-line-next {
  transform-origin: right center;
}

.link-button {
  overflow: hidden;
}
.link-button .link-important {
  color: inherit;
}


@media (prefers-reduced-motion: reduce) {
  .imp-text-roll,
  .imp-arrow svg,
  .imp-line-fill,
  .imp-line-next {
    transition: none;
  }
}



.link-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
}

.read-more-icon {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--secondary);
  transition: transform var(--timing2) cubic-bezier(var(--easing));
  /* transform: translateY(-1px); */
  transform-origin: center center;
}

.read-more-icon svg {
  display: block;
  width: 9px;
  height: 9px;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--imp-stroke-width);
  stroke-linecap: butt;
}

/* .link-read-more:hover .read-more-icon {
  transform: scale(1.1);
  transform: rotate(180deg);
} */
.link-read-more .link-roll {
  transform: translateY(1px);
}
.link-read-more:hover .link-roll span {
  transform: translateY(-100%);
}

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
















nav {
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
  height: fit-content;
  padding-top: var(--gap);
  display: grid;
  grid: auto / 0px repeat(var(--columns), 1fr) 0px;
  grid-gap: var(--gap);
  background: none;
  pointer-events: none;
  mix-blend-mode: exclusion;
}

nav * {
  pointer-events: all;
}

nav .bm-small {
  position: relative;
  z-index: 1000;
  grid-area: 1 / 2 / 1 / 5;
  /* display: none; */
}

nav .bm-small a {
  position: relative;
  display: block;
  line-height: 0;
  /* width: 100%; */
  /* width: 40px; */
  /* width: 50px; */
  width: 70px;
}
nav .bm-small a::before {
  content: '';
  position: absolute;
  inset: -5px;
}

.bm-small {
  position: relative;
  transform-origin: top left;
}

.bm-small svg {
  fill: white;
}


nav .nav-list {
  position: relative;
  grid-area: 1 / 6 / 1 / -2;
  /* justify-self: end; */
  list-style: none;
  display: inline-flex;
  justify-content: flex-end;
  margin: 0;
  /* margin-bottom: var(--space-small); */
  padding: 0;
  width: fit-content;
  transform: translateY(-3px);
  /* display: none; */
}

nav .nav-list li {
  /* padding-right: 4px; */
  padding-right: .25rem;
}

nav .nav-list a {
  color: white;
  transition: opacity var(--timing2) cubic-bezier(var(--easing));
}

.nav-list li:has(a:hover)~li a,
.nav-list li:has(~ li a:hover) a {
  opacity: .4;
  transition: opacity var(--timing2) cubic-bezier(var(--easing));
}




#nav-extras {
  grid-area: 1 / 6 / 1 / -2;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 15px;
  height: fit-content;
  transform: translateY(-4px);
}

#page-percentage {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: fit-content;
  text-align: right;
}

#page-percentage * {
  color: var(--grey3);
  pointer-events: none;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

#lights {
  position: relative;
  top: 4px;
  align-items: center;
  height: 10px;
  width: 10px;
  border-radius: 1000px;
  cursor: pointer;
  transform-origin: center center;
}

#lights::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
}

.lights-inner {
  position: absolute;
  top: 0;
  left: 0;
  height: 10px;
  width: 10px;
  background: white;
  border-radius: 1000px;
  cursor: pointer;
  transition: transform .25s cubic-bezier(var(--easing3));
}

#lights:hover .lights-inner {
  transform: scale(1.2);
  transition: transform .25s cubic-bezier(var(--easing3));
}



/* [data-theme="dark"] .lights-path {
  d: path("M7.2,3.6a3.6,3.6,0,1,1-3.6-3.6A3.6,3.6,0,0,1,7.2,3.6Z");
} */











.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/11;
  background: center center / 100% var(--grey5) no-repeat;
  overflow: hidden;
  transform-origin: center;
}

.frame-small {
  position: relative;
  width: 100%;
  background: center center / 100% var(--grey5) no-repeat;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transform-origin: top;
}

.image {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: center center / cover no-repeat transparent;
  transform: scale(1.3);
}













.page-wrapper {
  background-color: var(--secondary) !important;
}


.grid {
  position: relative;
  z-index: 2;
  width: 100%;
  /* padding: 0 0 var(--gap); */
  padding: 0;
  display: grid;
  grid: auto / 0px repeat(var(--columns), 1fr) 0px;
  grid-gap: var(--gap);
  /* background-color: var(--secondary); */
}

main.grid {
  padding: 0;
  /* background: var(--grey1); */
  /* column-gap: var(--gap);
  row-gap: 0; */
  background-color: var(--secondary);
}

#top {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100dvh;
  min-height: 600px;
  margin: auto;
  display: grid;
  grid: 0px repeat(4, 1fr) 0px / 0px repeat(var(--columns), 1fr) 0px;
  grid-gap: var(--gap);
  background-color: var(--secondary);
  overflow: hidden;
}

#top .frame,
#top .frame-small {
  z-index: 3;
  grid-area: 2 / 5 / -2 / 7;
  align-self: center;
}

#top .frame .image,
#top .frame-small .image {
  animation: huerotate 1.25s cubic-bezier(var(--easing2)) .25s both;
}

#top .frame {
  grid-area: 2 / 4 / -2 / 8;
}


/* #index #top .bg-image .image {
  background-image: url(../img/dither_gradient_light.gif);
} */
#index #top {
  background-color: var(--secondary);
}

#index #top .frame .image {
  background-image: url(../img/shot_example.webp);
  background-size: 40%;
}

#about #top .frame-small .image {
  background-image: url(../img/dither-b.gif);
}

#index #top .bm-mark svg,
#temp #top .bm-mark svg {
  fill: var(--primary);
}

/* #index #top {
  background: var(--grey1);
} */

/* #index #top {
  background-image: url(../img/dither_gradient_light.gif);
}
[data-theme="dark"] #index #top { background-image: url(../img/dither_gradient_light.gif); }
[data-theme="dark"] #index #top  { background-image: url(../img/dither_gradient_dark.gif); } */

/* main {
  animation: slide-up 1.25s cubic-bezier(var(--easing2)) .25s both;
} */




.work-tab {
  position: relative; z-index: 5;
  grid-area: 2 / 4 / -2 / 8;
  align-self: center;
  width: 100%;
  aspect-ratio: 2 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  cursor: pointer;
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  background-color: var(--grey5);
}


/* Image half */
.wt-media {
  position: relative;
  overflow: hidden;
  background-color: var(--grey5);
}

.work-tab .image {
  background-image: url('../img/bg/dither_bg_grey.png');
  /* background-image: url('../img/shots.gif'); */
/* animation: huerotate var(--timing) cubic-bezier(var(--easing)); */
}


/* Info half */
.wt-info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--wt-inset);
  background-color: var(--bg-color);  
}

.wt-extra {
  align-self: flex-end;
  visibility: hidden;
}

.wt-extra h3 {
  color: var(--secondary);
}

.wt-extra svg {
  display: block;
  width: 50px;
  height: auto;
  fill: var(--grey3);
}






#top2 {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 50dvh;
  /* height: 100dvh; */
  /* height: 50dvh; */
  margin: auto;
  padding-bottom: 0;
  display: grid;
  grid: 0px repeat(2, 1fr) 0px / 0px repeat(var(--columns), 1fr) 0px;
  grid-gap: var(--gap);
  /* grid-template-rows: 0px repeat(3, calc((100dvh - 5 * var(--gap)) / 4)) auto 0px; */
  /* grid-auto-rows: auto; */
  /* grid-template-columns: 0px repeat(var(--columns), 1fr) 0px; */
  /* background-color: var(--secondary); */
  background-color: transparent;
  overflow: hidden;
}

.project-page-initial {
  grid-area: 2 / 8 / -2 / -2;
  align-self: end;
}
.project-page-count {
  grid-area: 2 / 6 / -2 / -2;
  justify-self: end;
  align-self: end;
  font-variant-numeric: tabular-nums;  
}

/* .project-page-initial *,
.project-page-count * {
  color: var(--grey5);
} */


.title {
  grid-area: 2 / 2 / -2 / -2;
  /* justify-self: end; */
  align-self: center;
  overflow: hidden;
  /* display: none; */
}
#top2 .link-button {
  grid-area: 2 / 2 / -2 / 4;
  align-self: end;
  /* display: none; */
}
#top2 .categories {
  grid-area: 2 / 6 / -2 / 10;
  align-self: end;
  /* display: none; */
  height: fit-content; width: fit-content;
  overflow: hidden;
}



#top2 hr {
  grid-area: 3 / 2 / 3 / -2;
  align-self: end;
  animation: grow .5s cubic-bezier(var(--easing)) .75s both;
  /* align-self: center; */
}

#top2 .link-roll {
  grid-area: 3 / 2 / -2 / 4;
  align-self: end;
}

/* #top2 .list-small:first-of-type { */
#top2 .duties {
  grid-area: 4 / 8 / 5 / 10;
}

/* #top2 .list-small:last-of-type { */
#top2 .year {
  grid-area: 4 / 6 / 5 / -3;
  /* justify-self: end; */
}
#scroll-down {
  position: relative;
  z-index: 2;
  grid-area: 2 / 2 / -2 / -2;
  justify-self: end;
  align-self: end;
  transform: translateY(2px);
  display: none;
}
.mouse-inner {
  width: 2px;
  padding: 6px 8px 6px 10px;
  height: 20px;
  border: 1px solid var(--grey);
  border-radius: 25px;
  box-sizing: content-box;
}
.scroller {
  width: 1px;
  height: 10px;
  background-color: var(--grey);
  animation: scroll 1.35s ease-in-out both infinite;
}



#top-long {
  position: relative;
  z-index: 0;
  width: 100%;
  margin: auto;
  padding-bottom: var(--gap);
  display: grid;
  grid-template-rows: 0px repeat(4, calc((100dvh - 5 * var(--gap)) / 4)) auto 0px;
  /* grid-auto-rows: auto; */
  grid-template-columns: 0px repeat(var(--columns), 1fr) 0px;
  grid-gap: var(--gap);
  /* background-color: var(--secondary); */
  overflow: hidden;
}

.section-marker {
  position: absolute;
  top: var(--gap); left: var(--gap);
  width: 10px;
  height: 10px;
  background-color: white;
  mix-blend-mode: exclusion;
  /* opacity: .6; */
}

/* .section-marker.connect-start {
  width: 12px;
}

.section-marker.connect-start,
.section-marker.connect-first {
  grid-area: -1 / 6 / -1 / 6;
  align-self: end;
}

.section-marker.connect-second {
  grid-area: 2 / 6 / 2 / 6;
  align-self: start;
} */



/* #top-long .bm-mark {
  position: relative; z-index: 10;
  grid-area: 3 / 2 / 3 / 3;
  align-self: end;
  width: 100%;
}
#top-long .bm-mark svg {
  fill: white;
  animation: fall-down 1.25s cubic-bezier(var(--easing2)) .25s both;
} */

#top-long .frame-small {
  position: relative;
  z-index: 10;
  grid-area: 3 / 8 / 6 / -2;
  align-self: end;
  height: fit-content;
  /* margin-top: var(--space-xlarge); */
}

#top-long .frame-small .image {
  background-image: url('../img/just_b.webp');
}

#top-long .blurb {
  grid-area: 4 / 2 / 7 / -2;
  align-self: start;
  /* margin-bottom: var(--space-xlarge); */
}

.blurb .push {
  float: left;
  width: calc(((100% - (var(--columns) - 1) * var(--gap)) / var(--columns)) * 2 + var(--gap));
  height: 1em;
  margin-right: var(--gap);
}


#top-long .list-med {
  grid-area: 7 / 2 / 7 / 4;
  align-self: end;
  margin-top: var(--space-xlarge);
}

/* #top-long .frame-small {
  grid-area: 7 / 8 / 7 / -2;
  align-self: end;
  height: fit-content;
  margin-top: var(--space-large);
}
#top-long .frame-small .image {
  background-image: url('../img/just_b.webp');
} */






.trail-img {
  position: absolute;
  z-index: 3;
  width: 200px;
  aspect-ratio: 1 / 1;
  background: center center / cover no-repeat var(--grey5);
  pointer-events: none;
  opacity: 0;
  translate: -50% -50%;
  will-change: transform, opacity;
  backface-visibility: hidden;
}





#top-title-bar {
  position: relative;
  z-index: 4;
  grid-area: 2 / 2 / -2 / -2;
  align-self: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-1em);
}

#top-title-bar p {
  color: var(--grey3);
}

#top-title-bar svg {
  position: absolute;
  left: 50%;
  width: 50px;
  fill: var(--grey3);
  transform: translateX(-50%);
}


#top .bm-mark {
  position: relative;
  z-index: 1;
  grid-area: 2 / 2 / -2 / -2;
  justify-self: start;
  align-self: end;
  width: 100%;
  /* transform: translateY(5px); */
}

.bm-mark svg {
  position: relative;
  fill: var(--primary);
}

#top .bm-mark svg {
  fill: var(--lighter-grey);
}
/* #about #top .bm-mark svg {
  fill: var(--primary);
} */
.ticker,
#top .bm-mark {
  visibility: hidden;
}




.bg-image {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  pointer-events: none;
}

[data-theme="dark"] .bg-image .image-light {
  opacity: 0;
}

[data-theme="dark"] .bg-image .image-dark {
  opacity: 1;
}



.bg-image .image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  background-attachment: scroll;
  background-repeat: no-repeat;
  transition: opacity .35s ease-in-out;
}

.bg-image .image-light {
  background-image: url('../img/bg/bg_white.webp');
  opacity: 1;
}

.bg-image .image-dark {
  background-image: url('../img/bg/bg_black.webp');
  opacity: 0;
}









#about #top .frame {
  position: relative;
  z-index: 0;
  grid-area: 2 / 6 / -2 / 10;
  justify-self: center;
  align-self: center;
  aspect-ratio: 1 / 1;
}

#about #top .frame .image {
  background-image: url(../img/just_b.webp);
}

.stickers {
  position: relative;
  z-index: 1;
  grid-area: 2 / 3 / -2 / -3;
  justify-self: center;
  align-self: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stickers * {
  pointer-events: all;
}



.stickers #smiley {
  position: absolute;
  top: 25%;
  left: 15%;
  width: clamp(150px, 20vw, 200px);
  height: clamp(150px, 20vw, 200px);
  transform: rotate(-15deg);
}

.smiley-outer {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px;
  border-radius: 50%;
  background-color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.smiley-text {
  position: absolute;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  inset: 8px;
  animation: spin 15s linear infinite;
}

.smiley-face {
  position: relative;
  top: 10px;
  z-index: 1;
  width: 50%;
}

.stickers #tac {
  position: absolute;
  left: 10%;
  top: 45%;
  width: clamp(200px, 20vw, 350px);
  height: clamp(200px, 20vw, 350px);
  transform: rotate(-10deg);
}

#googly {
  position: absolute;
  left: 50%;
  top: 30%;
  width: clamp(250px, 20vw, 400px);
  height: clamp(250px, 20vw, 400px);
  /* transform: rotate(15deg); */
  transform: translateX(-50%) scale(2);
}

.eyes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: -15px;
  height: 100%;
}

.eyes .circle-container {
  position: relative;
  width: clamp(50px, 20vw, 150px);
  height: clamp(50px, 20vw, 150px);
  margin-right: -15px;
  border-radius: 50%;
  border: 15px solid var(--grey5);
  background: white;
  overflow: hidden;
}


.eyes .inner-circle {
  width: 66%;
  height: 66%;
  border-radius: 50%;
  background-color: var(--grey5);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}


.stickers #b-stamp {
  position: absolute;
  right: 20%;
  top: 65%;
  width: clamp(100px, 20vw, 175px);
  height: clamp(100px, 20vw, 175px);
  transform: rotate(20deg);
}






.image-large {
  position: relative;
  grid-area: auto / 2 / auto / -2 ;
  height: 100dvh;
  width: 100%;
  background-color: var(--grey5);
  overflow: hidden;
}

video {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
  filter: saturate(1.001);
}

/* #index .image-large .image,
#index .section-large .image {
  background-image: url(../img/bg/dither_2.png);
  mix-blend-mode: multiply;
} */



/* *:has(+ .marquee-text) {
  position: relative;
  z-index: 2;
} */

.marquee-text {
  grid-area: auto / 1 / auto / -1;
  position: relative;
  z-index: 1;
  /* padding: var(--gap) 0 var(--space-small); */
  padding-top: var(--gap);
  /* margin-top: var(--clear-gap); */
  margin: var(--clear-gap) 0 calc((var(--twoxl-size) * .85 + var(--gap)) / -1.75);
  background-color: var(--grey4);
  overflow-x: clip;
  overflow-y: visible;
  display: none;
}

.marquee {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
}

.marquee .twoxl {
  flex: none;
  white-space: nowrap;
  /* color: var(--secondary); */
  color: var(--grey3);
}






  
.section-large {
  position: relative; z-index: 1;
  grid-area: auto / 1 / auto / -1;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: 0px repeat(4, minmax(0, 1fr));
  row-gap: var(--gap);
  height: 100dvh;
  width: 100%;
  padding: 0;
  /* background-color: var(--grey5); */
  /* background-color: var(--bg-color); */
  background-color: var(--grey5);
  overflow: hidden;
}


#info-small {
  position: relative; z-index: 1;
  grid-area: auto / 1 / auto / -1;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: 0px repeat(4, minmax(0, auto));
  row-gap: var(--gap);
  /* height: 100dvh; */
  width: 100%;
  padding: 0;
  /* background-color: var(--grey5); */
  background-color: var(--secondary);
  overflow: hidden;
}

.title-bar-section {
  position: relative;
  z-index: 3;
  grid-area: 2 / 1 / 2 / -1;
  align-self: start;
  display: grid;
  grid-template-columns: subgrid;
  margin-bottom: var(--space-medium);
  visibility: hidden;
}
.title-bar-section hr {
  grid-column: 2 / -2;
  margin-bottom: 15px;
}
.title-bar-section h6:nth-of-type(1) {
  grid-column: 2 / 4;
}

.title-bar-section h6:nth-of-type(2) {
  grid-column: 4 / 6;
}

.title-bar-section .list-xsmall {
  grid-column: 8 / -2;
}


.section-aside {
  position: relative;
  z-index: 3;
  grid-area: 3 / 1 / 3 / -1;
  align-self: center;
  display: grid;
  grid-template-columns: subgrid;
}

.section-aside h2 {
  grid-column: 2 / 8;
  margin-bottom: var(--space-small);
}

.section-aside .link-button {
  grid-column: 2 / 4;
}

.section-large .blurb-small {
  grid-area: 2 / 6 / -2 / 8;
  align-self: end;  
}

#info-small .frame-small {
  grid-area: 4 / 8 / 4 / -2;
  align-self: end;
}
#info-small .frame-small .image {
  background-image: url(../img/shots_large.png);
}



/* .image-large {
  grid-area: auto / 2 / auto / -1 !important;
  padding: 0;
} */
/* #index .section-large .image {
  background-image: url(../img/dither_gradient_dark.gif);
} */

#index .image-large {
  background-color: var(--grey5);
  /* background: var(--gradient-light-up); */
}

/* #index .image-large .image {
  background-image: url(../img/dither_kaneda_bw.gif);
  mix-blend-mode: multiply;
} */

#about .section-large {
  background-color: var(--grey5);
}

#about .section-large .image {
  background-image: url(../img/dither_kaneda_bw.gif);
  mix-blend-mode: multiply;
  background-size: 80%;
  /* opacity: .88; */
}

#about .image-large .image {
  background-image: url(../img/mealready/mealready_app_icon.webp);
  background-size: 75%;
}


#about-info {
  z-index: 10;
  grid-column: 1 / -1;
  grid-row: span 2;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  width: 100%;
  padding: 0 0 var(--space-medium);
  margin: auto;
  /* background-color: var(--secondary); */
  /* padding-bottom: var(--space-large); */
}

#about-info h2:first-of-type {
  grid-area: 1 / 2 / 1 / -2;
  margin-top: var(--space-medium);
}

#about-info h2:last-of-type {
  grid-area: 2 / 4 / 2 / -2;
  transform: translateY(-18px);
}





#services {
  grid-column: 1 / -1;
  /* grid-row: span 2; */
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  z-index: 10;
  width: 100%;
  margin: auto;
  padding: 0 0 var(--space-medium);
  /* background-color: var(--secondary); */
  /* padding-bottom: var(--space-large); */
}

/* #services .title-bar-small {
  grid-area: 1 / 6 / 1 / -2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: fit-content;
}
.title-bar-small p {
  color: var(--grey3);
} */

#services .section-title {
  grid-area: 1 / 2 / 2 / 4;
  color: var(--grey3);
}

#services .title-count {
  grid-area: 1 / 4 / 2 / 6;
  color: var(--grey3);
}

#services .frame-small {
  grid-area: 1 / 2 / 2 / 4;
  /* align-self: end; */
}

#services .frame-small .image {
  background-image: url(../img/shot_example.webp);
  /* background-size: 50%; */
}

#services .frame-small {
  position: relative;
  overflow: hidden;
}

#services .frame-small .image-small {
  position: absolute;
  inset: 0;
}

#services .list-large {
  grid-area: 1 / 6 / 1 / -2;
  margin-bottom: -15px;
  transform: translateY(-6px);
  /* margin-bottom: var(--space-medium); */
}

#services .list-large li:hover {
  cursor: crosshair
}





#globe-test {
  grid-area: auto / 1 / auto / -1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100dvh;
  background-color: var(--blue);
}

.globe {
  display: block;
  width: 400px;
  height: auto;
  color: var(--secondary);  
  fill: none;
  stroke: currentColor;
  stroke-width: var(--imp-stroke-width);
  stroke-miterlimit: 10;
}





#lets-connect {
  grid-column: 1 / -1;
  grid-row: span 2;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  z-index: 10;
  width: 100%;
  margin: 0 auto;
  /* background-color: var(--secondary); */
  /* padding-top: var(--gap); */
}

#lets-connect .blurb {
  grid-area: 2 / 2 / 2 / 8;
  width: 100%;
  height: fit-content;
  margin-bottom: var(--space-large);
}

#lets-connect .blurb h2 {
  display: inline-block;
}

#lets-connect .blurb .link-roll *,
#prev-next .link-large span {
  color: var(--grey3);
}


#lets-connect .social {
  grid-area: 2 / 8 / 2 / -2;
  align-self: start;
}

.social a {
  color: var(--primary);
  transition: opacity var(--timing2) cubic-bezier(var(--easing));
}

.social li:has(a:hover)~li a,
.social li:has(~ li a:hover) a {
  opacity: .4;
  transition: opacity var(--timing2) cubic-bezier(var(--easing));
}










/* ─── PROJECT CARDS ─────────────────────────────────────────────────────────
   Structure:
   .project.p-one|p-two|p-three
     a.project-link
       .image-wrapper > .image
       .project-title > span.link-roll + p.project-category
   ─────────────────────────────────────────────────────────────────────────── */

.project {
  --ratio: 16 / 11;
  --before-opacity: 0;
  --before-scale: 0;
  position: relative;
  width: 100%;
  height: fit-content;
  margin-bottom: var(--space-medium);
  cursor: pointer;
}


.project:nth-last-child(-n+2) {
  margin-bottom: 0;
}

/* Frame aspect ratios (set on .project) */
.p-one {
  --ratio: 16 / 11;
}

.p-two {
  --ratio: 1 / 1;
}

.p-three {
  --ratio: 16 / 20;
}



/* .project.in-progress h7 {
  position: absolute;
  z-index: 10;
  top: 15px;
  right: 15px;
} */



.project-link {
  display: block;
  width: 100%;
  color: inherit;
}

.image-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  transform-origin: center;
  margin-bottom: 30px;
  background-color: var(--grey5);
}

.project .image-wrapper {
  aspect-ratio: var(--ratio);
  margin-bottom: 0;
  /* spacing comes from .project-title */
}

.project .image-wrapper .image {
  transform: scale(1.1);
}

.project .image-wrapper img {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  display: none;
}




.project-cursor {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  pointer-events: none;
  background: url('../img/svg/view.svg') center / contain no-repeat;
  will-change: transform;
  transform-origin: center center;
  /* display: none; */
}

.project-cursor svg {
  width: 80px;
  height: 80px;
}



/* Title sits in normal flow, top-anchored 20px below the frame,
   so it stays put whether it has one line or two. */
.project-title {
  position: relative;
  z-index: 100;
  display: flex;
  /* blockifies children: no inline line-box gaps */
  flex-direction: column;
  align-items: flex-start;
  /* margin-top: var(--gap); */
  margin-top: 12px;
  padding-right: 3ch;
  /* room for the counter */
  color: var(--primary);
}
.project-title .project-category {
  line-height: 1;
  color: var(--grey3);
}
.project-title .link-roll {
  margin-bottom: 2px;
}
.project-title::after {
  position: absolute;
  top: 0;
  right: 0;
  content: counter(figure, decimal-leading-zero);
  counter-increment: figure;
  display: none;
}



#project-list {
  position: relative;
  padding: 0 0 var(--space-medium);
  counter-reset: figure;
  display: grid;
  grid-column: 1 / -1;
  grid-row: span 4;
  grid-template-columns: subgrid;
  grid-gap: var(--gap);
  background: var(--secondary);
  /* padding-bottom: var(--space-medium); */
}

#project-list .section-title {
  grid-area: 1 / 2 / 1 / -2;
  margin: var(--space-medium) 0;
}

#project-list .title-count,
#project-list .title-count2 {
  grid-area: 1 / 8 / 1 / -2;
  justify-self: end;
  margin: var(--space-medium) 0;
}

#project-list #all-work {
  grid-area: 2 / 8 / 2 / -2;
  justify-self: end;
  align-self: end;
  transform: translateY(-10px);
}

/* #projects #project-list {
  padding: 0 0 var(--space-large);
} */

/* #project-list::before,
#project-list::after {
  position: absolute;
  z-index: -1;
  content: '';
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity var(--timing2) ease-in-out;
  display: none;
}

#project-list::before {
  background-color: var(--gradient-light-down);
  opacity: 1;
}

#project-list::after {
  background-color: var(--gradient-dark-down);
  opacity: 0;
}

[data-theme="dark"] #project-list::before {
  opacity: 0;
}

[data-theme="dark"] #project-list::after {
  opacity: 1;
} */


#project-list .project {
  z-index: 1;
}

/* .project .image {
  background-color: var(--grey2);
} */





#project-list>.project:nth-of-type(1) {
  grid-area: 2 / 2 / 2 / 5;
  /* margin-top: var(--space-medium); */
}

/* #project-list .project:nth-of-type(1) .image {
  background-image: url(../img/alouatta/alouatta_bg2.webp);
} */

#project-list>.project:nth-of-type(2) {
  grid-area: 2 / 6 / 2 / -2;
  /* margin-top: var(--space-medium); */
}

/* #project-list .project:nth-of-type(2) .image {
  background-image: url(../img/mealready/mealready_cover_back2.webp);
} */

#project-list .project:nth-of-type(3) {
  grid-area: 3 / 2 / auto / 6;
}

/* #project-list .project:nth-of-type(3) .image {
  background-image: url(../img/basicburger/basic_cover_back.webp);
} */

#project-list .project:nth-of-type(4) {
  grid-area: 3 / 6 / auto / 8;
  align-self: start;
}

/* #project-list .project:nth-of-type(4) .image {
  background-image: url(../img/aniva/aniva_bg.webp);
} */

#project-list .project:nth-of-type(5) {
  grid-area: 3 / 8 / auto / -2;
  align-self: start;
}

/* #project-list .project:nth-of-type(5) .image {
  background-image: url(../img/logos/logos_project_white.png);
} */








/* #project-list-small {
  column-gap: var(--gap);
  row-gap: 0;
  margin-bottom: var(--space-medium);
}
#project-list-small a {
  display: contents;
}
.project-item,
.project-item-header {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: figure;
  overflow: hidden;
}
#project-list-small:has(.project-item:hover) .project-item:not(:hover)>*:not(.backing),
#project-list-small:has(.project-item:hover) .project-item:not(:hover)::after {
  opacity: .55;
  transition: opacity var(--timing2) cubic-bezier(var(--easing));
}
.project-item-header * {
  position: relative; z-index: 1;
  color: var(--grey3);
}
.project-item *:not(.backing),
.project-item::after {
  position: relative; z-index: 1;
  color: white;
  mix-blend-mode: exclusion;
  transition: opacity var(--timing2) cubic-bezier(var(--easing));
}
.item-title {
  grid-column: 2 / 5;
}
.project-item .item-title {
  font-weight: 500;
}
.project-item .item-title::before {
  content: "▪";
  content: "∷";
  display: inline-block;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width var(--timing2) cubic-bezier(var(--easing)), opacity var(--timing2) cubic-bezier(var(--easing));
  transform: translateY(3px);
}

.project-item:hover .item-title::before {
  width: 1em;
  opacity: 1;
}
.item-categories {
  grid-column: 5 / 8;
}
.item-industry {
  grid-column: 8 / 11;
}
.item-year {
  grid-column: 11 / -2;
}
.item-count {
  grid-column: 11 / -2;
  justify-self: end;
  text-align: right;
}
.backing {
  position: absolute; z-index: 0;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--secondary);
  transform-origin: bottom;
  transition: transform var(--timing2) cubic-bezier(var(--easing));
  transform: scaleY(0);
}
.project-item:hover .backing {
  transform: scaleY(1);
}


.project-preview {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 200px;
  pointer-events: none;
  aspect-ratio: 1 / 1;
  opacity: 0;
  transition: opacity var(--timing2) cubic-bezier(var(--easing));
  translate: 20px -50%;
}
.project-preview.is-visible {
  opacity: 1;
}
.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
} */




/* 

#services hr {
  grid-area: 1 / 2 / 1 / -2;
}
#services .section-title {
  grid-area: 2 / 2 / 2 / 6;
}


#services .frame-small {
  grid-area: 2 / 12 / 2 / -2;
  margin-bottom: var(--space-medium);
}

#services .frame-small .image {
  background-image: url(../img/shot_example.webp);
}

#services #service-list {
  grid-area: 3 / 2 / 3 / -2;
  margin-bottom: var(--space-medium);
} */






/* .project-page .section-large {
  background-color: var(--grey1);
} */


#project-brief {
  grid-column: 1 / -1;
  grid-row: span 3;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  width: 100%;
  overflow: hidden;
  /* padding-bottom: var(--space-large); */
}

/* #project-brief .frame {
  grid-area: 1 / 1 / 1 / -1;
} */
#project-brief hr {
  grid-area: 1 / 2 / 1 / -2;
}
#project-brief .details {
  grid-area: 2 / 2 / 2 / 5;
}
#project-brief .list-small {
  margin-bottom: var(--gap);
}
#project-brief .project-page-count {
  grid-area: 2 / 2 / 2 / 4;
  /* transform: translateY(-4px); */
  align-self: start;
}
#project-brief .project-page-count p {
  color: var(--grey3);
}
#project-brief .blurb {
  grid-area: 2 / 6 / 2 / -2;
  transform: translateY(-4px);
  margin-bottom: var(--space-large);
}
#project-brief .link-read-more {
  grid-area: 3 / 4 / 3 / -2;
  margin-bottom: var(--space-large);
}


/* .project-details-small {
  grid-area: 2 / 7 / 2 / -2;
  align-self: start;
  display: grid;
  grid-template-columns: subgrid;
  transform: translateY(-15px);
}

.project-details-small>div {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
}

.project-details-small dt {
  grid-column: 1;
  margin: 0;
  text-align: right;
  color: var(--grey3);
  transform: translateY(-3px);
}

.project-details-small dd {
  grid-column: 2 / -1;
  margin: 0;
  color: var(--primary);
  transform: translateY(-5px);
}


.project-details-small>dd:nth-of-type(3) {
  background-color: var(--grey2);
} */

#project-brief .frame-small:first-of-type {
  grid-area: 3 / 6 / 3 / 8;
  align-self: end;
}

#project-brief .frame-small:last-of-type {
  grid-area: 3 / 8 / 3 / -2;
  align-self: end;
}













/* 
#brief-info::before,
#brief-info::after {
  position: absolute;
  z-index: 0;
  content: '';
  inset: 0;
  pointer-events: none;
  transition: opacity var(--timing2) ease-in-out;
}
#brief-info::before {
  background-color: var(--gradient-light-up);
  opacity: 1;
}
#brief-info::after {
  background-color: var(--gradient-dark-up);
  opacity: 0;
}
[data-theme="dark"] #brief-info::before { opacity: 0; }
[data-theme="dark"] #brief-info::after  { opacity: 1; } */
#brief-info {
  grid: auto / 0px repeat(var(--columns), 1fr) 0px;
  /* padding: var(--gap) 0 var(--space-large); */
  padding: 0 0 var(--space-large);
  /* background-color: var(--greydarker); */
  /* background-color: var(--secondary); */
}

/* #brief-info::before {
  grid-area: 3 / 2 / 3 / -2;
  top: -5px; left: 0;
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
} */
#brief-info * {
  position: relative;
  z-index: 1;
}

#brief-info .frame {
  grid-area: 1 / 2 / 1 / -2;
  /* grid-area: 1 / 1 / 1 / -1; */
  /* height: 100vh; */
  /* margin-bottom: var(--space-medium); */
}

#brief-info .marker {
  position: relative !important;
  grid-area: 2 / 2 / 2 / -2;
}

#brief-info .intro {
  grid-area: 2 / 8 / 2 / -2;
  /* margin-top: var(--space-medium); */
}


/* #brief-info .details ul li {
  text-align: right;
} */

/* #brief-info .year {
  grid-area: 2 / 2 / 2 / -2;
  align-self: start;
  color: var(--grey3);
  display: none;
}
#brief-info .duties {
  grid-area: 3 / 2 / 3 / 5;
  display: none;
} */






.gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  padding: 0;
  /* padding: 0 0 var(--space-medium); */
}

/* .gallery .frame {
  grid-area: auto / 2 / auto / -2;
  margin-bottom: var(--gap);
} */


.gallery .frame:not(.gallery section .frame) {
  margin-bottom: var(--gap);
}

.gallery .frame {
  grid-area: auto / 2 / auto / -2;
  /* margin-bottom: var(--gap); */
}

/* .gallery .frame.frame:nth-of-type(2) {
  grid-area: auto / 2 / auto / -2;
}

.gallery .frame.frame:nth-of-type(3) {
  margin: var(--space-large) 0;
  grid-area: auto / 2 / auto / -2;
} */

.gallery .frame:last-of-type {
  margin-bottom: 0;
}

.logo-gallery {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 var(--gap);
  box-sizing: border-box;
  display: grid;
  grid: auto / repeat(var(--columns), 1fr);
  grid-gap: var(--gap);
}

.logo-gallery .frame-small {
  grid-column: span 3;
  grid-row: auto;
}















#prev-next {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  height: fit-content;
}

#prev-next h2 {
  /* margin: var(--space-medium) 0; */
  margin: var(--space-small) 0 var(--space-medium);
}

#prev-next h2 a {
  transform: translateY(-2px)
}

#prev-next .prev {
  grid-area: 1 / 2 / 1 / 6;
}

#prev-next .next {
  grid-area: 1 / 6 / 1 / -2;
  justify-self: end;
  text-align: right;
}

/* #prev-next .frame-small {
  grid-area: 1 / 5 / 1 / 7;
  align-self: center;
} */

#prev-next .frame-small {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 10;
  will-change: transform;
}

#prev-next .frame-small .image-small {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}





footer.grid {
  position: relative;
  z-index: 3;
  /* position: fixed; z-index: -1; */
  bottom: 0;
  /* height: fit-content; */
  padding-bottom: var(--gap);
  /* grid-gap: var(--gap); */
  background-color: var(--secondary);
}

footer .bm-mark {
  position: relative;
  grid-area: 2 / 2 / 2 / -2;
  width: 100%;
  /* margin-top: var(--space-small); */
}

/* footer .bm-mark::after {
  position: absolute;
  top: 0;
  right: -2.5em;
  content: url("../img/svg/copyright.svg");
  height: 40px;
  width: 40px;
  mix-blend-mode: exclusion;
} */

footer .bm-mark a {
  position: relative;
  display: block;
  line-height: 0;
  width: 100%;
}




footer .nav-list-med {
  grid-area: 3 / 6 / 3 / -2;
  align-self: end;
  transform: translateY(7px);
  margin-top: var(--space-medium);
  /* display: none; */
}

.nav-list-med li {
  display: block;
  overflow: hidden;
  /* line-height: .25; */
}

footer .nav-list-med a {
  color: var(--primary);
  transition: opacity var(--timing2) cubic-bezier(var(--easing));
}

.nav-list-med li:has(a:hover)~li a,
.nav-list-med li:has(~ li a:hover) a {
  opacity: .4;
  transition: opacity var(--timing2) cubic-bezier(var(--easing));
}

footer a {
  color: var(--primary);
  transition: opacity var(--timing2) cubic-bezier(var(--easing));
}

footer .button-wrap {
  grid-area: 3 / 6 / 3 / -2;
  justify-self: end;
  align-self: start;
  /* cursor: pointer; */
  /* display: none; */
}


footer .copyright {
  grid-area: 3 / 2 / 3 / 4;
  justify-self: start;
  align-self: end;
  transform: translateY(5px);
}


footer #to-top {
  position: relative;
  grid-area: 3 / 8 / 3 / -2;
  justify-self: end;
  align-self: end;
  transform: translateY(4px);
}
.social-buttons {
  position: relative;
  grid-area: 3 / 8 / 3 / -2;
  justify-self: end;
  align-self: end;
  display: flex;
  gap: var(--social-gap);
}
.social-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  color: var(--secondary);
}

.social-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--primary);
  transition: transform var(--timing) cubic-bezier(var(--easing));
}

.social-button svg {
  position: relative;
  display: block;
  flex: none;
  fill: currentColor;
}

.social-button:hover::before {
  transform: scale(1.1);
}
@media (prefers-reduced-motion: reduce) {
  .social-button,
  .social-button::before {
    transition: none;
  }
}









#mealready #project-brief .frame-small:first-of-type .image {
  background-image: url(../img/mealready/mealready_stationary.webp);
}
#mealready #project-brief .frame-small:last-of-type .image {
  background-image: url(../img/mealready/mealready_stationary.webp);
}



#mealready #brief-info .frame .image {
  background-image: url(../img/mealready/mealready_stationary.webp);
}
#mealready .gallery .frame:nth-of-type(1) .image {
  background-image: url(../img/mealready/mealready_logo_grid.webp);
}
#mealready .gallery .frame:nth-of-type(2) .image {
  background-image: url(../img/mealready/mealready_app_icon.webp);
}









/* .pull-up.in-view {
  filter: brightness(1);
  transition: all 1.25s cubic-bezier(var(--easing));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  transform: translateY(0);
} */




/* ANIMATION */

@keyframes overlays {
  from {
    height: 100dvh;
  }

  to {
    height: 0dvh;
  }
}

@keyframes huerotate {
  from {
    filter: hue-rotate(180deg) blur(10px);
  }

  to {
    filter: hue-rotate(0deg) blur(0px);
  }
}

@keyframes extend {
  0% {
    transform-origin: right;
    transform: scaleX(1);
  }

  49% {
    transform-origin: right;
    transform: scaleX(0);
  }

  50% {
    transform-origin: left;
    transform: scaleX(0);
  }

  100% {
    transform-origin: left;
    transform: scaleX(1);
  }
}




@keyframes enlarge {
  0% {
    scale: 0;
  }

  40% {
    scale: 1.05;
  }

  100% {
    scale: 1;
  }
}

@keyframes grow {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }

  /* 0%   { transform: scaleX(0) }
  100%   { transform: scaleX(1) } */
}

@keyframes fall-down-small {
  from {
    transform: translateY(-10em);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes fall-down {
  from {
    transform: translateY(-100dvh);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slide-up-small {
  from {
    transform: translateY(10em);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    transform: translateY(100dvh);
    /* transform: translateY(350px); */
  }

  to {
    transform: translateY(0);
  }
}


@keyframes scroll {
  0% {
    height: 0px;
  }

  10% {
    height: 0px;
  }

  80% {
    height: 10px;
    -webkit-transform: translatey(0px);
    transform: translatey(0px);
  }

  100% {
    height: 0px;
    -webkit-transform: translatey(10px);
    transform: translatey(10px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes glow {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(4);
    filter: blur(2px);
    opacity: 0;
  }
}



/* @keyframes window {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transform: scale(1.2);
    filter: hue-rotate(0) blur(50px);
  }

  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: scale(1);
    filter: hue-rotate(0) blur(0);
  }
} */

/* @keyframes window2 {
  0% {
    clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  }

  20% {
    clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
  }

  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
} */







/* @media only screen and (max-width: 950px) {

  :root {
    --columns: 6;
    --gap: 20px;
    --space-small: 60px;
    --space-medium: 120px;
    --space-large: 240px;

    --column-gap: calc(((100% - (9 * var(--gap))) / 10 * 5) + (5.6 * var(--gap)));


  }


  body {
    background-color: var(--secondary);
    min-width: 550px;
  }


} */