:root {
  --red: #FF3229;
  --black: #0D0D0D;
  --white: #FFFFFF;
  --font-logo: 'Sofia Pro Black', 'Mango Grotesque', sans-serif;
  --font-title: 'Mango Grotesque', sans-serif;
  --font-main: 'Barlow', sans-serif;
  --page-margin: 30px;
}

@font-face {
  font-family: 'Sofia Pro Black';
  src: url('fonts/Sofia Pro Black Az.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mango Grotesque';
  src: url('fonts/MangoGrotesque-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* Prevent body scroll, use scroll-container */
  font-family: var(--font-main);
  background-color: #EEECED;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll Container & Snapping */
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.snap-panel {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding-left: var(--page-margin);
  padding-right: var(--page-margin);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Themes */
.theme-red {
  background-color: var(--red);
  color: var(--black);
}

.theme-black {
  background-color: var(--black);
  color: var(--white);
}

.theme-white {
  background-color: var(--white);
  color: var(--black);
}

.theme-light {
  background-color: #EEECED;
  color: var(--black);
}

/* Typography Helpers */
.title-font {
  font-family: var(--font-title);
  text-transform: uppercase;
}

/* 12-column Grid System */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
  width: 100%;
}

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-10 { grid-column: span 10; }

.offset-1 { grid-column-start: 2; }
.offset-6 { grid-column-start: 7; }

.align-center { align-items: center; }
.h-full { height: 100%; }
.text-left { text-align: left !important; }

/* Absolute Header inside Red Box */
.absolute-header {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  align-items: center;
  z-index: 100;
  color: #000;
  background-color: transparent;
  box-sizing: border-box;
}

.nav-left {
  grid-column: 2 / span 3;
  display: flex;
  gap: 3vw;
}

.nav-left a {
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #000;
}

.logo {
  grid-column: 2 / span 4;
  text-align: left;
  font-family: var(--font-logo);
  font-size: 26px;
  letter-spacing: -0.5px;
  color: #000;
}

.nav-right {
  grid-column: 9 / span 3;
  display: flex;
  justify-content: flex-end;
}

.btn-meet {
  padding: 10px 24px;
  border: 1px solid #000;
  border-radius: 30px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-meet:hover {
  background-color: #000;
  color: #fff;
}

/* Section 1: Landing Page */
#home {
  padding: var(--page-margin);
  min-height: 100vh; /* Allow it to grow if needed to prevent bottom cutoff */
  box-sizing: border-box;
  background-color: #EEECED;
  display: flex;
  flex-direction: column;
  gap: var(--page-margin);
}

.red-box {
  background-color: var(--red); /* Restored to solid red background */
  color: var(--black);
  width: 100%;
  flex: 1;
  border-radius: calc(var(--page-margin) * 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0; /* Symmetric padding to ensure absolute vertical centering */
  min-height: 0;
}

.hero {
  margin-top: 0;
  margin-bottom: 0;
}

.hero-text {
  grid-column: 1 / span 12;
  text-align: center;
  font-family: var(--font-title);
  font-size: clamp(16px, 4.5vw, 100px); /* Increased size, full width */
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}

.image-gallery {
  width: 100%;
  display: grid;
  /* Margin under images is naturally handled by #home's padding-bottom (var(--page-margin) = 30px) */
}

.gallery-wrapper {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 4 / 3; /* Explicit crop/mask - landscape to further reduce height */
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 30px; /* Force border radius directly on media */
}

/* Equal heights logic replaced by aspect-ratio */

/* Section 2: Services */
#services {
  justify-content: center;
}

.services-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.services-heading {
  grid-column: 2 / span 10;
  font-size: 15vw;
  line-height: 0.8;
  letter-spacing: -2px;
  margin-bottom: 8vh;
}

.services-list-col {
  grid-column: 2 / span 5;
}

.services-text-col {
  grid-column: 7 / span 5;
}

.services-list {
  list-style: none;
  font-size: 5vw;
  line-height: 1;
  letter-spacing: -1px;
}

.services-list li {
  color: #4E4E4E;
  cursor: pointer;
  transition: color 0.3s ease;
}

.services-list li:hover {
  color: var(--black);
}

.services-list li.active {
  color: var(--red);
}

.services-text {
  font-family: var(--font-main);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500; /* Regular body text in semi-bold Barlow */
  text-transform: uppercase;
  max-width: 90%;
}

.services-text strong {
  font-weight: 800; /* Distinct bold accent for the intro sentence */
  display: block;
  margin-bottom: 20px; /* Elegant spacing between intro and body */
}

/* Section 3: Projects Gallery */
#projects {
  padding-left: var(--page-margin);
  padding-right: var(--page-margin);
  background-color: #EEECED;
}

.projects-container {
  width: 100%;
}

.carousel-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  cursor: grab;
}

.carousel-viewport::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.carousel-item {
  flex: 0 0 auto;
  width: calc((100vw - (var(--page-margin) * 2) - 40px) / 3); /* Perfectly matches a 4-col span */
  display: flex;
  flex-direction: column;
}

.carousel-img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 15px;
}

