:root {
  --primary: #ae3633;
  --dark: #22303e;
  --light: #f7f7f7;
  --text: #111;
  --gray: #666;
  --max-width: 1100px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --transition: .25s ease;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

p {
  max-width: 65ch;
}

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

section h2 {
  margin-bottom: 1.25rem;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(174,54,51,.25);
  outline-offset: 3px;
  border-radius: 6px;
}

ul {
  list-style-position: inside;
}

button, input, select, textarea {
  font: inherit;
}

/* LAYOUT */
.l-container {
  width: min(90%, var(--max-width));
  margin-inline: auto;
}

.l-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.l-grid-2, .l-grid-3 {
  display: grid;
  gap: 2rem;
  align-items: start;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  font-weight: 700;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--primary);
}

/* HERO */
.hero {
  padding-top: 5rem;
}

.hero-content {
  width: 100%;
  max-width: 720px;
}

.hero-content h1 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.hero-content .c-hero__lead {
  max-width: 58ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-media {
  width: 100%;
  max-width: 560px;
  justify-self: end;
}

.hero-media img {
  aspect-ratio: 14 / 16;
}

.hero-media img, .case-media img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* COMPONENTS */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .85rem 1.4rem;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.c-btn:hover {
  transform: translateY(-2px);
  filter: brightness(.98);
}

.c-btn--primary {
  background: linear-gradient(135deg, #c7423f, var(--primary));
  color: #fff;
}

.c-btn--ghost {
  border: 1px solid var(--text);
}

.c-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.c-card {
  padding: 2rem;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}

.c-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.c-card h3 {
  margin-bottom: .75rem;
}

.c-card p + p {
  margin-top: .75rem;
}

.c-highlight {
  margin-top: 2rem;
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  background: var(--light);
}

.c-form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.c-form input, .c-form select {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid #d8d8d8;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  border-radius: 8px;
}

.c-form input:focus, .c-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(174,54,51,.08);
  outline: none;
}

.c-hero__overline {
  font-size: .85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.c-hero__lead {
  margin-top: 1rem;
  max-width: 60ch;
  color: #333;
}

/* SOCIAL PROOF */
.c-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.c-logo-grid img {
  max-height: 40px;
  margin-inline: auto;
  opacity: .8;
}

/* CASE STUDY */
.case-media figcaption {
  margin-top: .75rem;
  color: var(--gray);
  font-size: .95rem;
}

/* FOOTER */
.footer-grid {
  display: grid;
  gap: 3rem;
}

.footer-contact {
  list-style: none;
  margin-top: 1rem;
}

.footer-contact li {
  margin-bottom: .5rem;
}

/* UTILITIES */
.u-text-center { text-align: center; }
.u-bg-light { background: var(--light); }
.u-bg-dark { background: var(--dark); color: #fff; }
.u-bg-dark a { color: #fff; }

/* RESPONSIVE */
@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .l-grid-2 {
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    align-items: center;
    gap: 3rem;
  }
  .l-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .c-logo-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* MOBILE */
@media (max-width: 767px) {
  .hero {
    padding-top: 2rem;
  }
  .hero-content h1 {
    max-width: 100%;
  }
  .hero-media {
    max-width: 100%;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions .c-btn, .c-form .c-btn {
    width: 100%;
  }
}