/* ===== StoryGrove — design tokens ===== */
:root {
  --paper: #F6F2E6;
  --paper-2: #EEE7D4;
  --ink: #1B1812;
  --ink-soft: #5C554A;
  --line: rgba(27, 24, 18, 0.1);

  --pine: #17342A;
  --pine-2: #0E2019;
  --pine-soft: #E4EBE4;
  --glow: #5FCFA0;
  --glow-dim: rgba(95, 207, 160, 0.35);
  --gold: #C08A3E;
  --gold-soft: #F1E2C2;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px -30px rgba(20, 35, 28, 0.35);
  --shadow-sm: 0 12px 26px -18px rgba(20, 35, 28, 0.3);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  color: var(--pine-2);
}

p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { padding-left: 1.2em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.container.narrow { max-width: 720px; }
.muted { color: var(--ink-soft); }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Decorative glow / organic motifs ===== */
.glow-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow-orb {
  position: absolute; border-radius: 50%; filter: blur(70px);
}
.glow-orb-1 {
  width: 480px; height: 480px; top: -220px; right: -140px;
  background: radial-gradient(circle, var(--glow-dim), transparent 70%);
}
.glow-orb-2 {
  width: 340px; height: 340px; bottom: -180px; left: -100px;
  background: radial-gradient(circle, rgba(192, 138, 62, 0.28), transparent 70%);
}
.glow-orb-3 {
  width: 520px; height: 520px; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(95, 207, 160, 0.22), transparent 70%);
}
.growth-line {
  position: absolute; top: 50%; right: -60px; transform: translateY(-50%);
  width: 480px; height: 480px; color: var(--pine-2); opacity: 0.5;
}
.dot-field {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(246, 242, 230, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
}

/* ===== Buttons / links ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid var(--pine-2);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pine-2), var(--pine));
  color: var(--paper);
  box-shadow: 0 0 0 0 rgba(95,207,160,0);
}
.btn-primary:hover {
  box-shadow: 0 10px 30px -8px var(--glow-dim);
  transform: translateY(-1px);
}

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; font-weight: 600; color: var(--pine-2);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.btn-link span { transition: transform 0.2s ease; }
.btn-link:hover span { transform: translateX(3px); }
.btn-link:hover { color: var(--glow); border-color: var(--glow); }

.nav-cta {
  text-decoration: none; font-weight: 600; color: var(--pine-2);
  border: 1px solid var(--pine-2); border-radius: var(--radius-sm);
  padding: 8px 18px; font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { background: var(--pine-2); color: var(--paper); box-shadow: 0 8px 20px -10px var(--glow-dim); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 242, 230, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--pine-2);
}
.brand-mark { display: flex; color: var(--glow); }
.brand-word {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.24rem;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.nav-cta) {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.94rem;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:not(.nav-cta):hover { border-color: var(--glow); color: var(--pine-2); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--pine-2); border-radius: 2px; }

/* ===== Hero ===== */
.hero { padding: 80px 0 92px; position: relative; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start;
}
.eyebrow {
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 0.8rem; color: var(--gold);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  margin-bottom: 0.5em;
  color: var(--ink);
  font-weight: 600;
}
.hero-sub {
  font-size: 1.12rem; font-weight: 600; color: var(--pine-2);
  max-width: 560px; font-family: 'Space Grotesk', sans-serif;
}
.hero-lead { font-size: 1.03rem; color: var(--ink-soft); max-width: 560px; }
.hero-cta { display: flex; gap: 28px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

.hero-facts {
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  background: linear-gradient(165deg, rgba(255,255,255,0.5), rgba(255,255,255,0.15)), var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.hero-facts-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gold); margin-bottom: 18px;
}
.hero-facts dl { margin: 0; }
.fact-row {
  padding: 12px 0; border-top: 1px solid var(--line);
}
.fact-row:first-child { border-top: none; padding-top: 0; }
.fact-row dt {
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-soft); margin-bottom: 4px;
}
.fact-row dd { margin: 0; font-size: 0.94rem; color: var(--ink); }

