/* ---------- Fonts ---------- */
@font-face {
  font-family: "CircularStd-Book";
  font-display: swap;
  src:
    url("../fonts/CircularStd-Book.woff") format("woff"),
    url("../fonts/CircularStd-Book.ttf") format("truetype");
}

@font-face {
  font-family: "CircularStd-Bold";
  font-display: swap;
  src:
    url("../fonts/CircularStd-Bold.woff") format("woff"),
    url("../fonts/CircularStd-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "PiccolaOphelia";
  font-display: swap;
  src:
    url("../fonts/PiccolaOphelia-Regular.woff") format("woff"),
    url("../fonts/PiccolaOphelia-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Ophelia";
  font-display: swap;
  src:
    url("../fonts/Ophelia-Regular.woff") format("woff"),
    url("../fonts/Ophelia-Regular.ttf") format("truetype");
}

/* ---------- Base ---------- */
:root {
  --red: rgb(250, 95, 100);
  --light: #ebf5f0;
  --mint: #dcffd7;
  --black: #000000;
  --gutter: 0.75rem;
}

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

*:focus {
  outline-offset: 2px;
  outline-style: auto;
  outline: auto 5px var(--mint);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "CircularStd-Book", sans-serif;
  line-height: 1.5;
  color: var(--light);
  background-color: var(--black);
  overflow-x: hidden;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

p {
  font-family: "CircularStd-Book", sans-serif;
  text-align: center;
  margin: 0 0 1rem;
}

h1 {
  font-family: "PiccolaOphelia", sans-serif;
  text-align: center;
}

h2,
h3 {
  margin: 0 0 1rem;
  text-align: center;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

/* ---------- Grid ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1.5rem;
  margin: 0 calc(var(--gutter) * -1);
}

.row--center {
  justify-content: center;
}

.row--spacious {
  row-gap: 2.5rem;
}

@media (min-width: 1000px) {
  .row--spacious {
    --gutter: 1.5rem;
    row-gap: 3rem;
  }
}

.row > * {
  --span: 12;
  flex: 0 0 calc(var(--span) / 12 * 100%);
  max-width: calc(var(--span) / 12 * 100%);
  min-width: 0;
  padding: 0 var(--gutter);
}

.c-1 {
  --span: 1;
}
.c-2 {
  --span: 2;
}
.c-3 {
  --span: 3;
}
.c-4 {
  --span: 4;
}
.c-5 {
  --span: 5;
}
.c-6 {
  --span: 6;
}
.c-7 {
  --span: 7;
}
.c-8 {
  --span: 8;
}
.c-9 {
  --span: 9;
}
.c-10 {
  --span: 10;
}
.c-11 {
  --span: 11;
}
.c-12 {
  --span: 12;
}

@media (min-width: 400px) {
  .sm-1 {
    --span: 1;
  }
  .sm-2 {
    --span: 2;
  }
  .sm-3 {
    --span: 3;
  }
  .sm-4 {
    --span: 4;
  }
  .sm-5 {
    --span: 5;
  }
  .sm-6 {
    --span: 6;
  }
  .sm-7 {
    --span: 7;
  }
  .sm-8 {
    --span: 8;
  }
  .sm-9 {
    --span: 9;
  }
  .sm-10 {
    --span: 10;
  }
  .sm-11 {
    --span: 11;
  }
  .sm-12 {
    --span: 12;
  }
}

@media (min-width: 980px) {
  .lg-1 {
    --span: 1;
  }
  .lg-2 {
    --span: 2;
  }
  .lg-3 {
    --span: 3;
  }
  .lg-4 {
    --span: 4;
  }
  .lg-5 {
    --span: 5;
  }
  .lg-6 {
    --span: 6;
  }
  .lg-7 {
    --span: 7;
  }
  .lg-8 {
    --span: 8;
  }
  .lg-9 {
    --span: 9;
  }
  .lg-10 {
    --span: 10;
  }
  .lg-11 {
    --span: 11;
  }
  .lg-12 {
    --span: 12;
  }
}

/* ---------- Sections & Headings ---------- */
.section {
  padding: 4rem 0;
  text-align: center;
}

.section--dark {
  color: var(--light);
  background-color: var(--black);
}

.section--red {
  color: var(--light);
  background-color: var(--red);
}

.section-title {
  margin: 0 0 2rem;
  font-family: "PiccolaOphelia", sans-serif;
  font-size: 2.5rem;
  text-align: center;
  color: var(--red);
}

.section--red .section-title {
  color: var(--light);
}

.block + .block {
  margin-top: 4rem;
}

.lead {
  font-size: 1.3rem;
  text-align: center;
}

.stay-sane {
  font-family: "CircularStd-Bold", sans-serif;
  color: var(--red);
}

/* ---------- Social Links ---------- */
.socials {
  position: fixed;
  top: 50%;
  right: 1rem;
  z-index: 100;
  padding: 0.75rem 0.5rem;
  border-radius: 10px 0 0 10px;
  background-color: transparent;
  transform: translateY(-50%);
  transition: background-color 0.3s linear;
}

.socials ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.socials a {
  display: block;
  padding: 0.25rem;
  transition: transform 0.3s;
}

.socials a:hover,
.socials a:focus-visible {
  transform: scale(1.15);
}

.socials img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-family: "CircularStd-Bold", sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
  text-decoration: none;
  color: var(--red);
  background-color: transparent;
  border: 0.2rem solid var(--red);
  border-radius: 4rem;
  cursor: pointer;
  transition:
    background-color 0.3s ease-in,
    color 0.3s ease-in;
}

.button:hover,
.button:focus-visible {
  color: var(--mint);
  background-color: var(--red);
}

.button--light {
  color: var(--light);
  border-color: var(--light);
}

.button--light:hover,
.button--light:focus-visible {
  color: var(--red);
  background-color: var(--light);
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ---------- Header ---------- */
#head {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 0 2rem;
  overflow: hidden;
  background-color: var(--red);
}

.keyvisual {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: auto;
  aspect-ratio: 1400 / 894;
  background: url("../assets/img/KeyVisual_RedSea.png") center / cover no-repeat;
  background-color: var(--red);
  transition: height 0.3s ease-in-out;
}

.keyvisual::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42%;
  background: linear-gradient(
    to bottom,
    rgba(250, 95, 100, 0) 0%,
    var(--red) 100%
  );
}

.pitch {
  position: absolute;
  right: 0;
  bottom: 2rem;
  left: 0;
  z-index: 1;
  width: 100%;
}

.pitch p {
  margin: 0;
  font-family: "CircularStd-Bold", sans-serif;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  text-align: center;
}

/* Press kit link */
.head-link {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 2;
  font-family: "CircularStd-Bold", sans-serif;
  font-size: 1rem;
  color: var(--light);
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.button.head-link {
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  border: 0.2rem solid var(--light);
  border-radius: 4rem;
}

.head-link:hover,
.head-link:focus-visible {
  text-decoration: underline;
}

@media (min-width: 1201px) {
  .keyvisual {
    height: 100%;
    width: 100%;
    background-image: url("../assets/img/KeyVisual_RedSea_High.png");
    background-position: center top;
  }
}

@media (max-width: 1200px) {
  .keyvisual {
    height: 90svh;
    aspect-ratio: auto;
  }
}

@media (max-width: 520px) {
  .keyvisual {
    height: 80svh;
  }
}

/* ---------- Awards ---------- */
section#accolades {
  margin: 0 0;
  padding: 0 0 4rem;
  width: 100%;
}

.awards-container {
  display: flex;
  justify-content: center;
  padding: auto 0;
  width: 100%;
  max-width: 100%;
  scroll-snap-type: x mandatory;
  scroll-padding: var(--gutter);
}

.awards {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  height: auto;
}

.awards figure {
  display: inline-block;
  flex: 0 0 auto;
}

.awards img {
  display: block;
  flex: 1 1 auto;
  height: 100%;
  max-height: 7.8rem;
  width: auto;
  min-width: 0;
  object-fit: cover;
}

/* ---------- Trailer ---------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Image links ---------- */
[data-lightbox] {
  cursor: zoom-in;
}

/* ---------- Screenshot gallery ---------- */
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 5px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery a:hover img,
.gallery a:focus-visible img {
  transform: scale(1.03);
}

/* ---------- Team ---------- */
#team {
  margin: 0 0 2rem 0;
}

.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.member img {
  height: 100%;
  max-width: 20rem;
  min-width: 4rem;
  object-fit: contain;
  object-position: center top;
  margin-bottom: 1rem;
  border-radius: 5px;
}

.member-name {
  margin: 0;
  font-family: "Ophelia", sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: normal;
  line-height: 1.1;
  text-wrap: balance;
}

.member-role {
  margin: -1.6rem 0 0.5rem;
  font-size: 1.1rem;
}

.member-link {
  font-size: 1.2rem;
  text-transform: lowercase;
  color: var(--red);
}

.member-link:hover,
.member-link:focus-visible {
  color: var(--mint);
}

/* Team cards */
.member .member-name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4em;
}

