/* =========================================
   BASE
   ========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #11100e;
  color: #e9e2d6;
  font-family: 'IBM Plex Mono', monospace;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}


/* =========================================
   NAVIGATION
   ========================================= */

nav {
  position: fixed;
  z-index: 80;
  left: 24px;
  right: 24px;
  top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

nav span {
  background: #e9e2d6;
  color: #111;
  padding: 7px 10px;
}


/* =========================================
   HERO
   ========================================= */

.hero {
  height: 100svh;
  display: grid;
  grid-template-columns: 42% 58%;
  position: relative;
}

.hero-photo {
  height: 100%;
  overflow: hidden;

  /* Keep the main hero photograph completely clean */
  filter: none;

  /*
    Places the photograph above the global grain texture.
    The image itself remains unfiltered.
  */
  position: relative;
  z-index: 60;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: none;
}

.hero-type {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5vw 3vw;
  background: #b7271d;
  position: relative;
}

.code {
  position: absolute;
  top: 9vh;
  right: 3vw;
  font-size: 10px;
  line-height: 1.8;
  text-align: right;
}

h1 {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(75px, 10vw, 170px);
  line-height: .76;
  letter-spacing: -.08em;
  margin: 0;
  color: #0e0d0c;
}

h1 small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .15em;
  line-height: 1.5;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 28px;
}

.hero-reel {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #111;
  padding: 12px 15px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #111;
  transition: .2s;
}

.hero-reel:hover {
  background: #111;
  color: #e9e2d6;
}

.hero-reel span {
  font-size: 14px;
}

.scroll {
  position: absolute;
  bottom: 25px;
  left: 25px;
  font-size: 10px;
  writing-mode: vertical-rl;
  z-index: 3;
}


/* =========================================
   GENERAL
   ========================================= */

.frame {
  padding: 12vh 4vw;
  border-top: 1px solid #37332d;
}

.frame-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  text-transform: uppercase;
  color: #8f887f;
  margin-bottom: 30px;
}

.statement {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(42px, 7vw, 112px);
  line-height: .92;
  max-width: 1200px;
  letter-spacing: -.05em;
}

.statement i {
  font-family: Georgia, serif;
  text-transform: none;
  font-weight: 400;
  color: #b7271d;
}


/* =========================================
   PROFILE
   ========================================= */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: #11100e;
}

.duo .image {
  overflow: hidden;
  min-height: 0;

  /*
    Keep this large photograph clean as well.
    It sits above the global grain texture.
  */
  position: relative;
  z-index: 60;
}

.duo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.duo .text {
  padding: 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.duo p {
  max-width: 550px;
  line-height: 1.8;
  color: #aaa197;
}

.duo h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(48px, 7vw, 100px);
  text-transform: uppercase;
  line-height: .85;
  letter-spacing: -.06em;
}


/* =========================================
   SHOWREEL
   ========================================= */

.reel {
  background: #e6ded0;
  color: #111;
  padding: 6vw 4vw;
}

.reel-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 25px;
}

.reel h2 {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(55px, 9vw, 140px);
  line-height: .8;
  margin: 0;
  letter-spacing: -.07em;
}

.reel-top > div {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/* =========================================
   CONTACT SHEET
   ========================================= */

.contactsheet {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 10px;
  background: #e6ded0;
}

.shot {
  position: relative;
  background: #222;
  aspect-ratio: 2 / 3;
  overflow: hidden;

  /* Makes it obvious the image can be opened */
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /*
    KEEP THIS EFFECT:
    gallery thumbnails remain black and white.
  */
  filter: grayscale(1);

  transition:
    filter .35s,
    transform .35s;
}

.shot:hover img {
  /*
    Return to full colour when hovered.
  */
  filter: grayscale(0);
  transform: scale(1.02);
}

.shot span {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: #e6ded0;
  color: #111;
  padding: 3px 5px;
  font-size: 8px;
  pointer-events: none;
}


/* =========================================
   FULL-SCREEN PHOTO LIGHTBOX
   ========================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 7, .96);
  padding: 40px 80px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  display: block;
  max-width: min(1100px, 88vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;

  /*
    Full-screen photograph is always shown
    in its original colour.
  */
  filter: none;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid #e9e2d6;
  background: #e9e2d6;
  color: #111;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 1px solid #e9e2d6;
  background: transparent;
  color: #e9e2d6;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px;
  cursor: pointer;
  transition: .2s;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: #e9e2d6;
  color: #111;
}

