:root {
  --color-primary: #4ec3f0;
  --color-primary-deep: #2ea6db;
  --color-pink: #f2a0bf;
  --color-book-yellow: #f6d873;
  --color-bg: #fbf9f4;
  --color-cream: #f7f0e2;
  --color-field: #d3ecb4;
  --color-field-deep: #c3e3a1;
  --color-water: #bfe3f5;
  --color-ink: #2b3a3f;
  --color-muted: #6a7780;
  --color-surface: #ffffff;
  --radius: 28px;
  --radius-sm: 18px;
  --radius-pill: 999px;
  --speed-fast: 180ms;
  --speed-medium: 340ms;
  --speed-long: 720ms;
  --ease-out-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 26px 60px rgba(34, 48, 63, 0.12);
  --shadow-card: 0 22px 40px rgba(34, 48, 63, 0.1);
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --header-h: 76px;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/Fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.85;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.page-shell { overflow-x: clip; }

/* Every jump-to-anchor target needs room for the fixed header */
#top, #map, #statement, #service, #recruit, #blog, #footer {
  scroll-margin-top: var(--header-h);
}

/* Visible keyboard focus everywhere (a11y quality floor) */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-primary-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ========================================================
   SCROLL REVEAL — fires once per element via IntersectionObserver
   ======================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out-smooth), transform 0.8s var(--ease-out-smooth);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gentle cascading stagger for repeated items within a row/grid */
.statement__photos [data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.statement__photos [data-reveal]:nth-child(2) { transition-delay: 0.15s; }
.statement__photos [data-reveal]:nth-child(3) { transition-delay: 0.25s; }

.blog__cards .blog-card:nth-child(1) { transition-delay: 0.05s; }
.blog__cards .blog-card:nth-child(2) { transition-delay: 0.15s; }
.blog__cards .blog-card:nth-child(3) { transition-delay: 0.25s; }

.gallery figure:nth-child(1) { transition-delay: 0.02s; }
.gallery figure:nth-child(2) { transition-delay: 0.08s; }
.gallery figure:nth-child(3) { transition-delay: 0.14s; }
.gallery figure:nth-child(4) { transition-delay: 0.2s; }
.gallery figure:nth-child(5) { transition-delay: 0.26s; }
.gallery figure:nth-child(6) { transition-delay: 0.32s; }
.gallery figure:nth-child(7) { transition-delay: 0.38s; }
.gallery figure:nth-child(8) { transition-delay: 0.44s; }
/* ========================================================
   HEADER & NAVIGATION
   ======================================================== */

/* --- MOBILE FIRST DEFAULT LAYOUT --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transition: box-shadow var(--speed-medium) var(--ease-out-smooth);
  
  /* --- REMOVED white box backgrounds & margins on mobile screens --- */
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border-radius: 0; 
}

.site-header.scrolled {
  /* Only display box shadows if background exists (handled in desktop media queries) */
  box-shadow: none;
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  /* Automatically pins brand pill left and hamburger toggle right safely */
  justify-content: space-between; 
  gap: 1rem;
}

.brand__pill {
  position: fixed;
  top: 15px;
  left: 20px;
  z-index: 50;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1.4rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  box-shadow: 0 12px 28px rgba(78, 195, 240, 0.35);
  transition: transform var(--speed-fast) var(--ease-out-smooth);
  border-radius: 50px;       
}
.brand__pill:hover { transform: scale(1.04); }
.brand__pill:active { transform: scale(0.97); }

/* ---------- Desktop nav (Hidden on Mobile) ---------- */
.site-nav { display: none; }
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav__links > li { position: relative; }
.site-nav__links a {
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed-fast) var(--ease-out-smooth);
}
.site-nav__links a:hover::after { transform: scaleX(1); }
.caret { font-size: 0.65em; transition: transform var(--speed-fast) var(--ease-out-smooth); }

