:root {
  --flxTeal: #018982;
  --flxBlack: #000000;
  --flxLineWhite: #e3e3e3;
  --flxVolt: #d8ff00;
  --white: #ffffff;
  --bar: 64px;
  --gutter: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--flxBlack);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--flxBlack);
  color: var(--white);
  font-family: Rubik, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p,
h1 {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Top bar */

.bar {
  position: relative;
  z-index: 3;
  background: var(--flxBlack);
  border-bottom: 1px solid #1f1f1f;
}

.bar-in {
  height: var(--bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bar img {
  width: 132px;
  height: auto;
}

.bar a {
  display: block;
}

.bar .bar-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--flxVolt);
  color: var(--flxBlack);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.bar .bar-cta:hover {
  background: var(--white);
}

/* Hero */

.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #050505;
  overflow: hidden;
  isolation: isolate;
}

/* film grain over the photos and the black */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shot {
  filter: grayscale(1) contrast(1.08);
}

/* Photos are never cropped across a head, and nothing sits over one. */

.collage {
  --photo: min(84vw, 540px);
  position: relative;
  height: var(--photo);
}

.shot-main {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--photo);
  height: var(--photo);
  max-width: none;
  object-fit: cover;
  object-position: 50% 0;
  -webkit-mask-image: linear-gradient(to right, #000 86%, transparent 100%),
    linear-gradient(to bottom, #000 86%, transparent 100%);
  mask-image: linear-gradient(to right, #000 86%, transparent 100%),
    linear-gradient(to bottom, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.strip {
  position: absolute;
  /* top leaves room for half a tape above the frame */
  --sw: 23vw;
  right: 12px;
  top: calc(var(--sw) * 0.2 + 8px);
  width: var(--sw);
  display: grid;
  gap: 5px;
  padding: 5px;
  background: #0b0b0b;
  outline: 1.5px solid rgba(255, 255, 255, 0.85);
  outline-offset: -1px;
  transform: rotate(2deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

.strip .shot {
  width: 100%;
  height: auto;
}

.tape {
  position: absolute;
  z-index: 2;
  display: block;
  background: var(--flxTeal);
  opacity: 0.94;
  clip-path: polygon(2% 8%, 30% 0, 62% 6%, 100% 2%, 97% 94%, 70% 100%, 34% 92%, 0 100%);
}

/* Every tape sits across a photo's edge, half on and half off. Sizes follow
   the strip, so the tape never reaches a face. */

.tape-a {
  width: clamp(12px, 13%, 30px);
  aspect-ratio: 1 / 2.9;
  top: 0;
  left: 80%;
  transform: translateY(-50%) rotate(-9deg);
}

.tape-b {
  width: clamp(12px, 13%, 30px);
  aspect-ratio: 1 / 2.9;
  bottom: 0;
  left: 84%;
  transform: translateY(50%) rotate(8deg);
}

.tape-c {
  width: clamp(16px, 9%, 30px);
  aspect-ratio: 1 / 2.9;
  top: 0;
  left: 85%;
  transform: translateY(-50%) rotate(7deg);
}

.mark {
  display: block;
  overflow: visible;
}

.mark path {
  fill: none;
  stroke: var(--flxVolt);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the crown hangs off the strip's corner */
.crown {
  position: absolute;
  width: 26px;
  left: 8%;
  top: calc(100% - 5px);
  transform: rotate(-12deg);
}

.swipe {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: 38%;
  max-width: 300px;
  height: 56px;
}

.swipe path {
  fill: var(--flxTeal);
  stroke: none;
}

.hero-in {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  padding-bottom: 56px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--flxVolt);
}

.dashes {
  width: 24px;
  flex: none;
}

.tagline {
  font-size: clamp(30px, 8.6vw, 44px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

.tagline .line {
  display: block;
  width: fit-content;
}

.tagline .block {
  margin: 10px 0 0 -8px;
  padding: 0.16em 0.32em 0.14em 0.26em;
  background: var(--flxVolt);
  color: var(--flxBlack);
  text-shadow: none;
  transform: rotate(-2deg);
  transform-origin: left center;
  clip-path: polygon(
    1.5% 6%,
    22% 1%,
    48% 4%,
    74% 0,
    99% 5%,
    100% 46%,
    98.5% 93%,
    71% 100%,
    45% 96%,
    20% 100%,
    0 95%,
    1% 50%
  );
}

h1,
.lede {
  max-width: 30em;
  margin-top: 26px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--white);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9);
  text-wrap: pretty;
}

.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: fit-content;
  margin-top: 28px;
}

.contact-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flxLineWhite);
}

.contact a {
  position: relative;
  display: inline-block;
  padding: 2px 0 12px;
  font-size: clamp(22px, 6.4vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  text-decoration: none;
}

.brush {
  position: absolute;
  left: -2%;
  bottom: 0;
  width: 104%;
  height: 12px;
  transform-origin: left center;
}

.brush path {
  fill: var(--flxVolt);
  stroke: none;
}

.contact a:hover .brush {
  transform: scaleY(1.5);
}

a:focus-visible {
  outline: 3px solid var(--flxVolt);
  outline-offset: 4px;
}

.arrow {
  display: none;
}

/* Footer */

.foot {
  background: var(--flxBlack);
  border-top: 1px solid #1f1f1f;
}

.foot-in {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 4px;
  padding-bottom: 28px;
}

/* the file has clear space built in: 252px wide shows the artwork at 200px */
.foot img {
  width: 252px;
  max-width: none;
  margin: 0 0 -22px -26px;
}

.foot p {
  font-size: 14px;
  color: var(--flxLineWhite);
  white-space: nowrap;
}

/* 404 */

.photo-404 {
  position: relative;
  width: min(64vw, 330px);
  margin: 56px 0 0 var(--gutter);
  padding: 6px;
  background: #0b0b0b;
  outline: 1.5px solid rgba(255, 255, 255, 0.85);
  outline-offset: -1px;
  transform: rotate(-2deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

.shot-404 {
  display: block;
  width: 100%;
  height: auto;
}

.hero-404 .hero-in {
  margin-top: 28px;
}

.hero-404 .tagline .block {
  margin-top: 6px;
}

/* Load-in */

@media (prefers-reduced-motion: no-preference) {
  .brush {
    transition: transform 0.2s ease;
  }

  .copy > * {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .copy > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .copy > :nth-child(3) {
    animation-delay: 0.18s;
  }
  .copy > :nth-child(4) {
    animation-delay: 0.26s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      translate: 0 14px;
    }
  }
}

/* Wide phones and tablets: the strip sits beside the photo */

@media (min-width: 600px) {
  .strip {
    right: auto;
    --sw: min(100vw - var(--photo) + 8px, 210px);
    left: calc(var(--photo) - 24px);
  }
}

/* Tablet and up: copy left, collage right, one screen */

@media (min-width: 860px) {
  :root {
    --bar: 76px;
    --gutter: 48px;
  }

  .bar img {
    width: 149px;
  }

  .hero {
    justify-content: center;
    min-height: 560px;
  }

  /* same box as .wrap's content, so the photo and strip line up with the copy */
  .collage {
    position: absolute;
    top: 0;
    bottom: 0;
    left: max(var(--gutter), calc(50% - 680px + var(--gutter)));
    right: max(var(--gutter), calc(50% - 680px + var(--gutter)));
    height: auto;
  }

  /* 40% wide at the photo's own shape, so the width is never cropped. A short
     screen trims the bottom only, and never above the chin. */
  .shot-main {
    left: 38%;
    top: 50%;
    width: 40%;
    height: auto;
    aspect-ratio: 1080 / 1539;
    max-height: 100%;
    transform: translateY(-50%);
    object-position: 50% 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 88%, transparent 100%),
      linear-gradient(to bottom, #000 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 88%, transparent 100%),
      linear-gradient(to bottom, #000 80%, transparent 100%);
  }

  .strip {
    /* two whole frames stacked are about 2.2 x the width tall; keep them inside the hero */
    left: 75.5%;
    right: auto;
    top: 50%;
    width: min(23.5%, (max(560px, 100vh - 194px) - 120px) / 2.2);
    gap: 8px;
    padding: 8px;
    transform: translateY(-50%) rotate(3deg);
  }

  .crown {
    width: 46px;
    left: 2%;
    top: -34px;
  }

  .swipe {
    width: 20%;
    height: 64px;
  }

  .hero-in {
    margin-top: 0;
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .copy {
    max-width: 50%;
  }

  .eyebrow {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .dashes {
    width: 30px;
  }

  .tagline {
    font-size: clamp(34px, 4.3vw, 62px);
  }

  .tagline .block {
    margin: 14px 0 0 -18px;
  }

  h1,
  .lede {
    max-width: min(30em, 88%);
    margin-top: 36px;
    font-size: 20px;
  }

  .contact {
    margin-top: 32px;
  }

  .contact a {
    font-size: 32px;
  }

  .arrow {
    display: block;
    position: absolute;
    width: 70px;
    left: calc(100% + 22px);
    bottom: 6px;
  }

  .foot-in {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 4px;
  }

  .foot img {
    margin-bottom: 0;
  }

  .photo-404 {
    position: absolute;
    top: 50%;
    right: max(var(--gutter), calc(50% - 680px + var(--gutter)));
    width: min(36vw, (max(560px, 100vh - 194px)) * 0.62);
    margin: 0;
    transform: translateY(-50%) rotate(-2deg);
  }

  .hero-404 .hero-in {
    margin-top: 0;
  }

}
