/* ===================================================================
   Gorilla Science — Custom Styles
   Dark mode, yellow (#FFF600) accent, retro sci-fi aesthetic
   =================================================================== */

@font-face {
  font-family: 'FatFrank';
  src: url('../../../page-templates/landways/styles/fonts/FatFrank.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Edo SZ';
  src: url('../../../fonts/EdoSZ.woff2') format('woff2'),
       url('../../../fonts/EdoSZ.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── HERO ── */
.gs-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #000;
  padding-top: max(18rem, 30vh);
}

.gs-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.gs-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

/* Title container */
.gs-hero__content {
  position: relative;
  z-index: 20;
  pointer-events: none;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.gs-hero.is-ready .gs-hero__content {
  opacity: 1;
  transform: translateY(0);
}

.gs-hero__heading {
  font-family: 'FatFrank', 'field-gothic', 'Impact', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: normal;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.gs-hero__heading-green {
  color: #21BF1F;
}

.gs-hero__heading-yellow {
  color: #FFF600;
}

/* Detective character */
.gs-hero__character {
  position: absolute;
  bottom: 8%;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 50%;
  margin: 0;
}

@media (min-width: 640px) {
  .gs-hero__character {
    height: 55%;
  }
}

.gs-hero__character::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, #000, rgba(0,0,0,0.15) 40%, transparent);
}

.gs-hero__man {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.gs-hero__man-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  opacity: 1;
}

/* Floating Gorilla Science logo */
.gs-hero__disc {
  position: absolute;
  bottom: 33%;
  left: 50%;
  z-index: 10;
  width: 6.5rem;
  height: auto;
  transform: translateX(-2rem);
  filter: drop-shadow(0 0 30px #FFF600);
  pointer-events: auto;
  display: inline-block;
}

@media (min-width: 640px) {
  .gs-hero__disc {
    width: 9rem;
    transform: translateX(-2.5rem);
  }
}

.gs-hero__disc img {
  width: 100%;
  height: auto;
  animation: gs-disc-bob 3s ease infinite;
}

@keyframes gs-disc-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Bottom gradient */
.gs-hero__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 15;
  background: linear-gradient(to top, #000, transparent);
  pointer-events: none;
}

/* Scroll indicator */
.gs-hero__scroll {
  position: absolute;
  bottom: 6rem;
  left: 4rem;
  z-index: 30;
  width: 4rem;
  cursor: pointer;
  font-family: 'field-gothic', 'Matter', sans-serif;
  font-size: 0.75rem;
  color: #FFF600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: gs-scroll-bob 8s ease infinite;
}

@media (min-width: 768px) {
  .gs-hero__scroll {
    left: 5rem;
  }
}

.gs-hero__scroll span {
  display: inline-block;
  transform: rotate(-90deg) translateY(-64%) translateX(40%);
  transition: opacity 0.4s, transform 0.4s;
}

.gs-hero__scroll:hover span {
  opacity: 1;
  transform: rotate(-90deg) translateY(-64%) translateX(60%);
}

.gs-hero__scroll img {
  width: 100%;
  height: auto;
  margin-top: 0.5rem;
}

@keyframes gs-scroll-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}


/* ── NOISE OVERLAY (retro TV static) ── */
main::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── STATEMENT SECTION (from watchgorillascience.com) ── */
.gs-statement {
  position: relative;
  padding: clamp(6rem, 15vw, 12rem) clamp(1rem, 5vw, 4rem);
  overflow: hidden;
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gs-statement__content {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
}

.gs-statement__line {
  font-family: 'field-gothic', 'Impact', sans-serif;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gs-statement__green {
  color: #21BF1F;
}

.gs-statement__yellow {
  color: #FFF600;
}

.gs-statement__ban {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
  color: #FF4300;
}

/* Inline circular images */
.gs-statement__circle {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
  margin-top: -0.15em;
  background: currentColor;
}

.gs-statement__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
}

/* Background layers */
.gs-statement__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gs-statement__moon {
  position: absolute;
  inset: 0;
}

.gs-statement__moon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 30%;
}

.gs-statement__moon::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, #000, rgba(0,0,0,0.4));
}

.gs-statement__astronaut {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(8.3%);
  z-index: 2;
  height: 100%;
  animation: gs-astronaut-float 5s ease infinite;
}

.gs-statement__astronaut img {
  height: 100%;
  width: auto;
}

@keyframes gs-astronaut-float {
  0%, 100% { transform: translateX(-50%) translateY(8.3%); }
  50% { transform: translateX(-50%) translateY(5%); }
}

.gs-statement__rocket {
  position: absolute;
  top: 15%;
  left: 5%;
  z-index: 3;
  width: 12%;
  transform: rotate(12deg);
  animation: gs-rocket-float 3s ease 1s infinite;
}

.gs-statement__rocket img {
  width: 100%;
  height: auto;
}

@keyframes gs-rocket-float {
  0%, 100% { transform: rotate(12deg) translateY(0); }
  50% { transform: rotate(12deg) translateY(-10px); }
}

/* Corner + marks */
.gs-statement__corner {
  position: absolute;
  z-index: 20;
  color: rgba(255,255,255,0.3);
}

.gs-statement__corner--tl { top: 1.5rem; left: 1.5rem; }
.gs-statement__corner--tr { top: 1.5rem; right: 1.5rem; }

@media (min-width: 768px) {
  .gs-statement__corner--tl { top: 2rem; left: 2rem; }
  .gs-statement__corner--tr { top: 2rem; right: 2rem; }
}

@media (max-width: 767px) {
  .gs-statement__line {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }
  .gs-statement {
    min-height: 350px;
    padding: 4rem 1rem;
  }
  .gs-statement__rocket { display: none; }
}

/* ── ANIMATIONS GRID ── */
.gs-anim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  max-width: 1400px;
  margin: 2rem auto 0;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

@media (max-width: 575px) {
  .gs-anim-grid {
    grid-template-columns: 1fr;
  }
}

.gs-anim-grid__card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--pf-surface);
}

