*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 640px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 7vw, 5.5rem); font-style: italic; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(0,0,0,0.7); max-width: 560px; }

.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }

.btn { display: inline-block; padding: 14px 32px; background: var(--primary); color: #fff; border: 0; border-radius: 999px; font-family: inherit; font-weight: 500; cursor: pointer; transition: all .25s; }
.btn:hover { background: color-mix(in srgb, var(--primary) 80%, #000); color: #fff; transform: translateY(-2px); }

.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid #f3f4f6; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.logo { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.4rem; color: var(--primary); }
.nav { display: flex; gap: 32px; }
.nav a { color: var(--text); font-size: 0.92rem; opacity: 0.7; }
.nav a:hover { color: var(--primary); opacity: 1; }

.hero { padding: 80px 0 60px; }
.hero-text { max-width: 800px; margin-bottom: 48px; }
.hero-image img { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: 4px; }

.section { padding: 96px 0; }
.section-alt { background: #faf6fb; }
.section-stats { padding: 56px 0; background: #faf6fb; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stats-row > div { text-align: center; }
.stats-row strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); color: var(--primary); font-weight: 700; }
.stats-row span { color: rgba(0,0,0,0.65); font-size: 0.92rem; }

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

/* Portfolio tiles with overlay */
.portfolio-tile { aspect-ratio: 4/5; background-size: cover; background-position: center; position: relative; overflow: hidden; cursor: pointer; border-radius: 4px; }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(107,33,168,0.92)); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; opacity: 0; transition: opacity .35s; color: #fff; }
.portfolio-tile:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: #fff; font-style: italic; }
.portfolio-overlay p { color: rgba(255,255,255,0.92); font-size: 0.92rem; margin: 0; }

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.about-grid img { border-radius: 4px; aspect-ratio: 5/6; object-fit: cover; }

.feature-tile { padding: 24px; text-align: center; }
.feature-icon { color: var(--primary); margin: 0 auto 16px; width: 48px; height: 48px; display: inline-flex; }
.feature-icon svg { width: 32px; height: 32px; }
.feature-tile h3 { font-size: 1.05rem; margin-bottom: 6px; font-family: var(--font-body); font-weight: 600; }
.feature-tile p { color: rgba(0,0,0,0.6); font-size: 0.88rem; margin: 0; }

.testimonial { background: #fff; padding: 28px; border-radius: 4px; }
.testimonial .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial p { font-style: italic; color: rgba(0,0,0,0.8); margin-bottom: 14px; font-family: var(--font-display); font-size: 1.05rem; }
.testimonial strong { display: block; font-family: var(--font-body); }
.testimonial span { color: rgba(0,0,0,0.55); font-size: 0.88rem; }

.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 480px; margin: 0 auto; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 0.85rem; color: rgba(0,0,0,0.7); }
.field input, .field textarea { padding: 12px 0; border: 0; border-bottom: 1px solid #d1d5db; font-family: inherit; font-size: 1rem; background: transparent; transition: border-color .25s; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--primary); }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 0.92rem; min-height: 1.2em; text-align: center; }
.form-status.success { color: #059669; } .form-status.error { color: #dc2626; }
.contact-info { text-align: center; margin-top: 28px; color: rgba(0,0,0,0.7); }
.contact-info a { color: var(--text); }

.site-footer { padding: 32px 0; border-top: 1px solid #f0f0f0; }
.footer-line { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; color: rgba(0,0,0,0.55); }
.footer-logo { color: var(--primary); }

.reveal { transform: translateY(24px); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.active { transform: translateY(0); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .grid-3, .grid-4, .stats-row { grid-template-columns: 1fr; }
  .nav { gap: 18px; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 64px 0; }
  .footer-line { flex-direction: column; gap: 8px; }
}

/* Footer brand color fix — use CSS var instead of hardcoded color */
.site-footer .logo,
.footer-logo,
.footer-brand,
.site-footer .brand-name,
.site-footer h3.logo {
  color: var(--color-primary) !important;
}