/* Submenu dropdown (hover + keyboard) */
.has-submenu .submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, -8px);
  min-width: 220px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 0.6rem;
  display: grid;
  gap: 0.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed-fast) var(--ease-out-smooth), transform var(--speed-fast) var(--ease-out-smooth), visibility 0s linear var(--speed-fast);
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.has-submenu:hover .caret { transform: rotate(180deg); }
.submenu a {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.submenu a::after { display: none; }
.submenu a:hover { background: var(--color-cream); color: var(--color-primary-deep); }


/* ---------- Hamburger toggle (Floating on Mobile right side) ---------- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  transition: background var(--speed-fast) var(--ease-out-smooth);
  
  /* Pins it precisely on mobile viewport right side */
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 50;
}
.nav-toggle:hover { background: var(--color-primary-deep); }
.nav-toggle span {
  width: 1.15rem;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--speed-medium) var(--ease-out-smooth), opacity var(--speed-medium) var(--ease-out-smooth);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scale(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ---------- Mobile nav dropdown panel ---------- */
.mobile-nav {
  position: fixed;
  top: 0;
  padding-top: calc(var(--header-h) + 10px); /* Keeps panel menus clear of top buttons */
  left: 0; right: 0;
  z-index: 39;
  max-height: 100vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-top: 1px solid rgba(43, 58, 63, 0.08);
  box-shadow: 0 24px 50px rgba(34, 48, 63, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity var(--speed-medium) var(--ease-out-smooth),
              transform var(--speed-medium) var(--ease-out-smooth),
              visibility 0s linear var(--speed-medium);
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.mobile-nav__inner {
  padding: 1.5rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav__links { display: grid; gap: 0.6rem; }
.mobile-nav__links a {
  display: block;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-out-smooth), transform 0.4s var(--ease-out-smooth), background var(--speed-fast) var(--ease-out-smooth);
}
.mobile-nav__links a:hover { background: var(--color-water); }
.mobile-nav.open .mobile-nav__links a { opacity: 1; transform: translateY(0); }

.mobile-nav__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 14px 30px rgba(78, 195, 240, 0.3);
  transition: transform var(--speed-fast) var(--ease-out-smooth);
}
.mobile-nav__phone:active { transform: scale(0.97); }


/* ========================================================
   DESKTOP RESPONSIVE BREAKPOINT (From Mobile to Desktop)
   ======================================================== */
@media (min-width: 1080px) {
  .site-header {
    top: 0; 
    margin-top: 15px;
    margin-left: 600px; 
    margin-right:20px;
    border: 2px solid var(--color-primary);
    /* --- CHANGE THIS LINE --- */    /* ------------------------ */
    
    border-radius: 40px;
    
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(34, 48, 63, 0.06);
  }

  .site-header.scrolled {
    box-shadow: 0 12px 40px rgba(34, 48, 63, 0.18);
  }

  .brand__pill {
    top: 21px;     
    left: 20px;;
  }

  .site-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

@media (min-width: 1080px) and (max-width: 1279px) {
  .site-nav__links { gap: 1rem; }
  .site-nav__links a { font-size: 0.78rem; }
}

/* ========================================================
   HERO
   ======================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.hero__photo {
  position: absolute;
  inset: 0;
  background-image: url("../assets/Links/_A717695.jpg");
  background-size: cover;
  background-position: center;
}

/* Soft mountain-shaped divider blending hero photo into the village green below */
.hero__mountain {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(90px, 16vw, 220px);
  background: var(--color-field);
  clip-path: polygon(0% 100%, 0% 55%, 18% 30%, 38% 58%, 52% 15%, 68% 48%, 84% 22%, 100% 50%, 100% 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-bottom: clamp(6rem, 14vw, 14vh);
  padding-inline: var(--gutter);
}
.hero__title {
  margin: 0;
  display: grid;
  gap: 0.2rem;
  font-size: clamp(1.7rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-ink);
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.85);
  color: white;
}
.hero__title .letter {
  display: inline-block;
  opacity: 0;
  transform: scale(0) rotate(-10deg);
  white-space: pre;
  
  /* MAIN REVEAL ANIMATION (Exactly as you had it) */
  animation: 
    doodlePop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    gentleFloat 3s ease-in-out infinite;
    
  /* The floating starts 3.4 seconds later (after the final letter pops) */
  animation-delay: 0s, 3.4s;
}
.hero__title span {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-title-in 0.9s var(--ease-out-smooth) forwards;
}
.hero__title span:nth-child(1) { animation-delay: 0.2s; }
.hero__title span:nth-child(2) { animation-delay: 0.38s; }
.hero__title span:nth-child(3) { animation-delay: 0.56s; }
@keyframes hero-title-in { to { opacity: 1; transform: translateY(0); } }

/* Floating clouds + bird over the hero mountain (design-only additions, nothing baked into hero__photo) */
.hero__assets {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.hero__asset {
  position: absolute;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.8s ease;
  animation-play-state: paused;
}
.hero__asset.is-visible { opacity: 1; animation-play-state: running; }
.hero__asset--cloud1 { top: 14%; left: 8%;   width: clamp(70px, 9vw, 120px); animation: vFloat 6s ease-in-out infinite; }
.hero__asset--cloud2 { top: 20%; right: 10%; width: clamp(60px, 8vw, 100px); animation: vFloat 7s ease-in-out infinite; animation-delay: -2s; }
.hero__asset--bird1  { top: 32%; left: 36%;  width: 46px; animation: birdFly 3s ease-in-out infinite; }
.hero__asset--bird2  { top: 44%; right: 30%; width: 40px; transform: scaleX(-1); animation: birdFly 3.4s ease-in-out infinite; animation-delay: -1.2s; }

/* ========================================================
   VILLAGE / MAP SECTION
   ======================================================== */
.village {
  position: relative;
  overflow: hidden;

  /* --- ADD THESE TWO LINES --- */
  margin-top: -380px;  /* Pulls the grey mountain artwork up to touch the wheels */
  z-index: 2;          /* Layer it over the background photos securely */
  /* --------------------------- */
}
.village__art {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.village__img { width: 100%; display: block; }

.village__overlays {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  pointer-events: auto;
  display: grid;
  place-items: center;
  gap: 0.2rem;
  width: clamp(6.5rem, 16vw, 10.5rem);
  text-align: center;
  border-radius: var(--radius-sm);
  border: 2px solid #fff;
  padding: clamp(0.55rem, 1.4vw, 0.9rem) clamp(0.7rem, 1.8vw, 1.2rem);
  font-weight: 800;
  font-size: clamp(0.68rem, 1.3vw, 0.85rem);
  line-height: 1.35;
  box-shadow: 0 12px 26px rgba(34, 48, 63, 0.16);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s var(--ease-out-smooth), transform 0.6s var(--ease-out-smooth), box-shadow var(--speed-fast) var(--ease-out-smooth);
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  translate: -50% 0;
  width: 18px;
  height: 18px;
  background: inherit;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-radius: 0 0 4px 0;
  transform: rotate(45deg);
  z-index: -1;
}
.bubble.is-visible { opacity: 1; transform: scale(1); }
.bubble:hover { transform: scale(1.06) translateY(-2px); box-shadow: 0 18px 34px rgba(34, 48, 63, 0.22); }
.bubble:active { transform: scale(1.02); }
.bubble small { font-weight: 700; opacity: 0.75; display: block; margin-top: 0.15rem; }

.bubble-blue { background: var(--color-water); color: var(--color-ink); }

.bubble-left   { top: 40%; left: 12%; transition-delay: 0.05s; }
.bubble-center { top: 34%; left: 37%; transition-delay: 0.15s; }
.bubble-right  { top: 33%; right: 20%; transition-delay: 0.25s; }

.book {
  position: absolute;
  pointer-events: auto;
  width: clamp(60px, 11vw, 180px);
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-smooth), transform 0.7s var(--ease-out-smooth);
}
.book.is-visible { opacity: 1; transform: translateY(0); }
.book img {
  width: 100%;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.14));
  transition: transform var(--speed-medium) var(--ease-out-smooth);
}
.book:hover img { transform: translateY(-6px) rotate(-1deg); }

.book__callout {
  background: #fff;
  color: var(--color-ink);
  font-weight: 700;
  font-size: clamp(0.6rem, 1.3vw, 0.8rem);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  margin: 0 auto 0.5rem;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.book-left  { bottom: 6%; left: 6%; transition-delay: 0.1s; }
.book-right { bottom: 6%; left: 36%; transition-delay: 0.2s; }

/* Scale everything down gracefully on narrower screens instead of hiding it */
@media (max-width: 720px) {
  .hero {
    min-height: 78svh;
  }
  .hero__content {
    padding-bottom: clamp(3rem, 12vw, 5rem);
  }
  .hero__mountain {
    height: clamp(60px, 14vw, 110px);
  }
  .village {
    margin-top: -60px;
  }

  .bubble-left   { top: 6%;  left: 3%; }
  .bubble-center { top: 6%;  left: 50%; transform: translateX(-50%) scale(0.8); }
  .bubble-center.is-visible { transform: translateX(-50%) scale(1); }
  .bubble-right  { top: 20%; right: 3%; }

  .book-left  { bottom: 4%; left: 2%; }
  .book-right { bottom: 4%; left: auto; right: 2%; }
}

/* ========================================================
   SEA BAND — floating dolphins, ferry, shrimp
   ======================================================== */
.sea-band {
  position: relative;
  z-index: 3;
  background: var(--color-water);
  min-height: clamp(220px, 26vw, 380px);
  margin-top: -40px;
  overflow: hidden;
  border-radius: 50% 50% 0 0 / 70px 70px 0 0;
}
.sea-band__assets {
  position: absolute;
  inset: 0;
  max-width: var(--maxw);
  margin: 0 auto;
}
.sea-band__asset {
  position: absolute;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.8s ease;
  animation: vFloat 5s ease-in-out infinite;
  animation-play-state: paused;
}
.sea-band__asset.is-visible { opacity: 1; animation-play-state: running; }
.sea-band__asset--boat      { top: 20%; left: 6%;  width: clamp(130px, 13vw, 200px); animation-duration: 6s; }
.sea-band__asset--dolphin1  { top: 8%;  left: 40%; width: clamp(80px, 8vw, 110px); }
.sea-band__asset--dolphin2  { top: 38%; left: 50%; width: clamp(70px, 7vw, 96px); animation-delay: -1.5s; }
.sea-band__asset--dolphin3  { top: 14%; left: 60%; width: clamp(64px, 6.4vw, 88px); animation-delay: -3s; }
.sea-band__asset--shrimp1   { top: 46%; left: 80%; width: clamp(64px, 6.4vw, 88px); animation-delay: -1s; }
.sea-band__asset--shrimp2   { top: 16%; left: 88%; width: clamp(56px, 5.6vw, 78px); animation-delay: -2.5s; }

/* ========================================================
   RIVERBAND / VIDEO
   ======================================================== */
.riverband { background: var(--color-water); padding-bottom: clamp(1rem, 3vw, 2rem); }
.riverband__video {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  position: relative;
}
.riverband__video img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--speed-long) var(--ease-out-smooth);
}
.riverband__video:hover img { transform: scale(1.04); }
.riverband__play {
  position: absolute; inset: 0; margin: auto;
  width: clamp(3.5rem, 8vw, 5rem);
  height: clamp(3.5rem, 8vw, 5rem);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-pink);
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.75rem; gap: 2px;
  transition: transform var(--speed-fast) var(--ease-out-smooth);
}
.riverband__video:hover .riverband__play { transform: scale(1.12); }
.riverband__video:active .riverband__play { transform: scale(1.02); }

