/* ============================================
   rentarohayashi forest — Infinite Garden inspired
   ============================================ */

:root {
  --forest-deep: #2d4030;
  --forest-mid: #3f5a45;
  --forest-leaf: #5a7a5e;
  --forest-light: #7a9d7e;
  --forest-mist: #8fb894;
  --earth: #a89078;
  --bark: #6b5840;
  --cream: #faf8f4;
  --sand: #e8e2d9;
  --sand-dark: #6b655c;
  --white: #fefdfb;
  --accent: #9bb58d;
  --accent-soft: rgba(155, 181, 141, 0.4);
  --bg-base: #eef2eb;
  --bg-card: rgba(255, 255, 255, 0.6);
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Outfit", "Hiragino Sans", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --radius-sm: 6px;
  --radius-md: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--sand-dark);
  background: var(--bg-base);
  overflow-x: hidden;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: transparent;
  transition: background 0.5s var(--ease-out);
}

.nav.scrolled {
  background: rgba(238, 242, 235, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(155, 181, 141, 0.2);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--forest-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--sand-dark);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  opacity: 0.9;
  position: relative;
  transition: opacity 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease-out);
}

.nav-links a:hover {
  opacity: 1;
  color: var(--forest-deep);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--forest-deep);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width:  min(280px, 85vw);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(250, 248, 244, 0.98);
    backdrop-filter: blur(14px);
    border-left: 1px solid rgba(155, 181, 141, 0.35);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
  }
  .nav-links.is-open {
    transform: translateX(0);
  }
  .nav-toggle {
    display: flex;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #e8efe6 0%,
    #e2ebe0 25%,
    #dce5d9 55%,
    #d6e0d2 85%,
    #d4dfd1 100%
  );
  z-index: 0;
}

/* Parallax layers — depth of forest */
.hero-layer {
  position: absolute;
  inset: -20% -20% -20% -20%;
  will-change: transform;
}

.hero-layer--back {
  background:
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(180, 200, 178, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 20% 90%, rgba(200, 218, 195, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 80% 85%, rgba(190, 210, 185, 0.4) 0%, transparent 50%);
}

.hero-layer--trees {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cdefs%3E%3ClinearGradient id='tr' x1='0%25' y1='100%25' x2='0%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23081008' stop-opacity='.95'/%3E%3Cstop offset='100%25' stop-color='%23081008' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='400' width='90' height='220' fill='url(%23tr)' opacity='.9'/%3E%3Crect x='140' y='320' width='110' height='290' fill='url(%23tr)' opacity='.85'/%3E%3Crect x='320' y='380' width='80' height='230' fill='url(%23tr)' opacity='.9'/%3E%3Crect x='460' y='300' width='100' height='310' fill='url(%23tr)' opacity='.8'/%3E%3Crect x='620' y='360' width='95' height='250' fill='url(%23tr)' opacity='.85'/%3E%3Crect x='780' y='340' width='85' height='270' fill='url(%23tr)' opacity='.88'/%3E%3Crect x='940' y='420' width='70' height='190' fill='url(%23tr)' opacity='.9'/%3E%3Crect x='1080' y='380' width='120' height='230' fill='url(%23tr)' opacity='.82'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center bottom;
  opacity: 0.5;
}

.hero-layer--mid {
  background:
    radial-gradient(ellipse 140% 90% at 50% 30%, rgba(155, 181, 141, 0.35) 0%, transparent 45%),
    radial-gradient(ellipse 90% 70% at 75% 70%, rgba(180, 200, 178, 0.3) 0%, transparent 45%),
    radial-gradient(ellipse 80% 80% at 25% 75%, rgba(170, 195, 165, 0.3) 0%, transparent 45%);
}

.hero-layer--light {
  background:
    radial-gradient(ellipse 80% 50% at 50% 5%, rgba(255, 255, 255, 0.5) 0%, transparent 45%),
    radial-gradient(ellipse 60% 40% at 30% 15%, rgba(255, 255, 255, 0.25) 0%, transparent 40%),
    radial-gradient(ellipse 50% 35% at 70% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 40%);
}

.hero-layer--dapple {
  background:
    radial-gradient(circle 10% at 15% 25%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(circle 8% at 85% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(circle 12% at 50% 15%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(circle 6% at 70% 45%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(circle 7% at 25% 40%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Dust / light particles drifting in the forest */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(90, 122, 94, 0.2);
  animation: float-particle 18s ease-in-out infinite;
}

.hero-particle:nth-child(1) { left: 12%; top: 20%; animation-delay: 0s; animation-duration: 22s; }
.hero-particle:nth-child(2) { left: 88%; top: 35%; animation-delay: -4s; animation-duration: 20s; }
.hero-particle:nth-child(3) { left: 50%; top: 15%; animation-delay: -8s; animation-duration: 25s; }
.hero-particle:nth-child(4) { left: 25%; top: 60%; animation-delay: -2s; animation-duration: 19s; }
.hero-particle:nth-child(5) { left: 75%; top: 55%; animation-delay: -11s; animation-duration: 23s; }
.hero-particle:nth-child(6) { left: 60%; top: 75%; animation-delay: -5s; animation-duration: 21s; }

@keyframes float-particle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  25% { transform: translate(15px, -30px) scale(1.2); opacity: 0.35; }
  50% { transform: translate(-10px, -50px) scale(0.9); opacity: 0.28; }
  75% { transform: translate(20px, -20px) scale(1.1); opacity: 0.3; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest-mist);
  margin: 0 0 1rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}

.hero-subtitle,
.hero-scroll {
  color: var(--forest-leaf);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 9vw, 5rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--forest-deep);
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.55s forwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--forest-mist);
  letter-spacing: 0.04em;
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-style: italic;
  color: var(--sand-dark);
  margin: 0 0 1.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.8s forwards;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--sand-dark);
  margin: 0;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.05s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.4s var(--ease-out);
  z-index: 2;
}

.hero-scroll:hover {
  opacity: 1;
}

.hero-scroll-text--mobile {
  display: none;
}

@media (max-width: 640px) {
  .hero-scroll-text--desktop {
    display: none;
  }
  .hero-scroll-text--mobile {
    display: block;
  }
}

.hero-scroll-icon {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  animation: scroll-bounce 2.2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---- Sections (Infinite Garden–style reveal) ---- */
.section {
  position: relative;
  padding: var(--space-2xl) 2rem;
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 120px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(155, 181, 141, 0.08) 30%,
    rgba(155, 181, 141, 0.12) 50%,
    rgba(155, 181, 141, 0.08) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.section:first-of-type::before {
  display: none;
}

.section-inner {
  max-width: 720px;
  margin: 0 auto;
}

.section-inner.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.section-inner.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--forest-mist);
  margin-bottom: var(--space-xs);
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--forest-mist), transparent);
  opacity: 0.8;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 500;
  color: var(--forest-deep);
  margin: 0 0 var(--space-md);
  letter-spacing: 0.01em;
}

