/* The Jacoby Group — shared design tokens */
:root {
  --jg-crimson: #C8102E;
  --jg-crimson-deep: #9F0C24;
  --jg-ink: #0E0E0E;
  --jg-ink-soft: #1C1B19;
  --jg-graphite: #2A2826;
  --jg-paper: #F6F1EA;
  --jg-cream: #EFE7DA;
  --jg-bone: #E8DFCE;
  --jg-rule: rgba(14,14,14,0.14);
  --jg-rule-soft: rgba(14,14,14,0.08);
  --jg-mute: rgba(14,14,14,0.55);
}

.jg-serif { font-family: "Newsreader", "Source Serif 4", Georgia, serif; font-feature-settings: "ss01", "kern"; }
.jg-display { font-family: "Newsreader", "Playfair Display", Georgia, serif; font-style: italic; font-weight: 500; }
.jg-sans { font-family: "Geist", "Sohne", "Inter", -apple-system, system-ui, sans-serif; }
.jg-mono { font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace; font-feature-settings: "ss02"; }

/* Striped placeholder */
.jg-placeholder {
  position: relative;
  background-color: var(--jg-bone);
  background-image: repeating-linear-gradient(135deg,rgba(14,14,14,0.045) 0 1px,transparent 1px 14px);
  display: flex; align-items: center; justify-content: center;
  color: var(--jg-mute);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  overflow: hidden;
}
.jg-placeholder.dark {
  background-color: #15140F;
  background-image: repeating-linear-gradient(135deg,rgba(255,255,255,0.04) 0 1px,transparent 1px 14px);
  color: rgba(255,255,255,0.5);
}
.jg-placeholder.crimson {
  background-color: var(--jg-crimson);
  background-image: repeating-linear-gradient(135deg,rgba(0,0,0,0.06) 0 1px,transparent 1px 14px);
  color: rgba(255,255,255,0.78);
}

/* helpers */
.jg-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--jg-mute);
}
.jg-rule { border-top: 1px solid var(--jg-rule); }
.jg-thin-rule { border-top: 0.5px solid var(--jg-rule); }

/* Reusable button */
.jg-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  border-radius: 999px; text-decoration: none;
  transition: all 0.18s ease; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
}
.jg-btn.primary { background: var(--jg-ink); color: var(--jg-paper); }
.jg-btn.primary:hover { background: var(--jg-crimson); }
.jg-btn.crimson { background: var(--jg-crimson); color: white; }
.jg-btn.crimson:hover { background: var(--jg-crimson-deep); }
.jg-btn.ghost { border-color: var(--jg-rule); color: var(--jg-ink); background: transparent; }
.jg-btn.ghost:hover { background: var(--jg-ink); color: var(--jg-paper); border-color: var(--jg-ink); }

/* Monogram */
.jg-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Newsreader", Georgia, serif;
  font-style: italic; font-weight: 500;
  letter-spacing: -0.03em; line-height: 1;
}
.jg-mark .j { color: var(--jg-crimson); }
.jg-mark .g { color: var(--jg-ink); }

/* artboard */
.jg-artboard {
  width: 100%; height: 100%;
  overflow: hidden auto;
  background: var(--jg-paper); color: var(--jg-ink);
  font-family: "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: thin;
  scrollbar-color: rgba(14,14,14,0.2) transparent;
}
.jg-artboard::-webkit-scrollbar { width: 8px; }
.jg-artboard::-webkit-scrollbar-thumb { background: rgba(14,14,14,0.2); border-radius: 4px; }
.jg-artboard *, .jg-artboard *:before, .jg-artboard *:after { box-sizing: border-box; }

/* marquee */
@keyframes jg-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.jg-ticker-track { display: inline-flex; animation: jg-marquee 50s linear infinite; }

/* hover */
.jg-hover-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.jg-hover-card:hover { transform: translateY(-4px); }

/* nav link */
.jg-nav-link {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--jg-ink); text-decoration: none;
  position: relative; padding: 4px 0;
}
.jg-nav-link:after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--jg-crimson);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.jg-nav-link:hover:after { transform: scaleX(1); }

/* ====================================================================
   MOBILE RESPONSIVE — phones & tablets (portrait)
   Uses !important to override inline React JSX styles
   ==================================================================== */

/* Desktop: hamburger hidden; appears only on mobile */
.jg-hamburger { display: none; }

