/* ============================================
   SOFT TERMINAL UI - REFINED
   ============================================ */

:root {
  /* PALETTE - ACADEMIC/PROFESSIONAL */
  --c-forest: #1F3D2B;
  --c-charcoal: #333333;
  /* Softer than pure black */
  --c-orange: #C4622D;
  /* Burnt Orange Accent */
  --c-white: #F9F9F9;
  /* Softer white */
  --c-paper: #FFFFFF;
  --c-border: #E0E0E0;

  /* Fonts */
  --f-serif: 'Georgia', 'Cambria', serif;
  /* Academic Reading */
  --f-sans: 'Inter', -apple-system, sans-serif;
  /* UI Controls */
  --f-mono: 'JetBrains Mono', monospace;
  /* Data Only */

  /* Spacing */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-charcoal);
  font-family: var(--f-sans);
  /* Default to clean Sans */
  height: 100vh;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================
   GRID LAYOUT
   ============================================ */
.terminal-container {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  height: 100vh;
  width: 100vw;
}

/* LEFT SIDEBAR */
.terminal-left {
  background: #F4F4F4;
  border-right: 1px solid var(--c-border);
  padding: var(--s-2);
  display: flex;
  flex-direction: column;
}

.brand-header {
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 2px solid var(--c-forest);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--f-sans);
  font-weight: 800;
  color: var(--c-forest);
  font-size: 1.1rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--c-forest);
  border-radius: 50%;
  opacity: 0.5;
}

.control-group {
  margin-bottom: var(--s-3);
}

.control-label {
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: #666;
  /* Removed uppercase text-transform */
  margin-bottom: var(--s-1);
}

.nav-item {
  padding: 10px 12px;
  margin-bottom: 4px;
  cursor: pointer;
  font-weight: 500;
  color: #555;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-item:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--c-forest);
}

.nav-item.active {
  background: #fff;
  color: var(--c-forest);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--c-border);
}

.input-block {
  margin-bottom: var(--s-2);
}

.input-block label {
  display: block;
  /* Ensure labels are block */
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  margin-bottom: 6px;
}

.terminal-select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 8px;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  color: var(--c-charcoal);
  outline: none;
}

.terminal-select:focus {
  border-color: var(--c-forest);
}

.btn-terminal {
  width: 100%;
  background: var(--c-forest);
  color: #fff;
  border: none;
  padding: 12px;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-terminal:hover {
  background: #14291D;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(31, 61, 43, 0.15);
}

/* CENTER WORKSPACE */
/* CENTER WORKSPACE */
.terminal-center {
  padding: 0;
  /* Padding moved to view-panel for loader coverage */
  overflow-y: auto;
  position: relative;
  background: var(--c-white);
}

.view-panel {
  padding: var(--s-4);
  min-height: 100%;
  box-sizing: border-box;
}

.terminal-loader {
  display: none;
  /* Handled by JS */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  border-radius: 8px;
  /* Optional: matches panel rounded corners */
}

.terminal-loader.active {
  display: flex !important;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--c-forest);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--s-2);
}

.loader-text {
  font-family: var(--f-sans);
  font-weight: 500;
  color: var(--c-forest);
  font-size: 1.1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.terminal-workspace {
  max-width: 800px;
  margin: 0 auto;
}

/* Question Styles */
.topic-indicator {
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-forest);
  background: rgba(31, 61, 43, 0.08);
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: var(--s-2);
}

