:root {
  /* Color Palette - Urban Forest Theme */
  --bg-deep: #0a110f; /* Deep Slate/Green */
  --bg-card: rgba(255, 255, 255, 0.03);
  --accent-gold: #c5a059;
  --accent-gold-bright: #e2c08d;
  --accent-green: #2d5a4c;
  --text-main: #e8eceb;
  --text-muted: #a0ada9;
  --white: #ffffff;
  
  /* Typography */
  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Inter", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  
  /* Transitions */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Base Styles for Typography */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease-soft);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px; /* Increased side padding */
}

.section-padding {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  background: rgba(10, 17, 15, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 1.2rem;
  color: var(--accent-gold);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--accent-gold);
}

/* Hero Split Section */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  background-color: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.hero-text-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 120px max(40px, 8vw) 80px;
  position: relative;
  z-index: 2;
}

.hero-text-inner {
  max-width: 580px;
  width: 100%;
}

.hero-visual-side {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  filter: grayscale(0.12) contrast(1.08);
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to right, rgba(10, 17, 15, 0.82) 0%, rgba(10, 17, 15, 0.48) 38%, rgba(10, 17, 15, 0.12) 72%, rgba(10, 17, 15, 0.25) 100%),
    linear-gradient(to bottom, rgba(10, 17, 15, 0.08) 0%, rgba(10, 17, 15, 0.02) 52%, rgba(10, 17, 15, 0.58) 100%);
}

.hero-eyebrow {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  margin-bottom: 32px;
  line-height: 1.15;
}

.hero-title .accent {
  color: var(--accent-gold);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 520px;
}



.hero-actions {
  display: flex;
  gap: 16px;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s var(--ease-soft) forwards;
}

.hero-eyebrow.fade-in { animation-delay: 0.2s; }
.hero-title.fade-in { animation-delay: 0.4s; }
.hero-lead.fade-in { animation-delay: 0.6s; }
.hero-actions.fade-in { animation-delay: 0.8s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stats */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 32px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
  margin-top: 16px;
}

.mission-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  padding: 48px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Evolution Timeline */
.bg-alt {
  background: #0d1614;
}

.timeline {
  max-width: 800px;
  margin: 64px auto 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  height: 100%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  margin-left: 60px;
  margin-bottom: 40px;
  padding: 40px;
  position: relative;
  transition: transform 0.3s var(--ease-soft);
}

.timeline-item:hover {
  transform: translateX(10px);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -48px;
  top: 45px;
  width: 12px;
  height: 12px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.2);
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.timeline-role {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.edu-list {
  list-style: none;
  margin-top: 16px;
}

.edu-list li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.edu-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 24px;
}

.bento-item {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-soft), border-color 0.3s;
}

.bento-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 17, 15, 0.95) 0%, rgba(10, 17, 15, 0.4) 50%, transparent 100%);
  z-index: 1;
}

.bento-content {
  position: relative;
  z-index: 2;
  padding: 40px;
}

.bento-item:hover {
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.item-large {
  grid-row: span 2;
}

.item-wide {
  grid-column: span 2;
}

.bento-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Connect Section */
.connect-inner {
  padding: 60px;
}

.connect-profile {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
  text-align: left;
}

.avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-gold);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.connect-header .section-title {
  margin-bottom: 8px;
}

.connect-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .connect-profile {
    flex-direction: column;
    text-align: center;
  }
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.link-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-gold);
  transform: translateY(-5px);
}

.link-card.highlight {
  background: var(--bg-deep);
  border-color: var(--accent-gold);
}

.link-title {
  font-weight: 700;
  font-size: 1.2rem;
}

.link-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .item-wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero-text-content {
    justify-content: center;
    padding: 120px 24px 60px;
    text-align: center;
  }
  .hero-visual-side {
    height: auto;
    order: 0;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nav {
    display: none;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .item-large, .item-wide {
    grid-row: auto;
    grid-column: auto;
  }
  .bento-item {
    min-height: 240px;
  }
  .mission-stats {
    padding: 32px;
  }
  .connect-inner {
    padding: 40px 24px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Animations */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s var(--ease-soft);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button Refinement */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s var(--ease-soft);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-deep) !important;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-gold-bright);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(197, 160, 89, 0.25);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-main);
}

