/* AI Can't Do That Yet — shared styles
   Design tokens (used inline across pages):
   ink #0B0C0E · paper #F4F2EE · graphite #1A1C20 · line #2A2D33 · line-light #D9D5CD
   amber (accent) #FFB000 · link-on-dark #8EA6FF · link-on-paper #2F5BFF · moss #3E7A4F
   muted #8A8F98 · muted-light #5F6470 · body-on-dark #C9CCD2
   Fonts: Inter (text), JetBrains Mono (labels, numbers) */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #FFB000; outline-offset: 2px; }

/* Header + mobile menu */
.menu-btn { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid #2A2D33; border-radius: 4px; color: #F4F2EE; align-items: center; justify-content: center; cursor: pointer; }

/* FAQ (native details/summary) */
.faq summary::-webkit-details-marker { display: none; }
.faq[open] .faq-sign { transform: rotate(45deg); }
.faq-sign { transition: transform 120ms ease; display: inline-block; }

/* Chips (contact topics, timelines, work filters) */
.chip { min-height: 44px; padding: 0 16px; border-radius: 4px; border: 1px solid #3A3D44; background: transparent; color: #C9CCD2; font-family: Inter, system-ui, sans-serif; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; text-align: left; }
.chip[aria-pressed="true"] { border-color: #FFB000; background: #1A1C20; color: #F4F2EE; font-weight: 600; }
.chip-topic { min-height: 56px; padding: 12px 14px; width: 100%; }
.chip .dot { flex: 0 0 14px; height: 14px; border-radius: 50%; border: 1.5px solid #4A4E57; }
.chip[aria-pressed="true"] .dot { background: #FFB000; border-color: #FFB000; }

/* Form status */
.form-error { margin: 0; color: #FF8A7A; font-size: 14px; }

/* Mobile CTA bar */
.mobile-bar { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .site-header-inner { flex-wrap: wrap !important; }
  .site-nav { display: none !important; width: 100%; flex-direction: column; align-items: stretch !important; gap: 0 !important; padding-top: 8px; }
  header.open .site-nav { display: flex !important; }
  .site-nav a { min-height: 48px; display: flex !important; align-items: center; font-size: 17px; }
  .site-nav a:last-child { justify-content: center; margin-top: 8px; }
}

@media (max-width: 1024px) {
  /* Tablet type scale */
  [style*="font-size: 76px"], [style*="font-size: 72px"], [style*="font-size: 68px"], [style*="font-size: 64px"], [style*="font-size: 60px"] { font-size: 52px !important; }
  [style*="font-size: 56px"], [style*="font-size: 52px"], [style*="font-size: 48px"], [style*="font-size: 44px"] { font-size: 40px !important; }
  [style*="font-size: 40px"], [style*="font-size: 36px"] { font-size: 30px !important; }

  /* Multi-column fixed grids become 2-column on tablet */
  .r-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .r-minw { min-width: 0 !important; }
  .r-minw svg { max-width: 280px; }

  /* Five-ways auto-fit grids: cap at 3 columns on tablet so doors/labels stay readable */
  [style*="grid-template-columns: repeat(auto-fit, minmax(170px, 1fr))"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 640px) {
  /* side gutters and section rhythm */
  [style*="max-width: 1200px"] { padding-left: 16px !important; padding-right: 16px !important; }
  [style*="padding: 112px"], [style*="padding: 96px"], [style*="padding: 88px"], [style*="padding: 80px"], [style*="padding: 72px"] { padding-top: 56px !important; padding-bottom: 56px !important; }
  .site-header-inner { padding-top: 12px !important; padding-bottom: 12px !important; }
  .site-header-inner > a > span:nth-child(2) { display: none; }

  /* type scale */
  [style*="font-size: 76px"], [style*="font-size: 72px"], [style*="font-size: 68px"], [style*="font-size: 64px"], [style*="font-size: 60px"] { font-size: 40px !important; }
  [style*="font-size: 56px"], [style*="font-size: 52px"], [style*="font-size: 48px"], [style*="font-size: 44px"] { font-size: 32px !important; }
  [style*="font-size: 40px"], [style*="font-size: 36px"] { font-size: 28px !important; }
  [style*="font-size: 22px"], [style*="font-size: 21px"], [style*="font-size: 20px"] { font-size: 18px !important; }

  /* fixed grids stack */
  .r-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .r-grid > * { grid-column: auto !important; }
  .r-grid > [style*="border-left: 1px solid"] { border-left: 0 !important; padding-left: 0 !important; }
  .r-minw { min-width: 0 !important; }
  .r-minw svg { max-width: 240px; }
  .hide-sm { display: none !important; }

  /* sticky CTA bar */
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #0B0C0E; border-top: 1px solid #2A2D33; }
  .mobile-bar a { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font: 600 15px Inter, system-ui, sans-serif; text-decoration: none; color: #F4F2EE; border: 1px solid #4A4E57; }
  .mobile-bar a.mb-cta { background: #FFB000; color: #0B0C0E; border-color: #FFB000; }
  body:has(.mobile-bar) { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
