* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: #171A1F; font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: #2364AA; color: #FFFFFF; }
a { color: #2364AA; text-decoration: none; }
a:hover { color: #1B4F87; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: 57px; padding: 0 64px; display: flex; align-items: center; justify-content: space-between; background: #FAFAFA; border-bottom: 1px solid #BFD7EA; }
.nav-brand { font-size: 20px; font-weight: 700; color: #171A1F; background: url('../assets/home/name-gradient.svg') left center / 133px 32px no-repeat; -webkit-background-clip: text; background-clip: text; transition: color .25s ease; }
.nav-brand:hover { color: transparent; }
.nav-right { display: flex; align-items: center; gap: 28px; }

.btn--lg { height: 56px; padding: 0 35px; font-size: 16px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { min-height: 466px; padding: 191px 64px 64px 283px; display: flex; justify-content: flex-start; align-items: flex-start; gap: 28px; border-bottom: 1px solid #BFD7EA; }
.hero-photo { width: 94px; height: 94px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1); flex-shrink: 0; background: #E7E7E8; }
.hero-text { display: flex; flex-direction: column; gap: 10px; width: 714px; max-width: 100%; padding: 0; }
.hero-eyebrow { font-size: 20px; font-weight: 300; line-height: 24px; color: #5C5E61; }
.hero h1 { margin: 0; font-size: 24px; font-weight: 300; line-height: 30px; color: #171A1F; padding: 0; text-wrap: wrap; }
.hero h1 strong { font-weight: 600; }

@keyframes fadeInUp { from { opacity: 0; filter: blur(4px); transform: translateY(10px); } to { opacity: 1; filter: blur(0); transform: none; } }
.hero-anim { animation: fadeInUp .7s cubic-bezier(.22, 1, .36, 1) backwards; }
.hero-anim-2 { animation-delay: .08s; }

/* ---------- Case cards ---------- */
.cases { padding: 119px 64px 279px; display: flex; flex-direction: column; align-items: center; gap: 220px; }
.case { width: 940px; max-width: 100%; display: flex; scroll-margin-top: 120px; }
.case-text { flex: 0 0 50%; padding: 35px 36px 35px; background: #FAFAFA; display: flex; flex-direction: column; align-items: flex-start; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { padding: 5px 16px; border-radius: 999px; background: #E7E7E8; font-size: 12px; font-weight: 500; line-height: 18px; }
.case h2 { margin: 12px 0 0; font-size: 20px; font-weight: 600; line-height: 24px; }
.case p { margin: 12px 0 0; font-size: 14px; line-height: 17px; }
.case .btn { margin-top: auto; }
.case-text .spacer { height: 26px; flex-shrink: 0; }

.case-media { flex: 0 0 50%; min-height: 262px; position: relative; overflow: hidden; display: block; }
.case-media img { position: absolute; top: 62px; left: 50%; width: 408px; max-width: calc(100% - 48px); transform: translateX(-50%); border: 4px solid #A7A7A7; border-radius: 12px; display: block; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.case-media:hover img { transform: translate(-50%, -6px); }
.case-media--red { background: rgba(227, 101, 91, .15); }
.case-media--blue { background: rgba(35, 100, 170, .2); }
.case-media--green { background: rgba(65, 157, 120, .2); }

/* Scroll reveal */
.js .reveal > * { opacity: 0; transform: translateY(14px); filter: blur(3px); transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1), filter .6s cubic-bezier(.22, 1, .36, 1); }
.js .reveal.is-visible > * { opacity: 1; transform: none; filter: blur(0); }
.js .reveal.is-visible > *:nth-child(2) { transition-delay: .12s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero { padding-left: max(64px, calc((100% - 940px) / 2 + 33px)); }
}
@media (max-width: 700px) {
  .nav { padding: 0 24px; }
  .br-lg { display: none; }
  .hero { min-height: 0; padding: 86px 45px; flex-direction: column; justify-content: flex-start; align-items: flex-start; text-align: left; gap: 16px; }
  .hero-photo { width: 94px; height: 94px; border-radius: 50%; object-position: 50% 30%; }
  .hero-eyebrow { font-size: 18px; line-height: 22px; }
  .hero h1 { font-size: 20px; line-height: 26px; }
  .cases { padding: 48px 16px; gap: 48px; }
  .case { flex-direction: column-reverse; }
  .case--rev { flex-direction: column; }
  .case-text, .case-media { flex: none; width: 100%; }
  .case-media { min-height: 220px; }
  .case-media img { top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-anim { animation: none; }
  .js .reveal > * { opacity: 1; transform: none; filter: none; transition: none; }
}

h1, h2, h3, p, li { text-wrap: pretty; }
.hero h1 { text-wrap: wrap; }