/* ========================================================
   SHARED SECTION LAYOUT
   ======================================================== */
.section {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section__meta--outline {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: var(--color-primary);
  -webkit-text-stroke: 2px var(--color-primary-deep);
  margin: 0;
}
.section__lead { color: var(--color-muted); font-weight: 600; }

/* ========================================================
   STATEMENT
   ======================================================== */
.section--statement { max-width: none; background: var(--color-cream); text-align: center; }
.statement__grid {
  display: grid;
  gap: 2.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.statement__grid > div:first-child { max-width: 720px; margin: 0 auto; }
.statement__headline {
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.6;
  margin: 0.5rem 0 1.5rem;
  color: var(--color-ink);
}
.statement__headline span {
  background: var(--color-primary);
  color: #fff;
  padding: 0.1rem 0.6rem;
  width: fit-content;
  transform: translateX(-8px);
  border-radius: 6px;
}
.statement__copy { display: grid; gap: 0.4rem; color: var(--color-muted); margin-bottom: 2rem; z-index: 5; }
.statement__photos { display: grid; gap: 1rem; }
.statement__photo img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  transition: transform var(--speed-medium) var(--ease-out-smooth);
}
.statement__photo img:hover { transform: scale(1.04) var(--ease-out-smooth);}

@media (min-width: 720px) {
  .statement__photos { grid-template-columns: 1fr 1fr; }
  .statement__photo--a { grid-column: span 2; }
}
.bold_bluetext, .stmttext{
  position: relative;
  display: inline-block;
}
/* ========================================================
   DESKTOP BACKGROUND PATH & ASSETS ROUTING
   ======================================================== */

/* Anchor point for all structural absolute children */
.statement__content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

/* Make sure copy text wraps above the background layer */
.statement__headline,
.statement__copy p {
  position: relative;
  z-index: 9;
}

/* Winding Road Background Vector */
.stmtimg {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -45%);
  width: 90%;          /* Controls the spread area across text */
  max-width: 650px;
  height: auto;
  pointer-events: none;
}