.section-lead {
  color: var(--sand-dark);
  opacity: 0.95;
  margin: 0 0 2.5rem;
}

/* Profile */
.section-profile {
  background: linear-gradient(
    180deg,
    #d4dfd1 0%,
    #dce5d9 12%,
    #e2e9df 28%,
    #e6ece4 45%,
    #e0e8dc 70%,
    #dce5d9 88%,
    #dce5d9 100%
  );
}

.profile-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 600px) {
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-card {
  padding: var(--space-lg);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(155, 181, 141, 0.4);
  box-shadow: 0 4px 24px rgba(155, 181, 141, 0.08);
  border-radius: var(--radius-md);
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.profile-card:hover {
  border-color: rgba(155, 181, 141, 0.6);
  box-shadow: 0 12px 40px rgba(155, 181, 141, 0.12), 0 0 0 1px var(--accent-soft);
  transform: translateY(-2px);
}

.profile-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--forest-deep);
  margin: 0 0 var(--space-sm);
  letter-spacing: 0.02em;
}

.profile-card p {
  margin: 0 0 0.75rem;
  color: var(--sand-dark);
}

.profile-card p:last-child {
  margin-bottom: 0;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li {
  margin-bottom: 0.5rem;
}

.link-list a {
  color: var(--forest-mist);
  text-decoration: none;
  font-weight: 400;
  position: relative;
  display: inline-block;
  transition: color 0.3s var(--ease-out);
}

.link-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.link-list a:hover {
  color: var(--forest-deep);
}

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

/* Activities */
.section-activities {
  background: linear-gradient(
    180deg,
    #dce5d9 0%,
    #dae3d6 25%,
    #d6e0d2 50%,
    #d4dfd1 75%,
    #d4dfd1 100%
  );
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-item {
  padding: var(--space-lg) 0;
  padding-left: var(--space-md);
  border-left: 2px solid transparent;
  border-bottom: 1px solid rgba(155, 181, 141, 0.35);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.4s var(--ease-out);
  transition-delay: 0s;
}

.activity-item.visible,
.activity-item:hover {
  border-left-color: var(--accent-soft);
}

.activity-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.activity-item:nth-child(1).visible { transition-delay: 0.05s; }
.activity-item:nth-child(2).visible { transition-delay: 0.15s; }
.activity-item:nth-child(3).visible { transition-delay: 0.25s; }

.activity-item:last-child {
  border-bottom: none;
}

.activity-category {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--forest-mist);
  margin-bottom: 0.5rem;
}

.activity-item h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--forest-deep);
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

.activity-item p {
  margin: 0;
  color: var(--sand-dark);
  opacity: 0.95;
}

/* Vision */
.section-vision {
  background: linear-gradient(
    180deg,
    #d4dfd1 0%,
    #d0dccb 22%,
    #ccd9c7 50%,
    #c9d6c4 80%,
    #c9d6c4 100%
  );
}

.vision-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-style: italic;
  color: var(--sand-dark);
  margin: 0 0 var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--forest-mist);
  opacity: 0.95;
}

.vision-quote cite {
  display: block;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--forest-mist);
  margin-top: 0.5rem;
}

.vision-content p {
  margin: 0 0 1rem;
  color: var(--sand-dark);
}

.vision-content p:last-child {
  margin-bottom: 0;
}

/* ---- Footer ---- */
.footer {
  padding: var(--space-xl) 2rem;
  background: linear-gradient(
    180deg,
    #c9d6c4 0%,
    #c6d3c0 35%,
    #c2cfbc 65%,
    #c0cebb 100%
  );
  border-top: none;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 80px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(155, 181, 141, 0.1) 40%,
    transparent 100%
  );
  pointer-events: none;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--forest-deep);
  margin: 0 0 0.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--sand-dark);
  opacity: 0.85;
  margin: 0 0 0.5rem;
}

.footer-year {
  font-size: 0.75rem;
  color: var(--forest-leaf);
  opacity: 0.8;
  margin: 0;
}
