/* About Us — 04 History, vision & mission */

@keyframes cw-about-story-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cw-about-story {
  background: #f3efe7;
  color: #141210;
  font-family: 'Inter', system-ui, sans-serif;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.cw-about-story__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.cw-about-story__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.cw-about-story__eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #e0431c;
}

.cw-about-story__title {
  margin: 12px 0 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.cw-about-story__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

.cw-about-story__tabs {
  display: flex;
  gap: 6px;
  border: 1px solid #141210;
  border-radius: 999px;
  padding: 4px;
  flex-shrink: 0;
}

.cw-about-story__tab {
  border: 0;
  background: transparent;
  color: #141210;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.cw-about-story__tab.is-active {
  background: #141210;
  color: #f3efe7;
}

.cw-about-story__tab:focus-visible {
  outline: 2px solid #e0431c;
  outline-offset: 2px;
}

.cw-about-story__panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px;
  align-items: stretch;
}

.cw-about-story__visual {
  position: relative;
  background: var(--cw-about-story-panel-bg, #e0431c);
  color: var(--cw-about-story-panel-ink, #ffe9df);
  border-radius: 28px;
  min-height: 380px;
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.5s ease, color 0.5s ease;
}

.cw-about-story__visual-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.cw-about-story__visual-big {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(120px, 16vw, 240px);
  line-height: 0.8;
  letter-spacing: -0.07em;
  animation: cw-about-story-in 0.45s ease both;
}

.cw-about-story__progress {
  display: flex;
  gap: 6px;
}

.cw-about-story__progress-seg {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(20, 18, 16, 0.15);
  transition: background 0.3s ease;
}

.cw-about-story__progress-seg.is-active,
.cw-about-story__progress-seg.is-past {
  background: #141210;
}

.cw-about-story__visual--dark-ink .cw-about-story__progress-seg {
  background: rgba(243, 239, 231, 0.2);
}

.cw-about-story__visual--dark-ink .cw-about-story__progress-seg.is-active,
.cw-about-story__visual--dark-ink .cw-about-story__progress-seg.is-past {
  background: #f3efe7;
}

.cw-about-story__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  min-width: 0;
}

.cw-about-story__content.is-animating .cw-about-story__content-title,
.cw-about-story__content.is-animating .cw-about-story__paragraphs {
  animation: cw-about-story-in 0.4s ease both;
}

.cw-about-story__step-label {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #e0431c;
}

.cw-about-story__content-title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.cw-about-story__paragraphs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cw-about-story__paragraphs p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #3a3530;
}

.cw-about-story__nav {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.cw-about-story__nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cw-about-story__nav-btn--prev {
  border: 1px solid #141210;
  background: transparent;
  color: #141210;
}

.cw-about-story__nav-btn--prev:hover {
  background: #141210;
  color: #f3efe7;
}

.cw-about-story__nav-btn--next {
  border: 0;
  background: #141210;
  color: #f3efe7;
}

.cw-about-story__nav-btn--next:hover {
  background: #e0431c;
}

.cw-about-story__nav-btn:focus-visible {
  outline: 2px solid #e0431c;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cw-about-story__visual,
  .cw-about-story__visual-big,
  .cw-about-story__content.is-animating .cw-about-story__content-title,
  .cw-about-story__content.is-animating .cw-about-story__paragraphs {
    animation: none;
    transition: none;
  }
}