.member .member-role {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  padding: 0 10%;
  line-height: 1.2;
  text-wrap: balance;
}

.member .member-link {
  display: block;
  margin-top: auto;
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* ---------- Small screens ---------- */
@media (max-width: 800px) {
  .member img {
    max-height: 12rem;
    max-width: 12rem;
    min-width: 8rem;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    margin-bottom: 1rem;
    border-radius: 5px;
  }

  .member .member-role {
    margin: 0rem 0 0.5rem;
    font-size: 0.8rem;
    padding: 0 15%;
  }

  .member .member-role {
    min-height: 3em;
    line-height: 1;
  }
  .member .member-link {
    font-size: 0.8rem;
    line-height: 1;
  }
}

/* ---------- Contact form ---------- */
#contact {
  position: relative;
}

.contact-intro {
  max-width: 36rem;
  margin: -1rem auto 5rem;
  font-size: 1.3rem;
  text-align: center;
}

.contact-form {
  row-gap: 1.5rem;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0 0 0.6rem;
  font-size: 1.2rem;
  color: var(--light);
  background: transparent;
  border: none;
  border-bottom: 3px solid var(--light);
  border-radius: 0;
  outline: none;
  resize: none;
  transition: border-color 0.2s ease;
}

.form-input::placeholder {
  color: var(--light);
  opacity: 0.8;
}

