/* Glass Frog Ventures — single stylesheet.
   Design tokens harvested from the live site: see design-reference/tokens.md */

:root {
  --color-heading: #000;
  --color-secondary: #54595F;
  --color-text: #7A7A7A;
  --color-bg-alt: #F2F6F7;
  --color-bg-soft: #F4F6FC;
  --color-footer: #1B1B1B;
  --color-btn: #626262;
  --color-btn-dark: #000;
  --container: 1300px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--color-heading);
  font-weight: 500;
  line-height: 1.05;
}
h1 { font-size: 60px; }
h2 { font-size: 48px; }
h3 { font-size: 24px; line-height: 1; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 80px 0; }
.center { text-align: center; }

.lead {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-heading);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 24px;
  border: 0;
  border-radius: 3px;
  background: var(--color-btn);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s;
}
.button:hover { background: #4a4a4a; }
.button-dark { background: var(--color-btn-dark); }
.button-dark:hover { background: #333; }

/* Header — fixed at the top like the live site (Elementor sticky, z-index 99) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
}
.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: block;
  padding: 13px 20px;
  color: var(--color-text);
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
}
/* Scroll-spy underline: 3px black bar that fades in on the active item */
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--color-heading);
  opacity: 0;
  transition: opacity 0.3s;
}
.site-nav a:hover, .site-nav a.active { color: var(--color-heading); }
.site-nav a:hover::after, .site-nav a.active::after { opacity: 1; }
.menu-toggle { display: none; }

/* Anchor jumps must land below the fixed header */
section[id], [id="contactus"] { scroll-margin-top: 120px; }

/* Section titles: centered with a short rule under them (live-site signature) */
.section-title { text-align: center; }
.section-title::after, .title-line {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  margin: 22px auto 40px;
  background: var(--color-heading);
}
.title-line { margin: 26px 0 32px; }

/* Cards — the live site's signature shape: two rounded corners */
.card {
  padding: 32px 28px;
  border-radius: 0 50px 0 50px;
  background: #fff;
}
.card-soft { background: var(--color-bg-alt); }
.card-outline { border: 1px solid #ccc; text-align: center; }
.card p { font-size: 14px; }
/* Clickable portfolio cards (live opens company sites in a new tab) */
a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
a.card:hover {
  border-color: #999;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Hero */
.hero {
  padding: 180px 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    url('../assets/hero-bg.jpg') center / cover;
}
.hero-cols { align-items: center; }
.hero-text .title-line { margin-top: 18px; }
.hero .button { margin-top: 8px; }
.hero-logo { text-align: center; }
.hero-logo img { max-width: 384px; }

/* Shared two-column layout */
.cols {
  display: flex;
  gap: 60px;
  align-items: center;
}
.cols > :first-child { flex: 2; }
.about-image { flex: 1; text-align: center; }

/* What we are looking for */
.looking-for {
  background:
    linear-gradient(rgba(244, 246, 252, 0.9), rgba(244, 246, 252, 0.9)),
    url('../assets/looking-for-bg.jpg') center / cover;
}
.narrow-center { max-width: 900px; text-align: center; }
.looking-for .button { margin-top: 8px; }

/* You can impress with */
.impress-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.impress-card { text-align: center; padding: 40px 48px; }
.impress-card .icon { color: #606060; margin-bottom: 12px; }
.impress-card p { font-size: 18px; line-height: 1.5; }

/* How we work — six numbered steps, airy (no cards), CTA below */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 60px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
}
.process-step { text-align: center; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--color-heading);
  color: #fff;
  font-size: 22px;
  font-weight: 500;
}
.process-step h3 { font-size: 22px; }
.process-step p { font-size: 15px; margin: 0; }

/* Team */
.founder-tool { background: var(--color-bg-soft); }
.founder-tool .lead { margin: 0 auto; }
.founder-tool .button { margin-top: 8px; }

.team { background: var(--color-bg-alt); }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.team-member {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.team-photo { flex: 0 0 148px; }
.team-photo img { width: 148px; }
.team-member p { font-size: 14px; color: var(--color-heading); }
.linkedin { display: inline-block; margin-top: 14px; color: var(--color-heading); }
.linkedin:hover { color: #0a66c2; }

/* Portfolio track record */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 90px;
  margin-bottom: 48px;
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-heading);
}
.stat-label { font-size: 15px; }
.milestone {
  display: inline-block;
  margin: -4px 0 12px;
  padding: 5px 12px;
  border-radius: 3px;
  background: var(--color-bg-alt);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-heading);
}