/* Back to Top Button */
.btn-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-gold);
  color: var(--bg-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-soft);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.btn-top.is-active {
  opacity: 1;
  visibility: visible;
}

.btn-top:hover {
  background: var(--accent-gold-bright);
  transform: translateY(-5px);
}

/* Full-bleed hero mobile guardrails */
.hero-title,
.hero-lead,
.hero-eyebrow {
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .hero-text-inner {
    max-width: min(86vw, 520px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    font-size: clamp(2rem, 9.4vw, 3rem);
    line-height: 1.22;
  }

  .hero-eyebrow {
    letter-spacing: 0.22em;
    font-size: 0.72rem;
  }

  .hero-lead {
    font-size: 0.98rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.25rem);
  }
}

@media (max-width: 768px) {
  .hero-lead {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 420px) {
  .hero-lead {
    max-width: 280px;
  }
}

@media (max-width: 420px) {
  .hero-lead {
    width: 280px;
    word-break: break-all;
  }
}

/* Mobile navigation and centered hero actions */
.nav-toggle,
.menu-button {
  display: none;
}

@media (max-width: 768px) {
  .header-inner {
    position: relative;
  }

  .nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .menu-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(197, 160, 89, 0.34);
    border-radius: 4px;
    background: rgba(10, 17, 15, 0.42);
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--accent-gold);
    transition: transform 0.25s var(--ease-soft), opacity 0.25s var(--ease-soft);
  }

  .nav {
    position: absolute;
    top: calc(100% + 14px);
    right: 40px;
    display: grid;
    min-width: 180px;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(197, 160, 89, 0.28);
    border-radius: 8px;
    background: rgba(10, 17, 15, 0.94);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease-soft), transform 0.25s var(--ease-soft), visibility 0.25s;
  }

  .nav a {
    padding: 12px 14px;
    color: var(--text-main);
  }

  .nav-toggle:checked ~ .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle:checked + .menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .menu-button span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-actions {
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    flex: 0 1 164px;
    min-width: 150px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 420px) {
  .nav {
    right: 24px;
  }

  .hero-actions {
    gap: 14px;
  }

  .hero-actions .btn {
    flex-basis: 164px;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .header-inner {
    width: 100%;
  }

  .menu-button {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    margin-left: 0;
  }

  .nav-toggle:checked + .menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    right: 24px;
  }

  .hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    max-width: 352px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions .btn {
    flex: 0 1 162px;
    min-width: 0;
    max-width: 162px;
  }
}

@media (max-width: 360px) {
  .hero-actions .btn {
    flex-basis: 148px;
    max-width: 148px;
    font-size: 0.82rem;
  }
}

@media (max-width: 768px) {
  .menu-button {
    display: flex !important;
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 220;
    width: 44px;
    height: 44px;
    border-color: rgba(197, 160, 89, 0.72);
    background: rgba(10, 17, 15, 0.82);
  }

  .menu-button span {
    width: 22px;
    height: 2px;
  }

  .nav {
    position: fixed;
    top: 68px;
    right: 20px;
    z-index: 210;
  }

  .hero-actions {
    max-width: 324px;
    gap: 12px;
  }

  .hero-actions .btn {
    flex: 0 1 152px;
    max-width: 152px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 360px) {
  .hero-actions {
    max-width: 304px;
    gap: 10px;
  }

  .hero-actions .btn {
    flex-basis: 147px;
    max-width: 147px;
  }
}

@media (max-width: 768px) {
  .menu-button {
    display: block !important;
    position: fixed !important;
    top: 22px !important;
    right: 24px !important;
    z-index: 1000 !important;
    width: 32px !important;
    height: 24px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .menu-button span,
  .menu-button::before,
  .menu-button::after {
    content: "";
    position: absolute;
    left: 0;
    display: block;
    width: 32px;
    height: 2px;
    background: var(--accent-gold);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.55);
  }

  .menu-button::before {
    top: 0;
  }

  .menu-button span:nth-child(1) {
    top: 11px;
  }

  .menu-button span:nth-child(2),
  .menu-button span:nth-child(3) {
    display: none;
  }

  .menu-button::after {
    bottom: 0;
  }

  .hero-actions {
    max-width: 306px;
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 0 1 148px;
    max-width: 148px;
    font-size: 0.84rem;
  }
}

@media (max-width: 768px) {
  .menu-button {
    appearance: none;
  }

  body.menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.menu-open .menu-button span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
  }

  body.menu-open .menu-button span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-button span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
  }

  .menu-button span:nth-child(1),
  .menu-button span:nth-child(2),
  .menu-button span:nth-child(3) {
    display: block !important;
    position: absolute;
    left: 0;
    width: 32px;
    height: 2px;
    margin: 0;
    background: var(--accent-gold);
  }

  .menu-button span:nth-child(1) {
    top: 0;
  }

  .menu-button span:nth-child(2) {
    top: 11px;
  }

  .menu-button span:nth-child(3) {
    top: 22px;
  }
}