.form-input:focus {
  border-bottom-color: var(--mint);
}

.form-actions {
  text-align: center;
}

.form-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  text-align: center;
}

.button.form-button {
  margin: 2rem 0;
}

.mail-duck {
  display: none;
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  width: 15rem;
  animation: floating 3s ease-in-out infinite;
}

@media (min-width: 1100px) {
  .mail-duck {
    display: block;
  }
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(15px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mail-duck {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Lightbox ---------- */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.95);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  position: absolute;
  inset: 4rem 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-figure img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 5px;
}

.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  color: var(--light);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-btn[hidden] {
  display: none;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  color: var(--red);
}

.lightbox-btn svg {
  width: 1.75rem;
  height: 1.75rem;
}

.lightbox-close {
  top: 1rem;
  left: 1rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-count {
  position: absolute;
  right: 0;
  bottom: 1rem;
  left: 0;
  margin: 0;
  font-size: 1.1rem;
  text-align: center;
}

.lightbox-download {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.05rem;
  color: var(--light);
}

.lightbox-download[hidden] {
  display: none;
}

.lightbox-download:hover,
.lightbox-download:focus-visible {
  color: var(--mint);
}

@media (max-width: 599px) {
  .lightbox-figure {
    inset: 4rem 0.5rem;
  }
  .lightbox-prev,
  .lightbox-next {
    background-color: rgba(0, 0, 0, 0.5);
  }
  .lightbox-prev {
    left: 0.25rem;
  }
  .lightbox-next {
    right: 0.25rem;
  }
}

/* ---------- Footer ---------- */
.footer {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  color: var(--light);
  background-color: var(--red);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--mint);
}

.copyright {
  margin-top: 2rem 0 0;
  text-align: center;
  font-size: 1.2rem;
}

/* ---------- Press kit ---------- */
.pk .section + .section,
.pk .footer {
  border-top: 0.2rem solid var(--light);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--mint);
}

.page-title {
  margin: 0 0 1rem;
  font-family: "PiccolaOphelia", sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  text-align: center;
}

.pk-heading {
  margin: 0 0 1rem;
  font-family: "PiccolaOphelia", sans-serif;
  font-size: 2rem;
}

.facts div {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 0.15rem solid var(--light);
}

.facts dt {
  flex: 0 0 35%;
  font-family: "CircularStd-Bold", sans-serif;
}

.facts dd {
  margin: 0;
}

.facts a:hover,
.facts a:focus-visible {
  color: var(--mint);
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.download-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 5px;
}

.download-card .button {
  align-self: flex-start;
  font-size: 1.5rem;
}

.credit {
  padding: 1rem 0;
  text-align: center;
  border-top: 0.15rem solid var(--light);
}

.credit .member-link {
  color: var(--light);
}

.hint {
  text-align: center;
  font-size: 1.1rem;
}

/* ---------- Small screens ---------- */
@media (max-width: 599px) {
  .section {
    padding: 1rem 0;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .lead,
  .contact-intro {
    font-size: 1.15rem;
  }
  .facts div {
    flex-direction: column;
    gap: 0;
  }
}

/* ---------- Imprint ---------- */
.imprint-page .imprint-main {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.imprint-page .section {
  padding: 1rem 0;
}

.imprint-page .section p {
  width: 100%;
  max-width: 38rem;
  margin: 0 auto 1rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.imprint-page h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin: 0 0 1rem;
}

.imprint-page h2 {
  margin: 0 0 0.2rem;
}

.imprint-page .copyright {
  margin-top: 2rem;
}

@media (max-width: 599px) {
  .imprint-page .imprint-main {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .imprint-page .section {
    padding: 1.5rem 0;
  }
}
