:root {
  --background: #ffffff;
  --foreground: #16181d;
  --muted: #f4f4f3;
  --border: #e3e3e0;
  --fg-80: rgba(22, 24, 29, 0.8);
  --fg-70: rgba(22, 24, 29, 0.7);
  --fg-60: rgba(22, 24, 29, 0.6);
  --fg-50: rgba(22, 24, 29, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 1 auto;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

.container-narrow {
  max-width: 48rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo svg {
  height: 1.75rem;
  width: auto;
}

@media (min-width: 640px) {
  .logo svg {
    height: 2rem;
  }
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .logo-text {
    font-size: 1.25rem;
  }
}

/* Buttons */

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 0.375rem;
  background: var(--foreground);
  color: var(--background);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.85;
}

@media (min-width: 640px) {
  .btn {
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
  }
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .btn-lg {
    font-size: 1rem;
  }
}

/* Sections */

section {
  border-bottom: 1px solid var(--border);
}

.section-muted {
  background: var(--muted);
}

.section-pad {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .section-pad {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.875rem;
}

@media (min-width: 640px) {
  h2 {
    font-size: 2.25rem;
  }
}

p {
  margin: 0;
}

.eyebrow {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-60);
}

/* Hero */

.hero .container {
  display: grid;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .hero .container {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-top: 7rem;
    padding-bottom: 7rem;
    align-items: center;
  }
}

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero p {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: 1rem;
  color: var(--fg-70);
}

@media (min-width: 640px) {
  .hero p {
    font-size: 1.125rem;
  }
}

.hero .founder-line {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-60);
}

@media (min-width: 640px) {
  .hero .founder-line {
    font-size: 1rem;
  }
}

.hero .btn {
  margin-top: 2rem;
}

.media-box {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
}

@media (min-width: 640px) {
  .media-box {
    aspect-ratio: 16 / 11;
  }
}

.media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About */

.lede {
  margin-top: 1.25rem;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--fg-70);
}

@media (min-width: 640px) {
  .lede {
    font-size: 1.125rem;
  }
}

.card-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.card {
  height: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 1.5rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-0.25rem);
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.card.card-lg {
  border-radius: 0.75rem;
  padding: 1.75rem;
}

@media (min-width: 640px) {
  .card.card-lg {
    padding: 2rem;
  }
}

.icon-badge {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
}

.icon-badge svg {
  height: 1.25rem;
  width: 1.25rem;
}

.card h3 {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.card.card-lg h3 {
  margin-top: 1.25rem;
  font-size: 1.25rem;
}

.card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--fg-70);
}

@media (min-width: 640px) {
  .card.card-lg p {
    font-size: 1rem;
  }
}

.card ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.card li {
  display: flex;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--fg-80);
}

@media (min-width: 640px) {
  .card li {
    font-size: 1rem;
  }
}

.card li::before {
  content: "";
  flex: none;
  margin-top: 0.6rem;
  height: 0.25rem;
  width: 0.25rem;
  border-radius: 999px;
  background: var(--fg-50);
}

/* Founder */

.founder .container {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .founder .container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.founder-photo {
  position: relative;
  aspect-ratio: 8 / 9;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0.75rem;
  order: 1;
}

@media (min-width: 1024px) {
  .founder-photo {
    max-width: none;
    margin: 0;
    order: 0;
  }
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.founder-text p {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--fg-70);
}

@media (min-width: 640px) {
  .founder-text p {
    font-size: 1.125rem;
  }
}

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 640px) {
  .text-link {
    font-size: 1rem;
  }
}

/* Testimonials */

.testimonial-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.625;
}

@media (min-width: 640px) {
  blockquote {
    font-size: 1.125rem;
  }
}

figcaption {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--fg-60);
}

figcaption .name {
  font-weight: 600;
  color: var(--fg-80);
}

/* Contact */

.contact {
  text-align: center;
}

.contact p {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--fg-70);
}

@media (min-width: 640px) {
  .contact p {
    font-size: 1.125rem;
  }
}

.contact-details {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--fg-70);
}

@media (min-width: 640px) {
  .contact-details {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    font-size: 1rem;
  }
}

.contact-details li {
  display: flex;
  gap: 0.5rem;
  white-space: nowrap;
}

.contact-details .label {
  font-weight: 600;
  color: var(--foreground);
}

.contact-details a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-details a:hover {
  color: var(--foreground);
}

.contact .office-address {
  margin-top: 1.5rem;
  line-height: 1.6;
}

.office-address .label {
  font-weight: 600;
  color: var(--foreground);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
}

.site-footer .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--fg-60);
}

/* Scroll to top */

.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.scroll-top-btn svg {
  height: 1.25rem;
  width: 1.25rem;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  opacity: 0.85;
}

@media (min-width: 640px) {
  .scroll-top-btn {
    bottom: 2rem;
    right: 2rem;
  }
}

/* Reveal-on-scroll */

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card,
  .scroll-top-btn {
    transition: none;
  }
}
