/* ─── Variables ─────────────────────────────────────────── */

:root {
  --dark:         #1E2832;
  --light:        #F5F5F2;
  --text:         #1E2832;
  --white:        #ffffff;
  --accent:       #3D72B4;
  --muted:        #555555;
  --border:       #e2ddd8;
  --border-dark:  #2a3545;
  --nav-h:        56px;
}

/* ─── Reset ─────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Navigation ────────────────────────────────────────── */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

#nav.scrolled {
  border-bottom-color: var(--border-dark);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#nav-name {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
}

#nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

#nav-links a {
  font-size: 11px;
  font-weight: 400;
  color: #5a6a7a;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

#nav-links a:hover {
  color: var(--white);
}

/* ─── Hero ──────────────────────────────────────────────── */

#hero {
  background-color: var(--dark);
  padding: calc(var(--nav-h) + 112px) 2.5rem 104px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

#hero-headline {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  max-width: 760px;
  margin-bottom: 1.75rem;
  letter-spacing: -0.03em;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}

#hero-headline em {
  color: var(--accent);
  font-style: italic;
}

#hero-subheading {
  font-size: 22px;
  font-weight: 300;
  color: #8892a4;
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.5rem;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.3s;
}

#hero-cta {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 14px 32px;
  transition: background-color 0.2s ease;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.52s;
}

#hero-cta:hover {
  background-color: #3361a0;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Sections (shared) ─────────────────────────────────── */

.section-outer {
  background-color: var(--light);
  padding: 80px 2.5rem;
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Small amber uppercase label */
.section-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Bold DM Sans statement heading */
.section-heading {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--text);
  letter-spacing: 0;
  margin-bottom: 20px;
  max-width: 580px;
}

/* ─── Section body text ─────────────────────────────────── */

.section-body p {
  max-width: 580px;
  color: #555;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.section-body p:last-child {
  margin-bottom: 0;
}

.section-body-cta {
  display: inline-block;
  margin-top: 1.25rem;
}

/* ─── Selected Work ─────────────────────────────────────── */

.case-study {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.case-study:last-child {
  padding-bottom: 0;
}

.case-number {
  display: none;
}

.case-client {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  line-height: 1.5;
  margin-bottom: 12px;
}

.case-body {
  max-width: 580px;
  font-size: 15px;
  font-weight: 300;
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.case-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.case-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ─── Testimonials ──────────────────────────────────────── */

.testimonial {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.testimonial:last-child {
  padding-bottom: 0;
}

.testimonial-quote {
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  color: #333;
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 1.25rem;
}

.testimonial-attr {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testimonial-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.testimonial-title {
  font-size: 12px;
  font-weight: 300;
  color: #5a6a7a;
  letter-spacing: 0.02em;
}

/* ─── Background section ────────────────────────────────── */

#background {
  border-bottom: none;
}

/* ─── Contact ───────────────────────────────────────────── */

#contact {
  background-color: var(--dark);
  border-bottom: none;
  padding-bottom: 104px;
}

#contact .section-label {
  color: #3a4a5e;
}

.contact-body {
  max-width: 560px;
  color: #5a6a7a;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-email {
  display: block;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.contact-email:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ─── Mobile ─────────────────────────────────────────────── */

@media (max-width: 768px) {
  #nav-links {
    display: none;
  }

  .nav-inner {
    padding: 0 1.5rem;
  }

  #hero {
    padding: calc(var(--nav-h) + 64px) 1.5rem 72px;
  }

  .section-outer {
    padding: 56px 1.5rem;
  }

  #contact {
    padding-bottom: 80px;
  }

  .case-study {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
