/* ============================================================
   LOCAL FONTS — Brand Charter
============================================================ */
@font-face {
  font-family: 'BureauSans';
  src: url('../font/STKBureauSans-Regular.woff2') format('woff2'),
       url('../font/STKBureauSans-Regular.woff') format('woff'),
       url('../font/STKBureauSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeorgiaPro';
  src: url('../font/24474206224.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   TOKENS & RESET
============================================================ */
:root {
  /* Colors from Graphic Charter */
  --bg:    #FAFAF5;
  --bg2:   #F4EFE4;
  --ink:   #12100D;
  --sand:  #E2CA85;
  --terra: #AE6E59;
  --olive: #727541;
  --sky:   #AED6E4;
  --cream: #F5EDD9;
  --white: #FFFFFF;

  /* Typography */
  --f-heading: 'BureauSans', system-ui, sans-serif;
  --f-body: 'BureauSans', system-ui, sans-serif;

  
  /* Layout */
  --nav-h: 90px;
  --section-pad: 120px;
  --max-w: 1400px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* scroll-behavior: smooth removed — GSAP handles anchors; CSS smooth + scrub = jitter */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
/* object-fit: cover only on media that fills a sized container */
.hero-video,
.nav-card > img,
.img-parallax,
.gallery-photo img,
.gallery-item img { object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

.t-display {
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  letter-spacing: 0.08em;
  font-weight: 400;
  line-height: 1.0;
  text-transform: uppercase;
}

.t-h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.06em;
  font-weight: 400;
  text-transform: uppercase;
}

.t-h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.t-body-lg {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  font-weight: 300;
  color: rgba(18,16,13,0.75);
  letter-spacing: 0.01em;
}

.t-body {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(18,16,13,0.7);
}

.t-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
}

.t-label-light {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* Utilities */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ============================================================
   LAYOUT
============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 4vw;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-bg-cream { background-color: var(--cream); }
.section-bg-terra { background-color: var(--terra); color: var(--white); }
.section-bg-terra h2, .section-bg-terra p, .section-bg-terra .t-label { color: var(--white); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-2-start { align-items: start; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--terra);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(18,16,13,0.2);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-glass {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-glass:hover {
  background: var(--white);
  color: var(--ink);
}

/* When header is on light background, btn-glass must flip to dark */
.header.is-scrolled .btn-glass {
  background: transparent;
  color: var(--ink);
  border-color: rgba(18,16,13,0.35);
  backdrop-filter: none;
}

.header.is-scrolled .btn-glass:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ============================================================
   HEADER / NAVBAR
============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  align-items: center;
}

.header.is-scrolled {
  background: rgba(250,250,245,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.03);
  height: 70px;
}

/* Glass state for hero */
.header.is-glass {
  background: linear-gradient(
    to bottom,
    rgba(18,16,13,0.5) 0%,
    transparent 100%
  );
}
.header.is-glass .nav-link,
.header.is-glass .logo-text,
.header.is-glass .menu-toggle {
  color: var(--white);
}

.header-inner {
  width: 100%;
  padding: 0 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.header-right {
  justify-content: flex-end;
}

.header-center {
  flex: 0 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-img {
  height: 60px;
  width: auto;
  transition: filter 0.3s ease;
}

.header.is-glass .logo-img {
  filter: brightness(0) invert(1);
}

.logo-text {
  font-family: var(--f-heading);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--ink);
  transition: color 0.3s ease;
}

.logo-subtitle {
  display: block;
  font-family: var(--f-body);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  margin-top: 3px;
  transition: color 0.3s ease;
}

.header.is-glass .logo-subtitle {
  color: rgba(255,255,255,0.75);
}

.header.is-scrolled .logo-subtitle {
  color: var(--ink);
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  padding: 5px;
  transition: color 0.3s ease;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: all 0.3s ease;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.menu-close {
  position: absolute;
  top: 30px;
  right: 4vw;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--ink);
}

.menu-links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-links a {
  font-family: var(--f-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--ink);
  transition: color 0.3s ease;
}

.menu-links a:hover {
  color: var(--terra);
}

@media (max-width: 900px) {
  .header-left .nav-link {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
}

/* ============================================================
   HERO VIDEO SECTION
============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 110%; /* Extra height for scroll parallax */
  object-fit: cover;
  object-position: center center;
  transform: scale(1.0) translateY(0);
  transform-origin: center center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(18,16,13,0.45) 0%,
    rgba(18,16,13,0.15) 25%,
    rgba(18,16,13,0.1) 50%,
    rgba(18,16,13,0.4) 75%,
    rgba(18,16,13,0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
}

h1.hero-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.25);
}

.hero-subtitle {
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.55);
  font-family: var(--f-body);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(1.2); opacity: 1; }
}

/* Circular spinning text badge */
.circle-badge {
  position: absolute;
  bottom: 40px;
  right: 4vw;
  z-index: 3;
  width: 120px;
  height: 120px;
  filter: brightness(0) invert(1);
  animation: spin 20s linear infinite;
}

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

@media (max-width: 768px) {
  .circle-badge {
    width: 80px;
    height: 80px;
    bottom: 20px;
  }
}

/* ============================================================
   MARQUEE STRIP
============================================================ */
.marquee-strip {
  background: var(--ink);
  color: var(--white);
  padding: 18px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding-right: 2rem;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
  margin-left: 2rem;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HERO LOCATION TAG
============================================================ */
.hero-location {
  font-family: var(--f-body);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-location::before,
.hero-location::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: rgba(255,255,255,0.35);
}

/* ============================================================
   SECTIONS (ABOUT, BEACH, SOLARIUM, KITCHEN)
============================================================ */

/* Text blocks */
.text-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Centered intro block — MA'WA section (no image) */
.mawa-intro {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

/* Tighten the first content section that follows the marquee */
#mawa {
  padding-top: 72px;
  padding-bottom: 0;
}

/* Image wrappers for parallax and masks */
.img-wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 4px;
}

.img-wrap-tall {
  aspect-ratio: 3/4;
}

.img-wrap-wide {
  aspect-ratio: 16/9;
}

.img-parallax {
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translateY(-10%);
  will-change: transform;
}

.img-scale {
  transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Horizontal Gallery slider */
.gallery-slider {
  margin-top: 4rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%); /* Full width bleed out of container */
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  padding: 0 4vw;
  width: max-content;
}

.gallery-item {
  width: 350px;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .gallery-item { width: 280px; }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: var(--white);
  z-index: 2;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Pills list for menu items */
.pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill-item {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(18,16,13,0.2);
  border-radius: 20px;
}

/* ============================================================
   MAP / COME ARRIVARE
============================================================ */
.map-container {
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.5) contrast(1.1) sepia(0.2);
}

.directions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.direction-card {
  padding: 2rem;
  background: var(--bg2);
  border-left: 2px solid var(--terra);
}

@media (max-width: 768px) {
  .directions-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .footer-grid { 
    grid-template-columns: 1fr; 
    text-align: center;
    gap: 2rem;
  }
}

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

@media (min-width: 769px) {
  .footer-right { align-items: flex-end; }
}

.footer-logo {
  text-align: center;
}

.footer-logo img {
  height: 80px;
  margin: 0 auto;
  filter: brightness(0) invert(1);
  animation: spin 15s linear infinite;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ============================================================
   NAVIGATION GRID (4 CARDS)
============================================================ */
.nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .nav-grid { grid-template-columns: 1fr; }
}

.nav-card {
  position: relative;
  z-index: 2;
  aspect-ratio: 16/9;
  overflow: hidden;
  display: block;
  text-decoration: none;
  background: var(--ink);
}

@media (max-width: 768px) {
  .nav-card { aspect-ratio: 4/3; }
}

.nav-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(18,16,13,0.65) 100%
  );
  transition: background 0.6s ease;
}

.nav-card:hover::after {
  background: linear-gradient(
    to bottom,
    rgba(18,16,13,0.15) 0%,
    rgba(18,16,13,0.7) 100%
  );
}

.nav-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 0.85;
}