.lightbox-close:hover {
  background: #b7271d;
  border-color: #b7271d;
}


/* =========================================
   CREDITS
   ========================================= */

.work {
  padding: 10vw 4vw;
}

.work h2,
.contact h2 {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(60px, 10vw, 150px);
  letter-spacing: -.07em;
  line-height: .8;
}

.credit-group {
  margin: 44px 0 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #8f887f;
}

.credit-group:first-of-type {
  margin-top: 0;
}

.credit {
  display: grid;
  grid-template-columns: 50px 1.3fr 1fr 1fr;
  padding: 18px 0;
  border-top: 1px solid #39352f;
  font-size: 11px;
  align-items: center;
}

.credit::before {
  content: "●";
  font-size: 7px;
  color: #b7271d;
}

.credit b {
  font-size: 16px;
  text-transform: uppercase;
}

.credit em {
  font-style: normal;
  text-align: right;
  color: #918981;
}


/* =========================================
   ABOUT
   ========================================= */

.about {
  background: #11100e;
  padding: 6vw 4vw;
  border-top: 1px solid #37332d;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: 7vw;
  align-items: start;
}

.about h2 {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(60px, 10vw, 150px);
  letter-spacing: -.07em;
  line-height: .8;
  margin: 0;
}

.about-copy {
  padding-top: 1vw;
  max-width: 680px;
}

.about-copy p,
.about-copy p.about-lead {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
  color: #e9e2d6;
  margin: 0 0 20px;
}


/* =========================================
   CONTACT
   ========================================= */

.contact {
  background: #b7271d;
  color: #111;
  padding: 6vw 4vw 5vw;
}

.contact h2 {
  margin: 0 0 28px;
}

.contact p {
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}