.floating-menu-button {
  display: none;
}

@media (max-width: 768px) {
  .menu-button {
    display: none !important;
  }

  .floating-menu-button {
    display: block;
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 10000;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(197, 160, 89, 0.62);
    border-radius: 4px;
    background: rgba(10, 17, 15, 0.84);
    color: var(--accent-gold);
    font-size: 30px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .floating-menu-button {
    right: auto;
    left: calc(100vw - 68px);
  }

  .nav {
    right: auto;
    left: calc(100vw - 224px);
  }

  .hero-text-inner {
    width: min(340px, 86vw);
    max-width: min(340px, 86vw);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-eyebrow,
  .hero-title,
  .hero-lead {
    max-width: 100%;
    white-space: normal;
  }

  .hero-actions {
    width: 306px;
    max-width: 306px;
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero-text-inner {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-actions {
    width: 306px;
    max-width: 306px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    transform: translateX(-24px);
  }
}

/* Final navigation and hero action cleanup */
.menu-button,
.nav-toggle,
.floating-menu-button {
  display: none !important;
}

@media (min-width: 769px) {
  .nav {
    position: static !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 16px 0;
  }

  .header-inner {
    position: relative;
    width: 100%;
  }

  .menu-button {
    display: inline-flex !important;
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    z-index: 300 !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 1px solid rgba(197, 160, 89, 0.7) !important;
    border-radius: 4px !important;
    background: rgba(10, 17, 15, 0.78) !important;
    transform: translateY(-50%) !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 5px !important;
    cursor: pointer;
  }

  .menu-button span {
    display: block !important;
    position: static !important;
    width: 22px !important;
    height: 2px !important;
    margin: 0 !important;
    background: var(--accent-gold) !important;
    box-shadow: none !important;
  }

  .nav {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    z-index: 250 !important;
    display: grid !important;
    min-width: 160px !important;
    gap: 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(197, 160, 89, 0.28) !important;
    border-radius: 8px !important;
    background: rgba(10, 17, 15, 0.94) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) !important;
    pointer-events: none !important;
    transition: opacity 0.25s var(--ease-soft), transform 0.25s var(--ease-soft), visibility 0.25s !important;
  }

  .nav a {
    padding: 12px 14px !important;
    color: var(--text-main) !important;
  }

  body.menu-open .nav {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .hero-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: min(100%, 320px) !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 12px !important;
    transform: none !important;
  }

  .hero-actions .btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 0.86rem !important;
  }
}

@media (max-width: 768px) {
  .menu-button {
    display: flex !important;
    position: fixed !important;
    top: 14px !important;
    right: 18px !important;
    z-index: 99999 !important;
    width: 44px !important;
    height: 44px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .hero-lead {
    width: min(300px, 78vw) !important;
    max-width: min(300px, 78vw) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
}

/* Reliable small-screen menu breakpoint */
@media (max-width: 1100px) {
  button.menu-button[aria-label="Menu"] {
    display: flex !important;
    position: fixed !important;
    top: 16px !important;
    right: 20px !important;
    z-index: 99999 !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border: 1px solid rgba(197, 160, 89, 0.7) !important;
    border-radius: 4px !important;
    background: rgba(10, 17, 15, 0.84) !important;
    transform: none !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 6px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  button.menu-button[aria-label="Menu"] span {
    display: block !important;
    position: static !important;
    width: 24px !important;
    height: 2px !important;
    margin: 0 !important;
    background: var(--accent-gold) !important;
  }

  .nav {
    position: fixed !important;
    top: 74px !important;
    right: 20px !important;
    z-index: 99998 !important;
    display: grid !important;
    min-width: 160px !important;
    padding: 10px !important;
    border: 1px solid rgba(197, 160, 89, 0.28) !important;
    border-radius: 8px !important;
    background: rgba(10, 17, 15, 0.94) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.menu-open .nav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

@media (min-width: 1101px) {
  button.menu-button[aria-label="Menu"] {
    display: none !important;
  }
}

#mobile-menu-icon {
  display: none;
}

@media (max-width: 1100px) {
  #mobile-menu-icon {
    display: block !important;
  }
}

@media (min-width: 1101px) {
  #mobile-menu-icon {
    display: none !important;
  }
}

/* Header-contained mobile menu icon */
#mobile-menu-icon {
  display: none;
}

@media (max-width: 1100px) {
  .site-header {
    padding: 14px 0;
  }

  .header-inner {
    position: relative;
    min-height: 48px;
  }

  #mobile-menu-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 0 0 3px;
    border: 1px solid rgba(197, 160, 89, 0.72);
    border-radius: 4px;
    background: rgba(10, 17, 15, 0.74);
    color: var(--accent-gold);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
  }

  .nav {
    top: calc(100% + 10px) !important;
    right: 40px !important;
  }
}

@media (min-width: 1101px) {
  #mobile-menu-icon {
    display: none !important;
  }
}

/* Balanced stats layout */
.mission-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.stat-item {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.stat-label {
  max-width: 150px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .mission-stats {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .stat-item {
    min-height: 112px;
  }
}

/* Hero readability pass */
.hero-image-overlay {
  background:
    radial-gradient(circle at 50% 44%, rgba(10, 17, 15, 0.72) 0%, rgba(10, 17, 15, 0.58) 34%, rgba(10, 17, 15, 0.18) 62%, rgba(10, 17, 15, 0.42) 100%),
    linear-gradient(to bottom, rgba(10, 17, 15, 0.18) 0%, rgba(10, 17, 15, 0.12) 46%, rgba(10, 17, 15, 0.72) 100%) !important;
}

.hero-title {
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-eyebrow {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.hero-lead {
  color: rgba(232, 236, 235, 0.9) !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.78), 0 1px 2px rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
  .hero-image-overlay {
    background:
      radial-gradient(circle at 50% 43%, rgba(10, 17, 15, 0.78) 0%, rgba(10, 17, 15, 0.62) 38%, rgba(10, 17, 15, 0.2) 68%, rgba(10, 17, 15, 0.46) 100%),
      linear-gradient(to bottom, rgba(10, 17, 15, 0.14) 0%, rgba(10, 17, 15, 0.12) 48%, rgba(10, 17, 15, 0.78) 100%) !important;
  }

  .hero-lead {
    color: rgba(245, 247, 246, 0.92) !important;
    font-weight: 600;
  }
}

/* Strong hero contrast fix */
.hero-text-inner {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(10, 17, 15, 0.82) 0%, rgba(10, 17, 15, 0.62) 58%, rgba(10, 17, 15, 0.18) 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.hero-title,
.hero-title .accent,
.hero-lead,
.hero-eyebrow {
  opacity: 1 !important;
}

.hero-title {
  color: #ffffff !important;
}

.hero-title .accent,
.hero-eyebrow {
  color: var(--accent-gold) !important;
}

.hero-lead {
  color: #f2f5f4 !important;
}

@media (max-width: 768px) {
  .hero-text-inner {
    padding: 22px 18px;
    background: rgba(10, 17, 15, 0.72);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  }

  .hero-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85) !important;
  }

  .hero-lead {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9) !important;
  }
}

/* Final hero legibility: separate text from sky */
.hero-text-inner {
  background: rgba(5, 10, 9, 0.9) !important;
  border: 1px solid rgba(197, 160, 89, 0.18);
  backdrop-filter: blur(2px);
}

.hero-title,
.hero-title .accent,
.hero-lead,
.hero-eyebrow {
  filter: none !important;
}

.hero-title {
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95) !important;
}

.hero-title .accent,
.hero-eyebrow {
  color: #d8ad5c !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95) !important;
}

.hero-lead {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95) !important;
}