.nav-card:hover img {
  transform: scale(1.07);
  opacity: 1;
}

.nav-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem;
  z-index: 3;
  pointer-events: none;
}

.nav-card-title {
  color: var(--white);
  font-family: var(--f-heading);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-card-arrow {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-family: var(--f-body);
  font-style: normal;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.nav-card:hover .nav-card-title {
  transform: translateY(-4px);
}

.nav-card:hover .nav-card-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SUBPAGE PHOTO GALLERIES (6 IMAGES)
============================================================ */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem 4vw;
  max-width: var(--max-w);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .photo-gallery { grid-template-columns: 1fr; }
}

.gallery-photo {
  position: relative;
  z-index: 2;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.bg-pantone-terra { background-color: var(--terra); }
.bg-pantone-sand { background-color: var(--sand); }
.bg-pantone-olive { background-color: var(--olive); }
.bg-pantone-sky { background-color: var(--sky); }
.bg-pantone-ink { background-color: var(--ink); }
.bg-pantone-cream { background-color: var(--cream); }

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-photo:hover img {
  transform: scale(1.05);
}

/* ============================================================
   EASTER EGGS (PITTOGRAMMI)
============================================================ */
.easter-egg {
  position: absolute;
  width: clamp(60px, 8vw, 100px);
  height: auto;
  cursor: pointer;
  z-index: 1; /* Keeps easter eggs behind images */
  transition: opacity 0.4s ease, transform 0.4s ease;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.easter-egg:hover {
  transform: scale(1.1) rotate(5deg);
}

.easter-egg.is-hidden {
  opacity: 0;
  transform: scale(0.5) rotate(-15deg);
  pointer-events: none;
}

/* ============================================================
   GSAP ANIMATION UTILITIES
============================================================ */
.gsap-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.gsap-split-text {
  /* Requires custom JS wrapping, but baseline is set here */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.gsap-split-text .line {
  overflow: hidden;
}

.gsap-split-text .word {
  transform: translateY(110%);
}

/* ============================================================
   MOBILE / PHONE TUNING (≤768px and ≤480px)
============================================================ */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
    --section-pad: 64px;
  }

  .container { padding: 0 5vw; }

  /* Header — slimmer on phone */
  .header-inner { padding: 0 5vw; }
  .header-left, .header-right { gap: 1rem; }
  .header-left .nav-link {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
  }
  .logo-img { height: 44px; }
  .header.is-scrolled { height: 56px; }
  .header.is-scrolled .logo-img { height: 38px; }
  .logo-subtitle { font-size: 0.5rem; letter-spacing: 0.3em; }

  /* Hero — fit phone viewport, prevent iOS URL-bar jumps */
  .hero {
    height: 100svh;
    min-height: 560px;
  }
  .hero-content { padding: 0 1.25rem; }
  h1.hero-title {
    font-size: clamp(2.4rem, 11vw, 3.6rem) !important;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 1.75rem !important;
  }

  /* Newsletter — stack input above button, full-width tap targets */
  .newsletter-form { max-width: 100%; }
  .newsletter-fields {
    flex-direction: column;
    background: rgba(255,255,255,0.1);
  }
  .newsletter-input {
    width: 100%;
    padding: 0.95rem 1.1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.25);
  }
  .newsletter-fields .btn {
    width: 100%;
    border-left: none;
    padding: 1rem 1.5rem;
    font-size: 0.78rem;
  }
  .newsletter-consent span { font-size: 0.6rem; line-height: 1.5; }
  .newsletter-note { font-size: 0.55rem; }

  /* Hero indicators — avoid crowding badge on phone */
  .hero-scroll-indicator { display: none; }
  .circle-badge {
    width: 68px;
    height: 68px;
    bottom: 16px;
    right: 5vw;
  }

  /* Marquee — smaller, slightly faster */
  .marquee-strip { padding: 12px 0; }
  .marquee-item { font-size: 0.6rem; letter-spacing: 0.18em; }
  .marquee-track { animation-duration: 22s; }

  /* MA'WA intro section — tighter and easter eggs cleaned up */
  .mawa-intro { gap: 0.9rem; padding: 0 0.25rem; }
  .mawa-intro .t-body-lg { font-size: 0.98rem; line-height: 1.65; }
  .mawa-intro .t-body { font-size: 0.92rem; line-height: 1.65; }
  .mawa-intro .btn { padding: 0.85rem 1.6rem; font-size: 0.72rem; }

  /* Hide middle easter eggs (overlap body text on narrow screens), keep only corners small */
  .easter-egg { width: clamp(38px, 11vw, 60px) !important; }
  .easter-egg:nth-of-type(3),
  .easter-egg:nth-of-type(4) { display: none; }

  /* Footer-landing — tighter, balanced */
  .footer { padding: 56px 0 32px; }
  .footer-logo img { height: 60px; }
  .footer-landing .footer-logo { margin-bottom: 1.75rem; }
  .footer-bottom {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    gap: 0.85rem;
    padding-top: 1.5rem;
  }
  .footer-policies { justify-content: center; gap: 0.55rem; flex-wrap: wrap; }
  .footer-policies a { font-size: 0.58rem; letter-spacing: 0.14em; }
}

@media (max-width: 480px) {
  h1.hero-title {
    font-size: clamp(2.1rem, 12vw, 3rem) !important;
  }
  .header-left .nav-link { font-size: 0.65rem; }
  .logo-img { height: 40px; }
  .logo-subtitle { font-size: 0.46rem; }
  .marquee-item { font-size: 0.55rem; padding-right: 1.25rem; }
  .marquee-dot { margin-left: 1.25rem; }
  .circle-badge { width: 58px; height: 58px; }
}

/* Hero CTA link + newsletter anchor section — hidden by default, revealed only when JS confirms form was relocated to phone anchor (body.mobile-newsletter) */
.hero-newsletter-cta { display: none; }
.newsletter-anchor { display: none; }

@media (max-width: 768px) {
  body.mobile-newsletter .hero-newsletter-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.25rem;
    color: var(--white);
    font-family: var(--f-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.95rem 1.6rem;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  }
  body.mobile-newsletter .hero-newsletter-cta:hover,
  body.mobile-newsletter .hero-newsletter-cta:active {
    background: var(--white);
    color: var(--ink);
  }
  body.mobile-newsletter .hero-newsletter-cta span { transition: transform 0.3s ease; }
  body.mobile-newsletter .hero-newsletter-cta:hover span { transform: translateY(2px); }

  body.mobile-newsletter .newsletter-anchor {
    display: block;
    background: var(--ink);
    color: var(--white);
    padding: 64px 0 72px;
    text-align: center;
    scroll-margin-top: 80px;
  }
  body.mobile-newsletter .newsletter-anchor .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }
  body.mobile-newsletter .newsletter-anchor-label { color: rgba(255,255,255,0.5); }
  body.mobile-newsletter .newsletter-anchor-title {
    color: var(--white);
    font-family: var(--f-heading);
    font-size: clamp(1.7rem, 7.5vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
  }
  body.mobile-newsletter #newsletter-target {
    width: 100%;
    max-width: 460px;
    margin-top: 0.75rem;
  }
}

/* Landscape phones — keep hero usable when address bar steals height */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 460px; }
  h1.hero-title { font-size: clamp(1.8rem, 6vw, 2.6rem) !important; }
  .hero-subtitle { margin-bottom: 1rem !important; }
  .circle-badge { display: none; }
}