.contact .mail {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: clamp(18px, 3vw, 44px);
  border-bottom: 3px solid #111;
  margin-top: 18px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.social-links a {
  display: inline-block;
  border: 1px solid #111;
  padding: 9px 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: .2s;
}

.social-links a:hover {
  background: #111;
  color: #e9e2d6;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
  padding: 18px 4vw;
  font-size: 9px;
  display: flex;
  justify-content: space-between;
}


/* =========================================
   TABLET
   ========================================= */

@media (min-width: 761px) and (max-width: 1100px) {

  .hero {
    grid-template-columns: 44% 56%;
  }

  .hero-type {
    padding-left: 4vw;
    padding-right: 3vw;
  }

  .hero-actions {
    max-width: 520px;
  }

  .credit {
    grid-template-columns: 36px 1.25fr .95fr 1.15fr;
  }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 760px) {

  /* -----------------------------------------
     HERO
     ----------------------------------------- */

  .hero {
    grid-template-columns: 1fr;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  .hero-photo {
    position: absolute;
    inset: 0;
    height: 100%;

    /*
      Keep photograph itself clean.
    */
    filter: none;
    z-index: 1;
  }

  .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: none;
  }

  /*
    This red gradient is intentional and remains.
    It is part of the mobile layout rather than
    a photographic filter.
  */
  .hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      0deg,
      #b7271d 0%,
      rgba(183, 39, 29, .94) 18%,
      rgba(183, 39, 29, .55) 38%,
      transparent 67%
    );
  }

  .hero-type {
    background: transparent;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px 3vw 4vw;
    min-height: 0;
  }

  .hero-type .code {
    display: none;
  }

  /*
    Remove SCROLL TO BEGIN on all mobile layouts.
  */
  .scroll {
    display: none !important;
  }


  /* -----------------------------------------
     MOBILE NAME
     ----------------------------------------- */

  .hero-type h1 {
    order: 1;
    font-size: min(23vw, 110px);
    line-height: .76;
  }

  .hero-type h1 small {
    font-size: 10px;
    line-height: 1.4;
    margin-bottom: 18px;
  }


  /* -----------------------------------------
     MOBILE ACTION BUTTONS
     ----------------------------------------- */

  .hero-actions {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    align-self: stretch;
    gap: 7px;
    margin-top: 18px;
    margin-bottom: 0;
  }

  .hero-actions .hero-reel {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #e9e2d6;
    color: #111;
    border: 1px solid #e9e2d6;
    padding: 10px 11px;
    font-size: 9px;
    line-height: 1;
    letter-spacing: .08em;
    white-space: nowrap;
  }

  .hero-actions .hero-reel span {
    flex: 0 0 auto;
    font-size: 12px;
  }

  .hero-actions .hero-reel:last-child {
    display: flex;
  }


  /* -----------------------------------------
     PROFILE
     ----------------------------------------- */

  .duo {
    grid-template-columns: 1fr;
  }

  .duo .image {
    height: auto;
    aspect-ratio: 4 / 5;
    position: relative;
    z-index: 60;
  }

  .duo .image img {
    filter: none;
  }

  .duo .text {
    padding: 12vw 6vw;
  }


  /* -----------------------------------------
     SHOWREEL
     ----------------------------------------- */

  .reel {
    padding: 14vw 4vw 6vw;
  }

  .reel-top {
    align-items: flex-end;
    gap: 20px;
  }

  .reel h2 {
    font-size: 16vw;
  }

  .reel-top > div {
    font-size: 8px;
    text-align: right;
  }

  .video {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }


  /* -----------------------------------------
     CONTACT SHEET
     ----------------------------------------- */

  .contactsheet {
    grid-template-columns: 1fr 1fr;
  }

  /*
    Keep existing behaviour:
    fifth image hidden on mobile.
  */
  .contactsheet .shot:last-child {
    display: none;
  }

  /*
    Phones don't have hover, so the thumbnails
    stay B&W until opened.
  */
  .shot img {
    filter: grayscale(1);
  }


  /* -----------------------------------------
     MOBILE LIGHTBOX
     ----------------------------------------- */

  .lightbox {
    padding: 65px 12px 70px;
  }

  .lightbox-image {
    max-width: 96vw;
    max-height: 82vh;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 12px;
    transform: none;
    width: 46px;
    height: 42px;
    background: #e9e2d6;
    color: #111;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }


  /* -----------------------------------------
     CREDITS
     ----------------------------------------- */

  .work {
    padding: 16vw 6vw;
  }

  .credit {
    grid-template-columns: 20px 1fr;
  }

  .credit span,
  .credit em {
    grid-column: 2;
    text-align: left;
    margin-top: 5px;
  }


  /* -----------------------------------------
     ABOUT
     ----------------------------------------- */

  .about {
    padding: 14vw 6vw;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-copy {
    padding-top: 0;
  }

  .about-copy p,
  .about-copy p.about-lead {
    font-size: 13px;
    line-height: 1.65;
    font-weight: 400;
    margin: 0 0 18px;
  }


  /* -----------------------------------------
     CONTACT
     ----------------------------------------- */

  .contact {
    padding: 14vw 6vw 12vw;
  }

  .social-links {
    margin-top: 24px;
  }
}


/* =========================================
   VERY SHORT MOBILE SCREENS
   ========================================= */

@media (max-width: 760px) and (max-height: 700px) {

  .hero-type {
    padding-bottom: 12px;
  }

  .hero-type h1 {
    font-size: 19vw;
  }

  .hero-type h1 small {
    margin-bottom: 10px;
  }

  .hero-actions {
    margin-top: 12px;
    gap: 5px;
  }

  .hero-actions .hero-reel {
    padding: 8px 9px;
    font-size: 8px;
  }
}


/* =========================================
   ACCESSIBILITY
   ========================================= */

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

a,
button,
video {
  touch-action: manipulation;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .shot img,
  .hero-reel,
  .social-links a,
  .lightbox-prev,
  .lightbox-next {
    transition: none !important;
  }

  .shot:hover img {
    transform: none;
  }
}