:root {
  --bg: #0c0e11;
  --surface: #13161a;
  --surface-2: #191d22;
  --surface-3: #20252b;

  --text: #f5f6f8;
  --muted: #9da6b1;
  --muted-2: #737d89;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);

  --max: 1220px;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 18% -10%,
      rgba(79, 91, 112, 0.17),
      transparent 35rem
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

figure {
  margin: 0;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}


/* ---------------------------------------------------------
   Navigation
--------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;

  background: rgba(12, 14, 17, 0.84);
  backdrop-filter: blur(18px);

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

.nav {
  min-height: 72px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 30px;
}

.brand {
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;

  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}


/* ---------------------------------------------------------
   General typography
--------------------------------------------------------- */

.eyebrow {
  margin-bottom: 16px;

  color: var(--muted);
  font-size: 12px;
  font-weight: 650;

  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 28px;

  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 18px;

  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  letter-spacing: -0.025em;
}

.lead {
  max-width: 760px;

  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.section-copy {
  max-width: 610px;

  color: var(--muted);
  font-size: 16px;
}


/* ---------------------------------------------------------
   Buttons + tags
--------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 34px;
}

.button {
  min-height: 48px;
  padding: 0 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--line);
  border-radius: 999px;

  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--text);
  color: var(--bg);
}

.button.secondary {
  background: rgba(255,255,255,0.03);
}

.button:hover {
  transform: translateY(-1px);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 20px;
}

.tag {
  padding: 6px 11px;

  border: 1px solid var(--line);
  border-radius: 999px;

  color: #c6cdd5;
  font-size: 12px;
}


/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */

.hero {
  padding: 105px 0 105px;
}


/* ---------------------------------------------------------
   Sections
--------------------------------------------------------- */

.section {
  padding: 92px 0;

  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 50px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  align-items: end;
  gap: 70px;
}


/* ---------------------------------------------------------
   Featured cards
--------------------------------------------------------- */

.case {
  padding: 42px;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.035),
      rgba(255,255,255,0.012)
    ),
    var(--surface);

  overflow: hidden;
}

.case + .case {
  margin-top: 28px;
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);

  align-items: center;
  gap: 55px;
}

.case-meta h3 {
  margin-bottom: 16px;

  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.case-meta p {
  color: var(--muted);
}


/* ---------------------------------------------------------
   WPA compact desktop presentation
--------------------------------------------------------- */

.wpa-stage {
  min-height: 610px;

  display: grid;
  grid-template-columns: 0.8fr 1.15fr;
  gap: 16px;

  align-items: center;
}

.wpa-phone,
.wpa-admin-card {
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--line);
  border-radius: 20px;

  background: #0b0c0e;

  overflow: hidden;
}

.wpa-phone {
  min-height: 600px;
}

.wpa-phone img {
  width: auto;
  max-width: 100%;
  max-height: 600px;
}

.wpa-admin-stack {
  display: grid;
  gap: 16px;
}

.wpa-admin-card {
  height: 288px;
}

.wpa-admin-card img {
  width: auto;
  max-width: 100%;
  max-height: 288px;
}


/* ---------------------------------------------------------
   Large 16:9 work
--------------------------------------------------------- */

.wide-case {
  padding: 0;
}

.wide-image {
  aspect-ratio: 16 / 9;

  overflow: hidden;

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

.wide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-body {
  padding: 34px 38px 38px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 55px;
}


/* ---------------------------------------------------------
   Leafmate
--------------------------------------------------------- */

.mobile-showcase {
  min-height: 660px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.mobile-frame {
  width: min(46%, 330px);
  height: 650px;

  display: flex;
  justify-content: center;

  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 28px;

  background: #171816;
}

.mobile-frame img {
  width: auto;
  max-width: 100%;
  max-height: 650px;
}


/* ---------------------------------------------------------
   Featured grid
--------------------------------------------------------- */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.work-card {
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 22px;

  background: var(--surface);
}

.work-card-image {
  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #090a0c;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card-body {
  padding: 24px;
}

.work-card-body h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.work-role {
  margin-bottom: 10px;

  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.work-card-body p {
  margin-bottom: 0;

  color: var(--muted);
  font-size: 14px;
}


/* ---------------------------------------------------------
   All projects
--------------------------------------------------------- */

.projects-hero {
  padding: 88px 0 64px;
}

.filters {
  margin-bottom: 38px;

  display: grid;
  gap: 18px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-label {
  width: 105px;

  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.filter-button {
  padding: 8px 13px;

  background: transparent;
  color: var(--muted);

  border: 1px solid var(--line);
  border-radius: 999px;

  font: inherit;
  font-size: 13px;

  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 22px;

  background: var(--surface);
}

.project-card[hidden] {
  display: none;
}

.project-image {
  height: 330px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: #090a0b;
}

.project-image.wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image.mobile img {
  width: auto;
  max-width: 100%;
  max-height: 330px;
}

.project-body {
  padding: 26px;
}

.project-type {
  margin-bottom: 9px;

  color: var(--muted-2);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-body h3 {
  margin-bottom: 8px;
  font-size: 25px;
}

.project-role {
  margin-bottom: 14px;

  font-size: 13px;
  font-weight: 700;
}

.project-description {
  color: var(--muted);
  font-size: 14px;
}


/* ---------------------------------------------------------
   CTA/footer
--------------------------------------------------------- */

.cta {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.cta h2 {
  max-width: 760px;
}

.footer {
  padding: 28px 0;

  border-top: 1px solid var(--line);

  color: var(--muted-2);
  font-size: 13px;
}


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .nav-links a.optional {
    display: none;
  }

  .hero {
    padding: 72px 0 68px;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading,
  .case-grid,
  .wide-body {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 18px;
  }

  .case {
    padding: 24px;
  }

  .case-grid {
    gap: 34px;
  }

  .wpa-stage {
    min-height: 0;

    grid-template-columns: 1fr;
  }

  .wpa-phone {
    min-height: 0;
  }

  .wpa-phone img {
    max-height: 680px;
  }

  .wpa-admin-stack {
    grid-template-columns: 1fr 1fr;
  }

  .wpa-admin-card {
    height: auto;
    min-height: 0;
  }

  .wpa-admin-card img {
    max-height: none;
  }

  .mobile-showcase {
    min-height: 0;
  }

  .mobile-frame {
    height: auto;
  }

  .mobile-frame img {
    max-height: none;
  }

  .featured-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .filter-label {
    width: 100%;
    margin-top: 4px;
  }
}


@media (max-width: 600px) {
  h1 {
    font-size: 48px;
  }

  .nav {
    min-height: 64px;
  }

  .nav-links {
    gap: 14px;
  }

  .hero {
    padding-top: 60px;
  }

  .case {
    padding: 18px;
    border-radius: 20px;
  }

  .wpa-admin-stack {
    grid-template-columns: 1fr;
  }

  .mobile-showcase {
    align-items: flex-start;
    gap: 8px;
  }

  .mobile-frame {
    width: 50%;
    border-radius: 18px;
  }

  .wide-body {
    padding: 24px;
  }

  .project-image {
    height: 260px;
  }
}
