/* =====================================================
   3/styles.css — Storytelling Theme (v3)
   Fresh visual language; no reuse from previous versions
   ===================================================== */

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ---------- Theme Tokens ---------- */
:root {
  --paper: #f7f3ea;         /* warm paper background */
  --ink: #1b1b1b;           /* high-contrast text */
  --muted: #6d6a6a;         /* supporting text */
  --accent: #9b5de5;        /* purple */
  --accent-2: #f15bb5;      /* pink */
  --accent-3: #00bbf9;      /* cyan */
  --accent-4: #00f5d4;      /* mint */
  --card: #ffffff;          /* card surface */
  --line: #e6ded0;          /* subtle lines */
}

/* ---------- Base ---------- */
body {
  font-family: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 17px;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; }
h1 { font-size: clamp(2.3rem, 1.6rem + 2.5vw, 3.5rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { color: var(--muted); }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Texture background */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(40vmax 40vmax at 10% -10%, rgba(155,93,229,0.10), transparent 60%),
    radial-gradient(30vmax 30vmax at 110% 10%, rgba(241,91,181,0.10), transparent 60%),
    radial-gradient(40vmax 40vmax at -10% 110%, rgba(0,187,249,0.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.02) 0 2px, transparent 2px 4px);
  pointer-events: none;
}

/* ---------- Progress bar ---------- */
.story-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: transparent; z-index: 1000; }
.story-progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent-4)); box-shadow: 0 0 0 1px rgba(0,0,0,0.05) inset; transition: width 80ms linear; }

/* ---------- Chapter Nav Dots ---------- */
.chapter-nav { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); display: grid; gap: 12px; z-index: 900; }
.chapter-dot { width: 12px; height: 12px; border-radius: 999px; background: #d4c9b8; border: 2px solid #cdbfa9; transition: transform 0.2s, background 0.2s; }
.chapter-dot.active { background: var(--accent); transform: scale(1.2); border-color: var(--accent); }
.chapter-dot:hover { transform: scale(1.25); }

/* ---------- Hero / Prologue ---------- */
.story-hero { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 90px 0 60px; position: relative; }
.story-hero .container { max-width: 900px; }
.hero-eyebrow { letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.hero-title { margin-bottom: 12px; }
.hero-subtitle { font-size: 1.1rem; color: var(--muted); margin-bottom: 28px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.scroll-cue .chev { width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); animation: bob 1.2s infinite ease-in-out; }
@keyframes bob { 0%,100%{ transform: translateY(0) rotate(45deg);} 50%{ transform: translateY(3px) rotate(45deg);} }

/* ---------- Chapter Base ---------- */
.chapter { padding: 110px 0; position: relative; }
.chapter-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.chapter-number { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; font-size: 0.9rem; }
.chapter-title { font-family: 'Playfair Display', Georgia, serif; }
.chapter-lead { max-width: 820px; margin-bottom: 28px; font-size: 1.1rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- About Chapter ---------- */
.about-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.about-photo { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.08); border: 1px solid var(--line); background: var(--card); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text { background: var(--card); border: 1px solid var(--line); padding: 22px; border-radius: 16px; }
.about-text p + p { margin-top: 12px; }

/* ---------- Skills Chapter ---------- */
.skills-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; transition: transform .2s ease; }
.tile:hover { transform: translateY(-3px); }
.tile h3 { margin-bottom: 6px; font-size: 1rem; }
.tile p { font-size: .98rem; }

/* ---------- Journey / Experience Chapter ---------- */
.journey { position: relative; }
.journey::before { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.journey-entry { position: relative; padding-left: 56px; margin-bottom: 26px; }
.journey-entry::before { content: ''; position: absolute; left: 8px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
.entry-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.entry-card h4 { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.entry-meta { font-size: .92rem; color: var(--muted); margin-bottom: 10px; }
.entry-card ul { margin-left: 18px; }
.entry-card li { color: var(--muted); margin: 6px 0; }

/* ---------- Voices / Testimonials ---------- */
.voices-grid { column-count: 2; column-gap: 20px; }
.quote { 
  display: inline-block; width: 100%; margin: 0 0 20px; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 44px; 
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.quote::before { content: '“'; position: absolute; top: 8px; left: 14px; font-size: 40px; line-height: 1; color: rgba(0,0,0,.08); font-family: 'Playfair Display', Georgia, serif; }
.quote p { font-style: italic; }
.quote .who { margin-top: 10px; font-weight: 700; color: var(--ink); }
.quote .role { color: var(--muted); font-size: .92rem; }

/* Show all text (no clamp) */
.quote .clamp { display: block; overflow: visible; }

/* Remove overlay fade */
.quote.has-more:not(.expanded)::after { content: none; }

/* Hide toggle button */
.quote-toggle { display: none !important; }

/* Masonry responsive */
@media (min-width: 1200px) { .voices-grid { column-count: 3; } }
@media (max-width: 700px) { .voices-grid { column-count: 1; } }

/* ---------- Notes / Off the Record ---------- */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.note { background: var(--card); border: 1px dashed var(--accent-3); border-radius: 12px; padding: 16px; }
.note h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--ink); }

/* ---------- Contact / Epilogue ---------- */
.contact-panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-info { font-size: 1rem; }
.contact-item { display: flex; align-items: center; gap: 10px; margin: 8px 0; color: var(--muted); }

.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field input, .field textarea { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 14px; font: inherit; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.button { display: inline-block; padding: 12px 18px; border-radius: 999px; border: none; background: var(--accent); color: white; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px rgba(155,93,229,.25); transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-2px); background: #8a4cd8; }

/* Panel CTA */
.panel-cta { grid-column: 1 / -1; display: grid; place-items: center; margin-top: 8px; }
.button.linkedin { display: inline-flex; align-items: center; gap: 10px; background: #0a66c2; box-shadow: 0 10px 24px rgba(10,102,194,0.25); }
.button.linkedin:hover { background: #09539b; }
.button.linkedin .icon { display: inline-flex; }

/* ---------- Footer ---------- */
.story-footer { text-align: center; padding: 32px 0; color: var(--muted); font-size: .95rem; }

/* ---------- Responsiveness ---------- */
@media (max-width: 900px) {
  .about-wrap { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
}
