/* ============================================================
   OUR STORY — /pages/our-story
   Editorial redesign (ported from design-our-story-mockup.html).
   All rules scoped under .our-story so nothing leaks site-wide.
   Cache-busted via ?v= param in the route's links() — bump it
   whenever this file changes.
   ============================================================ */

.our-story {
  --ink: #2A281E;
  --cream-light: #FAF8F0;
  --cream: #F5F0DC;
  --cream-dark: #EDE8D0;
  --white: #FFFFFF;
  --green: #2E7D32;
  --green-dark: #1B5E20;
  --green-light: #4CAF50;
  --stone: #6B6B5E;
  --mist: #A8A8A0;

  --font-display: 'Noto Serif JP', Georgia, serif;
  --font-ui: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--cream-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.our-story *,
.our-story *::before,
.our-story *::after { box-sizing: border-box; }
.our-story img { display: block; max-width: 100%; height: auto; }
.our-story a { color: inherit; }

.our-story .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ─────────── HERO ─────────── */
.our-story .hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 100%);
}
.our-story .hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.our-story .hero .pill {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(27, 94, 32, 0.10);
  color: var(--green-dark);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 24px;
}
.our-story .hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.our-story .hero h1 em {
  font-style: italic;
  color: var(--green-dark);
  font-weight: 600;
}
.our-story .hero p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--stone);
}
.our-story .hero-image {
  max-width: 1080px;
  margin: 64px auto 0;
  padding: 0 24px;
  position: relative;
}
.our-story .hero-image-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(42, 40, 30, 0.16), 0 6px 16px rgba(42, 40, 30, 0.06);
}
.our-story .hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ─────────── STATS STRIP ─────────── */
.our-story .stats {
  background: var(--green-dark);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.our-story .stats::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}
.our-story .stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 24px;
  text-align: center;
}
@media (min-width: 720px) {
  .our-story .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.our-story .stat { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.our-story .stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
}
.our-story .stat-num em {
  color: rgba(255, 255, 255, 0.85);
  font-style: normal;
  font-weight: 600;
  margin-left: 2px;
}
.our-story .stat-rule {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
}
.our-story .stat-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ─────────── STORY ─────────── */
.our-story .story { padding: 120px 0; }
.our-story .story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .our-story .story-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.our-story .story-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 16px;
}
.our-story .story h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.our-story .story h2 em { font-style: italic; color: var(--green-dark); font-weight: 600; }
.our-story .story-lead {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--green-dark);
  font-weight: 600;
  margin: 0 0 24px;
  line-height: 1.5;
}
.our-story .story-body p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}
.our-story .story-signoff {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(42, 40, 30, 0.10);
}
.our-story .story-signoff-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
}
.our-story .story-signoff-text span {
  font-size: 13px;
  color: var(--stone);
}
.our-story .story-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(42, 40, 30, 0.12);
}
.our-story .story-media img { width: 100%; height: 100%; object-fit: cover; }

/* ─────────── PHILOSOPHY QUOTE ─────────── */
.our-story .philosophy {
  background: var(--cream);
  padding: 120px 0;
  text-align: center;
  position: relative;
}
.our-story .philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 900px;
  margin: 0 auto;
}
.our-story .philosophy-quote em { font-style: italic; color: var(--green-dark); font-weight: 600; }
.our-story .philosophy-lead {
  margin: 26px auto 0;
  max-width: 640px;
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.7;
  color: var(--stone);
}
.our-story .philosophy-attribution {
  margin-top: 32px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.our-story .philosophy-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.our-story .philosophy-rule::before,
.our-story .philosophy-rule::after {
  content: ''; width: 60px; height: 1px; background: var(--mist);
}

/* ─────────── FOUR BRAND VALUES ─────────── */
.our-story .find { padding: 120px 0; }
.our-story .find-header { text-align: center; max-width: 720px; margin: 0 auto 64px; padding: 0 24px; }
.our-story .find-header .eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
}
.our-story .find-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 48px);
  margin: 0 0 16px;
  line-height: 1.15;
}
.our-story .find-header h2 em { font-style: italic; color: var(--green-dark); font-weight: 600; }
.our-story .find-header p { color: var(--stone); font-size: 17px; margin: 0; line-height: 1.65; }
/* Image-free value cards: the number and the Japanese label carry the
   visual weight instead of photography. Two-up on desktop, stacked below. */
