/* =============================================
   HUNU INTERACTIVE — styles.css
   ============================================= */

/* Fonts loaded via Adobe Fonts (typekit) — zyd2kpw */

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

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

:root {
  /* Official HUNU Brand Colors */
  --blankstate:   #faf9f0;  /* light background */
  --gamers-hour:  #161915;  /* dark background */
  --volt-azure:   #1925bc;  /* primary identity */
  --huute:        #dcc7e4;  /* soft support / lavender */
  --owlsight:     #ff7517;  /* high-energy accent / orange */
  --featherdust:  #ffe36e;  /* bright highlight / yellow */

  /* Aliases for readability */
  --cream:    var(--blankstate);
  --yellow:   var(--featherdust);
  --blue:     var(--volt-azure);
  --dark:     var(--gamers-hour);
  --lavender: var(--huute);
  --orange:   var(--owlsight);

  /* Adobe Fonts family names */
  --f-black:   'brother-1816', sans-serif; /* weight 900 — H1, H2 */
  --f-medium:  'brother-1816', sans-serif; /* weight 500 italic — H4 subhead */
  --f-book:    'brother-1816', sans-serif; /* weight 300 — body, caption */
  --f-tagline: 'finalsix', sans-serif;     /* weight 100 — H3 tagline */

  /* Shorthand aliases used in components */
  --display: var(--f-black);
  --body:    var(--f-book);
  --thin:    var(--f-tagline);

  /* Type scale — brandbook 5.2 Editorial (pt → px, 1pt = 1.333px) */
  --h1: clamp(2.5rem, 9.8vw, 79px);  /* H1 Major Headline:   54–70pt  */
  --h2: clamp(2rem, 8.5vw, 84px);    /* H2 Section Headline: 52–74pt  */
  --h3: clamp(1.8rem, 6.5vw, 69px);  /* H3 Tagline:          36–52pt  */
  --h4: clamp(32px, 2.5vw, 48px);  /* H4 Subhead:          24–36pt  */
  --body-size: clamp(19px, 1.8vw, 32px); /* Body:           14–24pt  */
  --caption:   clamp(16px, 1.4vw, 19px); /* Caption:        12–14pt  */
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

/* Tighten kerning globally on Brother 1816 Black */
.s-mascots .banner,
.s-together .together-text,
.s-about h2,
.game-info h2,
.s-services h2,
.services-headline h3,
.team-heading h2,
.btn-outline {
  letter-spacing: -0.02em;
}

/* Tighten word spacing on FinalSix Thin */
.value h3,
.service h4,
.services-sub,
.values-header {
  word-spacing: -0.15em;
}

body {
  font-family: var(--f-book);
  font-weight: 300;
  background: var(--cream);
  color: var(--dark);
  overflow-x: clip;
  max-width: 100vw;
  cursor: none;
}

* { cursor: none !important; }

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  background: url('images/orange_arrow.png') center / contain no-repeat;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: background-image 0.1s, opacity 0.2s;
  opacity: 0;
}

#custom-cursor.is-hover {
  background-image: url('images/yellow_arrow.png');
}


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

p, h1, h2, h3, h4 {
  text-wrap: pretty;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--volt-azure);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.t-lav-stroke,
.t-yel-stroke,
.t-s2-stroke {
  position: absolute;
  background: transparent;
  border: 0.75px solid var(--volt-azure);
  pointer-events: none;
  top: 50%; bottom: 50%;
  left: 50%; right: 50%;
  border-radius: 20px;
}

.t-lav-stroke { z-index: 2; }
.t-yel-stroke { z-index: 4; }
.t-s2-stroke  { z-index: 6; }

#preloaderVideo {
  width: auto;
  height: 19%;
  max-width: 29vw;
}

/* Service items staggered reveal */
.reveal-service {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.22, 1.15, 0.36, 1);
}

.reveal-service.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.65s ease-out, transform 0.75s cubic-bezier(0.22, 1.15, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAV
   ============================================= */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.4s ease;
  animation: navEntrance 0.8s ease-in-out 0.1s both;
}

#nav.nav-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