@media (max-width: 768px) {
  .hero-text-inner {
    background: rgba(5, 10, 9, 0.92) !important;
    border-color: rgba(197, 160, 89, 0.22);
  }

  .hero-image-overlay {
    background:
      linear-gradient(to bottom, rgba(10, 17, 15, 0.22) 0%, rgba(10, 17, 15, 0.1) 35%, rgba(10, 17, 15, 0.76) 100%) !important;
  }
}

/* Roll back the heavy text card. Keep the image full-bleed and improve contrast with overlay only. */
.hero-text-inner {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.hero-image-overlay {
  background:
    linear-gradient(to right, rgba(10, 17, 15, 0.76) 0%, rgba(10, 17, 15, 0.42) 44%, rgba(10, 17, 15, 0.14) 78%, rgba(10, 17, 15, 0.28) 100%),
    linear-gradient(to bottom, rgba(10, 17, 15, 0.18) 0%, rgba(10, 17, 15, 0.5) 42%, rgba(10, 17, 15, 0.9) 100%) !important;
}

.hero-title {
  color: #fff !important;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.96), 0 1px 3px rgba(0, 0, 0, 1) !important;
}

.hero-title .accent,
.hero-eyebrow {
  color: #d8ad5c !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.98), 0 1px 3px rgba(0, 0, 0, 1) !important;
}

.hero-lead {
  color: #fff !important;
  font-weight: 700 !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 1), 0 1px 3px rgba(0, 0, 0, 1) !important;
}