/* Vacuum Truck Asset sitting at the bottom of the road loop */
.stmtimg2 {
  position: absolute;
  transform-origin: bottom center; 
  bottom: 36rem;         /* Anchors from the bottom edge of content wrapper */
  left: 37rem;           /* Aligns directly on the lower turn of the vector line */
  transform: translate(-50%, 0);
  width: 100px;        /* Crisp desktop rendering width */
  height: auto;
  z-index: 1;          /* Appears nicely next to the text graphics */
  pointer-events: none;
     animation: engineStart 2s ease-in-out infinite; 
}
.girlrunning{
  position: absolute;
  width: 60px;
  top:24rem;
  left:22rem;
}
.treestatement, .treestatement2{
  width:40px;
  bottom:30rem;
  
}
.treestatement2{
  left:20px
}
@media (min-width: 1024px) {
  .girlrunning{
    top: 15rem;
  }

}


/* ========================================================
   RESPONSIVE SCALING (MOBILE ADAPTATION)
   ======================================================== */
@media (max-width: 768px) {
  /* Diminish background clutter on smaller smartphone viewports */
  .stmtimg {
    width: 100%;
  }
  .stmtimg2 {
    width: 90px;
    bottom: 20rem;
    left:29rem;
    animation-duration: 10s, 1.2s;

  }

}

.imgforstatement, .imgforstatement2{
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* Perfectly centers vertically */
  width: 70px;                 /* Desktop width */
  height: auto;
  animation: floatAnimation 3s ease-in-out infinite;
}
.imgforstatement{
  left:-80px;
}
.imgforstatement2{
  animation-delay: 0.5s;
  right:-90px;
  
}
@media (max-width: 768px) {
  /* Option A: Scale down and pull closer so they fit on mobile screens */
  .imgforstatement, 
  .imgforstatement2 {
    width: 65px;               /* Smaller size for mobile */
  }

  .imgforstatement {
    left: -125px;               /* Pull it closer to the text */
  }

  .imgforstatement2 {
    right: -125px;              /* Pull it closer to the text */
  }
  
  /* Option B: If the screen is too narrow, hide them entirely to prevent horizontal scrolling */
  /*
  .icon-left, .icon-right {
    display: none;
  }
  */
}



/* ========================================================
   SERVICE
   ======================================================== */
.section--service {
  background: var(--color-cream);
  max-width: none;
  border-radius: clamp(32px, 8vw, 70px) clamp(32px, 8vw, 70px) 0 0;
  margin-top: -50px;
  padding-top: clamp(4rem, 9vw, 7rem);
  text-align: center;
  position: relative;
  z-index: 2;
}
.service-inner { max-width: var(--maxw); margin: 0 auto; }

.service__carousel {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.5rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.service__nav {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-card);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform var(--speed-fast) var(--ease-out-smooth), background var(--speed-fast) var(--ease-out-smooth), color var(--speed-fast) var(--ease-out-smooth);
}
.service__nav:hover { transform: scale(1.1); background: var(--color-primary); color: #fff; }
.service__nav:active { transform: scale(0.95); }

.service__cards { flex: 1; overflow: hidden; }
.service__track {
  display: flex;
  gap: clamp(1rem, 3vw, 1.5rem);
  transition: transform var(--speed-medium) var(--ease-out-smooth);
  will-change: transform;
}

.service-card {
  flex: 0 0 clamp(190px, 26vw, 240px);
  border-radius: 30px;
  padding: clamp(1.25rem, 3vw, 2rem);
  text-align: left;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  opacity: 0.72;
  transform: scale(0.94);
  transition: flex-basis var(--speed-medium) var(--ease-out-smooth),
              transform var(--speed-medium) var(--ease-out-smooth),
              opacity var(--speed-medium) var(--ease-out-smooth),
              background var(--speed-medium) var(--ease-out-smooth),
              box-shadow var(--speed-medium) var(--ease-out-smooth),
              color var(--speed-medium) var(--ease-out-smooth);
}
.service-card:hover { box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1); }

.service-card--active {
  flex-basis: clamp(240px, 32vw, 340px);
  opacity: 1;
  transform: scale(1);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 26px 60px rgba(78, 195, 240, 0.35);
}