.carousel-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-title {
  font-family: var(--font-title);
  font-size: 4vw;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  line-height: 0.9;
  letter-spacing: -1px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.section-body {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* Section 3: The Experience */
.experience-content {
  margin: auto 0;
}

.massive-title {
  font-family: var(--font-title);
  font-size: 7vw;
  line-height: 0.85;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.large-body {
  font-size: 1.25rem;
}

.full-img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  border-radius: 4px;
}

/* Section 4: Meet Shogun */
#contact {
  padding: var(--page-margin);
  height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #EEECED;
}

.contact-red-box {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--red) !important;
}

.contact-top-right {
  position: absolute;
  top: 3vw;
  right: 4vw;
  font-size: 6vw;
  line-height: 1;
  letter-spacing: -2px;
}

.contact-center {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.meet-subtitle {
  font-size: 1.2vw;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
}

.kanji-title {
  font-size: 16vw;
  line-height: 1;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0px;
}

.contact-footer-wrapper {
  margin-top: 1em;
  margin-bottom: 0;
}

.contact-footer-inner {
  grid-column: 4 / span 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-link {
  font-size: 1.2vw;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
}

.partner-ticker {
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  padding: 1.5vh 0;
  margin-bottom: 6vh;
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.ticker-content {
  display: flex;
  gap: 80px;
  align-items: center;
  animation: ticker-scroll 25s linear infinite;
  padding-right: 80px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.partner-logo-img {
  height: 2.5vh;
  width: auto;
  object-fit: contain;
  filter: brightness(0);
  flex-shrink: 0;
}

.mobile-meet-btn-wrapper {
  display: none;
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  justify-content: center;
}

.mobile-only-br {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-text {
    font-size: 6vw;
    grid-column: 1 / span 12;
  }
  .gallery-wrapper {
    grid-column: 2 / span 10;
  }
  .col-4, .col-5 {
    grid-column: span 6;
  }
  .exp-img-col {
    margin-top: 40px;
  }
  .offset-1, .offset-6 {
    grid-column-start: auto;
  }
}

@media (max-width: 768px) {
  /* Scroll snapping disabled on mobile for better usability */
  html, body {
    overflow: auto;
  }
  .scroll-container {
    height: auto;
    overflow-y: visible;
    scroll-snap-type: none;
  }
  .snap-panel {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 40px;
  }
  .fixed-header {
    background-color: var(--red); /* Fallback */
    padding-bottom: 15px;
  }

  .grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 15px;
  }

  .nav-left { display: none; }
  .logo { 
    grid-column: 1 / span 4; 
    text-align: center; 
    justify-self: center; 
    font-size: 18px; 
  }
  .nav-right { display: none; }
  
  .main-content {
    padding: 80px 0;
  }
  
  .hero { 
    margin-top: 0; 
    margin-bottom: 0; 
    grid-column: 1 / span 4; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
  }
  
  .hero-text {
    font-size: clamp(16px, 8vw, 60px);
    line-height: 1.1;
    text-align: center;
    white-space: normal;
  }

  .mobile-only-br {
    display: block;
  }

  .mobile-meet-btn-wrapper {
    display: flex;
  }

  .image-gallery {
    grid-column: 1 / span 4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }

  .gallery-wrapper {
    display: contents;
  }

  .gallery-item { 
    grid-column: span 2; 
    width: 100%; 
    aspect-ratio: 1; 
  }
  
  .gallery-item img, .gallery-item video { aspect-ratio: 1; }

  .col-4, .col-5, .col-6, .col-10 {
    grid-column: 1 / span 4;
  }
  .company-card { margin-bottom: 40px; }
  
  .massive-title { font-size: 15vw; }

  /* Services Mobile Responsive */
  .services-heading {
    grid-column: 1 / span 4;
    font-size: 18vw;
    margin-bottom: 4vh;
  }
  .services-list-col {
    grid-column: 1 / span 4;
    margin-bottom: 5vh;
  }
  .services-list {
    font-size: 8vw;
  }
  .services-text-col {
    grid-column: 1 / span 4;
  }
  .services-text {
    max-width: 100%;
    font-size: 0.75rem;
  }

  /* Contact / Footer Mobile Responsive */
  .contact-top-right {
    font-size: 8vw;
    top: 5vw;
    right: 6vw;
  }
  .meet-subtitle {
    font-size: 3vw;
    margin-bottom: 2vh;
  }
  .kanji-title {
    font-size: 30vw;
  }
  .contact-footer-wrapper {
    margin-top: 8vh;
  }
  .contact-footer-inner {
    grid-column: 1 / span 4;
    flex-direction: column;
    gap: 5px;
  }
  .contact-link {
    font-size: 3.5vw;
  }

  /* Ticker Mobile Responsive */
  .ticker-content {
    gap: 40px;
    padding-right: 40px;
  }
  .partner-logo-img {
    height: 1.8vh;
  }
}