/* ===== Section basics ===== */
.section { padding: 92px 0; position: relative; }
.section.alt { background: var(--paper-2); }
.section-index {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  font-size: 0.8rem; color: var(--gold); margin-bottom: 16px;
}
.section-index::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 8px 1px var(--glow-dim);
}
.section h2 { font-size: clamp(1.6rem, 2.9vw, 2.2rem); font-weight: 600; }
.pull-quote {
  margin: 32px 0 0; padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--pine-soft);
  border-left: 3px solid var(--glow);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem; font-weight: 500; color: var(--pine-2);
}

/* ===== Lists / cards ===== */
.grid-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 44px;
}
.grid-list.four { grid-template-columns: repeat(4, 1fr); }
.list-item {
  padding: 30px 30px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.list-item:hover {
  transform: translateY(-3px);
  border-color: var(--glow-dim);
  box-shadow: 0 26px 44px -26px rgba(95,207,160,0.35);
}
.list-item h3 { font-size: 1.1rem; margin-bottom: 0.5em; font-weight: 600; }
.list-item p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.96rem; }
.item-detail {
  margin-top: 12px; font-size: 0.83rem !important; color: var(--gold) !important;
  font-weight: 600;
}

/* ===== Timeline (How We Build Experiences) ===== */
.timeline {
  display: flex; margin-top: 52px; gap: 18px; position: relative;
}
.timeline::before {
  content: '';
  position: absolute; top: 17px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--glow-dim), var(--line) 40%, var(--line) 60%, var(--glow-dim));
}
.timeline-step {
  flex: 1; position: relative; padding-top: 0;
}
.timeline-num {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--pine-2);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 0.85rem; color: var(--pine-2); margin-bottom: 16px;
  position: relative; z-index: 1;
}
.timeline-step h4 { margin-bottom: 6px; font-size: 1.02rem; }
.timeline-step p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* ===== Approach ===== */
.approach-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px;
}
.approach-item {
  padding: 22px 24px; border-radius: var(--radius-md);
  background: var(--paper); border: 1px solid var(--line);
  border-top: 2px solid var(--glow);
}
.approach-item h4 { font-size: 1.05rem; margin-bottom: 8px; }
.approach-item p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

/* ===== Example / compare boxes ===== */
.example-box {
  border-radius: var(--radius-md); border: 1px solid var(--line);
  padding: 22px 26px; margin: 22px 0; background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.example-label {
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--gold); margin-bottom: 8px;
}
.example-box p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: 0.96rem; }

.compare { margin: 22px 0; display: flex; flex-direction: column; gap: 10px; }
.compare-row {
  display: flex; gap: 14px; padding: 15px 20px; font-size: 0.95rem;
  border-radius: var(--radius-sm);
}
.compare-not { color: var(--ink-soft); background: var(--paper-2); }
.compare-yes { color: var(--pine-2); font-weight: 500; background: var(--pine-soft); }
.compare-label {
  flex: 0 0 90px; font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold);
}

/* ===== KICI ===== */
.kici { background: radial-gradient(120% 140% at 15% 10%, var(--pine) 0%, var(--pine-2) 60%); color: var(--paper); overflow: hidden; }
.kici .section-index { color: var(--gold-soft); }
.kici .section-index::before { background: var(--glow); }
.kici h2 { color: var(--paper); font-size: clamp(2rem, 4.4vw, 2.9rem); }
.kici p { color: rgba(246,242,230,0.82); }
.kici .hero-sub { color: var(--gold-soft); }
.topic-list {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.02rem;
  color: var(--paper) !important; margin: 22px 0 !important;
  padding: 20px 0; border-top: 1px solid rgba(246,242,230,0.16);
  border-bottom: 1px solid rgba(246,242,230,0.16);
}
.kici .muted { color: rgba(246,242,230,0.5) !important; }