.service-card__label {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}
.service-card--active .service-card__label { color: #fff; }

.service-card__image {
  height: clamp(120px, 18vw, 160px);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.service-card--active .service-card__image { height: clamp(150px, 20vw, 190px); }
.service-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--speed-long) var(--ease-out-smooth);
}
.service-card--active .service-card__image img { transform: scale(1.05); }

.service-card__title { font-size: 1rem; font-weight: 800; margin: 0 0 0.6rem; }
.service-card__text {
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1.4rem;
  color: var(--color-muted);
}
.service-card--active .service-card__text { color: rgba(255, 255, 255, 0.92); }

/* ========================================================
   BUTTONS
   ======================================================== */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform var(--speed-fast) var(--ease-out-smooth), box-shadow var(--speed-fast) var(--ease-out-smooth);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
.button:active { transform: scale(0.96); }
.service-card--active .button { color: var(--color-primary-deep); }

.button--outline {
  background: #fff;
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
}
.button--outline:hover { background: var(--color-ink); color: #fff; }

/* ========================================================
   RECRUIT
   ======================================================== */
.section--recruit { position: relative; overflow: hidden; }
.recruit__watermark {
  position: absolute;
  top: 0%;
  left: 0; right: 0;
  text-align: center;
  font-size: clamp(2.0rem, 7vw, 6rem);
  font-weight: 900;
  color: rgba(233, 233, 233, 0.9);
  transform: rotate(-8deg);
  z-index: 30;
  white-space: nowrap;
  pointer-events: none;
}
.recruit__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.recruit__photo img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--speed-medium) var(--ease-out-smooth);
}
.dogi{
  position: relative;
  width: 70px;
  height: 70px;
  left: 16rem;
  top: 10rem;
  animation: premiumFloat 6s ease-in-out infinite alternate;
  will-change: transform;
  transform-origin: bottom center;
}
.kidspray{
  position: relative;
  width: 70px;
  height: 70px;
  top: 11rem;
  z-index: 7;
  left:20rem;

  /* Playful, organic micro-bounce animation */
  animation: premiumBounce 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  will-change: transform;
  transform-origin: bottom right;
  
}

.recruit__photo img:hover { transform: scale(1.02); }
.recruit__title { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 800; margin: 0.5rem 0 0.75rem; }
.recruit__lead { color: var(--color-muted); margin-bottom: 1.5rem; }
@media (min-width: 720px) {
  .recruit__inner { 
    grid-template-columns: 1.1fr 0.9fr; /* Gives more width to the text on the left, less to the asset photo on the right */
  }
  
  /* You can clean up or adjust the dog image positioning here if it overflows on desktop */
  .dogi {
    position: absolute;
    left: auto;
    right: -2rem;
    top: auto;
    bottom: -3rem;
    width: 8rem;
    height: 8rem;
  }
  .kidspray {
  position: absolute;
  width: 70px;
  height: 70px;
   /* Anchor it near the bottom edge of the photo container */
  left: 64rem;     /* Anchor it near the left edge of the photo container */
  z-index: 7;
    animation: premiumBounce 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  will-change: transform;
  transform-origin: bottom right;
}
}

/* ========================================================
   BLOG
   ======================================================== */
.blog__grid { display: grid; gap: 2.5rem; }
.blog__lead { font-weight: 600; margin: 0.75rem 0 1.5rem; }
.blog__cards { display: grid; gap: 1.5rem; }
.blog-card { transition: transform var(--speed-medium) var(--ease-out-smooth); }
.blog-card:hover { transform: translateY(-8px); }
.blog-card__image {
  height: 180px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.blog-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--speed-long) var(--ease-out-smooth);
}
.blog-card:hover .blog-card__image img { transform: scale(1.06); }
.blog-card__meta {
  display: flex; gap: 1rem;
  margin: 0.75rem 0 0.4rem;
  font-size: 0.8rem; font-weight: 700;
  color: var(--color-primary-deep);
}
.blog-card h3 { margin: 0; font-size: 0.95rem; }

@media (min-width: 720px) {
  .blog__grid { grid-template-columns: 0.8fr 2fr; align-items: start; }
  .blog__cards { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================================
   GALLERY
   ======================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  background: var(--color-cream);
  padding: 0.5rem;
}
.gallery figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--speed-long) var(--ease-out-smooth);
}
.gallery img:hover { transform: scale(1.06); }

@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer { background: var(--color-cream); }
.footer-scene {
  width: 100%;
  aspect-ratio: 1400 / 700;
  background-image: url("../assets/Links/psdtoformats/river-scene.png");
  background-size: cover;
  background-position: center bottom;
}
.site-footer__body {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) var(--gutter);
  display: grid;
  gap: 2.5rem;
}
.footer-brand { display: grid; gap: 0.6rem; align-content: start; }
.footer-brand__name { font-weight: 700; margin: 0.4rem 0 0; }
.footer-brand address { font-style: normal; color: var(--color-muted); font-size: 0.9rem; }
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 1.2rem;
  width: fit-content;
  box-shadow: 0 10px 30px rgba(78, 195, 240, 0.3);
  transition: transform var(--speed-fast) var(--ease-out-smooth);
}
.footer-phone:hover { transform: translateY(-3px); }
.footer-phone:active { transform: scale(0.97); }
.footer-phone__note { font-size: 0.78rem; color: var(--color-muted); margin: 0; }

