:root {
  color-scheme: dark;
  --black: #000;
  --charcoal: #292929;
  --white: #fff;
  --silver: #cfcfcf;
  --silver-dark: #a6a6a6;
  --orange: #ff6b00;
  --orange-hot: #ff6f07;
  --copy: "Amatic SC", cursive;
  --display: "IM Fell English SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--copy);
  line-height: 1;
}

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

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

button,
input,
textarea {
  appearance: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1366px;
  margin: 0 auto;
  padding: 14px 10px 16px;
  background: var(--black);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  height: 14px;
  width: 100vw;
  transform: translateX(-50%);
  background: url("assets/edge.png") bottom repeat-x;
}

.brand img {
  width: 240px;
}

.social-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-nav a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  transition: transform 180ms ease;
}

.social-nav a:hover,
.social-nav a:focus-visible {
  transform: translateY(-2px);
}

.social-nav img {
  width: 26px;
  height: 26px;
}

.hero {
  position: relative;
  background: var(--black);
}

.showcase {
  position: relative;
  height: 250px;
  max-height: calc(100vh - 110px);
  overflow: hidden;
  background: url("assets/showcase-bg.jpg") center center / cover no-repeat var(--black);
}

.showcase-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  transition: opacity 300ms ease;
}

.showcase-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.showcase-slide img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  transition: transform 800ms cubic-bezier(0.28, 0.535, 0.005, 1.04), opacity 900ms ease-in;
}

.showcase-slide.is-active img {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.showcase-slide:nth-child(1) img {
  right: 0;
  bottom: 2vh;
}

.showcase-slide:nth-child(2) img {
  inset: auto 0 0;
  margin: auto;
}

.showcase-slide:nth-child(3) img {
  right: 0;
  bottom: 0;
  max-width: none;
}

.showcase-slide figcaption {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: end;
  text-align: right;
}

.showcase-slide:nth-child(1) figcaption {
  top: 6vw;
  left: 20vw;
}

.showcase-slide:nth-child(2) figcaption {
  top: 7vw;
  right: 7vw;
}

.showcase-slide:nth-child(3) figcaption {
  top: 8vw;
  left: 5vw;
  justify-items: start;
  text-align: left;
}

.showcase-slide strong {
  position: relative;
  color: transparent;
  font-family: var(--display);
  font-size: 44px;
  font-weight: 400;
  line-height: 0.95;
  background-image: linear-gradient(90deg, var(--silver), var(--silver-dark) 50%, var(--silver));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateX(-80px);
  transition: all 600ms cubic-bezier(0.28, 0.535, 0.005, 1.04) 320ms;
}

.showcase-slide strong::before {
  content: attr(data-shadow);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.25), -3px 3px 3px rgba(0, 0, 0, 0.25), 3px -3px 3px rgba(0, 0, 0, 0.25), -3px -3px 3px rgba(0, 0, 0, 0.25);
}

.showcase-slide span {
  display: inline-block;
  padding: 0 8px 3px;
  color: var(--white);
  background: rgba(41, 41, 41, 0.78);
  font-size: 25px;
  font-weight: 700;
  opacity: 0;
  transform: translateX(50px);
  transition: all 600ms cubic-bezier(0.28, 0.535, 0.005, 1.04) 400ms;
}

.showcase-slide.is-active strong,
.showcase-slide.is-active span {
  opacity: 1;
  transform: translateX(0);
}

.showcase-controls {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
}

.showcase-controls button {
  flex: 0 0 60px;
  width: 60px;
  height: 29px;
  padding: 10px;
  background: transparent;
  color: var(--silver);
  cursor: pointer;
  transition: color 180ms ease;
}

.showcase-controls svg {
  content: "";
  display: block;
  width: 38px;
  height: 9px;
}

.showcase-controls button:hover,
.showcase-controls button.is-active {
  color: var(--orange);
}

.intro {
  display: block;
  padding: 28px 10px;
  background: var(--white);
  color: var(--black);
}

.intro > * {
  max-width: 1220px;
  margin-right: auto;
  margin-left: auto;
}

h2,
.thanks-copy h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
}

p {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
}

.intro a {
  color: var(--black);
  border-bottom: 1px solid var(--orange);
  transition: color 180ms ease;
}

