/* ==========================================================================
   Bolmey Media — Design System
   Colors: red #BE1E2D, charcoal #414042, white
   Type: Archivo Black (display) + Poppins (body)
   ========================================================================== */

:root {
  --red: #BE1E2D;
  --red-light: #CB4B57;
  --charcoal: #414042;
  --charcoal-light: #676668;
  --white: #FFFFFF;
  --gray-100: #EEEEEE;
  --black: #1B1B1C;

  --font-display: 'Archivo Black', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3.5rem;
  --space-6: 5.5rem;

  --container-w: 1180px;
  --shadow: 0 12px 32px rgba(27, 27, 28, 0.10);
  --transition: 220ms cubic-bezier(.4, 0, .2, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 3.2vw + 1.4rem, 4.4rem); }
h2 { font-size: clamp(1.9rem, 2vw + 1.2rem, 2.9rem); }
h3 { font-size: 1.2rem; text-transform: none; }
p { margin: 0 0 1em; color: var(--charcoal-light); }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 var(--space-3); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: fixed; top: var(--space-2); left: var(--space-2);
  width: auto; height: auto; padding: var(--space-1) var(--space-2);
  background: var(--red); color: var(--white); z-index: 999;
  border-radius: var(--radius-sm); clip: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-2);
  padding-left: var(--space-2);
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 3px;
  background: var(--red);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-light); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: var(--black); }
.btn--ghost { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--outline-dark { border-color: var(--charcoal); color: var(--charcoal); }
.btn--outline-dark:hover { background: var(--charcoal); color: var(--white); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--space-3);
  gap: var(--space-3);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav__brand img { height: 32px; width: auto; }
.nav__brand-word { height: 15px !important; }
.nav__toggle {
  display: none;
  align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  background: none; border: none;
  color: var(--charcoal); cursor: pointer;
}
.nav__toggle svg { width: 26px; height: 26px; }
.nav__links {
  display: flex; align-items: center; gap: var(--space-4);
  margin-left: auto;
}
.nav__links > a {
  font-weight: 600; font-size: 0.95rem; color: var(--charcoal);
  padding: 0.4rem 0; position: relative;
  transition: color var(--transition);
}
.nav__links > a:hover, .nav__links > a[aria-current="page"] { color: var(--red); }
.nav__links > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--red);
}
.nav__cta { margin-left: var(--space-2); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: var(--space-2) var(--space-3) var(--space-3);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a { padding: 0.8rem 0; border-bottom: 1px solid var(--gray-100); }
  .nav__cta { margin-left: 0; margin-top: var(--space-2); }
  .nav__cta .btn { width: 100%; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: linear-gradient(165deg, var(--black) 0%, #2a2a2c 100%);
  color: var(--white);
  padding: var(--space-6) 0 var(--space-5);
  position: relative;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  color: #D9D8D9;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5em 1em; border-radius: 999px;
  margin-bottom: var(--space-3);
}
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); display: inline-block;
  box-shadow: 0 0 0 3px rgba(190,30,45,0.25);
}
.hero h1 { color: var(--white); margin-bottom: var(--space-3); }
.hero h1 .accent { color: var(--red-light); }
.hero__lede { font-size: 1.1rem; color: #C9C7C8; max-width: 60ch; margin-bottom: var(--space-4); }
.hero__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-5); }
.hero__stats { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); }
.hero__stat { position: relative; padding-left: var(--space-2); }
.hero__stat::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--red);
}

/* ==========================================================================
   Slate stripe divider (signature motif)
   ========================================================================== */

.slate-stripe {
  height: 18px;
  background: repeating-linear-gradient(
    -45deg,
    var(--charcoal), var(--charcoal) 14px,
    var(--white) 14px, var(--white) 28px
  );
}

.sprocket-rule {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--charcoal), var(--charcoal) 8px,
    transparent 8px, transparent 20px
  );
  opacity: 0.85;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: var(--space-6) 0; }
.section--tight { padding: var(--space-5) 0; }
.section--gray { background: var(--gray-100); }
.section h2 { max-width: 18ch; }

.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Service cards */
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: var(--space-3);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(190,30,45,0.08);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 0.4em; }
.service-card p { font-size: 0.92rem; }

/* Work grid / reel cards */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }

.reel-panel {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(155deg, #2c2c2e 0%, var(--black) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  z-index: 0;
}
.reel-panel__play {
  position: relative;
  z-index: 1;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition);
}
.reel-panel__play svg { width: 22px; height: 22px; fill: var(--white); }
.reel-card:hover .reel-panel__play { transform: scale(1.1); }
.reel-panel__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; justify-content: space-between;
  padding: var(--space-2);
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.reel-card { display: block; }
.reel-card__meta { padding-top: var(--space-2); }
.reel-card h3 { font-size: 1.05rem; margin-bottom: 0.25em; }
.reel-card__desc { font-size: 0.9rem; }

/* Process steps */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }
.process-step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--red);
  margin-bottom: 0.5em;
}
.process-step h3 { margin-bottom: 0.35em; }
.process-step p { font-size: 0.92rem; }

/* Quote block */
.quote-block { position: relative; padding-left: var(--space-3); border-left: 4px solid var(--red); }
.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.6vw + 1rem, 1.9rem);
  color: var(--charcoal);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: none;
}
.quote-block cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--charcoal-light);
  display: block;
  margin-top: var(--space-2);
}

/* Team member */
.team-card__photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--gray-100), #DCDCDC);
  margin-bottom: var(--space-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal-light);
}
.team-card h3 { font-size: 1.05rem; margin-bottom: 0.1em; text-transform: none; }
.team-card__role { font-size: 0.85rem; color: var(--red); font-weight: 600; margin-bottom: var(--space-1); }
.team-card p { font-size: 0.9rem; }

/* CTA band */
.cta-band {
  background: var(--red);
  color: var(--white);
  padding: var(--space-6) 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 50ch; margin: 0 auto var(--space-3); }

/* ==========================================================================
   Page header / breadcrumb (inner pages)
   ========================================================================== */

.page-header {
  background: linear-gradient(165deg, var(--black) 0%, #2a2a2c 100%);
  color: var(--white);
  padding: var(--space-5) 0 var(--space-5);
}
.page-header h1 { color: var(--white); margin-bottom: var(--space-2); }
.page-header p { color: #C9C7C8; max-width: 60ch; }
.breadcrumb {
  font-size: 0.85rem; color: #9A989A;
  margin-bottom: var(--space-3);
}
.breadcrumb a { color: #C9C7C8; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current="page"] { color: var(--white); font-weight: 600; }

/* ==========================================================================
   Forms (contact page)
   ========================================================================== */

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--charcoal); }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: 0.95rem;
  padding: 0.8em 1em;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color var(--transition);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--red);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--charcoal-light); margin-top: var(--space-2); }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.contact-info-row {
  display: flex; align-items: center; gap: 0.8em;
  padding: 0.7em 0;
  border-bottom: 1px solid rgba(65,64,66,0.08);
  font-size: 0.95rem;
}
.contact-info-row:last-of-type { border-bottom: none; }
.contact-info-row svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--red); }
.contact-info-row a:hover { color: var(--red); }

.social-row { display: flex; gap: 0.7em; margin-top: var(--space-3); }
.social-row a {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal);
  transition: background var(--transition), color var(--transition);
}
.social-row a svg { width: 18px; height: 18px; }
.social-row a:hover { background: var(--red); color: var(--white); }

/* ==========================================================================
   Portfolio filters & grid
   ========================================================================== */

.filter-row {
  display: flex; flex-wrap: wrap; gap: 0.6em;
  margin-bottom: var(--space-4);
}
.filter-btn {
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  padding: 0.55em 1.2em;
  border-radius: 999px;
  border: 1.5px solid var(--gray-100);
  background: var(--white);
  color: var(--charcoal-light);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.is-active { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-card__tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--black); color: #C9C7C8; padding: var(--space-5) 0 var(--space-3); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 20px; margin-bottom: var(--space-2); }
.footer-brand p { color: #9A989A; font-size: 0.88rem; max-width: 32ch; }

.footer-col h4 {
  font-family: var(--font-body); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--white); margin-bottom: var(--space-2);
}
.footer-col a, .footer-col span {
  display: block; font-size: 0.9rem; color: #9A989A;
  padding: 0.3em 0;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5em;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-3);
  font-size: 0.82rem; color: #7A787A;
}
.footer-bottom a { color: #9A989A; text-decoration: underline; }
.footer-bottom a:hover { color: var(--white); }

/* ==========================================================================
   Scroll-reveal animation
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