.footer-nav { display: grid; gap: 1.5rem; }
.footer-nav__col { display: grid; gap: 0.7rem; align-content: start; }
.footer-nav__head { font-weight: 800; color: var(--color-ink); margin-bottom: 0.2rem; }
.footer-nav__col a {
  font-weight: 600;
  color: var(--color-muted);
  transition: color var(--speed-fast) var(--ease-out-smooth);
}
.footer-nav__col a:hover { color: var(--color-primary-deep); }

.site-footer__copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-muted);
  padding: 1.5rem var(--gutter) 2rem;
}

@media (min-width: 720px) {
  .site-footer__body { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================================
   ACCESSIBILITY — respect reduced motion preference
   ======================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], .bubble, .book {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* Note: bubble/book reveal + hover states are handled by the single
   .bubble.is-visible / .book.is-visible rules defined earlier — keeping
   only one source of truth here avoids the transform/animation fighting
   that was making the bubbles jitter and lose their hover scale. */
/* --- Animation 1: Smooth Up & Down Float --- */
@keyframes villageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Animation 2: Cloud/Bird Drifting --- */
@keyframes birdFly {
  0% { transform: translateX(-5px) translateY(0); }
  50% { transform: translateX(15px) translateY(-5px); }
  100% { transform: translateX(-5px) translateY(0); }
}

/* --- Animation 3: Subtle Engine Idle/Vibration --- */
@keyframes truckEngine {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.005); }
}
/* Container framework */
.village-map {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-field);
}

.village-map__bg {
  display: block;
  width: 100%;
  height: auto;
}

/* Base class for all assets */
.v-element {
  position: absolute;
  z-index: 3;
  cursor: pointer;
  
  /* Smooth merge between scroll-reveal entry state and layout transformations */
  opacity: 0;
  transition: 
    opacity 0.6s ease, 
    filter 0.3s ease,
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Coordinate Layout Rules (Match to your layout nodes) --- */
.v-cloud-1    { top: 8%;  left: 15%; width: 12%; transform: translateY(20px); }
.v-cloud-2    { top: 12%; left: 70%; width: 14%; transform: translateY(20px); }
.v-truck-blue { top: 45%; left: 42%; width: 10%; transform: scale(0.8); }
.v-book-blue  { top: 32%; left: 55%; width: 15%; transform: translateY(30px); }
.v-char-horse { top: 25%; left: 22%; width: 7%;  transform: scale(0.8); }

/* --- Scroll Reveal Execution --- */
.v-element.is-visible {
  opacity: 1;
}
.v-cloud-1.is-visible, .v-cloud-2.is-visible { transform: translateY(0); animation: vFloat 6s ease-in-out infinite; }
.v-book-blue.is-visible                      { transform: translateY(0); animation: vFloat 5s ease-in-out infinite; }
.v-char-horse.is-visible                     { transform: scale(1);      animation: vSway 4s ease-in-out infinite; }
.v-truck-blue.is-visible                     { transform: scale(1);      animation: vEngine 0.2s linear infinite; }

/* Dynamic Variation Multipliers */
.v-cloud-2.is-visible { animation-delay: -2s; animation-duration: 7s; }

/* --- Interactive Hover Rules --- */
/* Clouds & Books Lift and Glow */
.v-cloud-1:hover, .v-cloud-2:hover, .v-book-blue:hover {
  transform: translateY(-15px) scale(1.08) !important;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.15));
}

/* Characters pop up cleanly */
.v-char-horse:hover, .v-char-girl:hover {
  transform: scale(1.15) translateY(-5px) !important;
  filter: brightness(1.04);
}

/* Vehicles skew forward dynamically */
.v-truck-blue:hover, .v-truck-orange:hover {
  transform: scale(1.1) skewX(-3deg) !important;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,0.12));
}

/* --- Core Timelines --- */
@keyframes vFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes vSway {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg) translateY(-2px); }
}

@keyframes vEngine {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}
/* Ensure the statement section allows absolute tracking layers inside it */
.statement-section {
  position: relative;
  overflow: hidden; /* Keeps floating items from breaking screen layout bounds */
}

/* --- Global Assets Setup --- */
.v-wrapper {
  position: absolute;
  z-index: 8; /* Sits nicely around your text layers */
  opacity: 0;
  transition: opacity 0.6s ease;
}

.v-wrapper.is-visible {
  opacity: 1;
}

.v-asset {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

/* --- Statement Coordinates (Adjust percentages to move assets over your section background) --- */
.v-stmt-cloud1         { top: 10%;  left: 5%;   width: 14%; }
.v-stmt-cloud2         { top: 15%;  left: 80%;  width: 12%; }
.v-stmt-book-gomi      { top: 40%;  left: 8%;   width: 15%; }
.v-stmt-book-oshigoto  { top: 35%;  left: 76%;  width: 15%; }
.v-stmt-char-horse     { top: 75%;  left: 12%;  width: 8%;  }
.v-stmt-char-girl      { top: 80%;  left: 82%;  width: 6%;  }
.v-stmt-truck-packer   { top: 70%;  left: 45%;  width: 12%; }


/* ==========================================================
   MOVEMENTS & LOOPS
   ========================================================== */
/* Ambient Idle Loops */
.v-wrapper.is-visible .v-type-float {
  animation: stmtFloat 5s ease-in-out infinite;
}
.v-stmt-book-oshigoto.is-visible .v-type-float {
  animation-delay: -2.5s; /* Breaks up simultaneous movement sync */
}
.v-wrapper.is-visible .v-type-character {
  animation: stmtSway 4s ease-in-out infinite;
}
.v-wrapper.is-visible .v-type-vehicle {
  animation: stmtEngine 0.16s linear infinite;
}

/* Exaggerated Interactive Hover States */
.v-type-float:hover {
  transform: translateY(-25px) scale(1.15);
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
}
.v-type-character:hover {
  transform: scale(1.22) translateY(-10px);
  filter: brightness(1.05);
}
.v-type-vehicle:hover {
  transform: scale(1.12) skewX(-4deg) translateY(-4px);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.12));
}