.gs-anim-grid__card img {
  width: 100%;
  display: block;
}

.gs-anim-grid__label {
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--pf-text-muted);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── NEW BUILD TAG (replaces before/after) ── */
.gs-new-build {
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
}

.gs-new-build__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  border: 1px solid var(--pf-accent);
  color: var(--pf-accent);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.gs-new-build__tag svg {
  flex-shrink: 0;
}

/* ── UNIQUE SECTION: Yellow subscribe-CTA marquee ── */
.gs-unique {
  position: relative;
  background: #FFF600;
  overflow: hidden;
  padding: 0;
}

.gs-unique .pf-unique__layer {
  position: relative;
  z-index: 10;
}

.gs-unique .pf-unique__heading {
  color: #000;
  text-shadow: none;
}

.gs-unique .pf-unique__heading em {
  color: #000;
  font-style: italic;
}

.gs-unique .pf-unique__text {
  color: rgba(0,0,0,0.75);
}

/* Marquee background — matched to watchgorillascience.com */
.gs-marquee-bg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  width: 100%;
  pointer-events: none;
}

.gs-marquee-track {
  display: flex;
}

.gs-marquee-track--reverse {
  animation-direction: reverse;
}

.gs-marquee-slide {
  display: flex;
  flex-shrink: 0;
  animation: gs-marquee-scroll 30s linear infinite;
}

.gs-marquee-track--reverse .gs-marquee-slide {
  animation-direction: reverse;
}

.gs-marquee-text {
  font-family: 'FatFrank', 'Arial Black', sans-serif;
  font-size: 27vw;
  font-weight: 300;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.8;
  letter-spacing: normal;
  white-space: nowrap;
}

@keyframes gs-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Corner labels */
.gs-unique__corners {
  position: absolute;
  inset: 1.25rem;
  z-index: 20;
  pointer-events: none;
  font-family: 'FatFrank', 'Arial Black', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: normal;
  line-height: 1;
  color: #000;
}

@media (min-width: 768px) {
  .gs-unique__corners {
    inset: 2rem;
    font-size: 1.5rem;
  }
}

.gs-unique__corner {
  position: absolute;
}

.gs-unique__corner--tl { top: 0; left: 0; }
.gs-unique__corner--tr { top: 0; right: 0; }
.gs-unique__corner--bl { bottom: 0; left: 0; }
.gs-unique__corner--br { bottom: 0; right: 0; width: 5rem; }
.gs-unique__corner--br img { width: 100%; height: auto; }

/* Robot monkey */
.gs-unique__monkey {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: clamp(200px, 30vw, 350px);
  pointer-events: none;
}

@media (max-width: 767px) {
  .gs-unique__monkey {
    position: relative;
    left: auto;
    transform: none;
    margin: 1.5rem auto 0;
    width: 200px;
  }
}

