/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@300;400;500;600;700&family=Spectral:ital,wght@0,300;0,400;0,600;1,400&display=swap');

:root {
  --color-blue: #3F57B9;
  --color-blue-dark: #2F4294;
  --color-blue-action: #0061AE;
  --color-yellow: #FFCC00;
  --color-dark: #1A1A1A;
  --color-muted: #555555;
  --color-gray-placeholder: #CCCCCC;
  --color-bg: #FFFFFF;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Spectral', Georgia, serif;
  --font-menu: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
  background-color: var(--color-bg);
  color: var(--color-dark);
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Container: 900px (25% reduction from 1200px) */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 960px) {
  .container {
    padding: 0;
  }
}

/* ==========================================================================
   NAVIGATION & HEADER (Scaled ~25%)
   ========================================================================== */
.site-header {
  padding: 30px 0 20px;
  background: var(--color-bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Brand Logo */
.brand-logo {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-2px);
}

.brand-logo img,
.brand-logo svg {
  width: 82px;
  height: auto;
  display: block;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin-left: -35px;
}

.nav-link {
  font-family: var(--font-menu);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-dark);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-blue);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--color-blue);
}

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

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Instagram Link */
.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.instagram-link:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.instagram-link img,
.instagram-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Language Switcher */
.lang-switcher {
  font-family: var(--font-menu);
  font-size: 13.5px;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}

.lang-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  color: #777;
  cursor: pointer;
  padding: 2px 0;
  transition: all 0.2s ease;
}

