/* --------------------------------------------------
   Base + Reset
-------------------------------------------------- */

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

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  background: #e8e7e2;
  color: #131625;
  overflow: hidden;
}

/* --------------------------------------------------
   AWaves background
-------------------------------------------------- */

a-waves {
  position: fixed !important;
  inset: 0 !important;
  display: block;
  z-index: 0 !important;
  pointer-events: none !important;
}

a-waves .js-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 0 !important;
}

/* --------------------------------------------------
   Global header (black bar)
-------------------------------------------------- */

.global-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3rem;
  padding: 0 1.8rem;
  z-index: 3;
  background: rgba(0, 0, 0, 0.9);
  color: #e8e7e2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.global-header-left {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.site-title {
  font-family: "Oswald", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

.global-header-right {
  display: flex;
  align-items: center;
}

.back-link {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: #e8e7e2;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  border: 1px solid rgba(232, 231, 226, 0.4);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

/* Only show back button once works view is active */
body.show-works .back-link {
  opacity: 1;
  pointer-events: auto;
}

.back-link:hover {
  background: #e8e7e2;
  color: #111;
}

/* --------------------------------------------------
   Screens
-------------------------------------------------- */

.screen {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  background: transparent;
}

/* Landing visible first */
.screen--landing {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 0.8s cubic-bezier(0.55, 0.03, 0.22, 0.99),
    opacity 0.6s ease-out;
}

/* Works starts off-screen to the right */
.screen--works {
  opacity: 0;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.8s cubic-bezier(0.55, 0.03, 0.22, 0.99),
    opacity 0.6s ease-out;
}

/* Show works: slide/fade landing out, works in */
body.show-works .screen--landing {
  opacity: 0;
  transform: translate3d(-40%, 0, 0);
  pointer-events: none;
}

body.show-works .screen--works {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --------------------------------------------------
   Loader
-------------------------------------------------- */

#loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
}

#loaderText {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  z-index: 51;
  color: #131625;
}

.loaderTitle {
  font-size: 0.85rem;
}

.loaderSubTitle {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 0.3em;
}

/* progress circle */
.loaderDynamic {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: #131625;
  animation: spin 1.2s linear infinite;
}

.loaderStatic {
  width: 24px;
  height: 24px;
  margin: 13px auto;
  border-radius: 999px;
  background: rgba(19, 22, 37, 0.7);
}

/* hide after load */
.loader--hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loaderText--hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------
   Landing content
-------------------------------------------------- */

.screen--landing {
  padding: 4.2rem 4rem 3rem; /* extra top for header bar */
  justify-content: flex-end;
}

.landing-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.landing-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-title-wrap {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: #131625;

  /* make sure it truly centers the block */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* “The Latest” heading */
.intro-title {
  font-family: "Oswald", sans-serif;
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

/* divider under title */
.inner-divider-half {
  width: 80px;
  height: 1px;
  margin: 1.1rem auto 1.6rem auto;
  background: #131625;
}

/* Featured video – bigger */
.landing-video-placeholder {
  position: relative;
  width: min(900px, 92vw);
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  background: rgba(232, 231, 226, 0.9);
}

.landing-video-placeholder iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* Bottom navigation / button */
#navigation {
  margin-top: 2.6rem;
  margin-bottom: 0.4rem;
  text-align: center;
}

.view-more-wrapper {
  list-style: none;
}

.the-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 1.8em;
  border-radius: 999px;
  border: 1px solid rgba(19, 22, 37, 0.5);
  background: rgba(232, 231, 226, 0.9);
  color: #131625;
  font-family: "Oswald", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.25s ease,
    box-shadow 0.3s ease, border-color 0.3s ease;
}

.the-button span {
  white-space: nowrap;
}

.the-button:hover {
  background: #131625;
  color: #e8e7e2;
  border-color: #131625;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

/* --------------------------------------------------
   Works screen / Parallax page
-------------------------------------------------- */

.screen--works {
  padding: 4.2rem 3.4rem 2.4rem;
  color: #131625;
}

/* Parallax layers – transparent so waves show through */

.works-parallax-layer {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background: transparent;
}

/* content wrapper sits above layers and SCROLLS internally */

.works-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* scroll inside the works view */
  padding-bottom: 3rem;
}

/* header row */

.works-header {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  margin-bottom: 1.6rem;
}

.works-label {
  color: #131625;
}

.works-meta {
  display: flex;
  gap: 0.75em;
  opacity: 0.8;
}

/* grid (centered) */

.works-grid {
  flex: 0 0 auto;
  padding-right: 0.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.9rem 1.6rem;
  max-width: 1100px;
  margin: 0 auto 2.4rem auto;
}

/* work item cards */

.work-item {
  background: rgba(232, 231, 226, 0.95);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* make the sample reel card square like the link tiles */
.work-item--video {
  border-radius: 0;
}
.work-item--video .work-thumb {
  border-radius: 0;
}

.work-thumb {
  position: relative;
  overflow: hidden;
  background: #000;
}

.work-thumb iframe,
.work-thumb img {
  display: block;
  width: 100%;
}

.work-thumb iframe {
  aspect-ratio: 16 / 9;
}

.work-thumb img {
  height: 100%;
  object-fit: cover;
}

/* SQUARE SHAPE for direct link tiles */

.work-item--link {
  border-radius: 0;
}

.work-item--link .work-link-block {
  border-radius: 0;
}

/* link block for index items */

.work-link-block {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 1.2rem;
  text-align: center;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #e8e7e2;
  background: #131625;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease,
    filter 0.28s ease;
}

.work-link-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  filter: brightness(1.05);
}

.work-link-label {
  white-space: nowrap;
}

/* info */

.work-info {
  padding: 1.1rem 1.25rem 1.25rem;
}

.work-title {
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.work-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #333;
}

/* --------------------------------------------------
   About section (full-width white band)
   + Footer overlapping it for a layered/parallax feel
-------------------------------------------------- */

.about-section {
  margin-top: 2.2rem;
  padding-bottom: 0.4rem;

  /* full viewport width band */
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: 2; /* above waves */
}

.about-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 0;
  padding: 1.9rem 2rem 2.1rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.about-title {
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.7rem;
  color: #131625;
}

.about-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #333;
}

/* Footer as a second white band that overlaps the About,
   slightly "under" it for a parallax-ish stack effect */

.site-footer {
  margin-top: -1.5rem; /* pull it up to overlap the About band */
  padding-bottom: 2.4rem;

  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: 1; /* under About so About's shadow floats over it */
}

.footer-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 0;
  padding: 1.6rem 2rem 1.8rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.footer-meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #444;
}

/* --------------------------------------------------
   Responsive tweaks
-------------------------------------------------- */

@media (max-width: 960px) {
  .screen--landing {
    padding: 4.2rem 1.8rem 2.4rem;
  }

  .screen--works {
    padding: 4.2rem 1.8rem 2.4rem;
  }

  .about-inner,
  .footer-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .screen--landing,
  .screen--works {
    position: relative;
    min-height: 100vh;
  }

  .screen--landing {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .works-content {
    overflow-y: visible; /* mobile: let body handle scroll */
  }

  .works-grid {
    max-height: none;
  }

  .intro-title {
    font-size: 2.1rem;
  }

  .global-header {
    padding: 0 1.2rem;
  }

  .site-title {
    letter-spacing: 0.12em;
  }
}
