/* ============================================================
   Brent Durst Consulting — Design System
   ============================================================ */

:root {
  /* Palette */
  --ink: #0b1622;
  --ink-2: #16263a;
  --slate: #33475b;
  --muted: #5b6b7c;
  --line: #e4e9ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-dark: #0b1622;
  --bg-dark-2: #10203180;

  --accent: #1f7ae0;       /* signal blue */
  --accent-deep: #155bb0;
  --accent-soft: #e8f1fc;
  --gold: #c8a24a;         /* music / premium accent */
  --success: #1f9d6b;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-brand: "Fraunces", Georgia, "Times New Roman", serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11,22,34,.06), 0 2px 8px rgba(11,22,34,.05);
  --shadow-md: 0 6px 24px rgba(11,22,34,.10);
  --shadow-lg: 0 20px 60px rgba(11,22,34,.16);
  --ease: cubic-bezier(.2,.7,.2,1);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* Layout helpers */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #c6d3e0; }
.section--dark h2, .section--dark h3, .section--dark h1 { color: #fff; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}
.section--dark .eyebrow { color: #7db4ee; }
.lead { font-size: 1.18rem; color: var(--muted); }
.section--dark .lead { color: #9fb2c6; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(31,122,224,.32); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn--light { background: #fff; color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: #ffffff3d; }
.btn--outline-light:hover { border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffffe6; backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-brand); font-weight: 600;
  font-size: 1.24rem; color: var(--ink); letter-spacing: -.005em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--ink-2));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-brand); font-weight: 600; font-size: 1rem; letter-spacing: 0;
}
.brand small { display: block; font-family: var(--font-sans); font-weight: 400; color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: .97rem; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-deep); text-decoration: none; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 75% -10%, #16324f 0%, var(--bg-dark) 55%);
  color: #cdd9e6; padding: 96px 0 104px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(#ffffff0a 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(600px 400px at 20% 30%, #000 0%, transparent 80%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 .grad {
  background: linear-gradient(100deg, #6db2f5, #a9cdf5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: #a6bace; max-width: 60ch; font-size: 1.24rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; color: #7f95ab; font-size: .9rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfe0f4; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card .ic {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep);
}
.card .ic svg { width: 24px; height: 24px; }
.card--music .ic { background: #f7f1e1; color: #a9822e; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--ink); line-height: 1; }
.section--dark .stat .num { color: #fff; }
.stat .lbl { font-size: .92rem; color: var(--muted); margin-top: 8px; }
.section--dark .stat .lbl { color: #9fb2c6; }

/* Logos / trust */
.trust { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; }
.trust span { font-family: var(--font-display); font-weight: 600; color: #8394a6; font-size: 1.05rem; letter-spacing: .01em; }

/* Service detail blocks */
.svc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.svc + .svc { margin-top: 72px; }
.svc:nth-child(even) .svc-media { order: -1; }
.svc h3 { font-size: 1.7rem; }
.svc ul { margin: 18px 0 0; padding: 0; list-style: none; }
.svc li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--slate); }
.svc li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.svc-media {
  border-radius: var(--radius); padding: 34px; min-height: 220px;
  background: linear-gradient(145deg, var(--bg-soft), #eef3f9);
  border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.svc-media .tag { font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.svc-media .big { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); font-weight: 600; }
.svc-media .row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { font-size: .82rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; color: var(--slate); }

/* Timeline */
.timeline { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 28px; }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -35px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.tl-item .when { font-family: var(--font-display); font-size: .82rem; letter-spacing: .04em; color: var(--accent-deep); text-transform: uppercase; }
.tl-item h3 { margin: 4px 0 2px; font-size: 1.15rem; }
.tl-item .org { font-weight: 600; color: var(--slate); }
.tl-item p { color: var(--muted); font-size: .96rem; margin: 8px 0 0; }

/* Case study */
.cs-hero { background: linear-gradient(160deg, #0d2036, #0b1622); color: #cdd9e6; }
.cs-hero .kicker { color: var(--gold); font-family: var(--font-display); letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; }
.chiprow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { font-size: .84rem; padding: 7px 14px; border-radius: 999px; background: #ffffff12; border: 1px solid #ffffff26; color: #d4e0ec; }
.feat { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feat .card p { font-size: .95rem; }
.callout {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2);
}
.callout--music { border-color: var(--gold); background: #f7f1e1; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-detail { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-detail .ic { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; }
.contact-detail .ic svg { width: 20px; height: 20px; }
.contact-detail b { color: var(--ink); font-family: var(--font-display); }
.form-note { font-size: .85rem; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--accent-deep), #0d2036); color: #fff; border-radius: 20px; padding: 54px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cbdcf0; max-width: 54ch; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #8ea1b5; padding: 56px 0 30px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #7f95ab; }
.site-footer p { color: #8ea1b5; font-size: .95rem; max-width: 42ch; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-display); }
.footer-col a { display: block; color: #9fb2c6; margin-bottom: 9px; font-size: .95rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #ffffff14; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .86rem; color: #6f8399; }

/* Utility */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .feat, .stats { grid-template-columns: repeat(2, 1fr); }
  .svc, .contact-grid, .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .svc:nth-child(even) .svc-media { order: 0; }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 6px 0; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .feat, .stats { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  body { font-size: 16px; }
}
