/* ============================================================
   Crowstack: new-site design system
   Brand tokens sampled from the product deck:
   cream #fbf8f0 · deep green #032f2e · gold #b98942 · mascot grey #b0aea8
   Display: Fraunces (editorial serif) · Body/UI: Inter
   ============================================================ */

:root {
  --cream:      #fbf8f0;
  --cream-2:    #f5efe1;   /* alternating section bg / soft panels */
  --cream-3:    #efe7d4;   /* deeper sand for cards on cream */
  --ink:        #032f2e;   /* deep green: brand + headings */
  --ink-2:      #0c4a46;   /* lighter green for hover/links */
  --text:       #23302e;   /* body text */
  --muted:      #5f6f6c;   /* secondary text */
  --gold:       #b98942;   /* bright gold: accents/lines & text on DARK sections */
  --gold-deep:  #8a601f;   /* darker gold: text/labels on CREAM (WCAG AA ≥4.5:1) */
  --line:       #e5dcc6;   /* hairline on cream */
  --white:      #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(3,47,46,.04), 0 12px 32px -12px rgba(3,47,46,.14);
  --shadow-lg: 0 24px 60px -20px rgba(3,47,46,.28);

  /* vertical rhythm scale */
  --space-sm: 1rem;    /* heading: its paragraph/line */
  --space-md: 1.75rem; /* paragraph: paragraph */
  --space-lg: 2.5rem;  /* content block: block / major dividers */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ink-2); text-decoration: none; }
a:hover { color: var(--gold-deep); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 132px); }
.section--alt { background: var(--cream-2); }
.section--ink { background: var(--ink); color: #dbe7e4; }
.section--ink p, .section--ink li { color: #cfe0dc; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.display { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: -0.02em; }
.h2 { font-size: clamp(2rem, 4vw, 3rem); }
.h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--muted); max-width: 62ch; }
.section--ink .lede { color: #b9ccc8; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 1.1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.section--ink .eyebrow { color: var(--gold); }
.section--ink .accent-gold { color: var(--gold); }

.accent-gold { color: var(--gold-deep); }
.accent { color: var(--gold-deep); font-style: italic; }
.approach-line2 { display: inline-block; margin-top: var(--space-sm); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fdfbf4; }
.btn-primary:hover { background: #06403e; color: #fff; box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: #22160a; }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.section--ink .btn-ghost { color: #eaf1ef; border-color: rgba(255,255,255,.25); }
.section--ink .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,240,.82); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--ink); letter-spacing: -.01em; }
.brand img { height: 30px; width: auto; }
.brand .dot { color: var(--gold-deep); }
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--text); }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: .75rem; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(72px, 11vw, 150px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero__title { font-size: clamp(2.9rem, 6.4vw, 5rem); }
.hero__sub { margin-top: 1.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__punch {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--ink);
}
.hero__art { display: grid; place-items: center; }
.hero__art img { width: min(320px, 78%); filter: drop-shadow(0 30px 50px rgba(3,47,46,.22)); }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { display: none; }
}

/* ---------- generic section header ---------- */
.section-head { max-width: 46rem; margin-bottom: clamp(2.4rem, 4vw, 3.6rem); }
.section-head .lede { margin-top: var(--space-sm); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin-inline: auto; text-align: justify; text-align-last: center; }

/* ---------- problem: failure-mode cards ---------- */
.lead-line { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.2rem); color: var(--ink); font-weight: 600; letter-spacing: -.02em; max-width: 20ch; }
.failure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: var(--space-lg); }
.fcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow); }
.fcard h3 { margin-bottom: .6rem; }
.fcard .tag { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.rootcause { margin-top: var(--space-lg); font-size: 1.2rem; color: var(--ink); max-width: 64ch; }
@media (max-width: 720px) { .failure-grid { grid-template-columns: 1fr; } }

/* ---------- pillars overview ---------- */
.pillar-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: var(--space-lg); }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; gap: 1rem; align-items: flex-start; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard .ic { font-size: 1.6rem; line-height: 1; flex: none; }
.pcard h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.pcard p { margin: 0; color: var(--muted); font-size: .98rem; }
.section--ink .pcard h3 { color: var(--ink); }
.section--ink .pcard p { color: var(--muted); }
@media (max-width: 720px) { .pillar-cards { grid-template-columns: 1fr; } }