.scenario-text {
  font-family: var(--f-serif);
  /* Academic Feel */
  font-size: 1.15rem;
  line-height: 1.7;
  color: #222;
  margin-bottom: var(--s-3);
  background: #fff;
  padding: var(--s-2);
  border-radius: 8px;
  border: 1px solid var(--c-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.question-prompt {
  font-family: var(--f-sans);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--s-2);
  color: var(--c-charcoal);
}

/* Inputs */
.question-part {
  margin-bottom: var(--s-4);
  background: #fff;
  padding: var(--s-3);
  border-radius: 8px;
  border: 1px solid var(--c-border);
}

.input-label {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.input-short {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
  font-size: 1rem;
  font-family: var(--f-sans);
  outline: none;
  transition: border 0.2s;
  background: #FAFAFA;
}

.input-short:focus {
  border-color: var(--c-forest);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 61, 43, 0.1);
}

.mcq-option {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.mcq-option:hover {
  background: #F5F9F7;
  border-color: var(--c-forest);
}

.mcq-option.selected {
  background: #F0F7F4;
  border-color: var(--c-forest);
  box-shadow: 0 0 0 1px var(--c-forest);
  font-weight: 500;
}

/* Fun Button */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--c-forest) 0%, #2D6A4F 100%);
  color: white;
  border: none;
  padding: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  margin-top: var(--s-3);
  box-shadow: 0 4px 6px rgba(31, 61, 43, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Bouncy */
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 20px rgba(31, 61, 43, 0.3);
}

.btn-submit:active {
  transform: translateY(-1px);
}

.btn-next {
  width: 100%;
  background: var(--c-orange);
  color: white;
  border: none;
  padding: 14px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-top: var(--s-3);
  transition: all 0.2s;
}

.btn-next:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Breakdown Table */
.breakdown-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: var(--s-2);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.breakdown-header {
  background: #F4F4F4;
  font-family: var(--f-sans);
  font-weight: 700;
  text-align: left;
  padding: 12px;
  color: #555;
  font-size: 0.85rem;
  border-bottom: 2px solid #ddd;
}

.breakdown-row {
  background: #fff;
  transition: background 0.2s;
}

.breakdown-row:hover {
  background: #FAFAFA;
}

.breakdown-cell {
  padding: 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  font-family: var(--f-serif);
  /* Serif for content */
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.breakdown-cell.question-col {
  width: 30%;
  font-weight: 600;
  font-family: var(--f-sans);
  color: var(--c-charcoal);
}

.breakdown-cell.user-col {
  width: 25%;
  color: #666;
}

.breakdown-cell.correct-col {
  width: 25%;
  color: var(--c-forest);
  font-weight: 600;
}

.breakdown-cell.reason-col {
  width: 20%;
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
}

.status-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-correct {
  background: #D8F3DC;
  /* Soft Green */
  color: #1B4332;
}

.status-incorrect {
  background: #FDE2E2;
  /* Soft Red */
  color: #9B2C2C;
}

/* HOME VIEW STYLES */
.hero-section {
  padding: var(--s-8) 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--f-serif);
  font-size: 2.5rem;
  color: var(--c-forest);
  margin-bottom: var(--s-4);
  font-weight: 900;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: var(--s-12);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-6);
  margin-bottom: var(--s-12);
}

.home-card {
  background: #fff;
  border: 1px solid #eee;
  padding: var(--s-6);
  border-radius: 12px;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.home-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--c-forest);
}

.home-card h3 {
  font-family: var(--f-sans);
  color: var(--c-forest);
  margin-bottom: var(--s-2);
}

.home-card p {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: var(--s-4);
}

.recent-activity {
  background: #f9f9f9;
  padding: var(--s-4);
  border-radius: 8px;
  border: 1px dashed #ddd;
  text-align: left;
}

/* VISUAL COMPONENTS */
.question-visual {
  margin: var(--s-4) 0;
  padding: var(--s-4);
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.visual-placeholder {
  text-align: center;
  color: #aaa;
}

.visual-placeholder i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* MARGINS */
.mt-8 {
  margin-top: 2rem;
}

/* Feedback */
.feedback-section {
  margin-bottom: 2rem;
}

.feedback-title {
  font-family: var(--f-sans);
  font-weight: 700;
  color: var(--c-forest);
  margin-bottom: 8px;
}

.feedback-content {
  font-family: var(--f-serif);
  line-height: 1.6;
  color: #333;
}

/* RIGHT ANALYTICS */
.terminal-right {
  background: #fff;
  border-left: 1px solid var(--c-border);
  padding: var(--s-2);
}

.metric-block {
  margin-bottom: var(--s-3);
  background: #FAFAFA;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #eee;
}

.metric-label {
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 4px;
}

.metric-graph {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  width: 100%;
  margin-bottom: 4px;
  overflow: hidden;
}

.metric-bar {
  height: 100%;
  background: var(--c-forest);
  border-radius: 3px;
  transition: width 0.5s;
}

.metric-value {
  font-family: var(--f-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-forest);
}

.info-block {
  margin-top: 20px;
  padding: 12px;
  background: #F0F7F4;
  border-radius: 6px;
  border: 1px solid rgba(31, 61, 43, 0.1);
}

.info-text {
  font-family: var(--f-sans);
  font-size: 0.85rem;
  color: var(--c-forest);
}

/* Utilities */
.hidden {
  display: none !important;
}

/* LANDING PAGE LAYOUT */
.landing-container {
  font-family: var(--f-sans);
  background-color: #F5F5F3;
  color: #2E2E2E;
  min-height: 100vh;
}

/* 1. TOP NAVIGATION */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: #F5F5F3;
}

.logo-text-landing {
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: 1.4rem;
  color: #1F3D2B;
}

.nav-right {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #2E2E2E;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-link:hover {
  color: #C4622D;
  text-decoration: underline;
  text-decoration-color: #C4622D;
  text-underline-offset: 4px;
}

.nav-link.sign-in {
  color: #1F3D2B;
  font-weight: 600;
}

/* 2. HERO SECTION */
.landing-hero {
  text-align: center;
  padding: 6rem 1rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-headline {
  font-family: var(--f-serif);
  font-size: 3.5rem;
  font-weight: 900;
  color: #1F3D2B;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtext {
  font-size: 1.25rem;
  color: #2E2E2E;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn-primary {
  background: #C4622D;
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
  background: #A04D22;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #2E2E2E;
  border: 2px solid #2E2E2E;
  padding: 10px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: #C4622D;
  color: #C4622D;
}

/* 3. FEATURE STRIP */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem 5%;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
}