.gs-unique__monkey img {
  width: 100%;
  height: auto;
  display: block;
}

/* X/Y crosshair lines on unique section */
.gs-unique__corners::before,
.gs-unique__corners::after {
  content: '';
  position: absolute;
  background: rgba(0,0,0,0.06);
}

.gs-unique__corners::before {
  /* Horizontal line */
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.gs-unique__corners::after {
  /* Vertical line */
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

/* ── UNIQUE SECTION: Two-column CTA text ── */
.gs-unique__content {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 4vw, 3rem);
  pointer-events: none;
}

.gs-unique__col {
  display: flex;
  flex-direction: column;
  font-family: 'FatFrank', 'Arial Black', sans-serif;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: normal;
}

.gs-unique__col--left {
  color: #000;
  text-align: left;
}

.gs-unique__col--right {
  color: #21bf1f;
  text-align: right;
}

.gs-unique__small {
  font-size: clamp(0.9rem, 1.8vw, 1.5rem);
  font-weight: 900;
  margin-bottom: 0.15em;
}

.gs-unique__big {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 900;
  margin-bottom: 0.05em;
}

.gs-unique__huge {
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 900;
}

@media (max-width: 575px) {
  .gs-unique__content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .gs-unique__col--left,
  .gs-unique__col--right {
    text-align: center;
  }
}

/* ── TESTIMONIAL CARDS: Yellow bg, dark text ── */
.portfolio-testimonials .pt-scard {
  background: #FFF600 !important;
}

.portfolio-testimonials .pt-scard-stars {
  color: #000 !important;
}

.portfolio-testimonials .pt-scard-qopen,
.portfolio-testimonials .pt-scard-qclose {
  color: rgba(0, 0, 0, 0.3);
}

.portfolio-testimonials .pt-scard-text {
  color: #000;
}

.portfolio-testimonials .pt-scard-name {
  color: #000;
}

.portfolio-testimonials .pt-scard-role {
  color: rgba(0, 0, 0, 0.6);
}

.portfolio-testimonials .pt-scard-avatar {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
}

.portfolio-testimonials .pt-scard-footer-right {
  color: rgba(0, 0, 0, 0.5);
}

/* ── DEVELOPMENT BREAKDOWN: 4-feature grid ── */
.gs-devbreak__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

@media (max-width: 575px) {
  .gs-devbreak__grid {
    grid-template-columns: 1fr;
  }
}

.gs-devbreak__cell {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
}

.gs-devbreak__cell img {
  width: 100%;
  height: auto;
  display: block;
}

.gs-devbreak__label {
  padding: 0.65rem 1rem;
  margin: 0;
  font-family: 'FatFrank', 'field-gothic', sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--pf-accent);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── CTA: Yellow bg + GIF ── */
.gs-cta {
  position: relative;
  background: #FFF600;
  overflow: hidden;
  padding: clamp(4rem, 8vh, 6rem) 8vw;
}

.gs-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gs-cta__gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.gs-cta .pf-cta__content {
  position: relative;
  z-index: 2;
}

.gs-cta .pf-cta__heading {
  color: #000;
}

.gs-cta .pf-cta__button {
  background: #000;
  color: #FFF600;
}

.gs-cta .pf-cta__button:hover {
  background: #111;
}

/* ── WANTED SECTION: list styling for dark mode ── */
.gs-wanted .pf-wanted__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.gs-wanted .pf-wanted__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--pf-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.gs-wanted .pf-wanted__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pf-accent);
}

/* ── DESIGN SYSTEM: Font specimens — responsive sizing ── */
.gs-design-fonts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gs-design-fonts img {
  width: 100%;
  max-width: 180px;
  height: auto;
  filter: invert(1);
}

@media (min-width: 1200px) {
  .gs-design-fonts img {
    max-width: 280px;
  }
}

@media (min-width: 1600px) {
  .gs-design-fonts img {
    max-width: 340px;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  .gs-hero {
    height: 100vh;
    height: 100svh;
    padding-top: 12rem;
  }

  .gs-hero__content {
    max-width: 90%;
  }

  .gs-hero__disc {
    width: 4rem;
    transform: translateX(-1rem);
  }

  .gs-hero__scroll {
    display: none;
  }

  .gs-marquee-text {
    font-size: 27vw;
  }
}

/* Mobile touch: pointer-events none on hero interactive elements */
@media (hover: none) {
  .gs-hero__man {
    pointer-events: none;
  }
}