/* ===== Capabilities ===== */
.capability-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px;
}
.capability-item {
  padding: 22px 24px; border-radius: var(--radius-md);
  background: var(--paper); border: 1px solid var(--line);
}
.capability-item h4 { font-size: 0.98rem; margin-bottom: 6px; }
.capability-item p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* ===== Why StoryGrove ===== */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 20px;
}
.why-item {
  border-radius: var(--radius-md); padding: 22px 24px 24px;
  background: var(--pine-soft); border-top: 2px solid var(--gold);
}
.why-item h4 { color: var(--pine-2); font-size: 1.05rem; }
.why-item p { color: var(--ink-soft); margin: 0; font-size: 0.93rem; }

/* ===== About / Vision / Mission ===== */
.vision-box {
  margin: 32px 0; padding: 30px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--pine-2), var(--pine));
  color: var(--paper);
}
.vision-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gold-soft); margin-bottom: 10px;
}
.vision-text {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 600;
  color: var(--paper); margin: 0;
}
.mission-list {
  display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin-top: 20px;
  counter-reset: m;
}
.mission-list li {
  counter-increment: m;
  padding: 16px 20px 16px 56px; position: relative; color: var(--ink-soft);
  background: var(--paper-2); border-radius: var(--radius-sm); font-size: 0.96rem;
}
.mission-list li::before {
  content: counter(m, decimal-leading-zero);
  position: absolute; left: 18px; top: 16px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.86rem; color: var(--glow);
}

/* ===== Founders ===== */
.founders-lead {
  max-width: 620px; font-size: 1.02rem; font-weight: 500; color: var(--pine-2);
  font-family: 'Space Grotesk', sans-serif;
}
.founders-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 44px 0;
}
.founder-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.founder-mark {
  width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%;
  background: var(--pine-soft); color: var(--pine-2);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.founder-card h4 { margin-bottom: 4px; font-size: 1.05rem; }
.founder-role { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }
.founders-quote {
  max-width: 720px; font-family: 'Space Grotesk', sans-serif;
  color: var(--ink-soft); font-size: 1.02rem; padding-top: 24px; border-top: 1px solid var(--line);
}

/* ===== Contact ===== */
.contact-card {
  border-radius: var(--radius-lg); margin-top: 28px;
  background: var(--paper-2); border: 1px solid var(--line);
  overflow: hidden;
}
.contact-row {
  display: flex; gap: 20px; align-items: baseline;
  padding: 20px 26px; border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}
.contact-row:last-child { border-bottom: none; }
.contact-label {
  flex: 0 0 90px; font-size: 0.76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--gold);
}
.contact-row a { text-decoration: none; color: var(--pine-2); font-weight: 600; border-bottom: 1px solid var(--glow); }
.contact-row a:hover { color: var(--glow); }

/* ===== Footer ===== */
.site-footer { background: var(--pine-2); color: rgba(246,242,230,0.8); padding: 48px 0 24px; position: relative; overflow: hidden; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid rgba(246,242,230,0.14);
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--paper);
}
.footer-brand .brand-mark { color: var(--glow); }
.footer-tagline { margin: 10px 0 0; font-size: 0.9rem; max-width: 320px; }
.footer-meta-col { text-align: right; font-size: 0.88rem; }
.footer-meta-col p { margin: 0 0 4px; }
.footer-meta-col a { color: var(--gold-soft); text-decoration: none; }
.footer-meta-col a:hover { text-decoration: underline; }
.footer-copy { margin-top: 20px; font-size: 0.8rem; opacity: 0.6; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 65px; left: 0; right: 0;
    background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 20px 24px 28px; gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.25s ease;
    z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .grid-list, .grid-list.four { grid-template-columns: 1fr; }
  .approach-grid, .capability-grid, .why-grid, .founders-grid { grid-template-columns: 1fr; }
  .timeline { flex-direction: column; gap: 24px; }
  .timeline::before { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-meta-col { text-align: left; }
}

@media (max-width: 600px) {
  .hero { padding: 56px 0 60px; }
  .section { padding: 64px 0; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}