/* Portfolio / Previous investments */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  margin-bottom: 16px;
}
.card-logo img { max-height: 90px; width: auto; max-width: 85%; }

/* Blog — horizontal scroll-snap carousel, 3 cards in view */
.blog { background: var(--color-bg-alt); }
.carousel { position: relative; }
.blog-strip {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 4px 16px;
}
.blog-strip::-webkit-scrollbar { display: none; }
.blog-strip .blog-card {
  flex: 0 0 calc((100% - 88px) / 3);
  scroll-snap-align: start;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: var(--color-heading);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.3s;
}
.carousel-prev { left: -16px; }
.carousel-prev .icon { transform: rotate(180deg); }
.carousel-next { right: -16px; }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }
.blog-card {
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.blog-thumb { display: block; width: 100%; height: 265px; object-fit: cover; }
/* Wide logo-like featured images: show the whole logo instead of cropping */
.blog-thumb-contain { object-fit: contain; padding: 32px; }
.blog-card-body { padding: 24px 28px 28px; }
.blog-card h3 { font-size: 21px; line-height: 1.25; }
.blog-card h3 a { color: var(--color-secondary); text-decoration: none; }
.blog-card h3 a:hover { text-decoration: underline; }
.blog-card p { font-size: 14px; }
.read-more { margin-bottom: 0; }
.read-more a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-secondary);
}
.read-more a:hover { text-decoration: underline; }