/* --- Core Timelines --- */
@keyframes stmtFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes stmtSway {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg) translateY(-2px); }
}
@keyframes stmtEngine {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}
/* ==========================================================
   STATEMENT SECTION GRAPHICS ENGINE
   ========================================================== */
.statement-section {
  position: relative;
  width: 100%;
  min-height: 750px; /* Crucial: This opens up vertical space for assets to live in */
  padding: 100px var(--gutter);
  background-color: var(--color-field);
  overflow: hidden; 
}

/* Dedicated text styling block */
.stmt__content {
  position: relative;
  z-index: 20; /* Ensures headline text sits safely on top of drifting clouds */
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.stmt__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.4;
}

/* --- Asset Positioning Layer Matrix --- */
.v-wrapper {
  position: absolute;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Scroll reveal triggers via script.js */
.v-wrapper.is-visible {
  opacity: 1;
}

.v-asset {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

/* --- Coordinate Matrix (Adjust these % values to space elements perfectly) --- */
.v-stmt-cloud1         { top: 8%;   left: 6%;   width: 13%; }
.v-stmt-cloud2         { top: 14%;  left: 82%;  width: 11%; }
.v-stmt-book-gomi      { top: 38%;  left: 9%;   width: 15%; }
.v-stmt-book-oshigoto  { top: 32%;  left: 76%;  width: 15%; }
.v-stmt-char-horse     { top: 72%;  left: 14%;  width: 8%;  }
.v-stmt-char-girl      { top: 78%;  left: 80%;  width: 6%;  }
.v-stmt-truck-packer   { top: 68%;  left: 44%;  width: 12%; }


/* ==========================================================
   LOOPING IDLE MOVEMENTS & ACTIVE HOVERS
   ========================================================== */
/* Ambient Idle Animations */
.v-wrapper.is-visible .v-type-float {
  animation: stmtFloat 5s ease-in-out infinite;
}
.v-stmt-book-oshigoto.is-visible .v-type-float {
  animation-delay: -2s; /* Desynchronizes books from bouncing together */
}
.v-wrapper.is-visible .v-type-character {
  animation: stmtSway 4.2s ease-in-out infinite;
}
.v-wrapper.is-visible .v-type-vehicle {
  animation: stmtEngine 0.16s linear infinite;
}

/* Aggressive Pop Hover Interactions */
.v-type-float:hover {
  transform: translateY(-25px) scale(1.15);
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
}
.v-type-character:hover {
  transform: scale(1.22) translateY(-10px);
  filter: brightness(1.05);
}
.v-type-vehicle:hover {
  transform: scale(1.12) skewX(-4deg) translateY(-4px);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.12));
}

/* --- Animation Paths --- */
@keyframes stmtFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes stmtSway {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg) translateY(-2px); }
}
@keyframes stmtEngine {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}
.statement-section {
  position: relative;
  width: 100%;
  min-height: 750px; /* Forces open vertical space so items don't stack */
  padding: 100px var(--gutter);
  background-color: var(--color-field);
  overflow: hidden; 
}

.stmt__content {
  position: relative;
  z-index: 20; /* Places text layers safely on top of floating background items */
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.stmt__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.4;
}

/* --- Asset Base Settings --- */
.v-wrapper {
  position: absolute;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.v-wrapper.is-visible {
  opacity: 1;
}

.v-asset {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

/* --- Placement Matrix (Spreads items out across the empty height space) --- */
.v-stmt-cloud1         { top: 8%;   left: 5%;   width: 13%; }
.v-stmt-cloud2         { top: 12%;  left: 82%;  width: 12%; }
.v-stmt-book-gomi      { top: 35%;  left: 8%;   width: 15%; }
.v-stmt-book-oshigoto  { top: 30%;  left: 78%;  width: 15%; }
.v-stmt-char-horse     { top: 70%;  left: 12%;  width: 8%;  }
.v-stmt-char-girl      { top: 75%;  left: 82%;  width: 6%;  }
.v-stmt-truck-packer   { top: 65%;  left: 44%;  width: 12%; }


/* ==========================================================
   ANIMATIONS & HOVER RULES
   ========================================================== */
.v-wrapper.is-visible .v-type-float {
  animation: stmtFloat 5s ease-in-out infinite;
}
.v-stmt-book-oshigoto.is-visible .v-type-float {
  animation-delay: -2s;
}
.v-wrapper.is-visible .v-type-character {
  animation: stmtSway 4s ease-in-out infinite;
}
.v-wrapper.is-visible .v-type-vehicle {
  animation: stmtEngine 0.16s linear infinite;
}

/* Exaggerated Interactive Pop Hovers */
.v-type-float:hover {
  transform: translateY(-20px) scale(1.15);
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
}
.v-type-character:hover {
  transform: scale(1.2) translateY(-8px);
  filter: brightness(1.04);
}
.v-type-vehicle:hover {
  transform: scale(1.12) skewX(-4deg) translateY(-4px);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.12));
}