.feature-tile {
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-tile:hover {
  background: #FAFAFA;
  border-left-color: #C4622D;
  transform: translateY(-2px);
}

.tile-icon {
  font-size: 1.5rem;
  background: #F5F5F3;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.tile-content h3 {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  color: #1F3D2B;
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.tile-content p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* 4. ABOUT PREVIEW */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 6rem 5%;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-content h3 {
  font-family: var(--f-serif);
  font-size: 2rem;
  color: #1F3D2B;
  margin-bottom: 1rem;
}

.about-content p {
  font-size: 1.1rem;
  color: #2E2E2E;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.link-arrow {
  color: #C4622D;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: margin 0.2s;
}

.link-arrow:hover {
  margin-left: 5px;
}

.about-visual {
  height: 300px;
  background: #E8E8E5;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.pattern-grid {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#1F3D2B 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
}

/* 5. FOOTER */
.landing-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 4rem 5%;
  background: #F5F5F3;
  border-top: 1px solid #ddd;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  color: #2E2E2E;
  text-decoration: none;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #C4622D;
}

/* LANDING PAGE LAYOUT */
.landing-container {
  font-family: var(--f-sans);
  background-color: #F5F5F3;
  color: #2E2E2E;
  min-height: 100vh;
}

/* 1. TOP NAVIGATION */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: #F5F5F3;
}

.logo-text-landing {
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: 1.4rem;
  color: #1F3D2B;
}

.nav-right {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #2E2E2E;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-link:hover {
  color: #C4622D;
  text-decoration: underline;
  text-decoration-color: #C4622D;
  text-underline-offset: 4px;
}

.nav-link.sign-in {
  color: #1F3D2B;
  font-weight: 600;
}

/* 2. HERO SECTION */
.landing-hero {
  text-align: center;
  padding: 6rem 1rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-headline {
  font-family: var(--f-serif);
  font-size: 3.5rem;
  font-weight: 900;
  color: #1F3D2B;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtext {
  font-size: 1.25rem;
  color: #2E2E2E;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn-primary {
  background: #C4622D;
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
  background: #A04D22;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #2E2E2E;
  border: 2px solid #2E2E2E;
  padding: 10px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: #C4622D;
  color: #C4622D;
}

/* 3. FEATURE STRIP */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 4rem 5%;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
}

.feature-tile {
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-tile:hover {
  background: #FAFAFA;
  border-left-color: #C4622D;
  transform: translateY(-2px);
}

.tile-icon {
  font-size: 1.5rem;
  background: #F5F5F3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.tile-content h3 {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  color: #1F3D2B;
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.tile-content p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* 4. ABOUT PREVIEW */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 6rem 5%;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-content h3 {
  font-family: var(--f-serif);
  font-size: 2rem;
  color: #1F3D2B;
  margin-bottom: 1rem;
}

.about-content p {
  font-size: 1.1rem;
  color: #2E2E2E;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.link-arrow {
  color: #C4622D;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: margin 0.2s;
}

.link-arrow:hover {
  margin-left: 5px;
}

.about-visual {
  height: 300px;
  background: #E8E8E5;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

/* 5. FOOTER */
.landing-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 4rem 5%;
  background: #F5F5F3;
  border-top: 1px solid #ddd;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  color: #2E2E2E;
  text-decoration: none;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #C4622D;
}

/* SCROLL ANIMATIONS */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

/* OUR STORY SECTION */
.story-section {
  padding: 6rem 2rem;
  background-color: #F5F5F3;
  color: #2E2E2E;
}

.story-container {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  /* Better for long text */
  gap: 5rem;
}

.story-content {
  flex: 1.4;
  /* ~60% */
}

.story-visual {
  flex: 1;
  /* ~40% */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Align image with column start */
}

.story-headline {
  font-family: var(--f-serif);
  color: var(--c-forest);
  font-size: 2.2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.story-text {
  font-family: var(--f-sans);
  font-size: 1.05rem;
  line-height: 1.75;
  /* Comfortable spacing */
  color: #2E2E2E;
  margin-bottom: 1.5rem;
  max-width: 65ch;
  /* Readable line length */
}

.image-wrapper {
  width: 100%;
  max-width: 380px;
  /* Portrait sizing */
}

.founder-image {
  width: 100%;
  height: auto;
  border-radius: 2px;
  /* Very subtle */
  filter: saturate(0.85);
  /* Slightly desaturated */
  display: block;
}

.image-caption {
  font-family: var(--f-sans);
  color: var(--c-charcoal);
  font-size: 0.85rem;
  margin-top: 1rem;
  text-align: left;
  opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 850px) {
  .story-container {
    flex-direction: column;
    gap: 3rem;
  }

  .story-content,
  .story-visual {
    width: 100%;
    flex: auto;
  }

  .image-wrapper {
    max-width: 100%;
  }

  .story-section {
    padding: 4rem 1.5rem;
  }
}