.our-story .value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 760px) {
  .our-story .value-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
.our-story .value-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 36px 32px 38px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(42, 40, 30, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.our-story .value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 125, 50, 0.28);
  box-shadow: 0 24px 50px rgba(42, 40, 30, 0.1);
}
.our-story .value-card-top {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}
.our-story .value-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  letter-spacing: -0.02em;
}
.our-story .value-ja {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--stone);
  letter-spacing: 0.08em;
}
.our-story .value-card h3 {
  font-family: var(--font-display);
  font-size: 25px;
  margin: 0;
  line-height: 1.25;
  text-wrap: balance;
}
.our-story .value-rule {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--green);
  border-radius: var(--radius-full);
  margin: 18px 0 16px;
}
.our-story .value-card p {
  margin: 0;
  color: var(--stone);
  font-size: 15px;
  line-height: 1.75;
}
.our-story .value-card p em { font-style: italic; color: var(--ink); }
@media (max-width: 759px) {
  .our-story .value-card { padding: 30px 26px 32px; }
  .our-story .value-num { font-size: 30px; }
}

/* ─────────── JOURNEY TIMELINE ─────────── */
.our-story .journey {
  background: var(--white);
  padding: 120px 0;
}
.our-story .journey-header { text-align: center; max-width: 720px; margin: 0 auto 72px; padding: 0 24px; }
.our-story .journey-header .eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
}
.our-story .journey-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 48px);
  margin: 0;
  line-height: 1.15;
}
.our-story .journey-header h2 em { font-style: italic; color: var(--green-dark); font-weight: 600; }

.our-story .timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
/* Timeline line sits a clean gap to the right of the year column so
   the number and the dot never visually crowd each other. */
.our-story .timeline::before {
  content: '';
  position: absolute;
  left: 144px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-light), var(--green-dark));
  opacity: 0.4;
}
@media (max-width: 600px) {
  .our-story .timeline::before { left: 72px; }
}
.our-story .tl-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 96px;
  padding: 24px 0;
  position: relative;
}
@media (max-width: 600px) {
  .our-story .tl-item { grid-template-columns: 40px 1fr; gap: 56px; }
}
.our-story .tl-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--green-dark);
  text-align: right;
  line-height: 1.4;
  align-self: start;
  padding-top: 2px;
}
/* The dot lives on the timeline line, not next to the year.
   Content starts at year-col (96) + gap (96) = 192px from left.
   Line center sits at 144 + 1 = 145px. Dot is 14px wide, so its left
   edge should be at 145 - 7 = 138, which is 192 - 138 = 54px before
   the content's left edge. */
.our-story .tl-content { position: relative; }
.our-story .tl-content::before {
  content: '';
  position: absolute;
  left: -54px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-dark);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-light);
}
@media (max-width: 600px) {
  .our-story .tl-year { font-size: 16px; }
  /* Mobile: year 40 + gap 56 = content at 96. Line at 72. Dot center
     at 73, left edge at 67, relative to content = -29. */
  .our-story .tl-content::before { left: -29px; width: 12px; height: 12px; top: 10px; }
}
.our-story .tl-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 4px 0 6px;
  line-height: 1.3;
}
.our-story .tl-content p {
  margin: 0;
  color: var(--stone);
  font-size: 15px;
  line-height: 1.7;
  max-width: 540px;
}

/* ─────────── VISIT CTA ─────────── */
.our-story .visit {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.our-story .visit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.10), transparent 60%);
  pointer-events: none;
}
.our-story .visit-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.our-story .visit-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 14px;
}
.our-story .visit h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 24px;
  line-height: 1.1;
  color: var(--white);
}
.our-story .visit h2 em { font-style: italic; color: rgba(255, 255, 255, 0.92); font-weight: 600; }
.our-story .visit p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  margin: 0 0 36px;
  line-height: 1.7;
}
.our-story .visit-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--white);
  color: var(--green-dark);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.18s ease;
}
.our-story .visit-cta:hover { transform: translateY(-2px); }

/* ─────────── SCROLL REVEAL ─────────── */
.our-story .reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.our-story .reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.our-story .reveal-up.delay-1 { transition-delay: 80ms; }
.our-story .reveal-up.delay-2 { transition-delay: 160ms; }
.our-story .reveal-up.delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .our-story .reveal-up { opacity: 1; transform: none; transition: none; }
}