@media (max-width: 768px) {
  .hero-text-content {
    align-items: center !important;
    padding-top: 118px !important;
    padding-bottom: 70px !important;
  }

  .hero-image-overlay {
    background:
      linear-gradient(to bottom, rgba(10, 17, 15, 0.2) 0%, rgba(10, 17, 15, 0.58) 34%, rgba(10, 17, 15, 0.88) 100%),
      linear-gradient(to right, rgba(10, 17, 15, 0.58) 0%, rgba(10, 17, 15, 0.25) 52%, rgba(10, 17, 15, 0.38) 100%) !important;
  }

  .hero-title {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 1), 0 1px 3px rgba(0, 0, 0, 1) !important;
  }

  .hero-lead {
    font-weight: 700 !important;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 1), 0 1px 3px rgba(0, 0, 0, 1) !important;
  }
}

/* Zabuton only: subtle compact backing behind hero copy */
.hero-text-inner {
  display: inline-block !important;
  position: relative !important;
  width: auto !important;
  max-width: 580px !important;
  padding: 18px 22px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: rgba(5, 10, 9, 0.38) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.hero-title,
.hero-lead,
.hero-eyebrow {
  position: relative;
  z-index: 1;
}

.hero-image-overlay {
  background:
    linear-gradient(to right, rgba(10, 17, 15, 0.62) 0%, rgba(10, 17, 15, 0.28) 46%, rgba(10, 17, 15, 0.08) 78%, rgba(10, 17, 15, 0.22) 100%),
    linear-gradient(to bottom, rgba(10, 17, 15, 0.08) 0%, rgba(10, 17, 15, 0.28) 48%, rgba(10, 17, 15, 0.72) 100%) !important;
}

@media (max-width: 768px) {
  .hero-text-inner {
    width: min(340px, 86vw) !important;
    max-width: min(340px, 86vw) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 18px 16px !important;
    background: rgba(5, 10, 9, 0.44) !important;
  }

  .hero-image-overlay {
    background:
      linear-gradient(to bottom, rgba(10, 17, 15, 0.08) 0%, rgba(10, 17, 15, 0.34) 38%, rgba(10, 17, 15, 0.72) 100%),
      linear-gradient(to right, rgba(10, 17, 15, 0.42) 0%, rgba(10, 17, 15, 0.18) 52%, rgba(10, 17, 15, 0.28) 100%) !important;
  }
}