/* --- Timelines --- */
@keyframes stmtFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes stmtSway {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg) translateY(-2px); }
}
@keyframes stmtEngine {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}
@keyframes floatAnimation {
  0% {
    transform: translateY(-50%); /* Starting point (centered vertically) */
  }
  50% {
    transform: translateY(-65%); /* Moves slightly upward (adjust for higher float) */
  }
  100% {
    transform: translateY(-50%); /* Returns smoothly to the starting point */
  }
}
@keyframes engineStart {
  0% {
    /* Initial crank - big shake */
    transform: translate(-50%, 0) rotate(0deg) scale(1);
  }
  10% {
    /* Crank shake */
    transform: translate(-50%, 0) rotate(2deg) scale(1.02);
  }
  20% {
    /* Crank shake other way */
    transform: translate(-50%, 0) rotate(-2deg) scale(0.98);
  }
  30% {
    /* Another crank */
    transform: translate(-50%, 0) rotate(1.5deg) scale(1.01);
  }
  50% {
    /* Engine catches - settles down */
    transform: translate(-50%, 0) rotate(-0.5deg) scale(0.99);
  }
  70%, 100% {
    /* Engine idling - tiny, fast vibration */
    transform: translate(-50%, 0) rotate(0.5deg) scale(1);
  }
}
/* 1. Initial state: All letters are invisible and shrunk */


/* 3. The Doodlish Pop Keyframes */
@keyframes doodlePop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-20deg);
    /* Gives it a bit of a scribbled color effect */
    color: #a0c4ff; 
  }
  60% {
    opacity: 1;
    transform: scale(1.2) rotate(5deg); /* Overshoots slightly */
    color: #a0c4ff;
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg); /* Lands perfectly */
    color: inherit; /* Returns to the original text color */
  }
}

/* 4. THE MAGIC: Stagger the animation so they pop one by one! */
/* Using manual nth-child for broad browser support */
/* --- Word 1: めぐりめぐって (Total ~1.00s) --- */
.hero__title .word:nth-child(1) .letter:nth-child(1) { animation-delay: 0.00s; }
.hero__title .word:nth-child(1) .letter:nth-child(2) { animation-delay: 0.08s; }
.hero__title .word:nth-child(1) .letter:nth-child(3) { animation-delay: 0.16s; }
.hero__title .word:nth-child(1) .letter:nth-child(4) { animation-delay: 0.24s; }
.hero__title .word:nth-child(1) .letter:nth-child(5) { animation-delay: 0.32s; }
.hero__title .word:nth-child(1) .letter:nth-child(6) { animation-delay: 0.40s; }
.hero__title .word:nth-child(1) .letter:nth-child(7) { animation-delay: 0.48s; }

/* --- Word 2: 地域のしあわせに、 (Starts at 0.75s, Ends ~1.50s) --- */
.hero__title .word:nth-child(2) .letter:nth-child(1) { animation-delay: 0.75s; }
.hero__title .word:nth-child(2) .letter:nth-child(2) { animation-delay: 0.83s; }
.hero__title .word:nth-child(2) .letter:nth-child(3) { animation-delay: 0.91s; }
.hero__title .word:nth-child(2) .letter:nth-child(4) { animation-delay: 0.99s; }
.hero__title .word:nth-child(2) .letter:nth-child(5) { animation-delay: 1.07s; }
.hero__title .word:nth-child(2) .letter:nth-child(6) { animation-delay: 1.15s; }
.hero__title .word:nth-child(2) .letter:nth-child(7) { animation-delay: 1.23s; }
.hero__title .word:nth-child(2) .letter:nth-child(8) { animation-delay: 1.31s; }
.hero__title .word:nth-child(2) .letter:nth-child(9) { animation-delay: 1.39s; }

/* --- Word 3: つながる仕事。 (Starts at 1.65s, Ends EXACTLY at 3.40s) --- */
.hero__title .word:nth-child(3) .letter:nth-child(1) { animation-delay: 1.65s; }
.hero__title .word:nth-child(3) .letter:nth-child(2) { animation-delay: 1.90s; } /* Slight pause */
.hero__title .word:nth-child(3) .letter:nth-child(3) { animation-delay: 1.98s; }
.hero__title .word:nth-child(3) .letter:nth-child(4) { animation-delay: 2.06s; }
.hero__title .word:nth-child(3) .letter:nth-child(5) { animation-delay: 2.14s; }
.hero__title .word:nth-child(3) .letter:nth-child(6) { animation-delay: 3.00s; } /* Big pause before 仕事 */
.hero__title .word:nth-child(3) .letter:nth-child(7) { animation-delay: 3.40s; } /* Punctuation at the very end */
/* The continuous floating effect AFTER the reveal */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
/* Premium Floating Motion (Subtle, breathing fluid flow) */
@keyframes premiumFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-8px) rotate(1.5deg) scale(1.02);
  }
  100% {
    transform: translateY(-3px) rotate(-1deg) scale(0.99);
  }
}

/* Premium Character Bounce (Organic shifting weight & joy) */
@keyframes premiumBounce {
  0% {
    transform: translateY(0) scaleX(1) scaleY(1) rotate(0deg);
  }
  35% {
    transform: translateY(-4px) scaleX(1.01) scaleY(0.99) rotate(2deg);
  }
  70% {
    transform: translateY(0) scaleX(0.99) scaleY(1.01) rotate(-1deg);
  }
  100% {
    transform: translateY(-6px) scaleX(1.02) scaleY(0.98) rotate(3deg);
  }
}