/* ---------- pillar detail sections ---------- */
.pillar { }
.pillar__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.pillar--flip .pillar__media { order: -1; }
.pillar__list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1rem; }
.pillar__list li { position: relative; padding-left: 1.9rem; color: var(--text); }
.pillar__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(185,137,66,.14); }
.pillar__kicker { margin-top: 1.6rem; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.section--ink .pillar__kicker { color: #fff; }
.section--ink .pillar__list li { color: #d3e2df; }
.section--ink .pillar__list li::before { box-shadow: 0 0 0 4px rgba(185,137,66,.24); }
.media-ph {
  border-radius: var(--radius); border: 1px dashed #cdbf9d; background:
    repeating-linear-gradient(45deg, rgba(185,137,66,.05) 0 12px, rgba(185,137,66,.09) 12px 24px);
  min-height: 300px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 1.5rem;
}
.media-ph .badge { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); background: #fff; border: 1px solid var(--line); padding: .35rem .7rem; border-radius: 999px; }
.media-ph .cap { margin-top: .9rem; font-size: .95rem; max-width: 34ch; }
/* real product screenshots */
.shot { margin: 0; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); padding: 10px; display: flex; justify-content: center; align-items: center; }
.shot img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; border-radius: 8px; }
.section--ink .shot { border-color: rgba(255,255,255,.14); }
@media (max-width: 820px) {
  .pillar__grid { grid-template-columns: 1fr; }
  .pillar--flip .pillar__media { order: 0; }
}

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: var(--space-lg); }
.member { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); }
.member__top { display: flex; align-items: center; gap: 1rem; }
.member__top img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; background: var(--cream-3); }
.member__name { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); font-weight: 600; }
.member__role { font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.member p { color: var(--muted); font-size: .97rem; margin: 1rem 0 .6rem; }
.member a { font-weight: 600; font-size: .95rem; }
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- alpha CTA ---------- */
.cta-wrap { text-align: center; max-width: 60rem; margin-inline: auto; }
.cta-wrap .lede { margin-inline: auto; text-align: justify; text-align-last: center; }
.cta-wrap .btn { margin-top: 1.8rem; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #cfe0dc; padding-block: 56px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.footer .brand { color: #fff; }
.footer .footlogo { filter: brightness(0) invert(1); }
.footer a { color: #cfe0dc; }
.footer a:hover { color: var(--gold); }
.footer__links { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: .95rem; }
.footer__meta { width: 100%; border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.6rem; padding-top: 1.4rem; font-size: .85rem; color: #8fa8a3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }

/* ---------- history sub-block + timeline (Problem) ---------- */
.subsection { margin-top: var(--space-lg); }
.history-title { margin-bottom: var(--space-sm); }
.timeline { margin: var(--space-lg) 0; display: grid; gap: .65rem; }
.tl-row { display: grid; grid-template-columns: 104px repeat(3, 1fr); gap: .8rem; align-items: stretch; }
.tl-label { align-self: center; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chip { display: flex; align-items: center; justify-content: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; font-weight: 600; color: var(--ink); font-size: .95rem; box-shadow: var(--shadow); min-height: 56px; }
.chip-q { background: var(--ink); color: #fff; border-color: var(--ink); font-family: var(--font-display); font-size: 1.5rem; }
.tl-arrows { display: grid; grid-template-columns: 104px repeat(3, 1fr); gap: .8rem; color: var(--gold-deep); font-size: 1.15rem; line-height: 1; }
.tl-arrows span { text-align: center; }
@media (max-width: 680px) {
  .tl-row { grid-template-columns: 1fr; gap: .5rem; }
  .tl-label { margin-top: .7rem; }
  .tl-arrows { display: none; }
}

/* ---------- our-solution (Approach) ---------- */
.solution-block { max-width: 62rem; margin: var(--space-lg) auto 0; }
.solution-lede { text-align: justify; text-align-last: center; margin-inline: auto; }
.pillars-intro { text-align: center; margin-top: var(--space-lg); }
.pillars-intro h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

/* ---------- misc ---------- */
.anchor { scroll-margin-top: 90px; }
