@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("/font/AlteHaasGroteskRegular.woff2");
}
@font-face {
  font-family: "Alte Haas Grotesk";
  font-weight: bold;
  src: url("/font/AlteHaasGroteskBold.woff2");
}
html {
  font-family: sans-serif;
  font-size: 20px;
  line-height: 1.3;
  scroll-behavior: smooth;
}
h1,h2,h3 {
  font-family: "Alte Haas Grotesk";
}
h4,h5,h6 {
  font-family: sans-serif;
  margin: 1em 0;
}
:root {
  color-scheme: light dark;
  --grey: ButtonFace;
  --orange: light-dark(sandybrown, peru);
}
header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background-color: var(--grey);
  padding: 0 calc(max((100% - 1200px) / 2, 40px));
  height: 66px;
}
.logo {
  font-family: "Alte Haas Grotesk";
  white-space: nowrap;
}
.logo .title {
  font-size: 64px;
  font-weight: bold;
}
.logo .subtitle {
  font-size: 31px;
}
header .logo a.title {
  cursor: pointer;
}
header .logo .subtitle {
  position: relative;
  top: -0.5ex;
}
header nav {
  display: flex;
  align-items: baseline;
  gap: 2em;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
main {
  max-width: 1200px;
  margin: 96px auto 0 auto;
  padding: 0 2em;
}
body {
  margin: 0;
}
.intro-block {
/* 66 px for height of header, 40px for main's top-margin (less our negative margin), 1em each for top & bottom border, 2em for bottom clearance */
  height: calc(100svh - 66px - 40px - 4em);
  /*border: 1em solid var(--orange);*/
  margin: -55px 0 4em 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-block .logo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.intro-block .logo .title {
  font-size: 125px;
}
.intro-block .logo .subtitle {
  position: relative;
  top: -35px;
  right: 23px;
}
.dropdown {
  position: relative;
}
.dropdown .head {
  cursor: pointer;
  user-select: none;
}
.dropdown .head svg {
  margin-right: 2px;
  position: relative;
  top: calc(0.35em - 1ex);
}
.dropdown .body {
  background-color: Canvas;
  position: absolute;
  left: calc(0.7em - 0.25em + 2px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  white-space: nowrap;
  padding: 0 0.25em;
}
.dropdown:not(:focus-within,:hover) .body {
  opacity: 0;
  pointer-events: none;
}
.theme-toggle {
  border: none;
  display: flex;
  color: CanvasText;
  background-color: transparent;
  position: relative;
  top: 0.667ex;
  margin-left: -0.5em;
  padding: 0;
  cursor: pointer;
}
.theme-toggle:not(.dark) .sun {
  display: none;
}
.theme-toggle.dark .moon {
  display: none;
}
h2 {
  font-size: 3.2em;
  line-height: 1;
  margin: 0 0 0.5em 0;
}
main section {
  margin: 0 5em 3em 5em;
}
.embed-placeholder {
  width: calc(100% - 2em);
  aspect-ratio: 16/9;
  border: 1em solid ButtonFace;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.embed-placeholder svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.embed-placeholder span {
  z-index: 1;
}
.showreel {
  width:100%;
  aspect-ratio: 16/9;
  display: none;
}
.cta {
  background-color: var(--grey);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5em;
  gap: 0.5em;
  text-align: center;
  line-height: 1;
}
.cta h2 {
  margin: 0;
}
.cta p {
  margin: 0;
}
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
}
.projects .project {
  background-color: var(--grey);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  aspect-ratio: 492 / 277;
  font-size: 36px;
  font-family: "Alte Haas Grotesk";
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.projects .project .title {
  font-weight: bold;
}
.about {
  display: flex;
  gap: 48px;
}
.about img {
  background-color: Canvas;
  align-self: flex-start;
  flex-shrink: 0;
  border-radius: 50%;
  width: 336px;
}
.about p:first-child {
  margin-top: 0;
}
video, img {
  max-width: 100%;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
}
.flex {
  display: flex;
  flex-direction: column;
}
.caption {
  opacity: 0.75;
  text-align: right;
  margin-top: 0.5em;
  font-size: 0.8em;
}
body.fullscreen {
  overflow: hidden;
}
body.fullscreen .fullscreen-box {
  background-color: Canvas;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100lvh;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
body:not(.fullscreen) .fullscreen-box {
  display: none;
}
@media only screen and (max-width: 1000px) {
  main section {
    margin: 0 2.5em 5em 2.5em;
  }
}
@media only screen and (max-width: 916px) {
  .about {
    flex-direction: column;
  }
  .about img {
    align-self: center;
  }
  .theme-toggle {
    position: absolute;
    right: 0.5em;
    top: 22px;
  }
}
@media only screen and (max-width: 750px) {
  header {
    flex-direction: column;
    align-items: center;
  }
  main {
    padding: 0 1em;
  }
  main section {
    margin: 0 1em 2.5em 1em;
  }
  .intro-block {
    margin-left: 1em;
    margin-right: 1em;
  }
}
@media only screen and (max-width: 675px) {
  /*header {
    justify-content: flex-end;
  }
  header nav {
    position: relative;
    bottom: -6px;
  }
  header .logo {
    display: none;
  }*/
  .intro-block .logo {
    display: none;
  }
  .intro-block .logo .title {
    font-size: 64px;
  }
  .intro-block .logo .subtitle {
    right: 0;
    top: -10px;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
@media only screen and (max-width: 400px) {
  header {
    padding: 0 0.5em;
  }
  .intro-block {
    margin-left: 0;
    margin-right: 0;
    height: calc(100lvh - 66px - 39px - 3em);
    margin: 39px 0 2em 0;
  }
  main section {
    margin: 0 0 2em 0;
  }
  .theme-toggle {
    display: none;
  }
}