/* ==========================================================================
   Jawbone Media — static site styles
   ========================================================================== */

:root {
  --bg:        #1d1919;   /* original site background */
  --bg-elev:   #241f1f;
  --bg-elev2:  #2b2525;
  --line:      rgba(255,255,255,0.12);
  --text:      #f4f2f1;
  --muted:     rgba(255,255,255,0.56);
  --accent:    #c23a34;   /* logo red dot — used sparingly */
  --accent-hi: #d9524b;
  --maxw:      1240px;
  --radius:    3px;
  --font-head: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-quote: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

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

/* ---- layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.masthead {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 30px 24px 20px;
  gap: 16px;
}
.brand-logo {
  display: block;
  height: clamp(96px, 15vw, 156px);
  width: auto;
}
.quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 400;
  color: #e9e5e3;
  font-size: clamp(0.98rem, 1.7vw, 1.18rem);
  max-width: 860px;
  line-height: 1.6;
}
.quote cite {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(29,25,25,0.92);
  backdrop-filter: saturate(140%) blur(10px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; flex-wrap: wrap; position: relative;
}
.nav a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  padding: 14px 18px;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius);
  padding: 9px 12px; margin: 8px 0;
  font-family: var(--font-head); letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.78rem; cursor: pointer;
}

/* ==========================================================================
   Headings / type
   ========================================================================== */
.h-eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 400;
  margin: 0 0 14px;
}
.h-section {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 8px;
}
.rule {
  width: 64px; height: 3px; background: var(--accent);
  border: 0; margin: 0 0 28px;
}
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero { padding: 74px 0 40px; text-align: center; }
.hero__intro {
  font-family: var(--font-head);
  font-weight: 300;
  letter-spacing: 0.01em;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 940px; margin: 0 auto 26px;
}
.badge {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
}
.badge::before {
  content: ""; display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
  margin-right: 10px; vertical-align: middle;
}

/* ==========================================================================
   Masonry gallery
   ========================================================================== */
.masonry {
  columns: 4 300px;
  column-gap: 14px;
}
.masonry figure {
  margin: 0 0 14px;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-elev);
  cursor: zoom-in;
}
.masonry img {
  width: 100%; height: auto;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .3s ease;
  filter: saturate(0.96);
}
.masonry figure:hover img { transform: scale(1.045); filter: saturate(1.08); }
.masonry figure::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  pointer-events: none; border-radius: var(--radius);
}

/* ==========================================================================
   Clients strip
   ========================================================================== */
.clients { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 26px 30px;
  align-items: center;
}
.clients-grid img {
  width: 100%; height: 80px; object-fit: contain;
  opacity: 0.9;
  transition: opacity .2s ease, transform .2s ease;
}
.clients-grid img:hover { opacity: 1; transform: translateY(-2px); }

/* ==========================================================================
   About
   ========================================================================== */
.about-portrait {
  max-width: 460px; margin: 0 auto 8px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.bios {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
  margin-top: 20px;
}
.bio h2 {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.2em;
  font-weight: 300; font-size: 1.6rem; margin: 0 0 6px; color: var(--text);
}
.bio .rule { margin-bottom: 18px; }
.bio p { color: #cfcfd4; margin: 0 0 14px; }

/* ==========================================================================
   Video
   ========================================================================== */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 26px;
}
.video-embed {
  position: relative; width: 100%; padding-top: 56.25%;
  background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-wrap { max-width: 680px; margin: 0 auto; }
.form-grid { display: grid; gap: 18px; }
.field label {
  display: block; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.76rem; color: var(--muted); margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%; background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; font-size: 1rem; font-family: inherit;
  transition: border-color .18s ease, background .18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--bg-elev2);
}
.field textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 700; font-size: 0.82rem;
  border: 0; border-radius: var(--radius);
  padding: 14px 32px; cursor: pointer;
  transition: background .18s ease, transform .06s ease;
}
.btn:hover { background: #ffffff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.form-note { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.form-status { margin-top: 6px; font-size: 0.98rem; min-height: 1.4em; }
.form-status.ok { color: #7fd18c; }
.form-status.err { color: #e08a7f; }
.contact-alt { margin-top: 30px; color: var(--muted); }
.contact-alt a { color: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 40px 0 46px;
  text-align: center;
}
.social { display: flex; justify-content: center; gap: 18px; margin-bottom: 18px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--muted); transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.footer-brand {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.3em;
  font-weight: 300; color: var(--text); font-size: 0.95rem; margin-bottom: 6px;
}
.footer-fine { color: var(--muted); font-size: 0.82rem; line-height: 1.6; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6,6,7,0.94);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 92vw; max-height: 86vh; object-fit: contain;
  border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lb-btn {
  position: absolute; background: rgba(20,20,22,0.6); color: var(--text);
  border: 1px solid var(--line); border-radius: 50%;
  width: 52px; height: 52px; font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .18s ease, color .18s ease;
  user-select: none;
}
.lb-btn:hover { background: var(--accent); color: #17130a; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 20px; right: 20px; width: 46px; height: 46px; font-size: 1.3rem; }
.lb-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); letter-spacing: 0.18em; font-size: 0.8rem;
  color: var(--muted); background: rgba(20,20,22,0.6);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 760px) {
  .nav-inner { justify-content: space-between; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav a { padding: 13px 6px; text-align: center; border-bottom: 1px solid var(--line); }
  .nav a.active { border-bottom-color: var(--accent); }
  .bios { grid-template-columns: 1fr; gap: 30px; }
  .video-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2 160px; column-gap: 10px; }
  .masonry figure { margin-bottom: 10px; }
  .lb-btn { width: 44px; height: 44px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .section { padding: 46px 0; }
}
@media (max-width: 420px) {
  .masonry { columns: 1; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