.intro a:hover,
.intro a:focus-visible {
  color: var(--orange);
}

.contact {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(280px, 1fr);
  gap: 32px;
  max-width: 1366px;
  margin: 0 auto;
  padding: 32px 10px 36px;
  color: var(--white);
  background: var(--black);
}

.contact-heading {
  display: block;
}

.contact-heading img {
  width: 350px;
  max-width: 100%;
}

.contact-heading .eyebrow,
.contact-heading h2 {
  display: none;
}

.contact-form {
  display: grid;
  gap: 5px;
  margin-left: auto;
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 5px;
}

.contact-form label {
  position: relative;
  display: grid;
  color: var(--white);
  font-weight: 800;
}

.contact-form label:not(.honeypot)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--orange);
  transition: width 350ms ease;
}

.contact-form label:not(.honeypot):hover::after,
.contact-form label:not(.honeypot):focus-within::after {
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--charcoal);
  border: 2px solid var(--charcoal);
  color: var(--white);
  font-family: var(--copy);
  font-size: 22px;
  font-weight: 700;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 0;
}

.contact-form input {
  min-height: 45px;
  padding: 8px 12px;
}

.contact-form textarea {
  min-height: 142px;
  padding: 12px;
  resize: vertical;
}

.form-label {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 1;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  transition: all 400ms cubic-bezier(0.28, 0.535, 0.005, 1.04);
}

.contact-form label.is-focus .form-label,
.contact-form label.not-empty .form-label {
  top: -8px;
  left: 0;
  font-size: 18px;
}

.contact-form button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 6px;
  padding: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--copy);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.send-icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  color: var(--orange);
}

.contact-form button:hover,
.contact-form button:focus-visible {
  color: var(--orange);
}

.honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0;
  color: var(--silver);
  font-size: 19px;
}

.thanks {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  min-height: calc(100vh - 82px);
  background: var(--black);
}

.thanks-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 10%;
}

.thanks-copy .eyebrow {
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 24px;
}

.thanks-copy p:not(.eyebrow) {
  color: var(--silver);
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 10px;
}

.hero-link,
.text-link {
  color: var(--white);
  border-bottom: 1px solid var(--orange);
  font-size: 25px;
  font-weight: 800;
}

.hero-link:hover,
.text-link:hover,
.hero-link:focus-visible,
.text-link:focus-visible {
  color: var(--orange);
}

.thanks-image {
  display: grid;
  min-height: 420px;
  margin: 0;
  place-items: center;
  padding: 32px;
  background: url("assets/showcase-bg.jpg") center center / cover no-repeat var(--black);
}

.thanks-image img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

@media (min-width: 480px) {
  .site-header {
    width: 90%;
    padding-top: 1vw;
    padding-bottom: 1vw;
  }

  .brand img {
    width: 350px;
  }

  .showcase {
    height: 400px;
  }

  .showcase-slide strong {
    font-size: 72px;
  }

  .showcase-slide span {
    font-size: 34px;
  }

  .showcase-controls {
    bottom: 16px;
  }
}

@media (min-width: 768px) {
  .showcase {
    height: 650px;
  }

  .showcase-slide strong {
    font-size: 120px;
  }

  .showcase-slide span {
    font-size: 50px;
  }

  .intro {
    padding-top: calc(2vw + 10px);
    padding-bottom: calc(2vw + 10px);
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .brand img {
    width: 220px;
  }

  .social-nav {
    padding-top: 6px;
  }

  .showcase-slide:nth-child(1) figcaption,
  .showcase-slide:nth-child(2) figcaption,
  .showcase-slide:nth-child(3) figcaption {
    top: 22px;
    right: 18px;
    left: 18px;
    justify-items: start;
    text-align: left;
  }

  .showcase-slide span {
    max-width: 80vw;
  }

  .contact,
  .thanks {
    grid-template-columns: 1fr;
  }

  .contact {
    gap: 20px;
  }

  .contact-form {
    margin-left: 0;
  }

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

  .thanks-copy {
    padding: 36px 20px;
  }
}

@media (max-width: 420px) {
  .brand img {
    width: 180px;
  }

  .social-nav img {
    width: 22px;
    height: 22px;
  }

  .showcase-slide strong {
    font-size: 38px;
  }

  .showcase-slide span {
    font-size: 23px;
  }
}
