* {
  box-sizing: border-box;
}

html {
  color: #0f0f0e;
  font-family: helvetica, sans-serif;
  font-size: 1em;
  line-height: 1.5;
  background-color: #f4f0ee;
  height: 100%;
  width: 100%;
}

body {
  height: 100%;
  width: 100%;
  margin: auto;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0;
}

head,
main {
  width: 100%;
}

a[href] {
  color: inherit;
}

button {
  cursor: pointer;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

article {
  margin-top: 4em;
}

article:first-of-type {
  margin-top: 0;
}

.antihero-wrapper {
  position: relative;
}

.antihero-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background-image: url(../img/benjamin-child-GWe0dlVD9e0-unsplash.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.antihero {
  position: relative;
  min-height: 460px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
}

.logo-wrap {
  position: relative;
  padding: 17px;
  max-width: 666px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  width: 66%;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.5));
}

.antihero__subheading {
  font-size: 17px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 0;
  text-wrap: balance;
}

main > div {
  margin: 0 auto;
  max-width: 666px;
  padding: 17px;
}

.yog-sothoth {
  max-width: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 666px) {
  .yog-sothoth {
    flex-direction: row;
  }
}

.triptych {
  display: inline-block;
  flex: 1;
  /* min-width: 330px; */
  text-align: center;
  padding: 1em;
}

.triptych h2 {
  font-size: 20px;
  margin: 0;
}

.triptych p {
  text-wrap: balance;
}

.icon {
  display: inline-block;
}

.icon img {
  max-height: 128px;
  width: auto;
}

.white {
  max-width: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;
}

.white > article {
  margin: 0 auto;
  max-width: calc(666px - calc(17px * 2));
}

@media screen and (min-width: 666px) {
  .white {
    flex-direction: row;
  }
}

.meeting {
  order: 1;
  flex: 1;
  text-align: right;
}

.meeting img {
  max-width: 500px;
  width: 100%;
}

.spread {
  /* max-width: 682px; */
  margin: 0px -3.66%;
  max-width: calc(100% + 7.32%);
}

@media screen and (min-width: 682px) {
  .spread {
    margin: 0px -25px;
    max-width: 682px;
  }
}

@media screen and (min-width: 666px) {
  .meeting {
    order: 2;
  }
}

.legal {
  margin: 0 auto;
  max-width: 666px;
  font-size: 0.8em;
  order: 2;
  flex: 1;
  text-align: center;
  padding-bottom: 4em;
}

@media screen and (min-width: 666px) {
  .legal {
    order: 1;
  }
}

.compat-wrapper {
  max-width: 200px;
  margin: 0 auto;
}

/* In viewport */
[data-inviewport] {
}

/* inViewport */

[data-inviewport="fade-in"] {
  transition: 0.5s;
  opacity: 0;
  transform: translate3d(0, 200px, 0);
}
[data-inviewport="fade-in"].is-inViewport {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Add a delay on wide screens */
@media screen and (min-width: 666px) {
  [data-inviewport="fade-in"] {
    transition: 0.5s 0.4s;
  }

  [data-inviewport="fade-in"]:first-child {
    transition: 0.5s 0.2s;
  }

  [data-inviewport="fade-in"]:last-child {
    transition: 0.5s 0.6s;
  }
}

.kickstarter-img {
  width: 342px;
}

a[href].cta,
.cta {
  margin: 12px 0 0 auto;
  display: block;
  padding: 0.5em 1em;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: #108030;
  border-radius: 4px;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-align: center;
  width: fit-content;
}

.cta:hover {
  background-color: #45a049;
}

.cta.disabled {
  background-color: #cccccc;
  color: #888888;
  cursor: not-allowed;
  opacity: 0.7;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal.show {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 330px;
  pointer-events: none;
}

.dialog {
  background-color: #fff;
  padding: 32px 52px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.modal-content h2 {
  margin: 0 0 16px;
}

.dialog button.close {
  background: none;
  border: none;
  color: #999;
  font-size: 1.5em;
  padding: 0;
  line-height: 1;
  box-shadow: none;
  transition: color 0.2s;

  position: absolute;
  top: 10px;
  right: 10px;
}

.dialog button.close:hover {
  color: #000;
}

/* Modal form field enhancements */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.modal-content label {
  font-size: 1em;
  color: #222;
  margin-bottom: 0.2em;
  font-weight: 500;
}

.modal-content input[type="email"],
.modal-content input[type="text"] {
  padding: 0.65em 1em;
  border: 1.5px solid #aaa;
  border-radius: 5px;
  font-size: 1em;
  background: #fafbfc;
  color: #222;
  transition:
    border 0.2s,
    box-shadow 0.2s;
  outline: none;
  box-shadow: 0 1px 2px rgba(80, 80, 80, 0.04);
}

.modal-content input[type="email"]:focus,
.modal-content input[type="text"]:focus {
  border-color: #6a82fb;
  box-shadow: 0 0 0 2px #6a82fb33;
}

.modal-content label {
  font-size: 12px;
  color: #bbbbbb;
}

.modal-content input[type="checkbox"] {
  accent-color: #6a82fb;
  margin-right: 0.5em;
  width: 1.1em;
  height: 1.1em;
}

form button[type="submit"] {
  border: none;
  border-radius: 6px;
  padding: 0.7em 2em;
  font-size: 1.1em;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(80, 80, 80, 0.08);
  transition:
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s,
    opacity 0.3s;
  color: #000000;
  background: linear-gradient(90deg, #e3ee0c 0%, #e3ee0c 100%);
  opacity: 1;
  box-shadow: 0 2px 12px rgba(56, 249, 215, 0.15);
}

form:invalid button[type="submit"] {
  background: linear-gradient(90deg, #e0e0e0 0%, #e0e0e0 100%);
  color: #b0b0b0;
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
}

form:valid button[type="submit"]:hover {
  background: linear-gradient(90deg, #e3ee0c 0%, #a7d023 100%);
  box-shadow: 0 4px 16px rgba(80, 80, 80, 0.15);
}

.assistant-img {
  max-width: 344px;
}

.assistant-text {
  position: absolute;
  top: 13px;
  left: 10px;
  width: 200px;
  padding: 19px;
  font-family: verdana;
  pointer-events: auto;

  -webkit-font-smoothing: none;
  font-smooth: never;
}

.social-icon {
  width: 28px;
  height: 28px;
  margin: 0 8px 0 0;
  display: inline-block;
  vertical-align: middle;
}

.social-link {
  margin: 0 8px;
  white-space: nowrap;
}

.social-link:first-of-type {
  margin-left: 0;
}

.creative-wrapper {
  display: flex;
  align-items: center;
  margin: 1.5em 0;
  gap: 24px;
}

.creative-text {
  /* display: flex;
  align-items: center; */
}

.creative {
  width: 80px;
}

.mini-logo {
  width: 300px;
}

.fine-print {
  font-size: 0.8em;
}

.comp-img {
  width: 200px;
  max-width: 100%;
  height: auto;
}

blockquote {
  font-style: italic;
}