/* ─── PHONES & TABLETS ≤ 768 px ─── */
@media (max-width: 768px) {

  /* Prevent horizontal overflow */
  body, .jg-artboard { overflow-x: hidden !important; }

  /* ── Header ── */
  .jg-topbar { display: none !important; }
  .jg-site-header { padding: 16px 20px !important; }
  .jg-site-nav { display: none !important; }
  .jg-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .jg-site-header .jg-btn {
    font-size: 12px !important;
    padding: 11px 18px !important;
  }

  /* ── Section rhythm ── */
  .jg-artboard section {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  /* ── Hero ── */
  .jg-hero { padding: 52px 20px 40px !important; }

  .jg-hero h1 {
    font-size: clamp(38px, 10vw, 56px) !important;
    line-height: 1.0 !important;
  }

  .jg-hero p {
    font-size: 16px !important;
    margin-top: 20px !important;
  }

  .jg-hero-btns {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 36px !important;
  }
  .jg-hero-btns .jg-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* ── Hero image ── */
  .jg-hero-img-wrap { padding: 0 0 40px !important; }
  .jg-hero-img-inner { height: 240px !important; }
  .jg-hero-img-inner img,
  .jg-maxbyte-img img { height: 100% !important; object-fit: cover !important; }

  /* ── All section headings ── */
  .jg-artboard h2 {
    font-size: clamp(30px, 8.5vw, 44px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
  }

  /* ── Section body paragraphs ── */
  .jg-artboard section p {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  /* ── Expertise ── */
  .jg-expertise-grid { grid-template-columns: 1fr !important; }

  /* ── Maxbyte partner ── */
  .jg-maxbyte-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .jg-maxbyte-img { height: 220px !important; }

  /* ── AI Advantage ── */
  .jg-advantage-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .jg-advantage-stats {
    flex-direction: column !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
    margin-top: 36px !important;
  }
  .jg-stat-big { font-size: 52px !important; line-height: 1 !important; }

  /* ── Stats row ── */
  .jg-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
  .jg-stats-val { font-size: 38px !important; line-height: 1 !important; }

  /* ── Closing CTA ── */
  .jg-closing-headline { font-size: 40px !important; line-height: 1.05 !important; }

  /* ── Footer ── */
  .jg-footer { padding: 56px 20px 32px !important; }
  .jg-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .jg-footer-bottom {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }

  .jg-artboard img { max-width: 100% !important; }
}

/* ─── SMALL PHONES ≤ 480 px ─── */
@media (max-width: 480px) {
  .jg-artboard section {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  .jg-hero { padding: 44px 20px 32px !important; }

  .jg-hero h1 {
    font-size: clamp(32px, 9.5vw, 42px) !important;
  }

  .jg-artboard h2 {
    font-size: clamp(26px, 8vw, 34px) !important;
  }

  .jg-hero-img-inner { height: 200px !important; }

  .jg-stat-big { font-size: 44px !important; }

  .jg-stats-grid { grid-template-columns: 1fr !important; }
  .jg-stats-val { font-size: 32px !important; }

  .jg-closing-headline { font-size: 30px !important; }

  .jg-footer-grid { grid-template-columns: 1fr !important; }

  .jg-site-header .jg-btn {
    font-size: 11px !important;
    padding: 10px 14px !important;
  }
}

/* ─── INNER PAGES — MAXBYTE ─── */
@media (max-width: 768px) {
  .jg-mb-about-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .jg-mb-about-grid > div + div { border-left: none !important; padding-left: 0 !important; border-top: 1px solid var(--jg-rule) !important; padding-top: 32px !important; }
  .jg-mb-whatwedo-hd { grid-template-columns: 1fr !important; gap: 24px !important; margin-bottom: 40px !important; }
  .jg-mb-cap-row { grid-template-columns: 1fr !important; gap: 12px !important; padding: 28px 0 !important; }
  .jg-mb-cap-row > div:last-child { display: none !important; }
  .jg-mb-factory-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .jg-mb-outcomes-hd { grid-template-columns: 1fr !important; gap: 16px !important; margin-bottom: 32px !important; }
  .jg-mb-outcomes-list { grid-template-columns: 1fr !important; }
  .jg-mb-outcomes-list li { padding-left: 0 !important; padding-right: 0 !important; border-right: none !important; }
  .jg-mb-approach-grid { grid-template-columns: 1fr !important; border-top: none !important; }
  .jg-mb-approach-grid > div { border-top: 1px solid rgba(246,241,234,0.2) !important; border-right: none !important; padding: 24px 0 !important; }
  .jg-mb-industries-grid { grid-template-columns: 1fr 1fr !important; }
  .jg-mb-industries-grid > div { border-right: none !important; }
  .jg-mb-why-grid { grid-template-columns: 1fr !important; }
  .jg-mb-why-grid > div { padding-left: 0 !important; padding-right: 0 !important; }
}

/* ─── INNER PAGES — TEAM ─── */
@media (max-width: 768px) {
  .jg-team-member { grid-template-columns: 1fr !important; gap: 32px !important; }
  .jg-team-who-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .jg-team-mission-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .jg-team-why-grid { grid-template-columns: 1fr !important; }
  .jg-team-why-grid > div { padding-left: 0 !important; padding-right: 0 !important; }
}

/* ─── INNER PAGES — CONTACT ─── */
@media (max-width: 768px) {
  .jg-contact-fields { grid-template-columns: 1fr !important; }
}
