/* NovusMage — fresh site stylesheet */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f8f7f4;
  --bg-dark:   #0c0c10;
  --bg-card:   #ffffff;
  --text:      #1a1a22;
  --text-muted:#6b6b7b;
  --text-inv:  #e8e8ec;
  --gold:      #c9922a;
  --gold-lt:   #e8b44a;
  --gold-dim:  rgba(201, 146, 42, 0.12);
  --border:    #e4e3de;
  --border-dk: rgba(255,255,255,0.08);
  --radius:    14px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --font:      'DM Sans', system-ui, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --nav-h:     72px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --max:       1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold-lt); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Typography ── */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}

.section-heading {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-sub {
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: var(--gold-lt);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,146,42,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline-inv {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline-inv:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 13px 16px;
}
.btn-ghost:hover { color: var(--gold); }

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-nav.scrolled {
  background: rgba(12, 12, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-dk);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
}
.nav-logo em {
  font-style: normal;
  color: var(--gold-lt);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url('../img/leads/boston_2024.jpg') center 35% / cover no-repeat;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg-dark) 0%, transparent 40%),
    linear-gradient(to right, rgba(12,12,16,0.88) 0%, rgba(12,12,16,0.4) 55%, rgba(12,12,16,0.15) 100%);
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 60px) 0 0;
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-body .container { width: 100%; }

.hero h1 {
  font-size: clamp(44px, 6.5vw, 80px);
  color: #fff;
  max-width: 720px;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-lt);
}

.hero-lead {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-dk);
}

.hero-bar a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  color: #fff;
  text-decoration: none;
  background: rgba(12,12,16,0.5);
  backdrop-filter: blur(8px);
  transition: background 0.2s;
  border-right: 1px solid var(--border-dk);
}
.hero-bar a:last-child { border-right: none; }
.hero-bar a:hover { background: rgba(201,146,42,0.1); }

.hero-bar-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.hero-bar strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1px;
}
.hero-bar span {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* ── Clients marquee ── */
.clients-band {
  padding: 48px 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.clients-band .eyebrow {
  text-align: center;
  margin-bottom: 28px;
}

.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  animation: marquee 30s linear infinite;
  padding: 0 32px;
}

.marquee-track img {
  height: 40px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(1);
  transition: all 0.3s;
}
.marquee-track img:hover {
  opacity: 1;
  filter: none;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Sections ── */
.section {
  padding: 100px 0;
}

.section-alt { background: var(--bg-card); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.about-text h2 { margin-bottom: 20px; }
.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.75;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s var(--ease);
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.service-card h3 {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.features-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
}

.feature-list { display: flex; flex-direction: column; gap: 28px; }

.feature-item h4 {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Portfolio */
.portfolio-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.portfolio-nav button {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.portfolio-nav button.active,
.portfolio-nav button:hover {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #fff;
}

.portfolio-panel { display: none; }
.portfolio-panel.active { display: block; }

.work-grid {
  display: grid;
  gap: 20px;
}

.work-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.work-grid .span-full { grid-column: 1 / -1; }

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.work-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.work-card.tall img { aspect-ratio: 3/2; }

.work-card-body {
  padding: 20px 24px;
}

.work-card-body h3 {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.work-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Stats */
.stats-band {
  background: var(--bg-dark);
  color: var(--text-inv);
  padding: 100px 0;
}

.stats-band h2 {
  color: #fff;
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 16px;
}

.stats-band .lead-text {
  color: rgba(255,255,255,0.55);
  font-size: 16px;
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stat-item .num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--gold-lt);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.stat-item .label strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.team-card h4 {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.team-card span {
  font-size: 13px;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  padding: 80px 0;
  background: var(--bg);
}

.cta-box {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-box h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 8px;
}

.cta-box p {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  max-width: 480px;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.5);
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-dk);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; display: inline-block; }

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h5 {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.footer-col a:hover { color: var(--gold-lt); }

.footer-bottom {
  border-top: 1px solid var(--border-dk);
  padding-top: 24px;
  font-size: 13px;
  text-align: center;
}

/* ── Inner page (Timing) ── */
.page-hero {
  background: var(--bg-dark);
  padding: calc(var(--nav-h) + 80px) 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(201,146,42,0.06), transparent 70%);
  pointer-events: none;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  color: #fff;
  margin-bottom: 20px;
}

.page-hero .lead {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 32px;
}

.page-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.page-hero-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.page-hero-badge {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(12,12,16,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-dk);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

/* Timing page sections reuse service-card, etc. */
.process-list { display: flex; flex-direction: column; gap: 24px; }

.process-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.process-num {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.process-item h4 {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.process-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.highlight-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.highlight-img img { width: 100%; }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; color: #fff; }
  .nav-toggle { display: block; }

  .hero h1 { font-size: 40px; }
  .hero-bar { grid-template-columns: 1fr; }
  .hero-bar a { border-right: none; border-bottom: 1px solid var(--border-dk); }

  .about-grid,
  .features-grid,
  .page-hero-grid,
  .two-col { grid-template-columns: 1fr; gap: 40px; }

  .services-grid { grid-template-columns: 1fr; }
  .work-grid.cols-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-box {
    flex-direction: column;
    padding: 40px 32px;
    text-align: center;
  }
  .cta-box p { margin: 0 auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
}