/* Contact */
.contact-container { max-width: 900px; }
.contact form p { margin-bottom: 16px; }
.form-row { display: flex; gap: 20px; }
.form-row p { flex: 1; }
.contact label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}
.contact input[type=text], .contact input[type=email], .contact textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: inherit;
  font-size: 16px;
  color: var(--color-heading);
}
.contact input:focus, .contact textarea:focus {
  border-color: var(--color-heading);
  outline: none;
}
.button-wide { width: 100%; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 12px 16px; border-radius: 3px; font-size: 16px; }
.form-ok { background: #e6f4ea; color: #1e4620; }
.form-error { background: #fdeaea; color: #611a15; }

/* Inline validation */
.field-error { display: block; margin-top: 6px; font-size: 13px; color: #b3261e; }
.field-error[hidden] { display: none; }
.contact .invalid { border-color: #b3261e; }

/* Pitch-deck dropzone */
.label-note { font-size: 13px; color: var(--color-text); }
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  border: 1px dashed #bbb;
  border-radius: 3px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--color-heading);
  background: var(--color-bg-alt);
}
.dropzone .icon { color: #606060; }
.dropzone-text { font-size: 15px; }
.dropzone input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.dropzone-file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: 3px;
  background: var(--color-bg-alt);
  font-size: 14px;
  color: var(--color-heading);
}
.dropzone-file[hidden] { display: none; }
.dropzone-remove {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ddd;
  color: var(--color-heading);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.dropzone-remove:hover { background: #ccc; }
.form-alt { margin-top: 14px; font-size: 14px; text-align: center; }

/* Trivia */
.trivia { background: var(--color-bg-alt); }
.trivia-cols { align-items: center; gap: 40px; }
.trivia-cols > :first-child { flex: 1; }
.trivia-cols > :last-child { flex: 1.2; }
/* Cutout photo, grayscaled to match the site's monochrome look (Steven's pick) */
.trivia-image img {
  display: block;
  width: 100%;
  filter: grayscale(1) contrast(1.05);
}
.trivia-list {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
  color: var(--color-secondary);
}
.trivia-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.trivia-list .icon { flex-shrink: 0; color: var(--color-heading); }
.trivia-source { font-size: 16px; }

/* Frog bullets jump one after another, then the cycle restarts.
   5 frogs × 1s slot = 5s cycle; each jump lasts ~0.8s of its slot:
   crouch (anticipation) → fast launch → hang at the top → fall →
   landing squash → settle. Feet stay planted via bottom-center origin. */
.trivia-list .icon-frog {
  transform-origin: 50% 100%;
  animation: frog-jump 5s infinite;
}
.trivia-list li:nth-child(2) .icon-frog { animation-delay: 1s; }
.trivia-list li:nth-child(3) .icon-frog { animation-delay: 2s; }
.trivia-list li:nth-child(4) .icon-frog { animation-delay: 3s; }
.trivia-list li:nth-child(5) .icon-frog { animation-delay: 4s; }

@keyframes frog-jump {
  0%    { transform: none;                                          animation-timing-function: ease-in-out; }
  /* crouch: squat down, body compresses */
  3%    { transform: translateY(1px) scale(1.15, 0.8);              animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1); }
  /* launch: fast and stretched, slight forward lean */
  6.5%  { transform: translateY(-15px) scale(0.92, 1.1) rotate(-7deg); animation-timing-function: linear; }
  /* hang time at the top of the arc */
  8.5%  { transform: translateY(-16px) scale(1, 1) rotate(-2deg);   animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.6); }
  /* fall, accelerating */
  12%   { transform: translateY(0) scale(0.95, 1.05) rotate(0deg);  animation-timing-function: ease-out; }
  /* landing squash */
  13.5% { transform: scale(1.25, 0.75);                             animation-timing-function: ease-in-out; }
  /* settle back to rest */
  16%   { transform: none; }
  100%  { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .trivia-list .icon-frog { animation: none; }
}

/* Blog post page */
.post { padding: 50px 0 80px; }
.post-container { max-width: 970px; }
.post h1 { font-size: 48px; margin: 28px 0 10px; }
.post-image { display: block; margin: 0 auto; }
.post-meta { font-size: 15px; color: var(--color-secondary); margin-bottom: 32px; }
.post-body { font-size: 17px; line-height: 1.6; }
.post-body h2 { font-size: 30px; margin-top: 1.2em; }
.post-body h3, .post-body h4 { font-size: 22px; margin-top: 1.2em; }
.post-body a { color: var(--color-secondary); }
.post-body img { margin: 1em 0; }
.post-body blockquote {
  margin: 1.5em 0;
  padding: 4px 24px;
  border-left: 3px solid var(--color-heading);
  color: var(--color-secondary);
}
.related { padding-top: 70px; }
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
  font-size: 15px;
}
.post-nav a { color: var(--color-secondary); text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }
.post-nav-next { margin-left: auto; text-align: right; }

/* Blog post overlay (homepage) */
.post-dialog {
  width: min(970px, calc(100vw - 32px));
  max-height: 88vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}
.post-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
body:has(.post-dialog[open]) { overflow: hidden; }
.dialog-content { overflow-y: auto; max-height: 88vh; }
.dialog-content .post { padding: 40px 0 48px; }
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  color: var(--color-heading);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.dialog-close:hover { background: #eee; }

/* Error page */
.error-page { padding: 120px 0; text-align: center; }

/* Privacy */
.privacy-text { text-align: left; }
.privacy-text h1 { font-size: 48px; }
.privacy-text h2 { font-size: 26px; margin-top: 1.4em; }

/* Footer */
.site-footer { color: #fff; }
.footer-band {
  padding: 40px 0 30px;
  background: var(--color-footer);
  text-align: center;
}
.footer-band .icon { color: #b0b0b0; margin-bottom: 14px; }
.footer-band a { color: #fff; }
.footer-legal {
  padding: 20px 0;
  background: #000;
  text-align: center;
  font-size: 15px;
  color: var(--color-text);
}
.footer-legal p { margin: 0 0 6px; }
.footer-legal a { color: var(--color-text); }

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  .site-nav a { padding: 13px 12px; font-size: 15px; }
  .hero { padding: 70px 0; }
  .hero-logo { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-strip .blog-card { flex-basis: calc((100% - 48px) / 2); }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  section { padding: 50px 0; }
  h2 { font-size: 32px; }
  h3 { font-size: 21px; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 0; }
  .site-nav a { padding: 10px 20px; font-size: 15px; }
  .site-nav a::after { right: auto; width: 90px; left: 20px; }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: none;
    cursor: pointer;
  }
  .menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-heading);
  }

  .cols { flex-direction: column; }
  .impress-grid, .card-grid, .process-grid, .form-row { grid-template-columns: 1fr; display: grid; }
  .stats-row { flex-direction: column; gap: 24px; }
  .blog-strip .blog-card { flex-basis: 86%; }
  .carousel-btn { display: none; }
  .team-member { flex-direction: column; }
  .impress-card { padding: 32px 24px; }
}