.lang-btn.active {
  color: var(--color-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-separator {
  color: #999;
}

/* Read Now Badge */
.read-now-badge {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  background: none;
  padding: 0;
}

.read-now-badge:hover {
  transform: scale(1.08) rotate(6deg);
}

.read-now-badge img,
.read-now-badge svg {
  width: 78px;
  height: 78px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(63, 87, 185, 0.2));
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ==========================================================================
   HERO GREETING SECTION (Scaled 25% down)
   ========================================================================== */
.hero-greeting {
  padding: 44px 0 38px;
}

.hero-title {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

.hero-subtitle em {
  font-style: italic;
  font-family: var(--font-serif);
  padding: 0 4px;
}

/* ==========================================================================
   UNIFIED SHAPES GRID ARCHITECTURE (ZERO VERTICAL GAP)
   Upper cards (525px) and lower boxes (300px) touch directly with 0 gap!
   ========================================================================== */
.main-layout-section {
  margin-bottom: 100px;
}

.unified-grid {
  display: grid;
  grid-template-columns: 600px 300px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* LEFT COLUMN (600px wide) */
.col-left {
  display: flex;
  flex-direction: column;
  width: 600px;
}

/* Left Upper Card: WHO (Cobalt Blue) */
.card-who {
  width: 600px;
  height: 525px;
  background-color: var(--color-blue);
  color: #FFFFFF;
  padding: 45px 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.card-tag {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.card-who .card-tag {
  color: #FFFFFF;
}

.who-text {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 480px;
  margin: auto 0;
}

/* Left Lower Section: Flush attached directly with ZERO vertical gap */
.lower-left-wrapper {
  width: 600px;
}

/* Gray / Photo Box (300x300 px) - directly flush under left half of WHO card */
.photo-box {
  width: 300px;
  height: 300px;
  background-color: var(--color-gray-placeholder);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-box:hover img {
  transform: scale(1.03);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-box:hover .photo-overlay {
  opacity: 1;
}

.photo-pill {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--color-dark);
}

/* Headings below left photo box */
.left-meta {
  width: 300px;
  padding-top: 18px;
}

.story-heading {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin-bottom: 6px;
  line-height: 1.25;
}

.story-desc {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.45;
  margin-bottom: 24px;
}

.founder-article-link {
  display: inline-block;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.founder-article-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-blue);
  transition: width 0.25s ease;
}

.founder-article-link:hover {
  color: var(--color-blue);
}

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

/* RIGHT COLUMN (300px wide) */
.col-right {
  display: flex;
  flex-direction: column;
  width: 300px;
}

/* Right Upper Card: WHAT with EXACT SVG PATH */
.card-what-wrap {
  width: 300px;
  height: 525px;
  position: relative;
}

.card-what-svg-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 525px;
  z-index: 1;
  display: block;
}

.card-what-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 45px 25px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.card-what-content .card-tag {
  color: var(--color-dark);
}

.what-title {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin: auto 0;
}

.what-title span {
  display: block;
}

/* Learn More Pill Button */
.btn-learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-blue-action);
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-learn-more:hover {
  background-color: var(--color-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 97, 174, 0.4);
}

.btn-learn-more .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 16px;
}

.btn-learn-more:hover .arrow {
  transform: translateX(4px);
}

/* Right Lower Box: Sakamaya Blue Box (300x300 px) - directly flush under WHAT card */
.sakamaya-box {
  width: 300px;
  height: 300px;
  background-color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.sakamaya-box:hover {
  background-color: var(--color-blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(63, 87, 185, 0.25);
}

.sakamaya-box img,
.sakamaya-box svg {
  max-width: 180px;
  width: 75%;
  height: auto;
  display: block;
}

/* Headings below Sakamaya box */
.right-meta {
  width: 300px;
  padding-top: 18px;
}

/* ==========================================================================
   FOOTER (Scaled 25% down)
   ========================================================================== */
.site-footer {
  width: 100%;
  background-color: var(--color-blue);
  padding: 50px 20px;
  text-align: center;
}

.footer-text {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   INTERACTIVE MODALS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #FFFFFF;
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 18px;
  padding: 38px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-backdrop.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-dark);
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: #e0e0e0;
  transform: rotate(90deg);
}

.modal-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 10px;
}

.modal-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin-bottom: 18px;
  line-height: 1.2;
}

.modal-body {
  font-size: 15.5px;
  line-height: 1.7;
  color: #333;
}

.modal-body p {
  margin-bottom: 16px;
}

.modal-body blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  border-left: 3px solid var(--color-blue);
  padding-left: 18px;
  margin: 20px 0;
  color: var(--color-dark);
}

/* ==========================================================================
   RESPONSIVE STYLES (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 920px) {
  .container {
    padding: 0 16px;
  }
  .unified-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .col-left, .col-right {
    width: 100%;
  }
  .card-who {
    width: 100%;
    height: auto;
    min-height: 380px;
    padding: 40px 24px;
  }
  .who-text {
    font-size: 22px;
  }
  .card-what-wrap {
    width: 100%;
    height: 380px;
  }
  .card-what-svg-bg {
    width: 100%;
    height: 380px;
  }
  .what-title {
    font-size: 32px;
  }
  .lower-left-wrapper {
    width: 100%;
  }
  .photo-box {
    width: 100%;
    aspect-ratio: 1/1;
    height: auto;
  }
  .left-meta {
    width: 100%;
  }
  .sakamaya-box {
    width: 100%;
    aspect-ratio: 1/1;
    height: auto;
  }
  .right-meta {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 18px 0;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 14px;
  }
  .brand-logo img, .brand-logo svg {
    width: 75px;
  }
  .header-actions {
    gap: 14px;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 70px 28px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 99;
    margin-left: 0;
    gap: 24px;
  }
  .nav-menu.open {
    right: 0;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 98;
  }
  .nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ECEAE4;
  }
  .nav-menu-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-blue);
    text-transform: uppercase;
  }
  .nav-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--color-dark);
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.2s ease, color 0.2s ease;
  }
  .nav-close:hover {
    color: var(--color-blue);
    transform: scale(1.15);
  }
  .mobile-toggle {
    display: block;
    z-index: 100;
  }
  .read-now-badge img, .read-now-badge svg {
    width: 60px;
    height: 60px;
  }
  .hero-greeting {
    padding: 28px 0 24px;
  }
  .hero-title {
    font-size: clamp(28px, 7vw, 36px);
    margin-bottom: 12px;
  }
  .hero-subtitle {
    font-size: clamp(16px, 4vw, 20px);
  }
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & CLOSE SIGN
   ========================================================================== */
.nav-backdrop {
  display: none;
}

.nav-menu-header {
  display: none;
}

/* Hamburger to X Transformation */
.mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}
.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