@keyframes navEntrance {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-inner {
  background: var(--orange);
  border: 0.75px solid var(--gamers-hour);
  border-radius: 8px;
  padding: 0.75rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  pointer-events: all;
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-family: var(--thin);
  font-weight: 100;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 0.75px;
  background: var(--dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active { text-decoration: none; }

.nav-links a.nav-cta {
  background: var(--orange);
  color: var(--dark);
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  font-family: var(--thin);
  font-weight: 100;
}

.nav-links a.nav-cta::after { display: none; }

.nav-links a.nav-cta:hover {
  border-radius: 50px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark);
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

/* =============================================
   SECTION 1 — MASCOTS
   ============================================= */

.s1-sticky-container {
  position: relative;
}

.s-mascots {
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--featherdust) 0%, var(--blankstate) 40%);
  position: sticky;
  top: 0;
  z-index: 1;
  overflow: hidden;
}

/* Transition layers */
.t-wrapper {
  height: 350vh;
  position: relative;
  z-index: 2;
}

.t-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

.t-lavender,
.t-yellow,
.t-s2 {
  position: absolute;
  inset: 0;
}

.t-lavender {
  background: var(--huute);
  clip-path: inset(50% 50% round 20px);
  z-index: 1;
  pointer-events: none;
}

.t-yellow {
  background: var(--featherdust);
  clip-path: inset(50% 50% round 20px);
  z-index: 3;
  pointer-events: none;
}

.t-s2 {
  clip-path: inset(50% 50% round 20px);
  z-index: 5;
  overflow: hidden;
  pointer-events: auto;
}



.acorn {
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  width: 70px;
  animation: acornDrop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes acornDrop {
  from {
    opacity: 0;
    transform: translateY(-60px) rotate(-30deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

.owl-hu {
  position: absolute;
  top: 12rem;
  left: 32%;
  width: clamp(191px, 25.2vw, 318px);
  background: transparent;
  opacity: 0;
}

.owl-nu {
  position: absolute;
  bottom: 0;
  right: 25%;
  width: clamp(209px, 32vw, 451px);
  background: transparent;
  opacity: 0;
}

.owl-hu.ready {
  animation: owlHuEntrance 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.owl-nu.ready {
  animation: owlNuEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes owlHuEntrance {
  from {
    opacity: 0;
    transform: translateY(100px) scale(0.75);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes owlNuEntrance {
  from {
    opacity: 0;
    transform: translateY(100px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.banner {
  position: absolute;
  background: var(--yellow);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.52vw, 1.96rem);
  letter-spacing: 0.06em;
  color: var(--dark);
  padding: 0.6rem 1.8rem;
  border: 0.75px solid var(--gamers-hour);
  border-radius: 8px;
}

.banner-right {
  right: 0;
  top: calc(12rem + 10vh);
  border-radius: 8px 0 0 8px;
  border-right: none;
  padding: 0.6rem 1.8rem;
  min-width: 42vw;
  animation: bannerFromRight 0.6s cubic-bezier(0.22, 1.15, 0.36, 1) 1.1s both;
}

.banner-left {
  left: 0;
  top: 65%;
  border-radius: 0 8px 8px 0;
  border-left: none;
  padding: 0.6rem 1.8rem;
  min-width: 40vw;
  text-align: right;
  animation: bannerFromLeft 0.6s cubic-bezier(0.22, 1.15, 0.36, 1) 1.4s both;
}

@keyframes bannerFromRight {
  from { transform: translateX(110%); }
  to   { transform: translateX(0); }
}

@keyframes bannerFromLeft {
  from { transform: translateX(-110%); }
  to   { transform: translateX(0); }
}

/* =============================================
   SECTION 2 — TOGETHER WE ARE
   ============================================= */


.s-together {
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--blankstate) 0%, var(--huute) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4rem;
  overflow: hidden;
  position: relative;
  pointer-events: auto;
}

.s-together .together-text {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--h1);
  text-align: center;
  line-height: 0.88;
  color: var(--dark);
  background: var(--featherdust);
  border: 0.75px solid var(--gamers-hour);
  border-radius: 12px;
  padding: 1.5rem 3rem;
  position: absolute;
  bottom: 62%;
  left: 50%;
  transform: translateX(-50%) translateY(60px) scale(0.92);
  opacity: 0;
  transition: opacity 0.4s ease-out, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  white-space: nowrap;
}

.s-together .together-text.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* ---- Eye-tracking stage ---- */
#stage {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 620px;
}

.owl {
  position: absolute;
  width: var(--size);
  height: var(--size);
  pointer-events: none;
  overflow: hidden;
}

.owl.big {
  --size: clamp(500px, 50vmin, 620px);
  left: 40%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 1;
}

.owl.small {
  --size: clamp(280px, 30vmin, 340px);
  left: 60%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 3;
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.eye {
  will-change: opacity;
}

.pupilWrap {
  will-change: transform;
  transform: translate(0px, 0px);
}

.pupilImg {
  width: 100%;
  height: 100%;
  display: block;
  will-change: transform;
}

.shine { transition: none; }

.lid {
  opacity: 0;
  transform-origin: center top;
  will-change: opacity, transform;
}

.lid.blink {
  opacity: 1;
  transition: opacity 0.06s ease-in, transform 0.10s ease-out;
}

.brow { will-change: transform; }

@keyframes browDoubleFlick {
  0%   { transform: translateY(0) rotate(0deg); }
  18%  { transform: translateY(2px) rotate(var(--tilt)); }
  32%  { transform: translateY(0) rotate(0deg); }
  52%  { transform: translateY(-2px) rotate(calc(var(--tilt) * 0.8)); }
  70%  { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@media (max-width: 500px) {
  .owl.big,
  .owl.small {
    top: auto;
    bottom: clamp(18px, 5vh, 40px);
  }
  .owl.big {
    left: 55%;
    transform: translate(calc(-50% - clamp(70px, 10vw, 120px)), 0);
  }
  .owl.small {
    left: 55%;
    transform: translate(calc(-50% + clamp(70px, 10vw, 120px)), 0);
  }
}

/* =============================================
   SECTION 3 — LOGO
   ============================================= */

.s-logo {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  padding-top: 12vh;
  position: sticky;
  top: 0;
  z-index: 0;
}

.s-about,
.s-game,
.s-services,
.s-team,
.s-contact,
footer {
  position: relative;
  z-index: 1;
}

.s-logo img,
.s-logo video {
  width: clamp(600px, 90vw, 1200px);
}

/* =============================================
   SECTION 4 — ABOUT US
   ============================================= */

.s-about {
  background: var(--dark);
  color: var(--blankstate);
  padding: 0 4rem 6rem;
}

.s-about .container {
  background: var(--volt-azure);
  border-radius: 12px;
  border: 0.75px solid var(--gamers-hour);
  padding: 2rem 2.5rem;
  max-width: 1200px;
}

/* Hero heading word animation */
.hw-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}

.hw {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(0.22, 1.15, 0.36, 1);
}

.hw.in {
  transform: translateY(0);
}

.s-about h2 {
  font-family: var(--display);
  font-size: var(--h1);
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.about-lead {
  font-family: var(--f-tagline);
  font-weight: 100;
  font-size: var(--body-size);
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 4rem;
}

.values-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  margin-bottom: 2.5rem;
  background: none;
  border: none;
  color: var(--blankstate);
  cursor: pointer;
  font-family: var(--f-book);
  padding: 0;
}

.values-header .arrow {
  display: inline-block;
  width: 2rem;
  height: auto;
  filter: invert(1);
  transition: transform 0.3s ease;
  animation: arrowNudge 1.8s ease-in-out infinite;
}

.values-header[aria-expanded="true"] .arrow {
  transform: rotate(90deg);
  animation: none;
}

@keyframes arrowNudge {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  40%       { transform: translateX(5px); }
  60%       { transform: translateX(-3px); }
  80%       { transform: translateX(3px); }
}

.value {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.value.visible {
  opacity: 1;
  transform: translateY(0);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.values-grid.open {
  max-height: 600px;
}

.value h3 {
  font-family: var(--f-tagline);
  font-weight: 100;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: 0.14em;
  line-height: 1.1;
  color: var(--blankstate);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.value p {
  font-weight: 300;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.55;
}

/* =============================================
   SECTION 5 — TECTONIC TACTICS
   ============================================= */

.s-game {
  background: var(--dark);
  padding: 6rem 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-card {
  background: var(--lavender);
  border-radius: 12px;
  border: 0.75px solid var(--gamers-hour);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  max-width: 1200px;
  width: 100%;
  align-items: stretch;
  overflow: hidden;
}

.game-info {
  padding: 2rem 2rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.game-info h2 {
  font-family: var(--display);
  font-size: var(--h1);
  line-height: 0.9;
  color: var(--dark);
}

.game-info p {
  font-family: var(--f-tagline);
  font-weight: 100;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  color: var(--dark);
  line-height: 1.4;
}

.btn-outline {
  display: block;
  border: 0.75px solid var(--dark);
  padding: 1.4rem 2rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--dark);
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-radius 0.2s;
}

.btn-outline:hover {
  background: var(--featherdust);
  color: var(--dark);
  border-radius: 50px;
}

.game-img {
  overflow: hidden;
  padding: 2rem;
}

.game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =============================================
   SECTION 6 — WHAT DO WE DO
   ============================================= */

.s-services {
  background: var(--dark);
  padding: 6rem 4rem;
}

.s-services .container {
  background: var(--volt-azure);
  border-radius: 12px;
  border: 0.75px solid var(--gamers-hour);
  padding: 2rem 2.5rem;
  max-width: 1200px;
  color: var(--blankstate);
}

.s-services h2 {
  font-family: var(--display);
  font-size: var(--h1);
  line-height: 0.9;
  color: var(--blankstate);
  margin-bottom: 5rem;
}

.services-sub {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  margin-bottom: 5rem;
  color: var(--blankstate);
}

.services-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: start;
}

.services-headline h3 {
  font-family: var(--display);
  font-size: var(--h3);
  line-height: 0.95;
  color: var(--blankstate);
  margin-bottom: 1.5rem;
}

.services-headline p {
  font-family: var(--f-tagline);
  font-weight: 100;
  font-size: 1.67rem;
  font-style: normal;
  line-height: 1.65;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  min-width: 0;
}

.service {
  min-width: 0;
}

.service h4 {
  font-family: var(--f-tagline);
  font-weight: 100;
  font-size: clamp(1.26rem, 1.98vw, 1.8rem);
  letter-spacing: 0.12em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: var(--blankstate);
  text-transform: uppercase;
}

.service p {
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 300;
}

/* =============================================
   SECTION 7 — TEAM
   ============================================= */

.s-team {
  background: var(--dark);
  padding: 4rem;
}

.team-container {
  background: var(--huute);
  border-radius: 12px;
  border: 0.75px solid var(--gamers-hour);
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
}

.team-heading {
  margin-bottom: 2rem;
  padding-left: 2.5rem;
  padding-right: 3.5rem;
}

.team-heading h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 5.5vw, 79px);
  line-height: 0.9;
  color: var(--gamers-hour);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.heading-arrow {
  width: 3.5rem;
  height: auto;
  display: inline-block;
  animation: arrowNudge 1.8s ease-in-out infinite;
}

.team-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 3rem 3.5rem;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 3.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.team-scroll::-webkit-scrollbar { display: none; }

.team-track {
  display: flex;
  gap: 1.5rem;
  padding-right: 3.5rem;
}

.team-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  position: relative;
  border-radius: 6px;
  border: 0.75px solid var(--gamers-hour);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.1);
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

.team-card--placeholder {
  background: var(--volt-azure);
  display: flex;
  align-items: flex-end;
}

.team-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: var(--blankstate);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-card:hover .team-info {
  opacity: 1;
  transform: translateY(0);
}

.team-name {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.team-role {
  font-weight: 300;
  font-size: 0.8rem;
  opacity: 0.8;
  line-height: 1.4;
}

/* =============================================
   SECTION 8 — CONTACT
   ============================================= */

.s-contact {
  background: var(--dark);
  padding: 0 4rem 6rem;
}

.contact-container {
  background: var(--orange);
  border-radius: 12px;
  border: 0.75px solid var(--gamers-hour);
  padding: 2rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--dark);
}

.contact-container h2 {
  font-family: var(--display);
  font-size: var(--h1);
  line-height: 0.9;
  margin-bottom: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--thin);
  font-weight: 100;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  background: var(--blankstate);
  border: 0.75px solid var(--dark);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--dark);
  font-family: var(--thin);
  font-weight: 100;
  font-size: 1rem;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.2s ease;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(22, 25, 21, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--featherdust);
}

.btn-submit {
  align-self: flex-start;
  background: transparent;
  border: 0.75px solid var(--dark);
  border-radius: 4px;
  color: var(--dark);
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-radius 0.2s ease;
}

.contact-feedback {
  font-family: var(--thin);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}

.contact-feedback.feedback-success {
  display: block;
  background: rgba(250, 249, 240, 0.1);
  color: var(--featherdust);
  border: 0.75px solid var(--featherdust);
}

.contact-feedback.feedback-error {
  display: block;
  background: rgba(255, 117, 23, 0.1);
  color: var(--orange);
  border: 0.75px solid var(--orange);
}

.btn-submit:hover {
  background: var(--featherdust);
  border-color: var(--dark);
  color: var(--dark);
  border-radius: 50px;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
  background: var(--cream);
  padding: 4rem 4rem 2rem;
}

.fr-item {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.7s ease-out, transform 0.9s cubic-bezier(0.22, 1.15, 0.36, 1);
}

.fr-item.in {
  opacity: 1;
  transform: translateY(0);
}

.footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  align-items: start;
}

.footer-logo {
  background: var(--blue);
  border: 0.75px solid var(--gamers-hour);
  border-radius: 8px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.footer-logo img {
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.22, 1.15, 0.36, 1);
}

.footer-logo:hover img {
  transform: scale(1.06);
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav {
  background: var(--orange);
  border: 0.75px solid var(--gamers-hour);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav a {
  color: var(--dark);
  text-decoration: none;
  font-family: var(--thin);
  font-weight: 100;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  position: relative;
  width: fit-content;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 0.75px;
  background: var(--dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.footer-nav a:hover::after,
.footer-nav a.active::after {
  transform: scaleX(1);
}

.footer-nav a.active { text-decoration: none; }

.footer-socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.btn-social {
  display: block;
  border: 0.75px solid var(--gamers-hour);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  text-align: center;
  font-family: var(--thin);
  font-weight: 100;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--dark);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-radius 0.2s;
}

.btn-social:hover {
  background: var(--featherdust);
  color: var(--dark);
  border-radius: 50px;
}

.copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--thin);
  font-weight: 100;
  font-size: 1.07rem;
  letter-spacing: 0.1em;
  padding-top: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.copyright a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.copyright a:hover { opacity: 1; }

/* =============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================= */

@media (max-width: 1024px) {
  .services-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .game-card {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   RESPONSIVE — TABLET (max 768px owls fix)
   ============================================= */

@media (max-width: 1024px) and (min-width: 769px) {
  .owl-hu {
    width: clamp(220px, 28vw, 320px);
    left: 20%;
    top: 10rem;
  }
  .owl-nu {
    width: clamp(320px, 42vw, 500px);
    right: 12%;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================= */

@media (max-width: 768px) {

  /* Nav */
  #nav {
    padding: 1rem;
    justify-content: flex-start;
  }

  .nav-inner {
    width: 100%;
    border-radius: 8px;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    gap: 0;
  }

  .nav-toggle {
    display: block;
    align-self: flex-end;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    padding-top: 1rem;
    align-items: flex-end;
  }

  .nav-links.open {
    display: flex;
  }

  /* Mascots */
  .s-mascots {
    min-height: 80vh;
  }

  .acorn {
    width: 45px;
    top: 1.5rem;
    left: 1.5rem;
  }

  .owl-hu {
    width: clamp(168px, 44.1vw, 242px);
    left: 4%;
    top: 8rem;
  }

  .owl-nu {
    width: clamp(280px, 68vw, 400px);
    right: 4%;
  }

  .banner {
    font-size: clamp(1rem, 4.5vw, 1.4rem);
    padding: 0.8rem 1.8rem;
  }

  .banner-right {
    right: 0;
    top: 7rem;
  }

  .banner-left {
    left: 0;
    top: 50%;
  }

  /* Together */
  .s-together {
    padding-top: 6rem;
    overflow-x: hidden;
  }

  #stage {
    overflow: hidden;
    width: 100%;
  }

  .owls-wrap img {
    width: 100%;
    min-width: unset;
  }

  /* About */
  .s-about {
    padding: 3rem 1.5rem;
  }

  .s-about .container {
    padding: 2.5rem 1.5rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Game */
  .s-game {
    padding: 4rem 1.5rem;
  }

  .game-card {
    grid-template-columns: 1fr;
  }

  .game-info {
    padding: 2rem;
  }


  .game-img {
    min-height: 260px;
  }

  /* Services */
  .s-services {
    padding: 5rem 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Team */
  .s-team {
    padding: 4rem 0 4rem 1.5rem;
  }

  .team-heading {
    padding-right: 1.5rem;
  }

  .team-heading h2 {
    font-size: clamp(1.8rem, 9vw, 3.5rem);
    line-height: 0.95;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .heading-arrow {
    width: 2rem;
  }

  .team-card {
    flex: 0 0 260px;
  }

  .team-scroll {
    padding-right: 1.5rem;
  }

  /* Contact */
  .s-contact {
    padding: 0 1.5rem 4rem;
  }

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

  /* Footer */
  footer {
    padding: 3rem 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    aspect-ratio: auto;
    padding: 2rem;
    max-width: 100%;
  }

  .footer-socials {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   CONTACT MODAL
   ============================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 25, 21, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--blankstate);
  border: 0.75px solid var(--dark);
  border-radius: 20px;
  padding: 3.5rem 3rem;
  text-align: center;
  max-width: 460px;
  width: 100%;
  transform: translateY(24px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-eyebrow {
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--dark);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.modal-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 1.5rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.modal-body {
  font-family: var(--thin);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--dark);
  opacity: 0.7;
  margin-bottom: 2.5rem;
}

.modal-close {
  display: block;
  border: 0.75px solid var(--gamers-hour);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  text-align: center;
  font-family: var(--thin);
  font-weight: 100;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--dark);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-radius 0.2s;
  width: 100%;
}

.modal-close:hover {
  background: var(--featherdust);
  color: var(--dark);
  border-radius: 50px;
}
